* i386-tdep.h: Put opaque declarations in alphabetical
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-09-27 Mark Kettenis <kettenis@gnu.org>
2
3 * i386-tdep.h: Put opaque declarations in alphabetical
4 order. Remove spurious whitespace.
5 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
6 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
7 * i386-tdep.c (MM0_REGNUM): Remove define.
8 (i386_mmx_regnum_p): Add gdbarch argument.
9 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
10 Rewrite using new macro definitions for FPU/SSE registers.
11 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
12 definitions from i387-tdep.h.
13 (i386_register_name): Update.
14 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
15 new macro definitions for FPU/SSE registers.
16 (i386_extract_return_value): Determine whether floating-point
17 registers are present by examining REGCACHE's architecture.
18 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
19 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
20 FPU/SSE registers.
21 (i386_register_type): Update.
22 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
23 definitions for FPU registers. Use REGCACHE's architecture to
24 determine the appropriate register numbers.
25 (i386_pseudo_register_read, i386_pseudo_register_write,
26 i386_register_reggroup_p): Update.
27 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
28 TDEP->mm0_regnum.
29 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
30 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
31 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
32 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
33 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
34 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
35 *' to `void *'.
36 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
37 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
38 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
39 definitions for FPU/SSE registers.
40 (FXSAVE_MXCSR_ADDR): New define.
41 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
42 TDEP->mm0_regnum.
43 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
44 (I387_ST0_REGNUM): Define.
45
46 * regcache.h (get_regcache_arch): New prototype.
47 * regcache.c (get_regcache_arch): New function.
48
49 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
50 whitespace.
51
52 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
53 Initialize using ARRAY_SIZE.
54
55 2003-09-27 Andrew Cagney <cagney@redhat.com>
56
57 * arch-utils.c (deprecated_init_frame_pc_default): Rename
58 "init_frame_pc_default".
59 * arch-utils.h (deprecated_init_frame_pc_default): Update.
60 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
61 * vax-tdep.c (vax_gdbarch_init): Update.
62 * v850-tdep.c (v850_gdbarch_init): Update.
63 * sh64-tdep.c (sh64_gdbarch_init): Update.
64 * s390-tdep.c (s390_gdbarch_init): Update.
65 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
66 * mcore-tdep.c (mcore_gdbarch_init): Update.
67 * h8300-tdep.c (h8300_gdbarch_init): Update.
68 * cris-tdep.c (cris_gdbarch_init): Update.
69 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
70
71 2003-09-26 Mark Kettenis <kettenis@gnu.org>
72
73 * regset.h: New file.
74 * Makefile.in (regset_h): Add.
75
76 2003-09-25 Andrew Cagney <cagney@redhat.com>
77
78 * frame.h (deprecated_frame_saved_regs): Rename
79 get_frame_saved_regs.
80 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
81 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
82 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
83 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
84 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
85
86 2003-09-25 Andrew Cagney <cagney@redhat.com>
87
88 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
89 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
90 and Java.
91 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
92 arm*-*-* do not use the new frame code.
93
94 2003-09-25 David Carlton <carlton@kealia.com>
95
96 * c-exp.y: Remove 'register' declarations.
97 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
98
99 2003-09-25 David Carlton <carlton@kealia.com>
100
101 * c-exp.y: Include cp-support.h. Add qualified_type.
102 (yylex): Delete nested type hack; add comments.
103 * cp-namespace.c (cp_lookup_nested_type): New function.
104 * cp-support.h: Declare cp_lookup_nested_type.
105 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
106 instead of value_struct_elt_for_reference.
107 * valops.c: Include cp-support.h.
108 (value_aggregate_elt): New function.
109 (value_namespace_elt): Ditto.
110 (value_struct_elt_for_reference): Make static.
111 * value.h: Delete declaration of value_struct_elt_for_reference;
112 add declaration for value_aggregate_elt.
113 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
114 (valops.o): Ditto.
115
116 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
117
118 * stack.c: Include "reggroups.h".
119 (frame_info): Only display registers in all_reggroup.
120 * Makefile.in (stack.o): Update dependencies.
121
122 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
123
124 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
125 "add ip, sp #n" in the prologue.
126 (arm_scan_prologue): Ditto.
127
128 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
129
130 * MAINTAINERS (write after approval): Add myself.
131
132 2003-09-25 Andreas Schwab <schwab@suse.de>
133
134 * m68k-tdep.c: Include "dwarf2-frame.h".
135 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
136 * Makefile.in (m68k-tdep.o): Update dependencies.
137
138 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
139
140 * sh-tdep.c (struct frame_extra_info): Remove.
141 (struct sh_frame_cache): New structure.
142 (GET_SOURCE_REG): New macro extracting source register of an opcode.
143 (GET_TARGET_REG): Ditto but target register.
144 (GET_PUSHED_REG): Remove.
145 (IS_MOV_ARG_TO_REG): New macro.
146 (IS_MOV_ARG_TO_IND_R14): New macro.
147 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
148 (IS_MOVW_PCREL_TO_REG): New macro.
149 (IS_MOVL_PCREL_TO_REG): New macro.
150 (IS_SUB_REG_FROM_SP): New macro.
151 (IS_ARG_MOV): Remove.
152 (IS_MOV_TO_R14): Remove.
153 (IS_RESTORE_FP): New macro.
154 (IS_RTS): New macro.
155 (IS_LDS): New macro.
156 (IS_MOV_FP_SP): New macro.
157 (IS_ADD_REG_TO_FP): New macro.
158 (IS_ADD_IMM_FP): New macro.
159 (sh_skip_prologue_hard_way): Remove.
160 (sh_saved_pc_after_call): Remove.
161 (sh_frame_chain): Remove.
162 (sh_find_callers_reg): Remove.
163 (sh_nofp_frame_init_saved_regs): Remove.
164 (sh_fp_frame_init_saved_regs): Remove.
165 (sh_init_extra_frame_info): Remove.
166 (sh_analyze_prologue): New function.
167 (sh_skip_prologue): Remove deprecated code. Rely on new function
168 sh_analyze_prologue when after_prologue fails.
169 (sh_frame_saved_pc): Remove.
170 (sh_alloc_frame_cache): New function.
171 (sh_frame_cache): Ditto.
172 (sh_frame_prev_register): Ditto.
173 (sh_frame_this_id): Ditto.
174 (sh_frame_unwind): New structure defining the heuristic frame
175 sniffer interface.
176 (sh_frame_sniffer): New function.
177 (sh_unwind_sp): Ditto.
178 (sh_unwind_pc): Ditto.
179 (sh_unwind_dummy_id): Ditto.
180 (sh_frame_base_address): Ditto.
181 (sh_frame_base): New structure defining new frame base code.
182 (sh_in_function_epilogue_p): New function.
183 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
184 code and to call all new code instead. Initialize dwarf2 and
185 heuristic frame sniffer.
186
187 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
188
189 * parser-defs.h (struct exp_descriptor): New definition, containing
190 language-specific info for printing, prefixifying, dumping, and
191 evaluating expressions.
192 (exp_descriptor_standard): Declare new variable.
193 (print_subexp): Make global and declare here (from expprint.c).
194 (dump_subexp): Ditto.
195 (dump_subexp_body_standard): Declare.
196 (operator_length_standard): Declare.
197 (op_name_standard): Declare.
198 (print_subexp): Declare.
199 (print_subexp_standard): Declare.
200
201 * language.h (struct language_defn): Add la_exp_desc field to hold
202 pointer to table for language-specific operators.
203 Remove evaluate_exp field, which is now in struct exp_descriptor.
204
205 * parse.c (operator_length): Move most code to new
206 operator_length_standard function. Use language-specific information.
207 (operator_length_standard): New function taking most code from
208 operator_length.
209 (exp_descriptor_standard): New constant.
210
211 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
212 and OP_EXTENDED_LAST.
213
214 * expprint.c (print_subexp): Use language-specific print_subexp.
215 Make global; remove static declaration.
216 Move most code to print_subexp_standard.
217 (print_subexp_standard): New function, containing code formerly in
218 print_subexp.
219 (op_name): Add expression to argument signature.
220 Use langauge-specific op_name.
221 Move most code to op_name_standard.
222 (op_name_standard): New function, containing code formerly in op_name.
223 (dump_subexp): Use new version of op_name function.
224 Use language-specific dump_subexp_body, and move most existing code to
225 dump_subexp_body_standard.
226 (dump_raw_expression): Use new op_name interface.
227 (dump_subexp_body): Move most code to dump_subexp_body_standard.
228 (dump_subexp_body_standard): New function, containing code formerly
229 in dump_subexp_body.
230
231 * language.c (unknown_language): Add default la_exp_desc field and
232 remove evaluate_exp field.
233 (auto_language): Ditto.
234 (local_language): Ditto.
235 * f-lang.c (f_language_defn): Ditto.
236 * c-lang.c (c_language_defn): Ditto.
237 (cplus_language_defn): Ditto.
238 (asm_language_defn): Ditto.
239 (minimal_language_defn): Ditto.
240 * p-lang.c (pascal_language_defn): Ditto.
241 * m2-lang.c (m2_language_defn): Ditto.
242 * objc-lang.c (objc_language_defn): Ditto.
243
244 * jv-lang.c (exp_descriptor_java): New variable, containing
245 Java-specific expression evaluator.
246 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
247 field.
248 * scm-lang.c (exp_descriptor_scm): New variable, containing
249 Scheme-specific expression evaluator.
250 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
251 field.
252 * objc-lang.c (print_object_command): Take evaluate_exp from the
253 la_exp_desc field.
254
255 * Makefile.in (eval.o): Add dependency on parser-defs.h.
256
257 * eval.c: Include parser-defs.h for the full declaration of
258 la_exp_desc's type.
259 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
260
261 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
262
263 * parser-defs.h (operator_length): Declare.
264
265 * parse.c (length_of_subexp): Use operator_length to get operator
266 lengths and arities for operators.
267 Move most code to new operator_length function.
268 (operator_length): New function absorbing most code from
269 length_of_subexp.
270 (prefixify_subexp): Remove large case and use operator_length instead.
271 (parse_exp_1): Use renamings:
272 dump_prefix_expression => dump_raw_expression and
273 dump_postfix_expression => dump_prefix_expression.
274
275 * expression.h (dump_prefix_expression): Rename to ...
276 (dump_raw_expression): New name.
277 (dump_postfix_expression): Rename to ...
278 (dump_prefix_expression): New name.
279
280 * expprint.c (dump_subexp): Make global. Add comment.
281 Move most existing code to dump_subexp_body.
282 (dump_subexp_body): New function.
283 (dump_prefix_expression): Rename to dump_raw_expression.
284 Remove attempt to print the expression via print_expression: it can't
285 work before the expression is prefixified.
286 (dump_raw_expression): Renamed from dump_prefix_expression.
287 (dump_postfix_expression): Rename to dump_prefix_expression, since
288 that's what it does.
289 Remove 'note' parameter, since this routine must be used on
290 prefixified expression.
291 (dump_prefix_expression): Renamed from dump_postfix_expression.
292
293 2003-09-22 Jim Blandy <jimb@redhat.com>
294
295 * dwarf2read.c (read_array_type): When building the type for an
296 array of unspecified length, make sure to choose the upper bound
297 so that the array's total length comes out to be zero --- that's
298 how we represent such arrays.
299
300 2003-09-22 Michael Chastain <mec@shout.net>
301
302 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
303
304 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
305
306 * top.c (quit_force): Fix indirect call to quit_target so
307 a struct qt_args pointer is passed.
308
309 2003-09-22 Andrew Cagney <cagney@redhat.com>
310
311 * arch-utils.h (init_frame_pc_noop): Delete declaration.
312 * arch-utils.c (init_frame_pc_noop): Delete function.
313 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
314 "init_frame_pc".
315 * mips-tdep.c (mips_gdbarch_init): Ditto.
316 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
317 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
318 declaration.
319 (DEPRECATED_INIT_FRAME_PC): Delete macro.
320 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
321 declaration.
322 (DEPRECATED_INIT_FRAME_PC): Delete macro.
323
324 2003-09-22 Anthony Green <green@redhat.com>
325
326 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
327 declaration.
328
329 2003-09-20 Andrew Cagney <cagney@redhat.com>
330
331 * breakpoint.c: Eliminate ARGSUSED.
332 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
333 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
334 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
335 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
336 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
337 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
338 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
339 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
340 * wince.c, remote-vx.c: Ditto.
341
342 * cli/cli-script.c: Remove "register" attributes.
343 * config/pa/tm-hppa.h: Ditto.
344 * cli/cli-decode.c: Ditto.
345 * cli/cli-cmds.c: Ditto.
346
347 2003-09-19 Andrew Cagney <cagney@redhat.com>
348
349 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
350 DEPRECATED_NPC_REGNUM.
351 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
352
353 2003-09-19 Christopher Faylor <cgf@redhat.com>
354
355 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
356
357 2003-09-19 Jim Blandy <jimb@redhat.com>
358
359 * macrotab.c (macro_include): Use the correct comparison to find
360 the appropriate place for this inclusion in the list.
361
362 2003-09-19 Andrew Cagney <cagney@redhat.com>
363
364 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
365 (DEPRECATED_HPUX_TEXT_END): Define.
366 (deprecated_hpux_text_end): Declare.
367 (struct target_ops): Declare opaque.
368 * hppah-nat.c (text_end): Make static.
369 (deprecated_hpux_text_end): New function.
370 * exec.c (text_end): Delete global variable.
371 (NEED_TEXT_START_END): Do not define.
372 (exec_file_attach): Replace code computing "text_end" code with
373 call to DEPRECATED_HPUX_TEXT_END.
374
375 2003-09-19 Andrew Cagney <cagney@redhat.com>
376
377 * utils.c (align_up, align_down): New functions.
378 * defs.h (align_up, align_down): Declare.
379 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
380 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
381 and "align_down".
382 (round_up, round_down): Delete functions.
383 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
384 "align_down".
385 (ROUND_DOWN, ROUND_UP): Delete macros.
386 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
387 * h8300-tdep.c: Replace "round_up" and "round_down" with
388 "align_up" and "align_down".
389 (round_up, round_down): Delete macros.
390 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
391 "align_down".
392 (ROUND_UP, ROUND_DOWN): Delete macros.
393
394 2003-09-18 J. Brobecker <brobecker@gnat.com>
395
396 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
397 hard-coded constant. Use the proper machine name instead.
398
399 2003-09-17 Andrew Cagney <cagney@redhat.com>
400
401 * sparc-tdep.c (legacy_register_name): Delete function.
402 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
403 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
404 * infcmd.c (gdb_register_name): Delete variable.
405 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
406 REGISTER_NAME and "tm.h".
407 * gdbarch.h, gdbarch.c: Regenerate.
408 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
409 REGISTER_NAMES in comments.
410 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
411 * m68klinux-nat.c (regmap): Ditto.
412
413 2003-09-17 Jim Blandy <jimb@redhat.com>
414
415 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
416
417 2003-09-17 Andrew Cagney <cagney@redhat.com>
418
419 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
420 (ppcnbsd_init_abi): Set "use_struct_convention" to
421 "ppcnbsd_use_struct_convention".
422
423 2003-09-17 Mark Kettenis <kettenis@gnu.org>
424
425 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
426 * gdbarch.h, gdbarch.c: Regenerate.
427 (stabs_argument_has_addr): New architecture method.
428 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
429 * arch-utils.c: Include "buildsym.h".
430 (default_stabs_argument_has_addr): New function.
431 * stabsread.c (define_symbol): Use stabs_argument_has_addr
432 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
433
434 2003-09-17 Andrew Cagney <cagney@redhat.com>
435
436 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
437 * gdbarch.h, gdbarch.c: Regenerate.
438 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
439 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
440 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
441 * sparcnbsd-tdep.c: Update.
442
443 2003-09-17 Andrew Cagney <cagney@redhat.com>
444
445 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
446 * gdbarch.h, gdbarch.c: Regenerate.
447 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
448 * d10v-tdep.c, frame.c: Update.
449 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
450 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
451 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
452 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
453 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
454 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
455 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
456 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
457 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
458 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
459 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
460 * config/pa/nm-hppah.h: Update.
461
462 2003-09-16 Andrew Cagney <cagney@redhat.com>
463
464 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
465 "use_struct_convention" to "ppc_linux_use_struct_convention".
466 (ppc_linux_use_struct_convention): New function.
467 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
468 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
469 "rs6000_use_struct_convention".
470 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
471 declaration.
472 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
473 Delete function.
474
475 2003-09-16 Andrew Cagney <cagney@redhat.com>
476
477 * buildsym.c: Remove more occurances of "register".
478 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
479 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
480 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
481 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
482 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
483 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
484 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
485 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
486
487 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
488
489 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
490 numbers to enumeration values.
491 * sh-tdep.c: Accomodate above change.
492 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
493 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
494 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
495 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
496 (IS_FPUSH): Rename from IS_FMOV.
497 (sh_extract_struct_value_address): Remove useless comment.
498 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
499 instead of own local values.
500 (sh_dump_tdep): Remove.
501 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
502 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
503
504 2003-09-15 Andrew Cagney <cagney@redhat.com>
505
506 * doublest.c (convert_floatformat_to_doublest): No longer need to
507 cast "exp_bias" to an int. Reverts 2002-12-04 change.
508
509 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
510
511 * values.c (unpack_double): Call floatformat_is_valid.
512
513 2003-09-15 Mark Kettenis <kettenis@gnu.org>
514
515 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
516 ps_strings into a long.
517
518 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
519 _initialize_am64fbsd_nat.
520
521 2003-09-15 Kevin Buettner <kevinb@redhat.com>
522
523 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
524 associated with DW_AT_ranges attribute is out of bounds.
525
526 2003-09-15 David Lecomber <dsl@sources.redhat.com>
527
528 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
529
530 2003-09-14 Michael Chastain <mec@shout.net>
531
532 * config/m68k/nm-apollo68v.h: Delete.
533 * config/m68k/xm-apollo68v.h: Delete.
534
535 2003-09-14 Andrew Cagney <cagney@redhat.com>
536
537 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
538 * dcache.c: Update copyrights and descriptions.
539 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
540
541 2003-09-14 Andrew Cagney <cagney@redhat.com>
542
543 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
544 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
545
546 2003-09-14 Andrew Cagney <cagney@redhat.com>
547
548 * alpha-nat.c: Remove some occurances of "register".
549 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
550 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
551 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
552 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
553 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
554 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
555 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
556 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
557 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
558 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
559 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
560 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
561 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
562 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
563 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
564 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
565 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
566 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
567 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
568 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
569 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
570 * values.c, vax-tdep.c, xcoffread.c: Ditto.
571
572 2003-09-13 Andrew Cagney <cagney@redhat.com>
573
574 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
575 * ppc-tdep.h (struct regcache): Declare opaque.
576 * objfiles.h (struct objfile_data): Declare opaque.
577 * cp-support.h (struct objfile): Declare opaque.
578 * linux-nat.h (target_waitstatus): Declare opaque.
579
580 2003-09-14 Mark Kettenis <kettenis@gnu.org>
581
582 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
583 (stabs_argument_has_addr): New architecture method.
584 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
585 * arch-utils.c: Include "buildsym.h".
586 (default_stabs_argument_has_addr): New function.
587 * stabsread.c (define_symbol): Use stabs_argument_has_addr
588 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
589
590 * cris-tdep.c (cris_gdbarch_init): Set
591 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
592 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
593 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
594 * mips-tdep.c (mips_gdbarch_init): Likewise.
595 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
596 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
597
598 2003-09-13 Andrew Cagney <cagney@redhat.com>
599
600 * values.c (using_struct_return): Delete "function" and "funcaddr"
601 parameters.
602 * value.h (using_struct_return): Update declaration.
603 * infcmd.c (finish_command_continuation): Update.
604 (finish_command): Update.
605 * infcall.c (call_function_by_hand): Update.
606 * eval.c (evaluate_subexp_standard): Update.
607
608 2003-09-13 Christopher Faylor <cgf@redhat.com>
609
610 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
611 SSE registers since gdb will not operate correctly without this.
612 Restore include file ordering munged in previous change.
613 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
614
615 2003-09-13 Mark Kettenis <kettenis@gnu.org>
616
617 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
618 REG_STRUCT_HAS_ADDR.
619 * gdbarch.c, gdbarch.h: Updated.
620 * infcall.c (call_function_by_hand): Update.
621 * stabsread.c (define_symbol): Updated.
622
623 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
624
625 2003-09-12 Christopher Faylor <cgf@redhat.com>
626
627 * win32-nat.c: Reorganize so that defines used by target headers are
628 actually defined by the system headers.
629 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
630 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
631
632 2003-09-12 Jim Blandy <jimb@redhat.com>
633
634 * dbxread.c (read_dbx_symtab): Don't report an internal error if
635 the file has no .data, .bss, or .rodata sections. Instead wait
636 until we see a variable alleged to live in one of those sections.
637
638 * dbxread.c (read_dbx_symtab): If we have no .data section and no
639 .bss section, presume that any variables we find live in the
640 .rodata section.
641
642 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
643 offsets for global and static variables.
644
645 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
646 symbol types are, by definition, in the .data section, so it is
647 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
648 If there is no .data section, there should be no N_DATA or N_DATA
649 | N_EXT symbols.
650
651 2003-09-12 Mark Kettenis <kettenis@gnu.org>
652
653 * amd64fbsd-tdep.c: Fix sigtramp recognition.
654 (amd64fbsd_sigcontext_addr): Rewrite.
655 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
656 with correct values.
657 (amd64fbsd_sc_reg_offset): Initialize with correct values.
658 (amd64fbsd_init_abi): Fix typo.
659
660 2003-09-12 Andrew Cagney <cagney@redhat.com>
661
662 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
663 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
664
665 2003-09-12 Andrew Cagney <cagney@redhat.com>
666
667 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
668 "entry_file_highpc". Update comments.
669 * defs.h (deprecated_inside_entry_file): Rename
670 "inside_entry_file".
671 * blockframe.c (deprecated_inside_entry_file): Rename
672 "inside_entry_file".
673 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
674 * vax-tdep.c (vax_frame_chain): Update.
675 * sh64-tdep.c (sh64_frame_chain): Update.
676 * sh-tdep.c (sh_frame_chain): Update.
677 * rs6000-tdep.c (rs6000_frame_chain): Update.
678 * ns32k-tdep.c (ns32k_frame_chain): Update.
679 * mips-tdep.c (mips_frame_chain): Update.
680 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
681 * m32r-tdep.c (m32r_frame_this_id): Update.
682 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
683 * frv-tdep.c (frv_frame_this_id): Update.
684 * d10v-tdep.c (d10v_frame_this_id): Update.
685 * cris-tdep.c (cris_frame_chain): Update.
686 * blockframe.c (legacy_frame_chain_valid): Update.
687 * avr-tdep.c (avr_frame_this_id): Update.
688 * arm-tdep.c (arm_prologue_this_id): Update.
689 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
690 * objfiles.c (objfile_relocate): Update.
691 * mipsread.c (mipscoff_symfile_read): Update.
692 (mipscoff_symfile_read): Update.
693 * mdebugread.c (parse_partial_symbols): Update.
694 * dwarfread.c (read_file_scope): Update.
695 * dwarf2read.c (read_file_scope): Update.
696 * dbxread.c (read_dbx_symtab): Update.
697 (read_dbx_symtab): Update.
698 * coffread.c (complete_symtab): Update.
699
700 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
701
702 * top.c (quit_target): New static helper function.
703 (quit_force): Moved code to quit_target(). Call quit_target()
704 via catch_errors() to catch errors during quit.
705
706 2003-09-11 David Carlton <carlton@kealia.com>
707
708 * buildsym.c (finish_block): Use allocate_block to allocate the
709 block.
710 * mdebugread.c (new_block): Add FIXME.
711
712 2003-09-11 David Carlton <carlton@kealia.com>
713
714 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
715 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
716 (recursive_dump_type): Ditto.
717 * printcmd.c (print_formatted): Ditto.
718 * typeprint.c (print_type_scalar): Ditto.
719 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
720 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
721 * cp-support.h: Declare cp_check_possible_namespace_symbols,
722 maint_cplus_cmd_list.
723 * cp-support.c: Make maint_cplus_cmd_list extern.
724 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
725 command.h.
726 (lookup_symbol_file): Look in possible namespace blocks when
727 appropriate.
728 (initialize_namespace_symtab): New.
729 (get_possible_namespace_block, free_namespace_block)
730 (check_possible_namespace_symbols)
731 (check_possible_namespace_symbols_loop)
732 (check_one_possible_namespace_symbol)
733 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
734 (_initialize_cp_namespace): Ditto.
735 * block.h: Declare allocate_block.
736 * block.c (allocate_block): New.
737 * jv-lang.c (get_java_class_symtab): Allocate blocks via
738 allocate_block.
739 * symfile.h: Update declaration of add_psymbol_to_list.
740 * symfile.c (add_psymbol_to_list): Return the partial symbol in
741 question.
742 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
743 scan_partial_symbols_call.
744 (scan_partial_symbols): Add NAMESPACE argument; update calls to
745 helper functions.
746 (add_partial_symbol): If necessary, scan mangled names for names
747 of namespaces.
748 (add_partial_namespace): Add NAMESPACE argument; generate partial
749 symbols associated to namespaces.
750 (add_partial_enumeration): Add NAMESPACE argument.
751 (new_symbol): Allow namespace syms.
752 (read_namespace): Generate namespace syms.
753 * objfiles.h: Add opaque declaration of struct symtab.
754 (struct objfile): Add cp_namespace_symtab member.
755 * objfiles.c (allocate_objfile): Set
756 objfile->cp_namespace_symtab.
757 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
758 dictionary_h, command_h.
759
760 2003-09-11 Andrew Cagney <cagney@redhat.com>
761
762 * rs6000-tdep.c (rs6000_push_dummy_call): Use
763 regcache_raw_write_signed to set SP_REGNUM, move the operation to
764 near the function's end.
765 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
766 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
767 regcache_raw_write_signed to set SP_REGNUM.
768
769 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
770
771 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
772 orig_addrs is set up properly.
773
774 2003-09-11 Andrew Cagney <cagney@redhat.com>
775
776 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
777 * gdbarch.h, gdbarch.c: Re-generate.
778 * infcall.c (call_function_by_hand): Update.
779 * hppa-tdep.c (hppa_push_arguments): Update.
780 * ada-lang.c (place_on_stack): Update.
781 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
782 * sparc-tdep.c (sparc_gdbarch_init): Update.
783 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
784 * hppa-tdep.c (hppa_gdbarch_init): Update.
785 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
786 stack_align.
787
788 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
789
790 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
791 register do need a frame.
792
793 2003-09-11 Andrew Cagney <cagney@redhat.com>
794
795 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
796 buildable since GDB 5.0.
797 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
798 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
799 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
800 * irix4-nat.c: Delete file.
801 * config/mips/irix4.mh: Delete file.
802 * config/mips/irix3.mh: Delete file.
803 * config/mips/irix3.mt: Delete file.
804 * config/mips/tm-irix3.h: Delete file.
805 * config/mips/nm-irix3.h: Delete file.
806 * config/mips/xm-irix3.h: Delete file.
807 * config/mips/nm-irix4.h: Delete file.
808 * config/mips/xm-irix4.h: Delete file.
809 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
810
811 2003-09-10 J. Brobecker <brobecker@gnat.com>
812
813 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
814 * Makefile.in (hppa-tdep.o): Update dependencies.
815
816 2003-09-10 James E Wilson <wilson@specifixinc.com>
817
818 * MAINTAINERS: Change my e-mail address. Move to paper trail
819 section.
820
821 2003-09-10 Kevin Buettner <kevinb@redhat.com>
822
823 * MAINTAINERS (frv): New ISA entry.
824
825 2003-09-10 Kevin Buettner <kevinb@redhat.com>
826
827 * frv-tdep.c (dis-asm.h): Include.
828 * Makefile.in (frv-tdep.o): Update dependencies.
829
830 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
831
832 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
833 Fix typo for high range of floating registers.
834
835 2003-09-09 David Carlton <carlton@kealia.com>
836
837 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
838 highpc initialization here out of scan_partial_symbols.
839 (scan_partial_symbols): Restructure into a recursive version,
840 calling add_partial_namespace and add_partial_enumeration when
841 appropriate.
842 (add_partial_namespace): New.
843 (add_partial_enumeration, locate_pdi_sibling): Ditto.
844
845 2003-09-09 Andrew Cagney <cagney@redhat.com>
846
847 * rs6000-tdep.c (ppc_push_return_address): Delete function.
848 (rs6000_push_dummy_call): Set LR to BP_ADDR.
849 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
850 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
851
852 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
853 (rs6000_push_dummy_call): Set the "TOC" register.
854
855 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
856 methods "max_register_raw_size", "max_register_virtual_size" or
857 "register_virtual_size".
858
859 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
860
861 * MAINTAINERS: Update my e-mail address.
862
863 2003-09-09 Andrew Cagney <cagney@redhat.com>
864
865 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
866 (rs6000_push_dummy_call): Store the struct return address.
867 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
868
869 2003-09-09 Andrew Cagney <cagney@redhat.com>
870
871 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
872 "ppc_sysv_abi_push_arguments".
873 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
874 "ppc_sysv_abi_push_arguments".
875 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
876 instead of "push_arguments".
877 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
878
879 2003-09-09 Andrew Cagney <cagney@redhat.com>
880
881 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
882 instead of CALL_DUMMY_ADDRESS.
883
884 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
885
886 * p-lang.c: Eliminate "register".
887 * c-lang.c: Ditto.
888 * expprint.c: Ditto.
889 * f-lang.c: Ditto.
890 * jv-lang.c: Ditto.
891 * language.c: Ditto.
892 * m2-lang.c: Ditto.
893 * parse.c: Ditto.
894 * scm-lang.c: Ditto.
895 * objc-lang.c: Ditto.
896
897 2003-09-09 Nick Clifton <nickc@redhat.com>
898
899 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
900
901 2003-09-04 Andrew Cagney <cagney@redhat.com>
902
903 * avr-tdep.c: Include "dis-asm.h".
904 * cris-tdep.c: Include "dis-asm.h".
905 (cris_delayed_get_disassembler): Use "struct disassemble_info"
906 instead of corresponding typedef.
907 * h8300-tdep.c: Include "dis-asm.h".
908 * ia64-tdep.c: Include "dis-asm.h".
909 * i386-tdep.c: Include "dis-asm.h".
910 (i386_print_insn): Use "struct disassemble_info" instead of
911 corresponding typedef.
912 * m68k-tdep.c: Include "dis-asm.h".
913 * mcore-tdep.c: Include "dis-asm.h".
914 * mips-tdep.c: Include "dis-asm.h".
915 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
916 instead of corresponding typedef.
917 * ns32k-tdep.c: Include "dis-asm.h".
918 * s390-tdep.c: Include "dis-asm.h".
919 * sparc-tdep.c: Include "dis-asm.h".
920 * vax-tdep.c: Include "dis-asm.h".
921 * v850-tdep.c: Include "dis-asm.h".
922 * mn10300-tdep.c: Include "dis-asm.h".
923 * rs6000-tdep.c: Include "dis-asm.h".
924 * xstormy16-tdep.c: Include "dis-asm.h".
925 (_initialize_xstormy16_tdep): Delete "extern" declaration of
926 print_insn_xstormy16.
927 * Makefile.in (v850-tdep.o): Update dependencies.
928 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
929 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
930 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
931 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
932 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
933 (gdbarch_h): Remove $(dis_asm_h).
934 * disasm.c: Include "dis-asm.h".
935 (dis_asm_read_memory): Use "struct disassemble_info" instead of
936 corresponding typedef.
937 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
938 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
939 * gdbarch.sh: Do not include "dis-asm.h".
940 (struct disassemble_info): Declare opaque.
941 (TARGET_PRINT_INSN): Update declaration.
942 * gdbarch.h, gdbarch.c: Re-generate.
943
944 2003-09-08 Andrew Cagney <cagney@redhat.com>
945
946 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
947 CALL_DUMMY_ADDRESS, change to a predicate.
948 * gdbarch.h, gdbarch.c: Re-generate.
949 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
950 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
951 * infcall.c (call_function_by_hand): Ditto.
952 * sparc-tdep.c (sparc_push_return_address): Ditto.
953 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
954 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
955 CALL_DUMMY_ADDRESS with entry_point_address.
956 * v850-tdep.c (v850_push_return_address): Ditto.
957 * s390-tdep.c (s390_push_return_address): Ditto.
958 * rs6000-tdep.c (ppc_push_return_address): Ditto.
959 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
960 * mcore-tdep.c (mcore_push_return_address): Ditto.
961 * cris-tdep.c (cris_push_return_address): Ditto.
962 * arm-tdep.c (arm_push_return_address): Ditto.
963
964 2003-09-08 Andrew Cagney <cagney@redhat.com>
965
966 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
967 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
968 and REG_UNMODIFIED to REG_SAME_VALUE.
969 (execute_cfa_program): Update.
970 (dwarf2_frame_cache): Update. Initialize table to
971 REG_UNSPECIFIED, complain if CFI fails to specify a register's
972 location.
973 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
974
975 2003-09-08 Andrew Cagney <cagney@redhat.com>
976
977 * gnu-nat.c: Remove "inline" function attribute.
978 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
979
980 2003-09-08 Kevin Buettner <kevinb@redhat.com>
981
982 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
983 target.
984
985 2003-09-08 Kevin Buettner <kevinb@redhat.com>
986
987 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
988 (frame_extra_info): Rename this struct to frv_unwind_cache.
989 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
990 Add fields ``prev_sp'' and ``base''.
991 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
992 (frv_saved_pc_after_call, frv_init_extra_frame_info)
993 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
994 Delete.
995 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
996 Revise all callers. Fill in the unwind cache argument and make
997 other adjustments to account for new frame mechanisms.
998 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
999 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1000 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1001 (frv_frame_unwind, frv_frame_base): New structs.
1002 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1003 additional arguments expected by this method and adjust function
1004 body accordingly.
1005 (frv_gdbarch_init): Remove calls to the following functions:
1006 set_gdbarch_deprecated_init_frame_pc(),
1007 set_gdbarch_deprecated_saved_pc_after_call(),
1008 set_gdbarch_deprecated_frame_chain(),
1009 set_gdbarch_deprecated_frame_saved_pc(),
1010 set_gdbarch_deprecated_frame_init_saved_regs(),
1011 set_gdbarch_deprecated_push_arguments(),
1012 set_gdbarch_deprecated_push_return_address(),
1013 set_gdbarch_deprecated_pop_frame(),
1014 set_gdbarch_deprecated_call_dummy_words(),
1015 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1016 set_gdbarch_deprecated_init_extra_frame_info(),
1017 set_gdbarch_deprecated_dummy_write_sp(), and
1018 set_gdbarch_deprecated_pc_in_call_dummy().
1019 Add calls to the following functions:
1020 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1021 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1022 frame_base_set_default().
1023 * Makefile.in (frv-tdep.o): Update dependencies.
1024
1025 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1026
1027 * dwarf2-frame.c (read_encoded_value): Add support for
1028 DW_EH_PE_aligned encoding.
1029
1030 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1031
1032 * infrun.c (normal_stop): Don't print a message if the inferior
1033 has exited.
1034
1035 2003-09-08 Jim Blandy <jimb@redhat.com>
1036
1037 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1038 * dbxread.c: #include "gdb_assert.h".
1039 (read_dbx_symtab): If the objfile has no .data section, use the
1040 section index for the .bss section instead.
1041
1042 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1043
1044 * frame.c (deprecated_safe_get_selected_frame): New function.
1045 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1046 * findvar.c (read_var_value): Call it.
1047
1048 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1049
1050 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1051 (sh64-tdep.o): Add dependencies.
1052 * configure.tgt: Add FIXME to sh-*-linux*.
1053 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1054 (sh_gdbarch_init): Always set correct sh_show_regs function
1055 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1056 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1057 * sh64-tdep.c: New file, containing all sh64 related code from
1058 sh-tdep.c.
1059 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1060 * config/sh/linux.mt (TDEPFILES): Ditto.
1061 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1062 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1063 * config/sh/wince.mt (TDEPFILES): Ditto.
1064
1065 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1066
1067 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1068 (stop_wait_callback): Handle !lp->signalled also.
1069 (lin_lwp_has_pending, flush_callback): New functions.
1070 (lin_lwp_wait): Call flush_callback.
1071 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1072 (linux_proc_pending_signals): New function.
1073 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1074
1075 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1076
1077 From Nick Kelsey <nickk@ubicom.com>:
1078 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1079 when the stop PC is at the beginning of a function also.
1080
1081 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1082
1083 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1084 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1085
1086 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1087
1088 * sol-thread.c: Include "gdb_string.h".
1089
1090 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1091
1092 * gcore.c: Reorder include files in alphabetical order. Include
1093 "gdb_assert.h". Various coding style fixes.
1094 (derive_stack_segment, derive_heap_segment): Replace check for
1095 non-null BOTTOM and TOP with gdb_assert.
1096 (derive_heap_segment): Replace check for successful creation of
1097 ZERO with gdb_assert.
1098 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1099
1100 2003-09-04 Andrew Cagney <cagney@redhat.com>
1101
1102 * thread-db.c (verbose_dlsym): New function.
1103 (thread_db_load): Use verbose_dlsym
1104 (thread_db_new_objfile): Print that libthread_db was loaded, and
1105 that thread debugging was enabled.
1106
1107 2003-09-04 Andrew Cagney <cagney@redhat.com>
1108
1109 * configure.tgt: Add "mips64*-*-*" target. Delete
1110 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1111 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1112 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1113 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1114 mips*-sony-*, and mips64*-*-elf* targets.
1115 * config/mips/embedl.mt: Delete file.
1116 * config/mips/embedl64.mt: Delete file.
1117 * config/mips/mips.mt: Delete file.
1118 * config/mips/mips64.mt: Delete file.
1119 * config/mips/tm-embed.h: Delete file.
1120 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1121 * config/mips/embed64.mt: Delete out-of-date comment.
1122
1123 2003-09-04 Andrew Cagney <cagney@redhat.com>
1124
1125 * hppa-tdep.c (hppa_gdbarch_init): Set
1126 "have_nonsteppable_watchpoint".
1127 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1128 * mips-tdep.c (mips_dump_tdep): Do not print
1129 HAVE_NONSTEPPABLE_WATCHPOINT.
1130 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1131 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1132 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1133 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1134
1135 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1136
1137 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1138 unused code. Add comment.
1139
1140 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1141
1142 * breakpoint.c (watchpoint_check): Check for pc being in an
1143 epilogue if watchpoint frame couldn't be found.
1144
1145 2003-09-04 Andrew Cagney <cagney@redhat.com>
1146
1147 * Makefile.in: Re-generate all dependencies.
1148
1149 2003-09-03 Andrew Cagney <cagney@redhat.com>
1150
1151 * arch-utils.h (legacy_print_insn): Delete declaration.
1152 * arch-utils.c (legacy_print_insn): Delete function.
1153 * disasm.c (deprecated_tm_print_insn_info): Delete.
1154 (_initialize_disasm): Delete function, contained code initializing
1155 deprecated_tm_print_insn_info.
1156 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1157 (deprecated_tm_print_insn_info): Delete.
1158 (TARGET_PRINT_INSN): Do not provide a default.
1159 * gdbarch.h, gdbarch.c: Re-generate.
1160
1161 2003-09-03 Andrew Cagney <cagney@redhat.com>
1162
1163 * disasm.c (fprintf_disasm): New function.
1164 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1165 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1166 reverts 2003-08-14 change.
1167 (_initialize_disasm): Call "init_disassemble_info", instead of
1168 INIT_DISASSEMBLE_INFO_NO_ARCH.
1169
1170 2003-09-03 Michael Snyder <msnyder@redhat.com>
1171
1172 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1173
1174 2003-09-03 Andrew Cagney <cagney@redhat.com>
1175
1176 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1177 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1178 * symfile.c (syms_from_objfile): Update.
1179 (reread_symbols): `Update
1180 * exec.c (exec_file_attach): Update.
1181 (exec_file_attach): Update.
1182 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1183 2003-08-29 change.
1184 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1185
1186 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1187
1188 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1189 trad-frame.h.
1190 (arm_get_cache): Delete macro.
1191 (struct arm_prologue_cache): Update comments. Make saved_regs into
1192 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1193 to prev_sp.
1194 (thumb_scan_prologue): Update for cache changes. Don't call
1195 DEPRECATED_PC_IN_CALL_DUMMY.
1196 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1197 argument and use it in desperation search for our prologue. Do not
1198 search past the specified PC.
1199 (arm_make_prologue_cache): Simplify.
1200
1201 (arm_prologue_this_id, arm_prologue_prev_register)
1202 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1203 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1204 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1205 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1206 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1207
1208 (arm_frame_chain_valid, arm_find_callers_reg)
1209 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1210 (arm_pop_frame): Delete obsolete methods.
1211 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1212
1213 (arm_gdbarch_init): Update for new frame methods. Register prologue
1214 and sigtramp unwinders. Set the default frame base method.
1215
1216 * Makefile.in (arm-tdep.o): Update dependencies.
1217 * varobj.c (find_frame_addr_in_frame_chain): Call
1218 get_frame_base_address.
1219 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1220
1221 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1222
1223 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1224 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1225 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1226 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1227 Take NEXT_FRAME and CACHE arguments. Call
1228 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1229 Set unwound_pc in CACHE instead of modifying the frame argument.
1230 Don't bother checking the frame type when looking for sigtramp
1231 frames.
1232 (arm_make_prologue_cache, arm_frame_chain)
1233 (arm_init_extra_frame_info): New functions.
1234
1235 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1236
1237 * arm-tdep.c (arm_get_cache): Define.
1238 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1239 unwound_sp, unwound_pc, and saved_regs.
1240 (thumb_scan_prologue): Take a cache instead of the frame.
1241 (arm_scan_prologue): Likewise.
1242 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1243 instead of a temporary frame.
1244 (arm_init_extra_frame_info): Allocate and use a cache.
1245 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1246
1247 2003-09-03 Andrew Cagney <cagney@redhat.com>
1248
1249 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1250 * config/mips/wince.mt (TM_CLIBS): Ditto.
1251 * config/sh/wince.mt (TM_CLIBS): Ditto.
1252 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1253 * config/sparc/sp64.mt (CC): Delete.
1254
1255 2003-09-03 Andrew Cagney <cagney@redhat.com>
1256
1257 * defs.h: Do not include "arch-utils.h".
1258 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1259 GDB_MULTI_ARCH_PURE.
1260 * configure.in (GDB_MULTI_ARCH): Do not define.
1261 * configure, config.in: Regenerate.
1262 * configure.tgt: Do not set variable "gdb_multi_arch".
1263 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1264 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1265 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1266 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1267 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1268 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1269 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1270 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1271 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1272 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1273 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1274 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1275 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1276 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1277 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1278 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1279 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1280 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1281
1282 2003-08-30 Michael Chastain <mec@shout.net>
1283
1284 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1285 * config/m68k/nm-hp300hpux.h: Delete.
1286 * config/m68k/tm-hp300hpux.h: Delete.
1287 * config/m68k/xm-hp300hpux.h: Delete.
1288 * config/m68k/xm-hp300bsd.h: Delete.
1289 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1290 tm-hp300hpux.h, xm-hp300hpux.h.
1291 * somsolib.c: Remove comment about hp300 shared libraries.
1292
1293 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1294
1295 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1296 Only define PTRACE_GET_THREAD_AREA is not already defined.
1297 Various style fixes in code and comments and some additional
1298 spelling fixes in comments. Move after functions dealing with
1299 debug registers.
1300 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1301 Fix coding-style.
1302
1303 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1304 frame_unwind_register_unsigned instead of
1305 frame_unwind_unsigned_register.
1306
1307 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1308
1309 * configure.in: Search for gethostbyname in libnsl.
1310 * configure: Regenerated.
1311
1312 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1313
1314 * configure.in: Remove redundant AC_MSG_RESULT in check for
1315 uintptr_t in stdint.h.
1316 * configure: Regenerated.
1317
1318 * amd64-nat.h (struct regcache): Add opaque declaration.
1319
1320 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1321 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1322 Change "register array" to "register cache" in comments.
1323 (x86_64_linux_gregset64_reg_offset): New variable.
1324 (GETREGS_SUPPLIES): Remove macro.
1325 (supply_gregset): Call amd64_supply_native_gregset instead of
1326 x86_64_linux_supply_gregset.
1327 (fill_gregset): Rename `regno' to `regnum'. Call
1328 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1329 (store_regs): Rename `regno' to `regnum'.
1330 (store_fpregs): Rename `regno' to `regnum'.
1331 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1332 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1333 Reorganize function a bit.
1334 (store_inferior_registers): Rename `regno' to `regnum'. Use
1335 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1336 Reorganize function a bit.
1337 (_initialize_x86_64_linux_nat): New function.
1338 * config/i386/x86-64linux.mh.
1339
1340 2003-08-29 Andrew Cagney <cagney@redhat.com>
1341
1342 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1343 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1344 (target_remove_watchpoint): Delete macro.
1345 (target_insert_watchpoint): Delete macro.
1346 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1347 (remote_mips_stopped_by_watchpoint): Delete declaration.
1348 (remote_mips_remove_watchpoint): Delete declaration.
1349 (remote_mips_set_watchpoint): Delete declaration.
1350 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1351 * remote-mips.c (_initialize_remote_mips): Set
1352 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1353 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1354 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1355 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1356 (mips_stopped_by_watchpoint): Rename
1357 remote_mips_stopped_by_watchpoint.
1358 (mips_can_hardware_watchpoint): Rename
1359 remote_mips_can_use_hardware_watchpoint, update function
1360 signature.
1361
1362 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1363
1364 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1365 USER_DS. We haven't given them a register number yet.
1366
1367 * amd64-nat.h: New file.
1368 * amd64-nat.c: New file.
1369 * amd64fbsd-nat.c: Include "amd64-nat.h".
1370 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1371 (amd64fbsd32_r_reg_offset): New variable.
1372 (supply_gregset): Simply call amd64_supply_native_gregset.
1373 (fill_gregset): Rename `regno' to `regnum'. Simply call
1374 amd64_collect_native_gregset.
1375 (fill_fpregset): Rename `regno' to `regnum'.
1376 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1377 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1378 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1379 `fpregset_t'. Call amd64_supply_native_gregset instead of
1380 supply_gregset. Call x86_64_supply_fxsave instead of
1381 supply_fpregset.
1382 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1383 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1384 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1385 `fpregset_t'. Call amd64_collect_native_gregset instead of
1386 fill_gregset. Call x86_64_collect_fxsave instead of
1387 fill_fpregset.
1388 (_initialize_am64fbsd_nat): Initialize
1389 amd64_native_gregset32_reg_offset and
1390 amd64_native_gregset64_reg_offset.
1391 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1392
1393 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1394 null pointer. Fix typo in comment.
1395
1396 * regcache.c (supply_register): Reimplement to call
1397 regcache_raw_supply.
1398 (regcache_collect): Reimplement by calling regcache_raw_collect.
1399
1400 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1401
1402 * regcache.c (register_buffer): Consitify first argument.
1403 (regcache_raw_supply, regcache_raw_collect): New
1404 functions.
1405
1406 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1407
1408 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1409 by Nathan J. Williams.
1410
1411 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1412
1413 * lin-lwp.c (wait_lwp): New function, copied from
1414 stop_wait_callback. Clean up.
1415 (stop_wait_callback): Use wait_lwp.
1416
1417 2003-08-28 Andrew Cagney <cagney@redhat.com>
1418
1419 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1420 flavour and disassembler options.
1421 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1422 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1423 deprecated_tm_print_insn_info.
1424
1425 2003-08-27 Andrew Cagney <cagney@redhat.com>
1426
1427 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1428 Use target_read_memory.
1429 (s390_get_frame_info): Update. Do not reference
1430 deprecated_tm_print_insn_info.
1431 (s390_check_function_end, s390_is_sigreturn): Ditto.
1432
1433 2003-08-27 Andrew Cagney <cagney@redhat.com>
1434
1435 * Makefile.in (cris-tdep.o): Update dependencies.
1436 * cris-tdep.c: Include "gdb_assert.h".
1437 (cris_gdbarch_init): Set print_insn.
1438 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1439 (cris_delayed_get_disassembler): Simplify, directly call the
1440 disassembler returned by cris_get_disassembler.
1441 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1442 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1443 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1444 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1445 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1446 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1447 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1448 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1449 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1450 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1451 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1452 (gdb_print_insn_sparc): Delete function.
1453 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1454 deprecated_tm_print_insn_info.
1455 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1456 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1457 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1458 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1459 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1460 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1461 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1462 (s390_gdbarch_init): Set print_insn.
1463
1464 2003-08-27 Andrew Cagney <cagney@redhat.com>
1465
1466 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1467 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1468 * infcall.c (call_function_by_hand): Convert the entry point
1469 address into a code address.
1470
1471 2003-08-27 Andrew Cagney <cagney@redhat.com>
1472
1473 * dsrec.c: Include "gdb_string.h".
1474 * Makefile.in (dsrec.o): Update dependencies.
1475
1476 2003-08-27 Michael Chastain <mec@shout.net>
1477
1478 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1479
1480 2003-08-27 Andrew Cagney <cagney@redhat.com>
1481
1482 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1483 (alpha_osf1_init_abi): Do not set call_dummy_address.
1484
1485 2003-08-27 David Carlton <carlton@kealia.com>
1486
1487 From Randolph Chung <tausq@debian.org>:
1488 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1489 compiles with -Wformat-nonliteral -Werror.
1490
1491 2003-08-26 Jim Blandy <jimb@redhat.com>
1492
1493 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1494 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1495 bfd_lookup_symbol, since we only want symbols in code sections.
1496 (look_for_base): Pass zero as the SECT_FLAGS argument to
1497 bfd_lookup_symbol, since we're not concerned about which section
1498 the symbol is in.
1499
1500 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1501
1502 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1503 we are frameless or the return address register is already known.
1504
1505 2003-08-26 Andrew Cagney <cagney@redhat.com>
1506
1507 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1508 in size. Add comments.
1509
1510 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1511
1512 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1513 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1514
1515 2003-08-26 Jason Merrill <jason@redhat.com>
1516
1517 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1518 case out of #ifdef MIPS block.
1519
1520 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1521
1522 PR java/1322
1523 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1524 available before calling SECT_OFF_TEXT.
1525 * PROBLEMS: Remove description of java/1322.
1526
1527 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1528
1529 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1530 bof, and nat0-nat127 as pseudo-registers.
1531 (ia64_frame_cache): New struct used to cache frame info.
1532 (ia64_register_reggroup_p): New routine used to override default
1533 register grouping so registers without names are still saved and
1534 restored.
1535 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1536 pseudo values.
1537 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1538 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1539 (ia64_alloc_frame_cache): New routine to create a new
1540 ia64_frame_cache.
1541 (examine_prologue): Change prototype to add next_frame pointer.
1542 Assume frameless until otherwise proven. Verify that the cfm for
1543 current frame matches the cfm that should occur for the prologues
1544 alloc insn and if equal, mark as not frameless. At end of routine,
1545 if not frameless, calculate registers for the previous frame and store
1546 in the cache, if a cache is provided.
1547 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1548 and pass 0 for next_frame.
1549 (ia64_store_return_value): Change to use convert_typed_floating()
1550 instead of calling ia64_convert_to_raw().
1551 (ia64_extract_return_value): Change to use convert_typed_floating()
1552 instead of calling ia64_convert_to_virtual().
1553 (ia64_frame_cache): New routine to support new frame model.
1554 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1555 (ia64_frame_sniffer): Ditto.
1556 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1557 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1558 (ia64_sigtramp_frame_prev_register): Ditto.
1559 (ia64_sigtramp_frame_sniffer): Ditto.
1560 (ia64_frame_base_address): Ditto.
1561 (ia64_extract_struct_value_address): Change to issue error message.
1562 (ia64_frame_align): New routine to align sp.
1563 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1564 (ia64_push_arguments): Removed. Logic moved to
1565 ia64_push_dummy_call().
1566 (ia64_push_return_address): Ditto.
1567 (ia64_unwind_dummy_id): New function.
1568 (ia64_unwind_pc): Ditto.
1569 (ia64_convert_register_p): Ditto.
1570 (ia64_register_to_value): Ditto.
1571 (ia64_value_to_register): Ditto.
1572 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1573 (ia64_register_byte, ia64_register_raw_size): Ditto.
1574 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1575 (ia64_saved_pc_after_call): Ditto.
1576 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1577 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1578 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1579 (ia64_register_convert_to_raw): Ditto.
1580 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1581 (ia64_init_extra_frame_info): Ditto.
1582 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1583 (ia64_gdbarch_init): Remove registering of deprecated functions that
1584 are no longer used. Add registration of new gdbarch functions.
1585 Remove registering deprecated_write_sp. Replace
1586 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1587 Delete set_gdbarch_deprecated_register_convertible(),
1588 set_gdbarch_deprecated_register_convert_to_virtual(), and
1589 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1590 set_gdbarch_deprecated_register_size(),
1591 set_gdbarch_deprecated_register_bytes(),
1592 set_gdbarch_pcregnum(),
1593 set_gdbarch_deprecated_register_byte(),
1594 set_gdbarch_deprecated_register_raw_size(),
1595 set_gdbarch_deprecated_max_register_raw_size(),
1596 set_gdbarch_deprecated_register_virtual_size(),
1597 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1598 Replace set_gdbarch_deprecated_extract_return_value() with
1599 set_gdbarch_extract_return_value(). Remove calls to:
1600 set_gdbarch_deprecated_saved_pc_after_call();
1601 set_gdbarch_deprecated_frame_chain(),
1602 set_gdbarch_deprecated_frame_saved_pc(),
1603 set_gdbarch_deprecated_frame_init_saved_regs(),
1604 set_gdbarch_deprecated_get_saved_register(),
1605 set_gdbarch_deprecated_call_dummy_words(),
1606 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1607 set_gdbarch_deprecated_init_extra_frame_info(),
1608 set_gdbarch_deprecated_frame_args_address(),
1609 set_gdbarch_deprecated_frame_locals_address(),
1610 and set_gdbarch_deprecated_dummy_write_sp().
1611 Add set_gdbarch_convert_register_p(),
1612 set_gdbarch_register_to_value(),
1613 set_gdbarch_value_to_register(),
1614 set_gdbarch_push_dummy_call(),
1615 set_gdbarch_frame_align(),
1616 set_gdbarch_unwind_dummy_id(),
1617 set_gdbarch_unwind_pc(),
1618 frame_unwind_append_sniffer(),
1619 frame_unwind_append_sniffer(),
1620 and frame_base_set_default().
1621
1622 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1623
1624 * configure.tgt: Document need for special "mipsisa64" handling.
1625 (mipsisa64*-*-linux64): Handle as target linux64.
1626 (mipsisa64*-*-*): Handle as target embed64.
1627
1628 2003-08-18 Michael Chastain <mec@shout.net>
1629
1630 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1631 objfile bug.
1632
1633 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1634
1635 * i387-tdep.h: Update copyright date.
1636 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1637
1638 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1639 CFLAGS games to reflect reality.
1640
1641 2003-08-24 Andrew Cagney <cagney@redhat.com>
1642
1643 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1644 GDB_MULTI_ARCH is always non-zero.
1645 * osabi.c (_initialize_gdb_osabi): Ditto.
1646 (gdbarch_init_osabi): Ditto.
1647 * sparc-tdep.c: Ditto for #if code.
1648
1649 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1650
1651 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1652 Update comments.
1653 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1654 comments.
1655 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1656 x86_64_supply_fxsave.
1657 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1658 x86_64_supply_fxsave.
1659 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1660 x86_64_supply_fxsave.
1661
1662 2003-08-23 Andreas Jaeger <aj@suse.de>
1663
1664 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1665 i387_supply_fxsave.
1666
1667 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1668
1669 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1670 i387_supply_register.
1671 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1672 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1673 i387_supply_fsave.
1674 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1675 i387_supply_fxsave.
1676 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1677 i387_supply_fsave.
1678 * i386bsd-nat.c (supply_fpregset): Adjust call to
1679 i387_supply_fsave.
1680 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1681 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1682 supply_fpregset.
1683 (store_inferior_registers): Remove extraneous whitespace. Call
1684 i387_fill_fsave instead of fill_fpregset.
1685 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1686 (supply_fpregset): Likewise.
1687 * i386v4-nat.c (supply_fpregset): Adjust call to
1688 i387_supply_fsave.
1689 * i386-interix-nat.c (supply_fpregset): Adjust call to
1690 i387_supply_fsave.
1691 * i386-linux-nat.c (supply_fpregset): Adjust call to
1692 i387_supply_fsave.
1693 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1694 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1695 i387supply_fsave and i387_supply_fxsave.
1696 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1697 Incorporate code from `i387_supply_register.
1698 (i387_supply_register): Remove.
1699 (i387_supply_fxsave): Add `regnum' argument.
1700 Update comments.
1701 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1702 prototype.
1703 (i387_supply_register): remove prototype.
1704 Update comments.
1705
1706 2003-08-22 Michael Chastain <mec@shout.net>
1707
1708 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1709 Add lines for files in gdb/testsuite/gdb.cp/* that are
1710 still not 8.3 unique.
1711
1712 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1713
1714 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1715 TYPE_VPTR_FIELDNO is valid.
1716
1717 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1718
1719 * utils.c (set_width_command): Remove prototypes.
1720 (set_screen_size): New prototype.
1721 (init_page_info): Simplify by fetching the screen size from
1722 Readline. Call set_screen_size.
1723 (set_screen_size): New function.
1724 (set_width): Add missing whitespace in comment.
1725 (set_width_command): Call set_screen_size.
1726 (set_height_command): New function.
1727 (initialize_utils): Fix formatting. Make "set height" command
1728 call set_height_command. Remove redundant code that turns off
1729 pagination if output isn't a terminal. Remove redundant call to
1730 set_width_command.
1731
1732 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1733
1734 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1735 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1736 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1737 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1738 `case' keyword.
1739 (sparc64_register_info): Give the reister with number
1740 SPARC64_STATE_REGNUM a name.
1741 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1742 %asi and %ccr.
1743 (sparc64_push_dummy_call): Take BIAS into account when checking
1744 stcak alignment.
1745 (sparc_software_single_step): Remove assertions that check whether
1746 NPC and NNPC were zero.
1747 (sparc_supply_rwindow): Make public. Merge functionality with
1748 sparc64_supply_rwindow.
1749 (sparc_fill_rwindow): Make public. Merge functionality with
1750 sparc64_fill_rwindow.
1751 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1752 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1753 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1754 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1755 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1756
1757 * reggroups.c: Add whitespace after declarations of local
1758 variables in functions.
1759
1760 2003-08-21 Michael Chastain <mec@shout.net>
1761
1762 * gdbtypes.h: Change array bound type from an int to enum.
1763
1764 2003-08-21 Andrew Cagney <cagney@redhat.com>
1765
1766 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1767 * config/sparc/tm-sparc.h: Ditto.
1768 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1769 unconditionally.
1770 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1771
1772 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1773
1774 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1775 (register_objfile_data, set_objfile_data, objfile_data): New
1776 prototypes.
1777 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1778 prototypes.
1779 (allocate_objfile): Call objfile_alloc_data.
1780 (free_objfile): Call objfile_free_data.
1781 (struct objfile_data): New.
1782 (struct objfile_data_registration): New.
1783 (struct objfile_data_registry): New.
1784 (objfile_data_registry): New variable.
1785 (register_objfile_data): New function.
1786 (objfile_alloc_data, objfile_free_data): New functions.
1787 (set_objfile_data, objfile_data): New functions.
1788 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1789 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1790 (_initialize_dwarf2_frame): New function and prototype.
1791
1792 2003-08-21 Andrew Cagney <cagney@redhat.com>
1793
1794 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1795 a specific architecture.
1796 * arch-utils.h (set_architecture_from_arch_mach): Delete
1797 declaration.
1798 (target_architecture_hook): Delete declaration.
1799 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1800 (default_float_format): Assume GDB_MULTI_ARCH.
1801 (default_double_format): Assume GDB_MULTI_ARCH.
1802 (set_endian_from_file): Delete function.
1803 (arch_ok): Delete function.
1804 (set_arch): Delete function.
1805 (set_architecture_from_arch_mach): Delete function.
1806 (set_architecture_from_file): Delete function.
1807 (set_architecture): Assume GDB_MULTI_ARCH.
1808 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1809
1810 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1811
1812 Rewrite FreeBSD/sparc64 native configuration.
1813 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1814 * sparc64fbsd-nat.c: New file.
1815 * sparc64fbsd-tdep.c: New file.
1816 * sparc64-tdep.c sparc64-tdep.h: New files.
1817 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1818 sparc64fbsd-tdep.o): New dependencies.
1819 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1820 and sparc64fbsd-tdep.c.
1821 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1822 * config/sparc/fbsd.mh: Remove copyright notice.
1823 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1824 sparcbsd-nat.o.
1825 * config/sparc/fbsd.mt: Remove copyright notice.
1826 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1827 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1828 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1829 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1830 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1831 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1832 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1833 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1834 "sparc/tm-sp64.h".
1835 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1836 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1837
1838 2003-08-21 Michael Chastain <mec@shout.net>
1839
1840 * symtab.h: Add doco on the space critical structures and
1841 some measurements of space usage.
1842
1843 2003-08-21 Michael Snyder <msnyder@redhat.com>
1844
1845 * tracepoint.c (trace_dump_command): Trace break address
1846 is subject to DECR_PC_AFTER_BREAK.
1847 (set_traceframe_context): Make "trace_line" an int.
1848 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1849
1850 2003-08-20 Michael Snyder <msnyder@redhat.com>
1851
1852 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1853 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1854 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1855 argument passing.
1856 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1857 functions, replace sh_push_dummy_call.
1858 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1859
1860 2003-08-20 Michael Chastain <mec@shout.net>
1861
1862 * gdbtypes.h (struct main_type): Rearrange to save space.
1863
1864 2003-08-20 Michael Snyder <msnyder@redhat.com>
1865
1866 * trad-frame.c: Comment typo fix.
1867
1868 2003-08-20 Michael Snyder <msnyder@redhat.com>
1869 Kevin Buettner <kevinb@redhat.com>
1870
1871 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1872 (frv_frame_init_saved_regs): Add declaration.
1873 (frame_extra_info): Add new field ``saved_regs''.
1874 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1875 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1876 Update frame related code.
1877 (frv_extract_struct_value_address): Adjust formatting.
1878 * Makefile.in (frv-tdep.o): Update dependencies.
1879 * config/frv/tm-frv.h (target_insert_watchpoint)
1880 (target_remove_watchpoint, target_insert_hw_breakpoint)
1881 (target_remove_hw_breakpoint): Delete these macros.
1882 (remote_insert_watchpoint, remote_remove_watchpoint)
1883 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1884 these declarations.
1885
1886 2003-08-20 Michael Chastain <mec@shout.net>
1887
1888 * defs.h (ENUM_BITFIELD): New macro.
1889 * symtab.h (ENUM_BITFIELD): Use it.
1890 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1891
1892 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1893
1894 * MAINTAINERS (write after approval): Add myself.
1895
1896 2003-08-18 Andrew Cagney <cagney@redhat.com>
1897
1898 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1899 * gdbarch.h, gdbarch.c: Re-generate.
1900 * infcall.c (call_function_by_hand): Adjust the SP by
1901 frame_red_zone_size before allocating any stack space.
1902 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1903 * x86-64-tdep.c (x86_64_frame_align): New function.
1904 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1905
1906 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1907 Remove code adjusting SP so that it skips over the Red Zone.
1908
1909 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1910
1911 * NEWS (New native configurations): Mention FreeBSD/amd64.
1912
1913 2003-08-18 Andrew Cagney <cagney@redhat.com>
1914
1915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1916 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1917 "m68k_frame_p".
1918 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1919
1920 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1921
1922 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1923
1924 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1925
1926 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1927 Define.
1928 * i386-linux-nat.c: Include "linux-nat.h".
1929 (child_post_startup_inferior): New function.
1930
1931 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1932
1933 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1934 at the start of a frameless function. This probably fixes PR
1935 backtrace/1338.
1936
1937 2003-08-17 Michael Chastain <mec@shout.net>
1938
1939 * symfile.c (find_sym_fns): Remove special case for apollo target.
1940
1941 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1942
1943 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1944 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1945 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1946 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1947 (linux_supports_tracevforkdone): New function.
1948 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1949 TRACEVFORKDONE.
1950 (child_follow_fork): Handle vfork.
1951 (linux_handle_extended_wait): Likewise. Also handle exec.
1952 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1953 * NEWS: Mention fork tracing.
1954
1955 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1956
1957 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1958
1959 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1960
1961 * Makefile.in (i386-linux-nat.o): Update dependencies.
1962 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1963 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1964 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1965 * i386-linux-nat.c: Include "linux-nat.h".
1966 (child_post_startup_inferior): New function.
1967 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1968 * infptrace.c (kill_inferior): Wrap in #ifdef.
1969 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1970 attaching to each LWP.
1971 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1972 (init_lin_lwp_ops): Fill in some more operations.
1973 * linux-nat.h (linux_enable_event_reporting)
1974 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1975 prototypes.
1976 * linux-nat.c (linux_enable_event_reporting): New function.
1977 (child_post_attach, linux_child_post_startup_inferior)
1978 (child_post_startup_inferior, child_follow_fork)
1979 (linux_handle_extended_wait, kill_inferior): New functions.
1980
1981 2003-08-16 Andrew Cagney <cagney@redhat.com>
1982
1983 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1984 * gdbarch.h, gdbarch.c: Re-generate.
1985
1986 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1987
1988 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1989
1990 2003-08-16 Andrew Cagney <cagney@redhat.com>
1991
1992 * NEWS: Mention that "set prompt-escape-char" was deleted.
1993 * top.c (get_prompt_1): Delete function.
1994 (gdb_prompt_escape):
1995 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1996 prompt-escape-char" command.
1997 (MAX_PROMPT_SIZE): Delete macro.
1998 (get_prompt): Simplify, do not call get_prompt_1.
1999
2000 2003-08-16 Andrew Cagney <cagney@redhat.com>
2001
2002 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2003 -Werror. -Wformat-nonliteral problems.
2004
2005 2003-08-15 J. Brobecker <brobecker@gnat.com>
2006
2007 Further multiarching work mostly for hppa64-*-hpux11:
2008 * hppa-tdep.h: New file.
2009 * hppa-tdep.c: #include hppa-tdep.c.
2010 (hppa32_num_regs): Renamed from hppa_num_regs.
2011 (hppa64_num_regs): New constant.
2012 (hppa64_call_dummy_breakpoint_offset): New constant.
2013 (hppa32_call_dummy_length): New constant.
2014 (hppa64_call_dummy_length): New constant.
2015 (hppa32_stack_align): Make name 32bit explicit.
2016 (hppa32_register_virtual_type): Likewise.
2017 (hppa32_extract_return_value): Likewise.
2018 (hppa32_use_struct_convention): Likewise.
2019 (hppa32_store_return_value): Likewise.
2020 (hppa64_register_virtual_type): New function.
2021 (hppa64_extract_return_value): New function.
2022 (hppa64_use_struct_convention): New function.
2023 (hppa64_store_return_value): New function.
2024 (hppa_frame_locals_address): Remove declaration, function does
2025 not exist anymore.
2026 (hppa_register_byte): Add support for PA64 ABI.
2027 (hppa_gdbarch_init): Add support for PA64 ABI.
2028 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2029 Make name 32bit explicit.
2030 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2031 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2032 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2033 (hppa64_hpux_frame_base_before_sigtramp): New function.
2034 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2035 * config/pa/tm-hppa64.h: Remove macros that are no longer
2036 necessary now that the gdbarch vector is properly setup.
2037 Transform some macros into function calls. Some minor cleanup.
2038 * config/pa/tm-hppah.h: Update function calls in macros
2039 following the function renaming in hppa-hpux-tdep.c.
2040 * Makefile.in (hppa_tdep_h): New variable.
2041 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2042
2043 2003-08-14 Michael Snyder <msnyder@redhat.com>
2044
2045 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2046
2047 2003-08-13 J. Brobecker <brobecker@gnat.com>
2048
2049 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2050 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2051 routine.
2052
2053 2003-08-13 Michael Snyder <msnyder@redhat.com>
2054
2055 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2056 (frv_saved_pc_after_call): Use deprecated ftype.
2057 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2058 (frv_remote_translate_xfer_address): Remove.
2059 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2060
2061 2003-08-13 J. Brobecker <brobecker@gnat.com>
2062
2063 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2064 initialization after the common gdbarch initialization, not before.
2065
2066 2003-08-13 J. Brobecker <brobecker@gnat.com>
2067
2068 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2069 (ADDR_BITS_REMOVE): Remove, redundant.
2070
2071 2003-08-13 J. Brobecker <brobecker@gnat.com>
2072
2073 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2074 gdbarch method to clear the 2 low bits of text addresses.
2075
2076 2003-08-12 Andrew Cagney <cagney@redhat.com>
2077
2078 * Makefile.in (dsrec.o): Update dependencies.
2079 * dsrec.c: Include "gdb_assert.h".
2080 (make_srec): Use snprintf instead of sprintf, use a literal format
2081 string.
2082
2083 2003-08-12 Andrew Cagney <cagney@redhat.com>
2084
2085 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2086 FRAME_OBSTACK_ZALLOC.
2087
2088 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2089
2090 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2091 SSE registers.
2092
2093 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2094
2095 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2096 amd64fbsd_sc_reg_offset): Add extern declarations.
2097 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2098 declarations.
2099
2100 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2101
2102 * MAINTAINERS (write after approval): Update my mail address.
2103
2104 2003-08-10 Andrew Cagney <cagney@redhat.com>
2105
2106 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2107
2108 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2109
2110 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2111 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2112 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2113 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2114 i386bsd_sc_reg_offset): Add extern declarations.
2115 * i386obsd-nat.c: Include "i386-tdep.h"
2116 (_initialize_i386obsd_nat): Remove extern declarations.
2117 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2118 declarations.
2119 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2120 declarations.
2121
2122 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2123 instead of frame_read_register.
2124 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2125 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2126 SP_REGNUM.
2127 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2128 instead of frame_unwind_unsigned_register. Use
2129 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2130 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2131 instead of read_register. Use builtin_type_void_data_ptr instead
2132 of builtin_type_void_func_ptr when extracting the address of the
2133 jmp_buf.
2134 (i386_extract_return_value, i386_store_return_value,
2135 i386_pseudo_register_read, i386_pseudo_register_write): Use
2136 register_size instead REGISTER_RAW_SIZE.
2137
2138 2003-08-10 Andrew Cagney <cagney@redhat.com>
2139
2140 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2141 sprintf. Make "name" constant.
2142
2143 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2144
2145 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2146 instead of frame_read_register.
2147 (i387_print_float_info): Use get_frame_register and
2148 get_frame_register_unsigned instead of frame_register_read.
2149
2150 * i386fbsd-nat.c: Include "i386-tdep.h".
2151 (child_resume): Make `eflags' an ULONGEST. Use
2152 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2153 instead of register_read and register_write.
2154
2155 * i386bsd-nat.c (fetch_inferior_registers,
2156 store_inferior_registers): Don't use && at the end of a line.
2157 (_initialize_i386bsd_nat): Fix typo.
2158
2159 * frame.c (_initialize_frame): Add missing backslash.
2160
2161 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2162 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2163 and supply_register instead of manipulating the register buffer
2164 directly.
2165
2166 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2167 * config/i386/nm-i386sol2.h
2168 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2169
2170 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2171 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2172 instructions that GCC likes to mingle into the prologue. Fixes
2173 gdb/1253 and gdb/1255.
2174
2175 2003-08-09 Andrew Cagney <cagney@redhat.com>
2176
2177 Fix GDB PR cli/926.
2178 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2179 * command.h (add_setshow_uinteger_cmd): Declare.
2180 * frame.c (set_backtrace_cmd): New function.
2181 (show_backtrace_cmd): New function.
2182 * frame.c (_initialize_frame): Replace "set/show
2183 backtrace-below-main" with "set/show backtrace past-main". Add
2184 command "set/show backtrace limit".
2185 (backtrace_past_main): Rename "backtrace_below_main".
2186 (backtrace_limit): New variable.
2187 (get_prev_frame): Update. Check the backtrace_limit.
2188
2189 2003-08-09 Andrew Cagney <cagney@redhat.com>
2190
2191 * defs.h (xstrprintf): Declare.
2192 * utils.c (xstrprintf): New function.
2193 * breakpoint.c (insert_breakpoints): Replace sprintf and
2194 non-literal format strings, with xstrprintf and cleanups.
2195 (delete_breakpoint,breakpoint_re_set): Ditto.
2196 (commands_command, insert_breakpoints): Ditto.
2197 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2198 (break_at_finish_command_1): Ditto.
2199
2200 2003-08-09 Andrew Cagney <cagney@redhat.com>
2201
2202 * MAINTAINERS (language support): List Adam Fedor as Objective C
2203 maintainer.
2204
2205 2003-08-08 J. Brobecker <brobecker@gnat.com>
2206
2207 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2208 are now multiarched.
2209
2210 2003-08-08 J. Brobecker <brobecker@gnat.com>
2211
2212 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2213 longer necessary now that hppa64 is partially multiarch'ed.
2214
2215 2003-08-08 Andrew Cagney <cagney@redhat.com>
2216
2217 * interps.c (interp_set): Check for a NULL "old_interp".
2218
2219 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2220
2221 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2222 (install-only): Support DESTDIR.
2223 (uninstall): Likewise.
2224 (install-gdbtk): Likewise.
2225
2226 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2227
2228 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2229 contains something meaningful at all times.
2230
2231 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2232
2233 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2234
2235 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2236
2237 * MAINTAINERS (write after approval): Added self.
2238
2239 2003-08-07 Andrew Cagney <cagney@redhat.com>
2240
2241 * inferior.h (AT_SYMBOL): Define.
2242 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2243 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2244 * mips-tdep.c (mips_call_dummy_address): Delete function.
2245 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2246 set call_dummy_address.
2247
2248 2003-08-07 Andrew Cagney <cagney@redhat.com>
2249
2250 * language.c (op_error): Delete function.
2251 (binop_type_check): Delete function.
2252 * language.h (type_op_error, range_op_error): Delete macros.
2253 (op_error): Delete declaration.
2254
2255 2003-08-07 Andrew Cagney <cagney@redhat.com>
2256
2257 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2258
2259 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2260
2261 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2262 (x86_64_push_arguments): Skip the red zone.
2263
2264 2003-08-05 Andrew Cagney <cagney@redhat.com>
2265
2266 * reggroups.c (reggroup_next): Check for the final entry.
2267
2268 2003-08-04 Andrew Cagney <cagney@redhat.com>
2269
2270 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2271 * cli/cli-script.c (define_command): Call query directly, instead
2272 of passing it a buffer.
2273 * ocd.c (ocd_error): Pass error a constant format string.
2274 * remote-mips.c (mips_error): Use fputs_filtered.
2275
2276 * solib-svr4.c (_initialize_svr4_solib): Update
2277 register_gdbarch_data call.
2278 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2279
2280 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2281 (register_gdbarch_data): Delete "free" parameter. Update
2282 comments.
2283 * gdbarch.h, gdbarch.c: Re-generate.
2284 * reggroups.c (_initialize_reggroup): Update.
2285 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2286 * frame-base.c (_initialize_frame_base): Update.
2287 * frame-unwind.c (_initialize_frame_unwind): Update.
2288 * user-regs.c (_initialize_user_regs): Update.
2289 * remote.c (_initialize_remote): Update.
2290 * regcache.c (_initialize_regcache): Update.
2291
2292 * regcache.c (xfree_regcache_descr): Delete function.
2293 (_initialize_regcache): Update call to register_gdbarch_data.
2294 (init_regcache_descr, init_legacy_regcache_descr): Use
2295 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2296
2297 * remote.c (free_remote_state): Delete function.
2298 (_initialize_remote): Update register_gdbarch_data.
2299 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2300 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2301
2302 2003-08-04 Andrew Cagney <cagney@redhat.com>
2303
2304 * reggroups.c (struct reggroup_el): Define.
2305 (struct reggroups): Delete field "nr_group". Replace array
2306 "group" with a "first" to "last" linked list.
2307 (reggroups_init): Update. Allocate using gdbarch's obstack.
2308 (reggroups_free): Delete function.
2309 (add_group): Update. Add "el" parameter.
2310 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2311 (default_groups): Update.
2312 (reggroup_next): Replace reggroups.
2313 (reggroups_dump): Update.
2314 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2315 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2316 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2317
2318 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2319
2320 * Makefile.in (tui-interp.o): Update dependencies.
2321
2322 2003-08-04 David Carlton <carlton@kealia.com>
2323
2324 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2325 to internal_error call.
2326 * source.c (forward_search_command): Add "%s" format argument.
2327 (reverse_search_command): Ditto.
2328 * top.c (quit_confirm): Ditto.
2329 * cli/cli-setshow.c (do_setshow_command): Ditto.
2330 * cp-valprint.c (cp_print_class_method): Replace
2331 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2332 (cp_print_class_member): Ditto.
2333 * event-top.c (command_line_handler): Ditto.
2334 * linux-proc.c (linux_info_proc_cmd): Ditto.
2335 * p-typeprint.c (pascal_type_print_base): Ditto.
2336 * p-valprint.c (pascal_object_print_class_method): Ditto.
2337 (pascal_object_print_class_member): Ditto.
2338 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2339 * remote.c (remote_cisco_section_offsets): Ditto.
2340 * top.c (command_line_input): Ditto.
2341 * utils.c (vwarning,error_stream,quit): Ditto.
2342 * valprint.c (print_floating,print_binary_chars)
2343 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2344
2345 2003-08-04 Andrew Cagney <cagney@redhat.com>
2346
2347 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2348
2349 2003-08-02 Andrew Cagney <cagney@redhat.com>
2350
2351 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2352 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2353 amd64fbsd-nat.c.
2354
2355 2003-08-02 Andrew Cagney <cagney@redhat.com>
2356
2357 * Makefile.in: Update all dependencies and definitions.
2358
2359 2003-08-02 Adam Fedor <fedor@gnu.org>
2360
2361 * linespec.c (is_objc_method_format): New function
2362 (decode_line_1, locate_first_half): Use it.
2363 Fixes PR objc/1298
2364
2365 2003-08-01 Andrew Cagney <cagney@redhat.com>
2366
2367 * NEWS: Mention that m32r is multi-arch.
2368 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2369 * configure.tgt: Recognize m32r-*-*.
2370 * config/m32r/tm-m32r.h: Delete file.
2371 * config/m32r/m32r.mt: New file.
2372 * m32r-rom.c (m32r_upload_command): Use hostent only when
2373 gethostname succeeds, in order to avoid a compilation
2374 warning.
2375 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2376 compiler warning.
2377
2378 2003-08-01 Michael Snyder <msnyder@redhat.com>
2379
2380 * sh-tdep.c (sh_frame_align): New gdbarch method.
2381 (sh_gdbarch_init): Set up frame_align method.
2382
2383 2003-07-31 Michael Snyder <msnyder@redhat.com>
2384
2385 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2386 which is already covered by the new frames infrastructure.
2387
2388 2003-07-31 Andrew Cagney <cagney@redhat.com>
2389
2390 * user-regs.c (struct user_reg): Add "next" link.
2391 (struct user_regs): Replace "user" with "first" and "last" links.
2392 (append_user_reg): Add pre-allocated "reg" parameter.
2393 (builtin_user_regs): Provide initial value for "last".
2394 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2395 (user_regs_init): Allocate memory from the gdbarch obstack.
2396 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2397 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2398 linked list.
2399 (usernum_to_user_reg): New function.
2400 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2401 (value_of_user_reg): Use usernum_to_user_reg.
2402 (user_regs_free): Delete function.
2403 (_initialize_user_regs): Update register_gdbarch_data call.
2404
2405 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2406
2407 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2408
2409 2003-07-30 Michael Snyder <msnyder@redhat.com>
2410
2411 * value.h (value_being_returned): Add a struct_addr argument.
2412 * infcall.c (call_function_by_hand): Pass struct_addr to
2413 value_being_returned.
2414 * infcmd.c (print_return_value): Pass zero as struct_addr.
2415 * values.c (value_being_returned): If struct_addr is passed,
2416 use it instead of trying to recover it from the inferior.
2417
2418 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2419
2420 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2421 the prologue analyzer won't need to attempt to extract the pc
2422 value from the woefully incomplete dummy frame.
2423 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2424 possible. Disable code which modifies the frame.
2425
2426 2003-07-28 Andrew Cagney <cagney@redhat.com>
2427
2428 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2429 to level 2.
2430 (annotate_breakpoints_table, annotate_record): Ditto.
2431 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2432 (annotate_field_name_end, annotate_field_value): Ditto.
2433 (annotate_field_end, annotate_frame_source_begin): Ditto.
2434 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2435 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2436 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2437 (annotate_frame_address_end, annotate_frame_address): Ditto.
2438 (annotate_frame_args, annotate_frame_end): Ditto.
2439 (annotate_frame_where, annotate_arg_begin): Ditto.
2440 (annotate_arg_name_end, annotate_arg_value): Ditto.
2441 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2442 (annotate_function_call, annotate_signal_name): Ditto.
2443 (annotate_signal_string, annotate_signal_name_end): Ditto.
2444 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2445 (annotate_value_begin, annotate_value_history_value): Ditto.
2446 (annotate_value_history_end, annotate_value_end): Ditto.
2447 (annotate_display_begin, annotate_display_number_end): Ditto.
2448 (annotate_display_format, annotate_display_expression): Ditto.
2449 (annotate_display_expression_end, annotate_display_value): Ditto.
2450 (annotate_display_end, annotate_array_section_begin): Ditto.
2451 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2452 (annotate_elt, annotate_array_section_end): Ditto.
2453
2454 2003-07-28 Andrew Cagney <cagney@redhat.com>
2455
2456 * regcache.c (struct regcache_descr): Update comments on
2457 nr_raw_registers.
2458 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2459 sizeof_raw_register_valid_p.
2460 (init_regcache_descr): Set nr_raw_registers and
2461 sizeof_raw_register_valid_p before calling
2462 init_legacy_regcache_descr.
2463
2464 2003-07-28 Andrew Cagney <cagney@redhat.com>
2465
2466 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2467 MOD NUM_REGS.
2468
2469 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2470
2471 * thread.c (info_threads_command): Use get_selected_frame ().
2472 Check that there is at least one non-sentinel frame.
2473
2474 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2475
2476 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2477 (m68hc11_pop_frame): Remove.
2478 (m68hc11_frame_saved_pc): Remove.
2479 (m68hc11_frame_chain): Remove.
2480 (m68hc11_frame_init_saved_regs): Remove.
2481 (m68hc11_init_extra_frame_info): Remove.
2482 (m68hc11_store_struct_return): Remove.
2483 (m68hc11_saved_pc_after_call): Remove.
2484
2485 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2486
2487 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2488 frame unwind information.
2489 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2490 and adapted for frame unwinding.
2491 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2492 (m68hc11_unwind_pc): New function.
2493 (m68hc11_frame_unwind_cache): New function to analyze frames.
2494 (m68hc11_frame_this_id): New function to create new frame struct.
2495 (m68hc11_frame_prev_register): New function to unwind a register from
2496 the frame.
2497 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2498 (m68hc11_frame_p): New function for the above.
2499 (m68hc11_frame_base_address): New function to return fp of frame.
2500 (m68hc11_frame_args_address): Update for frame.
2501 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2502 (m68hc11_unwind_sp): New function.
2503 (m68hc11_unwind_dummy_id): New function.
2504 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2505 calls.
2506
2507 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2508
2509 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2510 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2511 when we are beyond the current pc.
2512
2513 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2514
2515 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2516 from m68hc11_push_arguments.
2517 (m68hc11_push_arguments): Remove.
2518 (m68hc11_push_return_address): Remove.
2519 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2520 handlers; remove deprecated_extra_stack_alignment_needed.
2521
2522 2003-07-27 Andrew Cagney <cagney@redhat.com>
2523
2524 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2525 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2526 REAL_PC and not the pointer.
2527 * hppa-hpux-tdep.c: Include frame.h
2528
2529 2003-07-27 Andrew Cagney <cagney@redhat.com>
2530
2531 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2532 GDB_MULTI_ACH_PARTIAL.
2533
2534 2003-07-27 Andrew Cagney <cagney@redhat.com>
2535
2536 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2537 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2538 operator at start and not end of line.
2539 (decode_prologue): Ditto.
2540 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2541 frame_unwind_register_unsigned instead of
2542 frame_unwind_unsigned_register.
2543 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2544 read_register.
2545 (m32r_push_dummy_call): Use register_size instead of
2546 REGISTER_RAW_SIZE.
2547 (m32r_frame_sniffer): Replace m32r_frame_p.
2548 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2549 * m32r-rom.c (report_transfer_performance): Delete extern
2550 declaration.
2551 (m32r_load, m32r_upload_command): Use print_transfer_performance
2552 instead of report_transfer_performance.
2553 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2554 / add_show_from_set.
2555
2556 2003-07-26 Andrew Cagney <cagney@redhat.com>
2557
2558 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2559 store_return_value and extract_struct_value_address.
2560
2561 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2562
2563 PR c++/1267
2564 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2565 NULL, default to the section containing PC.
2566
2567 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2568
2569 * NEWS: Mention "regs" deprecated for m68hc11 too.
2570
2571 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2572 (m68hc11_print_register): New function to print out one register.
2573 (m68hc11_print_registers_info): New function to print registers.
2574 (show_regs): Deprecate and use the above.
2575 (m68hc11_gdbarch_init): Install the print_registers_info.
2576
2577 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2578
2579 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2580 that we have a SIGTRAP before returning non-zero.
2581
2582 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2583 Elena Zannoni <ezannoni@redhat.com>
2584
2585 * linespec.c (decode_line_2): Avoid crash if
2586 find_function_start_sal() returns empty record.
2587
2588 2003-07-23 Andreas Schwab <schwab@suse.de>
2589
2590 * ia64-tdep.c (ia64_print_insn): New function.
2591 (ia64_gdbarch_init): Set print_insn to it.
2592 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2593 deprecated_tm_print_insn_info.
2594
2595 2003-07-22 Michael Snyder <msnyder@redhat.com>
2596
2597 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2598 handle 8-bit returns (long long).
2599 (h8300h_extract_return_value): Ditto.
2600 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2601
2602 2003-07-22 Andrew Cagney <cagney@redhat.com>
2603
2604 * gdbarch.c Include "gdb_obstack.h".
2605 (struct gdbarch): Add an "obstack".
2606 (alloc_gdbarch_data): Allocate the gdbarch data using
2607 GDBARCH_OBSTACK_CALLOC.
2608 (free_gdbarch_data): Delete function.
2609 (gdbarch_obstack_zalloc): New function.
2610 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2611 Assert that the architecture is not initialized.
2612 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2613 vector from the obstack.
2614 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2615 architecture obstack.
2616 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2617 (set_gdbarch_data): Assert that the data is not initialized.
2618 (struct gdbarch_data): Delete member "free".
2619 (register_gdbarch_data): Do not initialize "free".
2620 * gdbarch.h, gdbarch.c: Re-generate.
2621
2622 2003-07-22 Andrew Cagney <cagney@redhat.com>
2623
2624 * configure.in (build_warnings): Add -Wformat-nonliteral.
2625 * configure: Re-generate.
2626
2627 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2628
2629 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2630
2631 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2632
2633 * findvar.c (read_var_value): Remove case for thread local storage
2634 variables. It is now entirely handled by the dwarf2 location
2635 expression code.
2636 * printcmd.c (address_info): Ditto.
2637 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2638 enumeration value.
2639 (struct symbol): Remove objfile field, which was used by
2640 LOC_THREAD_LOCAL_STATIC only.
2641 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2642 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2643 usage of objfile pointer.
2644 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2645 thread local variables.
2646 Add include of objfiles.h.
2647 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2648 storage variables.
2649 * Makefile.in (dwarf2loc.o): Update dependencies.
2650
2651 2003-07-22 Andrew Cagney <cagney@redhat.com>
2652
2653 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2654 get_frame_base.
2655 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2656 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2657 (struct value): Add opaque declaration.
2658 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2659
2660 2003-07-21 Andrew Cagney <cagney@redhat.com>
2661
2662 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2663 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2664
2665 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2666
2667 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2668 regcache_cooked_read_unsigned instead of read_register.
2669 (m68hc11_saved_pc_after_call): Likewise.
2670 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2671 instead of write_register.
2672 (m68hc11_register_type): New function.
2673 (m68hc11_register_virtual_type): Remove.
2674 (m68hc11_store_return_value): Convert to use the regcache.
2675 (m68hc11_extract_struct_value_address): Likewise.
2676 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2677 m68hc11_register_type; undeprecate store_return_value and
2678 extract_struct_value_address.
2679
2680 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2681
2682 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2683 and translate to use regcache.
2684 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2685
2686 2003-07-18 Andrew Cagney <cagney@redhat.com>
2687
2688 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2689 * gdbarch.h, gdbarch.c: Re-generate.
2690 * i386-tdep.c (i386_gdbarch_init): Do not set
2691 DWARF2_BUILD_FRAME_INFO.
2692 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2693 unconditionally.
2694 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2695 DWARF2_BUILD_FRAME_INFO.
2696
2697 2003-07-18 Andrew Cagney <cagney@redhat.com>
2698
2699 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2700 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2701
2702 2003-07-18 Andrew Cagney <cagney@redhat.com>
2703
2704 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2705 frame_unwind_address_in_block, instead of frame_pc_unwind.
2706 (dwarf2_frame_cache): Ditto.
2707
2708 2003-07-18 Andrew Cagney <cagney@redhat.com>
2709
2710 * user-regs.h (struct gdbarch): Declare opaque.
2711 * ui-out.h (struct ui_file): Declare opaque.
2712 * dwarf2-frame.h (struct frame_info): Declare opaque.
2713
2714 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2715
2716 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2717 #include "...".
2718 (procfs_meminfo): Change strerror to safe_strerror.
2719 (procfs_can_run): Remove K&R badness.
2720
2721 2003-07-17 Michael Snyder <msnyder@redhat.com>
2722
2723 * remote-sim.c: Comment typo fix.
2724
2725 2003-07-17 Andrew Cagney <cagney@redhat.com>
2726
2727 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2728 configure.
2729 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2730 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2731 GDB_MULTI_ARCH_PARTIAL.
2732
2733 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2734
2735 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2736 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2737 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2738
2739 2003-07-16 Theodore A. Roth <troth@openavr.org>
2740
2741 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2742 found.
2743 (avr_frame_unwind_cache): Don't unwind FP for main.
2744 Update a comment.
2745 Save the computed prev_sp.
2746 (avr_saved_regs_unwinder): Remove function.
2747 (avr_frame_prev_register): Use PC unwind logic from
2748 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2749
2750 2003-07-16 Andrew Cagney <cagney@redhat.com>
2751
2752 * frame-base.h (frame_base_p_ftype): Delete definition.
2753 (frame_base_append_predicate): Delete declaration.
2754 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2755 (frame_unwind_append_predicate): Delete declaration.
2756 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2757 (append_predicate): Delete parameter "p".
2758 (frame_unwind_append_predicate): Delete function.
2759 (frame_unwind_append_sniffer): Update call to append_predicate.
2760 (frame_unwind_free): Delete function.
2761 (_initialize_frame_unwind): Pass NULL as "free" to
2762 register_gdbarch_data.
2763 (frame_unwind_init): Append the dummy_frame_sniffer.
2764 (frame_unwind_find_by_frame): Simplify.
2765 * frame-base.c (struct frame_base_table): Delete field "p".
2766 (append_predicate): Delete parameter "p".
2767 (frame_base_append_predicate): Delete function.
2768 (frame_base_append_sniffer): Update call to append_predicate.
2769 (frame_base_free): Delete function.
2770 (frame_base_find_by_frame): Simplify.
2771 (_initialize_frame_base): Pass NULL as "free" to
2772 register_gdbarch_data.
2773 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2774 (x86_64_sigtramp_frame_sniffer): Replace
2775 "x86_64_sigtramp_frame_p".
2776 (x86_64_init_abi): Set the frame unwind sniffers.
2777 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2778 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2779 (m68k_gdbarch_init): Set the frame unwind sniffers.
2780 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2781 "i386_sigtramp_frame_p".
2782 (i386_frame_sniffer): Replace "i386_frame_p".
2783 (i386_gdbarch_init): Set the frame unwind sniffers.
2784 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2785 (avr_gdbarch_init): Set the frame unwind sniffers.
2786 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2787 "alpha_sigtramp_frame_p"
2788 (alpha_heuristic_frame_sniffer): Replace
2789 "alpha_heuristic_frame_p".
2790 (alpha_gdbarch_init): Set the frame unwind sniffers.
2791 (alpha_dwarf2_init_abi): Ditto.
2792 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2793 "alpha_debug_frame_p".
2794 (alpha_mdebug_frame_base_sniffer): Replace
2795 "alpha_mdebug_frame_base_p".
2796 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2797 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2798 (d10v_gdbarch_init): Set the frame unwind sniffer.
2799 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2800 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2801 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2802 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2803 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2804 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2805
2806 2003-07-16 Michael Snyder <msnyder@redhat.com>
2807
2808 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2809 should go thru sh_dsp_register_sim_regno, else the dsp regs
2810 will not get the right values.
2811
2812 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2813
2814 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2815 deprecated_store_floating by call to store_typed_floating.
2816 (sh_sh4_register_convert_to_raw): Substitute call to
2817 deprecated_extract_floating by call to extract_typed_floating.
2818
2819 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2820
2821 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2822
2823 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2824
2825 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2826 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2827 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2828 as possible.
2829 (do_pseudo_register): Remove.
2830 (sh_push_dummy_code): New function.
2831 (sh64_store_struct_return): Rename from sh_store_struct_return.
2832 Only called for sh64 now.
2833 (sh_extract_struct_value_address): Regcache'ify.
2834 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2835 and accomodate new tasks.
2836 (sh64_push_return_address): Rename from sh_push_return_address.
2837 Only called for sh64 now.
2838 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2839 Regcache'ify.
2840 (sh3e_sh4_extract_return_value): Regcache'ify.
2841 (sh_default_store_return_value): Ditto.
2842 (sh3e_sh4_store_return_value): Ditto.
2843 (sh_default_register_byte): Remove.
2844 (sh_sh4_register_byte): Remove.
2845 (sh_default_register_raw_size): Remove.
2846 (sh_sh4_register_raw_size): Remove.
2847 (sh_register_virtual_size): Remove.
2848 (sh_sh3e_register_virtual_type): Remove.
2849 (sh_sh3e_register_type): New function.
2850 (sh_sh4_register_virtual_type): Remove.
2851 (sh_sh4_register_type): New function.
2852 (sh_default_register_virtual_type): Remove.
2853 (sh_default_register_type): New function.
2854 (do_fv_register_info): Add parameters to accomodate call from
2855 sh_print_registers_info.
2856 (do_dr_register_info): Ditto.
2857 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2858 Add parameters to accomodate call from sh_print_registers_info.
2859 (sh_do_fp_register): Ditto.
2860 (sh64_do_pseudo_register): Call do_dr_register_info,
2861 do_fv_register_info and sh_do_fp_register with default parameters.
2862 (sh_do_register): Add parameters to accomodate call from
2863 sh_print_registers_info.
2864 (sh_print_register): Ditto.
2865 (sh_print_registers_info): Rename from sh_do_registers_info.
2866 Add parameters to be used as gdbarch_print_registers_info
2867 implementation. Accomodate removed do_pseudo_register function
2868 pointer.
2869 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2870 function pointer. Call sh_print_register with default parameters.
2871 (sh64_do_registers_info): Call sh_print_registers_info instead of
2872 sh_do_registers_info.
2873 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2874 detection of deprecated vs. non-deprecated functionality.
2875 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2876 function pointer assignments by direct function calls.
2877
2878 2003-07-15 Andrew Cagney <cagney@redhat.com>
2879
2880 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2881 (frame_register_unwind, create_new_frame): Ditto.
2882 (legacy_get_prev_frame, get_frame_type): Ditto.
2883 (get_frame_base_address): Use frame_base_find_by_frame.
2884 (get_frame_locals_address): Use frame_base_find_by_frame.
2885 (get_frame_args_address): Use frame_base_find_by_frame.
2886 * frame-base.h (frame_base_sniffer_ftype): Declare.
2887 (frame_base_append_sniffer): Declare.
2888 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2889 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2890 (frame_base_append_sniffer): New function.
2891 (frame_base_append_predicate): Add a NULL sniffer.
2892 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2893 (struct frame_base_table): Add "sniffer".
2894 (frame_base_free): Free the "sniffer" table.
2895 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2896 (frame_unwind_append_sniffer): Declare.
2897 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2898 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2899 (struct frame_unwind_table): Add "sniffer", delete "middle".
2900 (append_predicate): Add "sniffer" parameter, append the sniffer.
2901 (frame_unwind_init): Update append_predicate call.
2902 (frame_unwind_append_sniffer): New function.
2903 (frame_unwind_append_predicate): Update append_predicate call.
2904 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2905
2906 2003-07-15 Andrew Cagney <cagney@redhat.com>
2907
2908 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2909 before code inhibiting repeated unwind attempts. Add to
2910 commentary on that test's problems.
2911 * blockframe.c (inside_main_func): Look for "main" in the minimal
2912 symbol table.
2913 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2914 identical.
2915
2916 2003-07-15 Andrew Cagney <cagney@redhat.com>
2917
2918 * complaints.c (struct explanation): Define.
2919 (struct complaints): Change type of "explanation" to "struct
2920 explanation".
2921 (symfile_explanations): Convert to a "struct explanation" table.
2922 (vcomplaint): Update.
2923
2924 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2925
2926 * x86-64-linux-nat.c (regmap): Removed.
2927 (supply_gregset, fill_gregset): Call
2928 x86_64_linux_(fill,supply)_gregset functions.
2929 * x86-64-linux-tdep.c (USER_*): New defines.
2930 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2931 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2932 New functions.
2933 (fetch_core_registers): Ditto.
2934 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2935 * x86-64-linux-tdep.h: New file.
2936 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2937 and core-regset.o.
2938 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2939
2940 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2941
2942 * x86-64-tdep.c (x86_64_store_return_value): Use
2943 regcache_cooked_write_part instead of regcache_cooked_write.
2944
2945 * configure.host: Add x86_64-*-freebsd*.
2946 * configure.tgt: Add x86_64-*-freebsd*.
2947 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2948 * amd64fbsd-nat.c: New file.
2949 * amd64fbsd-tdep.c: New file.
2950 * config/i386/nm-fbsd64.h: New file.
2951 * config/i386/fbsd64.mh: New file.
2952 * config/i386/fbsd64.mt: New file.
2953
2954 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2955
2956 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2957 `sc_regs_offset' and `sc_fpregs_offset'.
2958 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2959 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2960 (alpha_sigtramp_register_address): Rewrite to use new members of
2961 `struct gdbarch_tdep'.
2962 (alpha_gdbarch_init): Initialize new members of struct
2963 gdbarch_tdep'.
2964 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2965 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2966 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2967 (alphafbsd_pc_in_sigtramp): Implement.
2968 (alphafbsd_sigtramp_offset): New function.
2969 (alphafbsd_sigcontext_addr): New function.
2970 (alphafbsd_init_abi): Initialize signal trampoline related members
2971 of `struct gdbarch_tdep'.
2972 (_initialize_alphafbsd_tdep): Add prototype.
2973
2974 2003-07-11 Theodore A. Roth <troth@openavr.org>
2975
2976 * Makefile.in (install-only): Quote sed expression when generating
2977 transformed_name.
2978
2979 2003-07-11 Richard Henderson <rth@redhat.com>
2980
2981 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2982 * dwarf2-frame.c: Include complaints.h.
2983 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2984 variable initialization; return NULL on error.
2985 (decode_frame_entry): New.
2986
2987 2003-07-11 Andrew Cagney <cagney@redhat.com>
2988
2989 * frame.h (frame_address_in_block): Delete declaration.
2990 * blockframe.c (frame_address_in_block): Delete function.
2991 (get_frame_block): Use get_frame_address_in_block.
2992 (block_innermost_frame): Ditto.
2993 * stack.c (print_frame, backtrace_command_1): Ditto.
2994
2995 * frame.h (get_frame_address_in_block): Declare.
2996 (frame_unwind_address_in_block): Declare.
2997 * frame.c (frame_unwind_address_in_block): New function.
2998 (get_frame_address_in_block): New function.
2999
3000 2003-07-10 Andrew Cagney <cagney@redhat.com>
3001
3002 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3003 pre-default. Note: re-generate has no effect.
3004
3005 2003-07-10 Andrew Cagney <cagney@redhat.com>
3006
3007 * gdbarch.sh: When a variable, but not a function, compare against
3008 0. Fix problem in previous patch.
3009 * gdbarch.c: Re-generate.
3010
3011 2003-07-10 Andrew Cagney <cagney@redhat.com>
3012
3013 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3014 functions against NULL, not 0.
3015 * gdbarch.c: Re-generate.
3016
3017 2003-07-10 Fred Fish <fnf@ninemoons.com>
3018
3019 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3020 null string instead of a null pointer.
3021 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3022
3023 2003-07-09 Michael Snyder <msnyder@redhat.com>
3024
3025 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3026
3027 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3028
3029 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3030 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3031 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3032 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3033 * x86-64-tdep.c: ... from here.
3034
3035 2003-07-09 Andreas Schwab <schwab@suse.de>
3036
3037 * m68k-tdep.h (enum struct_return): Define.
3038 (struct gdbarch_tdep): Add struct_return.
3039 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3040 bytes are padded to the right, not to the left. Pass struct value
3041 address in register %a1, not on stack.
3042 (m68k_use_struct_convention): New function.
3043 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3044 struct_return in tdep to pcc_struct_return.
3045 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3046 reg_struct_return.
3047
3048 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3049
3050 * somread.c (som_symfile_offsets): Fix compilation error.
3051
3052 2003-07-09 Andrew Cagney <cagney@redhat.com>
3053
3054 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3055 Add comments about the checks.
3056
3057 2003-07-08 Andrew Cagney <cagney@redhat.com>
3058
3059 * Makefile.in: Make dependency section headers consistent.
3060 (config_h): Move to $BUILD headers section.
3061 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3062 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3063 (ada-exp.tab.c): Move to YACC/LEX section.
3064 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3065 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3066
3067 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3068
3069 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3070 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3071 of strerror with safe_strerror, use ISO C function definitions,
3072 and replace instances of sprintf with snprintf.
3073
3074 2003-07-07 Andrew Cagney <cagney@redhat.com>
3075
3076 * frame.c (get_prev_frame): Enable check for identical frames.
3077 Update comments. Update error messages.
3078
3079 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3080
3081 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3082
3083 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3084
3085 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3086 sort_symtab_syms, no longer necessary.
3087
3088 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3089
3090 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3091
3092 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3093
3094 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3095 (mips_register_byte): Likewise.
3096
3097 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3098
3099 * Makefile.in (sparc_tdep_h): New.
3100 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3101 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3102 * sparc-linux-nat.c: Include "sparc-tdep.h".
3103 * sparc-nat.c: Likewise.
3104 * sparc-tdep.c: Likewise.
3105 * sparc64nbsd-nat.c: Likewise.
3106 * sparcnbsd-nat.c: Likewise.
3107 * sparcnbsd-tdep.c: Likewise.
3108 * sparc-tdep.h: New file.
3109 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3110 and sparc_npc_regnum.
3111
3112 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3113
3114 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3115 (mips_linux_cannot_store_register): List supported instead of
3116 unsupported registers.
3117
3118 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3119
3120 * disasm.c (dump_insns): Separate instructions from addresses.
3121
3122 2003-07-07 Andreas Schwab <schwab@suse.de>
3123
3124 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3125 dependencies.
3126 * m68k-tdep.c (NUM_FREGS): Delete.
3127 (SIG_PC_FP_OFFSET): Delete.
3128 (TARGET_M68K): Delete.
3129 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3130 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3131 P_MOVEL_SP, P_MOVEML_SP): Define.
3132 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3133 P_TRAP): Delete.
3134 (m68k_register_raw_size): Delete.
3135 (m68k_register_virtual_size): Delete.
3136 (m68k_register_type): Renamed from m68k_register_virtual_type and
3137 add gdbarch argument.
3138 (m68k_store_struct_return): Delete.
3139 (m68k_deprecated_extract_return_value): Delete.
3140 (m68k_deprecated_extract_struct_value_address): Delete.
3141 (m68k_frame_chain): Delete.
3142 (m68k_frame_saved_pc): Delete.
3143 (m68k_fix_call_dummy): Delete.
3144 (m68k_push_dummy_frame): Delete.
3145 (m68k_pop_frame): Delete.
3146 (m68k_extract_return_value): New function.
3147 (m68k_store_return_value): Rewrite using regcache.
3148 (m68k_extract_struct_value_address): Rewrite using regcache.
3149 (m68k_push_dummy_call): New function.
3150 (struct m68k_frame_cache): Define.
3151 (m68k_alloc_frame_cache): New function.
3152 (m68k_analyze_frame_setup): New function.
3153 (m68k_analyze_register_saves): New function.
3154 (m68k_analyze_prologue): New function.
3155 (m68k_skip_prologue): Rewrite using above functions.
3156 (m68k_unwind_pc): New function.
3157 (m68k_frame_cache): New function.
3158 (m68k_frame_this_id): New function.
3159 (m68k_frame_prev_register): New function.
3160 (m68k_frame_unwind): New variable.
3161 (m68k_frame_p): New function.
3162 (m68k_sigtramp_frame_cache): New function.
3163 (m68k_sigtramp_frame_this_id): New function.
3164 (m68k_sigtramp_frame_prev_register): New function.
3165 (m68k_sigtramp_frame_unwind): New variable.
3166 (m68k_sigtramp_frame_p): New function.
3167 (m68k_frame_base_address): New function.
3168 (m68k_frame_base): New function.
3169 (m68k_unwind_dummy_id): New function.
3170 (fill_gregset): Use regcache_collect.
3171 (fill_fpregset): Likewise.
3172 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3173 defined.
3174 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3175 deprecated_init_frame_pc, deprecated_store_struct_return,
3176 deprecated_extract_return_value, deprecated_store_return_value,
3177 deprecated_frame_chain, deprecated_frame_saved_pc,
3178 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3179 deprecated_register_virtual_size,
3180 deprecated_max_register_raw_size,
3181 deprecated_max_register_virtual_size,
3182 deprecated_register_virtual_type, deprecated_register_size,
3183 deprecated_register_byte, deprecated_register_bytes,
3184 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3185 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3186 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3187 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3188 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3189 deprecated_push_dummy_frame, deprecated_pop_frame,
3190 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3191 only if SYSCALL_TRAP is defined. Set extract_return_value,
3192 store_return_value, extract_struct_value_address, register_type,
3193 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3194 predicates.
3195 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3196 M68K_MAX_REGISTER_SIZE): Define.
3197 (struct m68k_sigtramp_info): Define.
3198 (struct gdbarch_tdep): Add get_sigtramp_info.
3199 * m68klinux-nat.c (fetch_register): Use register_size instead of
3200 REGISTER_RAW_SIZE. Don't put assignment in if.
3201 (store_register): Likewise.
3202 (fetch_inferior_registers): Likewise.
3203 (store_inferior_registers): Likewise.
3204 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3205 (m68k_linux_frame_saved_pc): Delete.
3206 (m68k_linux_sigcontext_reg_offset,
3207 m68k_linux_ucontext_reg_offset): Define.
3208 (m68k_linux_get_sigtramp_info): New function.
3209 (m68k_linux_extract_return_value): Rewrite using regcache.
3210 (m68k_linux_store_return_value): Likewise.
3211 (m68k_linux_extract_struct_value_address): Likewise.
3212 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3213 Don't set deprecated_frame_saved_pc,
3214 deprecated_extract_return_value, deprecated_store_return_value,
3215 deprecated_extract_struct_value_address. Set
3216 extract_return_value, store_return_value,
3217 extract_struct_value_address.
3218
3219 2003-07-07 Andrew Cagney <cagney@redhat.com>
3220
3221 * expprint.c: Include "user-regs.h" instead of "frame.h".
3222 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3223 frame_map_regnum_to_name.
3224 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3225 (frame_map_name_to_regnum): Simplify, call
3226 user_reg_map_name_to_regnum.
3227 (frame_map_regnum_to_name): Simplify, call
3228 user_reg_map_regnum_to_name.
3229 (frame_register_unwind): Update.
3230 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3231 (_initialize_frame_reg): Call user_reg_add_builtin.
3232 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3233 (value_of_register): Use value_of_user_reg.
3234 * eval.c (evaluate_subexp_standard): Update.
3235 * parse.c (write_dollar_variable): Update.
3236 * d10v-tdep.c (d10v_print_registers_info): Update.
3237 * infcmd.c (registers_info): Update.
3238 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3239 (builtin_regs_h): Delete macro.
3240 (user_regs_h): Define.
3241 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3242 (builtin-regs.o): Delete target.
3243 (user-regs.o): Specify dependencies.
3244 (expprint.o): Update dependencies.
3245 (findvar.o): Update dependencies.
3246 (frame.o): Update dependencies.
3247 (std-regs.o): Update dependencies.
3248
3249 2003-07-06 Christopher Faylor <cgf@redhat.com>
3250
3251 * win32-nat.c (solib_symbols_add): Use one variable for all section
3252 address stuff. Pass variable rather than address of variable to
3253 safe_symbol_file_add.
3254
3255 2003-07-06 Andreas Schwab <schwab@suse.de>
3256
3257 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3258
3259 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3260
3261 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3262
3263 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3264
3265 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3266
3267 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3268
3269 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3270 * config/i386/nto.mh: New file.
3271 * config/i386/nm-nto.h: New file.
3272 * configure.host: Add i[3456]86-*-nto*.
3273
3274 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3275
3276 * remote-vx.c (vx_add_symbols): Fix compilation error.
3277
3278 2003-07-03 Andrew Cagney <cagney@redhat.com>
3279
3280 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3281 * gdbarch.h, gdbarch.c: Re-generate.
3282 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3283 (legacy_register_name): Declare.
3284 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3285 (REGISTER_NAME): Define.
3286 * sparc-tdep.c (legacy_register_name): New function.
3287 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3288 (REGISTER_NAME): Define.
3289 (hppa64_register_name): Declare.
3290 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3291 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3292 (hppa64_register_name): New function.
3293 (hppa_register_name): New function.
3294 * arch-utils.c (legacy_register_name): Delete.
3295 * arch-utils.h (legacy_register_name): Delete.
3296
3297 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3298
3299 * cli/cli-interp.c (cli_interpreter_resume): Update the
3300 cli_uiout's stream to gdb_stdout.
3301
3302 2003-07-03 Andrew Cagney <cagney@redhat.com>
3303
3304 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3305 predicate.
3306 * gdbarch.h, gdbarch.c: Re-generate.
3307 * regcache.c (init_regcache_descr): Use legacy code when either
3308 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3309
3310 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3311
3312 * NEWS: Move "set logging" entry into GDB 6.0 section.
3313
3314 2003-07-02 Jim Blandy <jimb@redhat.com>
3315
3316 * s390-tdep.c (struct frame_extra_info): new member:
3317 'stack_bought_valid'.
3318 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3319 initialize fextra_info->stack_bought.
3320 (s390_frameless_function_invocation): Don't trust the value of
3321 fextra_info_ptr->stack_bought unless
3322 fextra_info->stack_bought_valid is set.
3323
3324 New S390 prologue analyzer.
3325 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3326 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3327 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3328 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3329 compute_x_addr, s390_on_stack, s390_store,
3330 s390_get_signal_frame_info): New functions.
3331 (S390_NUM_SPILL_SLOTS): New macro.
3332 (s390_get_frame_info): Rewritten.
3333 (is_arg_reg): Deleted.
3334
3335 Break out the decoding of S/390 instructions into separate
3336 functions, to make it more legible, and easier to check
3337 against the spec.
3338 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3339 is_rx, is_rxe): New functions.
3340 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3341 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3342 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3343 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3344 enums for opcode values. (Is this an improvement?)
3345
3346 2003-07-02 Andrew Cagney <cagney@redhat.com>
3347
3348 * i386-tdep.c: Revert change committed as part of trad-frame code
3349 below.
3350
3351 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3352
3353 * breakpoint.c (insert_catchpoint): Make static.
3354
3355 2003-07-02 Andreas Schwab <schwab@suse.de>
3356
3357 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3358 former ia64_push_arguments and ia64_push_return_address, and use
3359 regcache functions instead of read/write_register.
3360 (ia64_gdbarch_init): Set push_dummy_call instead of
3361 deprecated_push_arguments and deprecated_push_return_address.
3362
3363 2003-07-01 Andreas Jaeger <aj@suse.de>
3364
3365 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3366 before the call.
3367 Set %rax only to number of SSE registers used.
3368
3369 2003-07-01 Andrew Cagney <cagney@redhat.com>
3370
3371 * trad-frame.h: Update comments, a -1 .addr is reserved.
3372 (trad_frame_value_p, trad_frame_addr_p): Declare.
3373 (trad_frame_reg_p): Declare.
3374 (trad_frame_set_value): Rename trad_frame_register_value.
3375 (trad_frame_set_unknown): Declare.
3376 * trad-frame.c (trad_frame_realreg_p): New function.
3377 (trad_frame_addr_p, trad_frame_value_p): New function.
3378 (trad_frame_set_unknown): New function.
3379 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3380 (trad_frame_prev_register): Use trad_frame_realreg_p,
3381 trad_frame_addr_p and trad_frame_value_p.
3382 (trad_frame_set_value): Rename trad_frame_register_value.
3383 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3384 and trad_frame_set_value.
3385
3386 2003-06-30 Jim Blandy <jimb@redhat.com>
3387
3388 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3389 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3390 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3391 for 16 registers, and then 32 more bytes.
3392 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3393 New macros.
3394 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3395 Move up in the file, since it's now used by is_simple_arg.
3396 (is_simple_arg): Don't assume registers are four bytes long.
3397 Exclude all double arguments. Extended floats are not simple
3398 args.
3399 (is_power_of_two): New function.
3400 (pass_by_copy_ref): Call is_power_of_two, and check that the
3401 length fits in a register, rather than listing all the acceptable
3402 sizes. Extended floats are not passed by reference.
3403 (s390_push_arguments): Don't assume registers are four bytes long.
3404 Reserve an argument register to point to the buffer for structures
3405 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3406 S390_STACK_FRAME_OVERHEAD.
3407
3408 2003-06-30 Andreas Schwab <schwab@suse.de>
3409
3410 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3411 format error message.
3412
3413 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3414
3415 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3416
3417 2003-06-30 David Carlton <carlton@kealia.com>
3418
3419 Band-aid for PR c++/1245.
3420 * Makefile.in (cp-support.o): Depend on complaints_h.
3421 * cp-support.c: Include complaints.h. Add declaration for
3422 find_last_component.
3423 (cp_find_first_component): Separate code into
3424 cp_find_first_component_aux.
3425 (cp_find_first_component_aux): Call demangled_name_complaint.
3426 (demangled_name_complaint): New.
3427
3428 2003-06-30 Andrew Cagney <cagney@redhat.com>
3429
3430 * remote.c (remote_write_bytes): Explicitly compute and then use
3431 the payload size. Update comments to reflect. Fixes problem of
3432 GDB not sending small packets as found by Fred Fish.
3433
3434 2003-06-30 Andrew Cagney <cagney@redhat.com>
3435
3436 * remote.c (remote_async_wait): Fix -Wformat problem.
3437
3438 2003-06-29 Andrew Cagney <cagney@redhat.com>
3439
3440 * remote.c (remote_wait): Call error, and not warning, when the
3441 packet is corrupt.
3442 (remote_async_wait): Ditto.
3443
3444 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3445
3446 * sparc-tdep.c (sparc_y_regnum): Make external again.
3447
3448 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3449
3450 * cli/cli-logging.c (pop_output_files): Add void to function
3451 definition.
3452
3453 2003-06-29 Andrew Cagney <cagney@redhat.com>
3454
3455 * frame.c (frame_register_unwind): Use unsigned char when dumping
3456 the buffer contents.
3457
3458 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3459
3460 * cli/cli-logging.c: New file.
3461 * cli-out.c (struct ui_out_data): Add original_stream.
3462 (cli_redirect): New function.
3463 (cli_ui_out_impl): Add cli_redirect.
3464 (cli_out_new): Initialize original_stream.
3465 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3466 (uo_redirect, ui_out_redirect): New.
3467 * ui-out.h (struct ui_out_impl): Add redirect member.
3468 (redirect_ftype): New.
3469 (ui_out_redirect): Add prototype.
3470 * Makefile.in: Add rules for cli-logging.c.
3471 * NEWS: Mention "set logging".
3472
3473 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3474
3475 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3476
3477 2003-06-27 Andrew Cagney <cagney@redhat.com>
3478
3479 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3480 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3481 * avr-tdep.c (avr_call_dummy_address): Delete function.
3482 (avr_gdbarch_init): Do not set call_dummy_address.
3483
3484 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3485
3486 * symfile.c (syms_from_objfile): Move variables to inner block.
3487 Move the checks for the non-mainline case a bit earlier to avoid
3488 doing some useless computations.
3489
3490 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3491
3492 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3493
3494 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3495
3496 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3497 sections.
3498
3499 2003-06-26 Michael Chastain <mec@shout.net>
3500
3501 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3502 gdb/testsuite/gdb.c++/pr-1210.exp.
3503
3504 2003-06-26 Andrew Cagney <cagney@redhat.com>
3505
3506 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3507 altivec_expression.h and altivec_registers.h.
3508
3509 2003-06-26 Andrew Cagney <cagney@redhat.com>
3510
3511 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3512 info->mach when MIPS16. Patch suggested by Fred Fish.
3513
3514 2003-06-26 Andrew Cagney <cagney@redhat.com>
3515
3516 * utils.c (internal_vproblem): Print the problem to a reason
3517 buffer and then pass to query. Make the msg variable more local.
3518
3519 2003-06-26 Andrew Cagney <cagney@redhat.com>
3520
3521 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3522 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3523 * gdbarch.h, gdbarch.c: Re-generate.
3524 * frame-base.c (default_frame_args_address): Update. Use
3525 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3526 not available.
3527 (default_frame_locals_address): Ditto for
3528 DEPRECATED_FRAME_LOCALS_ADDRESS.
3529 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3530 (vax_frame_num_args): Update.
3531 (vax_gdbarch_init): Update.
3532 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3533 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3534 * mcore-tdep.c (mcore_gdbarch_init): Update.
3535 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3536 * ia64-tdep.c (ia64_gdbarch_init): Update.
3537 * symtab.h (address_class): Update comments.
3538 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3539 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3540 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3541 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3542 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3543 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3544 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3545 * alpha-mdebug-tdep.c: Update.
3546 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3547
3548 2003-06-26 Andreas Jaeger <aj@suse.de>
3549
3550 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3551 of SSE registers so that varargs functions work. Rework handling
3552 of passing arguments on the stack.
3553 (x86_64_store_return_value): Return double and float values in SSE
3554 register.
3555
3556 2003-06-24 Michael Chastain <mec@shout.net>
3557
3558 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3559 the "constructor breakpoints ignored" bug.
3560
3561 2003-06-25 David Carlton <carlton@kealia.com>
3562
3563 * MAINTAINERS: Update e-mail address.
3564
3565 2003-06-24 Jim Blandy <jimb@redhat.com>
3566
3567 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3568
3569 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3570 function.
3571 (ppc_linux_init_abi): Register it as the
3572 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3573
3574 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3575 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3576 method.
3577
3578 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3579 (ppc64_standard_linkage_target): Use it.
3580
3581 2003-06-23 Andrew Cagney <cagney@redhat.com>
3582
3583 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3584 for 0 "int0" and 4 "int32" sized registers.
3585 * gdbtypes.c (builtin_type_int0): Define.
3586 (build_gdbtypes): Initialize builtin_type_int0.
3587 * gdbtypes.h (builtin_type_int0): Declare.
3588
3589 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3590
3591 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3592 as characters are unsigned.
3593
3594 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3595
3596 PR gdb/1179
3597 * dwarfread.c (struct_type): Skip static fields without crashing.
3598
3599 2003-06-22 Andrew Cagney <cagney@redhat.com>
3600
3601 GDB 6.0 branch created.
3602 * README: Update.
3603 * PROBLEMS: Update. Empty.
3604 * NEWS: Update.
3605
3606 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3607
3608 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3609 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3610
3611 2003-06-22 Andrew Cagney <cagney@redhat.com>
3612
3613 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3614 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3615 Velikov.
3616
3617 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3618
3619 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3620 compilers.
3621
3622 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3623
3624 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3625 argument of val_print.
3626 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3627 to the address argument of baseclass_offset or target_read_memory.
3628 Do add it to the argument of cp_print_value_fields.
3629
3630 2003-06-21 Andrew Cagney <cagney@redhat.com>
3631
3632 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3633 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3634 instead of 0..NUM_REGS.
3635 (mips_register_reggroup_p): New function.
3636 (mips_pseudo_register_write): New function.
3637 (mips_pseudo_register_read): New function.
3638 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3639 based on the register's type.
3640 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3641 cooked.
3642 (mips_get_saved_register): Simplify. Assert that REGNO is a
3643 pseudo / cooked.
3644 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3645 (mips_register_type): Replace mips_register_virtual_type. Map
3646 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3647 when available.
3648 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3649 that the register is cooked / virtual.
3650 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3651 Only get the extra info when needed.
3652 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3653 (mips32_heuristic_proc_desc): Fetch the cooked register.
3654 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3655 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3656 (mips_print_register): Use gdbarch_register_type, instead of
3657 REGISTER_VIRTUAL_TYPE.
3658 (print_gp_register_row): Use gdbarch_register_type, instead of
3659 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3660 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3661 Print the pseudo / cooked registers.
3662 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3663 Print the pseudo / cooked registers.
3664 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3665 REG_NUM is pseudo / cooked.
3666 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3667 (mips_n32n64_xfer_return_value): Ditto.
3668 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3669 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3670 (mips_register_sim_regno): New function.
3671 (mips_gdbarch_init): Set deprecated_register_byte,
3672 register_group_p, pseudo_register_write, pseudo_register_read,
3673 register_sim_regno, and num_pseudo_regs. Set register_type,
3674 instead of register_virtual_type.
3675 * Makefile.in (mips-tdep.o): Update dependencies.
3676 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3677 REGISTER_VIRTUAL_TYPE.
3678 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3679 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3680 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3681 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3682 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3683
3684 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3685
3686 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3687 * cli/cli-cmds.c: Include "gdb_vfork.h".
3688 (shell_escape): Use vfork.
3689
3690 2003-06-21 Andrew Cagney <cagney@redhat.com>
3691
3692 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3693 32 bit floating-point register saves.
3694
3695 * frame.h (deprecated_unwind_get_saved_register): Delete.
3696 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3697 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3698 and deprecated_get_next_frame_hack instead of
3699 deprecated_unwind_get_saved_register.
3700
3701 * mips-tdep.c (mips_dump_tdep): Do not print
3702 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3703
3704 * frame.c (get_frame_register): New function.
3705 (frame_unwind_register_signed): New function.
3706 (get_frame_register_signed): New function.
3707 (frame_unwind_register_unsigned): New function.
3708 (get_frame_register_unsigned): New function.
3709 * frame.h: Add comments on naming schema.
3710 (get_frame_register, frame_unwind_register_signed): Declare.
3711 (get_frame_register_signed, get_frame_register_signed): Declare.
3712 (frame_unwind_register_unsigned): Declare.
3713 (get_frame_register_unsigned): Declare.
3714
3715 2003-06-20 Theodore A. Roth <troth@openavr.org>
3716
3717 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3718
3719 2003-06-20 Theodore A. Roth <troth@openavr.org>
3720
3721 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3722 (avr_read_sp): Ditto.
3723
3724 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3725
3726 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3727 * config/arm/nm-linux.h: Likewise.
3728 * config/arm/tm-linux.h: Likewise.
3729 * config/ia64/nm-linux.h: Likewise.
3730 * config/ia64/tm-ia64.h: Likewise.
3731 * config/s390/tm-linux.h: Likewise.
3732 * config/s390/tm-s390.h: Likewise.
3733 * s390-nat.c: Likewise.
3734 * s390-tdep.c: Likewise.
3735
3736 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3737 * config/ia64/linux.mt: Likewise.
3738 * config/m68k/linux.mh: Likewise.
3739 * config/mips/linux.mt: Likewise.
3740 * config/powerpc/linux.mh: Likewise.
3741 * config/sh/linux.mt: Likewise.
3742
3743 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3744
3745 * solib.c (solib_open): Change tests for whether to search
3746 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3747 comments.
3748
3749 2003-06-19 Theodore A. Roth <troth@openavr.org>
3750
3751 * avr-tdep.c (avr_frame_address): Delete function.
3752 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3753 set_gdbarch_frame_args_address.
3754
3755 2003-06-19 Andrew Cagney <cagney@redhat.com>
3756
3757 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3758 (REGISTER_CONVERT_FROM_TYPE): Delete.
3759 (mips_register_convert_to_type): Delete declaration.
3760 (mips_register_convert_from_type): Delete declaration.
3761 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3762 kernel/.
3763
3764 2003-06-19 Michael Snyder <msnyder@redhat.com>
3765
3766 * linux-nat.h: New file.
3767 * linux-nat.c: Include linux-nat.h.
3768 * lin-lwp.c: Include linux-nat.h.
3769 Move struct lwp_info def to linux-nat.h.
3770 * linux-proc.c: Include linux-nat.h.
3771 (linux_make_note_section): Iterate over lwps instead of threads.
3772 (linux_do_thread_registers): Use lwp instead of merged pid.
3773 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3774 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3775 Add dependency on linux_nat_h.
3776
3777 2003-06-19 Theodore A. Roth <troth@openavr.org>
3778
3779 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3780
3781 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3782
3783 * varobj.c (get_type, get_target_type): Use check_typedef.
3784
3785 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3786
3787 * breakpoint.c (insert_catchpoint): Call internal_error.
3788
3789 2003-06-19 Theodore A. Roth <troth@openavr.org>
3790
3791 * avr-tdep.c (avr_push_dummy_code): Delete function.
3792 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3793
3794 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3795
3796 * arch-utils.c (default_prepare_to_proceed): Remove.
3797 (generic_prepare_to_proceed): Remove.
3798 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3799 (generic_prepare_to_proceed): Remove prototype.
3800 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3801 * gdbarch.c: Regenerate.
3802 * gdbarch.h: Regenerate.
3803 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3804 * hppah-nat.c (hppa_switched_threads): Remove.
3805 * infrun.c (prepare_to_proceed): New static function, copied from
3806 generic_prepare_to_proceed. Remove select_it argument.
3807 (proceed): Call prepare_to_proceed.
3808 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3809 variables.
3810 (ptrace_wait): Don't set the removed variables.
3811 (hppa_switched_threads): Remove.
3812 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3813 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3814 (lin_lwp_prepare_to_proceed): Remove prototype.
3815 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3816 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3817
3818 2003-06-18 Theodore A. Roth <troth@openavr.org>
3819
3820 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3821 trad-frame.h.
3822 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3823 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3824 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3825 (AVR_PROLOGUE_*): Enumerate prologue types.
3826 (struct frame_extra_info): Remove.
3827 (struct avr_unwind_cache): Define.
3828 (avr_write_sp): Delete function.
3829 (avr_read_fp): Ditto.
3830 (avr_init_extra_frame_info): Ditto.
3831 (avr_pop_frame): Ditto.
3832 (avr_frame_saved_pc): Ditto.
3833 (avr_saved_pc_after_call): Ditto.
3834 (avr_push_return_address): Ditto.
3835 (avr_frame_chain): Ditto.
3836 (avr_store_struct_return): Ditto.
3837 (avr_push_arguments): Ditto.
3838 (avr_scan_prologue): Update comments. Changed to set up the info for
3839 cache unwinding. Now returns end of prologue PC.
3840 (avr_skip_prologue): Better handling of functions lacking a prologue
3841 by using avr_scan_prologue.
3842 (avr_scan_arg_moves): New function.
3843 (avr_saved_regs_unwinder): Ditto.
3844 (avr_frame_unwind_cache): Ditto.
3845 (avr_unwind_pc): Ditto.
3846 (avr_frame_this_id): Ditto.
3847 (avr_frame_prev_register): Ditto.
3848 (avr_frame_p): Ditto.
3849 (avr_frame_base_address ): Ditto.
3850 (avr_unwind_dummy_id): Ditto.
3851 (avr_push_dummy_code): Ditto.
3852 (push_stack_item): Ditto.
3853 (pop_stack_item): Ditto.
3854 (avr_push_dummy_call): Ditto.
3855 (struct stack_item): Define.
3856 (avr_frame_unwind): Declare structure.
3857 (avr_frame_base): Ditto.
3858 (avr_gdbarch_init): Remove calls to
3859 set_gdbarch_deprecated_init_frame_pc,
3860 set_gdbarch_deprecated_target_read_fp,
3861 set_gdbarch_deprecated_dummy_write_sp,
3862 set_gdbarch_deprecated_fp_regnum,
3863 set_gdbarch_deprecated_push_arguments,
3864 set_gdbarch_deprecated_push_return_address,
3865 set_gdbarch_deprecated_pop_frame,
3866 set_gdbarch_deprecated_store_struct_return,
3867 set_gdbarch_deprecated_frame_init_saved_regs,
3868 set_gdbarch_deprecated_init_extra_frame_info,
3869 set_gdbarch_deprecated_frame_chain,
3870 set_gdbarch_deprecated_frame_saved_pc,
3871 set_gdbarch_deprecated_saved_pc_after_call.
3872 Add calls to set_gdbarch_push_dummy_call,
3873 set_gdbarch_push_dummy_code,
3874 frame_unwind_append_predicate,
3875 frame_base_set_default,
3876 set_gdbarch_unwind_dummy_id,
3877 set_gdbarch_unwind_pc.
3878 Wrap a long line.
3879
3880 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3881
3882 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3883 registers for H8/300S.
3884 (h8300_print_registers_info): Ditto.
3885 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3886
3887 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3888
3889 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3890 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3891 (lin_lwp_wait): Likewise. Update comments.
3892 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3893 (pull_pid_from_list, linux_record_stopped_pid): New.
3894
3895 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3896
3897 * ada-lang.c (scan_discrim_bound): Name first argument.
3898 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3899 declared by ALL_BLOCK_SYMBOLS.
3900
3901 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3902
3903 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3904 ("regcache.h"): Include it.
3905 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3906
3907 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3908
3909 * NEWS: Mention gdbserver detach change and "disconnect" command.
3910 * infcmd.c (disconnect_command): New function.
3911 (_initialize_infcmd): Add ``disconnect'' command.
3912 * remote.c (remote_async_detach): Delete.
3913 (remote_detach): Merge remote_async_detach.
3914 (remote_disconnect): New.
3915 (init_remote_ops): Set to_disconnect.
3916 (init_remote_cisco_ops): Likewise.
3917 (init_remote_async_ops): Likewise. Use remote_detach.
3918 * target.c (cleanup_target): Default to_disconnect.
3919 (update_current_target): Inherit to_disconnect.
3920 (target_disconnect, debug_to_disconnect): New functions.
3921 (setup_target_debug): Set to_disconnect.
3922 * target.h (struct target_ops): Add to_disconnect.
3923 (target_disconnect): Add prototype.
3924
3925 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3926
3927 * breakpoint.c (insert_catchpoint): New function.
3928 (insert_breakpoints): Use catch_exceptions to call
3929 insert_catchpoint. Disable catchpoints if they fail to insert.
3930
3931 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3932
3933 * symfile.c (reread_symbols): Clear sym_private.
3934
3935 2003-06-17 Andrew Cagney <cagney@redhat.com>
3936
3937 * trad-frame.h (struct frame_info): Add opaque declaration.
3938 * remote-fileio.h (struct cmd_list_element): Add opaque
3939 declaration.
3940 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3941 comments.
3942
3943 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3944
3945 * remote.c (remote_prepare_to_store): Replace call to
3946 deprecated_read_register_bytes with multiple regcache_raw_read
3947 calls.
3948
3949 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3950
3951 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3952 (nto_find_and_open_solib): Likewise.
3953 (nto_init_solib_absolute_prefix): Likewise.
3954 (_initialize_nto_tdep): Fix indentation.
3955
3956 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3957
3958 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3959
3960 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3961
3962 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3963
3964 2003-06-17 Jim Blandy <jimb@redhat.com>
3965
3966 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3967
3968 2003-06-16 Theodore A. Roth <troth@openavr.org>
3969
3970 * avr-tdep.c (avr_extract_return_value): New function.
3971 (avr_gdbarch_init): Set extract_return_value method.
3972
3973 2003-06-16 Andrew Cagney <cagney@redhat.com>
3974
3975 * frame.h (deprecated_get_next_frame_hack): Declare.
3976 * frame.c (legacy_saved_regs_prev_register): Only require
3977 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3978 there are always saved regs.
3979 (deprecated_generic_get_saved_register): Do not require
3980 DEPRECATED_FRAME_INIT_SAVED_REGS.
3981 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3982 use frame ID unwind instead.
3983 (deprecated_get_next_frame_hack): New function.
3984
3985 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3986
3987 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3988 (h8300_push_dummy_call): ...this function. Some minor optimization.
3989 (h8300_push_return_address): Remove.
3990 (h8300_gdbarch_init): Remove calls to
3991 set_gdbarch_deprecated_dummy_write_sp,
3992 set_gdbarch_deprecated_push_arguments and
3993 set_gdbarch_deprecated_push_return_address.
3994 Add call to set_gdbarch_push_dummy_call.
3995
3996 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3997
3998 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3999 (E_PSEUDO_EXR_REGNUM): Ditto.
4000 (h8300_is_argument_spill): Check for instructions moving argument
4001 registers into safe registers.
4002 (h8300_skip_prologue): Check for stm instruction to push registers
4003 used for register variables onto stack.
4004 (gdb_print_insn_h8300): Remove.
4005 (h8300_examine_prologue): Add a comment.
4006 (h8300_register_name): Take pseudo registers into account.
4007 (h8300s_register_name): Ditto.
4008 (h8300sx_register_name): Ditto.
4009 (h8300_print_register): Ditto.
4010 (h8300_print_registers_info): Define "nice" printing order.
4011 (h8300_saved_pc_after_call): Take pseudo registers into account.
4012 (h8300_register_type): Ditto. Return type used for remote connection
4013 when requesting real CCR or EXR register, return actual type when
4014 requesting pseudo CCR or EXR.
4015 (h8300_pseudo_register_read): New function.
4016 (h8300_pseudo_register_write): Ditto.
4017 (h8300_dbg_reg_to_regnum): Ditto.
4018 (h8300s_dbg_reg_to_regnum): Ditto.
4019 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4020 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4021 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4022 set_gdbarch_print_insn architecture dependent.
4023 Call set_gdbarch_pseudo_register_read and
4024 set_gdbarch_pseudo_register_write.
4025 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4026
4027 2003-06-16 Andrew Cagney <cagney@redhat.com>
4028
4029 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4030 * gdbarch.h, gdbarch.c: Re-generate.
4031 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4032 * s390-tdep.c (s390_gdbarch_init): Update.
4033 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4034 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4035 * mips-tdep.c (mips_gdbarch_init): Update.
4036 * mcore-tdep.c (mcore_gdbarch_init): Update.
4037 * cris-tdep.c (cris_gdbarch_init): Update.
4038 * infcall.c (call_function_by_hand): Update.
4039 * ia64-tdep.c (ia64_push_arguments): Update comment.
4040 * frame.c (legacy_get_prev_frame): Do not assume
4041 SAVE_DUMMY_FRAME_TOS_P.
4042 * dummy-frame.c (find_dummy_frame): Update comment.
4043
4044 2003-06-16 Andrew Cagney <cagney@redhat.com>
4045
4046 * regcache.c (do_cooked_read): Do not use register_valid_p.
4047
4048 2003-06-15 Theodore A. Roth <troth@openavr.org>
4049
4050 * avr-tdep.c (avr_register_type): Remove a blank line.
4051 (avr_scan_prologue): Correct some comments.
4052
4053 2003-06-15 Theodore A. Roth <troth@openavr.org>
4054
4055 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4056 prologue types.
4057 Properly scan prologues generated by gcc with the -mcall-prologues
4058 option.
4059 Add code to scan -mcall-prologues for mega devices.
4060
4061 2003-06-15 Theodore A. Roth <troth@openavr.org>
4062
4063 * avr-tdep.c (avr_register_byte): Delete function.
4064 (avr_register_raw_size): Delete function.
4065 (avr_register_virtual_size): Delete function.
4066 (avr_register_virtual_type): Delete function.
4067 (avr_register_type): New function.
4068 (avr_address_to_pointer): Remove unused code.
4069 (avr_read_fp): Need to read FP as two separate bytes due to change to
4070 avr_register_type() usage.
4071 (avr_gdbarch_init): Don't set deprecated_register_size.
4072 Don't set deprecated_register_bytes.
4073 Don't set deprecated_register_byte.
4074 Don't set deprecated_register_raw_size.
4075 Don't set deprecated_max_register_raw_size.
4076 Don't set deprecated_register_virtual_size.
4077 Don't set deprecated_max_register_virtual_size.
4078 Don't set deprecated_register_virtual_type.
4079 Set register_type method.
4080
4081 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4082
4083 * Makefile.in (linux-nat.o): Add rule.
4084 * linux-nat.c: New file.
4085 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4086 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4087 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4088 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4089 * config/arm/linux.mh (NATDEPFILES): Likewise.
4090 * config/i386/linux.mh (NATDEPFILES): Likewise.
4091 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4092 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4093 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4094 * config/mips/linux.mh (NATDEPFILES): Likewise.
4095 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4096 * config/s390/s390.mh (NATDEPFILES): Likewise.
4097 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4098
4099 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4100
4101 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4102 replace out-of-date comment.
4103
4104 2003-06-15 Andrew Cagney <cagney@redhat.com>
4105
4106 * rdi-share/host.h (Fail): Change to a varargs function.
4107 * remote-rdi.c (Fail): Update.
4108
4109 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4110
4111 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4112 (i386_convert_register_p, i386_register_to_value,
4113 i386_register_from_value): Handle types longer than 8 bytes.
4114
4115 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4116
4117 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4118 Move floating-point code to new function in i387-tdep.c.
4119 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4120 New functions containing code moved here from i386-tdep.c.
4121 * i387-tdep.h: Add opaque declaration for `struct type'.
4122 (i387_register_to_value, i387_value_to_register): New prototypes.
4123 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4124 (x86_64_init_abi): Set convert_register_p, register_to_value and
4125 value_to_register here.
4126
4127 2003-06-14 Andrew Cagney <cagney@redhat.com>
4128
4129 * mips-tdep.c (mips_register_to_value): Make static.
4130 (mips_value_to_register): Make static.
4131 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4132 * ia64-tdep.c (ia64_register_raw_size): Make static.
4133 (ia64_register_virtual_size): Make static.
4134 (ia64_register_byte): Make static.
4135 * i387-tdep.c: Include "i387-tdep.h".
4136 (print_387_control_word): Delete function.
4137 (print_387_status_word): Delete function.
4138 (print_387_status_bits): Delete function.
4139 (print_387_control_bits): Delete function.
4140 * Makefile.in (i387-tdep.o): Update dependencies.
4141 * rdi-share/host.h (Fail): Declare.
4142 * remote-rdi.c (Fail): Update to match declaration.
4143
4144 2003-06-14 Andrew Cagney <cagney@redhat.com>
4145
4146 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4147 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4148 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4149 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4150 * README: Delete reference to remote-array.
4151 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4152 (remote-array.o): Delete target.
4153 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4154 * remote-array.c: Delete file.
4155
4156 2003-06-14 Andrew Cagney <cagney@redhat.com>
4157 Mark Kettenis <kettenis@gnu.org>
4158
4159 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4160 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4161 parameter with "frame".
4162 * gdbarch.h, gdbarch.c: Re-generate.
4163 * frame.h (put_frame_register): Declare.
4164 * frame.c (put_frame_register): New function.
4165 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4166 (legacy_register_to_value): Rewrite, use "frame" to get the
4167 register value.
4168 (legacy_value_to_register): Rewrite, use "frame" to find the
4169 register's location before storing.
4170 * arch-utils.h (legacy_convert_register_p): Update.
4171 (legacy_register_to_value, legacy_value_to_register): Update.
4172 * findvar.c (value_from_register): Rewrite, eliminate use of
4173 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4174 "frame" to REGISTER_TO_VALUE.
4175 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4176 lval_reg_frame_relative + lval_register branch of the switch. Do
4177 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4178 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4179 I386_EDI_REGNUM): New defines.
4180 (i386_next_regnum, i386_convert_register_p,
4181 i386_register_to_value, i386_value_to_register): New functions.
4182 (i386_register_convertible, i386_register_convert_to_virtual,
4183 i386_convert_to_raw): Remove functions.
4184 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4185 value_to_register instead of register_convertible,
4186 register_convert_to_virtual and register_convert_to_raw.
4187 * mips-tdep.c (mips_convert_register_p): New function.
4188 (mips_value_to_register): Replace mips_register_convert_from_type.
4189 (mips_register_to_value): Replace mips_register_convert_to_type.
4190 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4191 register_to_value.
4192 * alpha-tdep.c (alpha_convert_register_p): Update.
4193 (alpha_value_to_register): Update, store the register.
4194 (alpha_register_to_value): Update, fetch the register.
4195
4196 2003-06-14 Theodore A. Roth <troth@openavr.org>
4197
4198 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4199 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4200 Don't set deprecated_call_dummy_words.
4201 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4202 Don't set remote_translate_xfer_address.
4203 (avr_io_reg_read_command): Remove commented out debug printf.
4204 Wrap a long line.
4205
4206 2003-06-14 Theodore A. Roth <troth@openavr.org>
4207
4208 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4209 causes gdb to seg fault.
4210
4211 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4212
4213 * sparc-nat.c (fetch_inferior_registers): Correct
4214 a reference to "registers".
4215
4216 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4217
4218 * Makefile.in (exc_request_U_h): Define
4219 (exc_request_S_h): Likewise.
4220 (msg_reply_S_h): Likewise.
4221 (msg_U_h): Likewise.
4222 (notify_S_h): Likewise.
4223 (process_reply_S_h): Likewise.
4224 (gnu-nat.o): Depend on gdb_obstack_h
4225 * gnu-nat.c: Include "gdb_obstack.h".
4226
4227 2003-06-13 Andrew Cagney <cagney@redhat.com>
4228
4229 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4230 * gdbarch.h, gdbarch.c: Re-generate.
4231
4232 2003-06-13 Andrew Cagney <cagney@redhat.com>
4233
4234 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4235 when deprecated REGISTER macros can be deleted.
4236 * gdbarch.h, gdbarch.c: Re-generate.
4237
4238 2003-06-13 Jim Blandy <jimb@redhat.com>
4239
4240 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4241 Linux entry point symbols for _dl_debug_state, too.
4242
4243 2003-06-13 Andrew Cagney <cagney@redhat.com>
4244
4245 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4246 available, do not use the FP register, and always save the TOS.
4247 * dummy-frame.c (dummy_frame_this_id): Do not assert
4248 SAVE_DUMMY_FRAME_TOS.
4249 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4250 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4251 (i386_push_dummy_call): Add 8 to the returned SP.
4252 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4253 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4254 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4255 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4256 (x86_64_push_dummy_call): Return "sp + 16".
4257 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4258 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4259 save_dummy_frame_tos.
4260
4261 2003-06-13 Jim Blandy <jimb@redhat.com>
4262
4263 * frv-tdep.c (frv_use_struct_convention): Delete static
4264 declaration for function deleted in my change of 2003-06-12.
4265
4266 2003-06-13 Theodore A. Roth <troth@openavr.org>
4267
4268 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4269 (avr_pointer_to_address): Shift code addrs left 1 bit.
4270 (avr_convert_from_func_ptr_addr): Delete function since operation is
4271 better handled by avr_address_to_pointer and avr_pointer_to_address.
4272 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4273
4274 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4275
4276 From Kelley Cook <kelleycook@wideopenwest.com>:
4277 * configure.host: Accept i[34567]86 variants.
4278 * configure.tgt: Likewise.
4279 * nlm/configure.in: Likewise.
4280 * nlm/configure: Regenerated.
4281
4282 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4283
4284 * arm-tdep.c (solib-svr4.h): Dont' include it.
4285 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4286 * arm-linux-tdep.c: ... here. Make static.
4287 (arm_linux_init_abi): Register it.
4288 (solib-svr4.h): Include it.
4289 * Makefile.in: Update dependencies.
4290 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4291 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4292
4293 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4294
4295 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4296 indicate registers used for return values.
4297 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4298 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4299 members.
4300 (h8300_init_extra_frame_info): Ditto.
4301 (h8300_frame_locals_address): Removed.
4302 (h8300_frame_args_address): Removed.
4303 (h8300_extract_return_value): Use new regcache structure. Only care
4304 for 16 bit CPUs.
4305 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4306 (h8300_store_return_value): Use new regcache structure. Only care
4307 for 16 bit CPUs.
4308 (h8300h_store_return_value): Same function for 32 bit CPUs.
4309 (h8300_store_struct_return): Removed.
4310 (h8300_extract_struct_value_address): Use new regcache structure.
4311 (h8300h_extract_struct_value_address): Removed.
4312 (h8300_push_dummy_code): New function.
4313 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4314 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4315 set_gdbarch_store_return_value architecture dependent.
4316 Call set_gdbarch_push_dummy_code and
4317 set_gdbarch_extract_struct_value_address.
4318 Remove calls to set_gdbarch_frame_args_address,
4319 set_gdbarch_frame_locals_address,
4320 set_gdbarch_deprecated_store_struct_return,
4321 set_gdbarch_deprecated_extract_return_value,
4322 set_gdbarch_deprecated_extract_struct_value_address,
4323 set_gdbarch_deprecated_call_dummy_words and
4324 set_gdbarch_deprecated_sizeof_call_dummy_words.
4325
4326 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4327
4328 * h8300-tdep.c (h8300_register_byte): Remove.
4329 (h8300h_register_byte): Remove.
4330 (h8300_register_virtual_type): Remove. Substitute by...
4331 (h8300_register_type): New function.
4332 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4333 (h8300h_extract_struct_value_address): Ditto.
4334 (h8300_gdbarch_init): Drop calls to
4335 set_gdbarch_deprecated_register_byte and
4336 set_gdbarch_deprecated_register_virtual_type.
4337 Add call to set_gdbarch_register_type.
4338
4339 2003-06-13 Andrew Cagney <cagney@redhat.com>
4340
4341 * gdbarch.sh: Update comments on registers.
4342 (deprecated_register_byte): Rename register_byte.
4343 (deprecated_register_raw_size): Rename register_raw_size.
4344 (deprecated_register_virtual_size): Rename register_virtual_size.
4345 (deprecated_register_virtual_type): Rename register_virtual_type.
4346 * gdbarch.h, gdbarch.c: Re-generate.
4347 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4348 * vax-tdep.c (vax_gdbarch_init): Update.
4349 * v850-tdep.c (v850_gdbarch_init): Update.
4350 * sparc-tdep.c (sparc_gdbarch_init): Update.
4351 * sh-tdep.c (sh_gdbarch_init): Update.
4352 * s390-tdep.c (s390_gdbarch_init): Update.
4353 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4354 * ns32k-tdep.c: Update.
4355 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4356 * mips-tdep.c (mips_gdbarch_init): Update.
4357 * mcore-tdep.c (mcore_gdbarch_init): Update.
4358 * m68k-tdep.c (m68k_gdbarch_init): Update.
4359 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4360 * ia64-tdep.c (ia64_gdbarch_init): Update.
4361 * hppa-tdep.c (hppa_gdbarch_init): Update.
4362 * h8300-tdep.c (h8300_gdbarch_init): Update.
4363 * frv-tdep.c (frv_gdbarch_init): Update.
4364 * cris-tdep.c (cris_gdbarch_init): Update.
4365 * avr-tdep.c (avr_gdbarch_init): Update.
4366 * alpha-tdep.c (alpha_gdbarch_init): Update.
4367 * arm-tdep.c (arm_gdbarch_init): Update.
4368
4369 2003-06-13 Andrew Cagney <cagney@redhat.com>
4370
4371 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4372 mips_o32_use_struct_convention with always_use_struct_convention.
4373
4374 2003-06-12 David Carlton <carlton@kealia.com>
4375
4376 * cp-namespace.c (cp_set_block_scope): Comment out
4377 processing_has_namespace_info branch.
4378
4379 2003-06-12 Jim Blandy <jimb@redhat.com>
4380
4381 Recognize and skip 64-bit PowerPC Linux linkage functions.
4382 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4383 insn_pattern, insns_match_pattern, d_field, ds_field): New
4384 functions, macros, and types for working with PPC instructions.
4385 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4386 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4387 ppc64_skip_trampoline_code): New functions, variables, and macros
4388 for recognizing and skipping linkage functions.
4389 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4390 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4391
4392 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4393 register offsets for both the 32- and 64-bit interfaces.
4394
4395 Actually finish the job started by my change of 2003-05-29.
4396 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4397 other #definition of this.
4398 (ppc_linux_skip_trampoline_code): Remove declaration.
4399 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4400 static.
4401 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4402 method for GDBARCH.
4403
4404 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4405 'long' on ppc64-*-linux*.
4406
4407 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4408 isn't #defined, assume the register doesn't exist: act as if
4409 tdep->ppc_mq_regnum were -1.
4410
4411 * configure.host, configure.tgt: Add entries for
4412 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4413 powerpc/linux.mt.
4414 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4415 New files.
4416
4417 * arch-utils.c (always_use_struct_convention): New function.
4418 * arch-utils.h (always_use_struct_convention): New prototype.
4419 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4420 (alpha_gdbarch_init): Register always_use_struct_convention,
4421 instead of alpha_use_struct_convention.
4422 * cris-tdep.c (cris_use_struct_convention): Delete.
4423 (cris_gdbarch_init): Register always_use_struct_convention,
4424 instead of cris_use_struct_convention.
4425 * frv-tdep.c (frv_use_struct_convention): Delete.
4426 (frv_gdbarch_init): Register always_use_struct_convention,
4427 instead of frv_use_struct_convention.
4428 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4429 (h8300_gdbarch_init): Register always_use_struct_convention,
4430 instead of h8300_use_struct_convention.
4431 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4432 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4433 instead of mips_o32_use_struct_convention.
4434
4435 2003-06-12 Andrew Cagney <cagney@redhat.com>
4436
4437 * wince.c: Include "mips-tdep.h".
4438 * mips-tdep.h (mips_next_pc): Declare.
4439 * mcore-tdep.c: Make more local functions static.
4440 * Makefile.in (wince.o): Update dependencies.
4441
4442 2003-06-12 David Carlton <carlton@kealia.com>
4443
4444 * symtab.c (lookup_symbol_aux_minsyms): Replace
4445 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4446 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4447 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4448 SYMBOL_NATURAL_NAME.
4449
4450 2003-06-12 Andreas Schwab <schwab@suse.de>
4451
4452 * Makefile.in (tuiDisassem.o): Update dependencies.
4453
4454 2003-06-12 David Carlton <carlton@bactrian.org>
4455
4456 * symtab.h: Delete declaration of make_symbol_overload_list.
4457 Add declaration of lookup_partial_symbol.
4458 * symtab.c (remove_params): Move to cp-support.c.
4459 (overload_list_add_symbol, make_symbol_overload_list)
4460 (sym_return_val_size, sym_return_val_index): Ditto.
4461 (lookup_partial_symbol): Make extern.
4462 * cp-support.h: Add declaration of make_symbol_overload_list.
4463 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4464 symtab.h, and block.h.
4465 (remove_params): Move here from symtab.c.
4466 (overload_list_add_symbol, make_symbol_overload_list)
4467 (sym_return_val_size, sym_return_val_index): Ditto.
4468 * valops.c: Include cp-support.h.
4469 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4470 frame_h, and block_h.
4471 (valops.o): Depend on cp_support_h.
4472
4473 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4474
4475 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4476 substitute by NUM_REGS throughout.
4477 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4478 (h8300s_register_name): New function for H8S registers.
4479 (h8300sx_register_name): Ditto for H8SX registers.
4480 (h8300_print_register): Revise register printing, avoid depending
4481 on 32 bit long.
4482 (h8300_register_byte): Only care for H8/300 registers.
4483 (h8300h_register_byte): New function for any other architecture.
4484 (h8300_register_raw_size): Remove.
4485 (h8300_register_virtual_type): Revise to return actually useful
4486 type.
4487 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4488 (h8300h_extract_struct_value_address): New function for any other
4489 architecture.
4490 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4491 set_gdbarch_register_name, set_gdbarch_register_byte,
4492 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4493 Remove calls to set_gdbarch_deprecated_register_size,
4494 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4495 set_gdbarch_deprecated_max_register_raw_size,
4496 set_gdbarch_register_virtual_size and
4497 set_gdbarch_deprecated_max_register_virtual_size entirely.
4498 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4499 set_gdbarch_long_double_bit.
4500
4501 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4502
4503 * doublest.c (convert_doublest_to_floatformat): When dealing
4504 with the implied integer bit, only alter mant_bits if we are
4505 processing a full 32 bits of mantissa.
4506
4507 2003-06-11 David Carlton <carlton@bactrian.org>
4508
4509 * dictionary.h: New.
4510 * dictionary.c: New.
4511 * block.h: Add opaque declaration for struct dictionary.
4512 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4513 'sym' members.
4514 (BLOCK_DICT): New macro.
4515 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4516 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4517 BLOCK_SHOULD_SORT.
4518 (ALL_BLOCK_SYMBOLS): Update definition.
4519 * Makefile.in (SFILES): Add dictionary.c.
4520 (dictionary_h): New.
4521 (COMMON_OBS): Add dictionary.o.
4522 (dictionary.o): New.
4523 (ada-lang.o): Depend on dictionary_h.
4524 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4525 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4526 (mi-cmd-stack.o): Ditto.
4527 (gdbtk-cmds.o): Update dependencies.
4528 (gdbtk-stack.o): Ditto.
4529 * ada-lang.c: Include dictionary.h.
4530 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4531 (fill_in_ada_prototype, debug_print_block): Ditto.
4532 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4533 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4534 'is_sorted'.
4535 * mdebugread.c: Include dictionary.h.
4536 (struct parse_stack): Delete 'maxsyms' member.
4537 (parse_symbol): Update calls to new_block. Delete calls to
4538 shrink_block. Use dictionary methods.
4539 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4540 Update calls to new_symtab. Don't maintain maxsyms data.
4541 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4542 (add_symbol): Just call dict_add_symbol.
4543 (new_symtab): Delete 'maxsyms' argument.
4544 (new_symtab): Update calls to new_block.
4545 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4546 (shrink_block): Delete function.
4547 (fixup_sigtramp): Update call to new_block. Add symbol via
4548 dict_add_symbol.
4549 * jv-lang.c: Include dictionary.h.
4550 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4551 appropriately. Set class_symtab->free_func. Make sure the
4552 blockvector is big enough to hold two blocks.
4553 (add_class_symtab_symbol): Use dictionary methods.
4554 (free_class_block): New function.
4555 (type_from_class): Replace explicit iteration by
4556 ALL_BLOCK_SYMBOLS.
4557 * symtab.h (struct symtab): Replace 'free_ptr' method by
4558 'free_func'.
4559 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4560 sort_symtab_syms.
4561 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4562 sort_symtab_syms.
4563 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4564 Include dictionary.h.
4565 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4566 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4567 sort_symtab_syms.
4568 * objfiles.c: Include dictionary.h.
4569 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4570 * buildsym.c: Include dictionary.h.
4571 (finish_block): Use dictionary methods.
4572 (end_symtab): Set free_func to NULL, not free_ptr.
4573 * tracepoint.c: Include dictionary.h.
4574 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4575 (scope_info): Ditto.
4576 * stack.c: Include dictionary.h.
4577 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4578 (print_block_frame_labels, print_frame_arg_vars)
4579 (print_frame_args): Ditto.
4580 * symmisc.c (free_symtab_block): Use dictionary methods.
4581 (dump_symtab): Ditto.
4582 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4583 Include dictionary.h.
4584 * symfile.h: Delete declarations of sort_block_syms,
4585 sort_symtab_syms.
4586 * symfile.c (sort_block_syms): Delete.
4587 (sort_symtab_syms): Delete.
4588 * symtab.c: Include dictionary.h.
4589 (lookup_block_symbol): Use dictionary iterators.
4590 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4591 (search_symbols, make_symbol_completion_list): Ditto.
4592 (make_symbol_overload_list): Ditto.
4593 * valops.c (value_of_local): Use dict_empty.
4594 Include dictionary.h.
4595
4596 2003-06-11 J. Brobecker <brobecker@gnat.com>
4597
4598 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4599
4600 2003-06-11 David Carlton <carlton@bactrian.org>
4601
4602 * block.h (BLOCK_SHOULD_SORT): Delete.
4603 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4604 blocks.
4605 * ada-lang.c (ada_add_block_symbols): Ditto.
4606 * symfile.c (sort_block_syms): Delete.
4607 (sort_symtab_syms): Ditto.
4608 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4609 declarations.
4610 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4611 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4612 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4613 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4614 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4615 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4616 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4617
4618 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4619
4620 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4621 bits to 128.
4622
4623 2003-06-11 Andrew Cagney <cagney@redhat.com>
4624
4625 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4626 REGISTER_CONVERTIBLE.
4627 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4628 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4629 * gdbarch.h, gdbarch.c: Re-generate.
4630 * arch-utils.h (deprecated_register_convertible_not): Rename
4631 generic_register_convertible_not.
4632 * arch-utils.c (deprecated_register_convertible_not): Rename
4633 generic_register_convertible.
4634 (legacy_convert_register_p, legacy_register_to_value): Update.
4635 * sh-tdep.c (sh64_push_arguments): Update.
4636 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4637 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4638 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4639 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4640 * arch-utils.c (legacy_value_to_register): Update.
4641 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4642 (rs6000_register_convert_to_raw): Make parameter "from" const.
4643 * mips-tdep.c (mips_gdbarch_init): Update.
4644 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4645 * infcmd.c (default_print_registers_info): Update.
4646 * ia64-tdep.c (ia64_gdbarch_init): Update.
4647 (ia64_register_convert_to_raw): Make parameter "from" const.
4648 * i386-tdep.c (i386_gdbarch_init): Update.
4649 (i386_register_convert_to_raw): Update.
4650
4651 2003-06-11 Andrew Cagney <cagney@redhat.com>
4652
4653 * remote-fileio.c: Include "remote-fileio.h".
4654 * Makefile.in (remote-fileio.o): Update dependencies.
4655 (remote_fileio_h): Fix typo.
4656
4657 2003-06-11 Andrew Cagney <cagney@redhat.com>
4658
4659 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4660 (xstormy16_save_dummy_frame_tos): Make static.
4661 (_initialize_xstormy16_tdep): Add declaration.
4662 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4663 * v850-tdep.c: Make local functions static.
4664 (_initialize_v850_tdep): Add declaration.
4665 * sparc-tdep.c: Make local functions static.
4666 (_initialize_sparc_tdep): Add declaration.
4667 * sh-tdep.c: Make local functions static.
4668 (_initialize_sh_tdep): Add declaration.
4669 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4670 * s390-tdep.c: Make local functions static.
4671 (_initialize_s390_tdep): Add declaration.
4672 * dbxread.c (find_stab_function_addr): Make static.
4673 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4674 * ocd.c (_initialize_remote_ocd): Add declaration.
4675 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4676 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4677 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4678 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4679 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4680 * remote-array.c (_initialize_array): Add declaration.
4681 (_initialize_remote_monitors): Add declaration.
4682 * remote-mips.c: Make local functions static.
4683 (_initialize_remote_mips): Add declaration.
4684 * mcore-tdep.c: Make all local functions static.
4685 (_initialize_mcore_tdep): Add declaration.
4686 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4687 * abug-rom.c (_initialize_abug_rom): Add declaration.
4688 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4689 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4690 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4691 * remote-est.c (_initialize_est): Add declaration.
4692 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4693 (m68hc11_call_dummy_address): Make static.
4694 * ia64-tdep.c: Make local functions static.
4695 (_initialize_ia64_tdep): Add declaration.
4696 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4697 * monitor.c (monitor_wait_filter): Make static.
4698 (_initialize_remote_monitors): Add declaration.
4699 * remote-hms.c (_initialize_remote_hms): Add declaration.
4700 * remote-e7000.c (fetch_regs_from_dump): Make static.
4701 (expect_n): Make static.
4702 (_initialize_remote_e7000): Add declaration.
4703 * ser-e7kpc.c: Always include "defs.h".
4704 (_initialize_ser_e7000pc): Add declaration.
4705 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4706 * cris-tdep.c: Make all but one function static.
4707 (_initialize_cris_tdep): Add declaration.
4708 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4709 * solib.c (update_solib_list): Make static.
4710 (_initialize_solib): Add declaration.
4711 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4712 (_initialize_avr_tdep): Add declaration.
4713 * remote-rdi.c (voiddummy): Make static.
4714 (_initialize_remote_rdi): Add declaration.
4715 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4716 * remote-rdp.c (send_rdp): Make static.
4717 (_initialize_remote_rdp): Add declaration.
4718 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4719
4720 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4721
4722 * remote-fileio.c: Make ari happy.
4723
4724 2003-06-10 J. Brobecker <brobecker@gnat.com>
4725
4726 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4727 fetching the trailing bytes of the buffer we are about to write.
4728
4729 2003-06-10 Andrew Cagney <cagney@redhat.com>
4730
4731 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4732 * Makefile.in (remote-fileio.o): Update dependencies.
4733 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4734 include <setjmp.h>, or <sys/types.h> conditional on USG.
4735 (remote_fio_jmp_buf): Delete global variable.
4736
4737 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4738 Martin M. Hunt <hunt@redhat.com>
4739
4740 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4741 (SFILES): Add remote-fileio.c.
4742 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4743 dependencies for building remote.o.
4744 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4745 * remote-fileio.h: New header file defining remote File-I/O interface.
4746 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4747 static storage class.
4748 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4749 'F' packet.
4750 (_initialize_remote): Call initialize_remote_fileio().
4751 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4752 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4753 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4754 (captured_main): Initialize new ui_files.
4755 * ui-file.c: Add read and fgets input functions.
4756 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4757 (null_file_read): New function.
4758 (ui_file_read): New function.
4759 (set_ui_file_read): New function.
4760 (stdio_file_read): New function.
4761 * ui-file.h: New type ui_file_read_ftype.
4762 (set_ui_file_read): Declare.
4763 (ui_file_read): Declare.
4764
4765 2003-06-09 Andrew Cagney <cagney@redhat.com>
4766
4767 * frame.h (deprecated_unwind_get_saved_register): Rename
4768 generic_unwind_get_saved_register, update comments.
4769 * mips-tdep.c (mips_get_saved_register): Update.
4770 * frame.c (deprecated_unwind_get_saved_register): Update.
4771
4772 2003-06-09 Andrew Cagney <cagney@redhat.com>
4773
4774 * vax-tdep.c (vax_frame_locals_address): Delete function.
4775 (vax_gdbarch_init): Do not set frame_locals_address.
4776 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4777 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4778 * s390-tdep.c (s390_frame_args_address): Delete function.
4779 (s390_gdbarch_init): Do not set frame_args_address or
4780 frame_locals_address.
4781 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4782 (ns32k_gdbarch_init): Do not set frame_locals_address.
4783 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4784 (hppa_frame_locals_address): Delete function.
4785 (hppa_gdbarch_init): Do not set frame_args_address, or
4786 frame_locals_address.
4787 * arm-tdep.c (arm_frame_args_address): Delete.
4788 (arm_frame_locals_address): Delete.
4789 (arm_gdbarch_init): Do not set frame_args_address, or
4790 frame_locals_address.
4791
4792 2003-06-09 Andrew Cagney <cagney@redhat.com>
4793
4794 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4795 * gdbarch.h, gdbarch.c: Re-generate.
4796 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4797 * arch-utils.c (frame_num_args_unknown): Delete function.
4798 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4799 (frame_info): Use FRAME_NUM_ARGS_P.
4800 * arm-tdep.c (arm_frame_num_args): Delete function.
4801 (arm_gdbarch_init): Do not set frame_num_args.
4802 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4803 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4804 (hppa_gdbarch_init): Do not set frame_num_args.
4805 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4806 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4807 frame_num_args to default frame_num_args_unknown.
4808 * v850-tdep.c (v850_gdbarch_init): Ditto.
4809 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4810 * sh-tdep.c (sh_gdbarch_init): Ditto.
4811 * s390-tdep.c (s390_gdbarch_init): Ditto.
4812 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4813 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4814 * mips-tdep.c (mips_gdbarch_init): Ditto.
4815 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4816 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4817 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4818 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4819 * i386-tdep.c (i386_gdbarch_init): Ditto.
4820 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4821 * frv-tdep.c (frv_gdbarch_init): Ditto.
4822 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4823 * cris-tdep.c (cris_gdbarch_init): Ditto.
4824 * avr-tdep.c (avr_gdbarch_init): Ditto.
4825 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4826
4827 2003-06-09 Andrew Cagney <cagney@redhat.com>
4828
4829 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4830 (print_frame_args): Moved to "stack.c".
4831 * stack.c: Include "gdb_assert.h".
4832 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4833 (print_frame_args): Moved from "printcmd.c".
4834 * frame.h (print_frame_args): Delete declaration.
4835 * Makefile.in (stack.o): Update dependencies.
4836
4837 2003-06-08 Andrew Cagney <cagney@redhat.com>
4838
4839 * frame.c (get_prev_frame): Remove reference to
4840 frame_args_address_correct in comments.
4841 * frame-base.c (default_frame_args_address): Delete code
4842 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4843 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4844 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4845 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4846 (vax_frame_args_address_correct): Delete declaration.
4847
4848 2003-06-08 Andrew Cagney <cagney@redhat.com>
4849
4850 * gdbarch.sh (UNWIND_SP): Add.
4851 * gdbarch.h, gdbarch.c: Re-generate.
4852 * frame.c (frame_sp_unwind): New function.
4853 (get_frame_sp): New function.
4854 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4855 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4856 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4857 value.
4858 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4859 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4860
4861 2003-06-08 Andrew Cagney <cagney@redhat.com>
4862
4863 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4864 REMOTE_BREAKPOINT.
4865 * remote.c: Update.
4866 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4867 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4868 * config/m68k/tm-sun3.h: Update.
4869 * config/m68k/tm-m68klynx.h: Update.
4870 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4871
4872 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4873 trad_frame". Update comments.
4874 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4875 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4876 (trad_frame_register_value, trad_frame_prev_register): Update.
4877
4878 2003-06-08 Andrew Cagney <cagney@redhat.com>
4879
4880 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4881 from GCC's acinclude.m4.
4882 * configure.in: Check for getopt's delcaration.
4883 * aclocal.m4, config.in, configure: Re-generate.
4884 * main.c (error_init): Delete declaration.
4885 * defs.h (error_init): Declare.
4886 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4887 (rs6000_convert_from_func_ptr_addr): Make static.
4888 (_initialize_rs6000_tdep): Add declaration.
4889 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4890 (show_commands, set_verbose, show_history): Delete declaration.
4891 * top.h (set_verbose): Add declaration.
4892 (show_history, set_history, show_commands): Add declaration.
4893 (do_restore_instream_cleanup): Add declaration.
4894 * objc-lang.c (specialcmp): Make static.
4895 (print_object_command): Make static.
4896 (find_objc_msgsend): Make static.
4897 (find_objc_msgcall_submethod_helper): Make static.
4898 (find_objc_msgcall_submethod): Make static.
4899 (_initialize_objc_language): Add declaration.
4900 (find_implementation_from_class): Make static.
4901 (find_implementation): Make static.
4902 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4903 * objc-lang.h (lookup_struct_typedef): Add declaration.
4904 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4905 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4906 (do_restore_user_call_depth): Make static.
4907 (do_restore_instream_cleanup): Delete declaration.
4908 (dont_repeat): Delete declaration.
4909 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4910 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4911 * reggroups.c (_initialize_reggroup): Add declaration.
4912 * cp-support.c (_initialize_cp_support): Add declaration.
4913 * cp-abi.c (_initialize_cp_abi): Add declaration.
4914 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4915 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4916 (_initialize_gnu_v3_abi): Add declaration.
4917 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4918 (_initialize_gnu_v2_abi): Add declaration.
4919 * frame-base.c (_initialize_frame_base): Add declaration.
4920 * doublest.c (floatformat_from_length): Make static.
4921 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4922 * frame.c (create_sentinel_frame): Make static.
4923 (_initialize_frame): Add declaration.
4924 * top.c (do_catch_errors): Make static.
4925 (gdb_rl_operate_and_get_next_completion): Make static.
4926 * typeprint.c: Include "typeprint.h".
4927 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4928 (sentinel_frame_this_id): Make static.
4929 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4930 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4931 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4932 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4933 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4934 * maint.c (maintenance_print_architecture): Make static.
4935 * signals/signals.c (_initialize_signals): Add declaration.
4936 * std-regs.c (_initialize_frame_reg): Add declaration.
4937 * jv-exp.y (push_variable): ISO C definition.
4938 (push_qualified_expression_name): Ditto.
4939 * memattr.c (_initialize_mem): Add declaration.
4940 * remote.c (remote_check_watch_resources): Make static.
4941 (remote_stopped_by_watchpoint): Make static.
4942 (remote_stopped_data_address): Make static.
4943 * d10v-tdep.c (nr_dmap_regs): Make static.
4944 (a0_regnum): Make static.
4945 (d10v_frame_unwind_cache): Make static.
4946 (d10v_frame_p): Make static.
4947 * osabi.c (show_osabi): Make static.
4948 (_initialize_gdb_osabi): Add extern declaration.
4949 * gdbtypes.c (make_qualified_type): Make static.
4950 (safe_parse_type): Make static.
4951 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4952 * macrotab.c (macro_bcache_free): Make static.
4953 * interps.c (interp_set_quiet): Make static.
4954 (interpreter_exec_cmd): Make static.
4955 * stack.h (select_frame_command): New file.
4956 * stack.c: Include "stack.h".
4957 (select_frame_command_wrapper): Delete function.
4958 (select_frame_command): Make global.
4959 * infcall.c: Include "infcall.h".
4960 * linespec.c: Include "linespec.h".
4961 * symfile.c (sections_overlap): Make static.
4962 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4963 * charset.c (_initialize_charset): Add missing prototype.
4964 * regcache.c (init_legacy_regcache_descr): Make static.
4965 (do_regcache_xfree): Make static.
4966 (regcache_xfer_part): Make static.
4967 (_initialize_regcache): Add missing prototype.
4968 * breakpoint.c (parse_breakpoint_sals): Make static.
4969 (breakpoint_sals_to_pc): Make static.
4970 * interps.h (clear_interpreter_hooks): ISO C declaration.
4971 * Makefile.in (stack_h): Define.
4972 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4973 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4974
4975 2003-06-08 Andrew Cagney <cagney@redhat.com>
4976
4977 * Makefile.in (d10v-tdep.o): Update dependencies.
4978 (SFILES): Add trad-frame.c.
4979 (trad_frame_h): Define.
4980 (COMMON_OBS): Add trad-frame.o.
4981 (trad-frame.o): Specify dependencies.
4982 * d10v-tdep.c: Include "trad-frame.h".
4983 (saved_regs_unwinder): Delete function.
4984 (d10v_frame_prev_register): Use trad_frame_prev_register.
4985 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4986 trad_frame", delete "regs" and "prev_sp".
4987 (prologue_find_regs): Use trad-frame.
4988 * trad-frame.h, trad-frame.c: New files.
4989
4990 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4991
4992 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4993
4994 2003-06-07 Adam Fedor <fedor@gnu.org>
4995
4996 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4997 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4998 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4999 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5000 resolve_msgsend_super, resolve_msgsend_super_stret):
5001 Use it.
5002
5003 2003-06-07 Andrew Cagney <cagney@redhat.com>
5004
5005 * symfile.h: Re-indent, clean up comments.
5006
5007 2003-06-07 Andrew Cagney <cagney@redhat.com>
5008
5009 * inferior.h (deprecated_write_sp): Replace
5010 generic_target_write_sp.
5011 * regcache.c (deprecated_write_sp): Replace
5012 generic_target_write_sp.
5013 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5014 * vax-tdep.c (vax_gdbarch_init): Update.
5015 * v850-tdep.c (v850_gdbarch_init): Update.
5016 * sparc-tdep.c (sparc_gdbarch_init): Update.
5017 * sh-tdep.c (sh_gdbarch_init): Update.
5018 * s390-tdep.c (s390_gdbarch_init): Update.
5019 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5020 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5021 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5022 * mcore-tdep.c (mcore_gdbarch_init): Update.
5023 * m68k-tdep.c (m68k_gdbarch_init): Update.
5024 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5025 * ia64-tdep.c (ia64_gdbarch_init): Update.
5026 * h8300-tdep.c (h8300_gdbarch_init): Update.
5027 * frv-tdep.c (frv_gdbarch_init): Update.
5028 * cris-tdep.c (cris_gdbarch_init): Update.
5029 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5030
5031 2003-06-07 Andrew Cagney <cagney@redhat.com>
5032
5033 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5034 Assert that PC_REGNUM is valid.
5035 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5036
5037 2003-06-07 Andrew Cagney <cagney@redhat.com>
5038
5039 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5040 * gdbarch.h, gdbarch.c: Regenerate.
5041 * mn10300-tdep.c: Include "gdb_assert.h".
5042 (mn10300_read_fp): New function.
5043 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5044 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5045 * ia64-tdep.c: Include "gdb_assert.h".
5046 (ia64_read_fp): New function.
5047 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5048 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5049 * regcache.c (generic_target_read_sp): Delete function.
5050 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5051 * inferior.h (generic_target_read_sp): Delete declaration.
5052 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5053 generic_target_read_sp.
5054 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5055 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5056 * sh-tdep.c (sh_gdbarch_init): Ditto.
5057 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5058 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5059
5060 2003-06-07 Andrew Cagney <cagney@redhat.com>
5061
5062 * gdbarch.sh: Comment each field of startup_gdbarch.
5063 * gdbarch.h, gdbarch.c: Re-generate.
5064
5065 2003-06-07 Andrew Cagney <cagney@redhat.com>
5066
5067 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5068 * gdbarch.h, gdbarch.c: Re-generate.
5069 * regcache.c: Update comments on read_pc et.al.
5070 (generic_target_read_pc): Delete function.
5071 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5072 * inferior.h (generic_target_read_pc): Delete declaration.
5073 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5074 generic_target_read_pc.
5075 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5076 * sh-tdep.c (sh_gdbarch_init): Ditto.
5077 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5078 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5079
5080 2003-06-07 Andrew Cagney <cagney@redhat.com>
5081
5082 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5083 "index" with "special_local_sect". Use strcmp instead of STREQ.
5084 Append period to coments.
5085
5086 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5087
5088 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5089 (elfstab_offset_sections): Likewise.
5090 * gdb-stabs.h (stab_section_info): Likewise.
5091 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5092 * objfiles.c (objfile_relocate): Likewise.
5093 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5094 * remote.c (get_offsets): Likewise.
5095 (remote_cisco_objfile_relocate): Likewise.
5096 * somread.c (som_symfile_offsets): Likewise.
5097 * symfile.c (alloc_section_addr_info): New function.
5098 (build_section_addr_info_from_section_tab): Use it.
5099 (free_section_addr_info): Adjust.
5100 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5101 (syms_from_objfile): Allocate local_addr dynamically.
5102 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5103 dynamically.
5104 (add_symbol_file_command): Allocate sect_opts dynamically.
5105 (reread_symbols): Avoid use of SECT_OFF_MAX.
5106 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5107 (alloc_section_addr_info): Declare it.
5108 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5109 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5110 dynamically.
5111 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5112
5113 2003-06-06 Andrew Cagney <cagney@redhat.com>
5114
5115 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5116 (d10v_frame_unwind_cache): Do not set "return_pc".
5117
5118 2003-06-06 Michael Snyder <msnyder@redhat.com>
5119
5120 * h8300-tdep.c: Make tidy (long lines).
5121
5122 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5123
5124 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5125 to regcache_collect().
5126
5127 2003-06-05 J. Brobecker <brobecker@gnat.com>
5128
5129 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5130 pc_in_sigtramp multiarch method.
5131 (hppa_hpux_som_init_abi): Use it.
5132 (hppa_hpux_elf_init_abi): Likewise.
5133 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5134 macro has been multiarched.
5135 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5136 macro here, as hppa64 isn't multiarched yet.
5137
5138 2003-06-05 Andrew Cagney <cagney@redhat.com>
5139
5140 * Makefile.in (value_h): Add $(frame_h).
5141 * value.h: Include "frame.h".
5142 (struct value): Replace "frame_addr" with "frame_id".
5143 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5144 * values.c (allocate_value): Use VALUE_FRAME_ID.
5145 (value_copy): Use VALUE_FRAME_ID.
5146 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5147 * valops.c (value_assign): Update. Use frame_find_by_id.
5148
5149 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5150
5151 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5152 in each pass.
5153
5154 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5155
5156 * thread-db.c (check_event): For create/death event breakpoints,
5157 loop through all messages to ensure that we read the message
5158 corresponding to the breakpoint we are at.
5159
5160 2003-06-04 Michael Snyder <msnyder@redhat.com>
5161
5162 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5163
5164 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5165
5166 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5167 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5168 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5169 when handling .eh_frame sections.
5170
5171 2003-06-04 J. Brobecker <brobecker@gnat.com>
5172
5173 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5174 prepare_to_proceed procedure instead of the hppa-specific one.
5175 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5176
5177 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5178
5179 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5180 * config.in: Regenerated.
5181 * configure.in: Add test for syscall function and check for
5182 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5183 * configure: Regenerated.
5184 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5185 <sys/syscall.h>.
5186 (kill_lwp): New function that uses tkill syscall or
5187 uses kill, depending on whether threading model is nptl or not.
5188 All callers of kill() changed to use kill_lwp().
5189 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5190 see if all threads have already exited in the nptl model.
5191 (stop_and_resume_callback): New callback function used by the
5192 lin_lwp_wait thread exit handling code.
5193 (stop_wait_callback): Check for threads already having exited and
5194 delete such threads fromt the lwp list when discovered.
5195 (stop_callback): Don't assert retcode of kill call.
5196
5197 Roland McGrath <roland@redhat.com>
5198 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5199 nptl libthread_db.
5200
5201 2003-06-03 Richard Henderson <rth@redhat.com>
5202
5203 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5204 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5205 (alpha_sigtramp_frame_prev_register): Likewise.
5206 (alpha_heuristic_frame_prev_register): Likewise.
5207 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5208
5209 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5210 alpha-specific register id names.
5211 (alpha_mdebug_frame_unwind_cache): Likewise.
5212 (alpha_mdebug_frame_prev_register): Likewise.
5213
5214 2003-06-03 Richard Henderson <rth@redhat.com>
5215
5216 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5217 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5218 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5219 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5220 unwind routines.
5221 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5222 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5223 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5224
5225 * alpha-linux-tdep.c: Remove unnecessary includes.
5226 * Makefile.in (alpha-linux-tdep.o): Update.
5227
5228 2003-06-03 Richard Henderson <rth@redhat.com>
5229
5230 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5231 (alphabsd_fill_fpreg): Likewise.
5232
5233 2003-06-03 J. Brobecker <brobecker@gnat.com>
5234
5235 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5236 references to struct frame_info fields by calls to the equivalent
5237 accessors. Necessary now that frame_info is opaque.
5238
5239 2003-06-03 J. Brobecker <brobecker@gnat.com>
5240
5241 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5242 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5243 structure, field no longer exists.
5244
5245 2003-06-03 J. Brobecker <brobecker@gnat.com>
5246
5247 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5248 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5249
5250 2003-06-03 J. Brobecker <brobecker@gnat.com>
5251
5252 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5253 references to struct frame_info fields by calls to the equivalent
5254 accessors. Necessary now that frame_info is opaque.
5255
5256 2003-06-03 J. Brobecker <brobecker@gnat.com>
5257
5258 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5259 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5260 structure, field no longer exists.
5261
5262 2003-06-03 Theodore A. Roth <troth@openavr.org>
5263
5264 * remote.c (init_remote_state): Compute sizeof_g_packet by
5265 accumulation of the size of all registers instead of blindly using
5266 DEPRECATED_REGISTER_BYTES.
5267
5268 2003-06-03 Michael Snyder <msnyder@redhat.com>
5269
5270 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5271 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5272 for h8300sx.
5273
5274 2003-06-03 J. Brobecker <brobecker@gnat.com>
5275
5276 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5277 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5278
5279 2003-06-03 Andrew Cagney <cagney@redhat.com>
5280
5281 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5282 (sparc_convert_to_raw): Delete function.
5283 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5284 register_convert_to_virtual.
5285
5286 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5287
5288 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5289 layer if not dealing with a statically-linked threaded program.
5290
5291 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5292
5293 * solib.c (solib_open): Update comment to reflect actual search order.
5294
5295 2003-06-03 Andrew Cagney <cagney@redhat.com>
5296
5297 * frame.c (get_frame_memory_signed): New function.
5298 (get_frame_memory, get_frame_memory_unsigned): New function.
5299 (get_frame_arch): New function.
5300 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5301 (get_frame_memory, get_frame_unsigned_memory): Declare.
5302 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5303 get_frame_memory_unsigned and get_frame_arch.
5304 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5305
5306 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5307
5308 * MAINTAINERS (write after approval): Add myself.
5309
5310 2003-06-03 Jim Blandy <jimb@redhat.com>
5311
5312 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5313 elements of gregset_t are 64 bits each, but access registers
5314 are still 32 bits, so they're packed two per gregset_t
5315 element. Unpack/pack them properly.
5316
5317 2003-06-02 David Carlton <carlton@bactrian.org>
5318
5319 * linespec.c (find_methods): Break out code into
5320 add_matching_methods and add_constructors.
5321 (add_matching_methods): New.
5322 (add_constructors): Ditto.
5323
5324 2003-06-02 Andrew Cagney <cagney@redhat.com>
5325
5326 * sparc-tdep.c (sparc_print_registers): Delete call to
5327 REGISTER_CONVERTIBLE.
5328 (sparc_gdbarch_init): Do not set register_convertible.
5329 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5330 * frv-tdep.c (frv_gdbarch_init): Ditto.
5331 * cris-tdep.c (cris_gdbarch_init): Ditto.
5332
5333 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5334
5335 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5336 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5337 (syms_from_objfile): Ditto.
5338
5339 2003-06-03 Andreas Schwab <schwab@suse.de>
5340
5341 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5342 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5343
5344 2003-06-02 Richard Henderson <rth@redhat.com>
5345
5346 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5347 a member of all_reggroup.
5348
5349 2003-06-02 Richard Henderson <rth@redhat.com>
5350
5351 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5352 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5353 (alpha_lds, alpha_sts): New.
5354 (alpha_convert_register_p): Change from _register_convertible.
5355 (alpha_register_to_value): Change from _convert_to_virtual;
5356 restructure and fail for type sizes other than 4 or 8.
5357 (alpha_value_to_register): Similarly.
5358 (alpha_extract_return_value): Use alpha_sts.
5359 (alpha_store_return_value): Use alpha_lds.
5360 (alpha_gdbarch_init): Update hooks.
5361
5362 2003-06-02 Richard Henderson <rth@redhat.com>
5363
5364 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5365 regnum identifiers.
5366 (alpha_sigtramp_register_address): Likewise.
5367
5368 2003-06-02 Richard Henderson <rth@redhat.com>
5369
5370 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5371 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5372 * alpha-tdep.h: Declare them.
5373
5374 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5375 Remove zerobuf. Don't error on UNIQUE.
5376 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5377 (ALPHA_REGSET_UNIQUE): Provide default.
5378 (supply_gregset): Use alpha_supply_int_regs.
5379 (fill_gregset): Use alpha_fill_int_regs.
5380 (supply_fpregset): Use alpha_supply_fp_regs.
5381 (fill_fpregset): Use alpha_fill_fp_regs.
5382 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5383 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5384 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5385 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5386 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5387 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5388
5389 2003-06-02 Richard Henderson <rth@redhat.com>
5390
5391 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5392
5393 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5394 (alpha_store_return_value): Likewise.
5395
5396 2003-06-02 David Carlton <carlton@math.stanford.edu>
5397
5398 * block.c (contained_in): Add 'const' to arguments.
5399 (block_function): Ditto.
5400 * block.h: Update declarations for block_function and
5401 contained_in.
5402
5403 2003-06-02 David Carlton <carlton@math.stanford.edu>
5404
5405 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5406 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5407 * p-valprint.c (pascal_val_print): Ditto.
5408 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5409
5410 2003-06-02 Richard Henderson <rth@redhat.com>
5411
5412 * alpha-tdep.c (alpha_push_dummy_call): Use
5413 builtin_type_ieee_double_little instead of builtin_type_double.
5414
5415 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5416 sign-extension of 32-bit values.
5417 (alpha_store_return_value): Similarly.
5418
5419 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5420 (alpha_extract_return_value): Likewise.
5421 (alpha_store_return_value): Likewise.
5422
5423 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5424 (alpha_store_return_value): Error on IEEE Quad floats.
5425
5426 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5427 (alpha_extract_struct_value_address): Likewise.
5428 (alpha_store_return_value): Likewise.
5429 (alpha_store_struct_return): Remove.
5430 (alpha_gdbarch_init): Update hook registration to match.
5431
5432 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5433 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5434 macros where appropriate.
5435 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5436 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5437
5438 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5439 for SP, GP; void_func_ptr for PC; non-language-specific types
5440 for all others.
5441 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5442
5443 2003-06-02 Richard Henderson <rth@redhat.com>
5444
5445 * top.h (lim_at_start): Declare.
5446 * main.c (captured_main): Set it.
5447 * top.c (lim_at_start): Define.
5448 (command_loop): Use it instead of &environ.
5449 * event-top.c (command_handler): Likewise.
5450
5451 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5452
5453 * mipsnbsd-tdep.c: Update copyright years.
5454 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5455
5456 2003-06-01 Richard Henderson <rth@redhat.com>
5457
5458 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5459 (alpha-linux-tdep.o): Update dependencies.
5460 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5461 * alpha-mdebug-tdep.c: Remove unneeded includes.
5462
5463 2003-06-01 Richard Henderson <rth@redhat.com>
5464
5465 * alpha-tdep.c (alpha_register_reggroup_p): New.
5466 (alpha_gdbarch_init): Register it.
5467
5468 2003-06-02 Andrew Cagney <cagney@redhat.com>
5469
5470 * dwarfread.c: Eliminate "register"
5471 (decode_die_type): Eliminate assignment within "if".
5472 (struct_type, decode_array_element_type): Ditto.
5473 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5474 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5475 (decode_modified_type, completedieinfo): Ditto.
5476 * block.c: Eliminate "register".
5477 (blockvector_for_pc_sect): Eliminate assignment within "if".
5478 * cp-support.h (struct symbol): Opaque declaration.
5479 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5480
5481 2003-06-01 Richard Henderson <rth@redhat.com>
5482
5483 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5484 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5485
5486 2003-06-01 Adam Fedor <fedor@gnu.org>
5487
5488 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5489 * gdbarch.[ch]: Regenerate.
5490 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5491 (hppa_gdbarch_init): Set it in the gdbarch vector.
5492 * i386-tdep.c (i386_fetch_pointer_argument): New
5493 (i386_gdbarch_init): Set it into gdbarch.
5494 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5495 (rs6000_gdbarch_init): Set it in gdbarch.
5496 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5497 (sparc_gdbarch_init): Set it in gdbarch.
5498
5499 2003-06-01 Andrew Cagney <cagney@redhat.com>
5500
5501 * defs.h (extract_address): Delete declaration.
5502 * findvar.c (extract_address): Delete function.
5503 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5504 extract_address with the inline equivalent,
5505 extract_unsigned_integer.
5506 (xstormy16_extract_struct_value_address): Ditto.
5507 (xstormy16_pointer_to_address): Ditto.
5508 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5509 * v850-tdep.c (v850_push_arguments): Ditto.
5510 (v850_extract_return_value): Ditto.
5511 (v850_extract_struct_value_address): Ditto.
5512 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5513 (sparcnbsd_get_longjmp_target_64): Ditto.
5514 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5515 (get_longjmp_target): Ditto.
5516 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5517 (sh64_extract_struct_value_address): Ditto.
5518 (sh_push_arguments): Ditto.
5519 (sh64_push_arguments): Ditto.
5520 * remote-vxsparc.c (vx_read_register): Ditto.
5521 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5522 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5523 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5524 * mipsv4-nat.c (get_longjmp_target): Ditto.
5525 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5526 * mips-nat.c (get_longjmp_target): Ditto.
5527 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5528 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5529 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5530 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5531 * irix5-nat.c (get_longjmp_target): Ditto.
5532 * irix4-nat.c (get_longjmp_target): Ditto.
5533 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5534 (ia64_push_arguments): Ditto.
5535 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5536 * h8300-tdep.c (h8300_push_arguments): Ditto.
5537 (h8300_store_return_value): Ditto.
5538 (h8300_extract_struct_value_address): Ditto.
5539 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5540 (frv_push_arguments): Ditto.
5541 * avr-tdep.c (avr_pointer_to_address): Ditto.
5542 (avr_push_arguments): Ditto.
5543 * arm-tdep.c (arm_push_dummy_call): Ditto.
5544 (arm_get_longjmp_target): Ditto.
5545 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5546 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5547 (alpha_get_longjmp_target): Ditto.
5548
5549 * solib-irix.c (extract_mips_address): Inline extract_address,
5550 replacing it with extract_signed_integer.
5551 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5552 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5553 (first_link_map_member, open_symbol_file_object): Ditto.
5554 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5555 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5556 (LM_NEXT, LM_NAME): Ditto.
5557
5558 2003-06-01 Richard Henderson <rth@redhat.com>
5559
5560 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5561 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5562 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5563 (alpha_cannot_store_register): Likewise.
5564 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5565 * alpha-nat.c (supply_gregset): Likewise.
5566 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5567
5568 2003-06-01 Andrew Cagney <cagney@redhat.com>
5569
5570 * infcall.c (call_function_by_hand): Update comment on
5571 DEPRECATED_DUMMY_WRITE_SP.
5572
5573 * mips-tdep.c (mips_gdbarch_init): Do not set
5574 deprecated_dummy_write_sp.
5575 (mips_eabi_push_dummy_call): Set the SP register.
5576 (mips_o64_push_dummy_call): Set the SP register.
5577 (mips_o32_push_dummy_call): Set the SP register.
5578 (mips_n32n64_push_dummy_call): Set the SP register.
5579
5580 2003-06-01 Richard Henderson <rth@redhat.com>
5581
5582 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5583 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5584 (supply_gregset): Likewise.
5585 * alpha-tdep.c (alpha_store_return_value): Likewise.
5586 (alpha_get_longjmp_target): Likewise.
5587 (alpha_register_name): Constify array.
5588 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5589 deprecated_register_size, deprecated_register_bytes,
5590 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5591 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5592 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5593
5594 2003-06-01 Richard Henderson <rth@redhat.com>
5595
5596 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5597 from arg_reg_buffer to regcache to avoid double conversion.
5598
5599 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5600
5601 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5602 SP_REGNUM.
5603 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5604 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5605
5606 2003-06-01 Richard Henderson <rth@redhat.com>
5607
5608 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5609 (decode_frame_entry): Set it. Skip FDE augmentation.
5610
5611 2003-06-01 Richard Henderson <rth@redhat.com>
5612
5613 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5614 not overlapping PC_REGNUM.
5615
5616 2003-06-01 Richard Henderson <rth@redhat.com>
5617
5618 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5619 alpha_push_arguments. Don't dump argument register data to
5620 the target stack. Fix float and 128-bit long double semantics.
5621 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5622 (alpha_fix_call_dummy): Remove.
5623 (alpha_call_dummy_words): Remove.
5624 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5625
5626 2003-06-01 Richard Henderson <rth@redhat.com>
5627
5628 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5629
5630 2003-06-01 Andrew Cagney <cagney@redhat.com>
5631
5632 * mips-tdep.c (is_mips16_addr): New function.
5633 (make_mips16_addr, unmake_mips16_addr): New functions.
5634 (pc_is_mips16, mips_fetch_instruction): Use.
5635 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5636 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5637 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5638 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5639 TARGET_MIPS.
5640 * config/mips/tm-mips.h: Update copyright.
5641 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5642 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5643 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5644 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5645 (TM_PRINT_INSN_MACH): Delete.
5646 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5647
5648 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5649 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5650 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5651 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5652 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5653 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5654 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5655 mips*-*-riscos* and mips*-*-sysv* onto mips.
5656 * config/mips/mips64.mt: New file.
5657 * config/mips/mips.mt: New file.
5658 * config/mips/littlemips.mt: Delete file.
5659 * config/mips/decstation.mt: Delete file.
5660 * config/mips/vr4300el.mt: Delete file.
5661 * config/mips/vr5000el.mt: Delete file.
5662 * config/mips/vr5000.mt: Delete file.
5663 * config/mips/vr4100.mt: Delete file.
5664 * config/mips/vr4xxxel.mt: Delete file.
5665 * config/mips/vr4300.mt: Delete file.
5666 * config/mips/vr4xxx.mt: Delete file.
5667 * config/mips/bigmips.mt: Delete file.
5668 * config/mips/bigmips64.mt: Delete file.
5669 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5670 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5671 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5672 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5673 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5674 "tm-bigmips.h".
5675 * config/mips/tm-irix3.h: Ditto.
5676 * config/mips/tm-mipsv4.h: Ditto.
5677 * config/mips/tm-embed.h: Ditto.
5678 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5679 "tm-bigmips64.h".
5680 * config/mips/tm-vr5000el.h: Delete file.
5681 * config/mips/tm-tx39l.h: Delete file.
5682 * config/mips/tm-vr4300el.h: Delete file.
5683 * config/mips/tm-vr4xxxel.h: Delete file.
5684 * config/mips/tm-vr4300.h: Delete file.
5685 * config/mips/tm-vr4100.h: Delete file.
5686 * config/mips/tm-vr4xxx.h: Delete file.
5687 * config/mips/tm-vr5000.h: Delete file.
5688 * config/mips/tm-embedl64.h: Delete file.
5689 * config/mips/tm-embedl.h: Delete file.
5690 * config/mips/tm-embed64.h: Delete file.
5691 * config/mips/tm-bigmips64.h: Delete file.
5692 * config/mips/tm-bigmips.h: Delete file.
5693
5694 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5695
5696 Fix gdb/1216.
5697 * shnbsd-nat.c: Include "sh-tdep.h".
5698
5699 From Richard Henderson <rth@redhat.com>:
5700 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5701
5702 2003-05-31 Andrew Cagney <cagney@redhat.com>
5703
5704 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5705 forward declaration.
5706 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5707 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5708 (mips_find_saved_regs): Use set_reg_offset.
5709 (mips_frame_init_saved_regs): Delete function.
5710 (mips_pop_frame): Call mips_find_saved_regs instead of
5711 DEPRECATED_FRAME_INIT_SAVED_REGS.
5712
5713 2003-05-31 Andrew Cagney <cagney@redhat.com>
5714
5715 * mips-tdep.c (mips_gdbarch_init): Do not set
5716 deprecated_max_register_raw_size, register_virtual_size, and
5717 deprecated_max_register_virtual_size.
5718
5719 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5720
5721 * i386-tdep.c: Include "dwarf2-frame.h".
5722 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5723 * Makefile.in (i386-tdep.o): Update dependencies.
5724
5725 * dwarf2-frame.c, dwarf2-frame.h: New files.
5726 * Makefile.in (SFILES): Add dwarf2-frame.c.
5727 (dwarf2_frame_h): Define.
5728 (COMMON_OBS): Add dwarf2-frame.o.
5729 (dwarf2-frame.o): Add dependencies.
5730
5731 2003-05-31 Andreas Jaeger <aj@suse.de>
5732
5733 * x86-64-linux-nat.c: Fix comment.
5734
5735 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5736
5737 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5738 function signature.
5739
5740 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5741 have a sigcontext_addr handler.
5742 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5743 sigcontext_addr handler.
5744
5745 2003-05-31 Andrew Cagney <cagney@redhat.com>
5746
5747 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5748 (print_fp_register_row): Replace do_fp_register_row.
5749 (mips_print_fp_register): Add "file" and "frame" parameters.
5750 (mips_print_register): Add "file" and "frame" parameters.
5751 (mips_print_registers_info): Replace mips_do_registers_info.
5752 (mips_gdbarch_init): Set print_registers_info instead of
5753 deprecated_do_registers_info.
5754 (mips_read_fp_register_single): Add "frame" parameter.
5755 (mips_read_fp_register_double): Add "frame" parameter.
5756
5757 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5758
5759 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5760 Fixes a bug where GDB would print the wrong register names for
5761 targets without SSE.
5762
5763 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5764 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5765 registers.
5766
5767 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5768 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5769 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5770 TDEP->sc_sp_offset.
5771
5772 From Michal Ludvig <mludvig@suse.cz>:
5773 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5774 and `sc_num_regs'.
5775 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5776 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5777 I386_ST0_REGNUM): Move here from...
5778 * i386-tdep.c: ... here.
5779 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5780 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5781 registers if possible.
5782 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5783 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5784 Remove variables.
5785 (i386bsd_sc_reg_offset): New variable.
5786 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5787 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5788 TDEP->sc_sp_offset.
5789 (i386fbsd_sc_reg_offset): New variable.
5790 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5791 TDEP->sc_num_regs.
5792 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5793 variables.
5794 (i386fbsd4_sc_reg_offset): New variable.
5795 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5796 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5797 TDEP->sc_sp_offset.
5798 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5799 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5800 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5801 Remove variables.
5802 (i386nbsd_sc_reg_offset): New variable.
5803 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5804 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5805 TDEP->sc_sp_offset.
5806 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5807 Remove variables.
5808 (i386obsd_sc_reg_offset): New variable.
5809 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5810 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5811 TDEP->sc_sp_offset.
5812 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5813 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5814 for frame pointer offset in `struct sigcontext'.
5815
5816 2003-05-31 Andrew Cagney <cagney@redhat.com>
5817
5818 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5819 architecture methods call_dummy_words, sizeof_call_dummy_words,
5820 push_return_address, store_struct_return, and fix_call_dummy. Set
5821 push_dummy_call instead of deprecated_push_arguments.
5822 (mips_store_struct_return): Delete function.
5823 (mips_fix_call_dummy): Delete function.
5824 (mips_push_return_address): Delete function.
5825 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5826 RA_REGNUM and T9_REGNUM.
5827 (mips_n32n64_push_dummy_call): Ditto for
5828 mips_n32n64_push_arguments.
5829 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5830 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5831
5832 2003-05-31 Andrew Cagney <cagney@redhat.com>
5833
5834 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5835 "dummy_addr" to "bp_addr".
5836 * infcall.c (call_function_by_hand): Pass "funaddr" to
5837 gdbarch_push_dummy_call.
5838 * gdbarch.h, gdbarch.c: Re-generate.
5839 * i386-tdep.c (i386_push_dummy_call): Update.
5840 * arm-tdep.c (arm_push_dummy_call): Update.
5841 * d10v-tdep.c (d10v_push_dummy_call): Update.
5842
5843 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5844
5845 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5846 variable declarations.
5847 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5848 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5849 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5850 x86_64_init_frame_pc, x86_64_init_frame_pc,
5851 x86_64_function_has_prologue): Remove prototypes.
5852 (X86_64_NUM_GREGS): New define.
5853 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5854 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5855 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5856 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5857 XMM1_REGNUM): Remove defines.
5858 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5859 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5860 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5861 X86_64_XMM1_REGNUM): New defines.
5862 (struct x86_64_register_info): Renamed from `struct
5863 register_info'. Remove `size' member.
5864 (x86_64_register_info_table): Remove variable.
5865 (x86_64_register_info): New variable.
5866 (X86_64_NUM_REGS): New define.
5867 (X86_64_NUM_GREGS): Remove define.
5868 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5869 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5870 Remove variables.
5871 (x86_54_dwarf2_reg_to_regnum): Remove function.
5872 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5873 (x86_64_dwarf_reg_to_regnum): New function.
5874 (x86_64_register_name): Rewrite.
5875 (x86_64_register_raw_size): Remove function.
5876 (x86_64_register_byte_table): Remove variable.
5877 (x86_64_register_byte): Remove function.
5878 (x86_64_register_virtual_type): Remove function.
5879 (x86_64_register_type): New function.
5880 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5881 x86_64_register_convert_to_raw): Remove functions.
5882 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5883 (x86_64_use_struct_convention): Make static. Adjust for renamed
5884 defines.
5885 (x86_64_frame_init_saved_regs): Remove function.
5886 (x86_64_push_arguments): Make static. Change to accept a regcache
5887 as argument.
5888 (x86_64_store_return_value, x86_64_extract_return_value): Make
5889 static. Rewrite based on i386 counterparts.
5890 (x86_64_push_dummy_call): New function.
5891 (X86_64_NUM_SAVED_REGS): New define.
5892 (x86_64_register_number): Remove function.
5893 (x86_64_store_struct_return): Remove function.
5894 (x86_64_frameless_function_invocation,
5895 x86_64_function_has_prologue): Remove functions.
5896 (PROLOG_BUFSIZE): Remove define.
5897 (struct x86_64_frame_cache): New structure.
5898 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5899 x86_64_frame_cache, x86_64_frame_this_id,
5900 x86_64_frame_prev_register, x86_64_frame_p,
5901 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5902 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5903 functions.
5904 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5905 variables.
5906 (x86_64_skip_prologue): Rewrite in terms of
5907 x86_64_analyze_prologue.
5908 (x86_64_frame_base_address): New function.
5909 (x86_64_frame_base): New variable.
5910 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5911 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5912 set deprecated_fp_regnum, deprecated_register_size,
5913 deprecated_register_bytes, register_raw_size, register_byte,
5914 register_virtual_type, register_convertiable,
5915 register_convert_to_virtual, convert_to_raw,
5916 deprecated_get_saved_register, deprecated_target_read_fp,
5917 deprecated_push_arguments, deprecated_push_return_address,
5918 deprecated_pop_frame, deprecated_store_struct_return,
5919 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5920 frameless_function_invocation, deprecated_frame_saved_pc,
5921 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5922 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5923 deprecated_init_frame_pc and virtual_frame_pointer. Call
5924 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5925 and x86_64_frame_p. Call frame_base_set_default to register
5926 x86_64_frame_base.
5927 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5928 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5929 (_initialize_x86_64_tdep): Remove function.
5930 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5931 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5932 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5933 define.
5934 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5935 (x86_64_linux_sigcontext_addr): Rewrite.
5936 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5937 x86_64_linux_frame_saved_pc): Remove functions.
5938 (x86_64_linux_pc_in_sigtramp): Renamed from
5939 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5940 trampoline.
5941 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5942 Remove_functions.
5943 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5944 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5945 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5946 (x86_64_regmap): Rename to regmap.
5947 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5948 x86_64_num_gregs.
5949 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5950 x86_64_regmap.
5951 (x86_64_fxsave_offset): Remove function.
5952 (supply_fpregset): Simply call x86_64_supply_fxsave.
5953 (fill_fpregset): Simply call x86_64_fill_fxsave.
5954 (fetch_inferior_registers, store_inferior_registers): Avoid
5955 asignment in if-statement.
5956 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5957 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5958 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5959 (fetch_core_registers): Remove function.
5960 (linux_elf_core_fns): Remove.
5961 (offsetoff): Don't define.
5962 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5963 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5964 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5965 add core-regset.o.
5966 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5967 protection against multiple includes instead of NM_X86_64_h. Add
5968 various comments. Include "config/nm-linux.h". Don't include
5969 <signal.h>.
5970 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5971 GET_THREAD_SIGNALS): Remove defines.
5972 (x86_64_register_u_addr, kernel_u_size,
5973 lin_thread_get_thread_signals): Remove prototypes.
5974 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5975 [HAVE_LINK_H]: Don't include "solib.h".
5976 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5977 * config/i386/tm-x86-64linux.h: Fix comments.
5978 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5979 x86-64-tdep.o): Update dependencies.
5980
5981 2003-05-30 Andrew Cagney <cagney@redhat.com>
5982
5983 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5984 Change parameter type to a "struct regcache *".
5985
5986 * gdbarch.sh: Regardless of the multi-arch level, always define
5987 the macro when not already defined.
5988 * gdbarch.h, gdbarch.c: Re-generate.
5989
5990 2003-05-30 Richard Henderson <rth@redhat.com>
5991
5992 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5993 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5994 (alpha_mdebug_frame_this_id): Likewise.
5995 (alpha_mdebug_frame_prev_register): Likewise.
5996 (alpha_mdebug_frame_base_address): Likewise.
5997 (alpha_mdebug_frame_locals_address): Likewise.
5998 (alpha_mdebug_frame_args_address): Likewise.
5999 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6000 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6001 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6002 loop increment.
6003 (alpha_heuristic_frame_this_id): Make static.
6004 (alpha_heuristic_frame_prev_register): Likewise.
6005 (alpha_heuristic_frame_base_address): Likewise.
6006 * alpha-tdep.h: Update.
6007
6008 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6009
6010 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6011 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6012 defenitions.
6013 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6014 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6015 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6016 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6017 I386_ST0_REGNUM): New defines.
6018 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6019 codestream_get): Remove define.
6020 (codestream_next_addr, condestream_addr, condestream_buf,
6021 codestream_off, codestream_cnt): Remove variables.
6022 (codestream_fill, codestream_seek, codestream_read): Remove
6023 functions.
6024 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6025 functionality.
6026 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6027 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6028 i386_frame_saved_pc, i386_saved_pc_after_call,
6029 i386_frame_num_args, i386_frame_init_saved_regs,
6030 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6031 i386_push_arguments): Remove functions.
6032 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6033 functionality. Use i386_analyze_prologue instead of
6034 i386_get_frame_setup.
6035 (I386_NUM_SAVED_REGS): New define.
6036 (struct i386_frame_cache): New structure.
6037 (i386_alloc_frame_cache, i386_analyze_struct_return,
6038 i386_skip_probe, i386_analyze_frame_setup,
6039 i386_analyze_register_saves, i386_analyze_prologue,
6040 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6041 i386_frame_prev_register, i386_sigtramp_frame_cache,
6042 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6043 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6044 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6045 New functions.
6046 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6047 New variables.
6048 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6049 I386_EAX_REGNUM and I386_EDX_REGNUM.
6050 (i386_extract_return_value, i386_store_return_value): Use
6051 I386_ST0_REGNUM where appropriate.
6052 (i386_extract_struct_value_address): Rewrite to use extract_address.
6053 (i386_svr4_pc_in_sigtramp): Add comment.
6054 (i386_svr4_sigcontext_addr): Rewrite.
6055 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6056 TDEP->sc_sp_offset.
6057 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6058 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6059 of new defines. Set push_dummy_call, don't set
6060 deprecated_push_arguments, deprecated_push_return_address,
6061 deprecated_pop_frame. Don't set parm_boundary. Don't set
6062 deprecated_frame_chain, deprecated_frame_saved_pc,
6063 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6064 save_dummy_frame_tos, unwind_pc. Call
6065 frame_unwind_append_predicate and frame_base_set_default. Don't
6066 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6067 Don't set frameless_function_invocation. Don't set
6068 deprecated_register_bytes, deprecated_register_size,
6069 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6070 * i386-linux-tdep.c: Fix formatting in some comments.
6071 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6072 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6073 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6074 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6075 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6076 redundant parentheses.
6077 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6078 (i386_linux_sigcontext_addr): Use it. Rewrite.
6079 (find_minsym_and_objfile): Change name of second argument.
6080 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6081 changed. Use frame_pc_unwind instead of
6082 DEPRECATED_SAVED_PC_AFTER_CALL.
6083 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6084 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6085 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6086 unwinder.
6087 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6088 "dummy-frame.h".
6089 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6090 (_initialize_i386_cygwin_tdep): New prototype.
6091 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6092 deprecated_frame_chain_valid.
6093 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6094 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6095 Rely on the SVR4 defaults.
6096 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6097 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6098
6099 2003-05-30 Andrew Cagney <cagney@redhat.com>
6100
6101 * infcall.c (call_function_by_hand): Always call
6102 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6103
6104 2003-05-30 Richard Henderson <rth@redhat.com>
6105
6106 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6107 increment.
6108
6109 2003-05-29 Jim Blandy <jimb@redhat.com>
6110
6111 Use gdbarch methods for solib stuff on PowerPC Linux.
6112 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6113 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6114 show through.
6115 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6116 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6117 giving the same effect as the #definitions above.
6118
6119 2003-05-29 Adam Fedor <fedor@gnu.org>
6120
6121 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6122 (find_implementation_from_class): Replace it with the standard
6123 case i.e. do nothing.
6124
6125 2003-05-29 Richard Henderson <rth@redhat.com>
6126
6127 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6128 (alpha_linux_sigtramp_offset): Use it. Make static.
6129 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6130 update for new frame model.
6131 * alpha-mdebug-tdep.c: New file.
6132 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6133 (alpha_osf1_init_abi): Install it.
6134 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6135 (linked_proc_desc_table): Remove.
6136 (alpha_frame_past_sigtramp_frame): Remove.
6137 (alpha_dynamic_sigtramp_offset): Remove.
6138 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6139 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6140 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6141 (push_sigtramp_desc): Remove.
6142 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6143 (alpha_cannot_store_register): Likewise.
6144 (alpha_sigcontext_addr): Remove.
6145 (alpha_find_saved_regs): Remove.
6146 (alpha_frame_init_saved_regs): Remove.
6147 (alpha_init_frame_pc_first): Remove.
6148 (read_next_frame_reg): Remove.
6149 (alpha_frame_saved_pc): Remove.
6150 (alpha_saved_pc_after_call): Remove.
6151 (temp_proc_desc, temp_saved_regs): Remove.
6152 (alpha_about_to_return): Remove.
6153 (cached_proc_desc): Remove.
6154 (alpha_frame_chain): Remove.
6155 (alpha_print_extra_frame_info): Remove.
6156 (alpha_init_extra_frame_info): Remove.
6157 (alpha_frame_locals_address): Remove.
6158 (alpha_frame_args_address): Remove.
6159 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6160 (alpha_push_dummy_frame): Remove.
6161 (alpha_pop_frame): Remove.
6162 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6163 (alpha_read_insn): New.
6164 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6165 for different insn encodings.
6166 (alpha_in_lenient_prologue): Remove.
6167 (struct alpha_sigtramp_unwind_cache): New.
6168 (alpha_sigtramp_frame_unwind_cache): New.
6169 (alpha_sigtramp_register_address): New.
6170 (alpha_sigtramp_frame_this_id): New.
6171 (alpha_sigtramp_frame_prev_register): New.
6172 (alpha_sigtramp_frame_unwind): New.
6173 (alpha_sigtramp_frame_p): New.
6174 (struct alpha_heuristic_unwind_cache): New.
6175 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6176 don't count nop insns that occur between functions.
6177 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6178 heuristic_proc_desc, but without the mdebug wrapping.
6179 (alpha_heuristic_frame_this_id): New.
6180 (alpha_heuristic_frame_prev_register): New.
6181 (alpha_heuristic_frame_unwind): New.
6182 (alpha_heuristic_frame_p): New.
6183 (alpha_heuristic_frame_base_address): New.
6184 (alpha_heuristic_frame_base): New.
6185 (alpha_unwind_dummy_id): New.
6186 (alpha_unwind_pc): New.
6187 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6188 frame related deprecated initializations; install replacements.
6189 (alpha_dump_tdep): Remove.
6190 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6191 (alpha_read_insn, alpha_after_prologue,
6192 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6193 alpha_heuristic_frame_prev_register,
6194 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6195 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6196 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6197 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6198
6199 2003-05-29 Andrew Cagney <cagney@redhat.com>
6200
6201 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6202 dependant on the availability of ASSERT_FUNCTION.
6203 (ASSERT_FUNCTION): Do not define when there is no function name.
6204
6205 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6206
6207 From Jimi X <jimix@watson.ibm.com>:
6208 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6209
6210 2003-05-28 Jim Blandy <jimb@redhat.com>
6211
6212 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6213 argument to ptrace to int; the system headers should give it the
6214 right type, and pointers don't fit in ints on powerpc64-*-*.
6215
6216 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6217
6218 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6219 DW_TAG_catch_block.
6220
6221 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6222
6223 * stabsread.c (dbx_lookup_type): Make static.
6224 (read_type): Ditto.
6225 (add_undefined_type): Ditto.
6226 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6227 not export.
6228
6229 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6230
6231 * hpread.c (hpread_has_name): Make static.
6232 (hpread_psymtab_to_symtab): Ditto.
6233 (file_exists): Ditto.
6234 (hpread_call_pxdb): Ditto.
6235 (hpread_pxdb_needed): Ditto.
6236 (hpread_quick_traverse): Ditto.
6237 (hpread_get_header): Ditto.
6238 (hpread_get_lntt): Ditto.
6239 (hpread_get_slt): Ditto.
6240 (class_of): Ditto.
6241
6242 2003-05-25 Andreas Schwab <schwab@suse.de>
6243
6244 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6245 stack_align and deprecated_extra_stack_alignment_needed.
6246 (m68k_stack_align): Delete.
6247
6248 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6249 (m68k_register_virtual_size): Likewise.
6250 (altos_skip_prologue): Remove obsolete function.
6251 (isi_frame_num_args): Likewise.
6252 (news_frame_num_args): Likewise.
6253 (m68k_fix_call_dummy): Make static.
6254 (m68k_push_dummy_frame): Likewise.
6255 (m68k_pop_frame): Likewise.
6256 (m68k_skip_prologue): Likewise.
6257 (m68k_frame_init_saved_regs): Likewise.
6258 (m68k_saved_pc_after_call): Likewise.
6259 (m68k_get_longjmp_target): Make multi-arch.
6260 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6261 structure. Register m68k_get_longjmp_target if enabled.
6262 * m68k-tdep.h (struct gdbarch_tdep): Define.
6263 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6264
6265 * Makefile.in (config.status): Also depend on configure.tgt
6266 and configure.host.
6267 (m68klinux-tdep.o): Update dependencies.
6268 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6269 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6270 (M68K_LINUX_JB_PC): Define.
6271 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6272 and take additional parameter.
6273 (m68k_linux_sigtramp_saved_pc): Update.
6274 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6275 m68k_linux_pc_in_sigtramp, in_plt_section,
6276 find_solib_trampoline_target.
6277 * config/m68k/tm-linux.h: Don't include any tm headers.
6278 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6279 (JB_ELEMENT_SIZE): Likewise.
6280 (JB_PC): Likewise.
6281 (GET_LONGJMP_TARGET): Likewise.
6282 (IN_SIGTRAMP): Likewise.
6283 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6284
6285 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6286
6287 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6288 (sparc32_push_arguments): Re-implement by calling
6289 sparc32_do_push_arguments.
6290
6291 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6292
6293 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6294 SPARC_O1_REGNUM): New defines.
6295 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6296 (sparc32_store_return_value): New function.
6297 (sparc_extract_struct_value_address): Rewrite to operate on a
6298 regcache.
6299 (sparc_gdbarch_init): Don't set
6300 deprecated_extract_struct_value_address. Set
6301 extract_struct_value_address instead. Don't set
6302 deprecated_extract_return_value and deprecated_store_return_value
6303 for 32-bit targets. Set extract_return_value and
6304 store_return_value instead.
6305 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6306 DEPRECTAED_EXTRACT_RETURN_VALUE,
6307 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6308 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6309 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6310 (sparc_store_return_value): Remove prototype.
6311 (sparc32_store_return_value): New prototype.
6312 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6313 Adjust prototypes.
6314
6315 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6316
6317 * sparcnbsd-tdep.c: Include "gdb_string.h".
6318
6319 2003-05-23 Andrew Cagney <cagney@redhat.com>
6320
6321 * p-valprint.c (pascal_val_print): Replace extract_address with
6322 the inline equivalent extract_unsigned_integer.
6323 * jv-valprint.c (java_value_print): Ditto.
6324 * ada-valprint.c (ada_val_print_1): Ditto.
6325 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6326
6327 2003-05-23 Theodore A. Roth <troth@openavr.org>
6328
6329 * blockframe.c (frameless_look_for_prologue): Remove unused
6330 after_prologue variable.
6331
6332 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6333
6334 * blockframe.c (get_pc_function_start): Rewrite to avoid
6335 asignments in if-statements.
6336
6337 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6338
6339 Committed by Elena Zannoni <ezannoni@redhat.com>.
6340 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6341 files, don't relocate absolute symbols (and do use mst_abs).
6342
6343 2003-05-23 Andrew Cagney <cagney@redhat.com>
6344
6345 * objc-lang.c: Include "gdb_assert.h".
6346 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6347 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6348 (gdb_check, gdb_check_fatal): Delete functions.
6349 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6350 gdb_assert.
6351 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6352 * Makefile.in (objc-lang.o): Update dependencies.
6353
6354 2003-05-22 Ian Lance Taylor <ian@airs.com>
6355
6356 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6357 with fprintf_filtered, not fprintf_unfiltered.
6358
6359 2003-05-22 Andrew Cagney <cagney@redhat.com>
6360
6361 * stack.c (frame_info): Inline extract_address, replacing it with
6362 extract_unsigned_integer.
6363 * findvar.c (unsigned_pointer_to_address): Ditto.
6364 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6365 * dwarf2expr.c (dwarf2_read_address): Ditto.
6366 * frame.c (frame_pc_unwind): Update comment.
6367 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6368
6369 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6370
6371 * infptrace.c (detach): Call print_sys_errmsg rather than
6372 perror_with_name to issue warning message when errno is non-zero
6373 after calling ptrace detach.
6374
6375 2003-05-21 J. Brobecker <brobecker@gnat.com>
6376
6377 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6378 macro definitions from here...
6379 * hppa-tdep.c: ...to there.
6380
6381 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6382
6383 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6384 register_ptrace_addr(). Fix all callers.
6385
6386 2003-05-21 Andreas Schwab <schwab@suse.de>
6387
6388 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6389 dependencies.
6390 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6391 end.
6392 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6393 (_initialize_m68k_linux_tdep): New function.
6394 (m68k_linux_frame_saved_pc): Make static.
6395 (m68k_linux_extract_return_value): Likewise.
6396 (m68k_linux_store_return_value): Likewise.
6397 (m68k_linux_extract_struct_value_address): Likewise.
6398 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6399 Remove.
6400 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6401 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6402 (DEPRECATED_FRAME_SAVED_PC): Remove.
6403
6404 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6405
6406 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6407 regset numbering rather than our own.
6408
6409 2003-05-19 David Carlton <carlton@bactrian.org>
6410
6411 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6412
6413 2003-05-19 David Carlton <carlton@bactrian.org>
6414
6415 Partial fix for PR c++/827.
6416 * cp-support.h: Include symtab.h.
6417 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6418 * cp-namespace.c: Update contributors.
6419 (cp_lookup_symbol_nonlocal): New.
6420 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6421 (lookup_symbol_file): Ditto.
6422 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6423 * block.h: Declare block_scope, block_using, block_global_block.
6424 * block.c (block_scope): New.
6425 (block_using, block_global_block): Ditto.
6426 * Makefile.in (cp_support_h): Depend on symtab_h.
6427 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6428
6429 2003-05-19 David Carlton <carlton@bactrian.org>
6430
6431 * language.h (struct language_defn): Add 'la_value_of_this'
6432 and 'la_lookup_symbol_nonlocal' members.
6433 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6434 lookup_symbol_static, lookup_symbol_global,
6435 lookup_symbol_aux_block.
6436 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6437 if we should search fields of this and how to do static/global
6438 lookup.
6439 (lookup_symbol_aux_block): Make extern.
6440 (basic_lookup_symbol_nonlocal): New.
6441 (lookup_symbol_static, lookup_symbol_global): Ditto.
6442 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6443 'la_lookup_symbol_nonlocal' members.
6444 * c-lang.c (c_language_defn, cplus_language_defn)
6445 (asm_language_defn, minimal_language_defn): Ditto.
6446 * jv-lang.c (java_language_defn): Ditto.
6447 * language.c (unknown_language_defn, auto_language_defn)
6448 (local_language_defn): Ditto.
6449 * m2-lang.c (m2_language_defn): Ditto.
6450 * objc-lang.c (objc_language_defn): Ditto.
6451 * scm-lang.c (scm_language_defn): Ditto.
6452 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6453 * p-lang.c (pascal_language_defn): Ditto for both.
6454 * Makefile.in (f-lang.o): Depend on value_h.
6455 (p-lang.o): Ditto.
6456
6457 2003-05-19 David Carlton <carlton@bactrian.org>
6458
6459 * block.h: Declare block_static_block.
6460 * block.c (block_static_block): New.
6461 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6462 lookup_symbol_aux_local, calling block_static_block instead.
6463 (lookup_symbol_aux_local): Delete 'static_block' argument.
6464
6465 2003-05-19 David Carlton <carlton@bactrian.org>
6466
6467 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6468
6469 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6470
6471 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6472 register numbers mapping.
6473
6474 2003-05-18 Adam Fedor <fedor@gnu.org>
6475
6476 * symtab.c (completion_list_objc_symbol): New function.
6477 (make_symbol_completion_list): Use it to add ObjC symbols
6478 when looking though the list.
6479 (language_search_unquoted_string): New function.
6480 (make_file_symbol_completion_list): Use it.
6481
6482 2003-05-18 Andreas Schwab <schwab@suse.de>
6483
6484 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6485 dependencies.
6486 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6487 as m68k_linux_extract_return_value.
6488 (DEPRECATED_STORE_RETURN_VALUE): Define as
6489 m68k_linux_store_return_value.
6490 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6491 m68k_linux_extract_struct_value_address.
6492 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6493 get_next_frame, get_frame_base, get_frame_pc.
6494 (m68k_linux_frame_saved_pc): Use get_frame_base.
6495 (m68k_linux_extract_return_value): New function.
6496 (m68k_linux_store_return_value): New function.
6497 (m68k_linux_extract_struct_value_address): New function.
6498 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6499
6500 * c-exp.y (typebase): Remove duplicate occurence of
6501 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6502 of lookup_signed_typename.
6503
6504 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6505
6506 * dwarf2loc.c (find_location_expression): Change type of second
6507 argument to `size_t *'.
6508 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6509 for size variable.
6510
6511 2003-05-18 David Carlton <carlton@bactrian.org>
6512
6513 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6514 'linkage_name'. Add comment.
6515 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6516 'linkage_name'.
6517 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6518 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6519 (lookup_block_symbol): Ditto.
6520
6521 2003-05-16 Andrew Cagney <cagney@redhat.com>
6522
6523 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6524 * gdbarch.h, gdbarch.c: Re-generate.
6525 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6526 * TODO (REGISTER_BYTES): Delete reference.
6527 * alpha-tdep.c (alpha_gdbarch_init): Update.
6528 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6529 * x86-64-tdep.c (x86_64_init_abi): Update.
6530 * vax-tdep.c (vax_gdbarch_init): Update.
6531 * v850-tdep.c (v850_gdbarch_init): Update.
6532 * sparc-tdep.c (sparc_gdbarch_init): Update.
6533 * sh-tdep.c (sh_gdbarch_init): Update.
6534 * s390-tdep.c (s390_gdbarch_init): Update.
6535 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6536 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6537 (ns32k_gdbarch_init_32382): Update.
6538 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6539 * mcore-tdep.c (mcore_gdbarch_init): Update.
6540 * m68k-tdep.c (m68k_gdbarch_init): Update.
6541 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6542 * ia64-tdep.c (ia64_gdbarch_init): Update.
6543 * i386-tdep.c (i386_gdbarch_init): Update.
6544 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6545 * hppa-tdep.c (hppa_gdbarch_init): Update.
6546 * h8300-tdep.c (h8300_gdbarch_init): Update.
6547 * frv-tdep.c (frv_gdbarch_init): Update.
6548 * cris-tdep.c (cris_gdbarch_init): Update.
6549 * avr-tdep.c (avr_gdbarch_init): Update.
6550 * arm-tdep.c (arm_gdbarch_init): Update.
6551 * sparc-tdep.c (sparc_pop_frame): Update.
6552 * rs6000-tdep.c (rs6000_pop_frame): Update.
6553 * remote.c (init_remote_state): Update.
6554 (remote_prepare_to_store): Update.
6555 * remote-vx.c (vx_prepare_to_store): Update.
6556 * remote-sds.c (sds_fetch_registers): Update.
6557 (sds_prepare_to_store): Update.
6558 * remote-array.c: Update.
6559 * regcache.c (init_legacy_regcache_descr): Update.
6560 (init_regcache_descr): Update.
6561 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6562 (mips_o64_extract_return_value): Update.
6563 * irix5-nat.c (fetch_core_registers): Update.
6564 * irix4-nat.c (fetch_core_registers): Update.
6565 * i386-tdep.h: Update.
6566 * hppa-tdep.c (pa_do_registers_info): Update.
6567 (pa_do_strcat_registers_info): Update.
6568 * cris-tdep.c (cris_register_bytes_ok): Update.
6569 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6570 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6571 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6572 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6573 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6574 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6575 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6576 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6577 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6578 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6579 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6580 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6581 (REGISTER_BYTES_OK): Update.
6582 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6583 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6584
6585 2003-05-16 Ian Lance Taylor <ian@airs.com>
6586
6587 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6588 (vax_print_insn, print_insn_arg): Remove static functions.
6589 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6590 print_insn_vax from opcodes library.
6591 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6592
6593 2003-05-15 Andrew Cagney <cagney@redhat.com>
6594
6595 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6596 * target.h (memory_breakpoint_from_pc): Delete declaration.
6597 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6598 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6599 * monitor.c (monitor_insert_breakpoint): Use
6600 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6601 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6602 * gdbarch.h, gdbarch.c: Re-generate.
6603 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6604 (sparc_gdbarch_init): Set breakpoint_from_pc to
6605 sparc_breakpoint_from_pc.
6606 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6607 (BREAKPOINT_FROM_PC): Define.
6608 (sparc_breakpoint_from_pc): Declare.
6609 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6610 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6611 (BREAKPOINT_FROM_PC): Define.
6612 (BREAKPOINT): Delete macro.
6613 * target.h: Update comment.
6614 * s390-tdep.c (s390_gdbarch_init): Update comments.
6615 * remote.c: Update comments.
6616 * remote-mips.c: Update comments.
6617 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6618 * mem-break.c: Update comment.
6619 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6620 (ia64_memory_insert_breakpoint): Update.
6621 * config/sparc/tm-sparc.h: Update comment.
6622 * config/pa/tm-hppa64.h: Update comment.
6623 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6624 (rs6000_breakpoint_from_pc): Update.
6625 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6626 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6627 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6628 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6629 (mips_breakpoint_from_pc): Update.
6630 (mips_dump_tdep): Update.
6631
6632 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6633 * minsyms.c (lookup_minimal_symbol): Inline
6634 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6635
6636 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6637 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6638 * p-lang.c (pascal_printstr): Ditto.
6639 * objc-lang.c (objc_printstr): Ditto.
6640 * m2-lang.c (m2_printstr): Ditto.
6641 * jv-valprint.c (java_print_value_fields): Ditto.
6642 * f-lang.c (f_printstr): Ditto.
6643 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6644 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6645 for repeat_count_threshold.
6646 * Makefile.in (cp-valprint.o): Update dependencies.
6647
6648 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6649
6650 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6651 (examine_prologue): Support looking through leaf functions, knowing
6652 they start with mov r2,r12. Support skipping over indirect stores
6653 of the input registers. Upon hitting a non-nop branch instruction
6654 or predicated instruction, bail out by setting lim_pc to the current
6655 pc value in the loop. At the end, if the lim_pc value is still
6656 beyond our calculated value and we have trust_limit set,
6657 use the lim_pc value.
6658
6659 2003-05-15 Andrew Cagney <cagney@redhat.com>
6660
6661 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6662 generic_find_dummy_frame.
6663 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6664 (deprecated_generic_find_dummy_frame): Update.
6665 (deprecated_read_register_dummy): Update.
6666 * frame.c (deprecated_generic_get_saved_register): Update.
6667
6668 2003-05-15 Theodore A. Roth <troth@openavr.org>
6669
6670 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6671 (avr_gdbarch_init): Set breakpoint_from_pc method.
6672
6673 2003-05-15 Andrew Cagney <cagney@redhat.com>
6674
6675 * regcache.c (build_regcache): Set deprecated_register_valid
6676 directly.
6677 (deprecated_grub_regcache_for_register_valid): Delete function.
6678 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6679 declaration.
6680
6681 2003-05-15 David Carlton <carlton@bactrian.org>
6682
6683 Committed by Elena Zannoni <ezannoni@redhat.com>
6684 * symtab.c (lookup_symbol_aux): Delete calls to
6685 lookup_symbol_aux_minsyms.
6686 (lookup_symbol_aux_minsyms): Comment out function and
6687 prototype. Delete lookup by mangled name.
6688
6689 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6690
6691 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6692 correctly indicate an empty stack and ``stack_allocated'' to the
6693 indicate the number of elements initially allocated.
6694 (dwarf_expr_grow_stack): Simplify method for computing new
6695 stack size. Don't loop infinitely if ``stack_len'' is zero.
6696 (execute_stack_op): Move ``ctx->in_reg'' initialization
6697 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6698 be used in conjuction with DW_OP_piece. Revise error message
6699 accordingly.
6700
6701 2003-05-14 Theodore A. Roth <troth@openavr.org>
6702
6703 * MAINTAINERS: Update my email address.
6704 * avr-tdep.c: Ditto.
6705
6706 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6707
6708 * symtab.h (enum domain_enum): Rename from namespace_enum.
6709 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6710 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6711 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6712 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6713 TYPES_NAMESPACE, METHODS_NAMESPACE.
6714 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6715 (struct symbol, struct partial_symbol): Rename field
6716 'namespace_enum namespace' to 'domain_enum domain'.
6717 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6718 Delete old define kludge for namespace.
6719
6720 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6721 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6722 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6723 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6724 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6725 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6726 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6727 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6728 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6729 occurrences of the above.
6730
6731 2003-05-14 Ian Lance Taylor <ian@airs.com>
6732
6733 * Makefile.in (install-only): Use $(SHELL) when running
6734 mkinstalldirs.
6735
6736 2003-05-13 Ian Lance Taylor <ian@airs.com>
6737
6738 * MAINTAINERS (write after approval): Add myself.
6739
6740 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6741 second and third arguments.
6742 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6743 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6744
6745 2003-05-13 Andrew Cagney <cagney@redhat.com>
6746
6747 * defs.h (store_address): Delete declaration.
6748 findvar.c (store_address): Delete function.
6749 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6750 store_unsigned_integer.
6751 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6752 * v850-tdep.c (v850_push_arguments): Ditto.
6753 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6754 * sh-tdep.c (sh64_get_saved_register): Ditto.
6755 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6756 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6757 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6758 (mips_get_saved_register): Ditto.
6759 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6760 (find_func_descr, ia64_push_arguments): Ditto.
6761 * i386-tdep.c (i386_push_arguments): Ditto.
6762 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6763 * frv-tdep.c (frv_push_arguments): Ditto.
6764 * frame.c (legacy_saved_regs_prev_register): Ditto.
6765 (deprecated_generic_get_saved_register): Ditto.
6766 * findvar.c (unsigned_address_to_pointer): Ditto.
6767 * dwarf2read.c (dwarf2_const_value): Ditto.
6768 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6769 * alpha-tdep.c (alpha_push_arguments): Ditto.
6770
6771 2003-05-12 J. Brobecker <brobecker@gnat.com>
6772
6773 * NEWS: Mention that the hppa-hpux port has been partially
6774 multiarched (32bit ABIT only, so far).
6775
6776 2003-05-11 Andrew Cagney <cagney@redhat.com>
6777
6778 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6779 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6780 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6781 sim/testsuite/sim/arm/misaligned2.ms, and
6782 sim/testsuite/sim/arm/misaligned3.ms.
6783 * disasm.h (struct ui_file): Add opaque struct declaration.
6784 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6785 * frame.h (struct ui_file): Ditto.
6786
6787 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6788
6789 * value.h: Pretty print.
6790
6791 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6792
6793 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6794
6795 2003-05-08 Andrew Cagney <cagney@redhat.com>
6796
6797 * regcache.h (max_register_size): Delete declaration.
6798 * regcache.c (max_register_size): Delete function.
6799 (struct regcache_descr): Delete field "max_register_size".
6800 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6801 registers fit in MAX_REGISTER_SIZE.
6802 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6803 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6804 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6805 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6806 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6807 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6808 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6809 * dve3900-rom.c, hppa-tdep.c: Ditto.
6810
6811 2003-05-08 David Carlton <carlton@math.stanford.edu>
6812
6813 * valops.c (push_word): Fix typo.
6814
6815 2003-05-08 Andrew Cagney <cagney@redhat.com>
6816
6817 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6818 * gdbarch.h: Re-generate.
6819 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6820 (legacy_max_register_raw_size): Delete declaration.
6821 * regcache.c (legacy_max_register_raw_size): Delete function.
6822 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6823 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6824 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6825 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6826 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6827 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6828 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6829 * findvar.c, dwarf2cfi.c: Ditto.
6830
6831 2003-05-08 Andrew Cagney <cagney@redhat.com>
6832
6833 * mips-tdep.c (read_signed_register): New function, moved to here
6834 from "regcache.c".
6835 (read_signed_register_pid): Ditto.
6836 * regcache.c (read_signed_register_pid): Delete function, moved to
6837 "mips-tdep.c".
6838 (read_signed_register): Ditto.
6839 * regcache.h (read_signed_register): Delete declaration.
6840 (read_signed_register_pid): Delete declaration.
6841
6842 2003-05-08 Andrew Cagney <cagney@redhat.com>
6843
6844 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6845 * gdbarch.h: Re-generate.
6846 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6847 (legacy_max_register_virtual_size): Delete declaration.
6848 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6849 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6850 * tracepoint.c (memrange_sortmerge): Ditto.
6851 * sparc-tdep.c (sparc_print_registers): Ditto.
6852 * regcache.c (legacy_max_register_virtual_size): Delete function.
6853
6854 2002-05-08 J. Brobecker <brobecker@gnat.com>
6855
6856 * fork-child.c (escape_bang_in_quoted_argument): New function.
6857 (fork_inferior): Escape '!' characters in quoted arguments
6858 only when needed.
6859
6860 2003-05-08 J. Brobecker <brobecker@gnat.com>
6861
6862 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6863 the language of the CU is not currently supported by GDB.
6864
6865 2003-05-08 J. Brobecker <brobecker@gnat.com>
6866
6867 * defs.h (language): Add language_minimal enum value.
6868 * c-lang.c (minimal_language_defn): New language definition.
6869 (_initialize_c_language): Add the new minimal language to the list
6870 of languages known to GDB.
6871
6872 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6873
6874 * frame.c (get_frame_type): Don't attempt to lazily initialize
6875 frame's unwinder for legacy frames.
6876
6877 2003-05-07 Andrew Cagney <cagney@redhat.com>
6878
6879 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6880 and "regcache" parameters.
6881 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6882
6883 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6884
6885 * dwarf2read.c (dwarf_decode_lines): Only use output of
6886 check_cu_functions() when calling record_line(). Do not update
6887 the current address.
6888
6889 2003-05-07 Andrew Cagney <cagney@redhat.com>
6890
6891 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6892 code.
6893
6894 2003-05-07 Jim Blandy <jimb@redhat.com>
6895
6896 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6897 'maint info symtabs' and 'maint info psymtabs'.
6898 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6899 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6900 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6901 Declarations updated.
6902 * maint.c (maintenance_list_command): Delete.
6903 (_initialize_maint_cmds): Update calls to add_cmd.
6904 * gdbcmd.h (maintenancelistlist): Delete declaration.
6905 * cli/cli-cmds.c (maintenancelistlist): Delete.
6906 (init_cmd_lists): Don't initialize it.
6907 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6908
6909 2003-05-07 Andrew Cagney <cagney@redhat.com>
6910
6911 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6912 "regcache".
6913 (d10v_print_registers_info): Update.
6914 (d10v_dmap_register, d10v_imap_register): Delete functions.
6915 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6916 and "imap_register".
6917 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6918 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6919 * arch-utils.c (generic_remote_translate_xfer_address): Add
6920 "regcache" and "gdbarch" parameters.
6921 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6922 parameter. Change class to multi-arch.
6923 * gdbarch.h, gdbarch.c: Re-generate.
6924 * remote.c (remote_xfer_memory): Use
6925 gdbarch_remote_translate_xfer_address.
6926
6927 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6928
6929 * infrun.c (prev_pc): Move declaration ahead of proceed().
6930 (proceed): Refresh prev_pc value before resuming.
6931 (stop_stepping): Remove code to refresh prev_pc.
6932
6933 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6934
6935 * nto-tdep.c: Removed stray comment.
6936
6937 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6938
6939 * i386-nto-tdep.c: Fix old K&R function definitions.
6940 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6941 Also change add_show_from_set() call to add_setshow_cmd().
6942 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6943
6944 2003-05-05 Andrew Cagney <cagney@redhat.com>
6945
6946 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6947 (fprint_dummy_frames): New function.
6948 (maintenance_print_dummy_frames): New function.
6949 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6950 * frame.c (fprint_frame_id): Make global.
6951 * frame.h (fprint_frame_id): Declare.
6952 * Makefile.in (dummy-frame.o): Update dependencies.
6953
6954 2003-05-05 Andrew Cagney <cagney@redhat.com>
6955
6956 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6957 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6958 SIZEOF_CALL_DUMMY_WORDS.
6959 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6960 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6961 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6962 CALL_DUMMY_BREAKPOINT_OFFSET.
6963 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6964 CALL_DUMMY_START_OFFSET.
6965 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6966 * gdbarch.h, gdbarch.c: Re-generate.
6967 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6968 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6969 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6970 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6971 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6972 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6973 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6974 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6975 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6976 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6977 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6978 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6979 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6980 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6981 * config/sparc/tm-sparc.h: Update.
6982
6983 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6984
6985 * configure.tgt: Add i[3456]86-*-nto*.
6986 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6987 * nto-tdep.c: New file. Neutrino target support routines.
6988 * nto-tdep.h: New file. Neutrino target header.
6989 * config/tm-qnxnto.h: New file.
6990 * config/i386/i386nto.mt: New file.
6991 * config/i386/tm-i386nto.h: New file.
6992
6993 2003-05-04 Andrew Cagney <cagney@redhat.com>
6994
6995 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6996 (load_infrun_state): Ditto.
6997 (struct thread_info): Drop "prev_func_name" field.
6998 * thread.c (load_infrun_state): Update.
6999 (save_infrun_state): Update.
7000 * infrun.c (prev_func_name): Delete variable.
7001 (init_wait_for_inferior): Do not clear prev_func_name.
7002 (stop_stepping, keep_going, context_switch): Do not swap
7003 prev_func_name.
7004 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7005 instead of PC_IN_SIGTRAMP.
7006
7007 2003-05-04 Andrew Cagney <cagney@redhat.com>
7008
7009 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7010 REGISTER_BYTE with register_offset_hack.
7011 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7012 that REGISTER_BYTE is consistent with the regcache.
7013 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7014 * gdbarch.h, gdbarch.c: Regenerate.
7015
7016 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7017
7018 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7019 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7020
7021 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7022
7023 2003-05-03 J. Brobecker <brobecker@gnat.com>
7024
7025 From Thierry Schneider <tpschneider1@yahoo.com>
7026 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7027 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7028 (mi-cmd-symbol.o): Add rule.
7029
7030 2003-05-03 Andrew Cagney <cagney@redhat.com>
7031
7032 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7033 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7034 * gdbarch.h, gdbarch.c: Re-generate.
7035 * d10v-tdep.c (d10v_push_dummy_code): New function.
7036 (d10v_gdbarch_init): Set push_dummy_code.
7037 * infcall.c (legacy_push_dummy_code): New function.
7038 (generic_push_dummy_code): New function.
7039 (push_dummy_code): New function.
7040 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7041 instead of dummy_addr, to push_dummy_call. Move call to
7042 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7043 switch.
7044 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7045
7046 2003-05-03 Andrew Cagney <cagney@redhat.com>
7047
7048 * disasm.h (print_insn): Declare.
7049 * disasm.c (init_gdb_disassemble_info): New function.
7050 (gdb_disassembly): Call init_gdb_disassemble_info.
7051 (gdb_print_insn): New function.
7052 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7053 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7054 * mcore-tdep.c: Include "disasm.h"
7055 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7056 * d10v-tdep.c: Include "disasm.h".
7057 (display_trace): Call gdb_print_insn, instead of print_insn.
7058 (print_insn): Delete function.
7059 * printcmd.c: Include "disasm.h".
7060 (print_insn): Delete function.
7061 (print_formatted): Call gdb_print_insn, instead of print_insn.
7062 * Makefile.in (printcmd.o): Update dependencies.
7063 (mcore-tdep.o, d10v-tdep.o): Ditto.
7064
7065 2003-05-02 Andrew Cagney <cagney@redhat.com>
7066
7067 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7068 PC_REGNUM, re-indent.
7069 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7070 PC_REGNUM isn't set.
7071
7072 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7073 * gdbarch.h, gdbarch.c: Re-generate.
7074 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7075 register_virtual_size, pc_regnum, or register_bytes.
7076 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7077 (d10v_register_type): Use D10V_PC_REGNUM.
7078 (d10v_print_registers_info, d10v_read_pc): Ditto.
7079 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7080 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7081
7082 2003-05-02 David Carlton <carlton@bactrian.org>
7083
7084 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7085 the name with mstrsave.
7086
7087 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7088
7089 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7090 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7091 (host_charset_name, target_charset_name): New vars for use by
7092 set/show commands.
7093 (host_charset_enum, target_charset_enum): New enums for set/show
7094 commands.
7095 (set_charset_sfunc, set_host_charset_sfunc,
7096 set_target_charset_sfunc): New functions.
7097 (set_host_charset, set_target_charset): Make static.
7098 (list_charsets, set_host_charset_command,
7099 set_target_charset_command): Delete functions.
7100 (show_charset_command): Rewrite as....
7101 (show_charset): Hook this up with the set/show command mechanism.
7102 (_initialize_charset): Change names of charsets to match the
7103 set/show enums. Use host_charset_name and target_charset_name.
7104 Use set/show mechanism for charset, host-charset, target-charset
7105 commands. Do not make 'show host-charset' and 'show
7106 target-charset' be aliases of 'show charset'.
7107
7108 * charset.h (set_host_charset, set_target_charset): Don't export,
7109 they are not used outside the file.
7110
7111 2003-05-01 Andrew Cagney <cagney@redhat.com>
7112
7113 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7114 (gdb_disassembly): Make "di" non static, always initialize and
7115 cleanup. Always use dis_asm_read_memory.
7116 (gdb_dis_asm_read_memory): Delete function.
7117
7118 2003-05-01 Andrew Cagney <cagney@redhat.com>
7119
7120 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7121 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7122
7123 2003-04-30 Andrew Cagney <cagney@redhat.com>
7124
7125 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7126 "tm_print_insn_info".
7127 (TARGET_PRINT_INSN_INFO): Delete macro.
7128 (dis_asm_read_memory): Delete function declaration.
7129 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7130 (tm_print_insn_info): Delete variable definition.
7131 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7132 * gdbarch.h, gdbarch.c: Re-generate.
7133 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7134 "deprecated_tm_print_insn_info".
7135 * mcore-tdep.c (mcore_dump_insn): Ditto.
7136 * mips-tdep.c (mips_gdbarch_init): Ditto.
7137 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7138 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7139 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7140 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7141 instead of TARGET_PRINT_INSN_INFO, add comment.
7142 * s390-tdep.c (s390_get_frame_info): Instead of
7143 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7144 (s390_check_function_end, s390_is_sigreturn): Ditto.
7145 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7146 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7147 * disasm.c: Include "gdbcore.h".
7148 (_initialize_disasm): New function, initialize
7149 "deprecated_tm_print_insn_info".
7150 (deprecated_tm_print_insn_info): New variable.
7151 (dis_asm_read_memory): Moved from "corefile.c", made static.
7152 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7153 * Makefile.in (disasm.o): Update dependencies.
7154
7155 2003-04-30 Andrew Cagney <cagney@redhat.com>
7156
7157 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7158
7159 2003-04-29 Adam Fedor <fedor@gnu.org>
7160
7161 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7162 * infcall.c (find_function_addr): Make non-static.
7163 * infcall.h (find_function_addr): Declare.
7164 * Makefile.in (eval.o): Update dependencies.
7165
7166 2003-04-28 Adam Fedor <fedor@gnu.org>
7167
7168 * symtab.c (symbol_find_demangled_name): Check for and demangle
7169 ObjC symbols.
7170 (symbol_init_demangled_name): Init for language_objc as well.
7171
7172 2003-04-28 Andrew Cagney <cagney@redhat.com>
7173
7174 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7175 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7176 * gdbarch.h, gdbarch.c: Re-generate.
7177 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7178 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7179 * inferior.h (deprecated_read_fp): Rename read_fp.
7180 (generic_target_read_fp): Delete declaration.
7181 * regcache.c (generic_target_read_fp): Delete function.
7182 (deprecated_read_fp): Replace read_fp, use
7183 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7184 * d10v-tdep.c (d10v_read_fp): Delete function.
7185 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7186
7187 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7188 deprecated_target_read_fp to generic_target_read_fp.
7189 * sh-tdep.c (sh_gdbarch_init): Ditto.
7190 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7191 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7192 * frv-tdep.c (frv_gdbarch_init): Ditto.
7193
7194 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7195 deprecated_fp_regnum.
7196 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7197 * vax-tdep.c (vax_gdbarch_init): Ditto.
7198 * v850-tdep.c (v850_gdbarch_init): Ditto.
7199 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7200 * sh-tdep.c (sh_gdbarch_init): Ditto.
7201 * s390-tdep.c (s390_gdbarch_init): Ditto.
7202 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7203 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7204 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7205 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7206 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7207 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7208 * i386-tdep.c (i386_gdbarch_init): Ditto.
7209 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7210 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7211 * frv-tdep.c (frv_gdbarch_init): Ditto.
7212 * cris-tdep.c (cris_gdbarch_init): Ditto.
7213 * avr-tdep.c (avr_gdbarch_init): Ditto.
7214 * arm-tdep.c (arm_gdbarch_init): Ditto.
7215 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7216
7217 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7218 * v850-tdep.c (v850_gdbarch_init): Ditto.
7219 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7220 * sh-tdep.c (sh_gdbarch_init): Ditto.
7221 * s390-tdep.c (s390_gdbarch_init): Ditto.
7222 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7223 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7224 * mips-tdep.c (mips_gdbarch_init): Ditto.
7225 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7226 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7227 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7228 * frv-tdep.c (frv_gdbarch_init): Ditto.
7229 * avr-tdep.c (avr_gdbarch_init): Ditto.
7230 * arm-tdep.c (arm_gdbarch_init): Ditto.
7231
7232 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7233 DEPRECATED_FP_REGNUM.
7234 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7235 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7236 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7237 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7238 (sparc32_register_virtual_type): Ditto.
7239 * sh-tdep.c (sh64_frame_chain): Ditto.
7240 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7241 (sh_nofp_frame_init_saved_regs): Ditto.
7242 (sh64_nofp_frame_init_saved_regs): Ditto.
7243 (sh_fp_frame_init_saved_regs): Ditto.
7244 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7245 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7246 * procfs.c (procfs_fetch_registers): Ditto.
7247 (procfs_store_registers): Ditto.
7248 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7249 (store_inferior_registers, fetch_core_registers): Ditto.
7250 (fetch_kcore_registers, clear_regs): Ditto.
7251 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7252 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7253 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7254 * nlm/i386.c (do_status): Ditto.
7255 * mipsv4-nat.c (supply_gregset): Ditto.
7256 * mips-tdep.c: Ditto for comments.
7257 * mips-nat.c (fetch_inferior_registers): Ditto.
7258 (store_inferior_registers, fetch_core_registers): Ditto.
7259 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7260 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7261 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7262 (i386_do_pop_frame, i386_register_type): Ditto.
7263 * hppa-tdep.c (hppa_frame_chain): Ditto.
7264 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7265 (hppa_pop_frame, hppa_read_fp): Ditto.
7266 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7267 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7268 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7269 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7270 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7271 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7272 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7273 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7274 * blockframe.c: Ditto for comments.
7275 * arch-utils.h: Ditto for comments.
7276 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7277 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7278 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7279 * alpha-tdep.h: Ditto for comments.
7280 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7281 (alpha_cannot_store_register): Ditto.
7282 (alpha_push_dummy_frame): Ditto.
7283 * alpha-nat.c (supply_gregset): Ditto.
7284
7285 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7286 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7287 * config/sparc/tm-sparc.h: Update comment.
7288
7289 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7290 deprecated_read_fp instead of TARGET_READ_FP.
7291 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7292 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7293 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7294 deprecated_read_fp instead of read_fp.
7295 * s390-tdep.c (s390_push_arguments): Ditto.
7296 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7297 * frame.h: Ditto in comments.
7298 * frame.c (legacy_get_prev_frame): Ditto.
7299 * dummy-frame.c (dummy_frame_this_id): Ditto.
7300 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7301
7302 2003-04-28 Andrew Cagney <cagney@redhat.com>
7303
7304 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7305 * gdbarch.h, gdbarch.c: Re-generate.
7306 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7307 * vax-tdep.c (_initialize_vax_tdep): Update.
7308 * v850-tdep.c (_initialize_v850_tdep): Update.
7309 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7310 * s390-tdep.c (_initialize_s390_tdep): Update.
7311 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7312 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7313 * mips-tdep.c (_initialize_mips_tdep): Update.
7314 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7315 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7316 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7317 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7318 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7319 * frv-tdep.c (_initialize_frv_tdep): Update.
7320 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7321 (_initialize_cris_tdep): Update.
7322 * arch-utils.c (legacy_print_insn): Update.
7323 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7324
7325 2003-04-26 Adam Fedor <fedor@gnu.org>
7326
7327 * linespec.c (decode_objc): New function to decode ObjC calls
7328 (decode_line_1): Check for ObjC calls (using decode_objc)
7329 * Makefile (linespec.o): Update dependencies.
7330
7331 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7332
7333 * breakpoint.h (struct breakpoint_ops): New.
7334 (struct breakpoint): Add ops member.
7335
7336 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7337 (mention): Use new breakpoint ops member.
7338 (set_raw_breakpoint): Initialize ops field to NULL.
7339 (print_exception_catchpoint, print_one_exception_catchpoint)
7340 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7341 (gnu_v3_exception_catchpoint_ops): New.
7342 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7343
7344 2003-04-25 Adam Fedor <fedor@gnu.org>
7345
7346 * Makefile.in (COMMON_OBS): Add objc-lang.o
7347
7348 2003-04-25 Andrew Cagney <cagney@redhat.com>
7349
7350 * d10v-tdep.c (print_insn): Delete function.
7351 (display_trace): Use TARGET_PRINT_INSN.
7352 (_initialize_d10v_tdep): Do not set tm_print_insn.
7353 (d10v_gdbarch_init): Set print_insn.
7354
7355 2003-04-25 Andrew Cagney <cagney@redhat.com>
7356
7357 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7358 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7359 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7360 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7361 (nr_dmap_regs, a0_regnum): ... new functions.
7362 (d10v_print_registers_info): Use a0_regnum, use register_size.
7363 (d10v_register_byte): Delete function.
7364 (d10v_register_raw_size): Delete function.
7365 (d10v_register_type): Use a0_regnum.
7366 (d10v_print_registers_info): Use a0_regnum.
7367 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7368 (d10v_gdbarch_init): Do not set register_byte or
7369 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7370 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7371 extract_address.
7372 (trace_command): Use XCALLOC.
7373 (print_insn): Delete reference to tm_print_insn.
7374 (saved_regs_unwinder): Use store_unsigned_integer instead of
7375 store_address.
7376 * frame.h (FRAME_OBSTACK_CALLOC): Define
7377
7378 2003-04-25 David Carlton <carlton@bactrian.org>
7379
7380 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7381
7382 2003-04-24 Adam Fedor <fedor@gnu.org>
7383
7384 * objc-lang.c: Include "valprint.h"
7385 * Makefile.in (objc-lang.o): Update dependencies.
7386
7387 2003-04-24 Adam Fedor <fedor@gnu.org>
7388
7389 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7390 architecture dependant compilation and mark as unimplemented
7391 (until they get put in the gdbarch vector).
7392
7393 2003-04-23 David Carlton <carlton@bactrian.org>
7394
7395 * cp-support.c (cp_find_first_component): Accept 'operator' in
7396 more locations.
7397
7398 2003-04-23 Andrew Cagney <cagney@redhat.com>
7399
7400 * infcall.c (call_function_by_hand): Eliminate redundant
7401 indentation. Move "saved_async" and "old_cleanups" to where they
7402 are needed.
7403
7404 2003-04-23 Andrew Cagney <cagney@redhat.com>
7405
7406 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7407 and "buffer". Move the "name" code to where it is needed.
7408
7409 2003-04-23 Andrew Cagney <cagney@redhat.com>
7410
7411 * infcall.c (call_function_by_hand): Move variables "start_sp",
7412 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7413 code to ON_STACK switch branch.
7414
7415 2003-04-23 Andrew Cagney <cagney@redhat.com>
7416
7417 * infcall.c (call_function_by_hand): Make declaration of "i",
7418 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7419 lint.
7420
7421 2003-04-23 Andrew Cagney <cagney@redhat.com>
7422
7423 * infcall.c (call_function_by_hand): Delete variable
7424 "n_method_args". Localize "param_type"'s declaration to the loop
7425 that it is used. Reinstate code assigning to said variable -
7426 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7427 Rationalize code using "param_type".
7428
7429 2003-04-22 Andrew Cagney <cagney@redhat.com>
7430
7431 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7432 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7433 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7434 to DEPRECATED_PUSH_RETURN_ADDRESS.
7435
7436 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7437
7438 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7439 on the DWARF2 register number prior to fetching a register.
7440
7441 2003-04-22 J. Brobecker <brobecker@gnat.com>
7442
7443 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7444 Update all the tests using SOFT_FLOAT considering the fact that
7445 this macro was always set to 0.
7446 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7447 considering the fact that this macro was always set to 0.
7448 * hppa-tdep.h (hppa_store_return_value): Likewise.
7449 (hppa_extract_return_value): Likewise.
7450
7451 2003-04-22 J. Brobecker <brobecker@gnat.com>
7452
7453 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7454 the hppa-pro target only.
7455
7456 2003-04-21 J. Brobecker <brobecker@gnat.com>
7457
7458 Ongoing multi-arch conversion effort for HP/UX:
7459 * config/pa/tm-hppa.h: Move all macro that are no longer
7460 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7461 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7462
7463 2003-04-21 J. Brobecker <brobecker@gnat.com>
7464
7465 * config/pa/tm-hppa.h: Obsolete a section that was only used
7466 for hppa-pro.
7467
7468 2003-04-21 J. Brobecker <brobecker@gnat.com>
7469
7470 Ongoing multi-arch conversion for HP/UX.
7471 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7472 if already defined (allows hppa64 to stay non-multiarched for now).
7473 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7474
7475 2003-04-21 Andrew Cagney <cagney@redhat.com>
7476
7477 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7478
7479 2003-04-21 Andrew Cagney <cagney@redhat.com>
7480
7481 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7482 "i386_num_mmx_regs".
7483
7484 2003-04-21 Andrew Cagney <cagney@redhat.com>
7485
7486 * infcall.c: New file.
7487 * infcall.h: New file.
7488 * valarith.c: Include "infcall.h".
7489 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7490 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7491 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7492 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7493 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7494 (SFILES): Add "infcall.c"
7495 (COMMON_OBS): Add "infcall.o".
7496 (infcall.o): Specify dependencies.
7497 * value.h (call_function_by_hand): Delete declaration.
7498 * inferior.h (run_stack_dummy): Delete declaration.
7499 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7500 (run_stack_dummy): Move to "infcall.c", merged into
7501 call_function_by_hand.
7502 * valops.c (call_function_by_hand): Moved to "infcall.c".
7503 (find_function_addr, value_arg_coerce): Ditto.
7504 (unwindonsignal_p, coerce_float_to_double): Ditto.
7505 (_initialize_valops): Move "set/show coerce-float-to-double", and
7506 "set/show unwindonsignal" commands to "infcall.c".
7507 * v850-tdep.c, target.h: Update comments.
7508 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7509 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7510 (sh64_init_extra_frame_info): Update comments.
7511 * mn10300-tdep.c: Update comments.
7512 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7513 * config/sparc/tm-sparc.h: Update comments.
7514 * breakpoint.h: Update comments.
7515 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7516 * arm-tdep.c: Update comment.
7517
7518 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7519
7520 * i386-tdep.c (i386_num_register_names): New variable.
7521 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7522 (MM0_REGNUM): Remove redundant parentheses in define.
7523 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7524 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7525 i386_mxcsr_regnum_p): Remove redundant parentheses.
7526 (i386_register_name): Use i386_num_register_names.
7527
7528 * i386-tdep.c (i386_extract_return_value,
7529 i386_store_return_value): Correct check for availability of
7530 floating-point registers.
7531
7532 * i386-tdep.c (i386_frame_num_args): Remove function.
7533 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7534
7535 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7536 mmx_regnum_to_fp_regnum. Adjust all callers.
7537
7538 * i386-tdep.c (i386_get_longjmp_target): Use
7539 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7540 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7541 extract_address.
7542
7543 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7544
7545 * core-regset.c: Update comments to reflect reality. Re-order
7546 includes.
7547 (fetch_core_registers): Use switch instead of if. Remove
7548 redundant prototype.
7549
7550 2003-04-18 Jim Blandy <jimb@redhat.com>
7551
7552 * s390-tdep.c (s390_frame_align): New function.
7553 (s390_gdbarch_init): Register it with the gdbarch object.
7554
7555 2003-04-17 Richard Henderson <rth@redhat.com>
7556
7557 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7558
7559 2003-04-17 Michael Snyder <msnyder@redhat.com>
7560 Karen Bennet <bennet@redhat.com>
7561
7562 Committed by Elena Zannoni <ezannoni@redhat.com>
7563 * gdb_gcore.sh: New script to create a core dump of a process.
7564
7565 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7566
7567 * values.c (value_being_returned): Don't fetch the return
7568 value if the return type is void.
7569
7570 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7571
7572 * thread-db.c: Reindented.
7573
7574 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7575
7576 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7577 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7578 as types.
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7605
7606 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7607 the size of ``long double'' to 16, instead of 8.
7608
7609 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7610
7611 * i386-linux-nat.c: Add some whitespace to make things more
7612 readable.
7613 (fetch_register, store_register, fetch_inferior_registers,
7614 store_inferior_registers): Get rid of assignment in if-statement.
7615 (store_register): Fix typo in error message.
7616
7617 2003-04-16 Andrew Cagney <cagney@redhat.com>
7618
7619 * utils.c (xmmalloc): Always allocate something, matches
7620 libiberty/xmalloc's semantics.
7621 (xmrealloc, xmcalloc): Ditto.
7622
7623 2003-04-16 Andrew Cagney <cagney@redhat.com>
7624
7625 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7626 update comments.
7627 (get_frame_type): Initialize unwind and type when needed.
7628 (get_frame_id, frame_register_unwind): Ditto.
7629
7630 2003-04-16 Andrew Cagney <cagney@redhat.com>
7631
7632 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7633 obsolete.
7634 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7635 * sparcl-stub.c: Obsolete file.
7636 * config/sparc/tm-sparclet.h: Obsolete file.
7637 * sparclet-stub.c: Obsolete file.
7638 * sparclet-rom.c: Obsolete file.
7639 * sparcl-tdep.c: Obsolete file.
7640 * config/sparc/tm-sparclite.h: Obsolete file.
7641 * config/sparc/sparclite.mt: Obsolete file.
7642 * config/sparc/sparclet.mt: Obsolete file.
7643 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7644 sparc86x-*-* obsolete.
7645
7646 2003-04-15 David Carlton <carlton@math.stanford.edu>
7647
7648 * Makefile.in (SFILES): Add cp-namespace.c.
7649 (COMMON_OBS): Add cp-namespace.o.
7650 (block.o): Depend on gdb_obstack_h and cp_support_h.
7651 (buildsym.o): Depend on cp_support_h.
7652 (cp-namespace.o): New.
7653 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7654 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7655 (dwarf2read.o): Depend on cp_support_h.
7656 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7657 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7658 processing_current_namespace.
7659 (read_namespace): Update processing_current_namespace; check for
7660 anonymous namespaces.
7661 (dwarf2_name): New function.
7662 (dwarf2_extension): Ditto.
7663 * cp-support.h: Update copyright, contributors.
7664 Add inclusion guards.
7665 Add opaque declaration for structs obstack, block, symbol.
7666 (struct using_direct): New struct.
7667 Add declarations for cp_find_first_component,
7668 cp_entire_prefix_len, processing_has_namespace_info,
7669 processing_current_namespace, cp_is_anonymous,
7670 cp_add_using_directive, cp_initialize_namespace,
7671 cp_finalize_namespace, cp_set_block_scope,
7672 cp_scan_for_anonymous_namespaces.
7673 * cp-namespace.c: New file.
7674 * cp-support.c: Update copyright.
7675 Include ctype.h, gdb_assert.h, gdbcmd.h.
7676 New variable maint_cplus_cmd_list.
7677 (cp_find_first_component): New function.
7678 (cp_entire_prefix_len, maint_cplus_command)
7679 (first_component_command, _initialize_cp_support): Ditto.
7680 * buildsym.c: Include cp-support.h.
7681 New variable using_list.
7682 (add_symbol_to_list): Check for anonymous namespaces.
7683 (finish_block): Set block's scope.
7684 (start_symtab): Initialize C++ namespace support.
7685 (end_symtab): Finalize C++ namespace support.
7686 * block.h: Add opaque declarations for structs
7687 block_namespace_info, using_direct, and obstack.
7688 Add declarations for block_set_scope and block_set_using.
7689 (struct block): Add 'language_specific' member.
7690 (BLOCK_NAMESPACE): New macro.
7691 * block.c: Include gdb_obstack.h and cp-support.h.
7692 (struct block_namespace_info): New struct.
7693 (block_set_scope): New function.
7694 (block_set_using, block_initialize_namespace): Ditto.
7695
7696 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7697
7698 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7699 (locate_base): Return early if there aren't any link map offsets.
7700 (svr4_solib_create_inferior_hook): Warn if shared library support
7701 is unavailable.
7702
7703 2003-04-14 David Carlton <carlton@math.stanford.edu>
7704
7705 * symtab.c (symbol_set_names): Add prefix when storing Java names
7706 in hash table. Fix for PR java/1039.
7707
7708 2003-04-14 David Carlton <carlton@math.stanford.edu>
7709
7710 * symtab.c (symbol_set_names): Rename 'name' arg to
7711 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7712 * symtab.h: Change 'name' argument in declaration of
7713 symbol_set_names to 'linkage_name'.
7714 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7715
7716 2003-04-14 Andrew Cagney <cagney@redhat.com>
7717
7718 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7719 return the fully sign-extended register value.
7720 (get_frame_pointer): Ditto.
7721 (mips_pop_frame): Initialize "proc_desc" after checking for a
7722 dummy frame.
7723
7724 2003-04-14 Andrew Cagney <cagney@redhat.com>
7725
7726 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7727 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7728 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7729 (mips_push_register): Delete function.
7730 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7731 PUSH_FP_REGNUM.
7732
7733 2003-04-14 Jim Blandy <jimb@redhat.com>
7734
7735 * symmisc.c: #include "gdb_regex.h".
7736 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7737 functions.
7738 * maint.c (maintenance_list_command): New function.
7739 (_initialize_maint_cmds): Register the above as commands.
7740 * symtab.h (maintenance_list_symtabs,
7741 maintenance_list_psymtabs): New declarations.
7742 * cli/cli-cmds.c (maintenancelistlist): New variable.
7743 (init_cmd_lists): Initialize it.
7744 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7745 * gdbcmd.h (maintenancelistlist): New declaration.
7746 * Makefile.in (symmisc.o): Update dependencies.
7747
7748 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7749
7750 * s390-nat.c: Include asm/types.h for addr_t.
7751
7752 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7753
7754 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7755 actually incoming type.
7756
7757 2003-04-13 Andrew Cagney <cagney@redhat.com>
7758
7759 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7760 get_next_frame and get_frame_saved_regs.
7761
7762 2003-04-13 Andrew Cagney <cagney@redhat.com>
7763
7764 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7765 of gdbarch_num_regs.
7766
7767 2003-04-13 Andrew Cagney <cagney@redhat.com>
7768
7769 * frame.h: Mention what replaced what in "struct frame_info".
7770 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7771 deprecated_update_frame_base_hack and
7772 deprecated_update_frame_pc_hack.
7773 * hppa-tdep.c: Ditto.
7774
7775 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7776
7777 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7778 to read_reg and update its comment. Remove regnum member.
7779 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7780 Don't call read_reg when setting in_reg. Call read_reg to get
7781 the frame base if it's in a register. Return the register number
7782 on the stack instead of in the context. Remove extra arguments
7783 to read_reg.
7784 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7785 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7786 the register number on the expression stack.
7787 (needs_frame_read_reg): Remove extra arguments.
7788
7789 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7790
7791 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7792 made non-static.
7793 (execute_stack_op): All callers updated.
7794 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7795 * dwarf2loc.c (find_location_expression): New function.
7796 (dwarf_expr_frame_base): Call it.
7797 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7798 (dwarf2_tracepoint_var_ref): New function, broken out from
7799 locexpr_tracepoint_var_ref.
7800 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7801 Make static.
7802 (loclist_read_variable, loclist_read_needs_frame): New functions.
7803 (loclist_describe_location, loclist_tracepoint_var_ref): New
7804 functions.
7805 (dwarf2_loclist_funcs): New struct location_funcs.
7806 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7807 (struct dwarf2_locexpr_baton): Add comments.
7808 (dwarf2_loclist_funcs): New extern.
7809 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7810 base_address and base_known.
7811 (dwarf_loc_buffer): New variable.
7812 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7813 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7814 (dwarf2_has_info): Initialize dwarf_loc_offset.
7815 (dwarf2_build_psymtabs): Read in .debug_loc.
7816 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7817 DWARF_LOC_SIZE.
7818 (psymtab_to_symtab_1): Likewise. Move base address calculation
7819 here, from...
7820 (dwarf2_get_pc_bounds): ... here. Use the base address from
7821 cu_header.
7822 (dwarf2_symbol_mark_computed): Handle location lists.
7823
7824 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7825
7826 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7827 if the linkage name demangled successfully.
7828
7829 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7830
7831 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7832 disassmbly_flavour): Removed.
7833
7834 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7835
7836 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7837
7838 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7839
7840 2003-04-12 Andrew Cagney <cagney@redhat.com>
7841
7842 * frame.h (struct frame_info): Move definition from here ...
7843 * frame.c (struct frame_info): ... to here.
7844
7845 2003-04-12 Andrew Cagney <cagney@redhat.com>
7846
7847 * gdbthread.h (save_infrun_state): Delete parameter
7848 "prev_func_start".
7849 (struct thread_info): Delete field "prev_func_start".
7850 (load_infrun_state): Ditto.
7851 * thread.c (load_infrun_state, save_infrun_state): Update.
7852 * infrun.c (prev_func_start): Delete variable.
7853 (context_switch, init_wait_for_inferior): Update.
7854 (stop_stepping, keep_going): Update.
7855
7856 2003-04-12 Andrew Cagney <cagney@redhat.com>
7857
7858 * gdbarch.sh: Add missing opaque declarations.
7859 * gdbarch.h: Regnerate.
7860 * symtab.h: Add missing opaque declarations.
7861 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7862 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7863 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7864 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7865 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7866 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7867 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7868 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7869 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7870 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7871 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7872 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7873 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7874
7875 2003-04-11 Andrew Cagney <cagney@redhat.com>
7876
7877 * frame.c (get_frame_id): Return this frame's "id".
7878 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7879 function start.
7880 (legacy_saved_regs_this_id): Replace function body with
7881 internal-error.
7882 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7883 FRAME_OBSTACK_ZALLOC.
7884 (create_new_frame): Mark the frame ID as valid.
7885
7886 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7887
7888 * Makefile.in (libbfd_h): Added missing setting.
7889 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7890 according to the selected ABI.
7891
7892 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7893
7894 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7895
7896 2003-04-11 Andrew Cagney <cagney@redhat.com>
7897
7898 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7899 SAVED_PC_AFTER_CALL.
7900 * gdbarch.h, gdbarch.c: Regenerate.
7901 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7902 * x86-64-tdep.c (x86_64_init_abi): Update.
7903 * vax-tdep.c (vax_gdbarch_init): Update.
7904 * v850-tdep.c (v850_gdbarch_init): Update.
7905 * sparc-tdep.c (sparc_gdbarch_init): Update.
7906 * sh-tdep.c (sh_gdbarch_init): Update.
7907 * s390-tdep.c (s390_gdbarch_init): Update.
7908 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7909 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7910 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7911 * mips-tdep.c (mips_gdbarch_init): Update.
7912 * mcore-tdep.c (mcore_gdbarch_init): Update.
7913 * m68k-tdep.c (m68k_gdbarch_init): Update.
7914 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7915 * ia64-tdep.c (ia64_gdbarch_init): Update.
7916 (ia64_saved_pc_after_call): Update declaration.
7917 * i386ly-tdep.c (i386lynx_init_abi): Update.
7918 * i386-tdep.c (i386_gdbarch_init): Update.
7919 * hppa-tdep.c (hppa_gdbarch_init): Update.
7920 * h8300-tdep.c (h8300_gdbarch_init): Update.
7921 * frv-tdep.c (frv_gdbarch_init): Update.
7922 * cris-tdep.c (cris_gdbarch_init): Update.
7923 * avr-tdep.c (avr_gdbarch_init): Update.
7924 * arm-tdep.c (arm_gdbarch_init): Update.
7925 * alpha-tdep.c (alpha_gdbarch_init): Update.
7926 * ns32knbsd-nat.c (frame_num_args): Update.
7927 * ns32k-tdep.c (umax_frame_num_args): Update.
7928 * mips-tdep.c (mips_init_frame_pc_first): Update.
7929 * infrun.c (step_over_function): Update.
7930 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7931 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7932 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7933 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7934 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7935 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7936 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7937 * arch-utils.c (init_frame_pc_default): Update.
7938 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7939 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7940 declaration.
7941
7942 2003-04-11 Andrew Cagney <cagney@redhat.com>
7943
7944 * i387-tdep.c: Update copyright.
7945 (i387_to_double): Delete function.
7946 (double_to_i387): Delete function.
7947
7948 2003-04-10 Andrew Cagney <cagney@redhat.com>
7949
7950 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7951 frame's function's address. Simplify.
7952 (d10v_frame_unwind_cache): Check that the frame's function is
7953 non-zero.
7954
7955 2003-04-10 Jim Blandy <jimb@redhat.com>
7956
7957 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7958 call to set_gdbarch_deprecated_push_arguments.
7959
7960 2003-04-10 Andrew Cagney <cagney@redhat.com>
7961
7962 * frame.c (fprint_frame_id): New function.
7963 (fprint_frame_type, fprint_frame): New function.
7964 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7965 (create_sentinel_frame, get_frame_id): Ditto.
7966 (frame_id_p, frame_id_eq): Ditto.
7967 (frame_id_inner, create_new_frame): Ditto.
7968 (legacy_get_prev_frame, get_prev_frame): Ditto.
7969 (deprecated_update_frame_pc_hack): Ditto.
7970 (frame_register_unwind): Ditto.
7971 (deprecated_update_frame_base_hack): Ditto.
7972
7973 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7974
7975 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7976 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7977 frame_chain function.
7978 * Makefile.in: Add dependencies due to above change.
7979
7980 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7981
7982 * blockframe.c (legacy_frame_chain_valid): Move call to
7983 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7984 inside_entry_file.
7985
7986 2003-04-09 Andrew Cagney <cagney@redhat.com>
7987
7988 * frame.h (struct frame_id): Replace "pc" and "base" with
7989 "stack_addr" and "code_addr". Update comments.
7990 (frame_id_build): Update parameter names and comment.
7991 (struct frame_info): Replace "id_p" and "id" with "this_id".
7992 * dummy-frame.c (dummy_frame_this_id): Update.
7993 * breakpoint.c (print_one_breakpoint): Update.
7994 * frame.c (get_frame_id): Update.
7995 (get_frame_base, frame_id_build): Update.
7996 (create_sentinel_frame, legacy_get_prev_frame): Update.
7997 (deprecated_update_frame_base_hack): Update.
7998 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7999 (frame_id_inner): Ditto.
8000
8001 2003-04-09 Andrew Cagney <cagney@redhat.com>
8002
8003 * defs.h (gdb_print_host_address): Make "addr" parameter a
8004 pointer constant.
8005 * utils.c (gdb_print_host_address): Update.
8006
8007 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8008
8009 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8010 register number for R0 is 0.
8011
8012 2003-04-09 J. Brobecker <brobecker@gnat.com>
8013
8014 * frame.h (struct gdbarch): Add opaque structure definition
8015 to avoid a compilation warning on LynxOS 4.0.
8016
8017 2003-04-09 Andrew Cagney <cagney@redhat.com>
8018
8019 * frame.h (struct frame_info): Delete field "pc". Replace
8020 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8021 structure.
8022 * frame.c (frame_pc_unwind): Update.
8023 (create_sentinel_frame): Do not set "pc".
8024 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8025 (get_frame_pc): Call frame_pc_unwind.
8026 (deprecated_update_frame_pc_hack): Update.
8027 (create_new_frame): Use "pc" not "->pc".
8028
8029 2003-04-09 Andrew Cagney <cagney@redhat.com>
8030
8031 * frame.c (get_frame_id): Eliminate code updating "frame".
8032 (legacy_get_prev_frame): Ditto.
8033 (get_frame_base): Return id.base directly.
8034 (deprecated_update_frame_base_hack): Update "id.base".
8035 * frame.h (struct frame_info): Delete field "frame".
8036
8037 2003-04-09 Andrew Cagney <cagney@redhat.com>
8038
8039 * NEWS: Mention that the "Sequent family" is obsolete.
8040 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8041 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8042 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8043 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8044 * config/i386/tm-ptx4.h: Obsolete file.
8045 * config/i386/tm-ptx.h: Obsolete file.
8046 * symm-tdep.c: Obsolete file.
8047 * config/i386/symmetry.mt: Obsolete file.
8048 * config/i386/tm-symmetry.h: Obsolete file.
8049 * symm-nat.c: Obsolete file.
8050 * config/i386/nm-symmetry.h: Obsolete file.
8051 * config/i386/xm-symmetry.h: Obsolete file.
8052 * config/i386/symmetry.mh: Obsolete file.
8053 * config/i386/nm-ptx4.h: Obsolete file.
8054 * config/i386/ptx4.mh: Obsolete file.
8055 * config/i386/ptx.mt: Obsolete file.
8056 * config/i386/ptx.mh: Obsolete file.
8057 * config/i386/xm-ptx4.h: Obsolete file.
8058 * config/i386/xm-ptx.h: Obsolete file.
8059
8060 2003-04-09 Andrew Cagney <cagney@redhat.com>
8061
8062 Obsolete mips*-*-mach3*.
8063 * NEWS: Mention that mips*-*-mach3* is obsolete.
8064 * m3-nat.c: Obsolete file.
8065 * config/nm-m3.h: Obsolete file.
8066 * config/mips/tm-mipsm3.h: Obsolete file.
8067 * config/mips/mipsm3.mt: Obsolete file.
8068 * config/mips/mipsm3.mh: Obsolete file.
8069 * config/mips/xm-mipsm3.h: Obsolete file.
8070 * mipsm3-nat.c: Obsolete file.
8071 * configure.host: Obsolete mips-dec-mach3*.
8072 * configure.tgt: Obsolete mips*-*-mach3*.
8073
8074 2003-04-09 Andrew Cagney <cagney@redhat.com>
8075
8076 * doublest.h: Update copyright.
8077 (deprecated_store_floating, deprecated_extract_floating): Rename
8078 store_floating and extract_floating. Update comments.
8079 * doublest.c: Update copyright.
8080 (extract_floating_by_length): Replace extract_floating.
8081 (store_floating_by_length): Replace store_floating.
8082 (deprecated_extract_floating): New function.
8083 (deprecated_store_floating): New function.
8084 (extract_typed_floating): Call extract_floating_by_length.
8085 (store_typed_floating): Call store_floating_by_length.
8086 * x86-64-tdep.c (x86_64_store_return_value): Update.
8087 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8088 (sh64_extract_return_value): Update.
8089 (sh_sh4_register_convert_to_virtual): Update.
8090 (sh_sh64_register_convert_to_virtual): Update.
8091 (sh_sh4_register_convert_to_raw): Update.
8092 (sh_sh64_register_convert_to_raw): Update.
8093 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8094 (rs6000_register_convert_to_raw): Update.
8095 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8096 (ia64_register_convert_to_raw): Update.
8097 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8098 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8099 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8100 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8101 (alpha_register_convert_to_raw): Update.
8102
8103 2003-04-08 Andrew Cagney <cagney@redhat.com>
8104
8105 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8106 * gdbarch.h, gdbarch.c: Re-generate.
8107 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8108 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8109 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8110 conditionally, use frame_pc_unwind as an alternative. Add
8111 comments.
8112 * arch-utils.c (init_frame_pc_default): Only call
8113 SAVED_PC_AFTER_CALL when available.
8114
8115 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8116
8117 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8118 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8119 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8120 (start_remote): Ditto.
8121 (handle_inferior_event): Ditto.
8122 (save_inferior_status): Ditto.
8123 (restore_inferior_status): Ditto.
8124 * infcmd.c (attach_command): Ditto.
8125 * fork-child.c (startup_inferior): Ditto.
8126 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8127 * alpha-tdep.c (heuristic_proc_start): Ditto.
8128 * mips-tdep.c (heuristic_proc_start): Ditto.
8129 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8130 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8131 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8132 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8133 * remote-vx.c (vx_create_inferior): Ditto.
8134
8135 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8136
8137 * infrun.c (stop_soon_quietly): Make it an enum, to better
8138 override the default behavior of handle_inferior_event.
8139 (clear_proceed_status): Update uses of stop_soon_quietly to
8140 reflect that it is now an enum.
8141 (start_remote): Ditto.
8142 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8143 is set to handle the new GNU/Linux kernel behavior for
8144 attach/sigstop. Update uses of stop_soon_quietly.
8145 * inferior.h (enum stop_kind): New enum.
8146 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8147 Reset normal handle_inferior_event behavior, afterwards.
8148 * fork-child.c (startup_inferior): Update.
8149 * alpha-tdep.c (heuristic_proc_start): Update.
8150 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8151 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8152 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8153 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8154 * remote-vx.c (vx_create_inferior): Update.
8155 * mips-tdep.c (heuristic_proc_start): Update.
8156
8157 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8158
8159 * disasm.c (dump_insns): Move variables inside loop, or they will
8160 be freed more than once, causing wild memory corruptions.
8161 (gdb_disassembly): Look for the substring "-thread",
8162 instead of "-threads" in the target name, to make sure to find
8163 the 'multi-thread' target. Also, make sure we do the right thing
8164 with the "core" target.
8165
8166 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8167
8168 * mips-tdep.c (mips_print_fp_register): New function, created from
8169 do_fp_register_row(). Registers are now (also) printed as hex.
8170 Only one register is printed per row.
8171 (mips_print_register, do_fp_register_row): Print floating point
8172 registers with mips_print_fp_register().
8173
8174 2003-04-06 Andrew Cagney <cagney@redhat.com>
8175
8176 * valprint.h (inspect_it): Add extern declaration.
8177 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8178 (selectors_info, classes_info): Ditto.
8179 (find_objc_msgcall): Fix indentation.
8180 (objc_printstr): Delete extern declarations.
8181
8182 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8183
8184 2003-04-06 Andrew Cagney <cagney@redhat.com>
8185
8186 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8187 Update comment.
8188 * frame.c (legacy_saved_regs_this_id): Update.
8189 (legacy_get_prev_frame): Update.
8190 * xstormy16-tdep.c: Update comment.
8191 * sparc-tdep.c (sparc_frame_chain): Update comment.
8192 * blockframe.c (legacy_frame_chain_valid): Update.
8193
8194 2003-04-06 Andrew Cagney <cagney@redhat.com>
8195
8196 * valprint.c (val_print_type_code_int): Delete #ifdef
8197 PRINT_TYPELESS_INTEGER code.
8198
8199 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8200 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8201 multi-arch definition.
8202 * gdbarch.h: Re-generate.
8203
8204 2003-04-05 Andrew Cagney <cagney@redhat.com>
8205
8206 Eliminate FRAME_FIND_SAVED_REGS.
8207 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8208 Change FSR parameter to a pointer.
8209 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8210 Assume FSR parameter is a pointer.
8211 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8212 Make fsr a pointer.
8213 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8214 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8215 saved_regs a pointer.
8216 (hppa_frame_saved_pc): Ditto.
8217 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8218 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8219 pointer.
8220 (restore_pc_queue): Make fsr a pointer.
8221 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8222 (hppa_frame_chain): Make saved_regs a pointer, call
8223 hppa_frame_init_saved_regs.
8224 * sparc-tdep.c: Include "gdb_assert.h".
8225 (sparc_frame_find_saved_regs): Replace internal_error with
8226 gdb_assert.
8227 * remote-vxsparc.c (vx_read_register): Delete reference to
8228 FRAME_FIND_SAVED_REGS.
8229 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8230 * gdbarch.h: Regenerate.
8231 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8232 (deprecated_get_frame_saved_regs): Delete declaration.
8233 (struct frame_saved_regs): Delete definition.
8234 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8235 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8236 (hppa_frame_find_saved_regs): Delete declaration.
8237 (FRAME_FIND_SAVED_REGS): Delete macro.
8238 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8239 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8240 FRAME_FIND_SAVED_REGS in comment.
8241
8242 2003-04-05 Andrew Cagney <cagney@redhat.com>
8243
8244 * frame.c (frame_func_unwind, get_frame_func): New functions.
8245 * frame.h (get_frame_func, frame_func_unwind): Declare.
8246 (struct frame_info): Add field "prev_func" for caching the
8247 previous frame's function address.
8248 * arm-tdep.c (arm_frameless_function_invocation): Combine
8249 get_pc_function_start and get_frame_pc into get_frame_func.
8250 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8251 (sh64_nofp_frame_init_saved_regs): Ditto.
8252 * s390-tdep.c (s390_function_start): Ditto.
8253 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8254 (rs6000_frameless_function_invocation): Ditto.
8255 (rs6000_frame_saved_pc): Ditto.
8256 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8257 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8258 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8259 (i386_frame_init_saved_regs): Ditto.
8260 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8261 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8262 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8263 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8264 * blockframe.c (frameless_look_for_prologue): Ditto.
8265
8266 2003-04-05 Andrew Cagney <cagney@redhat.com>
8267
8268 * frame.c (legacy_get_prev_frame): Link prev to next at the
8269 function start. Update comments.
8270
8271 2003-04-05 Andrew Cagney <cagney@redhat.com>
8272
8273 * frame.c (get_frame_id): Update comment.
8274 (legacy_get_prev_frame): Update comment.
8275 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8276 * gdbarch.h: Regenerate.
8277 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8278 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8279
8280 2003-04-05 Andrew Cagney <cagney@redhat.com>
8281
8282 * stack.c (print_frame_info): Use get_frame_pc.
8283
8284 2003-04-04 Andrew Cagney <cagney@redhat.com>
8285
8286 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8287 the frame's type from the unwinder.
8288 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8289 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8290 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8291 (get_frame_base_address): Use get_frame_type.
8292 (get_frame_locals_address, get_frame_args_address): Ditto.
8293 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8294 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8295 (struct frame_info): Add comment explaining why the frame contains
8296 a "type" field.
8297 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8298 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8299 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8300 NORMAL_FRAME.
8301 * frame-unwind.h: Include "frame.h".
8302 (struct frame_unwind): Add "type" field.
8303 * Makefile.in (frame_unwind_h): Add $(frame_h).
8304
8305 2003-04-04 Andrew Cagney <cagney@redhat.com>
8306
8307 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8308 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8309 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8310 get_frame_base.
8311 (d10v_unwind_dummy_id): Use frame_id_build.
8312 * frame.c (find_frame_sal): Use get_frame_pc.
8313 (create_new_frame): Use deprecated_update_frame_pc_hack and
8314 deprecated_update_frame_base_hack.
8315 (create_sentinel_frame): Add comment about ->pc going away.
8316 (get_prev_frame): Add comment about ->pc going away.
8317 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8318 frame_id_build, deprecated_update_frame_pc_hack and
8319 deprecated_update_frame_base_hack.
8320 (select_frame): Use get_frame_pc.
8321 (legacy_saved_regs_this_id): Use frame_id_build.
8322
8323 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8324
8325 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8326 signed integer case.
8327 (classify_argument): Handle enumerations and references.
8328
8329 2003-04-04 Andrew Cagney <cagney@redhat.com>
8330
8331 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8332 ID to NULL.
8333
8334 2003-04-01 Adam Fedor <fedor@gnu.org>
8335
8336 * gdb/objc-lang.c (selectors_info): Replace calls to
8337 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8338 SYMBOL_NATURAL_NAME.
8339 (classes_info, find_methods): Likewise.
8340
8341 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8342
8343 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8344 ``mach'' to the value determined by bfd_default_set_arch_mach().
8345
8346 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8347
8348 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8349 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8350 (mi-cmd-file.o): Update dependencies.
8351
8352 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8353
8354 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8355 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8356
8357 2003-04-01 Adam Fedor <fedor@gnu.org>
8358
8359 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8360 * language.h (struct language_defn): Add la_demangle.
8361 (language_demangle): Declare.
8362 * language.c (language_demangle): New function.
8363 (unk_lang_demangle): Likewise.
8364 (unknown_language_defn, auto_language_defn, local_language_defn):
8365 Add ukn_lang_demangle.
8366 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8367 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8368 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8369 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8370 * jv-lang.c (java_demangle): New function
8371 (java_language_defn): Use it for la_demangle element.
8372 * objc-lang.c (objc_demangle): Add options argument
8373 (objc_language_defn): Use objc_demangle for la_demangle element.
8374 * maint.c (maintenance_demangle): Replace switch with
8375 call to language_demangle.
8376 * utils.c (fprintf_symbol_filtered): Likewise.
8377
8378 2003-04-01 Andrew Cagney <cagney@redhat.com>
8379
8380 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8381 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8382 PRINT_TYPELESS_INTEGER.
8383 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8384 PUSH_RETURN_ADDRESS.
8385
8386 2003-04-01 Andrew Cagney <cagney@redhat.com>
8387
8388 * Makefile.in (d10v-tdep.o): Update dependencies.
8389 * d10v-tdep.c: Include "frame-base.h".
8390 (d10v_frame_unwind): Make constant.
8391 (d10v_frame_base_address): New function.
8392 (d10v_frame_base): New variable.
8393 (d10v_gdbarch_init): Set frame_base default.
8394 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8395 comment for base.
8396 (d10v_frame_unwind_cache): Set and use "prev_sp".
8397 (d10v_frame_this_id): Use the previous frame's inner most stack
8398 address and this frame's func address for the frame ID. Use
8399 frame_id_build. Don't analyze beyond the current instruction.
8400
8401 2003-04-01 Andrew Cagney <cagney@redhat.com>
8402
8403 * frame.h (get_frame_locals_address, get_frame_args_address):
8404 Refer to the base address, instead of the address of the first
8405 local or parameter.
8406
8407 2003-04-01 Andrew Cagney <cagney@redhat.com>
8408
8409 Add frame debug info addresses:
8410 * frame-base.c: New file.
8411 * frame-base.h: New file.
8412 * frame.h (struct frame_base): Add opaque declaration.
8413 (get_frame_base): Update comment.
8414 (get_frame_base_address): Declare.
8415 (get_frame_locals_address): Declare.
8416 (get_frame_args_address): Declare.
8417 (struct frame_info): Add "base" and "base_cache". Update
8418 comments on the unwinder.
8419 * frame.c: Include "frame-base.h".
8420 (get_frame_locals_address): New function.
8421 (get_frame_base_address): New function.
8422 (get_frame_args_address): New function.
8423 * findvar.c (read_var_value): Use get_frame_locals_address and
8424 get_frame_args_address.
8425 * stack.c (frame_info): Use get_frame_locals_address and
8426 get_frame_args_address.
8427 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8428 moved to "frame-base.c".
8429 * printcmd.c (print_frame_nameless_args): Ditto.
8430 * symtab.h (address_class): Update comments.
8431 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8432 get_frame_base_address.
8433 * dwarf2expr.c (execute_stack_op): Ditto.
8434 * Makefile.in (frame_base_h): Define.
8435 (frame.o): Update dependencies.
8436 (frame-base.o): Add dependencies.
8437 (SFILES): Add frame-base.c.
8438 (COMMON_OBS): Add frame-base.o.
8439
8440 2003-04-01 Andrew Cagney <cagney@redhat.com>
8441
8442 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8443 CALL_DUMMY_LENGTH): Ditto.
8444 * gdbarch.c: Re-generate.
8445 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8446 (CALL_DUMMY_LENGTH): Delete macro.
8447 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8448 * arm-tdep.c (arm_gdbarch_init): Ditto.
8449 * avr-tdep.c (avr_gdbarch_init): Ditto.
8450 * cris-tdep.c (cris_gdbarch_init): Ditto.
8451 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8452 * frv-tdep.c (frv_gdbarch_init): Ditto.
8453 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8454 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8455 * i386-tdep.c (i386_gdbarch_init): Ditto.
8456 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8457 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8458 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8459 * mips-tdep.c (mips_gdbarch_init): Ditto.
8460 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8461 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8462 * s390-tdep.c (s390_gdbarch_init): Ditto.
8463 * sh-tdep.c (sh_gdbarch_init): Ditto.
8464 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8465 * v850-tdep.c (v850_gdbarch_init): Ditto.
8466 * vax-tdep.c (vax_gdbarch_init): Ditto.
8467 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8468
8469 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8470
8471 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8472
8473 2003-04-01 Andrew Cagney <cagney@redhat.com>
8474
8475 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8476 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8477 * gdbarch.h, gdbarch.c: Re-generate.
8478 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8479 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8480 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8481 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8482 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8483 * infcmd.c (run_stack_dummy): Simplify assuming
8484 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8485 * infrun.c (handle_inferior_event): Ditto.
8486 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8487 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8488 * arm-tdep.c (arm_gdbarch_init): Ditto.
8489 * avr-tdep.c (avr_gdbarch_init): Ditto.
8490 * cris-tdep.c (cris_gdbarch_init): Ditto.
8491 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8492 * frv-tdep.c (frv_gdbarch_init): Ditto.
8493 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8494 * i386-tdep.c (i386_gdbarch_init): Ditto.
8495 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8496 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8497 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8498 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8499 * mips-tdep.c (mips_gdbarch_init): Ditto.
8500 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8501 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8502 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8503 * s390-tdep.c (s390_gdbarch_init): Ditto.
8504 * sh-tdep.c (sh_gdbarch_init): Ditto.
8505 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8506 * v850-tdep.c (v850_gdbarch_init): Ditto.
8507 * vax-tdep.c (vax_gdbarch_init): Ditto.
8508 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8509
8510 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8511
8512 * symfile.c (symfile_relocate_debug_section): Update call to
8513 bfd_simple_get_relocated_section_contents.
8514
8515 2003-03-31 Andrew Cagney <cagney@redhat.com>
8516
8517 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8518 * gdbarch.h, gdbarch.c: Regenerate.
8519 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8520 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8521 available.
8522 * frame.h (generic_fix_call_dummy): Delete declaration.
8523 * dummy-frame.h: Update comment.
8524 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8525 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8526 fix_call_dummy.
8527 * sh-tdep.c (sh_gdbarch_init): Ditto.
8528 * s390-tdep.c (s390_gdbarch_init): Ditto.
8529 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8530 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8531 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8532 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8533 * i386-tdep.c (i386_gdbarch_init): Ditto.
8534 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8535 * frv-tdep.c (frv_gdbarch_init): Ditto.
8536 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8537 * cris-tdep.c (cris_gdbarch_init): Ditto.
8538 * avr-tdep.c (avr_gdbarch_init): Ditto.
8539 * arm-tdep.c (arm_gdbarch_init): Ditto.
8540
8541 2003-03-31 J. Brobecker <brobecker@gnat.com>
8542
8543 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8544 (INIT_FRAME_AP): Likewise.
8545 (EXTRA_FRAME_INFO): Likewise.
8546
8547 2003-03-31 Andrew Cagney <cagney@redhat.com>
8548
8549 * gdbarch.sh: Include "symfile.h".
8550 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8551 * gdbarch.h, gdbarch.c: Re-generate.
8552 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8553 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8554 call_dummy_address, the default is at entry_point_address.
8555 * v850-tdep.c (v850_gdbarch_init): Ditto.
8556 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8557 * sh-tdep.c (sh_gdbarch_init): Ditto.
8558 * s390-tdep.c (s390_gdbarch_init): Ditto.
8559 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8560 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8561 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8562 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8563 * i386-tdep.c (i386_gdbarch_init): Ditto.
8564 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8565 * frv-tdep.c (frv_gdbarch_init): Ditto.
8566 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8567 * cris-tdep.c (cris_gdbarch_init): Ditto.
8568 * arm-tdep.c (arm_gdbarch_init): Ditto.
8569
8570 2003-03-31 Andrew Cagney <cagney@redhat.com>
8571
8572 * gdbarch.sh (CALL_DUMMY_P): Delete.
8573 * gdbarch.h, gdbarch.c: Re-generate.
8574 * inferior.h (CALL_DUMMY_P): Delete macro.
8575 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8576 * vax-tdep.c (vax_gdbarch_init): Update.
8577 * v850-tdep.c (v850_gdbarch_init): Update.
8578 * sparc-tdep.c (sparc_gdbarch_init): Update.
8579 * sh-tdep.c (sh_gdbarch_init): Update.
8580 * s390-tdep.c (s390_gdbarch_init): Update.
8581 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8582 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8583 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8584 * mips-tdep.c (mips_gdbarch_init): Update.
8585 * mcore-tdep.c (mcore_gdbarch_init): Update.
8586 * m68k-tdep.c (m68k_gdbarch_init): Update.
8587 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8588 * ia64-tdep.c (ia64_gdbarch_init): Update.
8589 * i386-tdep.c (i386_gdbarch_init): Update.
8590 * h8300-tdep.c (h8300_gdbarch_init): Update.
8591 * frv-tdep.c (frv_gdbarch_init): Update.
8592 * d10v-tdep.c (d10v_gdbarch_init): Update.
8593 * cris-tdep.c (cris_gdbarch_init): Update.
8594 * breakpoint.c (deprecated_frame_in_dummy): Update.
8595 * avr-tdep.c (avr_gdbarch_init): Update.
8596 * alpha-tdep.c (alpha_gdbarch_init): Update.
8597 * arm-tdep.c (arm_gdbarch_init): Update.
8598 * dummy-frame.c (dummy_frame_this_id): Update comments.
8599 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8600 * frame.c (legacy_get_prev_frame): Ditto.
8601 * valops.c (call_function_by_hand): Delete function.
8602 (hand_function_call): Rename to call_function_by_hand
8603
8604 2003-03-30 Andrew Cagney <cagney@redhat.com>
8605
8606 2002-11-10 Klee Dienes <kdienes@apple.com>
8607 * value.h (struct value): Update comment.
8608
8609 2003-03-30 Andrew Cagney <cagney@redhat.com>
8610
8611 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8612 D10V_FP_REGNUM.
8613 (d10v_gdbarch_init): Do not set fp_regnum.
8614
8615 * frame.c (get_frame_base): Force ID initialization.
8616 (get_prev_frame): Move computation of the frame ID from here ...
8617 (get_frame_id): ... to here.
8618 (legacy_get_prev_frame): Mark the frame ID as valid.
8619 * frame.h (struct frame_info): Add field "id_p".
8620
8621 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8622
8623 * i386-tdep.c (i386_store_struct_return): Removed.
8624 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8625
8626 2003-03-30 Andrew Cagney <cagney@redhat.com>
8627
8628 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8629 * gdbarch.h, gdbarch.c: Regenerate.
8630 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8631 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8632 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8633 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8634 * i386-tdep.c (i386_gdbarch_init): Ditto.
8635 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8636 * cris-tdep.c (cris_gdbarch_init): Ditto.
8637 * vax-tdep.c (vax_gdbarch_init): Ditto.
8638 * s390-tdep.c (s390_gdbarch_init): Ditto.
8639 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8640 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8641 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8642 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8643 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8644 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8645 * sparc-tdep.c (sparc_gdbarch_init): Update.
8646 * sh-tdep.c (sh_gdbarch_init): Update.
8647 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8648 * mips-tdep.c (mips_gdbarch_init): Update.
8649 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8650 * ia64-tdep.c (ia64_gdbarch_init): Update.
8651 * frv-tdep.c (frv_gdbarch_init): Update.
8652 * avr-tdep.c (avr_gdbarch_init): Update.
8653 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8654 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8655 instead of when push_dummy_call is not available.
8656
8657 2003-03-30 Andrew Cagney <cagney@redhat.com>
8658
8659 * infttrace.c: Include "gdbthread.h".
8660 (parent_attach_all): Fix function signature.
8661 (call_ptrace): Update call.
8662 * Makefile.in (infttrace.o): Update dependencies.
8663
8664 2003-03-30 Andrew Cagney <cagney@redhat.com>
8665
8666 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8667 PUSH_RETURN_ADDRESS.
8668 * gdbarch.h, gdbarch.c: Regenerate.
8669 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8670 * x86-64-tdep.c (x86_64_init_abi): Update.
8671 * v850-tdep.c (v850_gdbarch_init): Update.
8672 * sparc-tdep.c (sparc_gdbarch_init): Update.
8673 * sh-tdep.c (sh_gdbarch_init): Update.
8674 * s390-tdep.c (s390_gdbarch_init): Update.
8675 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8676 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8677 * mips-tdep.c (mips_gdbarch_init): Update.
8678 * mcore-tdep.c (mcore_gdbarch_init): Update.
8679 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8680 * ia64-tdep.c (ia64_gdbarch_init): Update.
8681 * i386-tdep.c (i386_gdbarch_init): Update.
8682 * h8300-tdep.c (h8300_gdbarch_init): Update.
8683 * frv-tdep.c (frv_gdbarch_init): Update.
8684 * cris-tdep.c (cris_gdbarch_init): Update.
8685 * avr-tdep.c (avr_gdbarch_init): Update.
8686 * arm-tdep.c (arm_gdbarch_init): Update.
8687 * valops.c (hand_function_call): Update.
8688
8689 2003-03-29 Andrew Cagney <cagney@redhat.com>
8690
8691 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8692 sizeof_call_dummy_words.
8693 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8694 define.
8695 * gdbarch.h: Regenerate.
8696
8697 2003-03-29 Andrew Cagney <cagney@redhat.com>
8698
8699 * infttrace.h: New file.
8700 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8701 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8702 (hpread_read_doc_function_type): Detect an initialized type1.
8703 (hpread_quick_traverse): Initialize mod_name_string.
8704 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8705 (som_solib_get_solib_by_pc): Declare.
8706 (so_lib_thread_start_addr): Declare.
8707 (no_shared_libraries): Declare.
8708 * somread.c (init_import_symbols): Make static. Add forward
8709 declaration.
8710 * config/pa/nm-hppah.h: Include "infttrace.h" for
8711 parent_attach_all.
8712 (hppa_insert_hw_watchpoint): Declare.
8713 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8714 * hppah-nat.c: Include "gdb_string.h".
8715 (parent_attach_all): Delete extern declaration, moved to
8716 "infttrace.h".
8717 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8718 int.
8719 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8720 * Makefile.in (infttrace_h): Define.
8721 (hpread.o): Update dependencies.
8722 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8723 * hppa-hpux-tdep.c: Include "gdb_string.h".
8724 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8725 * infrun.c (handle_inferior_event): Always initialize
8726 stepped_after_stopped_by_watchpoint. Add default and remove
8727 fallthrough in switch statement.
8728 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8729 parameter to int.
8730 (hppa_remove_hw_watchpoint): Ditto.
8731
8732 2003-03-29 Andrew Cagney <cagney@redhat.com>
8733
8734 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8735 offset.
8736
8737 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8738
8739 * arm-tdep.c (arm_push_arguments): Delete.
8740 (struct stack_item): New type.
8741 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8742 (arm_store_struct_return): Delte.
8743 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8744 arm_push_arguments or arm_store_struct_return.
8745
8746 2003-03-28 Andrew Cagney <cagney@redhat.com>
8747
8748 * Makefile.in (d10v-tdep.o): Update dependencies.
8749 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8750 * d10v-tdep.c: Include "remote.h".
8751 (target_resume_hook): Delete extern declaration.
8752 (target_wait_loop_hook): Ditto.
8753 (tdisassemble_command): Eliminate assignment in "if" conditional.
8754 (d10v_ts2_register_sim_regno): Eliminate call to
8755 legacy_register_sim_regno.
8756 (d10v_ts3_register_sim_regno): Ditto.
8757
8758 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8759
8760 * thread.c: Reindented.
8761 * lin-lwp.c: Ditto.
8762 * linux-proc.c: Ditto.
8763
8764 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8765
8766 * MAINTAINERS (write after approval): Add myself.
8767
8768 2003-03-27 Theodore A. Roth <troth@openavr.org>
8769
8770 * objc-exp.y: Add missing semi-colons.
8771
8772 2003-03-27 Andrew Cagney <cagney@redhat.com>
8773
8774 * regcache.c (write_sp): Delete function and references.
8775 * inferior.h (write_sp): Delete declaration.
8776 * valops.c (hand_function_call): Replace write_sp with
8777 TARGET_WRITE_SP.
8778 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8779 (sparc_pop_frame): Ditto.
8780
8781 2003-03-27 Andrew Cagney <cagney@redhat.com>
8782
8783 * NEWS: Mention removal of support for hppa*-*-bsd* and
8784 hppa*-*-osf* natives, and hppa*-*-pro* target.
8785 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8786 * config/pa/xm-pa.h: Obsolete file.
8787 * config/pa/xm-hppab.h: Obsolete file.
8788 * config/pa/nm-hppab.h: Obsolete file.
8789 * config/pa/tm-hppab.h: Obsolete file.
8790 * config/pa/tm-hppao.h: Obsolete file.
8791 * config/pa/nm-hppao.h: Obsolete file.
8792 * config/pa/tm-pro.h: Obsolete file.
8793 * config/pa/hppaosf.mt: Obsolete file.
8794 * config/pa/hppaosf.mh: Obsolete file.
8795 * config/pa/hppapro.mt: Obsolete file.
8796 * config/pa/hppabsd.mt: Obsolete file.
8797 * config/pa/hppabsd.mh: Obsolete file.
8798 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8799 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8800 hppa*-*-osf*.
8801
8802 2003-03-27 Andrew Cagney <cagney@redhat.com>
8803
8804 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8805 push_arguments. Don't set push_return_address or write_sp.
8806 (d10v_push_dummy_call): Replace d10v_push_arguments.
8807 (d10v_push_return_address, d10v_write_sp): Delete function,
8808 handled by push_dummy_call.
8809
8810 2003-03-26 Andrew Cagney <cagney@redhat.com>
8811
8812 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8813 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8814 regcache and dummy_addr parameters.
8815 * gdbarch.h, gdbarch.c: Re-generate.
8816 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8817 available; assume it will handle stack alignment and return
8818 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8819 legacy_push_arguments.
8820 (legacy_push_arguments): Rename default_push_arguments.
8821 * value.h (legacy_push_arguments): Rename default_push_arguments.
8822 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8823 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8824 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8825 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8826 * config/i386/tm-symmetry.h: Update.
8827 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8828 * x86-64-tdep.c (x86_64_init_abi): Update.
8829 * v850-tdep.c (v850_gdbarch_init): Update.
8830 * sparc-tdep.c (sparc_gdbarch_init): Update.
8831 * sh-tdep.c (sh_gdbarch_init): Update.
8832 * s390-tdep.c (s390_gdbarch_init): Update.
8833 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8834 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8835 * mips-tdep.c (mips_gdbarch_init): Update.
8836 * mcore-tdep.c (mcore_gdbarch_init): Update.
8837 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8838 * ia64-tdep.c (ia64_gdbarch_init): Update.
8839 * i386-tdep.c (i386_gdbarch_init): Update.
8840 * hppa-tdep.c (hppa_gdbarch_init): Update.
8841 * h8300-tdep.c (h8300_gdbarch_init): Update.
8842 * frv-tdep.c (frv_gdbarch_init): Update.
8843 * d10v-tdep.c (d10v_gdbarch_init): Update.
8844 * cris-tdep.c (cris_gdbarch_init): Update.
8845 * avr-tdep.c (avr_gdbarch_init): Update.
8846 * arm-tdep.c (arm_gdbarch_init): Update.
8847 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8848 * alpha-tdep.c (alpha_gdbarch_init): Update.
8849
8850 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8851
8852 * signals/signals.c (do_target_signal_to_host): Correct realtime
8853 signal range test.
8854
8855 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8856
8857 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8858 (struct sal_chain, map_catch_names): Remove.
8859 (catch_exception_command_1): Don't call
8860 handle_gnu_4_16_catch_command.
8861
8862 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8863
8864 From Mark Dettinger <dettinge@de.ibm.com>:
8865 * dwarf2cfi.c (read_2u): Increment pointer by two.
8866
8867 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8868
8869 * signals/signals.c: Fix typos in last change.
8870
8871 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8872
8873 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8874 not already defined. Use __SIGRTMIN if available.
8875 (target_signal_from_host): Remove SIGRTMIN block.
8876 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8877 the signal is within the realtime range.
8878
8879 2003-03-25 Adam Fedor <fedor@gnu.org>
8880
8881 * Makefile.in (infrun.o): Add $(language_h)
8882 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8883 for language specific trampolines.
8884 * language.h (struct language_defn): Add skip_trampoline.
8885 (skip_language_trampoline): Declare.
8886 * language.c (unk_lang_trampoline, skip_language_trampoline):
8887 New functions.
8888 (unknown_language_defn, auto_language_defn, local_language_defn):
8889 Add ukn_lang_trampoline.
8890 * ada-lang.c (ada_language_defn): Add NULL for language
8891 specific skip_trampoline.
8892 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8893 scm-lang.c: Likewise.
8894 * objc-lang.c (objc_skip_trampoline): New function.
8895 (objc_language_defn): Add objc_skip_trampoline.
8896
8897 2003-03-25 Andrew Cagney <cagney@redhat.com>
8898
8899 * frame.c (get_prev_frame): Delay validating a frame's ID -
8900 non-NULL, didn't go backwards - until an attempt to unwind it to
8901 the previous frame.
8902
8903 2003-03-25 Andrew Cagney <cagney@redhat.com>
8904
8905 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8906 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8907 * gdbarch.h, gdbarch.c: Re-generate.
8908 * config/sparc/tm-sparc.h
8909 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8910 * sparc-tdep.c (sparc_gdbarch_init): Set
8911 deprecated_extra_stack_alignment_needed.
8912 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8913 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8914 extra_stack_alignment_needed.
8915 * v850-tdep.c (v850_gdbarch_init): Ditto.
8916 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8917 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8918 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8919 * cris-tdep.c (cris_gdbarch_init): Ditto.
8920 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8921 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8922
8923 2003-03-25 Andrew Cagney <cagney@redhat.com>
8924
8925 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8926 STORE_STRUCT_RETURN.
8927 * gdbarch.h, gdbarch.c: Regenerate.
8928 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8929 (d10v_push_arguments): Set the struct return register.
8930 (d10v_gdbarch_init): Update.
8931 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8932 * x86-64-tdep.c (x86_64_init_abi): Update.
8933 * vax-tdep.c (vax_gdbarch_init): Update.
8934 * v850-tdep.c (v850_gdbarch_init): Update.
8935 * sparc-tdep.c (sparc_gdbarch_init): Update.
8936 * sh-tdep.c (sh_gdbarch_init): Update.
8937 * s390-tdep.c (s390_gdbarch_init): Update.
8938 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8939 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8940 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8941 * mips-tdep.c (mips_gdbarch_init): Update.
8942 * mcore-tdep.c (mcore_gdbarch_init): Update.
8943 * m68k-tdep.c (m68k_gdbarch_init): Update.
8944 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8945 * ia64-tdep.c (ia64_gdbarch_init): Update.
8946 * i386-tdep.c (i386_gdbarch_init): Update.
8947 * hppa-tdep.c (hppa_gdbarch_init): Update.
8948 * h8300-tdep.c (h8300_gdbarch_init): Update.
8949 * frv-tdep.c (frv_gdbarch_init): Update.
8950 * cris-tdep.c (cris_gdbarch_init): Update.
8951 * avr-tdep.c (avr_gdbarch_init): Update.
8952 * arm-tdep.c (arm_gdbarch_init): Update.
8953 * alpha-tdep.c (alpha_gdbarch_init): Update.
8954
8955 2003-03-25 Andrew Cagney <cagney@redhat.com>
8956
8957 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8958 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8959 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8960 * gdbarch.h, gdbarch.c: Regenerate.
8961 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8962 call_dummy_stack_adjust_p.
8963 * vax-tdep.c (vax_gdbarch_init): Ditto.
8964 * v850-tdep.c (v850_gdbarch_init): Ditto.
8965 * sh-tdep.c (sh_gdbarch_init): Ditto.
8966 * s390-tdep.c (s390_gdbarch_init): Ditto.
8967 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8968 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8969 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8970 * mips-tdep.c (mips_gdbarch_init): Ditto.
8971 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8972 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8973 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8974 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8975 * i386-tdep.c (i386_gdbarch_init): Ditto.
8976 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8977 * frv-tdep.c (frv_gdbarch_init): Ditto.
8978 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8979 * cris-tdep.c (cris_gdbarch_init): Ditto.
8980 * avr-tdep.c (avr_gdbarch_init): Ditto.
8981 * arm-tdep.c (arm_gdbarch_init): Ditto.
8982 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8983 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8984 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8985 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8986 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8987 call_dummy_stack_adjust_p.
8988 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8989 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8990 * sparc-tdep.c (sparc32_push_arguments): Update.
8991 * valops.c (hand_function_call): Update.
8992
8993 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8994
8995 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8996 set_gdbarch_char_signed.
8997
8998 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8999
9000 PR cli/548
9001 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9002
9003 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9004
9005 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9006 (_initialize_arm_tdep): Don't set tm_print_insn.
9007
9008 2003-03-24 Adam Fedor <fedor@gnu.org>
9009
9010 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9011 * objc-lang.h: Add multiple inclusion protection.
9012 (start_msglist, add_msglist, end_msglist): Additional declarations.
9013
9014 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9015
9016 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9017 value was renamed to ARM_FLOAT_SOFT_FPA.
9018
9019 2003-03-23 Andrew Cagney <cagney@redhat.com>
9020
9021 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9022 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9023 * gdbarch.h, gdbarch.c: Regenerate.
9024 * valops.c (hand_function_call): Update.
9025 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9026 * frame.c (legacy_saved_regs_this_id): Update.
9027 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9028 * dummy-frame.h: Update.
9029 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9030 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9031 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9032 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9033 * config/m68k/tm-sun3.h: Update.
9034 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9035 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9036 * x86-64-tdep.c (x86_64_init_abi): Update.
9037 * vax-tdep.c (vax_gdbarch_init): Update.
9038 * v850-tdep.c (v850_gdbarch_init): Update.
9039 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9040 * sh-tdep.c (sh_gdbarch_init): Update.
9041 * s390-tdep.c (s390_gdbarch_init): Update.
9042 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9043 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9044 (frame_get_saved_regs): Update.
9045 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9046 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9047 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9048 * mips-tdep.c (mips_gdbarch_init): Update.
9049 * mcore-tdep.c (mcore_gdbarch_init): Update.
9050 * m68k-tdep.c (m68k_gdbarch_init): Update.
9051 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9052 * ia64-tdep.c (ia64_gdbarch_init): Update.
9053 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9054 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9055 (i386_interix_back_one_frame): Update.
9056 * hppa-tdep.c (hppa_gdbarch_init): Update.
9057 (hppa_init_extra_frame_info): Update.
9058 * h8300-tdep.c (h8300_gdbarch_init): Update.
9059 * frv-tdep.c (frv_gdbarch_init): Update.
9060 * cris-tdep.c (cris_gdbarch_init): Update.
9061 * avr-tdep.c (avr_gdbarch_init): Update.
9062 * arm-tdep.c (arm_gdbarch_init): Update.
9063 * alpha-tdep.c (alpha_gdbarch_init): Update.
9064
9065 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9066
9067 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9068 (arm_get_fp_model): Declare.
9069 * arm-tdep.c (fp_model_strings): New string array.
9070 (arm_fp_model, current_fp_model): New variables.
9071 (arm_get_fp_model): New function.
9072 (arm_set_fp): New function.
9073 (set_fp_model_sfunc): New function.
9074 (show_fp_model): New function.
9075 (_initialize_arm_tdep): Add new command to set/show the FPU.
9076 (arm_extract_return_value): Use arm_get_fp_model.
9077 (arm_store_return_value): Likewise.
9078 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9079 to initialize the floating-point data types.
9080 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9081 model is FPA.
9082
9083 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9084
9085 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9086 the current setting of each value.
9087 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9088 new_set and new_show. Use add_setshow_cmd_full and
9089 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9090 commands and add new version as subcommands of "set/show arm".
9091
9092 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9093
9094 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9095 (set_arm_command, show_arm_command): New functions.
9096 (_initialize_arm_tdep): Add them.
9097 (num_disassembly_options): Renamed from num_flavor_options.
9098 (valid_disassembly_styles): Renamed from valid_flavors.
9099 (disassembly_style): Renamed from disassembly_flavor.
9100 (set_disassembly_style_sfunc): Renamed from
9101 set_disassembly_flavor_sfunc.
9102 (set_disassembly_style): Renamed from set_disassembly_flavor.
9103 (arm_othernames): Updated.
9104 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9105 command. Add "set/show arm disassembly" commands. Deprecate
9106 "othernames" command.
9107
9108 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9109
9110 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9111 (arm-tdep.o): Depend on elf_arm_h.
9112
9113 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9114
9115 * Makefile.in (coff_internal_h): Define.
9116 (arm-tdep.o): Update dependencies.
9117
9118 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9119
9120 * arm-tdep.c (prologue_cache): Delete.
9121 (check_prologue_cache, save_prologue_cache): Delete.
9122 (arm_scan_prologue): Don't check or update the prologue_cache.
9123 (arm_gdb_arch_init): Don't initialize it.
9124 (_initialize_arm_tdep): Likewise.
9125
9126 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9127
9128 * MAINTAINERS (tui): Maintainer of tui code.
9129
9130 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9131
9132 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9133 (i386-cygwin-tdep.o): Add dependencies.
9134 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9135 * i386-cygwin-tdep.c: New file.
9136 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9137 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9138
9139 2003-03-20 Andrew Cagney <cagney@redhat.com>
9140
9141 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9142 (handle_inferior_event): Remove code calling
9143 DYNAMIC_TRAMPOLINE_NEXTPC.
9144
9145 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9146 already has a full path.
9147
9148 * main.c (gdb_main): Return 1.
9149 (captured_main): Call error to report an invalid interpreter.
9150
9151 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9152 * alpha-osf1-tdep.c: Include "gdb_string.h".
9153
9154 2003-03-19 J. Brobecker <brobecker@gnat.com>
9155
9156 Continuing work to convert the hppa targets to multiarch partial.
9157
9158 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9159 method, now that hppa_push_dummy_frame has a conformant prototype.
9160 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9161 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9162 for the switch to multiarch partial.
9163
9164 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9165
9166 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9167 when iss is issNull.
9168
9169 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9170
9171 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9172 NUM_REGS bounds check.
9173
9174 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9175
9176 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9177 * mips-tdep.c (gdb_assert.h): Include.
9178 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9179 (mips_register_name): Handle integer registers explicitly. Add
9180 bounds checking.
9181 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9182 (mips_lsi33k_reg_names): Don't list integer registers; they're
9183 handled by mips_register_name() now.
9184 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9185 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9186 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9187 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9188 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9189
9190 2003-03-18 Andrew Cagney <cagney@redhat.com>
9191
9192 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9193 a void pointer.
9194 * gdbtypes.h (print_scalar_formatted): Update declaration.
9195 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9196
9197 2003-03-18 J. Brobecker <brobecker@gnat.com>
9198
9199 * infrun.c (observer.h): Add #include.
9200 (normal_stop): Add call to observer_notify_normal_stop.
9201 * Makefile.in (infrun.o): Add dependency on observer.h.
9202
9203 2003-03-18 J. Brobecker <brobecker@gnat.com>
9204
9205 Continuing work to convert the hppa targets to multiarch partial.
9206 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9207 parameter. Reformat comment.
9208 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9209 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9210 to match new profile.
9211
9212 2003-03-18 J. Brobecker <brobecker@gnat.com>
9213
9214 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9215 appear to be working in any case.
9216
9217 2003-03-18 J. Brobecker <brobecker@gnat.com>
9218
9219 * observer.c (observer_test_first_observer): New static variable.
9220 (observer_test_second_observer): Likewise.
9221 (observer_test_third_observer): Likewise.
9222 (observer_test_first_notification_function): New static function.
9223 (observer_test_second_notification_function): Likewise.
9224 (observer_test_third_notification_function): Likewise.
9225
9226 2003-03-17 J. Brobecker <brobecker@gnat.com>
9227
9228 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9229 * somsolib.c (gdb_assert.h): Likewise.
9230 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9231 (somsolib.o): Likewise.
9232
9233 2003-03-17 Andrew Cagney <cagney@redhat.com>
9234
9235 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9236 BFD. Simplify setting of di.endian.
9237
9238 2003-03-17 Andrew Cagney <cagney@redhat.com>
9239
9240 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9241 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9242
9243 From Elena Zannoni <ezannoni@redhat.com>
9244 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9245 vector and floating-point parameters.
9246 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9247 convention.
9248 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9249
9250 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9251
9252 * MAINTAINERS: Remove my name from several maintainership roles.
9253
9254 2003-03-17 Andrew Cagney <cagney@redhat.com>
9255
9256 Fix frame off-by-one bug.
9257 * frame-unwind.h (frame_this_id_ftype): Replace
9258 frame_unwind_id_ftype.
9259 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9260 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9261 with "prev_register".
9262 * frame-unwind.c (frame_unwind_find_by_pc): Return
9263 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9264 comment.
9265 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9266 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9267 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9268 (dummy_frame_unwind): Update.
9269 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9270 sentinel_frame_register_unwind.
9271 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9272 (sentinel_frame_unwinder): Update.
9273 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9274 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9275 * frame.c (create_sentinel_frame): Update. Initialize
9276 "prologue_cache" instead of "unwind_cache".
9277 (frame_register_unwind): Call this frame's prev_register with the
9278 next frame and this frame's prologue cache.
9279 (get_prev_frame): Simplify. Always call prev frame's this_id with
9280 this frame and prev frame's prologue cache. Document that this
9281 call is shifted one to the left when compared to the
9282 frame_register_unwind call.
9283 (legacy_saved_regs_prev_register): Replace
9284 frame_saved_regs_register_unwind.
9285 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9286 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9287 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9288 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9289 (d10v_frame_unwind): Update.
9290 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9291 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9292 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9293 "saved_regs" with "this_saved_regs".
9294
9295 2003-03-16 Andrew Cagney <cagney@redhat.com>
9296
9297 * frame.c (frame_pop): Don't call target_store_registers. Fix
9298 problem reported by Mark Kettenis.
9299
9300 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9301
9302 * i386-tdep.c (i386_register_type): Renamed from
9303 i386_register_virtual_type. Adjust function signature.
9304 (i386_gdbarch_init): Set register_type instead of
9305 deprecated_max_register_raw_size,
9306 deprecated_max_register_virtual_size and register_virtual_type.
9307
9308 2003-03-14 Andrew Cagney <cagney@redhat.com>
9309
9310 * frame.c (get_prev_frame): When a legacy frame, always call
9311 legacy_get_prev_frame. Simplify unwind code using assumption that
9312 the unwinder is new.
9313 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9314 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9315 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9316
9317 2003-03-14 Andrew Cagney <cagney@redhat.com>
9318
9319 * frame.c (get_saved_register): Delete function.
9320 * frame.h (get_saved_register): Delete declaration.
9321 * xstormy16-tdep.c: Update comment.
9322 * regcache.h: Update comments.
9323 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9324 get_saved_register and extract_address, use
9325 frame_read_unsigned_register.
9326 (sparc_frame_saved_pc): Ditto.
9327 (sparc_get_saved_register): Instead of get_saved_register, use
9328 frame_register.
9329 (sparc_pop_frame): Ditto.
9330 * findvar.c: Update comments.
9331 (value_of_register): Call frame_register instead of
9332 get_saved_register.
9333 (value_from_register): Ditto.
9334 * config/sparc/tm-sparc.h: Update comment.
9335 * breakpoint.c: Update comment.
9336
9337 2003-03-14 Andrew Cagney <cagney@redhat.com>
9338
9339 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9340 GET_SAVED_REGISTER.
9341 * gdbarch.h, gdbarch.c: Re-generate.
9342 * frame.h: Update comments.
9343 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9344 * x86-64-tdep.c (x86_64_init_abi): Update.
9345 * sparc-tdep.c (sparc_gdbarch_init): Update.
9346 * sh-tdep.c (sh_gdbarch_init): Update.
9347 * mips-tdep.c (mips_gdbarch_init): Update.
9348 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9349 * cris-tdep.c (cris_gdbarch_init): Update.
9350 * ia64-tdep.c (ia64_gdbarch_init): Update.
9351 * frame.c (frame_register): Update.
9352 (get_saved_register): Update.
9353 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9354
9355 2003-03-13 Andrew Cagney <cagney@redhat.com>
9356
9357 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9358 * gdbarch.h, gdbarch.c: Regenerate.
9359 * valops.c (hand_function_call): Update comment.
9360 * stack.c (return_command): Update comment.
9361 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9362 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9363 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9364 * x86-64-tdep.c (x86_64_init_abi): Update.
9365 * vax-tdep.c (vax_gdbarch_init): Update.
9366 * v850-tdep.c (v850_gdbarch_init): Update.
9367 * sparc-tdep.c (sparc_gdbarch_init): Update.
9368 * sh-tdep.c (sh_gdbarch_init): Update.
9369 * s390-tdep.c (s390_gdbarch_init): Update.
9370 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9371 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9372 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9373 * mips-tdep.c (mips_gdbarch_init): Update.
9374 * mcore-tdep.c (mcore_gdbarch_init): Update.
9375 * m68k-tdep.c (m68k_gdbarch_init): Update.
9376 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9377 * ia64-tdep.c (ia64_gdbarch_init): Update.
9378 * i386-tdep.c (i386_gdbarch_init): Update.
9379 * hppa-tdep.c (hppa_gdbarch_init): Update.
9380 * h8300-tdep.c (h8300_gdbarch_init): Update.
9381 * frv-tdep.c (frv_gdbarch_init): Update.
9382 * cris-tdep.c (cris_gdbarch_init): Update.
9383 * avr-tdep.c (avr_gdbarch_init): Update.
9384 * arm-tdep.c (arm_gdbarch_init): Update.
9385 * alpha-tdep.c (alpha_gdbarch_init): Update.
9386
9387 2003-03-13 Andrew Cagney <cagney@redhat.com>
9388
9389 * frame.c (legacy_frame_p): New function.
9390 (get_prev_frame): Use legacy_frame_p.
9391 * frame.h (legacy_frame_p): Declare.
9392
9393 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9394
9395 * MAINTAINERS (write after approval): Alphabetically
9396 listing corrected.
9397
9398 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9399
9400 * MAINTAINERS (write after approval): Add myself.
9401
9402 2003-03-12 Andrew Cagney <cagney@redhat.com>
9403
9404 * frame.c (get_prev_frame): Rename the frame parameter to
9405 "this_frame".
9406 (get_next_frame, legacy_get_prev_frame): Ditto.
9407
9408 2003-03-12 Andrew Cagney <cagney@redhat.com>
9409
9410 * frame.c (get_current_frame): Check target_has_registers before
9411 checking target_has_stack.
9412 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9413 instead of deprecated_selected_frame.
9414 * findvar.c (value_of_register): Pass "frame", not
9415 deprecated_selected_frame, to value_of_builtin_reg.
9416
9417 2003-03-12 Andrew Cagney <cagney@redhat.com>
9418
9419 * regcache.c (regcache_cooked_write_signed): New function.
9420 (regcache_cooked_write_unsigned): New function.
9421 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9422 (regcache_cooked_read_signed): Fix regnum in range assertion.
9423 * regcache.h (regcache_cooked_write_signed): Declare.
9424 (regcache_cooked_write_unsigned): Declare.
9425
9426 2003-03-12 Andrew Cagney <cagney@redhat.com>
9427
9428 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9429 * gdbarch.h, gdbarch.c: Re-generate.
9430 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9431 * x86-64-tdep.h: Update.
9432 * x86-64-tdep.c (x86_64_init_abi): Update.
9433 * v850-tdep.c (v850_gdbarch_init): Update.
9434 * sparc-tdep.c (sparc_gdbarch_init): Update.
9435 * sh-tdep.c (sh_gdbarch_init): Update.
9436 * s390-tdep.c (s390_gdbarch_init): Update.
9437 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9438 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9439 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9440 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9441 * mips-tdep.c (mips_gdbarch_init): Update.
9442 * mcore-tdep.c (mcore_gdbarch_init): Update.
9443 * m68k-tdep.c (m68k_gdbarch_init): Update.
9444 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9445 * ia64-tdep.c (ia64_gdbarch_init): Update.
9446 * i386-tdep.c (i386_gdbarch_init): Update.
9447 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9448 * hppa-tdep.c (hppa_gdbarch_init): Update.
9449 * h8300-tdep.c (h8300_gdbarch_init): Update.
9450 * frv-tdep.c (frv_gdbarch_init): Update.
9451 * cris-tdep.c (cris_gdbarch_init): Update.
9452 * avr-tdep.c (avr_gdbarch_init): Update.
9453 * arm-tdep.c (arm_gdbarch_init): Update.
9454 * alpha-tdep.c (alpha_gdbarch_init): Update.
9455 * sh-tdep.c (sh_init_extra_frame_info): Update.
9456 (sh64_init_extra_frame_info): Update.
9457 * ns32knbsd-nat.c (frame_num_args): Update.
9458 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9459 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9460 (xstormy16_frame_chain_valid): Update.
9461 * vax-tdep.c (vax_saved_pc_after_call): Update.
9462 * v850-tdep.c (v850_frame_chain): Update.
9463 (v850_pop_frame): Update.
9464 (v850_init_extra_frame_info): Update.
9465 * sparc-tdep.c (setup_arbitrary_frame): Update.
9466 * ns32k-tdep.c (umax_frame_num_args): Update.
9467 * s390-tdep.c (s390_pop_frame_regular): Update.
9468 * mn10300-tdep.c (mn10300_frame_chain): Update.
9469 (mn10300_pop_frame_regular): Update.
9470 (mn10300_init_extra_frame_info): Update.
9471 * mips-tdep.c (mips_init_frame_pc_first): Update.
9472 (mips_frame_chain): Update.
9473 (mips_pop_frame): Update.
9474 * mcore-tdep.c (mcore_frame_chain): Update.
9475 (mcore_pop_frame): Update.
9476 (mcore_init_extra_frame_info): Update.
9477 * arch-utils.c (init_frame_pc_default): Update.
9478 * m68k-tdep.c (isi_frame_num_args): Update.
9479 (delta68_frame_num_args): Update.
9480 (news_frame_num_args): Update.
9481 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9482 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9483 (alpha_frame_chain): Update.
9484 (alpha_pop_frame): Update.
9485 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9486 (hppa_init_extra_frame_info): Update.
9487 (hppa_frame_chain): Update.
9488 (hppa_frame_chain_valid): Update.
9489 * cris-tdep.c (cris_init_extra_frame_info): Update.
9490 * avr-tdep.c (avr_init_extra_frame_info): Update.
9491 * arm-tdep.c (arm_frame_chain_valid): Update.
9492 (arm_init_extra_frame_info): Update.
9493 (arm_pop_frame): Update.
9494 * frame.c (frame_pc_unwind): Update.
9495 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9496 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9497 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9498 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9499 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9500 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9501
9502 2003-03-12 Andrew Cagney <cagney@redhat.com>
9503
9504 Eliminate the need for POP_FRAME.
9505 * frame.c (do_frame_unwind_register): New function.
9506 (frame_pop): When no POP_FRAME, pop the frame using register
9507 unwind and a scratch regcache.
9508 (frame_saved_regs_pop): Delete function.
9509 (trad_frame_unwinder): Update.
9510 * d10v-tdep.c (d10v_frame_pop): Delete function.
9511 (d10v_frame_unwind): Update.
9512 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9513 (sentinel_frame_unwinder): Update.
9514 * dummy-frame.c (dummy_frame_pop): Delete function.
9515 (dummy_frame_unwind): Update.
9516 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9517 (struct frame_unwind): Update.
9518
9519 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9520
9521 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9522 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9523 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9524 Do range checks on register number obtained from debugging info.
9525 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9526 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9527 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9528 mapping function.
9529 (do_fp_register_row): Fix typo which caused double type to be
9530 used when attempting to unpack a float.
9531
9532 2003-03-11 J. Brobecker <brobecker@gnat.com>
9533
9534 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9535
9536 2003-03-11 Andrew Cagney <cagney@redhat.com>
9537
9538 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9539 frame. Problem found by Corinna Vinschen.
9540
9541 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9542
9543 * doublest.c (floatformat_from_length): Accept also
9544 the real size of 'long double' type.
9545
9546 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9547
9548 From Klee Dienes <kdienes@apple.com>:
9549 * breakpoint.c (bpstat_copy): Copy the command lines as well
9550 as the old value, to match what is freed in bpstat_clear.
9551
9552 2003-03-10 David Carlton <carlton@math.stanford.edu>
9553
9554 * minsyms.c (add_minsym_to_hash_table): Replace
9555 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9556 (compare_minimal_symbols, compact_minimal_symbols)
9557 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9558 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9559 of DEPRECATED_SYMBOL_MATCHES_NAME.
9560 (lookup_minimal_symbol_solib_trampoline): Ditto.
9561
9562 2003-03-10 Andrew Cagney <cagney@redhat.com>
9563
9564 * regcache.h (regcache_cooked_read_ftype): Define.
9565 (regcache_save, regcache_restore): Add a cooked_read parameter.
9566 * regcache.c (regcache_save, regcache_restore): Update.
9567 (do_cooked_read): New function.
9568 (regcache_cpy): Pass do_cooked_read to regcache_save and
9569 regcache_restore.
9570
9571 2003-03-10 Andrew Cagney <cagney@redhat.com>
9572
9573 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9574 * gdbarch.h, gdbarch.c: Re-generate.
9575 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9576 * x86-64-tdep.h: Update.
9577 * x86-64-tdep.c (x86_64_init_abi): Update.
9578 * v850-tdep.c (v850_gdbarch_init): Update.
9579 * sparc-tdep.c (sparc_gdbarch_init): Update.
9580 * sh-tdep.c (sh_gdbarch_init): Update.
9581 * s390-tdep.c (s390_gdbarch_init): Update.
9582 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9583 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9584 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9585 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9586 * mips-tdep.c (mips_gdbarch_init): Update.
9587 * mcore-tdep.c (mcore_gdbarch_init): Update.
9588 * m68k-tdep.c (m68k_gdbarch_init): Update.
9589 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9590 * ia64-tdep.c (ia64_gdbarch_init): Update.
9591 * i386-tdep.c (i386_gdbarch_init): Update.
9592 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9593 * hppa-tdep.c (hppa_gdbarch_init): Update.
9594 * h8300-tdep.c (h8300_gdbarch_init): Update.
9595 * frv-tdep.c (frv_gdbarch_init): Update.
9596 * cris-tdep.c (cris_gdbarch_init): Update.
9597 * avr-tdep.c (avr_gdbarch_init): Update.
9598 * arm-tdep.c (arm_gdbarch_init): Update.
9599 * alpha-tdep.c (alpha_gdbarch_init): Update.
9600 * sh-tdep.c (sh_init_extra_frame_info): Update.
9601 (sh64_init_extra_frame_info): Update.
9602 * ns32knbsd-nat.c (frame_num_args): Update.
9603 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9604 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9605 (xstormy16_frame_chain_valid): Update.
9606 * vax-tdep.c (vax_saved_pc_after_call): Update.
9607 * v850-tdep.c (v850_frame_chain): Update.
9608 (v850_pop_frame): Update.
9609 (v850_init_extra_frame_info): Update.
9610 * sparc-tdep.c (setup_arbitrary_frame): Update.
9611 * ns32k-tdep.c (umax_frame_num_args): Update.
9612 * s390-tdep.c (s390_pop_frame_regular): Update.
9613 * mn10300-tdep.c (mn10300_frame_chain): Update.
9614 (mn10300_pop_frame_regular): Update.
9615 (mn10300_init_extra_frame_info): Update.
9616 * mips-tdep.c (mips_init_frame_pc_first): Update.
9617 (mips_frame_chain): Update.
9618 (mips_pop_frame): Update.
9619 * mcore-tdep.c (mcore_frame_chain): Update.
9620 (mcore_pop_frame): Update.
9621 (mcore_init_extra_frame_info): Update.
9622 * arch-utils.c (init_frame_pc_default): Update.
9623 * m68k-tdep.c (isi_frame_num_args): Update.
9624 (delta68_frame_num_args): Update.
9625 (news_frame_num_args): Update.
9626 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9627 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9628 (alpha_frame_chain): Update.
9629 (alpha_pop_frame): Update.
9630 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9631 (hppa_init_extra_frame_info): Update.
9632 (hppa_frame_chain): Update.
9633 (hppa_frame_chain_valid): Update.
9634 * cris-tdep.c (cris_init_extra_frame_info): Update.
9635 * avr-tdep.c (avr_init_extra_frame_info): Update.
9636 * arm-tdep.c (arm_frame_chain_valid): Update.
9637 (arm_init_extra_frame_info): Update.
9638 (arm_pop_frame): Update.
9639 * frame.c (frame_pc_unwind): Update.
9640 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9641 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9642 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9643 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9644 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9645 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9646
9647 2003-03-10 Andrew Cagney <cagney@redhat.com>
9648
9649 * gdbarch.sh (gdbarch_unwind_pc): New method.
9650 * gdbarch.h, gdbarch.c: Regenerate.
9651 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9652 but use read_pc and FRAME_SAVED_PC as fall backs.
9653 (frame_saved_regs_pc_unwind): Delete function.
9654 (trad_frame_unwinder): Update.
9655 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9656 (struct frame_unwind): Update.
9657 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9658 (dummy_frame_unwind): Update.
9659 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9660 (sentinel_frame_unwinder): Update.
9661 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9662 (d10v_frame_unwind): Update.
9663 (d10v_unwind_pc): New function.
9664 (d10v_gdbarch_init): Set unwind_pc.
9665
9666 2003-03-10 Andrew Cagney <cagney@redhat.com>
9667
9668 * gdbarch.h: Re-generate.
9669
9670 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9671 PC.
9672 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9673 the PC register.
9674
9675 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9676
9677 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9678
9679 2003-03-08 Andrew Cagney <cagney@redhat.com>
9680
9681 * cli-out.c: Update copyright.
9682 (cli_out_data): Define typedef. Use instead of ui_out_data.
9683
9684 2003-03-08 Andrew Cagney <cagney@redhat.com>
9685
9686 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9687 the result.
9688
9689 2003-03-07 Andrew Cagney <cagney@redhat.com>
9690
9691 * gdbarch.sh: Don't generate two macro definitions when an
9692 undefined macro taking no arguments.
9693 * gdbarch.h: Regenerate.
9694
9695 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9696
9697 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9698 (x86_64_unwind_dummy_id): New functions.
9699 (x86_64_init_abi): Register these two new functions.
9700
9701 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9702
9703 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9704 (x86_64_skip_prologue): Move prologue detection to
9705 separate function.
9706 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9707
9708 2003-03-05 Andrew Cagney <cagney@redhat.com>
9709
9710 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9711 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9712 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9713 to use unwind_dummy_id when a dummy frame.
9714 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9715 predicate.
9716 * gdbarch.h, gdbarch.c: Regneerate.
9717
9718 2003-03-05 Andrew Cagney <cagney@redhat.com>
9719
9720 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9721 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9722 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9723 values.
9724
9725 2003-03-05 Andrew Cagney <cagney@redhat.com>
9726
9727 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9728 (struct d10v_unwind_cache): Delete field "frameless". Replace
9729 "next_addr" with "sp_offset". Add "r11_offset".
9730 (d10v_frame_unwind_cache): Update.
9731 (prologue_find_regs): Update. When "mv r11, sp", save the
9732 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9733 RN was saved in r11_offset.
9734
9735 2003-03-05 Andrew Cagney <cagney@redhat.com>
9736
9737 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9738 cached PC value in the next frame.
9739
9740 2003-03-05 Andrew Cagney <cagney@redhat.com>
9741
9742 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9743 "id_unwind_cache" with "id".
9744 (frame_id_unwind): Delete declaration.
9745 * frame.c (frame_id_unwind): Delete function.
9746 (get_prev_frame): Call the frame id unwind method directly. Store
9747 the returned next frame's ID value in NEXT_FRAME. Note that there
9748 is a problem with the wrong unwind ID being called with the wrong
9749 unwind cache.
9750
9751 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9752
9753 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9754
9755 2003-03-05 James Ingham <jingham@apple.com>
9756 Daniel Jacobowitz <drow@mvista.com>
9757
9758 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9759 (auto_cp_abi): New variable.
9760 (current_cp_abi, num_cp_abis): Make static.
9761 (CP_ABI_MAX): Define.
9762 (cp_abis): Turn into an array.
9763 (value_virtual_fn_field): Fix formatting.
9764 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9765 takes a pointer.
9766 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9767 (list_cp_abis, _initialize_cp_abi): New functions.
9768 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9769 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9770 switch_to_cp_abi. Update prototype for register_cp_abi.
9771 * Makefile.in (cp-abi.o): Update dependencies.
9772 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9773 instead of switch_to_cp_abi.
9774 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9775 register_cp_abi.
9776 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9777 register_cp_abi.
9778 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9779
9780 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9781
9782 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9783 * dwarf2loc.c: Include "regcache.h".
9784 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9785 register_size.
9786 * Makefile.in (dwarf2loc.o): Update dependencies.
9787
9788 2003-03-04 Theodore A. Roth <troth@openavr.org>
9789
9790 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9791 number of io registers reported by remote target is not a multiple of
9792 step.
9793
9794 2003-03-04 David Carlton <carlton@math.stanford.edu>
9795
9796 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9797 (lookup_symbol_aux_psymtabs): Update call to
9798 lookup_partial_symbol.
9799 (lookup_transparent_type, find_main_psymtab)
9800 (make_symbol_overload_list): Ditto.
9801
9802 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9803
9804 * MAINTAINERS (Write after approval): Update my email address.
9805
9806 2003-03-03 Andrew Cagney <cagney@redhat.com>
9807
9808 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9809 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9810 predicate. Replace MAX_REGISTER_RAW_SIZE.
9811 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9812 MAX_REGISTER_VIRTUAL_SIZE.
9813 * regcache.c (legacy_max_register_raw_size): New function.
9814 (legacy_max_register_virtual_size): New function.
9815 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9816 (MAX_REGISTER_RAW_SIZE): Define.
9817 (legacy_max_register_raw_size): Declare.
9818 (legacy_max_register_virtual_size): Declare.
9819 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9820 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9821 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9822 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9823 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9824 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9825 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9826 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9827 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9828 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9829 * vax-tdep.c (vax_gdbarch_init): Update.
9830 * v850-tdep.c (v850_gdbarch_init): Update.
9831 * sparc-tdep.c (sparc_gdbarch_init): Update.
9832 * sh-tdep.c (sh_gdbarch_init): Update.
9833 * s390-tdep.c (s390_gdbarch_init): Update.
9834 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9835 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9836 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9837 * mips-tdep.c (mips_gdbarch_init): Update.
9838 * mcore-tdep.c (mcore_gdbarch_init): Update.
9839 * m68k-tdep.c (m68k_gdbarch_init): Update.
9840 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9841 * ia64-tdep.c (ia64_gdbarch_init): Update.
9842 * i386-tdep.c (i386_gdbarch_init): Update.
9843 * hppa-tdep.c (hppa_gdbarch_init): Update.
9844 * h8300-tdep.c (h8300_gdbarch_init): Update.
9845 * frv-tdep.c (frv_gdbarch_init): Update.
9846 * cris-tdep.c (cris_gdbarch_init): Update.
9847 * avr-tdep.c (avr_gdbarch_init): Update.
9848 * arm-tdep.c (arm_gdbarch_init): Update.
9849 * alpha-tdep.c (alpha_gdbarch_init): Update.
9850 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9851 max_register_raw_size or max_register_virtual_size.
9852
9853 2003-03-03 David Carlton <carlton@math.stanford.edu>
9854
9855 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9856 SYMBOL_MATCHES_NAME, add comment.
9857 (SYMBOL_MATCHES_NATURAL_NAME): New.
9858 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9859 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9860 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9861 * symtab.c (lookup_partial_symbol): Use
9862 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9863 unhelpful comment.
9864 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9865 SYMBOL_MATCHES_NAME.
9866 Fix for PR c++/33.
9867
9868 2003-03-03 David Carlton <carlton@math.stanford.edu>
9869
9870 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9871 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9872 by regexp matching against SYMBOL_NATURAL_NAME.
9873
9874 2003-03-03 David Carlton <carlton@math.stanford.edu>
9875
9876 * linespec.c (find_method): Extract code into collect_methods.
9877 (collect_methods): New.
9878
9879 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9880
9881 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9882 get_frame_base.
9883
9884 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9885 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9886
9887 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9888
9889 * arch-utils.c (generic_register_byte): Fix to use the loop index
9890 and not regnum when summing the size of all registers up to regnum.
9891
9892 2003-03-01 Andrew Cagney <cagney@redhat.com>
9893
9894 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9895 FRAME_INIT_SAVED_REGS.
9896 * gdbarch.h, gdbarch.c: Regenerate.
9897 * stack.c (frame_info): Update.
9898 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9899 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9900 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9901 * ns32k-tdep.c (ns32k_pop_frame): Update.
9902 * mips-tdep.c (mips_pop_frame): Update.
9903 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9904 * ia64-tdep.c (ia64_frame_chain): Update.
9905 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9906 (ia64_frameless_function_invocation): Update.
9907 (ia64_init_extra_frame_info): Update.
9908 (ia64_pop_frame_regular): Update.
9909 * frame.h (struct frame_info): Update comment.
9910 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9911 * frame.c (frame_saved_regs_register_unwind): Update.
9912 (frame_saved_regs_register_unwind): Update.
9913 (deprecated_generic_get_saved_register): Update.
9914 * cris-tdep.c: Update comment.
9915 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9916 Rename macro.
9917 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9918 * x86-64-tdep.c (x86_64_init_abi): Update.
9919 * vax-tdep.c (vax_gdbarch_init): Update.
9920 * v850-tdep.c (v850_gdbarch_init): Update.
9921 * sparc-tdep.c (sparc_gdbarch_init): Update.
9922 * sh-tdep.c (sh_gdbarch_init): Update.
9923 * s390-tdep.c (s390_gdbarch_init): Update.
9924 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9925 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9926 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9927 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9928 * mips-tdep.c (mips_gdbarch_init): Update.
9929 * mcore-tdep.c (mcore_gdbarch_init): Update.
9930 * m68k-tdep.c (m68k_gdbarch_init): Update.
9931 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9932 * ia64-tdep.c (ia64_gdbarch_init): Update.
9933 * i386-tdep.c (i386_gdbarch_init): Update.
9934 * frv-tdep.c (frv_gdbarch_init): Update.
9935 * avr-tdep.c (avr_gdbarch_init): Update.
9936 * arm-tdep.c (arm_gdbarch_init): Update.
9937 * alpha-tdep.c (alpha_gdbarch_init): Update.
9938
9939 2003-03-01 Andrew Cagney <cagney@redhat.com>
9940
9941 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9942 option enum and switch. When no windows, set the interpreter to
9943 INTERP_CONSOLE.
9944
9945 2003-03-01 Andrew Cagney <cagney@redhat.com>
9946
9947 * main.c (captured_main): Replace magic option characters with an
9948 enum.
9949
9950 2003-03-01 Andrew Cagney <cagney@redhat.com>
9951
9952 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9953 INIT_EXTRA_FRAME_INFO.
9954 * gdbarch.h, gdbarch.c: Regenerate.
9955 * arm-tdep.c: Update comments.
9956 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9957 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9958 * frame.h, avr-tdep.c: Ditto.
9959 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9960 (create_new_frame, legacy_get_prev_frame): Ditto.
9961 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9962 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9963 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9964 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9965 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9966 * v850-tdep.c (v850_gdbarch_init): Ditto.
9967 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9968 * sh-tdep.c (sh_gdbarch_init): Ditto.
9969 * s390-tdep.c (s390_gdbarch_init): Ditto.
9970 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9971 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9972 * mips-tdep.c (mips_gdbarch_init): Ditto.
9973 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9974 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9975 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9976 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9977 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9978 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9979 * frv-tdep.c (frv_gdbarch_init): Ditto.
9980 * cris-tdep.c (cris_gdbarch_init): Ditto.
9981 * avr-tdep.c (avr_gdbarch_init): Ditto.
9982 * arm-tdep.c (arm_gdbarch_init): Ditto.
9983 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9984 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9985
9986 2003-03-01 Andrew Cagney <cagney@redhat.com>
9987
9988 * gdbarch.sh (register_type): New function with predicate.
9989 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9990 * gdbarch.h, gdbarch.c: Re-generate.
9991 * arch-utils.c (generic_register_byte): Use generic_register_size.
9992 (generic_register_size): When available, use
9993 gdbarch_register_type.
9994 * regcache.c (init_regcache_descr): When available, initialize the
9995 register type array using gdbarch_register_type. If the
9996 architecture supplies gdbarch_register_type, do not use the legacy
9997 regcache layout.
9998 * d10v-tdep.c (d10v_register_type): Replace
9999 d10v_register_virtual_type.
10000 (d10v_gdbarch_init): Set register_type instead of
10001 register_virtual_type.
10002
10003 2003-03-01 Andrew Cagney <cagney@redhat.com>
10004
10005 * Makefile.in (ax-gdb.o): Update dependencies.
10006 * ax-gdb.c: Include "regcache.h".
10007 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10008 * findvar.c (value_of_register): Ditto.
10009 * infcmd.c (default_print_registers_info): Ditto.
10010
10011 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10012
10013 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10014 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10015
10016 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10017
10018 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10019 of STREQ.
10020
10021 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10022
10023 * Makefile.in (dwarf2loc.o): Update dependencies.
10024 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10025 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10026 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10027 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10028 (locexpr_tracepoint_var_ref): New function.
10029 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10030
10031 2003-02-28 Andrew Cagney <cagney@redhat.com>
10032
10033 * regcache.c (register_size): New function.
10034 * regcache.h (register_size): Declare
10035 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10036 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10037
10038 2003-02-28 David Carlton <carlton@math.stanford.edu>
10039
10040 * linespec.c (decode_compound): Extract code into find_method.
10041 (find_method): New.
10042
10043 2003-02-28 J. Brobecker <brobecker@gnat.com>
10044
10045 * Makefile.in: Add rules to build and link in observer.o.
10046
10047 2003-02-27 J. Brobecker <brobecker@gnat.com>
10048
10049 * observer.c: Minor comments edits.
10050
10051 2003-02-27 J. Brobecker <brobecker@gnat.com>
10052
10053 * observer.h, observer.c: New file.
10054
10055 2003-02-27 Andrew Cagney <cagney@redhat.com>
10056
10057 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10058
10059 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10060
10061 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10062 (M6812_OP_STS_EXT): Likewise.
10063 (m6811_prologue): Use the above to recognize prologue.
10064 (m6812_prologue): Likewise.
10065
10066 2003-02-27 David Carlton <carlton@math.stanford.edu>
10067
10068 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10069 SYMBOL_PRINT_NAME.
10070 (compare_psymbols): Ditto.
10071 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10072
10073 2003-02-27 Michael Snyder <msnyder@redhat.com>
10074
10075 * f-lang.c (build_fortran_types): New function.
10076 (_initialize_f_language): Gdbarch-register built-in fortran types.
10077 * doublest.c (extract_floating): Fix warning text.
10078
10079 2003-02-27 Andrew Cagney <cagney@redhat.com>
10080
10081 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10082 predicate. Replaces PUSH_DUMMY_FRAME.
10083 * gdbarch.h, gdbarch.c: Regnerate.
10084 * valops.c (hand_function_call): Update. Call
10085 generic_push_dummy_frame directly.
10086 * vax-tdep.c (vax_gdbarch_init): Update.
10087 * sparc-tdep.c (sparc_gdbarch_init): Update.
10088 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10089 * m68k-tdep.c (m68k_gdbarch_init): Update.
10090 * hppa-tdep.c (hppa_gdbarch_init): Update.
10091 * alpha-tdep.c (alpha_gdbarch_init): Update.
10092 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10093 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10094 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10095 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10096 push_dummy_frame to generic_push_dummy_frame.
10097 * v850-tdep.c (v850_gdbarch_init): Ditto.
10098 * sh-tdep.c (sh_gdbarch_init): Ditto.
10099 * s390-tdep.c (s390_gdbarch_init): Ditto.
10100 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10101 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10102 * mips-tdep.c (mips_gdbarch_init): Ditto.
10103 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10104 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10105 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10106 * i386-tdep.c (i386_gdbarch_init): Ditto.
10107 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10108 * frv-tdep.c (frv_gdbarch_init): Ditto.
10109 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10110 * cris-tdep.c (cris_gdbarch_init): Ditto.
10111 * avr-tdep.c (avr_gdbarch_init): Ditto.
10112 * arm-tdep.c (arm_gdbarch_init): Ditto.
10113
10114 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10115
10116 * mips-tdep.c (show_mips_abi): New function.
10117 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10118 command ``show mips abi''.
10119
10120 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10121
10122 From Elena Zannoni <ezannoni@redhat.com>
10123 * dbxread.c (process_one_symbol): Only record line 0 if one or
10124 more sline entries have been seen for the function.
10125
10126 2003-02-26 Michael Chastain <mec@shout.net>
10127
10128 * configure: Regenerate with autoconf 000227.
10129
10130 2003-02-26 Michael Chastain <mec@shout.net>
10131
10132 Close PR build/660.
10133 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10134 for old libc5/glibc.
10135 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10136
10137 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10138
10139 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10140 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10141
10142 2003-02-26 Michael Chastain <mec@shout.net>
10143
10144 * configure.in: New variable HAVE_UINTPTR_T.
10145 * configure, config.in: Regenerated.
10146
10147 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10148
10149 Fix PR build/1097.
10150 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10151
10152 2003-02-25 Andrew Cagney <cagney@redhat.com>
10153
10154 * frame.c (get_prev_frame): Add comment on check for
10155 inside_entry_func. Only check for inside_entry_file when not a
10156 dummy and not a sentinel. Check that the new frame is not inner
10157 to the old frame.
10158
10159 2003-02-25 Andrew Cagney <cagney@redhat.com>
10160
10161 * frame.c (frame_debug): New variable.
10162 (_initialize_frame): Add "set/show debug frame" command.
10163 (get_prev_frame): When frame_debug, print reason why unwind
10164 failed.
10165
10166 2003-02-25 Michael Chastain <mec@shout.net>
10167
10168 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10169 to avoid uintptr_t definition problems.
10170
10171 2003-02-25 David Carlton <carlton@math.stanford.edu>
10172
10173 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10174 (SYMBOL_LINKAGE_NAME): Ditto.
10175 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10176 SYMBOL_LINKAGE_NAME.
10177 (struct general_symbol_info): Expand comment.
10178 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10179 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10180 (SYMBOL_MATCHES_REGEXP): Ditto.
10181 * symtab.c (symbol_natural_name): New function.
10182 * objfiles.h: Replace all uses of SYMBOL_NAME by
10183 DEPRECATED_SYMBOL_NAME.
10184 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10185 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10186 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10187 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10188 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10189 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10190 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10191 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10192 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10193 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10194 * ada-exp.y: Ditto.
10195 * ada-exp.y: Update copyright.
10196 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10197 * cp-valprint.c: Ditto.
10198
10199 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10200
10201 * infptrace.c (detach): Do not flag error if ptrace detach fails
10202 and errno is set to ESRCH.
10203
10204 2003-02-24 Andrew Cagney <cagney@redhat.com>
10205
10206 * infptrace.c (udot_info): Change type of udot_off to long. Use
10207 paddr when printing udot_off's value.
10208
10209 2003-02-24 David Carlton <carlton@math.stanford.edu>
10210
10211 * symtab.c (make_symbol_overload_list): Only read in partial
10212 symtabs containing a matching partial symbol.
10213
10214 2003-02-24 David Carlton <carlton@math.stanford.edu>
10215
10216 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10217 do the comparison, not strcmp.
10218 * symfile.c (compare_psymbols): Ditto.
10219 * defs.h: Declare strcmp_iw_ordered.
10220 * utils.c (strcmp_iw_ordered): New function.
10221
10222 2003-02-24 Jim Blandy <jimb@redhat.com>
10223
10224 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10225 support, shared libs): Remove my name from here, to better reflect
10226 reality.
10227
10228 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10229
10230 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10231 (target_ops): Add to_have_continuable_watchpoint.
10232 * target.c (update_current_target): Add INHERIT line for
10233 to_have_continuable_watchpoint.
10234 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10235 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10236 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10237 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10238
10239 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10240
10241 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10242 maintainership.
10243
10244 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10245
10246 * solib.c (solib_open): Call target defined search function after
10247 failing with solib-search-path.
10248 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10249 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10250
10251 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10252
10253 * MAINTAINERS: Add myself to Write After section.
10254
10255 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10256
10257 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10258
10259 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10260
10261 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10262 (m68hc11_add_reggroups): New function.
10263 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10264 (m68hc11_gdbarch_init): Install the reggroups.
10265 (_initialize_m68hc11_tdep): Initialize them.
10266
10267 2003-02-21 James E Wilson <wilson@tuliptree.org>
10268
10269 * MAINTAINERS: Update my email address.
10270
10271 2003-02-21 David Carlton <carlton@math.stanford.edu>
10272
10273 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10274
10275 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10276
10277 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10278 * symtab.h: Add opaque declarations of struct axs_value and
10279 struct agent_expr.
10280 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10281 (struct location_funcs): New type.
10282 (struct symbol): Add "loc" to aux_value.
10283 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10284 * dwarf2read.c: Include "dwarf2expr.h".
10285 (dwarf2_symbol_mark_computed): New function.
10286 (read_func_scope): Use it.
10287 (var_decode_location): New function.
10288 (new_symbol): Use it.
10289 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10290
10291 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10292 (dwarf2expr_h, dwarf2loc_h): New variables.
10293 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10294 (dwarf2expr.o, dwarf2loc.o): New rules.
10295 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10296 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10297 LOC_COMPUTED_ARG.
10298 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10299 * m2-exp.y (yylex): Likewise.
10300 * printcmd.c (address_info, print_frame_args): Likewise.
10301 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10302 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10303 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10304 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10305 * symtab.c (lookup_block_symbol): Likewise.
10306
10307 2003-02-20 Adam Fedor <fedor@gnu.org>
10308
10309 * symtab.h: Remove objc_specific struct
10310 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10311 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10312 Have language_objc use cplus_specific struct.
10313
10314 2003-02-20 Tom Tromey <tromey@redhat.com>
10315
10316 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10317 TYPE_NAME, when printing a String value. PR java/1075.
10318
10319 2003-02-20 Adam Fedor <fedor@gnu.org>
10320
10321 * objc-lang.h (find_methods): Remove declaration.
10322 * objc-lang.c (find_methods): Make static.
10323
10324 2003-02-20 Christopher Faylor <cgf@redhat.com>
10325
10326 * win32-nat.c (get_image_name): Check return value from
10327 ReadProcessMemory.
10328 (child_xfer_memory): Ditto.
10329
10330 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10331
10332 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10333 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10334 '${exec_prefix}' (in addition to the expansion thereof) as
10335 relocatable.
10336 * configure: Rebuilt.
10337
10338 2003-02-20 David Carlton <carlton@math.stanford.edu>
10339
10340 * symtab.c (search_symbols): Revert the search_symbols part of my
10341 2002-12-23 patch. Add comment.
10342
10343 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10344
10345 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10346 * dbxread.c (elfstab_build_psymtabs): Don't call
10347 install_minimal_symbols.
10348 (stabsect_build_psymtabs): Likewise.
10349 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10350 earlier.
10351 * somread.c (som_symfile_read): Call install_minimal_symbols
10352 and do_cleanups earlier.
10353 * nlmread.c (nlm_symfile_read): Likewise.
10354 * mdebugread.c (elfmdebug_build_psymtabs): Call
10355 install_minimal_symbols and make appropriate cleanups.
10356
10357 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10358
10359 * solib.c (reload_shared_libraries): New function.
10360 (_initialize_solib): Add callbacks for ``set solib-search-path''
10361 and ``set solib-absolute-prefix''.
10362
10363 2003-02-20 David Carlton <carlton@math.stanford.edu>
10364
10365 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10366 expand comment.
10367 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10368 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10369 * ada-typeprint.c (ada_typedef_print): Ditto.
10370 * ax-gdb.c (gen_var_ref): Ditto.
10371 * breakpoint.c (print_one_breakpoint): Ditto.
10372 * buildsym.c (finish_block): Ditto.
10373 * c-valprint.c (c_val_print): Ditto.
10374 * expprint.c (print_subexp): Ditto.
10375 * findvar.c (locate_var_value): Ditto.
10376 * infcmd.c (jump_command): Ditto.
10377 * linespec.c (decode_line_2, decode_compound): Ditto.
10378 * maint.c (maintenance_translate_address): Ditto.
10379 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10380 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10381 Ditto.
10382 * p-valprint.c (pascal_val_print): Ditto.
10383 * stabsread.c (define_symbol): Ditto.
10384 * stack.c (print_frame, frame_info, print_block_frame_locals)
10385 (print_frame_arg_vars, return_command): Ditto.
10386 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10387 * symmisc.c (print_symbol): Ditto.
10388 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10389 (compare_search_syms, print_symbol_info, print_msymbol_info)
10390 (rbreak_command): Ditto.
10391 * tracepoint.c (tracepoints_info): Ditto.
10392 * typeprint.c (typedef_print): Ditto.
10393 * valops.c (value_of_variable, hand_function_call): Ditto.
10394 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10395 * ada-typeprint.c: Update Copyright.
10396 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10397 * tracepoint.c, cli/cli-cmds.c: Ditto.
10398
10399 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10400
10401 * frame.c (generic_unwind_get_saved_register): Make non-static.
10402 * frame.h (generic_unwind_get_saved_register): Declare.
10403 * mips-tdep.c (read_next_frame_reg): Fetch register from
10404 current regcache when frame is NULL.
10405 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10406 that must be NULL.
10407 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10408 instead of frame_register_unwind().
10409
10410 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10411
10412 * remote-sim.c (gdbsim_insert_breakpoint)
10413 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10414 code.
10415
10416 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10417
10418 * remote.c (_initialize_remote): Add commands "set/show remote
10419 hardware-watchpoint-limit" and "set/show remote
10420 hardware-breakpoint-limit".
10421 (remote_hw_watchpoint_limit): Initialize to -1.
10422 (remote_hw_breakpoint_limit): Ditto.
10423 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10424
10425 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10426
10427 * coff-pe-read.c: New file - support reading of minimal symbols from a
10428 portable executable using the export table.
10429 * coff-pe-read.h: New file.
10430 * coffread.c: Include coff-pe-read.h.
10431 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10432 debugging symbols found.
10433 * Makefile.in (SFILES): Add coff-pe-read.o.
10434 (coff_pe_read_h): Define.
10435 (COMMON_OBS): Add coff-pe-read.o.
10436 (coffread.o): Add coff_pe_read_h dependency.
10437 (coff-pe-read.o): New target.
10438
10439 2003-02-19 David Carlton <carlton@math.stanford.edu>
10440
10441 * Makefile.in (SFILES): Add block.c.
10442 (block_h): New.
10443 (COMMON_OBS): Add block.o.
10444 (block.o): New.
10445 (x86-64-tdep.o): Add $(block_h).
10446 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10447 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10448 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10449 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10450 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10451 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10452 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10453 * value.h: Add opaque declaration for struct block.
10454 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10455 * ada-lang.h: Ditto.
10456 * x86-64-tdep.c: #include "block.h"
10457 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10458 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10459 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10460 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10461 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10462 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10463 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10464 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10465 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10466 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10467 * symtab.c (block_function): Ditto.
10468 (contained_in): Ditto.
10469 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10470 block.h. Add opaque declaration for struct block.
10471 * symtab.h: Move block_function and contained_in declarations to
10472 block.h. Add opaque declarations for struct block, struct
10473 blockvector.
10474 (struct block): Move to block.h.
10475 (struct blockvector): Ditto.
10476 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10477 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10478 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10479 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10480 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10481 Ditto.
10482 * block.c: New file.
10483 * block.h: New file.
10484
10485 2003-02-19 Theodore A. Roth <troth@openavr.org>
10486
10487 * avr-tdep.c (avr_extract_return_value): Remove function.
10488 (avr_store_return_value): Remove function.
10489 (avr_extract_struct_value_address): Remove function.
10490 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10491
10492 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10493
10494 * rs6000-tdep.c: Include "gdb_assert.h".
10495 (registers_e500): Add "acc" and "spefscr".
10496 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10497 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10498 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10499 really is "r0".
10500 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10501
10502 2003-02-18 Keith Seitz <keiths@redhat.com>
10503
10504 * Makefile.in: Add gdbtk-interps.c.
10505
10506 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10507
10508 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10509 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10510
10511 2003-02-18 Andrew Cagney <cagney@redhat.com>
10512
10513 * symtab.h (struct objfile): Add opaque declaration.
10514
10515 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10516
10517 From Jim Ingham <jingham@apple.com>:
10518 * dbxread.c (process_one_symbol): Use last_function_start rather
10519 than function_start_offset to find the real beginning of the
10520 current function. The latter is just the text section offset on
10521 some systems, the former is always the real function start.
10522
10523 2003-02-17 Andrew Cagney <cagney@redhat.com>
10524
10525 * configure.in: Revert ${target} != ${host}.
10526
10527 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10528
10529 * configure.in (Makefile): Use the test ${target} != ${host},
10530 instead of the absence of the "nm.h" file, to determine of the
10531 configuration non-native.
10532 * configure: Regenerate.
10533
10534 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10535
10536 From Brian Ford <ford@vss.fsi.com>
10537
10538 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10539 conditionalize tui_active test.
10540 (lookup_cmd_1): Ditto.
10541
10542 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10543
10544 * configure.in: Add check for _etext.
10545 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10546 available.
10547 * config.in, configure: regenerated.
10548
10549 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10550
10551 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10552
10553 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10554
10555 * main.c (tui_version): Delete variable.
10556 (captured_main): When --tui, set interpreter_p to "tui" instead of
10557 enabling tui_version.
10558 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10559 tui_version.
10560 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10561 * cli/cli-cmds.c (disassemble_command): Ditto.
10562 * defs.h (tui_version): Delete declaration.
10563 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10564 (tui-interp.o): Add rules.
10565 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10566
10567 2003-02-14 Christopher Faylor <cgf@redhat.com>
10568
10569 * win32-nat.c (register_loaded_dll): Correctly set address range for
10570 just-loaded dll.
10571
10572 2003-02-12 Jason Molenda (jmolenda@apple.com)
10573
10574 * symmisc.c (print_objfile_statistics): Include information about
10575 the number of psymtabs and symtabs in each object file.
10576
10577 2003-02-13 Keith R Seitz <keiths@redhat.com>
10578
10579 * main.h (struct captured_main_args): Add interpreter_p.
10580 * main.c (captured_main): Initialize interpreter_p from context.
10581 * gdb.c (main): Set interpreter_p argument.
10582 * Makefile.in (gdb.o): Add dependency for interps.h.
10583
10584 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10585
10586 * event-top.c (cli_command_loop): Delete declaration.
10587 (_initialize_event_loop): Delete function setting event_loop_hook.
10588 * event-top.h (cli_command_loop): Declare. Update copyright.
10589 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10590 * interps.c (current_interp_command_loop): When event_loop_p, call
10591 cli_command_loop.
10592
10593 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10594
10595 * interps.h (interp_command_loop_ftype): Change return type to
10596 void.
10597
10598 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10599
10600 * x86-64-tdep.c (x86_64_extract_return_value)
10601 (x86_64_store_return_value): Use regcache instead of regbuf.
10602 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10603 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10604
10605 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10606
10607 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10608 * aclocal.m4: Regenerate.
10609 * configure: Regenerate.
10610
10611 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10612 TCL_LD_SEARCH_FLAGS.
10613
10614 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10615
10616 * dwarf2cfi.c: Reindented.
10617
10618 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10619
10620 * interps.c (clear_interpreter_hooks): Convert function definition
10621 to ISO C.
10622
10623 2003-02-07 David Carlton <carlton@math.stanford.edu>
10624
10625 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10626
10627 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10628
10629 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10630 (struct type): ...to here.
10631 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10632 field.
10633 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10634 (replace_type): Set length on all type variants for a given type.
10635
10636 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10637
10638 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10639 <sys/stat.h>.
10640 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10641
10642 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10643
10644 * Makefile.in (symm-nat.o): Update dependencies.
10645 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10646 (lynx-nat.o, ia64-linux-nat.): Ditto.
10647 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10648 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10649 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10650
10651 * Makefile.in (inflow_h): Define.
10652 (procfs.o, inflow.o, procfs.o): Update dependencies.
10653 * inftarg.c (child_stop): Delete extern declaration of
10654 inferior_process_group. Include "inflow.h".
10655 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10656 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10657 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10658 (our_process_group, inferior_process_group): Extern declarations.
10659
10660 * procfs.c: Include "gdb_assert.h".
10661
10662 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10663 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10664 * jv-typeprint.c (java_type_print_base): Ditto.
10665 * typeprint.c (typedef_print): Eliminate STREQ.
10666 * cli/cli-script.c (define_command, define_command): Ditto.
10667 * main.c (captured_main): Ditto.
10668 * values.c (lookup_internalvar): Ditto.
10669 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10670 within `if' conditional.
10671 * linespec.c (decode_line_2): Ditto.
10672 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10673 (bfd_openw_with_cleanup): Ditto.
10674
10675 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10676
10677 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10678 legacy_extract_return_value and store_return_value to
10679 legacy_return_value.
10680
10681 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10682
10683 * win32-nat.c (get_relocated_section_addrs): New function. Find
10684 section load addresses for symbol handling in relocated DLLs.
10685 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10686
10687 2003-02-05 Fred Fish <fnf@intrinsity.com>
10688
10689 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10690 '=' and '!='.
10691 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10692 with '&' and '=='.
10693 (angel_RDI_info): Ditto.
10694 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10695 with '&' and '!='.
10696 (threads_continue_all_with_signals): Ditto.
10697
10698 2003-02-05 Jim Ingham <jingham@apple.com>
10699 Keith Seitz <keiths@redhat.com>
10700 Elena Zannoni <ezannoni@redhat.com>
10701 Andrew Cagney <ac131313@redhat.com>
10702
10703 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10704 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10705 (SUBDIR_MI_OBS): Add "mi-interp.o".
10706 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10707 (SFILES): Add "interps.c".
10708 (COMMON_OBS): Add "interps.o".
10709 (interps_h, mi_main_h): Define.
10710 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10711 (mi-main.o, main.o, event-top.o): Update dependencies.
10712 * cli/cli-interp.c: New file.
10713 * interps.h, interps.c: New files.
10714 * top.c: (gdb_init): Don't install the default interpreter, handed
10715 by captured_main.
10716 * main.c: Include "interps.h".
10717 (interpreter_p): Note that it should malloc'ed.
10718 (captured_command_loop): Call current_interp_command_loop.
10719 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10720 xfree and xstrdup when updating interpreter_p. Install the
10721 default interpreter. Add hack to stop mi1's copyright notice
10722 being encoded.
10723 * event-top.h (gdb_setup_readline): Declare.
10724 (gdb_disable_readline): Declare.
10725 * event-top.c: Include "interps.h".
10726 (display_gdb_prompt): Call current_interp_display_prompt_p.
10727 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10728 gdb_stdlog, and gdb_stdtarg.
10729 (_initialize_event_loop): Don't call gdb_setup_readline.
10730 * cli-out.c (cli_out_set_stream): New function.
10731 * cli-out.h (cli_out_set_stream): Declare.
10732
10733 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10734
10735 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10736 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10737 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10738 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10739 config/i386/i386v42mp.mt: Removed.
10740
10741 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10742
10743 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10744 GDB_OSABI_SOLARIS.
10745
10746 2003-02-05 Michael Chastain <mec@shout.net>
10747
10748 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10749 2.12.1 and earlier versions.
10750
10751 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10752
10753 Remove orphaned hosts, targets and files.
10754 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10755 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10756 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10757 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10758 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10759 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10760 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10761 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10762 * config/sparc/tm-sp64sim.h: Delete.
10763 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10764 hosts.
10765 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10766 mips*-dec-mach3* targets.
10767
10768 2003-02-04 Michael Chastain <mec@shout.net>
10769
10770 * NEWS: Fix typo: sepcifying -> specifying.
10771
10772 2003-02-04 Michael Chastain <mec@shout.net>
10773
10774 * dwarfread.c: Add documentation on the state of dwarf-1,
10775 looking towards obsoletion.
10776
10777 2003-02-03 Michael Chastain <mec@shout.net>
10778
10779 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10780 gdb/testsuite/gdb.c++/pr-1023.exp.
10781
10782 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10783
10784 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10785 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10786
10787 * utils.c (init_page_info): Delete reference to MPW in comments.
10788 * main.c (captured_main): Delete #ifdef MPW.
10789
10790 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10791
10792 * NEWS: Note that the m32r-*-elf* is obsolete.
10793 * monitor.c (monitor_expect): Obsolete reference to m32r.
10794 * configure.tgt: Mark m32r-*-elf* as obsolete.
10795 * MAINTAINERS: Mark m32k as obsolete.
10796 * m32r-rom.c: Obsolete file.
10797 * config/m32r/m32r.mt: Obsolete file.
10798 * config/m32r/tm-m32r.h: Obsolete file.
10799 * m32r-stub.c: Obsolete file.
10800 * m32r-tdep.c: Obsolete file.
10801
10802 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10803
10804 * NEWS: Mention that the z8k-zilog-none is obsolete.
10805 * MAINTAINERS: Mark z8k as obsolete.
10806 * configure.tgt: Obsolete the z8k-*-coff* target.
10807 * config/z8k/z8k.mt: Obsolete file.
10808 * config/z8k/tm-z8k.h: Obsolete file.
10809 * z8k-tdep.c: Obsolete file.
10810
10811 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10812
10813 * NEWS: Mention that the mn10200-elf is obsolete.
10814 * configure.tgt: Obsolete mn10200-*-* target.
10815 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10816 mention that the mn10200 is obsolete.
10817 * breakpoint.h: Ditto.
10818 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10819 * config/mn10200/mn10200.mt: Obsolete file.
10820 * config/mn10200/tm-mn10200.h: Obsolete file.
10821 * mn10200-tdep.c: Obsolete file.
10822
10823 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10824
10825 * MAINTAINERS: Mark h8500 as obsolete.
10826 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10827 * findvar.c (value_from_register): Ditto.
10828 * h8500-tdep.c: Mark file as obsolete.
10829 * config/h8500/h8500.mt: Ditto.
10830 * config/h8500/tm-h8500.h: Ditto.
10831 * NEWS: Mention that h8500 is obsolete.
10832
10833 2003-02-04 David Carlton <carlton@math.stanford.edu>
10834
10835 * objfiles.c (allocate_objfile): Always set name. Add comment at
10836 start of function.
10837 * jv-lang.c (get_dynamics_objfile): Add comment.
10838
10839 2003-02-04 David Carlton <carlton@math.stanford.edu>
10840
10841 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10842 * printcmd.c (build_address_symbolic): Replace uses of
10843 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10844 SYMBOL_NAME, and asm_demangle.
10845 Update copyright.
10846
10847 2003-02-04 David Carlton <carlton@math.stanford.edu>
10848
10849 * linespec.c (decode_compound): Extract code into
10850 lookup_prefix_sym.
10851 (lookup_prefix_sym): New function.
10852
10853 2003-02-04 David Carlton <carlton@math.stanford.edu>
10854
10855 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10856 FLOAT_COERCION_BADNESS.
10857 * gdbtypes.c (rank_one_type): Replace all uses of
10858 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10859
10860 2003-02-04 Jim Blandy <jimb@redhat.com>
10861
10862 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10863 section, let dwarf_macinfo_section point to it, not
10864 dwarf_loc_section.
10865
10866 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10867
10868 Pointed out by Anton Blanchard <anton@samba.org>.
10869 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10870 (ppc_linux_at_sigtramp_return_path): Use it.
10871
10872 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10873
10874 * defs.h (streq): Add prototype.
10875 * utils.c (streq): New function.
10876
10877 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10878 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10879 * mdebugread.c (new_symbol): Likewise.
10880 * stabsread.c (define_symbol): Likewise.
10881 * coffread.c (process_coff_symbol): Likewise.
10882 * dwarfread.c (new_symbol): Likewise.
10883
10884 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10885 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10886 here.
10887 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10888 SYMBOL_INIT_DEMANGLED_NAME.
10889 * objfiles.c: Include "hashtab.h".
10890 (allocate_objfile): Call htab_set_functions_ex for the
10891 demangled_names_hash.
10892 (free_objfile): Call htab_delete for the demangled_names_hash.
10893 * objfiles.h (struct htab): Add declaration.
10894 (struct objfile): Add demangled_names_hash.
10895 * symfile.c: Include "hashtab.h".
10896 (reread_symbols): Call htab_delete for the demangled_names_hash.
10897 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10898 SYMBOL_NAME in the bcache.
10899 * symtab.c: Include "hashtab.h". Update comments.
10900 (create_demangled_names_hash, symbol_set_names): New functions.
10901 (symbol_find_demangled_name): New function, broken out from
10902 symbol_init_demangled_names.
10903 (symbol_init_demangled_names): Use it.
10904 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10905 (SYMBOL_SET_NAMES): New macro.
10906 (symbol_set_names): Add prototype.
10907
10908 2003-02-03 Jim Blandy <jimb@redhat.com>
10909
10910 Use a single, consistent representation for an empty minimal
10911 symbol table in an objfile.
10912 * objfiles.c (terminate_minimal_symbol_table): New function.
10913 (allocate_objfile): Call it.
10914 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10915 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10916 non-NULL.
10917 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10918 objfile has minimal symbols, compare minimal_symbol_count to zero,
10919 instead of comparing msymbols with NULL.
10920 * objfiles.c (have_minimal_symbols): Same.
10921 * solib-sunos.c (solib_add_common_symbols): Call
10922 terminate_minimal_symbol_table.
10923 * symfile.c (reread_symbols): Same.
10924
10925 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10926
10927 * s390-tdep.c (s390_address_class_type_flags)
10928 (s390_address_class_type_flags_to_name)
10929 (s390_address_class_name_to_type_flags): New functions.
10930 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10931 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10932
10933 2003-02-03 Michael Snyder <msnyder@redhat.com>
10934
10935 * arm-tdep.c: Fix spell-o in comment.
10936
10937 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10938
10939 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10940 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10941 error messages to contain BFD filename.
10942
10943 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10944
10945 Fix PR gdb/742 gdb/743 gdb/877
10946 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10947 (do_mixed_source_and_assembly): Use
10948 make_cleanup_ui_out_tuple_begin_end and
10949 make_cleanup_ui_out_tuple_begin_end.
10950 (do_mixed_source_and_assembly): Ditto.
10951 * thread.c (do_captured_list_thread_ids): Ditto.
10952 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10953 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10954 ui_out_tuple_end): Delete prototypes.
10955 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10956 ui_out_list_end, ui_out_tuple_end): Delete.
10957
10958 From Kevin Buettner <kevinb@redhat.com>:
10959 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10960 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10961 (do_cleanup_table_end): New functions.
10962 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10963 Use cleanups to invoke_ui_out_tuple_end().
10964 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10965 * cli/cli-setshow.c (cmd_show_list): Use
10966 make_cleanup_ui_out_tuple_begin_end.
10967
10968 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10969
10970 * frame.c (frame_unwind_register): New function.
10971 (frame_unwind_unsigned_register): Use.
10972 (frame_unwind_signed_register): Use.
10973 (frame_read_register): New function.
10974 * frame.h (frame_unwind_register): Declare.
10975 (frame_read_register): Declare.
10976
10977 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10978 and frame_unwind_register instead of read_memory, write_register
10979 and deprecated_write_register_bytes.
10980
10981 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10982
10983 * frame.h: Note that namelen can be negative.
10984 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10985 NAME's length.
10986
10987 * NEWS: Mention that the d10v's `regs' command is deprecated.
10988 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10989 (d10v_print_registers_info): New function.
10990 (show_regs): Call d10v_print_registers_info.
10991 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10992
10993 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10994
10995 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10996 lost in the previous patch.
10997
10998 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10999
11000 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11001 * stack.c (print_frame_info_base): Output complete FRAME tuple
11002 for synthesized frames.
11003
11004 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11005
11006 * mips-nat.c (zerobuf): Delete.
11007 (fetch_inferior_registers): Alloc local zerobuf.
11008 (fetch_core_registers): Alloc local zerobuf.
11009 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11010 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11011 * thread-db.c (thread_db_store_registers): Ditto.
11012 * sh-tdep.c (sh_do_register): Ditto.
11013 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11014 * remote-sim.c (gdbsim_store_register): Ditto.
11015 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11016 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11017 * monitor.c (monitor_supply_register): Ditto.
11018 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11019 * mips-nat.c (fetch_inferior_registers): Ditto.
11020 * m68klinux-nat.c (fetch_register): Ditto.
11021 * lynx-nat.c (fetch_inferior_registers): Ditto.
11022 (fetch_inferior_registers): Ditto.
11023 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11024 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11025 (hpux_thread_store_registers): Ditto.
11026 * hppah-nat.c (fetch_register): Ditto.
11027 * hppab-nat.c (fetch_register): Ditto.
11028 * hppa-tdep.c (pa_register_look_aside): Ditto.
11029 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11030 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11031
11032 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11033
11034 * gdbarch.sh: Explictly specify all method levels. When a
11035 variable with an empty level, provide a non-multi-arch default.
11036 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11037 * gdbarch.h: Re-generate.
11038 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11039 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11040
11041 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11042
11043 * defs.h (host_pointer_to_address): Delete declaration.
11044 (address_to_host_pointer): Delete declaration.
11045 * utils.c (host_pointer_to_address): Delete function.
11046 (address_to_host_pointer): Delete function.
11047 * procfs.c (procfs_address_to_host_pointer): New function.
11048 * procfs.c (proc_set_watchpoint): Use.
11049 (procfs_can_use_hw_breakpoint): Update comments.
11050 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11051 (som_solib_add): Use.
11052 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11053 * hppa-tdep.c (unwind_command): Use.
11054
11055 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11056
11057 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11058 strlen d_name.
11059
11060 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11061 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11062 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11063 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11064 (define_symbol): Update.
11065 * symfile.c (generic_load): Remove references to nindy.
11066 * symtab.c: Remove references to nindy.
11067
11068 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11069
11070 * infcmd.c (print_float_info): Delete code conditional on
11071 FLOAT_INFO.
11072 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11073 * config/m68k/nm-apollo68b.h: Ditto.
11074 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11075 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11076 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11077
11078 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11079
11080 * config/i386/tm-i386os9k.h: Removed.
11081
11082 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11083 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11084 they're identical to i[3456]86-*-sysv* now.
11085 * config/i386/i386v32.mh: Removed.
11086 * config/i386/xm-i386v32.h: Removed.
11087 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11088
11089 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11090
11091 * config/i386/i386dgux.mh: Removed.
11092 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11093
11094 * configure.in: Fix typo.
11095 * configure: Regenerated.
11096
11097 2003-01-31 David Carlton <carlton@math.stanford.edu>
11098
11099 * dwarf2read.c (dwarf2_locate_sections): Set
11100 dwarf_ranges_section.
11101
11102 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11103
11104 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11105 * utils.c: Update comments documenting legitimate uses of PTR.
11106
11107 * utils.c: Re-indent.
11108
11109 * config/djgpp/fnchange.lst: Delete nindy files.
11110 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11111 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11112 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11113 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11114 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11115 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11116 * Makefile.in (init.c): Remove nindy references.
11117 (saber_gdb): Delete rule.
11118 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11119 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11120 and a68v-nat.c.
11121 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11122 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11123 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11124 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11125 nindy-share/stop.h.
11126 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11127 * saber.suppress: Delete file.
11128
11129 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11130
11131 * dbxread.c (stabs_data): New static variable.
11132 (fill_symbuf): Support an in-memory buffer for stabs data.
11133 (stabs_seek): New function.
11134 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11135 (read_ofile_symtab): Use stabs_seek.
11136 (elfstab_build_psymtabs): Take an asection* instead of
11137 an offset and size. Relocate the stabs data if necessary.
11138 Save the section* for dbx_psymtab_to_symtab.
11139 * dwarf2read.c: Add section variables for each debug section.
11140 (dwarf2_locate_sections): Fill them in.
11141 (dwarf2_read_section): Take an asection* argument.
11142 Relocate the section contents if necessary.
11143 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11144 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11145 it to dwarf2_read_section.
11146 (dwarf2_build_frame_info): Update callers.
11147 * elfread.c (elf_symfile_read): Update call to
11148 elfstab_build_psymtabs.
11149 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11150 (DBX_STAB_SECTION): New macro.
11151 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11152 * symfile.c (symfile_dummy_outputs): New function.
11153 (symfile_relocate_debug_section): New function.
11154 * symfile.h (symfile_relocate_debug_section): Add prototype.
11155
11156 2003-01-31 Richard Henderson <rth@redhat.com>
11157
11158 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11159 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11160 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11161 * alpha-tdep.c (alpha_register_name): Add "unique".
11162 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11163 (ALPHA_UNIQUE_REGNUM): New.
11164 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11165
11166 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11167
11168 * README: Remove reference to Ericsson 1800 monitor.
11169 * Makefile.in (remote-es.o): Delete rule.
11170 (ALLDEPFILES): Delete remote-es.c.
11171 * remote-es.c: Delete file.
11172 * config/m68k/es1800.mt: Delete file.
11173 * config/djgpp/fnchange.lst: Update.
11174 * configure.tgt: Delete m68*-ericsson-* target.
11175
11176 2003-01-31 Adam Fedor <fedor@gnu.org>
11177
11178 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11179 Remove duplicate/shadowing variable of same name.
11180
11181 2003-01-30 Jim Blandy <jimb@redhat.com>
11182
11183 * symfile.c (find_separate_debug_file): Assert that the objfile's
11184 directory name we compute ends with a slash, and then assume that
11185 that's so everywhere we use it.
11186
11187 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11188
11189 * valops.c (value_assign): Flush frame cache after stores to memory
11190 also.
11191
11192 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11193
11194 * Makefile.in (mon960-rom.o): Delete rule.
11195 * mon960-rom.c: Delete file.
11196
11197 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11198
11199 * d10v-tdep.c: Include "frame-unwind.h".
11200 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11201 list.
11202 (next_addr, uses_frame): Delete.
11203 (struct d10v_unwind_cache): Define.
11204 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11205 Use info instead of next_addr and uses_frame globals.
11206 (d10v_frame_init_saved_regs): Delete function.
11207 (d10v_init_extra_frame_info): Delete function.
11208 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11209 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11210 init_frame_pc or frame_saved_pc.
11211 (d10v_pop_frame): Delete function.
11212 (do_d10v_pop_frame): Delete function.
11213 (d10v_frame_chain): Delete function.
11214 (d10v_frame_chain_valid): Delete function.
11215 (d10v_frame_pc_unwind): New function.
11216 (d10v_frame_id_unwind): New function.
11217 (saved_regs_unwinder): New function.
11218 (d10v_frame_register_unwind): New function.
11219 (d10v_frame_pop): New function.
11220 (d10v_frame_unwind): New variable.
11221 (d10v_frame_p): New function.
11222 (d10v_frame_saved_pc): Delete function.
11223 * Makefile.in (d10v-tdep.o): Update dependencies.
11224
11225 2003-01-30 J. Brobecker <brobecker@gnat.com>
11226
11227 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11228 causing some regressions due to a change in the default value
11229 for this macro.
11230
11231 2003-01-29 Richard Henderson <rth@redhat.com>
11232 Elena Zannoni <ezannoni@redhat.com>
11233 Daniel Jacobowitz <drow@mvista.com>
11234
11235 Fix PR gdb/961.
11236 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11237 variables.
11238 (RANGES_SECTION): New.
11239 (dwarf_ranges_buffer): New variable.
11240 (struct comp_unit_head): Add member "die".
11241 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11242 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11243 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11244 (dwarf2_locate_sections): Likewise.
11245 (dwarf2_build_psymtabs): Read .debug_ranges.
11246 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11247 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11248 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11249 Look for DW_AT_ranges and return the bounding box.
11250
11251 2003-01-29 Brian Ford <ford@vss.fsi.com>
11252
11253 * win32-nat.c (cygwin_pid): Removed as unused.
11254 (child_attach): Try fall back to Cygwin pid.
11255
11256 2003-01-29 Jim Blandy <jimb@redhat.com>
11257
11258 * objfiles.h (struct objfile): Doc fix.
11259
11260 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11261
11262 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11263 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11264 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11265 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11266 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11267 (FRAME_SAVED_PC): Change to a function with predicate.
11268 * gdbarch.h, gdbarch.c: Re-generate.
11269
11270 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11271
11272 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11273
11274 * complaints.c (complain): Delete function.
11275 * complaints.h (struct deprecated_complaint): Delete definition.
11276 (complain): Delete declaration.
11277
11278 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11279
11280 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11281 dummy frames.
11282
11283 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11284
11285 * sentinel-frame.h, sentinel-frame.c: New files.
11286 * Makefile.in (frame.o): Update dependencies.
11287 (SFILES): Add sentinel-frame.c.
11288 (sentinel_frame_h): Define.
11289 (COMMON_OBS): Add sentinel-frame.o.
11290 (sentinel-frame.o): Specify dependencies.
11291 * frame.c: Include "sentinel-frame.h".
11292 (frame_register_unwind): Rewrite assuming that there is always a a
11293 ->next frame.
11294 (frame_register, generic_unwind_get_saved_register): Ditto.
11295 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11296 (create_sentinel_frame, unwind_to_current_frame): New functions.
11297 (get_current_frame): Rewrite using create_sentinel_frame and
11298 unwind_to_current_frame. When possible, always create a frame.
11299 (create_new_frame): Set next to the sentinel frame.
11300 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11301 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11302 ID cache when necessary.
11303 (frame_saved_regs_id_unwind): Use frame_relative_level.
11304 (deprecated_generic_get_saved_register): Use frame_relative_level,
11305 get_frame_saved_regs, get_frame_pc, get_frame_base and
11306 get_next_frame.
11307 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11308 frame_register.
11309
11310 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11311
11312 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11313
11314 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11315
11316 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11317 (maintenance_set_profile_cmd): Use error () instead of warning ().
11318
11319 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11320
11321 * configure.in: Check that -pg works if using --enable-profiling.
11322 Check for monstartup and _mcleanup regardless of --enable-profiling.
11323 * maint.c: Check for monstartup and _mcleanup before using them.
11324 * config.in: Regenerated.
11325 * configure: Regenerated.
11326
11327 2003-01-24 Nick Clifton <nickc@redhat.com>
11328
11329 * Add sh2e support:
11330
11331 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11332
11333 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11334 (sh2e_show_regs): New.
11335 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11336 * config/sh/tm-sh.h: Added sh2e to comments.
11337
11338 2003-01-23 Jim Blandy <jimb@redhat.com>
11339
11340 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11341 symbols found)" message here; we haven't checked for a separate
11342 debug info file yet, so we don't know yet.
11343 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11344 we've looked everywhere. Also, there's no need to print a special
11345 message when we're loading the separate debug info file: the one
11346 symbol_file_add prints is fine.
11347
11348 2003-01-23 Alexander Larsson <alexl@redhat.com>
11349 Jim Blandy <jimb@redhat.com>
11350
11351 Add support for executables whose debug info has been separated
11352 out into a separate file, leaving only a link behind.
11353 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11354 and separate_debug_objfile_backlink.
11355 (put_objfile_before): New declaration.
11356 * symfile.c: #include "filenames.h".
11357 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11358 debug info in a separate file, read that, too. Save the addrs
11359 argument, so we can use it again to read the separated debug info;
11360 syms_from_objfile modifies the table we pass it.
11361 (reread_symbols): After re-reading an objfile, call
11362 reread_separate_symbols to refresh its separate debug info
11363 objfile, if it has one.
11364 (reread_separate_symbols, find_separate_debug_file,
11365 get_debug_link_info, separate_debug_file_exists): New functions.
11366 (debug_file_directory): New global var.
11367 (_initialize_symfile): Initialize debug_file_directory, and
11368 provide the new `set debug-file-directory' command to let the user
11369 change it.
11370 * objfiles.c (free_objfile): If this objfile has its debug info in
11371 a separate objfile, free that one too. If this is itself a
11372 separate debug info objfile, clear our parent's backlink.
11373 (put_objfile_before): New function.
11374 * utils.c (gnu_debuglink_crc32): New function.
11375 * defs.h (gnu_debuglink_crc32): New declaration.
11376 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11377 * configure.in: Handle --with-separate-debug-dir config option.
11378 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11379 * acconfig.h (DEBUGDIR): New macro.
11380 * configure, aclocal.m4, config.in: Regenerated.
11381
11382 2003-01-22 Jim Blandy <jimb@redhat.com>
11383
11384 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11385 like the old symbol_file_add, but taking new arguments: you can
11386 now pass in either a `struct section_addr_info' list to say where
11387 each section is loaded, or a `struct section_offsets' table. Pass
11388 these new arguments through to syms_from_objfile as appropriate.
11389 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11390 with the appropriate quiescent values for the new arguments.
11391
11392 * symfile.c: #include "gdb_assert.h".
11393 (syms_from_objfile): Add the ability to pass in a section offset
11394 table directly, as an alternative to the section_addr_info table.
11395 Document arguments better.
11396 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11397 * symfile.h (syms_from_objfile): Update declaration.
11398 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11399 syms_from_objfile.
11400 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11401
11402 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11403
11404 Original patch by Tom Tromey <tromey@cygnus.com> and
11405 Jason Molenda <jmolenda@apple.com>.
11406 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11407 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11408 * NEWS: Mention profiling.
11409 * configure.in (--enable-gdbtk): Fix typo.
11410 (--enable-profiling): New. Set PROFILE_CFLAGS.
11411 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11412 Fill in function.
11413 (profiling_state): New variable.
11414 (mcleanup_wrapper): New function.
11415 (_initialize_maint): Remove NOTYET, fix call to
11416 add_setshow_boolean_cmd for "maint set profile".
11417 * configure: Regenerated.
11418
11419 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11420
11421 * Makefile.in (install-gdbtk): Install PNG images too.
11422
11423 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11424
11425 * exec.c (text_start): Delete global variable.
11426 (exec_file_attach): Make text_start local to the function.
11427 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11428 * valops.c (hand_function_call): Delete code that handles
11429 BEFORE_TEXT_END and AFTER_TEXT_END.
11430 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11431 of CALL_DUMMY_LOCATION.
11432 * gdbarch.c: Regenerate.
11433 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11434 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11435 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11436 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11437 (text_end): Delete extern declaration.
11438
11439 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11440
11441 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11442 * blockframe.c (backtrace_below_main): Move to "frame.c".
11443 (frame_chain_valid): Delete check for backtrace_below_main.
11444 (_initialize_blockframe): Delete initialization, move ``set
11445 backtrace-below-main'' command to "frame.c".
11446 (do_flush_frames_sfunc): Delete function.
11447 * frame.c: Include "command.h" and "gdbcmd.h".
11448 (frame_type_from_pc): New function.
11449 (create_new_frame): Use frame_type_from_pc.
11450 (legacy_get_prev_frame): New function.
11451 (get_prev_frame): Rewrite. When an old style frame, call
11452 legacy_get_prev_frame. Otherwize, unwind the PC first.
11453 (_initialize_frame): Add ``set backtrace-below-main'' command.
11454 * Makefile.in (frame.o): Update dependencies.
11455
11456 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11457
11458 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11459 DEPRECATED_REGISTERS_INFO.
11460
11461 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11462
11463 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11464 Maintainers'. Update `Various Maintainers'.
11465
11466 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11467
11468 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11469 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11470 Suppress actual parameters when `-'.
11471 * gdbarch.h, gdbarch.c: Regenerate.
11472
11473 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11474
11475 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11476 code handling dummy frames.
11477
11478 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11479
11480 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11481 (struct frame_unwind): Add field pop.
11482 * frame.h (frame_pop): Declare.
11483 * frame.c (frame_saved_regs_pop): New function.
11484 (trad_frame_unwinder): Add frame_saved_regs_pop.
11485 (frame_pop): New function.
11486 * dummy-frame.c (dummy_frame_pop): New function.
11487 (discard_innermost_dummy): New function.
11488 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11489 (dummy_frame_unwind): Add dummy_frame_pop.
11490 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11491 * valops.c (hand_function_call): Ditto.
11492 * stack.c (return_command): Ditto.
11493
11494 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11495
11496 * cris-tdep.c: Fix function declaration indentation.
11497 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11498 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11499 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11500 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11501 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11502 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11503
11504 2003-01-18 Michael Chastain <mec@shout.net>
11505
11506 * README (Unpacking and Installation -- quick overview):
11507 Warn against ".../gdb-5.3/gdb/configure".
11508
11509 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11510
11511 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11512 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11513 (struct frame_unwind): Declare opaque.
11514 (dummy_frame_p): Declare function.
11515 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11516 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11517 * dummy-frame.c: Include "frame-unwind.h".
11518 (dummy_frame_p): New function.
11519 (dummy_frame_unwind): New variable.
11520 * frame.c: Include "frame-unwind.h".
11521 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11522 to use the new unwind field.
11523 (set_unwind_by_pc): Delete function.
11524 (create_new_frame, get_prev_frame): Set unwind field using
11525 frame_unwind_find_by_pc.
11526 (trad_frame_unwind, trad_frame_unwinder): New variables.
11527 * frame.h (trad_frame_unwind): Declare variable.
11528 (frame_id_unwind_ftype): Delete declaration.
11529 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11530 (struct frame_unwind): Declare opaque.
11531 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11532 register_unwind with a single unwind pointer.
11533 * frame-unwind.h, frame-unwind.c: New files.
11534 * Makefile.in (SFILES): Add frame-unwind.c.
11535 (frame_unwind_h): Define.
11536 (COMMON_OBS): Add frame-unwind.o.
11537 (frame-unwind.o): Specify dependencies.
11538 (frame.o, dummy-frame.o): Update dependencies.
11539
11540 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11541
11542 * ada-valprint.c: Eliminate PTR.
11543 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11544 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11545 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11546 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11547 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11548 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11549 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11550
11551 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11552
11553 * main.c (captured_main): Don't use PTR.
11554 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11555 * gdbtypes.c (lookup_primitive_typename): Ditto.
11556 (lookup_struct_elt_type): Ditto.
11557 * f-valprint.c (info_common_command): Ditto.
11558 (list_all_visible_commons): Ditto.
11559 * jv-typeprint.c (java_type_print_base): Ditto.
11560
11561 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11562 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11563 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11564 i386-interix-nat.c and i386-interix-tdep.c. Rename
11565 m68klinux-nat.c and m68klinux-tdep.c. Rename
11566 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11567 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11568 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11569 * main.c (captured_main): Use xfree, not free.
11570
11571 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11572
11573 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11574 ID back using a parameter.
11575 * frame.c (frame_id_unwind): Update call.
11576 (frame_saved_regs_id_unwind): Update.
11577 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11578 * dummy-frame.h (struct frame_id): Add opaque declaration.
11579 (dummy_frame_id_unwind): Update declaration.
11580
11581 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11582
11583 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11584
11585 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11586
11587 * MAINTAINERS (Stephen P. Smith): Updated email address.
11588
11589 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11590
11591 Fix PR gdb/898
11592 * breakpoint.c (until_break_command): Add new argument. Use it to
11593 decide whether to stop only at the current frame or not.
11594 * breakpoint.h (until_break_command): Update prototype.
11595 * infcmd.c (until_command): Add new argument to until_break_command
11596 call.
11597 (advance_command): New function.
11598 (_initialize_infcmd): Update help string for 'until' command.
11599 Add new 'advance' command.
11600
11601 2003-01-14 David Carlton <carlton@math.stanford.edu>
11602
11603 * linespec.c (decode_line_1): Normalize comments.
11604 (set_flags): Ditto.
11605 (locate_first_half): Ditto.
11606 (decode_compound): Ditto.
11607 (symtab_from_filename): Ditto.
11608 (decode_all_digits): Ditto.
11609 (decode_dollar): Ditto.
11610 (find_methods): Ditto.
11611 (find_toplevel_char): Ditto.
11612
11613 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11614
11615 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11616 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11617 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11618 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11619 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11620 * language.c, language.h, m32r-tdep.c: Update copyright.
11621 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11622 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11623 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11624 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11625 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11626 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11627
11628 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11629
11630 * stabsread.h (process_later, resolve_cfront_continuation):
11631 Obsolete.
11632 Update copyright years.
11633 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11634 Update copyright year.
11635 * dbxread.c(struct cont_elem): Obsolete.
11636 (process_later, process_now): Obsolete functions.
11637 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11638 Update copyright year.
11639 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11640 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11641 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11642 (parse_partial_symbols): Obsolete cfront support.
11643 * stabsread.c
11644 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11645 macros.
11646 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11647 read_cfront_baseclasses, read_cfront_member_functions,
11648 resolve_cfront_continuation,read_cfront_static_fields,
11649 copy_cfront_struct_fields): Obsolete functions.
11650 (define_symbol, read_one_struct_field): Obsolete cfront support.
11651 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11652 Update Copyright year.
11653
11654 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11655
11656 * stack.c (print_frame_info, print_stack_frame_base_stub,
11657 print_stack_frame_base, show_and_print_stack_frame_stub,
11658 show_and_print_stack_frame, print_only_stack_frame_stub,
11659 print_only_stack_frame): Delete functions.
11660 (print_stack_frame_stub): Call print_frame_info instead of
11661 print_frame_info_base.
11662 (print_frame_info_base): Rename to print_frame_info.
11663 (backtrace_command_1): Call print_frame_info, instead of
11664 print_frame_info_base.
11665 (current_frame_command): Call print_stack_frame, instead of
11666 print_only_stack_frame.
11667 (frame_command): Call print_stack_frame, instead of
11668 show_and_print_stack_frame.
11669 (up_command): Ditto.
11670 (down_command): Ditto.
11671 * frame.h (print_only_stack_frame): Delete prototype.
11672 * infrun.c (normal_stop): Call print_stack_frame, instead of
11673 show_and_print_stack_frame.
11674 * thread.c (info_threads_command): Call print_stack_frame, instead
11675 of print_only_stack_frame.
11676
11677 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11678
11679 * README (Graphical interface to GDB): Update URL. Point at
11680 gdb/links/.
11681
11682 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11683 version match.
11684
11685 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11686
11687 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11688 lines.
11689
11690 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11691
11692 * thread-db.c (attach_thread): Prototype.
11693 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11694 thread information (ti), and valid flags (th_valid, ti_valid).
11695 (attach_thread): Move target_pid_to_str call to after the thread
11696 is added to GDB's list. Initialize the cache.
11697 (thread_get_info_callback, thread_db_map_id2thr)
11698 (thread_db_get_info): New functions.
11699 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11700 (thread_db_store_registers, thread_db_thread_alive)
11701 (thread_db_get_thread_local_address): Use them.
11702 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11703 of calling error() for threads in unknown state.
11704
11705 (clear_lwpid_callback): New function.
11706 (thread_db_resume): Use it to clear the cache.
11707
11708 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11709
11710 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11711 (resume_callback): Remove dead code.
11712
11713 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11714
11715 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11716 predicate.
11717 * gdbarch.h, gdbarch.c: Regenerate.
11718 * stack.c (frame_info): Only initialize the saved registers when
11719 FRAME_INIT_SAVED_REGS_P.
11720 * frame.c (frame_saved_regs_register_unwind): Assert
11721 FRAME_INIT_SAVED_REGS_P.
11722 (deprecated_generic_get_saved_register): Ditto.
11723
11724 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11725
11726 * source.c (openp): Squelch warning about "filename".
11727
11728 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11729
11730 * source.c (openp): If the file does not exist don't necessarily
11731 search the path.
11732
11733 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11734
11735 Fix PR gdb/872.
11736 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11737 (integer_types_same_name_p): New function.
11738 (rank_one_type): Use it.
11739 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11740
11741 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11742
11743 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11744 variables.
11745 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11746 * configure.in: Add --with-sysroot.
11747 * configure: Regenerated.
11748 * main.c (gdb_sysroot): New variable.
11749 (captured_main): Initialize gdb_sysroot.
11750 * defs.h (gdb_sysroot): New extern declaration.
11751 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11752
11753 2003-01-12 Michael Chastain <mec@shout.net>
11754
11755 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11756
11757 2003-01-12 Michael Chastain <mec@shout.net>
11758
11759 * top.c (print_gdb_version): Bump copyright year to 2003.
11760
11761 2003-01-12 David Carlton <carlton@bactrian.org>
11762
11763 * linespec.c (symtab_from_filename): Rename variable 's' to
11764 'file_symtab'.
11765
11766 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11767
11768 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11769 dummy frame.
11770 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11771
11772 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11773
11774 * d10v-tdep.c: Include "gdb_assert.h".
11775 (d10v_store_return_value): Rewrite to match current interface.
11776 (d10v_extract_struct_value_address): Ditto.
11777 (d10v_extract_return_value): Ditto.
11778 (d10v_gdbarch_init): Set store_restore_value,
11779 extract_struct_value_address and extract_return_value.
11780
11781 2003-01-12 J. Brobecker <brobecker@gnat.com>
11782
11783 * hpread.c (set_namestring): New procedure replacing the
11784 SET_NAMESTRING macro.
11785 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11786 by calls to set_namestring.
11787
11788 2003-01-11 J. Brobecker <brobecker@gnat.com>
11789
11790 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11791 a compilation warning.
11792 (hpread_process_one_debug_symbol): Likewise.
11793
11794 2003-01-10 David Carlton <carlton@math.stanford.edu>
11795
11796 * linespec.c (decode_line_1): Rename variable 's' to
11797 'file_symtab'.
11798 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11799 (decode_dollar): Ditto.
11800 (decode_variable): Ditto.
11801 (symbol_found): Ditto.
11802
11803 2003-01-09 Michael Chastain <mec@shout.net>
11804
11805 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11806
11807 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11808
11809 * win32-nat.c (set_process_privilege): New function.
11810 (child_attach): Call set_process_privilege() to enable the
11811 SE_DEBUG_NAME user privilege if available in process token.
11812
11813 2003-01-10 J. Brobecker <brobecker@gnat.com>
11814
11815 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11816 compilation error in the previous revision.
11817
11818 2003-01-09 David Carlton <carlton@math.stanford.edu>
11819
11820 * linespec.c: Update copyright.
11821
11822 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11823
11824 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11825 than inferior_ptid.
11826 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11827
11828 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11829
11830 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11831 Update comments.
11832 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11833 (frame_saved_regs_zalloc): Update.
11834 (frame_saved_regs_register_unwind): Update.
11835 (create_new_frame): Update.
11836 (get_prev_frame): Update.
11837 (frame_extra_info_zalloc): Update.
11838 (deprecated_get_frame_saved_regs): Update.
11839 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11840 * cris-tdep.c: Update comment.
11841
11842 * somsolib.h: Fix function indentation.
11843 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11844 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11845 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11846 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11847 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11848
11849 * infrun.c (follow_fork): Use ISO C definition.
11850 * expprint.c (print_subexp): Use xfree instead of free.
11851 * charset.c: Include "gdb_string.h" instead of <string.h>.
11852 (register_iconv_charsets): Use ISO C definition.
11853 (host_charset, target_charset): Ditto.
11854 * Makefile.in (charset.o): Update dependencies.
11855 (mi-cmd-env.o): Update dependencies.
11856
11857 2003-01-08 Andrew Cagney <cagney@redhat.com>
11858
11859 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11860 get_frame_base.
11861
11862 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11863
11864 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11865 build directories. Save edited gdb output in Mbuild.log. If a
11866 build fails, remove any final GDB executable.
11867
11868 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11869
11870 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11871 replacing hex constants with function names and stripping leading
11872 file name directory prefixes.
11873
11874 2003-01-08 Andrew Cagney <cagney@redhat.com>
11875
11876 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11877 get_frame_base.
11878
11879 2003-01-08 David Carlton <carlton@math.stanford.edu>
11880
11881 * linespec.c (decode_line_1): Move code into decode_variable.
11882 (decode_variable): New function.
11883
11884 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11885
11886 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11887
11888 2003-01-08 Andrew Cagney <cagney@redhat.com>
11889
11890 * cris-tdep.c (cris_frame_init_saved_regs): Use
11891 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11892 saved_regs buffer.
11893 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11894 (sh64_nofp_frame_init_saved_regs): Ditto.
11895 (sh_fp_frame_init_saved_regs): Ditto.
11896 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11897 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11898 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11899 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11900
11901 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11902
11903 * minsyms.c (lookup_minimal_symbol): Update comment.
11904 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11905 (lookup_minimal_symbol_solib_trampoline): Likewise.
11906
11907 2003-01-08 Andrew Cagney <cagney@redhat.com>
11908
11909 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11910 frame_relative_level.
11911
11912 * alpha-tdep.c: Use get_frame_extra_info.
11913 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11914 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11915 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11916 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11917
11918 * alpha-tdep.c: Use get_next_frame.
11919 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11920 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11921 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11922 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11923 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11924 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11925 * xstormy16-tdep.c: Ditto.
11926
11927 2003-01-07 Andrew Cagney <cagney@redhat.com>
11928
11929 * alpha-tdep.c: Use get_frame_base.
11930 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11931 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11932 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11933 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11934 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11935 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11936 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11937 * config/sparc/tm-sparc.h: Ditto.
11938
11939 2003-01-07 Andrew Cagney <cagney@redhat.com>
11940
11941 * frame.c (deprecated_get_frame_context): New function.
11942 (deprecated_set_frame_context): New function.
11943 * frame.h (deprecated_get_frame_context): Declare.
11944 (deprecated_set_frame_context): Declare.
11945 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11946 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11947
11948 2003-01-07 Andrew Cagney <cagney@redhat.com>
11949
11950 * frame.c (deprecated_set_frame_next_hack): New function.
11951 (deprecated_set_frame_prev_hack): New function.
11952 * frame.h (deprecated_set_frame_next_hack): Declare.
11953 (deprecated_set_frame_prev_hack): Declare.
11954 * mcore-tdep.c (analyze_dummy_frame): Use
11955 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11956 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11957
11958 2003-01-07 David Carlton <carlton@math.stanford.edu>
11959
11960 * linespec.c (decode_line_1): Move code into decode_dollar.
11961 (decode_dollar): New function.
11962
11963 2003-01-07 Andrew Cagney <cagney@redhat.com>
11964
11965 * arm-tdep.c (arm_init_extra_frame_info): Use
11966 deprecated_update_frame_base_hack.
11967 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11968 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11969 (fix_frame_pointer): Ditto.
11970 (mn10300_analyze_prologue): Ditto.
11971
11972 2003-01-07 Andrew Cagney <cagney@redhat.com>
11973
11974 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11975 extra_info using frame_extra_info_zalloc.
11976 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11977 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11978 (sh64_init_extra_frame_info): Ditto.
11979 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11980 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11981 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11982 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11983 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11984 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11985 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11986 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11987 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11988 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11989 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11990 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11991
11992 * mn10300-tdep.c (analyze_dummy_frame): Use
11993 deprecated_set_frame_extra_info_hack.
11994 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11995
11996 2003-01-07 J. Brobecker <brobecker@gnat.com>
11997
11998 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11999 class is not scText. These do not define "real" procedures.
12000 (parse_partial_symbols): Likewise.
12001
12002 2003-01-06 Michael Snyder <msnyder@redhat.com>
12003
12004 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12005
12006 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12007
12008 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12009 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12010 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12011 deprecated_frame_xmalloc_with_cleanup.
12012 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12013 deprecated_frame_xmalloc.
12014 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12015 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12016
12017 2003-01-06 Andrew Cagney <cagney@redhat.com>
12018
12019 * x86-64-linux-tdep.c: Include "osabi.h".
12020 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12021
12022 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12023
12024 2003-01-06 Andrew Cagney <cagney@redhat.com>
12025
12026 * MAINTAINERS (Target Instruction Set Architectures): Update
12027 arm-elf. Can be built with -Werror, has been multiarched.
12028
12029 * value.h (unpack_long): Make buffer parameter constant.
12030 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12031 * scm-lang.h (scm_parse): Ditto.
12032 * defs.h (extract_typed_address, extract_address): Ditto.
12033 (extract_long_unsigned_integer): Ditto.
12034 * inferior.h (unsigned_pointer_to_address): Ditto.
12035 (signed_pointer_to_address): Ditto.
12036 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12037 * gdbarch.h, gdbarch.c: Regenerate.
12038 * findvar.c (extract_long_unsigned_integer): Update.
12039 (extract_address): Update.
12040 (extract_typed_address): Update.
12041 (unsigned_pointer_to_address): Update.
12042 * values.c (unpack_long): Update.
12043 (unpack_double): Update.
12044 (unpack_pointer): Update.
12045 (unpack_field_as_long): Update.
12046 * d10v-tdep.c (d10v_pointer_to_address): Update.
12047 * avr-tdep.c (avr_pointer_to_address): Update.
12048 * scm-lang.c (scm_unpack): Update.
12049 * findvar.c (signed_pointer_to_address): Update.
12050
12051 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12052
12053 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12054 since it is in i386-tdep.c.
12055
12056 2003-01-06 J. Brobecker <brobecker@gnat.com>
12057
12058 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12059 failure introduced in the previous change.
12060
12061 2003-01-05 Michael Chastain <mec@shout.net>
12062
12063 * README: Remove references to deleted remote-*.c files:
12064 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12065 remote-nrom.c, remote-os9k.c, remote-udi.c.
12066
12067 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12068
12069 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12070 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12071 i386_get_longjmp_target.
12072
12073 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12074
12075 * arm-tdep.c (prologue_cache): Change to a pointer.
12076 (_initialize_arm_tdep): Allocate prologue_cache.
12077 (check_prologue_cache): Update.
12078 (save_prologue_cache): Update.
12079 (arm_gdbarch_init): Update.
12080
12081 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12082
12083 * stabsread.c (update_method_name_from_physname): Call complaint()
12084 instead of error.
12085
12086 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12087
12088 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12089 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12090 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12091
12092 * blockframe.c: Include "gdbcmd.h" and "command.h".
12093 (backtrace_below_main): New variable.
12094 (file_frame_chain_valid, func_frame_chain_valid)
12095 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12096 (generic_func_frame_chain_valid): Remove functions.
12097 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12098 (_initialize_blockframe): New function.
12099 * Makefile.in (blockframe.o): Update dependencies.
12100 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12101 comment. Call frame_chain_valid ().
12102 * frame.h: Remove old prototypes. Add prototype for
12103 frame_chain_valid and update comments to match.
12104 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12105 Remove old comment.
12106 * gdbarch.h: Regenerated.
12107 * gdbarch.c: Regenerated.
12108
12109 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12110 set_gdbarch_frame_chain_valid.
12111 * avr-tdep.c (avr_gdbarch_init): Likewise.
12112 * cris-tdep.c (cris_gdbarch_init): Likewise.
12113 * frv-tdep.c (frv_gdbarch_init): Likewise.
12114 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12115 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12116 (i386_nw_init_abi): Likewise.
12117 (i386_gdbarch_init): Likewise.
12118 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12119 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12120 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12121 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12122 * mips-tdep.c (mips_gdbarch_init): Likewise.
12123 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12124 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12125 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12126 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12127 * s390-tdep.c (s390_gdbarch_init): Likewise.
12128 * sh-tdep.c (sh_gdbarch_init): Likewise.
12129 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12130 * v850-tdep.c (v850_gdbarch_init): Likewise.
12131 * vax-tdep.c (vax_gdbarch_init): Likewise.
12132 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12133
12134 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12135 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12136 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12137 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12138 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12139 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12140 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12141 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12142
12143 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12144
12145 * Makefile.in (acconfig_h): Remove incorrect macro.
12146 (config_h): Define.
12147 (osabi.o): Update dependencies.
12148 * configure.tgt: Set gdb_osabi based on target triplet.
12149 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12150 * configure: Regenerated.
12151 * config.in: Regenerated.
12152 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12153 (GDB_OSABI_DEFAULT): Define if not already defined.
12154 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12155 (set_osabi_string): New variables.
12156 (gdbarch_register_osabi): Add new OS ABI to
12157 gdb_osabi_available_names.
12158 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12159 (set_osabi, show_osabi): New functions.
12160 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12161
12162 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12163
12164 * arch-utils.c (gdbarch_info_init): Set osabi to
12165 GDB_OSABI_UNINITIALIZED.
12166 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12167 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12168 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12169 * gdbarch.c: Regenerated.
12170 * gdbarch.h: Regenerated.
12171 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12172 there's no BFD.
12173 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12174 * osabi.h (enum gdb_osabi): Move to defs.h.
12175 (gdbarch_init_osabi): Update prototype.
12176 * defs.h (enum gdb_osabi): Moved here.
12177 * Makefile.in: Update dependencies.
12178
12179 * alpha-tdep.h: Don't include "osabi.h".
12180 (struct gdbarch_tdep): Remove osabi member.
12181 * alpha-tdep.c: Include "osabi.h".
12182 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12183 iterate over arches. Update call to gdbarch_init_osabi.
12184 (alpha_dump_tdep): Don't dump osabi.
12185 * alpha-linux-tdep.c: Include "osabi.h".
12186 * alpha-osf1-tdep.c: Include "osabi.h".
12187 * alphafbsd-tdep.c: Include "osabi.h".
12188 * alphanbsd-tdep.c: Include "osabi.h".
12189
12190 * arm-tdep.h: Don't include "osabi.h".
12191 (struct gdbarch_tdep): Remove osabi member.
12192 * arm-tdep.c: Include "osabi.h".
12193 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12194 iterate over arches. Update call to gdbarch_init_osabi.
12195 (arm_dump_tdep): Don't dump osabi.
12196 * arm-linux-tdep.c: Include "osabi.h".
12197 * armnbsd-tdep.c: Include "osabi.h".
12198
12199 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12200 Update call to gdbarch_init_osabi.
12201
12202 * i386-tdep.h: Don't include "osabi.h".
12203 (struct gdbarch_tdep): Remove osabi member.
12204 * i386-tdep.c: Include "osabi.h".
12205 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12206 iterate over arches. Update call to gdbarch_init_osabi.
12207 (i386_dump_tdep): Don't dump osabi.
12208 * i386-linux-tdep.c: Include "osabi.h".
12209 * i386-sol2-tdep.c: Include "osabi.h".
12210 * i386bsd-tdep.c: Include "osabi.h".
12211 * i386gnu-tdep.c: Include "osabi.h".
12212 * i386ly-tdep.c: Include "osabi.h".
12213 * i386nbsd-tdep.c: Include "osabi.h".
12214 * i386obsd-tdep.c: Include "osabi.h".
12215
12216 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12217 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12218 check osabi when iterating over arches. Update call to
12219 gdbarch_init_osabi.
12220 (mips_dump_tdep): Don't dump osabi.
12221
12222 * ns32k-tdep.h: Don't include "osabi.h".
12223 (struct gdbarch_tdep): Remove.
12224 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12225 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12226 allocate tdep. Update call to gdbarch_init_osabi.
12227 (ns32k_dump_tdep): Remove.
12228 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12229 * ns32knbsd-tdep.c: Include "osabi.h".
12230
12231 * ppc-tdep.h: Don't include "osabi.h".
12232 (struct gdbarch_tdep): Remove osabi member.
12233 * rs6000-tdep.c: Include "osabi.h".
12234 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12235 osabi when iterating over arches. Update call to
12236 gdbarch_init_osabi.
12237 (rs6000_dump_tdep): Don't dump osabi.
12238 * ppc-linux-tdep.c: Include "osabi.h".
12239 * ppcnbsd-tdep.c: Include "osabi.h".
12240
12241 * sh-tdep.h: Don't include "osabi.h".
12242 (struct gdbarch_tdep): Remove osabi member.
12243 * sh-tdep.c: Include "osabi.h".
12244 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12245 iterate over arches. Update call to gdbarch_init_osabi.
12246 (sh_dump_tdep): Don't dump osabi.
12247 * shnbsd-tdep.c: Include "osabi.h".
12248
12249 * sparc-tdep.c: Include "osabi.h".
12250 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12251 iterate over arches. Update call to gdbarch_init_osabi.
12252 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12253 tdep structure.
12254
12255 * vax-tdep.h: Don't include "osabi.h".
12256 (struct gdbarch_tdep): Remove.
12257 * vax-tdep.c: Include "osabi.h".
12258 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12259 iterate over arches. Don't allocate tdep. Update call
12260 to gdbarch_init_osabi.
12261 (vax_dump_tdep): Remove.
12262 (_initialize_vax_tdep): Update call to gdbarch_register.
12263
12264 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12265
12266 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12267 entirely.
12268 (breakpoint_re_set_one): Don't fetch the value for a disabled
12269 watchpoint.
12270
12271 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12272
12273 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12274 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12275 (COERCE_FLOAT_TO_DOUBLE): Remove.
12276 * gdbarch.c: Regenerate.
12277 * gdbarch.h: Regenerate.
12278 * Makefile.in: Remove value_h from gdbarch_h.
12279 * valops.c (coerce_float_to_double): New variable.
12280 (default_coerce_float_to_double): Remove.
12281 (standard_coerce_float_to_double): Remove.
12282 (value_arg_coerce): Use coerce_float_to_double.
12283 (_initialize_valops): Add "set coerce-float-to-double".
12284 * value.h (default_coerce_float_to_double): Remove prototype.
12285 (standard_coerce_float_to_double): Remove prototype.
12286
12287 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12288 prototyped.
12289 * mdebugread.c (parse_symbol): Likewise.
12290 * stabsread.c (define_symbol): Mark all functions as prototyped.
12291
12292 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12293 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12294 set_gdbarch_coerce_float_to_double.
12295 * arm-tdep.c (arm_gdbarch_init): Likewise.
12296 * frv-tdep.c (frv_gdbarch_init): Likewise.
12297 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12298 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12299 * mips-tdep.c (mips_gdbarch_init): Likewise.
12300 (mips_coerce_float_to_double): Remove.
12301 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12302 (rs6000_coerce_float_to_double): Remove.
12303 * s390-tdep.c (s390_gdbarch_init): Likewise.
12304 * sh-tdep.c (sh_gdbarch_init): Likewise.
12305 (sh_coerce_float_to_double): Remove.
12306 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12307 (sparc_coerce_float_to_double): Remove.
12308 * v850-tdep.c (v850_gdbarch_init): Likewise.
12309 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12310 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12311 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12312 (hppa_coerce_float_to_double): Remove prototype.
12313 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12314
12315 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12316
12317 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12318
12319 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12320
12321 Suggested by Stewart Brown <sb24@avaya.com>:
12322 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12323 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12324 (c_type_print_varspec_suffix): Likewise.
12325
12326 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12327
12328 * configure.in: Don't set and AC_SUBST SUBDIRS.
12329 * configure: Regenerated.
12330
12331 * configure.in: Remove code dealing with shared libraries.
12332 * Makefile.in: Remove HLDFLAGS and HLDENV.
12333 * configure: Regenerated.
12334
12335 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12336
12337 * frame.c (deprecated_frame_xmalloc): New function.
12338 (deprecated_set_frame_saved_regs_hack): New function.
12339 (deprecated_set_frame_extra_info_hack): New function.
12340 * frame.h (deprecated_frame_xmalloc): Declare.
12341 (deprecated_set_frame_saved_regs_hack): Declare.
12342 (deprecated_set_frame_extra_info_hack): Declare.
12343
12344 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12345
12346 * configure.in: Move code that provides the --enable-gdbtk option
12347 right after the code that handles the --enable-tui option, and
12348 polish it somewhat.
12349 * configure: Regenerated.
12350
12351 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12352 AC_CHECK_FUNCS and remove the old check for pread64.
12353 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12354 * acconfig.h (_GNU_SOURCE): Add.
12355 (HAVE_PREAD64): Remove.
12356 * configure, aclocal.m4, config.in: Regenerated.
12357
12358 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12359
12360 * alpha-tdep.c: Use get_frame_saved_regs.
12361 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12362 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12363 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12364 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12365 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12366
12367 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12368
12369 * configure.in: Remove all use of the SUBDIRS variable; add
12370 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12371 code providing the --enable-multi-ice option, and move it right in
12372 front of the code that checks whether gdbserver is supported.
12373 Polish that too.
12374 * configure: Regenerated.
12375 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12376 @SUBDIRS@.
12377
12378 2003-01-03 Andrew Cagney <cagney@redhat.com>
12379
12380 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12381 * avr-tdep.c, cris-tdep.c: Ditto.
12382 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12383 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12384
12385 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12386
12387 * configure.in: Remove --enable-netrom option.
12388 * configure: Regenerated.
12389
12390 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12391
12392 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12393 declaration for `struct re_pattern_buffer' instead.
12394 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12395
12396 2003-01-03 J. Brobecker <brobecker@gnat.com>
12397
12398 * mdebugread.c (parse_symbol): Count until the stEnd matching
12399 the structure name.
12400
12401 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12402
12403 * configure.in: Remove --with-cpu option.
12404 subscripts. Remove evil changequotes here.
12405 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12406 * config.in, configure: Regenerated.
12407
12408 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12409 * configure.in: Cleanup section that sources GDB and BFD configure
12410 subscripts. Remove evil changequotes here.
12411 * config.in, configure: Regenerated.
12412
12413 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12414
12415 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12416 frame accessor methods.
12417 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12418 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12419 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12420 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12421 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12422 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12423 * z8k-tdep.c: Ditto.
12424
12425 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12426
12427 * configure.in: Remove UI_OUT configuration code.
12428 * ada-lang.c: Update assuming UI_OUT is always true.
12429 * Makefile.in (UIOUT_CFLAGS): Remove.
12430 * configure: Regenerated.
12431 * TODO: Remove blurb about elimination of -DUI_OUT.
12432
12433 * configure.in: Move code that provides the --enable-gdbcli,
12434 --enable-gdbmi options right before the code that handles the
12435 --enable-tui option. Polish a bit.
12436 * configure: Regenerated.
12437
12438 * configure.in: Rewrite check for GNU regex and the
12439 --without-included regex option, and move it into the "Checks for
12440 library functions" section. This makes us use the system regex
12441 again by default on systems with version 2 of the GNU C library.
12442 This was apparently broken.
12443 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12444 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12445 * config.in, configure: Regenerated.
12446
12447 * configure.in: Move code that provides the --enable-tui option
12448 before the "Checks for libraries" section. Polish the code
12449 somewhat and set need_curses to yes if we build the TUI. Rewrite
12450 code that looks for a library providing termcap functionality to
12451 match more closely what's done in the Readline library, and move
12452 it into to the "Checks for libraries" section.
12453 * configure: Regenerated.
12454 * Makefile.in (TERMCAP): Remove variable.
12455 * config/i386/go32.mh (TERMCAP): Remove variable.
12456
12457 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12458
12459 * MAINTAINERS: Mention gdb_mbuild.sh.
12460 * gdb_mbuild.sh: Rewrite.
12461
12462 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12463
12464 * configure.in: Fix typo in last change.
12465 * config.in, configure: Regenerated.
12466
12467 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12468
12469 * valarith.c (value_binop): Delete obsolete code and comments.
12470 * configure.host: Ditto.
12471 * buildsym.h (make_blockvector): Ditto.
12472 * buildsym.c (make_blockvector): Ditto.
12473 * defs.h (enum language): Ditto.
12474 (chill_demangle): Ditto.
12475 * elfread.c (elf_symtab_read): Ditto.
12476 * dwarfread.c (CHILL_PRODUCER): Ditto.
12477 (set_cu_language): Ditto.
12478 (handle_producer): Ditto.
12479 * expprint.c (print_subexp): Ditto.
12480 * gdbtypes.c (chill_varying_type): Ditto.
12481 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12482 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12483 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12484 (chill_varying_type): Ditto.
12485 * language.h (_LANG_chill): Ditto.
12486 * language.c (binop_result_type, integral_type): Ditto.
12487 (character_type, string_type, structured_type): Ditto.
12488 (lang_bool_type, binop_type_check): Ditto.
12489 * stabsread.h (os9k_stabs): Ditto.
12490 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12491 (define_symbol, read_type, read_struct_fields): Ditto.
12492 (read_array_type, read_enum_type, read_huge_number): Ditto.
12493 (read_range_type, start_stabs): Ditto.
12494 * symfile.c (init_filename_language_table): Ditto.
12495 (add_psymbol_with_dem_name_to_list): Ditto.
12496 * symtab.c (symbol_init_language_specific): Ditto.
12497 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12498 * symtab.h (struct general_symbol_info): Ditto.
12499 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12500 * typeprint.c (typedef_print): Ditto.
12501 * utils.c (fprintf_symbol_filtered): Ditto.
12502 * valops.c (value_cast, search_struct_field, value_slice): Delete
12503 obsolete code.
12504 (varying_to_slice): Delete function.
12505 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12506 (varying_to_slice): Delete declaration.
12507 * MAINTAINERS: Update.
12508
12509 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12510
12511 * configure.in: Reorganize "Checks for library functions section"
12512 a bit. Remove check for `btowc' and `isascii' functions.
12513 * configure: Regenerated.
12514
12515 * acconfig.h (_MSE_INT_H): Remove.
12516 * configure.in: Create "Checks for header files" section, and move
12517 appropriate tests there. Don't check for objlist.h, wchar.h,
12518 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12519 misdetection fix. Also add "Checks for types", "Checks for
12520 compiler characteristics" and "Checks for library functions"
12521 sections.
12522 * config.in, configure: Regenerated.
12523
12524 * configure.in: Create "Checks for programs" section, and move
12525 appropriate tests there.
12526
12527 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12528
12529 * configure.in: Create "Checks for libraries" section, and move
12530 appropriate tests there. Cleanup check for wctype in libw. Use
12531 AC_SEARCH_LIBS to see whether we need libsocket.
12532 * configure: Regenerated.
12533
12534 For older changes see ChangeLog-2002
12535 \f
12536 Local Variables:
12537 mode: change-log
12538 left-margin: 8
12539 fill-column: 74
12540 version-control: never
12541 End:
This page took 0.385886 seconds and 5 git commands to generate.