2003-09-30 Andrew Cagney <cagney@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2003-09-30 Andrew Cagney <cagney@redhat.com>
2
3 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
4 REGISTER_VIRTUAL_SIZE.
5 * gdbarch.h, gdbarch.c: Regenerate.
6 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
7 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
8 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
9
10 2003-09-29 Andrew Cagney <cagney@redhat.com>
11
12 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
13 DEPRECATED_REGISTER_VIRTUAL_TYPE.
14 * gdbarch.h, gdbarch.c: Regenerate.
15 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
16 * sh64-tdep.c, sparc-tdep.c: Update.
17
18 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
19 * remote-vxmips.c (vx_read_register): Ditto.
20 * remote-vx68.c (vx_read_register): Ditto.
21 * gnu-nat.c (inf_validate_procs): Ditto.
22
23 2003-09-29 J. Brobecker <brobecker@gnat.com>
24
25 * infcall.c (call_function_by_hand): Fix build failure
26 introduced in the previous change to this file.
27
28 2003-09-29 Andrew Cagney <cagney@redhat.com>
29
30 * NEWS: Mention Objective-C.
31
32 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
33
34 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
35 test if the register has been saved on the stack.
36 (arm_scan_prologue_cache): When analysing the instruction
37 "str lr, [sp, #-4]", save the address where lr has been stored.
38
39 2003-09-28 Andrew Cagney <cagney@redhat.com>
40
41 * frame.c (frame_read_unsigned_register): Delete function.
42 * frame.h (frame_read_unsigned_register): Delete declaration.
43 * sparc-tdep.c (sparc_init_extra_frame_info): Use
44 get_frame_register_unsigned.
45 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
46 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
47 * d10v-tdep.c (d10v_print_registers_info): Ditto.
48
49 * frame.h (frame_read_register): Delete declaration.
50 * frame.c (frame_read_register): Delete function.
51 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
52 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
53 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
54 * mips-tdep.c (mips_register_to_value): Ditto.
55 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
56 * d10v-tdep.c (d10v_print_registers_info): Ditto.
57
58 * frame.c (frame_read_signed_register): Delete function.
59 (frame_read_unsigned_register): Update comments.
60 * frame.h (frame_read_signed_register): Delete declaration.
61 * h8300-tdep.c (h8300_print_register): Use
62 get_frame_register_signed.
63 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
64
65 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
66 Rename VALUE_RETURNED_FROM_STACK.
67 * infcmd.c (print_return_value): Update.
68 * infcall.c (call_function_by_hand): Update.
69
70 2003-09-28 Mark Kettenis <kettenis@gnu.org>
71
72 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
73 regcache argument and reverse the order of the other two
74 arguments. Remove local regcache variable. Determine
75 architecture from REGCACHE. Update comments.
76 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
77 reverse the order of the other two arguments. Remove local
78 regcache variable. Determine architecture from REGCACHE. Update
79 comments.
80 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
81 prototypes. Update comments.
82 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
83 comment.
84 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
85 Update.
86 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
87 * i386-interix-nat.c (supply_fpregset): Update.
88 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
89 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
90 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
91 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
92 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
93 Update.
94 * i386obsd-tdep.c (fetch_core_registers): Update.
95 * i386v4-nat.c (supply_fpregset): Update.
96 * x86-64-linux-nat.c (supply_fpregset): Update.
97 * x86-64-linux-tdep.c (fetch_core_registers): Update.
98
99 2003-09-27 Mark Kettenis <kettenis@gnu.org>
100
101 * i386-tdep.h: Put opaque declarations in alphabetical
102 order. Remove spurious whitespace.
103 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
104 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
105 * i386-tdep.c (MM0_REGNUM): Remove define.
106 (i386_mmx_regnum_p): Add gdbarch argument.
107 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
108 Rewrite using new macro definitions for FPU/SSE registers.
109 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
110 definitions from i387-tdep.h.
111 (i386_register_name): Update.
112 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
113 new macro definitions for FPU/SSE registers.
114 (i386_extract_return_value): Determine whether floating-point
115 registers are present by examining REGCACHE's architecture.
116 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
117 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
118 FPU/SSE registers.
119 (i386_register_type): Update.
120 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
121 definitions for FPU registers. Use REGCACHE's architecture to
122 determine the appropriate register numbers.
123 (i386_pseudo_register_read, i386_pseudo_register_write,
124 i386_register_reggroup_p): Update.
125 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
126 TDEP->mm0_regnum.
127 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
128 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
129 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
130 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
131 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
132 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
133 *' to `void *'.
134 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
135 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
136 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
137 definitions for FPU/SSE registers.
138 (FXSAVE_MXCSR_ADDR): New define.
139 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
140 TDEP->mm0_regnum.
141 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
142 (I387_ST0_REGNUM): Define.
143
144 * regcache.h (get_regcache_arch): New prototype.
145 * regcache.c (get_regcache_arch): New function.
146
147 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
148 whitespace.
149
150 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
151 Initialize using ARRAY_SIZE.
152
153 2003-09-27 Andrew Cagney <cagney@redhat.com>
154
155 * arch-utils.c (deprecated_init_frame_pc_default): Rename
156 "init_frame_pc_default".
157 * arch-utils.h (deprecated_init_frame_pc_default): Update.
158 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
159 * vax-tdep.c (vax_gdbarch_init): Update.
160 * v850-tdep.c (v850_gdbarch_init): Update.
161 * sh64-tdep.c (sh64_gdbarch_init): Update.
162 * s390-tdep.c (s390_gdbarch_init): Update.
163 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
164 * mcore-tdep.c (mcore_gdbarch_init): Update.
165 * h8300-tdep.c (h8300_gdbarch_init): Update.
166 * cris-tdep.c (cris_gdbarch_init): Update.
167 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
168
169 2003-09-26 Mark Kettenis <kettenis@gnu.org>
170
171 * regset.h: New file.
172 * Makefile.in (regset_h): Add.
173
174 2003-09-25 Andrew Cagney <cagney@redhat.com>
175
176 * frame.h (deprecated_frame_saved_regs): Rename
177 get_frame_saved_regs.
178 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
179 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
180 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
181 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
182 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
183
184 2003-09-25 Andrew Cagney <cagney@redhat.com>
185
186 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
187 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
188 and Java.
189 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
190 arm*-*-* do not use the new frame code.
191
192 2003-09-25 David Carlton <carlton@kealia.com>
193
194 * c-exp.y: Remove 'register' declarations.
195 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
196
197 2003-09-25 David Carlton <carlton@kealia.com>
198
199 * c-exp.y: Include cp-support.h. Add qualified_type.
200 (yylex): Delete nested type hack; add comments.
201 * cp-namespace.c (cp_lookup_nested_type): New function.
202 * cp-support.h: Declare cp_lookup_nested_type.
203 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
204 instead of value_struct_elt_for_reference.
205 * valops.c: Include cp-support.h.
206 (value_aggregate_elt): New function.
207 (value_namespace_elt): Ditto.
208 (value_struct_elt_for_reference): Make static.
209 * value.h: Delete declaration of value_struct_elt_for_reference;
210 add declaration for value_aggregate_elt.
211 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
212 (valops.o): Ditto.
213
214 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
215
216 * stack.c: Include "reggroups.h".
217 (frame_info): Only display registers in all_reggroup.
218 * Makefile.in (stack.o): Update dependencies.
219
220 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
221
222 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
223 "add ip, sp #n" in the prologue.
224 (arm_scan_prologue): Ditto.
225
226 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
227
228 * MAINTAINERS (write after approval): Add myself.
229
230 2003-09-25 Andreas Schwab <schwab@suse.de>
231
232 * m68k-tdep.c: Include "dwarf2-frame.h".
233 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
234 * Makefile.in (m68k-tdep.o): Update dependencies.
235
236 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
237
238 * sh-tdep.c (struct frame_extra_info): Remove.
239 (struct sh_frame_cache): New structure.
240 (GET_SOURCE_REG): New macro extracting source register of an opcode.
241 (GET_TARGET_REG): Ditto but target register.
242 (GET_PUSHED_REG): Remove.
243 (IS_MOV_ARG_TO_REG): New macro.
244 (IS_MOV_ARG_TO_IND_R14): New macro.
245 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
246 (IS_MOVW_PCREL_TO_REG): New macro.
247 (IS_MOVL_PCREL_TO_REG): New macro.
248 (IS_SUB_REG_FROM_SP): New macro.
249 (IS_ARG_MOV): Remove.
250 (IS_MOV_TO_R14): Remove.
251 (IS_RESTORE_FP): New macro.
252 (IS_RTS): New macro.
253 (IS_LDS): New macro.
254 (IS_MOV_FP_SP): New macro.
255 (IS_ADD_REG_TO_FP): New macro.
256 (IS_ADD_IMM_FP): New macro.
257 (sh_skip_prologue_hard_way): Remove.
258 (sh_saved_pc_after_call): Remove.
259 (sh_frame_chain): Remove.
260 (sh_find_callers_reg): Remove.
261 (sh_nofp_frame_init_saved_regs): Remove.
262 (sh_fp_frame_init_saved_regs): Remove.
263 (sh_init_extra_frame_info): Remove.
264 (sh_analyze_prologue): New function.
265 (sh_skip_prologue): Remove deprecated code. Rely on new function
266 sh_analyze_prologue when after_prologue fails.
267 (sh_frame_saved_pc): Remove.
268 (sh_alloc_frame_cache): New function.
269 (sh_frame_cache): Ditto.
270 (sh_frame_prev_register): Ditto.
271 (sh_frame_this_id): Ditto.
272 (sh_frame_unwind): New structure defining the heuristic frame
273 sniffer interface.
274 (sh_frame_sniffer): New function.
275 (sh_unwind_sp): Ditto.
276 (sh_unwind_pc): Ditto.
277 (sh_unwind_dummy_id): Ditto.
278 (sh_frame_base_address): Ditto.
279 (sh_frame_base): New structure defining new frame base code.
280 (sh_in_function_epilogue_p): New function.
281 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
282 code and to call all new code instead. Initialize dwarf2 and
283 heuristic frame sniffer.
284
285 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
286
287 * parser-defs.h (struct exp_descriptor): New definition, containing
288 language-specific info for printing, prefixifying, dumping, and
289 evaluating expressions.
290 (exp_descriptor_standard): Declare new variable.
291 (print_subexp): Make global and declare here (from expprint.c).
292 (dump_subexp): Ditto.
293 (dump_subexp_body_standard): Declare.
294 (operator_length_standard): Declare.
295 (op_name_standard): Declare.
296 (print_subexp): Declare.
297 (print_subexp_standard): Declare.
298
299 * language.h (struct language_defn): Add la_exp_desc field to hold
300 pointer to table for language-specific operators.
301 Remove evaluate_exp field, which is now in struct exp_descriptor.
302
303 * parse.c (operator_length): Move most code to new
304 operator_length_standard function. Use language-specific information.
305 (operator_length_standard): New function taking most code from
306 operator_length.
307 (exp_descriptor_standard): New constant.
308
309 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
310 and OP_EXTENDED_LAST.
311
312 * expprint.c (print_subexp): Use language-specific print_subexp.
313 Make global; remove static declaration.
314 Move most code to print_subexp_standard.
315 (print_subexp_standard): New function, containing code formerly in
316 print_subexp.
317 (op_name): Add expression to argument signature.
318 Use langauge-specific op_name.
319 Move most code to op_name_standard.
320 (op_name_standard): New function, containing code formerly in op_name.
321 (dump_subexp): Use new version of op_name function.
322 Use language-specific dump_subexp_body, and move most existing code to
323 dump_subexp_body_standard.
324 (dump_raw_expression): Use new op_name interface.
325 (dump_subexp_body): Move most code to dump_subexp_body_standard.
326 (dump_subexp_body_standard): New function, containing code formerly
327 in dump_subexp_body.
328
329 * language.c (unknown_language): Add default la_exp_desc field and
330 remove evaluate_exp field.
331 (auto_language): Ditto.
332 (local_language): Ditto.
333 * f-lang.c (f_language_defn): Ditto.
334 * c-lang.c (c_language_defn): Ditto.
335 (cplus_language_defn): Ditto.
336 (asm_language_defn): Ditto.
337 (minimal_language_defn): Ditto.
338 * p-lang.c (pascal_language_defn): Ditto.
339 * m2-lang.c (m2_language_defn): Ditto.
340 * objc-lang.c (objc_language_defn): Ditto.
341
342 * jv-lang.c (exp_descriptor_java): New variable, containing
343 Java-specific expression evaluator.
344 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
345 field.
346 * scm-lang.c (exp_descriptor_scm): New variable, containing
347 Scheme-specific expression evaluator.
348 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
349 field.
350 * objc-lang.c (print_object_command): Take evaluate_exp from the
351 la_exp_desc field.
352
353 * Makefile.in (eval.o): Add dependency on parser-defs.h.
354
355 * eval.c: Include parser-defs.h for the full declaration of
356 la_exp_desc's type.
357 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
358
359 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
360
361 * parser-defs.h (operator_length): Declare.
362
363 * parse.c (length_of_subexp): Use operator_length to get operator
364 lengths and arities for operators.
365 Move most code to new operator_length function.
366 (operator_length): New function absorbing most code from
367 length_of_subexp.
368 (prefixify_subexp): Remove large case and use operator_length instead.
369 (parse_exp_1): Use renamings:
370 dump_prefix_expression => dump_raw_expression and
371 dump_postfix_expression => dump_prefix_expression.
372
373 * expression.h (dump_prefix_expression): Rename to ...
374 (dump_raw_expression): New name.
375 (dump_postfix_expression): Rename to ...
376 (dump_prefix_expression): New name.
377
378 * expprint.c (dump_subexp): Make global. Add comment.
379 Move most existing code to dump_subexp_body.
380 (dump_subexp_body): New function.
381 (dump_prefix_expression): Rename to dump_raw_expression.
382 Remove attempt to print the expression via print_expression: it can't
383 work before the expression is prefixified.
384 (dump_raw_expression): Renamed from dump_prefix_expression.
385 (dump_postfix_expression): Rename to dump_prefix_expression, since
386 that's what it does.
387 Remove 'note' parameter, since this routine must be used on
388 prefixified expression.
389 (dump_prefix_expression): Renamed from dump_postfix_expression.
390
391 2003-09-22 Jim Blandy <jimb@redhat.com>
392
393 * dwarf2read.c (read_array_type): When building the type for an
394 array of unspecified length, make sure to choose the upper bound
395 so that the array's total length comes out to be zero --- that's
396 how we represent such arrays.
397
398 2003-09-22 Michael Chastain <mec@shout.net>
399
400 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
401
402 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
403
404 * top.c (quit_force): Fix indirect call to quit_target so
405 a struct qt_args pointer is passed.
406
407 2003-09-22 Andrew Cagney <cagney@redhat.com>
408
409 * arch-utils.h (init_frame_pc_noop): Delete declaration.
410 * arch-utils.c (init_frame_pc_noop): Delete function.
411 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
412 "init_frame_pc".
413 * mips-tdep.c (mips_gdbarch_init): Ditto.
414 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
415 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
416 declaration.
417 (DEPRECATED_INIT_FRAME_PC): Delete macro.
418 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
419 declaration.
420 (DEPRECATED_INIT_FRAME_PC): Delete macro.
421
422 2003-09-22 Anthony Green <green@redhat.com>
423
424 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
425 declaration.
426
427 2003-09-20 Andrew Cagney <cagney@redhat.com>
428
429 * breakpoint.c: Eliminate ARGSUSED.
430 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
431 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
432 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
433 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
434 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
435 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
436 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
437 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
438 * wince.c, remote-vx.c: Ditto.
439
440 * cli/cli-script.c: Remove "register" attributes.
441 * config/pa/tm-hppa.h: Ditto.
442 * cli/cli-decode.c: Ditto.
443 * cli/cli-cmds.c: Ditto.
444
445 2003-09-19 Andrew Cagney <cagney@redhat.com>
446
447 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
448 DEPRECATED_NPC_REGNUM.
449 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
450
451 2003-09-19 Christopher Faylor <cgf@redhat.com>
452
453 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
454
455 2003-09-19 Jim Blandy <jimb@redhat.com>
456
457 * macrotab.c (macro_include): Use the correct comparison to find
458 the appropriate place for this inclusion in the list.
459
460 2003-09-19 Andrew Cagney <cagney@redhat.com>
461
462 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
463 (DEPRECATED_HPUX_TEXT_END): Define.
464 (deprecated_hpux_text_end): Declare.
465 (struct target_ops): Declare opaque.
466 * hppah-nat.c (text_end): Make static.
467 (deprecated_hpux_text_end): New function.
468 * exec.c (text_end): Delete global variable.
469 (NEED_TEXT_START_END): Do not define.
470 (exec_file_attach): Replace code computing "text_end" code with
471 call to DEPRECATED_HPUX_TEXT_END.
472
473 2003-09-19 Andrew Cagney <cagney@redhat.com>
474
475 * utils.c (align_up, align_down): New functions.
476 * defs.h (align_up, align_down): Declare.
477 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
478 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
479 and "align_down".
480 (round_up, round_down): Delete functions.
481 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
482 "align_down".
483 (ROUND_DOWN, ROUND_UP): Delete macros.
484 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
485 * h8300-tdep.c: Replace "round_up" and "round_down" with
486 "align_up" and "align_down".
487 (round_up, round_down): Delete macros.
488 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
489 "align_down".
490 (ROUND_UP, ROUND_DOWN): Delete macros.
491
492 2003-09-18 J. Brobecker <brobecker@gnat.com>
493
494 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
495 hard-coded constant. Use the proper machine name instead.
496
497 2003-09-17 Andrew Cagney <cagney@redhat.com>
498
499 * sparc-tdep.c (legacy_register_name): Delete function.
500 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
501 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
502 * infcmd.c (gdb_register_name): Delete variable.
503 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
504 REGISTER_NAME and "tm.h".
505 * gdbarch.h, gdbarch.c: Regenerate.
506 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
507 REGISTER_NAMES in comments.
508 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
509 * m68klinux-nat.c (regmap): Ditto.
510
511 2003-09-17 Jim Blandy <jimb@redhat.com>
512
513 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
514
515 2003-09-17 Andrew Cagney <cagney@redhat.com>
516
517 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
518 (ppcnbsd_init_abi): Set "use_struct_convention" to
519 "ppcnbsd_use_struct_convention".
520
521 2003-09-17 Mark Kettenis <kettenis@gnu.org>
522
523 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
524 * gdbarch.h, gdbarch.c: Regenerate.
525 (stabs_argument_has_addr): New architecture method.
526 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
527 * arch-utils.c: Include "buildsym.h".
528 (default_stabs_argument_has_addr): New function.
529 * stabsread.c (define_symbol): Use stabs_argument_has_addr
530 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
531
532 2003-09-17 Andrew Cagney <cagney@redhat.com>
533
534 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
535 * gdbarch.h, gdbarch.c: Regenerate.
536 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
537 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
538 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
539 * sparcnbsd-tdep.c: Update.
540
541 2003-09-17 Andrew Cagney <cagney@redhat.com>
542
543 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
544 * gdbarch.h, gdbarch.c: Regenerate.
545 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
546 * d10v-tdep.c, frame.c: Update.
547 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
548 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
549 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
550 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
551 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
552 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
553 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
554 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
555 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
556 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
557 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
558 * config/pa/nm-hppah.h: Update.
559
560 2003-09-16 Andrew Cagney <cagney@redhat.com>
561
562 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
563 "use_struct_convention" to "ppc_linux_use_struct_convention".
564 (ppc_linux_use_struct_convention): New function.
565 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
566 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
567 "rs6000_use_struct_convention".
568 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
569 declaration.
570 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
571 Delete function.
572
573 2003-09-16 Andrew Cagney <cagney@redhat.com>
574
575 * buildsym.c: Remove more occurances of "register".
576 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
577 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
578 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
579 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
580 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
581 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
582 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
583 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
584
585 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
586
587 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
588 numbers to enumeration values.
589 * sh-tdep.c: Accomodate above change.
590 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
591 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
592 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
593 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
594 (IS_FPUSH): Rename from IS_FMOV.
595 (sh_extract_struct_value_address): Remove useless comment.
596 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
597 instead of own local values.
598 (sh_dump_tdep): Remove.
599 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
600 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
601
602 2003-09-15 Andrew Cagney <cagney@redhat.com>
603
604 * doublest.c (convert_floatformat_to_doublest): No longer need to
605 cast "exp_bias" to an int. Reverts 2002-12-04 change.
606
607 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
608
609 * values.c (unpack_double): Call floatformat_is_valid.
610
611 2003-09-15 Mark Kettenis <kettenis@gnu.org>
612
613 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
614 ps_strings into a long.
615
616 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
617 _initialize_am64fbsd_nat.
618
619 2003-09-15 Kevin Buettner <kevinb@redhat.com>
620
621 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
622 associated with DW_AT_ranges attribute is out of bounds.
623
624 2003-09-15 David Lecomber <dsl@sources.redhat.com>
625
626 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
627
628 2003-09-14 Michael Chastain <mec@shout.net>
629
630 * config/m68k/nm-apollo68v.h: Delete.
631 * config/m68k/xm-apollo68v.h: Delete.
632
633 2003-09-14 Andrew Cagney <cagney@redhat.com>
634
635 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
636 * dcache.c: Update copyrights and descriptions.
637 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
638
639 2003-09-14 Andrew Cagney <cagney@redhat.com>
640
641 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
642 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
643
644 2003-09-14 Andrew Cagney <cagney@redhat.com>
645
646 * alpha-nat.c: Remove some occurances of "register".
647 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
648 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
649 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
650 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
651 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
652 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
653 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
654 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
655 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
656 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
657 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
658 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
659 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
660 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
661 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
662 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
663 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
664 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
665 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
666 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
667 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
668 * values.c, vax-tdep.c, xcoffread.c: Ditto.
669
670 2003-09-13 Andrew Cagney <cagney@redhat.com>
671
672 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
673 * ppc-tdep.h (struct regcache): Declare opaque.
674 * objfiles.h (struct objfile_data): Declare opaque.
675 * cp-support.h (struct objfile): Declare opaque.
676 * linux-nat.h (target_waitstatus): Declare opaque.
677
678 2003-09-14 Mark Kettenis <kettenis@gnu.org>
679
680 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
681 (stabs_argument_has_addr): New architecture method.
682 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
683 * arch-utils.c: Include "buildsym.h".
684 (default_stabs_argument_has_addr): New function.
685 * stabsread.c (define_symbol): Use stabs_argument_has_addr
686 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
687
688 * cris-tdep.c (cris_gdbarch_init): Set
689 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
690 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
691 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
692 * mips-tdep.c (mips_gdbarch_init): Likewise.
693 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
694 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
695
696 2003-09-13 Andrew Cagney <cagney@redhat.com>
697
698 * values.c (using_struct_return): Delete "function" and "funcaddr"
699 parameters.
700 * value.h (using_struct_return): Update declaration.
701 * infcmd.c (finish_command_continuation): Update.
702 (finish_command): Update.
703 * infcall.c (call_function_by_hand): Update.
704 * eval.c (evaluate_subexp_standard): Update.
705
706 2003-09-13 Christopher Faylor <cgf@redhat.com>
707
708 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
709 SSE registers since gdb will not operate correctly without this.
710 Restore include file ordering munged in previous change.
711 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
712
713 2003-09-13 Mark Kettenis <kettenis@gnu.org>
714
715 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
716 REG_STRUCT_HAS_ADDR.
717 * gdbarch.c, gdbarch.h: Updated.
718 * infcall.c (call_function_by_hand): Update.
719 * stabsread.c (define_symbol): Updated.
720
721 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
722
723 2003-09-12 Christopher Faylor <cgf@redhat.com>
724
725 * win32-nat.c: Reorganize so that defines used by target headers are
726 actually defined by the system headers.
727 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
728 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
729
730 2003-09-12 Jim Blandy <jimb@redhat.com>
731
732 * dbxread.c (read_dbx_symtab): Don't report an internal error if
733 the file has no .data, .bss, or .rodata sections. Instead wait
734 until we see a variable alleged to live in one of those sections.
735
736 * dbxread.c (read_dbx_symtab): If we have no .data section and no
737 .bss section, presume that any variables we find live in the
738 .rodata section.
739
740 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
741 offsets for global and static variables.
742
743 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
744 symbol types are, by definition, in the .data section, so it is
745 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
746 If there is no .data section, there should be no N_DATA or N_DATA
747 | N_EXT symbols.
748
749 2003-09-12 Mark Kettenis <kettenis@gnu.org>
750
751 * amd64fbsd-tdep.c: Fix sigtramp recognition.
752 (amd64fbsd_sigcontext_addr): Rewrite.
753 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
754 with correct values.
755 (amd64fbsd_sc_reg_offset): Initialize with correct values.
756 (amd64fbsd_init_abi): Fix typo.
757
758 2003-09-12 Andrew Cagney <cagney@redhat.com>
759
760 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
761 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
762
763 2003-09-12 Andrew Cagney <cagney@redhat.com>
764
765 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
766 "entry_file_highpc". Update comments.
767 * defs.h (deprecated_inside_entry_file): Rename
768 "inside_entry_file".
769 * blockframe.c (deprecated_inside_entry_file): Rename
770 "inside_entry_file".
771 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
772 * vax-tdep.c (vax_frame_chain): Update.
773 * sh64-tdep.c (sh64_frame_chain): Update.
774 * sh-tdep.c (sh_frame_chain): Update.
775 * rs6000-tdep.c (rs6000_frame_chain): Update.
776 * ns32k-tdep.c (ns32k_frame_chain): Update.
777 * mips-tdep.c (mips_frame_chain): Update.
778 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
779 * m32r-tdep.c (m32r_frame_this_id): Update.
780 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
781 * frv-tdep.c (frv_frame_this_id): Update.
782 * d10v-tdep.c (d10v_frame_this_id): Update.
783 * cris-tdep.c (cris_frame_chain): Update.
784 * blockframe.c (legacy_frame_chain_valid): Update.
785 * avr-tdep.c (avr_frame_this_id): Update.
786 * arm-tdep.c (arm_prologue_this_id): Update.
787 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
788 * objfiles.c (objfile_relocate): Update.
789 * mipsread.c (mipscoff_symfile_read): Update.
790 (mipscoff_symfile_read): Update.
791 * mdebugread.c (parse_partial_symbols): Update.
792 * dwarfread.c (read_file_scope): Update.
793 * dwarf2read.c (read_file_scope): Update.
794 * dbxread.c (read_dbx_symtab): Update.
795 (read_dbx_symtab): Update.
796 * coffread.c (complete_symtab): Update.
797
798 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
799
800 * top.c (quit_target): New static helper function.
801 (quit_force): Moved code to quit_target(). Call quit_target()
802 via catch_errors() to catch errors during quit.
803
804 2003-09-11 David Carlton <carlton@kealia.com>
805
806 * buildsym.c (finish_block): Use allocate_block to allocate the
807 block.
808 * mdebugread.c (new_block): Add FIXME.
809
810 2003-09-11 David Carlton <carlton@kealia.com>
811
812 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
813 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
814 (recursive_dump_type): Ditto.
815 * printcmd.c (print_formatted): Ditto.
816 * typeprint.c (print_type_scalar): Ditto.
817 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
818 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
819 * cp-support.h: Declare cp_check_possible_namespace_symbols,
820 maint_cplus_cmd_list.
821 * cp-support.c: Make maint_cplus_cmd_list extern.
822 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
823 command.h.
824 (lookup_symbol_file): Look in possible namespace blocks when
825 appropriate.
826 (initialize_namespace_symtab): New.
827 (get_possible_namespace_block, free_namespace_block)
828 (check_possible_namespace_symbols)
829 (check_possible_namespace_symbols_loop)
830 (check_one_possible_namespace_symbol)
831 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
832 (_initialize_cp_namespace): Ditto.
833 * block.h: Declare allocate_block.
834 * block.c (allocate_block): New.
835 * jv-lang.c (get_java_class_symtab): Allocate blocks via
836 allocate_block.
837 * symfile.h: Update declaration of add_psymbol_to_list.
838 * symfile.c (add_psymbol_to_list): Return the partial symbol in
839 question.
840 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
841 scan_partial_symbols_call.
842 (scan_partial_symbols): Add NAMESPACE argument; update calls to
843 helper functions.
844 (add_partial_symbol): If necessary, scan mangled names for names
845 of namespaces.
846 (add_partial_namespace): Add NAMESPACE argument; generate partial
847 symbols associated to namespaces.
848 (add_partial_enumeration): Add NAMESPACE argument.
849 (new_symbol): Allow namespace syms.
850 (read_namespace): Generate namespace syms.
851 * objfiles.h: Add opaque declaration of struct symtab.
852 (struct objfile): Add cp_namespace_symtab member.
853 * objfiles.c (allocate_objfile): Set
854 objfile->cp_namespace_symtab.
855 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
856 dictionary_h, command_h.
857
858 2003-09-11 Andrew Cagney <cagney@redhat.com>
859
860 * rs6000-tdep.c (rs6000_push_dummy_call): Use
861 regcache_raw_write_signed to set SP_REGNUM, move the operation to
862 near the function's end.
863 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
864 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
865 regcache_raw_write_signed to set SP_REGNUM.
866
867 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
868
869 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
870 orig_addrs is set up properly.
871
872 2003-09-11 Andrew Cagney <cagney@redhat.com>
873
874 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
875 * gdbarch.h, gdbarch.c: Re-generate.
876 * infcall.c (call_function_by_hand): Update.
877 * hppa-tdep.c (hppa_push_arguments): Update.
878 * ada-lang.c (place_on_stack): Update.
879 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
880 * sparc-tdep.c (sparc_gdbarch_init): Update.
881 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
882 * hppa-tdep.c (hppa_gdbarch_init): Update.
883 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
884 stack_align.
885
886 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
887
888 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
889 register do need a frame.
890
891 2003-09-11 Andrew Cagney <cagney@redhat.com>
892
893 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
894 buildable since GDB 5.0.
895 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
896 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
897 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
898 * irix4-nat.c: Delete file.
899 * config/mips/irix4.mh: Delete file.
900 * config/mips/irix3.mh: Delete file.
901 * config/mips/irix3.mt: Delete file.
902 * config/mips/tm-irix3.h: Delete file.
903 * config/mips/nm-irix3.h: Delete file.
904 * config/mips/xm-irix3.h: Delete file.
905 * config/mips/nm-irix4.h: Delete file.
906 * config/mips/xm-irix4.h: Delete file.
907 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
908
909 2003-09-10 J. Brobecker <brobecker@gnat.com>
910
911 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
912 * Makefile.in (hppa-tdep.o): Update dependencies.
913
914 2003-09-10 James E Wilson <wilson@specifixinc.com>
915
916 * MAINTAINERS: Change my e-mail address. Move to paper trail
917 section.
918
919 2003-09-10 Kevin Buettner <kevinb@redhat.com>
920
921 * MAINTAINERS (frv): New ISA entry.
922
923 2003-09-10 Kevin Buettner <kevinb@redhat.com>
924
925 * frv-tdep.c (dis-asm.h): Include.
926 * Makefile.in (frv-tdep.o): Update dependencies.
927
928 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
929
930 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
931 Fix typo for high range of floating registers.
932
933 2003-09-09 David Carlton <carlton@kealia.com>
934
935 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
936 highpc initialization here out of scan_partial_symbols.
937 (scan_partial_symbols): Restructure into a recursive version,
938 calling add_partial_namespace and add_partial_enumeration when
939 appropriate.
940 (add_partial_namespace): New.
941 (add_partial_enumeration, locate_pdi_sibling): Ditto.
942
943 2003-09-09 Andrew Cagney <cagney@redhat.com>
944
945 * rs6000-tdep.c (ppc_push_return_address): Delete function.
946 (rs6000_push_dummy_call): Set LR to BP_ADDR.
947 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
948 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
949
950 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
951 (rs6000_push_dummy_call): Set the "TOC" register.
952
953 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
954 methods "max_register_raw_size", "max_register_virtual_size" or
955 "register_virtual_size".
956
957 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
958
959 * MAINTAINERS: Update my e-mail address.
960
961 2003-09-09 Andrew Cagney <cagney@redhat.com>
962
963 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
964 (rs6000_push_dummy_call): Store the struct return address.
965 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
966
967 2003-09-09 Andrew Cagney <cagney@redhat.com>
968
969 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
970 "ppc_sysv_abi_push_arguments".
971 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
972 "ppc_sysv_abi_push_arguments".
973 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
974 instead of "push_arguments".
975 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
976
977 2003-09-09 Andrew Cagney <cagney@redhat.com>
978
979 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
980 instead of CALL_DUMMY_ADDRESS.
981
982 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
983
984 * p-lang.c: Eliminate "register".
985 * c-lang.c: Ditto.
986 * expprint.c: Ditto.
987 * f-lang.c: Ditto.
988 * jv-lang.c: Ditto.
989 * language.c: Ditto.
990 * m2-lang.c: Ditto.
991 * parse.c: Ditto.
992 * scm-lang.c: Ditto.
993 * objc-lang.c: Ditto.
994
995 2003-09-09 Nick Clifton <nickc@redhat.com>
996
997 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
998
999 2003-09-04 Andrew Cagney <cagney@redhat.com>
1000
1001 * avr-tdep.c: Include "dis-asm.h".
1002 * cris-tdep.c: Include "dis-asm.h".
1003 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1004 instead of corresponding typedef.
1005 * h8300-tdep.c: Include "dis-asm.h".
1006 * ia64-tdep.c: Include "dis-asm.h".
1007 * i386-tdep.c: Include "dis-asm.h".
1008 (i386_print_insn): Use "struct disassemble_info" instead of
1009 corresponding typedef.
1010 * m68k-tdep.c: Include "dis-asm.h".
1011 * mcore-tdep.c: Include "dis-asm.h".
1012 * mips-tdep.c: Include "dis-asm.h".
1013 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1014 instead of corresponding typedef.
1015 * ns32k-tdep.c: Include "dis-asm.h".
1016 * s390-tdep.c: Include "dis-asm.h".
1017 * sparc-tdep.c: Include "dis-asm.h".
1018 * vax-tdep.c: Include "dis-asm.h".
1019 * v850-tdep.c: Include "dis-asm.h".
1020 * mn10300-tdep.c: Include "dis-asm.h".
1021 * rs6000-tdep.c: Include "dis-asm.h".
1022 * xstormy16-tdep.c: Include "dis-asm.h".
1023 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1024 print_insn_xstormy16.
1025 * Makefile.in (v850-tdep.o): Update dependencies.
1026 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1027 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1028 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1029 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1030 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1031 (gdbarch_h): Remove $(dis_asm_h).
1032 * disasm.c: Include "dis-asm.h".
1033 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1034 corresponding typedef.
1035 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1036 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1037 * gdbarch.sh: Do not include "dis-asm.h".
1038 (struct disassemble_info): Declare opaque.
1039 (TARGET_PRINT_INSN): Update declaration.
1040 * gdbarch.h, gdbarch.c: Re-generate.
1041
1042 2003-09-08 Andrew Cagney <cagney@redhat.com>
1043
1044 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1045 CALL_DUMMY_ADDRESS, change to a predicate.
1046 * gdbarch.h, gdbarch.c: Re-generate.
1047 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1048 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1049 * infcall.c (call_function_by_hand): Ditto.
1050 * sparc-tdep.c (sparc_push_return_address): Ditto.
1051 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1052 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1053 CALL_DUMMY_ADDRESS with entry_point_address.
1054 * v850-tdep.c (v850_push_return_address): Ditto.
1055 * s390-tdep.c (s390_push_return_address): Ditto.
1056 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1057 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1058 * mcore-tdep.c (mcore_push_return_address): Ditto.
1059 * cris-tdep.c (cris_push_return_address): Ditto.
1060 * arm-tdep.c (arm_push_return_address): Ditto.
1061
1062 2003-09-08 Andrew Cagney <cagney@redhat.com>
1063
1064 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1065 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1066 and REG_UNMODIFIED to REG_SAME_VALUE.
1067 (execute_cfa_program): Update.
1068 (dwarf2_frame_cache): Update. Initialize table to
1069 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1070 location.
1071 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1072
1073 2003-09-08 Andrew Cagney <cagney@redhat.com>
1074
1075 * gnu-nat.c: Remove "inline" function attribute.
1076 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1077
1078 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1079
1080 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1081 target.
1082
1083 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1084
1085 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1086 (frame_extra_info): Rename this struct to frv_unwind_cache.
1087 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1088 Add fields ``prev_sp'' and ``base''.
1089 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1090 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1091 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1092 Delete.
1093 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1094 Revise all callers. Fill in the unwind cache argument and make
1095 other adjustments to account for new frame mechanisms.
1096 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1097 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1098 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1099 (frv_frame_unwind, frv_frame_base): New structs.
1100 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1101 additional arguments expected by this method and adjust function
1102 body accordingly.
1103 (frv_gdbarch_init): Remove calls to the following functions:
1104 set_gdbarch_deprecated_init_frame_pc(),
1105 set_gdbarch_deprecated_saved_pc_after_call(),
1106 set_gdbarch_deprecated_frame_chain(),
1107 set_gdbarch_deprecated_frame_saved_pc(),
1108 set_gdbarch_deprecated_frame_init_saved_regs(),
1109 set_gdbarch_deprecated_push_arguments(),
1110 set_gdbarch_deprecated_push_return_address(),
1111 set_gdbarch_deprecated_pop_frame(),
1112 set_gdbarch_deprecated_call_dummy_words(),
1113 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1114 set_gdbarch_deprecated_init_extra_frame_info(),
1115 set_gdbarch_deprecated_dummy_write_sp(), and
1116 set_gdbarch_deprecated_pc_in_call_dummy().
1117 Add calls to the following functions:
1118 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1119 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1120 frame_base_set_default().
1121 * Makefile.in (frv-tdep.o): Update dependencies.
1122
1123 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1124
1125 * dwarf2-frame.c (read_encoded_value): Add support for
1126 DW_EH_PE_aligned encoding.
1127
1128 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1129
1130 * infrun.c (normal_stop): Don't print a message if the inferior
1131 has exited.
1132
1133 2003-09-08 Jim Blandy <jimb@redhat.com>
1134
1135 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1136 * dbxread.c: #include "gdb_assert.h".
1137 (read_dbx_symtab): If the objfile has no .data section, use the
1138 section index for the .bss section instead.
1139
1140 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1141
1142 * frame.c (deprecated_safe_get_selected_frame): New function.
1143 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1144 * findvar.c (read_var_value): Call it.
1145
1146 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1147
1148 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1149 (sh64-tdep.o): Add dependencies.
1150 * configure.tgt: Add FIXME to sh-*-linux*.
1151 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1152 (sh_gdbarch_init): Always set correct sh_show_regs function
1153 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1154 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1155 * sh64-tdep.c: New file, containing all sh64 related code from
1156 sh-tdep.c.
1157 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1158 * config/sh/linux.mt (TDEPFILES): Ditto.
1159 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1160 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1161 * config/sh/wince.mt (TDEPFILES): Ditto.
1162
1163 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1164
1165 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1166 (stop_wait_callback): Handle !lp->signalled also.
1167 (lin_lwp_has_pending, flush_callback): New functions.
1168 (lin_lwp_wait): Call flush_callback.
1169 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1170 (linux_proc_pending_signals): New function.
1171 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1172
1173 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1174
1175 From Nick Kelsey <nickk@ubicom.com>:
1176 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1177 when the stop PC is at the beginning of a function also.
1178
1179 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1180
1181 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1182 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1183
1184 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1185
1186 * sol-thread.c: Include "gdb_string.h".
1187
1188 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1189
1190 * gcore.c: Reorder include files in alphabetical order. Include
1191 "gdb_assert.h". Various coding style fixes.
1192 (derive_stack_segment, derive_heap_segment): Replace check for
1193 non-null BOTTOM and TOP with gdb_assert.
1194 (derive_heap_segment): Replace check for successful creation of
1195 ZERO with gdb_assert.
1196 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1197
1198 2003-09-04 Andrew Cagney <cagney@redhat.com>
1199
1200 * thread-db.c (verbose_dlsym): New function.
1201 (thread_db_load): Use verbose_dlsym
1202 (thread_db_new_objfile): Print that libthread_db was loaded, and
1203 that thread debugging was enabled.
1204
1205 2003-09-04 Andrew Cagney <cagney@redhat.com>
1206
1207 * configure.tgt: Add "mips64*-*-*" target. Delete
1208 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1209 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1210 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1211 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1212 mips*-sony-*, and mips64*-*-elf* targets.
1213 * config/mips/embedl.mt: Delete file.
1214 * config/mips/embedl64.mt: Delete file.
1215 * config/mips/mips.mt: Delete file.
1216 * config/mips/mips64.mt: Delete file.
1217 * config/mips/tm-embed.h: Delete file.
1218 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1219 * config/mips/embed64.mt: Delete out-of-date comment.
1220
1221 2003-09-04 Andrew Cagney <cagney@redhat.com>
1222
1223 * hppa-tdep.c (hppa_gdbarch_init): Set
1224 "have_nonsteppable_watchpoint".
1225 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1226 * mips-tdep.c (mips_dump_tdep): Do not print
1227 HAVE_NONSTEPPABLE_WATCHPOINT.
1228 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1229 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1230 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1231 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1232
1233 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1234
1235 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1236 unused code. Add comment.
1237
1238 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1239
1240 * breakpoint.c (watchpoint_check): Check for pc being in an
1241 epilogue if watchpoint frame couldn't be found.
1242
1243 2003-09-04 Andrew Cagney <cagney@redhat.com>
1244
1245 * Makefile.in: Re-generate all dependencies.
1246
1247 2003-09-03 Andrew Cagney <cagney@redhat.com>
1248
1249 * arch-utils.h (legacy_print_insn): Delete declaration.
1250 * arch-utils.c (legacy_print_insn): Delete function.
1251 * disasm.c (deprecated_tm_print_insn_info): Delete.
1252 (_initialize_disasm): Delete function, contained code initializing
1253 deprecated_tm_print_insn_info.
1254 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1255 (deprecated_tm_print_insn_info): Delete.
1256 (TARGET_PRINT_INSN): Do not provide a default.
1257 * gdbarch.h, gdbarch.c: Re-generate.
1258
1259 2003-09-03 Andrew Cagney <cagney@redhat.com>
1260
1261 * disasm.c (fprintf_disasm): New function.
1262 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1263 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1264 reverts 2003-08-14 change.
1265 (_initialize_disasm): Call "init_disassemble_info", instead of
1266 INIT_DISASSEMBLE_INFO_NO_ARCH.
1267
1268 2003-09-03 Michael Snyder <msnyder@redhat.com>
1269
1270 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1271
1272 2003-09-03 Andrew Cagney <cagney@redhat.com>
1273
1274 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1275 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1276 * symfile.c (syms_from_objfile): Update.
1277 (reread_symbols): `Update
1278 * exec.c (exec_file_attach): Update.
1279 (exec_file_attach): Update.
1280 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1281 2003-08-29 change.
1282 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1283
1284 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1285
1286 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1287 trad-frame.h.
1288 (arm_get_cache): Delete macro.
1289 (struct arm_prologue_cache): Update comments. Make saved_regs into
1290 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1291 to prev_sp.
1292 (thumb_scan_prologue): Update for cache changes. Don't call
1293 DEPRECATED_PC_IN_CALL_DUMMY.
1294 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1295 argument and use it in desperation search for our prologue. Do not
1296 search past the specified PC.
1297 (arm_make_prologue_cache): Simplify.
1298
1299 (arm_prologue_this_id, arm_prologue_prev_register)
1300 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1301 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1302 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1303 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1304 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1305
1306 (arm_frame_chain_valid, arm_find_callers_reg)
1307 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1308 (arm_pop_frame): Delete obsolete methods.
1309 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1310
1311 (arm_gdbarch_init): Update for new frame methods. Register prologue
1312 and sigtramp unwinders. Set the default frame base method.
1313
1314 * Makefile.in (arm-tdep.o): Update dependencies.
1315 * varobj.c (find_frame_addr_in_frame_chain): Call
1316 get_frame_base_address.
1317 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1318
1319 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1320
1321 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1322 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1323 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1324 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1325 Take NEXT_FRAME and CACHE arguments. Call
1326 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1327 Set unwound_pc in CACHE instead of modifying the frame argument.
1328 Don't bother checking the frame type when looking for sigtramp
1329 frames.
1330 (arm_make_prologue_cache, arm_frame_chain)
1331 (arm_init_extra_frame_info): New functions.
1332
1333 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1334
1335 * arm-tdep.c (arm_get_cache): Define.
1336 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1337 unwound_sp, unwound_pc, and saved_regs.
1338 (thumb_scan_prologue): Take a cache instead of the frame.
1339 (arm_scan_prologue): Likewise.
1340 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1341 instead of a temporary frame.
1342 (arm_init_extra_frame_info): Allocate and use a cache.
1343 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1344
1345 2003-09-03 Andrew Cagney <cagney@redhat.com>
1346
1347 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1348 * config/mips/wince.mt (TM_CLIBS): Ditto.
1349 * config/sh/wince.mt (TM_CLIBS): Ditto.
1350 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1351 * config/sparc/sp64.mt (CC): Delete.
1352
1353 2003-09-03 Andrew Cagney <cagney@redhat.com>
1354
1355 * defs.h: Do not include "arch-utils.h".
1356 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1357 GDB_MULTI_ARCH_PURE.
1358 * configure.in (GDB_MULTI_ARCH): Do not define.
1359 * configure, config.in: Regenerate.
1360 * configure.tgt: Do not set variable "gdb_multi_arch".
1361 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1362 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1363 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1364 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1365 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1366 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1367 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1368 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1369 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1370 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1371 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1372 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1373 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1374 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1375 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1376 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1377 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1378 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1379
1380 2003-08-30 Michael Chastain <mec@shout.net>
1381
1382 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1383 * config/m68k/nm-hp300hpux.h: Delete.
1384 * config/m68k/tm-hp300hpux.h: Delete.
1385 * config/m68k/xm-hp300hpux.h: Delete.
1386 * config/m68k/xm-hp300bsd.h: Delete.
1387 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1388 tm-hp300hpux.h, xm-hp300hpux.h.
1389 * somsolib.c: Remove comment about hp300 shared libraries.
1390
1391 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1392
1393 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1394 Only define PTRACE_GET_THREAD_AREA is not already defined.
1395 Various style fixes in code and comments and some additional
1396 spelling fixes in comments. Move after functions dealing with
1397 debug registers.
1398 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1399 Fix coding-style.
1400
1401 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1402 frame_unwind_register_unsigned instead of
1403 frame_unwind_unsigned_register.
1404
1405 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1406
1407 * configure.in: Search for gethostbyname in libnsl.
1408 * configure: Regenerated.
1409
1410 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1411
1412 * configure.in: Remove redundant AC_MSG_RESULT in check for
1413 uintptr_t in stdint.h.
1414 * configure: Regenerated.
1415
1416 * amd64-nat.h (struct regcache): Add opaque declaration.
1417
1418 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1419 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1420 Change "register array" to "register cache" in comments.
1421 (x86_64_linux_gregset64_reg_offset): New variable.
1422 (GETREGS_SUPPLIES): Remove macro.
1423 (supply_gregset): Call amd64_supply_native_gregset instead of
1424 x86_64_linux_supply_gregset.
1425 (fill_gregset): Rename `regno' to `regnum'. Call
1426 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1427 (store_regs): Rename `regno' to `regnum'.
1428 (store_fpregs): Rename `regno' to `regnum'.
1429 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1430 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1431 Reorganize function a bit.
1432 (store_inferior_registers): Rename `regno' to `regnum'. Use
1433 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1434 Reorganize function a bit.
1435 (_initialize_x86_64_linux_nat): New function.
1436 * config/i386/x86-64linux.mh.
1437
1438 2003-08-29 Andrew Cagney <cagney@redhat.com>
1439
1440 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1441 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1442 (target_remove_watchpoint): Delete macro.
1443 (target_insert_watchpoint): Delete macro.
1444 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1445 (remote_mips_stopped_by_watchpoint): Delete declaration.
1446 (remote_mips_remove_watchpoint): Delete declaration.
1447 (remote_mips_set_watchpoint): Delete declaration.
1448 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1449 * remote-mips.c (_initialize_remote_mips): Set
1450 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1451 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1452 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1453 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1454 (mips_stopped_by_watchpoint): Rename
1455 remote_mips_stopped_by_watchpoint.
1456 (mips_can_hardware_watchpoint): Rename
1457 remote_mips_can_use_hardware_watchpoint, update function
1458 signature.
1459
1460 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1461
1462 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1463 USER_DS. We haven't given them a register number yet.
1464
1465 * amd64-nat.h: New file.
1466 * amd64-nat.c: New file.
1467 * amd64fbsd-nat.c: Include "amd64-nat.h".
1468 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1469 (amd64fbsd32_r_reg_offset): New variable.
1470 (supply_gregset): Simply call amd64_supply_native_gregset.
1471 (fill_gregset): Rename `regno' to `regnum'. Simply call
1472 amd64_collect_native_gregset.
1473 (fill_fpregset): Rename `regno' to `regnum'.
1474 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1475 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1476 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1477 `fpregset_t'. Call amd64_supply_native_gregset instead of
1478 supply_gregset. Call x86_64_supply_fxsave instead of
1479 supply_fpregset.
1480 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1481 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1482 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1483 `fpregset_t'. Call amd64_collect_native_gregset instead of
1484 fill_gregset. Call x86_64_collect_fxsave instead of
1485 fill_fpregset.
1486 (_initialize_am64fbsd_nat): Initialize
1487 amd64_native_gregset32_reg_offset and
1488 amd64_native_gregset64_reg_offset.
1489 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1490
1491 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1492 null pointer. Fix typo in comment.
1493
1494 * regcache.c (supply_register): Reimplement to call
1495 regcache_raw_supply.
1496 (regcache_collect): Reimplement by calling regcache_raw_collect.
1497
1498 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1499
1500 * regcache.c (register_buffer): Consitify first argument.
1501 (regcache_raw_supply, regcache_raw_collect): New
1502 functions.
1503
1504 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1505
1506 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1507 by Nathan J. Williams.
1508
1509 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1510
1511 * lin-lwp.c (wait_lwp): New function, copied from
1512 stop_wait_callback. Clean up.
1513 (stop_wait_callback): Use wait_lwp.
1514
1515 2003-08-28 Andrew Cagney <cagney@redhat.com>
1516
1517 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1518 flavour and disassembler options.
1519 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1520 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1521 deprecated_tm_print_insn_info.
1522
1523 2003-08-27 Andrew Cagney <cagney@redhat.com>
1524
1525 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1526 Use target_read_memory.
1527 (s390_get_frame_info): Update. Do not reference
1528 deprecated_tm_print_insn_info.
1529 (s390_check_function_end, s390_is_sigreturn): Ditto.
1530
1531 2003-08-27 Andrew Cagney <cagney@redhat.com>
1532
1533 * Makefile.in (cris-tdep.o): Update dependencies.
1534 * cris-tdep.c: Include "gdb_assert.h".
1535 (cris_gdbarch_init): Set print_insn.
1536 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1537 (cris_delayed_get_disassembler): Simplify, directly call the
1538 disassembler returned by cris_get_disassembler.
1539 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1540 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1541 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1542 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1543 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1544 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1545 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1546 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1547 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1548 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1549 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1550 (gdb_print_insn_sparc): Delete function.
1551 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1552 deprecated_tm_print_insn_info.
1553 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1554 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1555 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1556 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1557 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1558 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1559 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1560 (s390_gdbarch_init): Set print_insn.
1561
1562 2003-08-27 Andrew Cagney <cagney@redhat.com>
1563
1564 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1565 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1566 * infcall.c (call_function_by_hand): Convert the entry point
1567 address into a code address.
1568
1569 2003-08-27 Andrew Cagney <cagney@redhat.com>
1570
1571 * dsrec.c: Include "gdb_string.h".
1572 * Makefile.in (dsrec.o): Update dependencies.
1573
1574 2003-08-27 Michael Chastain <mec@shout.net>
1575
1576 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1577
1578 2003-08-27 Andrew Cagney <cagney@redhat.com>
1579
1580 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1581 (alpha_osf1_init_abi): Do not set call_dummy_address.
1582
1583 2003-08-27 David Carlton <carlton@kealia.com>
1584
1585 From Randolph Chung <tausq@debian.org>:
1586 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1587 compiles with -Wformat-nonliteral -Werror.
1588
1589 2003-08-26 Jim Blandy <jimb@redhat.com>
1590
1591 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1592 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1593 bfd_lookup_symbol, since we only want symbols in code sections.
1594 (look_for_base): Pass zero as the SECT_FLAGS argument to
1595 bfd_lookup_symbol, since we're not concerned about which section
1596 the symbol is in.
1597
1598 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1599
1600 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1601 we are frameless or the return address register is already known.
1602
1603 2003-08-26 Andrew Cagney <cagney@redhat.com>
1604
1605 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1606 in size. Add comments.
1607
1608 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1609
1610 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1611 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1612
1613 2003-08-26 Jason Merrill <jason@redhat.com>
1614
1615 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1616 case out of #ifdef MIPS block.
1617
1618 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1619
1620 PR java/1322
1621 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1622 available before calling SECT_OFF_TEXT.
1623 * PROBLEMS: Remove description of java/1322.
1624
1625 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1626
1627 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1628 bof, and nat0-nat127 as pseudo-registers.
1629 (ia64_frame_cache): New struct used to cache frame info.
1630 (ia64_register_reggroup_p): New routine used to override default
1631 register grouping so registers without names are still saved and
1632 restored.
1633 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1634 pseudo values.
1635 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1636 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1637 (ia64_alloc_frame_cache): New routine to create a new
1638 ia64_frame_cache.
1639 (examine_prologue): Change prototype to add next_frame pointer.
1640 Assume frameless until otherwise proven. Verify that the cfm for
1641 current frame matches the cfm that should occur for the prologues
1642 alloc insn and if equal, mark as not frameless. At end of routine,
1643 if not frameless, calculate registers for the previous frame and store
1644 in the cache, if a cache is provided.
1645 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1646 and pass 0 for next_frame.
1647 (ia64_store_return_value): Change to use convert_typed_floating()
1648 instead of calling ia64_convert_to_raw().
1649 (ia64_extract_return_value): Change to use convert_typed_floating()
1650 instead of calling ia64_convert_to_virtual().
1651 (ia64_frame_cache): New routine to support new frame model.
1652 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1653 (ia64_frame_sniffer): Ditto.
1654 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1655 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1656 (ia64_sigtramp_frame_prev_register): Ditto.
1657 (ia64_sigtramp_frame_sniffer): Ditto.
1658 (ia64_frame_base_address): Ditto.
1659 (ia64_extract_struct_value_address): Change to issue error message.
1660 (ia64_frame_align): New routine to align sp.
1661 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1662 (ia64_push_arguments): Removed. Logic moved to
1663 ia64_push_dummy_call().
1664 (ia64_push_return_address): Ditto.
1665 (ia64_unwind_dummy_id): New function.
1666 (ia64_unwind_pc): Ditto.
1667 (ia64_convert_register_p): Ditto.
1668 (ia64_register_to_value): Ditto.
1669 (ia64_value_to_register): Ditto.
1670 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1671 (ia64_register_byte, ia64_register_raw_size): Ditto.
1672 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1673 (ia64_saved_pc_after_call): Ditto.
1674 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1675 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1676 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1677 (ia64_register_convert_to_raw): Ditto.
1678 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1679 (ia64_init_extra_frame_info): Ditto.
1680 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1681 (ia64_gdbarch_init): Remove registering of deprecated functions that
1682 are no longer used. Add registration of new gdbarch functions.
1683 Remove registering deprecated_write_sp. Replace
1684 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1685 Delete set_gdbarch_deprecated_register_convertible(),
1686 set_gdbarch_deprecated_register_convert_to_virtual(), and
1687 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1688 set_gdbarch_deprecated_register_size(),
1689 set_gdbarch_deprecated_register_bytes(),
1690 set_gdbarch_pcregnum(),
1691 set_gdbarch_deprecated_register_byte(),
1692 set_gdbarch_deprecated_register_raw_size(),
1693 set_gdbarch_deprecated_max_register_raw_size(),
1694 set_gdbarch_deprecated_register_virtual_size(),
1695 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1696 Replace set_gdbarch_deprecated_extract_return_value() with
1697 set_gdbarch_extract_return_value(). Remove calls to:
1698 set_gdbarch_deprecated_saved_pc_after_call();
1699 set_gdbarch_deprecated_frame_chain(),
1700 set_gdbarch_deprecated_frame_saved_pc(),
1701 set_gdbarch_deprecated_frame_init_saved_regs(),
1702 set_gdbarch_deprecated_get_saved_register(),
1703 set_gdbarch_deprecated_call_dummy_words(),
1704 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1705 set_gdbarch_deprecated_init_extra_frame_info(),
1706 set_gdbarch_deprecated_frame_args_address(),
1707 set_gdbarch_deprecated_frame_locals_address(),
1708 and set_gdbarch_deprecated_dummy_write_sp().
1709 Add set_gdbarch_convert_register_p(),
1710 set_gdbarch_register_to_value(),
1711 set_gdbarch_value_to_register(),
1712 set_gdbarch_push_dummy_call(),
1713 set_gdbarch_frame_align(),
1714 set_gdbarch_unwind_dummy_id(),
1715 set_gdbarch_unwind_pc(),
1716 frame_unwind_append_sniffer(),
1717 frame_unwind_append_sniffer(),
1718 and frame_base_set_default().
1719
1720 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1721
1722 * configure.tgt: Document need for special "mipsisa64" handling.
1723 (mipsisa64*-*-linux64): Handle as target linux64.
1724 (mipsisa64*-*-*): Handle as target embed64.
1725
1726 2003-08-18 Michael Chastain <mec@shout.net>
1727
1728 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1729 objfile bug.
1730
1731 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1732
1733 * i387-tdep.h: Update copyright date.
1734 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1735
1736 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1737 CFLAGS games to reflect reality.
1738
1739 2003-08-24 Andrew Cagney <cagney@redhat.com>
1740
1741 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1742 GDB_MULTI_ARCH is always non-zero.
1743 * osabi.c (_initialize_gdb_osabi): Ditto.
1744 (gdbarch_init_osabi): Ditto.
1745 * sparc-tdep.c: Ditto for #if code.
1746
1747 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1748
1749 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1750 Update comments.
1751 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1752 comments.
1753 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1754 x86_64_supply_fxsave.
1755 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1756 x86_64_supply_fxsave.
1757 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1758 x86_64_supply_fxsave.
1759
1760 2003-08-23 Andreas Jaeger <aj@suse.de>
1761
1762 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1763 i387_supply_fxsave.
1764
1765 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1766
1767 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1768 i387_supply_register.
1769 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1770 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1771 i387_supply_fsave.
1772 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1773 i387_supply_fxsave.
1774 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1775 i387_supply_fsave.
1776 * i386bsd-nat.c (supply_fpregset): Adjust call to
1777 i387_supply_fsave.
1778 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1779 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1780 supply_fpregset.
1781 (store_inferior_registers): Remove extraneous whitespace. Call
1782 i387_fill_fsave instead of fill_fpregset.
1783 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1784 (supply_fpregset): Likewise.
1785 * i386v4-nat.c (supply_fpregset): Adjust call to
1786 i387_supply_fsave.
1787 * i386-interix-nat.c (supply_fpregset): Adjust call to
1788 i387_supply_fsave.
1789 * i386-linux-nat.c (supply_fpregset): Adjust call to
1790 i387_supply_fsave.
1791 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1792 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1793 i387supply_fsave and i387_supply_fxsave.
1794 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1795 Incorporate code from `i387_supply_register.
1796 (i387_supply_register): Remove.
1797 (i387_supply_fxsave): Add `regnum' argument.
1798 Update comments.
1799 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1800 prototype.
1801 (i387_supply_register): remove prototype.
1802 Update comments.
1803
1804 2003-08-22 Michael Chastain <mec@shout.net>
1805
1806 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1807 Add lines for files in gdb/testsuite/gdb.cp/* that are
1808 still not 8.3 unique.
1809
1810 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1811
1812 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1813 TYPE_VPTR_FIELDNO is valid.
1814
1815 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1816
1817 * utils.c (set_width_command): Remove prototypes.
1818 (set_screen_size): New prototype.
1819 (init_page_info): Simplify by fetching the screen size from
1820 Readline. Call set_screen_size.
1821 (set_screen_size): New function.
1822 (set_width): Add missing whitespace in comment.
1823 (set_width_command): Call set_screen_size.
1824 (set_height_command): New function.
1825 (initialize_utils): Fix formatting. Make "set height" command
1826 call set_height_command. Remove redundant code that turns off
1827 pagination if output isn't a terminal. Remove redundant call to
1828 set_width_command.
1829
1830 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1831
1832 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1833 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1834 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1835 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1836 `case' keyword.
1837 (sparc64_register_info): Give the reister with number
1838 SPARC64_STATE_REGNUM a name.
1839 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1840 %asi and %ccr.
1841 (sparc64_push_dummy_call): Take BIAS into account when checking
1842 stcak alignment.
1843 (sparc_software_single_step): Remove assertions that check whether
1844 NPC and NNPC were zero.
1845 (sparc_supply_rwindow): Make public. Merge functionality with
1846 sparc64_supply_rwindow.
1847 (sparc_fill_rwindow): Make public. Merge functionality with
1848 sparc64_fill_rwindow.
1849 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1850 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1851 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1852 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1853 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1854
1855 * reggroups.c: Add whitespace after declarations of local
1856 variables in functions.
1857
1858 2003-08-21 Michael Chastain <mec@shout.net>
1859
1860 * gdbtypes.h: Change array bound type from an int to enum.
1861
1862 2003-08-21 Andrew Cagney <cagney@redhat.com>
1863
1864 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1865 * config/sparc/tm-sparc.h: Ditto.
1866 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1867 unconditionally.
1868 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1869
1870 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1871
1872 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1873 (register_objfile_data, set_objfile_data, objfile_data): New
1874 prototypes.
1875 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1876 prototypes.
1877 (allocate_objfile): Call objfile_alloc_data.
1878 (free_objfile): Call objfile_free_data.
1879 (struct objfile_data): New.
1880 (struct objfile_data_registration): New.
1881 (struct objfile_data_registry): New.
1882 (objfile_data_registry): New variable.
1883 (register_objfile_data): New function.
1884 (objfile_alloc_data, objfile_free_data): New functions.
1885 (set_objfile_data, objfile_data): New functions.
1886 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1887 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1888 (_initialize_dwarf2_frame): New function and prototype.
1889
1890 2003-08-21 Andrew Cagney <cagney@redhat.com>
1891
1892 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1893 a specific architecture.
1894 * arch-utils.h (set_architecture_from_arch_mach): Delete
1895 declaration.
1896 (target_architecture_hook): Delete declaration.
1897 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1898 (default_float_format): Assume GDB_MULTI_ARCH.
1899 (default_double_format): Assume GDB_MULTI_ARCH.
1900 (set_endian_from_file): Delete function.
1901 (arch_ok): Delete function.
1902 (set_arch): Delete function.
1903 (set_architecture_from_arch_mach): Delete function.
1904 (set_architecture_from_file): Delete function.
1905 (set_architecture): Assume GDB_MULTI_ARCH.
1906 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1907
1908 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1909
1910 Rewrite FreeBSD/sparc64 native configuration.
1911 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1912 * sparc64fbsd-nat.c: New file.
1913 * sparc64fbsd-tdep.c: New file.
1914 * sparc64-tdep.c sparc64-tdep.h: New files.
1915 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1916 sparc64fbsd-tdep.o): New dependencies.
1917 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1918 and sparc64fbsd-tdep.c.
1919 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1920 * config/sparc/fbsd.mh: Remove copyright notice.
1921 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1922 sparcbsd-nat.o.
1923 * config/sparc/fbsd.mt: Remove copyright notice.
1924 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1925 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1926 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1927 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1928 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1929 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1930 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1931 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1932 "sparc/tm-sp64.h".
1933 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1934 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1935
1936 2003-08-21 Michael Chastain <mec@shout.net>
1937
1938 * symtab.h: Add doco on the space critical structures and
1939 some measurements of space usage.
1940
1941 2003-08-21 Michael Snyder <msnyder@redhat.com>
1942
1943 * tracepoint.c (trace_dump_command): Trace break address
1944 is subject to DECR_PC_AFTER_BREAK.
1945 (set_traceframe_context): Make "trace_line" an int.
1946 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1947
1948 2003-08-20 Michael Snyder <msnyder@redhat.com>
1949
1950 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1951 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1952 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1953 argument passing.
1954 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1955 functions, replace sh_push_dummy_call.
1956 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1957
1958 2003-08-20 Michael Chastain <mec@shout.net>
1959
1960 * gdbtypes.h (struct main_type): Rearrange to save space.
1961
1962 2003-08-20 Michael Snyder <msnyder@redhat.com>
1963
1964 * trad-frame.c: Comment typo fix.
1965
1966 2003-08-20 Michael Snyder <msnyder@redhat.com>
1967 Kevin Buettner <kevinb@redhat.com>
1968
1969 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1970 (frv_frame_init_saved_regs): Add declaration.
1971 (frame_extra_info): Add new field ``saved_regs''.
1972 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1973 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1974 Update frame related code.
1975 (frv_extract_struct_value_address): Adjust formatting.
1976 * Makefile.in (frv-tdep.o): Update dependencies.
1977 * config/frv/tm-frv.h (target_insert_watchpoint)
1978 (target_remove_watchpoint, target_insert_hw_breakpoint)
1979 (target_remove_hw_breakpoint): Delete these macros.
1980 (remote_insert_watchpoint, remote_remove_watchpoint)
1981 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1982 these declarations.
1983
1984 2003-08-20 Michael Chastain <mec@shout.net>
1985
1986 * defs.h (ENUM_BITFIELD): New macro.
1987 * symtab.h (ENUM_BITFIELD): Use it.
1988 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1989
1990 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1991
1992 * MAINTAINERS (write after approval): Add myself.
1993
1994 2003-08-18 Andrew Cagney <cagney@redhat.com>
1995
1996 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1997 * gdbarch.h, gdbarch.c: Re-generate.
1998 * infcall.c (call_function_by_hand): Adjust the SP by
1999 frame_red_zone_size before allocating any stack space.
2000 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2001 * x86-64-tdep.c (x86_64_frame_align): New function.
2002 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2003
2004 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2005 Remove code adjusting SP so that it skips over the Red Zone.
2006
2007 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2008
2009 * NEWS (New native configurations): Mention FreeBSD/amd64.
2010
2011 2003-08-18 Andrew Cagney <cagney@redhat.com>
2012
2013 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2014 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2015 "m68k_frame_p".
2016 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2017
2018 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2019
2020 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2021
2022 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2023
2024 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2025 Define.
2026 * i386-linux-nat.c: Include "linux-nat.h".
2027 (child_post_startup_inferior): New function.
2028
2029 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2030
2031 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2032 at the start of a frameless function. This probably fixes PR
2033 backtrace/1338.
2034
2035 2003-08-17 Michael Chastain <mec@shout.net>
2036
2037 * symfile.c (find_sym_fns): Remove special case for apollo target.
2038
2039 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2040
2041 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2042 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2043 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2044 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2045 (linux_supports_tracevforkdone): New function.
2046 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2047 TRACEVFORKDONE.
2048 (child_follow_fork): Handle vfork.
2049 (linux_handle_extended_wait): Likewise. Also handle exec.
2050 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2051 * NEWS: Mention fork tracing.
2052
2053 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2054
2055 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2056
2057 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2058
2059 * Makefile.in (i386-linux-nat.o): Update dependencies.
2060 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2061 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2062 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2063 * i386-linux-nat.c: Include "linux-nat.h".
2064 (child_post_startup_inferior): New function.
2065 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2066 * infptrace.c (kill_inferior): Wrap in #ifdef.
2067 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2068 attaching to each LWP.
2069 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2070 (init_lin_lwp_ops): Fill in some more operations.
2071 * linux-nat.h (linux_enable_event_reporting)
2072 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2073 prototypes.
2074 * linux-nat.c (linux_enable_event_reporting): New function.
2075 (child_post_attach, linux_child_post_startup_inferior)
2076 (child_post_startup_inferior, child_follow_fork)
2077 (linux_handle_extended_wait, kill_inferior): New functions.
2078
2079 2003-08-16 Andrew Cagney <cagney@redhat.com>
2080
2081 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2082 * gdbarch.h, gdbarch.c: Re-generate.
2083
2084 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2085
2086 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2087
2088 2003-08-16 Andrew Cagney <cagney@redhat.com>
2089
2090 * NEWS: Mention that "set prompt-escape-char" was deleted.
2091 * top.c (get_prompt_1): Delete function.
2092 (gdb_prompt_escape):
2093 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2094 prompt-escape-char" command.
2095 (MAX_PROMPT_SIZE): Delete macro.
2096 (get_prompt): Simplify, do not call get_prompt_1.
2097
2098 2003-08-16 Andrew Cagney <cagney@redhat.com>
2099
2100 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2101 -Werror. -Wformat-nonliteral problems.
2102
2103 2003-08-15 J. Brobecker <brobecker@gnat.com>
2104
2105 Further multiarching work mostly for hppa64-*-hpux11:
2106 * hppa-tdep.h: New file.
2107 * hppa-tdep.c: #include hppa-tdep.c.
2108 (hppa32_num_regs): Renamed from hppa_num_regs.
2109 (hppa64_num_regs): New constant.
2110 (hppa64_call_dummy_breakpoint_offset): New constant.
2111 (hppa32_call_dummy_length): New constant.
2112 (hppa64_call_dummy_length): New constant.
2113 (hppa32_stack_align): Make name 32bit explicit.
2114 (hppa32_register_virtual_type): Likewise.
2115 (hppa32_extract_return_value): Likewise.
2116 (hppa32_use_struct_convention): Likewise.
2117 (hppa32_store_return_value): Likewise.
2118 (hppa64_register_virtual_type): New function.
2119 (hppa64_extract_return_value): New function.
2120 (hppa64_use_struct_convention): New function.
2121 (hppa64_store_return_value): New function.
2122 (hppa_frame_locals_address): Remove declaration, function does
2123 not exist anymore.
2124 (hppa_register_byte): Add support for PA64 ABI.
2125 (hppa_gdbarch_init): Add support for PA64 ABI.
2126 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2127 Make name 32bit explicit.
2128 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2129 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2130 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2131 (hppa64_hpux_frame_base_before_sigtramp): New function.
2132 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2133 * config/pa/tm-hppa64.h: Remove macros that are no longer
2134 necessary now that the gdbarch vector is properly setup.
2135 Transform some macros into function calls. Some minor cleanup.
2136 * config/pa/tm-hppah.h: Update function calls in macros
2137 following the function renaming in hppa-hpux-tdep.c.
2138 * Makefile.in (hppa_tdep_h): New variable.
2139 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2140
2141 2003-08-14 Michael Snyder <msnyder@redhat.com>
2142
2143 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2144
2145 2003-08-13 J. Brobecker <brobecker@gnat.com>
2146
2147 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2148 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2149 routine.
2150
2151 2003-08-13 Michael Snyder <msnyder@redhat.com>
2152
2153 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2154 (frv_saved_pc_after_call): Use deprecated ftype.
2155 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2156 (frv_remote_translate_xfer_address): Remove.
2157 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2158
2159 2003-08-13 J. Brobecker <brobecker@gnat.com>
2160
2161 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2162 initialization after the common gdbarch initialization, not before.
2163
2164 2003-08-13 J. Brobecker <brobecker@gnat.com>
2165
2166 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2167 (ADDR_BITS_REMOVE): Remove, redundant.
2168
2169 2003-08-13 J. Brobecker <brobecker@gnat.com>
2170
2171 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2172 gdbarch method to clear the 2 low bits of text addresses.
2173
2174 2003-08-12 Andrew Cagney <cagney@redhat.com>
2175
2176 * Makefile.in (dsrec.o): Update dependencies.
2177 * dsrec.c: Include "gdb_assert.h".
2178 (make_srec): Use snprintf instead of sprintf, use a literal format
2179 string.
2180
2181 2003-08-12 Andrew Cagney <cagney@redhat.com>
2182
2183 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2184 FRAME_OBSTACK_ZALLOC.
2185
2186 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2187
2188 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2189 SSE registers.
2190
2191 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2192
2193 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2194 amd64fbsd_sc_reg_offset): Add extern declarations.
2195 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2196 declarations.
2197
2198 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2199
2200 * MAINTAINERS (write after approval): Update my mail address.
2201
2202 2003-08-10 Andrew Cagney <cagney@redhat.com>
2203
2204 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2205
2206 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2207
2208 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2209 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2210 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2211 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2212 i386bsd_sc_reg_offset): Add extern declarations.
2213 * i386obsd-nat.c: Include "i386-tdep.h"
2214 (_initialize_i386obsd_nat): Remove extern declarations.
2215 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2216 declarations.
2217 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2218 declarations.
2219
2220 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2221 instead of frame_read_register.
2222 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2223 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2224 SP_REGNUM.
2225 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2226 instead of frame_unwind_unsigned_register. Use
2227 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2228 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2229 instead of read_register. Use builtin_type_void_data_ptr instead
2230 of builtin_type_void_func_ptr when extracting the address of the
2231 jmp_buf.
2232 (i386_extract_return_value, i386_store_return_value,
2233 i386_pseudo_register_read, i386_pseudo_register_write): Use
2234 register_size instead REGISTER_RAW_SIZE.
2235
2236 2003-08-10 Andrew Cagney <cagney@redhat.com>
2237
2238 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2239 sprintf. Make "name" constant.
2240
2241 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2242
2243 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2244 instead of frame_read_register.
2245 (i387_print_float_info): Use get_frame_register and
2246 get_frame_register_unsigned instead of frame_register_read.
2247
2248 * i386fbsd-nat.c: Include "i386-tdep.h".
2249 (child_resume): Make `eflags' an ULONGEST. Use
2250 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2251 instead of register_read and register_write.
2252
2253 * i386bsd-nat.c (fetch_inferior_registers,
2254 store_inferior_registers): Don't use && at the end of a line.
2255 (_initialize_i386bsd_nat): Fix typo.
2256
2257 * frame.c (_initialize_frame): Add missing backslash.
2258
2259 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2260 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2261 and supply_register instead of manipulating the register buffer
2262 directly.
2263
2264 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2265 * config/i386/nm-i386sol2.h
2266 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2267
2268 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2269 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2270 instructions that GCC likes to mingle into the prologue. Fixes
2271 gdb/1253 and gdb/1255.
2272
2273 2003-08-09 Andrew Cagney <cagney@redhat.com>
2274
2275 Fix GDB PR cli/926.
2276 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2277 * command.h (add_setshow_uinteger_cmd): Declare.
2278 * frame.c (set_backtrace_cmd): New function.
2279 (show_backtrace_cmd): New function.
2280 * frame.c (_initialize_frame): Replace "set/show
2281 backtrace-below-main" with "set/show backtrace past-main". Add
2282 command "set/show backtrace limit".
2283 (backtrace_past_main): Rename "backtrace_below_main".
2284 (backtrace_limit): New variable.
2285 (get_prev_frame): Update. Check the backtrace_limit.
2286
2287 2003-08-09 Andrew Cagney <cagney@redhat.com>
2288
2289 * defs.h (xstrprintf): Declare.
2290 * utils.c (xstrprintf): New function.
2291 * breakpoint.c (insert_breakpoints): Replace sprintf and
2292 non-literal format strings, with xstrprintf and cleanups.
2293 (delete_breakpoint,breakpoint_re_set): Ditto.
2294 (commands_command, insert_breakpoints): Ditto.
2295 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2296 (break_at_finish_command_1): Ditto.
2297
2298 2003-08-09 Andrew Cagney <cagney@redhat.com>
2299
2300 * MAINTAINERS (language support): List Adam Fedor as Objective C
2301 maintainer.
2302
2303 2003-08-08 J. Brobecker <brobecker@gnat.com>
2304
2305 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2306 are now multiarched.
2307
2308 2003-08-08 J. Brobecker <brobecker@gnat.com>
2309
2310 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2311 longer necessary now that hppa64 is partially multiarch'ed.
2312
2313 2003-08-08 Andrew Cagney <cagney@redhat.com>
2314
2315 * interps.c (interp_set): Check for a NULL "old_interp".
2316
2317 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2318
2319 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2320 (install-only): Support DESTDIR.
2321 (uninstall): Likewise.
2322 (install-gdbtk): Likewise.
2323
2324 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2325
2326 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2327 contains something meaningful at all times.
2328
2329 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2330
2331 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2332
2333 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2334
2335 * MAINTAINERS (write after approval): Added self.
2336
2337 2003-08-07 Andrew Cagney <cagney@redhat.com>
2338
2339 * inferior.h (AT_SYMBOL): Define.
2340 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2341 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2342 * mips-tdep.c (mips_call_dummy_address): Delete function.
2343 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2344 set call_dummy_address.
2345
2346 2003-08-07 Andrew Cagney <cagney@redhat.com>
2347
2348 * language.c (op_error): Delete function.
2349 (binop_type_check): Delete function.
2350 * language.h (type_op_error, range_op_error): Delete macros.
2351 (op_error): Delete declaration.
2352
2353 2003-08-07 Andrew Cagney <cagney@redhat.com>
2354
2355 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2356
2357 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2358
2359 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2360 (x86_64_push_arguments): Skip the red zone.
2361
2362 2003-08-05 Andrew Cagney <cagney@redhat.com>
2363
2364 * reggroups.c (reggroup_next): Check for the final entry.
2365
2366 2003-08-04 Andrew Cagney <cagney@redhat.com>
2367
2368 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2369 * cli/cli-script.c (define_command): Call query directly, instead
2370 of passing it a buffer.
2371 * ocd.c (ocd_error): Pass error a constant format string.
2372 * remote-mips.c (mips_error): Use fputs_filtered.
2373
2374 * solib-svr4.c (_initialize_svr4_solib): Update
2375 register_gdbarch_data call.
2376 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2377
2378 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2379 (register_gdbarch_data): Delete "free" parameter. Update
2380 comments.
2381 * gdbarch.h, gdbarch.c: Re-generate.
2382 * reggroups.c (_initialize_reggroup): Update.
2383 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2384 * frame-base.c (_initialize_frame_base): Update.
2385 * frame-unwind.c (_initialize_frame_unwind): Update.
2386 * user-regs.c (_initialize_user_regs): Update.
2387 * remote.c (_initialize_remote): Update.
2388 * regcache.c (_initialize_regcache): Update.
2389
2390 * regcache.c (xfree_regcache_descr): Delete function.
2391 (_initialize_regcache): Update call to register_gdbarch_data.
2392 (init_regcache_descr, init_legacy_regcache_descr): Use
2393 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2394
2395 * remote.c (free_remote_state): Delete function.
2396 (_initialize_remote): Update register_gdbarch_data.
2397 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2398 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2399
2400 2003-08-04 Andrew Cagney <cagney@redhat.com>
2401
2402 * reggroups.c (struct reggroup_el): Define.
2403 (struct reggroups): Delete field "nr_group". Replace array
2404 "group" with a "first" to "last" linked list.
2405 (reggroups_init): Update. Allocate using gdbarch's obstack.
2406 (reggroups_free): Delete function.
2407 (add_group): Update. Add "el" parameter.
2408 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2409 (default_groups): Update.
2410 (reggroup_next): Replace reggroups.
2411 (reggroups_dump): Update.
2412 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2413 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2414 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2415
2416 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2417
2418 * Makefile.in (tui-interp.o): Update dependencies.
2419
2420 2003-08-04 David Carlton <carlton@kealia.com>
2421
2422 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2423 to internal_error call.
2424 * source.c (forward_search_command): Add "%s" format argument.
2425 (reverse_search_command): Ditto.
2426 * top.c (quit_confirm): Ditto.
2427 * cli/cli-setshow.c (do_setshow_command): Ditto.
2428 * cp-valprint.c (cp_print_class_method): Replace
2429 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2430 (cp_print_class_member): Ditto.
2431 * event-top.c (command_line_handler): Ditto.
2432 * linux-proc.c (linux_info_proc_cmd): Ditto.
2433 * p-typeprint.c (pascal_type_print_base): Ditto.
2434 * p-valprint.c (pascal_object_print_class_method): Ditto.
2435 (pascal_object_print_class_member): Ditto.
2436 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2437 * remote.c (remote_cisco_section_offsets): Ditto.
2438 * top.c (command_line_input): Ditto.
2439 * utils.c (vwarning,error_stream,quit): Ditto.
2440 * valprint.c (print_floating,print_binary_chars)
2441 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2442
2443 2003-08-04 Andrew Cagney <cagney@redhat.com>
2444
2445 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2446
2447 2003-08-02 Andrew Cagney <cagney@redhat.com>
2448
2449 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2450 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2451 amd64fbsd-nat.c.
2452
2453 2003-08-02 Andrew Cagney <cagney@redhat.com>
2454
2455 * Makefile.in: Update all dependencies and definitions.
2456
2457 2003-08-02 Adam Fedor <fedor@gnu.org>
2458
2459 * linespec.c (is_objc_method_format): New function
2460 (decode_line_1, locate_first_half): Use it.
2461 Fixes PR objc/1298
2462
2463 2003-08-01 Andrew Cagney <cagney@redhat.com>
2464
2465 * NEWS: Mention that m32r is multi-arch.
2466 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2467 * configure.tgt: Recognize m32r-*-*.
2468 * config/m32r/tm-m32r.h: Delete file.
2469 * config/m32r/m32r.mt: New file.
2470 * m32r-rom.c (m32r_upload_command): Use hostent only when
2471 gethostname succeeds, in order to avoid a compilation
2472 warning.
2473 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2474 compiler warning.
2475
2476 2003-08-01 Michael Snyder <msnyder@redhat.com>
2477
2478 * sh-tdep.c (sh_frame_align): New gdbarch method.
2479 (sh_gdbarch_init): Set up frame_align method.
2480
2481 2003-07-31 Michael Snyder <msnyder@redhat.com>
2482
2483 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2484 which is already covered by the new frames infrastructure.
2485
2486 2003-07-31 Andrew Cagney <cagney@redhat.com>
2487
2488 * user-regs.c (struct user_reg): Add "next" link.
2489 (struct user_regs): Replace "user" with "first" and "last" links.
2490 (append_user_reg): Add pre-allocated "reg" parameter.
2491 (builtin_user_regs): Provide initial value for "last".
2492 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2493 (user_regs_init): Allocate memory from the gdbarch obstack.
2494 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2495 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2496 linked list.
2497 (usernum_to_user_reg): New function.
2498 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2499 (value_of_user_reg): Use usernum_to_user_reg.
2500 (user_regs_free): Delete function.
2501 (_initialize_user_regs): Update register_gdbarch_data call.
2502
2503 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2504
2505 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2506
2507 2003-07-30 Michael Snyder <msnyder@redhat.com>
2508
2509 * value.h (value_being_returned): Add a struct_addr argument.
2510 * infcall.c (call_function_by_hand): Pass struct_addr to
2511 value_being_returned.
2512 * infcmd.c (print_return_value): Pass zero as struct_addr.
2513 * values.c (value_being_returned): If struct_addr is passed,
2514 use it instead of trying to recover it from the inferior.
2515
2516 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2517
2518 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2519 the prologue analyzer won't need to attempt to extract the pc
2520 value from the woefully incomplete dummy frame.
2521 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2522 possible. Disable code which modifies the frame.
2523
2524 2003-07-28 Andrew Cagney <cagney@redhat.com>
2525
2526 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2527 to level 2.
2528 (annotate_breakpoints_table, annotate_record): Ditto.
2529 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2530 (annotate_field_name_end, annotate_field_value): Ditto.
2531 (annotate_field_end, annotate_frame_source_begin): Ditto.
2532 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2533 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2534 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2535 (annotate_frame_address_end, annotate_frame_address): Ditto.
2536 (annotate_frame_args, annotate_frame_end): Ditto.
2537 (annotate_frame_where, annotate_arg_begin): Ditto.
2538 (annotate_arg_name_end, annotate_arg_value): Ditto.
2539 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2540 (annotate_function_call, annotate_signal_name): Ditto.
2541 (annotate_signal_string, annotate_signal_name_end): Ditto.
2542 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2543 (annotate_value_begin, annotate_value_history_value): Ditto.
2544 (annotate_value_history_end, annotate_value_end): Ditto.
2545 (annotate_display_begin, annotate_display_number_end): Ditto.
2546 (annotate_display_format, annotate_display_expression): Ditto.
2547 (annotate_display_expression_end, annotate_display_value): Ditto.
2548 (annotate_display_end, annotate_array_section_begin): Ditto.
2549 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2550 (annotate_elt, annotate_array_section_end): Ditto.
2551
2552 2003-07-28 Andrew Cagney <cagney@redhat.com>
2553
2554 * regcache.c (struct regcache_descr): Update comments on
2555 nr_raw_registers.
2556 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2557 sizeof_raw_register_valid_p.
2558 (init_regcache_descr): Set nr_raw_registers and
2559 sizeof_raw_register_valid_p before calling
2560 init_legacy_regcache_descr.
2561
2562 2003-07-28 Andrew Cagney <cagney@redhat.com>
2563
2564 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2565 MOD NUM_REGS.
2566
2567 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2568
2569 * thread.c (info_threads_command): Use get_selected_frame ().
2570 Check that there is at least one non-sentinel frame.
2571
2572 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2573
2574 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2575 (m68hc11_pop_frame): Remove.
2576 (m68hc11_frame_saved_pc): Remove.
2577 (m68hc11_frame_chain): Remove.
2578 (m68hc11_frame_init_saved_regs): Remove.
2579 (m68hc11_init_extra_frame_info): Remove.
2580 (m68hc11_store_struct_return): Remove.
2581 (m68hc11_saved_pc_after_call): Remove.
2582
2583 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2584
2585 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2586 frame unwind information.
2587 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2588 and adapted for frame unwinding.
2589 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2590 (m68hc11_unwind_pc): New function.
2591 (m68hc11_frame_unwind_cache): New function to analyze frames.
2592 (m68hc11_frame_this_id): New function to create new frame struct.
2593 (m68hc11_frame_prev_register): New function to unwind a register from
2594 the frame.
2595 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2596 (m68hc11_frame_p): New function for the above.
2597 (m68hc11_frame_base_address): New function to return fp of frame.
2598 (m68hc11_frame_args_address): Update for frame.
2599 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2600 (m68hc11_unwind_sp): New function.
2601 (m68hc11_unwind_dummy_id): New function.
2602 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2603 calls.
2604
2605 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2606
2607 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2608 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2609 when we are beyond the current pc.
2610
2611 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2612
2613 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2614 from m68hc11_push_arguments.
2615 (m68hc11_push_arguments): Remove.
2616 (m68hc11_push_return_address): Remove.
2617 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2618 handlers; remove deprecated_extra_stack_alignment_needed.
2619
2620 2003-07-27 Andrew Cagney <cagney@redhat.com>
2621
2622 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2623 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2624 REAL_PC and not the pointer.
2625 * hppa-hpux-tdep.c: Include frame.h
2626
2627 2003-07-27 Andrew Cagney <cagney@redhat.com>
2628
2629 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2630 GDB_MULTI_ACH_PARTIAL.
2631
2632 2003-07-27 Andrew Cagney <cagney@redhat.com>
2633
2634 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2635 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2636 operator at start and not end of line.
2637 (decode_prologue): Ditto.
2638 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2639 frame_unwind_register_unsigned instead of
2640 frame_unwind_unsigned_register.
2641 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2642 read_register.
2643 (m32r_push_dummy_call): Use register_size instead of
2644 REGISTER_RAW_SIZE.
2645 (m32r_frame_sniffer): Replace m32r_frame_p.
2646 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2647 * m32r-rom.c (report_transfer_performance): Delete extern
2648 declaration.
2649 (m32r_load, m32r_upload_command): Use print_transfer_performance
2650 instead of report_transfer_performance.
2651 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2652 / add_show_from_set.
2653
2654 2003-07-26 Andrew Cagney <cagney@redhat.com>
2655
2656 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2657 store_return_value and extract_struct_value_address.
2658
2659 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2660
2661 PR c++/1267
2662 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2663 NULL, default to the section containing PC.
2664
2665 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2666
2667 * NEWS: Mention "regs" deprecated for m68hc11 too.
2668
2669 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2670 (m68hc11_print_register): New function to print out one register.
2671 (m68hc11_print_registers_info): New function to print registers.
2672 (show_regs): Deprecate and use the above.
2673 (m68hc11_gdbarch_init): Install the print_registers_info.
2674
2675 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2676
2677 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2678 that we have a SIGTRAP before returning non-zero.
2679
2680 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2681 Elena Zannoni <ezannoni@redhat.com>
2682
2683 * linespec.c (decode_line_2): Avoid crash if
2684 find_function_start_sal() returns empty record.
2685
2686 2003-07-23 Andreas Schwab <schwab@suse.de>
2687
2688 * ia64-tdep.c (ia64_print_insn): New function.
2689 (ia64_gdbarch_init): Set print_insn to it.
2690 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2691 deprecated_tm_print_insn_info.
2692
2693 2003-07-22 Michael Snyder <msnyder@redhat.com>
2694
2695 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2696 handle 8-bit returns (long long).
2697 (h8300h_extract_return_value): Ditto.
2698 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2699
2700 2003-07-22 Andrew Cagney <cagney@redhat.com>
2701
2702 * gdbarch.c Include "gdb_obstack.h".
2703 (struct gdbarch): Add an "obstack".
2704 (alloc_gdbarch_data): Allocate the gdbarch data using
2705 GDBARCH_OBSTACK_CALLOC.
2706 (free_gdbarch_data): Delete function.
2707 (gdbarch_obstack_zalloc): New function.
2708 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2709 Assert that the architecture is not initialized.
2710 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2711 vector from the obstack.
2712 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2713 architecture obstack.
2714 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2715 (set_gdbarch_data): Assert that the data is not initialized.
2716 (struct gdbarch_data): Delete member "free".
2717 (register_gdbarch_data): Do not initialize "free".
2718 * gdbarch.h, gdbarch.c: Re-generate.
2719
2720 2003-07-22 Andrew Cagney <cagney@redhat.com>
2721
2722 * configure.in (build_warnings): Add -Wformat-nonliteral.
2723 * configure: Re-generate.
2724
2725 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2726
2727 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2728
2729 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2730
2731 * findvar.c (read_var_value): Remove case for thread local storage
2732 variables. It is now entirely handled by the dwarf2 location
2733 expression code.
2734 * printcmd.c (address_info): Ditto.
2735 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2736 enumeration value.
2737 (struct symbol): Remove objfile field, which was used by
2738 LOC_THREAD_LOCAL_STATIC only.
2739 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2740 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2741 usage of objfile pointer.
2742 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2743 thread local variables.
2744 Add include of objfiles.h.
2745 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2746 storage variables.
2747 * Makefile.in (dwarf2loc.o): Update dependencies.
2748
2749 2003-07-22 Andrew Cagney <cagney@redhat.com>
2750
2751 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2752 get_frame_base.
2753 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2754 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2755 (struct value): Add opaque declaration.
2756 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2757
2758 2003-07-21 Andrew Cagney <cagney@redhat.com>
2759
2760 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2761 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2762
2763 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2764
2765 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2766 regcache_cooked_read_unsigned instead of read_register.
2767 (m68hc11_saved_pc_after_call): Likewise.
2768 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2769 instead of write_register.
2770 (m68hc11_register_type): New function.
2771 (m68hc11_register_virtual_type): Remove.
2772 (m68hc11_store_return_value): Convert to use the regcache.
2773 (m68hc11_extract_struct_value_address): Likewise.
2774 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2775 m68hc11_register_type; undeprecate store_return_value and
2776 extract_struct_value_address.
2777
2778 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2779
2780 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2781 and translate to use regcache.
2782 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2783
2784 2003-07-18 Andrew Cagney <cagney@redhat.com>
2785
2786 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2787 * gdbarch.h, gdbarch.c: Re-generate.
2788 * i386-tdep.c (i386_gdbarch_init): Do not set
2789 DWARF2_BUILD_FRAME_INFO.
2790 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2791 unconditionally.
2792 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2793 DWARF2_BUILD_FRAME_INFO.
2794
2795 2003-07-18 Andrew Cagney <cagney@redhat.com>
2796
2797 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2798 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2799
2800 2003-07-18 Andrew Cagney <cagney@redhat.com>
2801
2802 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2803 frame_unwind_address_in_block, instead of frame_pc_unwind.
2804 (dwarf2_frame_cache): Ditto.
2805
2806 2003-07-18 Andrew Cagney <cagney@redhat.com>
2807
2808 * user-regs.h (struct gdbarch): Declare opaque.
2809 * ui-out.h (struct ui_file): Declare opaque.
2810 * dwarf2-frame.h (struct frame_info): Declare opaque.
2811
2812 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2813
2814 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2815 #include "...".
2816 (procfs_meminfo): Change strerror to safe_strerror.
2817 (procfs_can_run): Remove K&R badness.
2818
2819 2003-07-17 Michael Snyder <msnyder@redhat.com>
2820
2821 * remote-sim.c: Comment typo fix.
2822
2823 2003-07-17 Andrew Cagney <cagney@redhat.com>
2824
2825 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2826 configure.
2827 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2828 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2829 GDB_MULTI_ARCH_PARTIAL.
2830
2831 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2832
2833 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2834 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2835 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2836
2837 2003-07-16 Theodore A. Roth <troth@openavr.org>
2838
2839 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2840 found.
2841 (avr_frame_unwind_cache): Don't unwind FP for main.
2842 Update a comment.
2843 Save the computed prev_sp.
2844 (avr_saved_regs_unwinder): Remove function.
2845 (avr_frame_prev_register): Use PC unwind logic from
2846 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2847
2848 2003-07-16 Andrew Cagney <cagney@redhat.com>
2849
2850 * frame-base.h (frame_base_p_ftype): Delete definition.
2851 (frame_base_append_predicate): Delete declaration.
2852 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2853 (frame_unwind_append_predicate): Delete declaration.
2854 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2855 (append_predicate): Delete parameter "p".
2856 (frame_unwind_append_predicate): Delete function.
2857 (frame_unwind_append_sniffer): Update call to append_predicate.
2858 (frame_unwind_free): Delete function.
2859 (_initialize_frame_unwind): Pass NULL as "free" to
2860 register_gdbarch_data.
2861 (frame_unwind_init): Append the dummy_frame_sniffer.
2862 (frame_unwind_find_by_frame): Simplify.
2863 * frame-base.c (struct frame_base_table): Delete field "p".
2864 (append_predicate): Delete parameter "p".
2865 (frame_base_append_predicate): Delete function.
2866 (frame_base_append_sniffer): Update call to append_predicate.
2867 (frame_base_free): Delete function.
2868 (frame_base_find_by_frame): Simplify.
2869 (_initialize_frame_base): Pass NULL as "free" to
2870 register_gdbarch_data.
2871 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2872 (x86_64_sigtramp_frame_sniffer): Replace
2873 "x86_64_sigtramp_frame_p".
2874 (x86_64_init_abi): Set the frame unwind sniffers.
2875 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2876 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2877 (m68k_gdbarch_init): Set the frame unwind sniffers.
2878 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2879 "i386_sigtramp_frame_p".
2880 (i386_frame_sniffer): Replace "i386_frame_p".
2881 (i386_gdbarch_init): Set the frame unwind sniffers.
2882 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2883 (avr_gdbarch_init): Set the frame unwind sniffers.
2884 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2885 "alpha_sigtramp_frame_p"
2886 (alpha_heuristic_frame_sniffer): Replace
2887 "alpha_heuristic_frame_p".
2888 (alpha_gdbarch_init): Set the frame unwind sniffers.
2889 (alpha_dwarf2_init_abi): Ditto.
2890 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2891 "alpha_debug_frame_p".
2892 (alpha_mdebug_frame_base_sniffer): Replace
2893 "alpha_mdebug_frame_base_p".
2894 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2895 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2896 (d10v_gdbarch_init): Set the frame unwind sniffer.
2897 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2898 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2899 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2900 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2901 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2902 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2903
2904 2003-07-16 Michael Snyder <msnyder@redhat.com>
2905
2906 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2907 should go thru sh_dsp_register_sim_regno, else the dsp regs
2908 will not get the right values.
2909
2910 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2911
2912 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2913 deprecated_store_floating by call to store_typed_floating.
2914 (sh_sh4_register_convert_to_raw): Substitute call to
2915 deprecated_extract_floating by call to extract_typed_floating.
2916
2917 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2918
2919 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2920
2921 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2922
2923 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2924 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2925 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2926 as possible.
2927 (do_pseudo_register): Remove.
2928 (sh_push_dummy_code): New function.
2929 (sh64_store_struct_return): Rename from sh_store_struct_return.
2930 Only called for sh64 now.
2931 (sh_extract_struct_value_address): Regcache'ify.
2932 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2933 and accomodate new tasks.
2934 (sh64_push_return_address): Rename from sh_push_return_address.
2935 Only called for sh64 now.
2936 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2937 Regcache'ify.
2938 (sh3e_sh4_extract_return_value): Regcache'ify.
2939 (sh_default_store_return_value): Ditto.
2940 (sh3e_sh4_store_return_value): Ditto.
2941 (sh_default_register_byte): Remove.
2942 (sh_sh4_register_byte): Remove.
2943 (sh_default_register_raw_size): Remove.
2944 (sh_sh4_register_raw_size): Remove.
2945 (sh_register_virtual_size): Remove.
2946 (sh_sh3e_register_virtual_type): Remove.
2947 (sh_sh3e_register_type): New function.
2948 (sh_sh4_register_virtual_type): Remove.
2949 (sh_sh4_register_type): New function.
2950 (sh_default_register_virtual_type): Remove.
2951 (sh_default_register_type): New function.
2952 (do_fv_register_info): Add parameters to accomodate call from
2953 sh_print_registers_info.
2954 (do_dr_register_info): Ditto.
2955 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2956 Add parameters to accomodate call from sh_print_registers_info.
2957 (sh_do_fp_register): Ditto.
2958 (sh64_do_pseudo_register): Call do_dr_register_info,
2959 do_fv_register_info and sh_do_fp_register with default parameters.
2960 (sh_do_register): Add parameters to accomodate call from
2961 sh_print_registers_info.
2962 (sh_print_register): Ditto.
2963 (sh_print_registers_info): Rename from sh_do_registers_info.
2964 Add parameters to be used as gdbarch_print_registers_info
2965 implementation. Accomodate removed do_pseudo_register function
2966 pointer.
2967 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2968 function pointer. Call sh_print_register with default parameters.
2969 (sh64_do_registers_info): Call sh_print_registers_info instead of
2970 sh_do_registers_info.
2971 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2972 detection of deprecated vs. non-deprecated functionality.
2973 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2974 function pointer assignments by direct function calls.
2975
2976 2003-07-15 Andrew Cagney <cagney@redhat.com>
2977
2978 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2979 (frame_register_unwind, create_new_frame): Ditto.
2980 (legacy_get_prev_frame, get_frame_type): Ditto.
2981 (get_frame_base_address): Use frame_base_find_by_frame.
2982 (get_frame_locals_address): Use frame_base_find_by_frame.
2983 (get_frame_args_address): Use frame_base_find_by_frame.
2984 * frame-base.h (frame_base_sniffer_ftype): Declare.
2985 (frame_base_append_sniffer): Declare.
2986 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2987 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2988 (frame_base_append_sniffer): New function.
2989 (frame_base_append_predicate): Add a NULL sniffer.
2990 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2991 (struct frame_base_table): Add "sniffer".
2992 (frame_base_free): Free the "sniffer" table.
2993 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2994 (frame_unwind_append_sniffer): Declare.
2995 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2996 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2997 (struct frame_unwind_table): Add "sniffer", delete "middle".
2998 (append_predicate): Add "sniffer" parameter, append the sniffer.
2999 (frame_unwind_init): Update append_predicate call.
3000 (frame_unwind_append_sniffer): New function.
3001 (frame_unwind_append_predicate): Update append_predicate call.
3002 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3003
3004 2003-07-15 Andrew Cagney <cagney@redhat.com>
3005
3006 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3007 before code inhibiting repeated unwind attempts. Add to
3008 commentary on that test's problems.
3009 * blockframe.c (inside_main_func): Look for "main" in the minimal
3010 symbol table.
3011 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3012 identical.
3013
3014 2003-07-15 Andrew Cagney <cagney@redhat.com>
3015
3016 * complaints.c (struct explanation): Define.
3017 (struct complaints): Change type of "explanation" to "struct
3018 explanation".
3019 (symfile_explanations): Convert to a "struct explanation" table.
3020 (vcomplaint): Update.
3021
3022 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3023
3024 * x86-64-linux-nat.c (regmap): Removed.
3025 (supply_gregset, fill_gregset): Call
3026 x86_64_linux_(fill,supply)_gregset functions.
3027 * x86-64-linux-tdep.c (USER_*): New defines.
3028 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3029 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3030 New functions.
3031 (fetch_core_registers): Ditto.
3032 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3033 * x86-64-linux-tdep.h: New file.
3034 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3035 and core-regset.o.
3036 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3037
3038 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3039
3040 * x86-64-tdep.c (x86_64_store_return_value): Use
3041 regcache_cooked_write_part instead of regcache_cooked_write.
3042
3043 * configure.host: Add x86_64-*-freebsd*.
3044 * configure.tgt: Add x86_64-*-freebsd*.
3045 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3046 * amd64fbsd-nat.c: New file.
3047 * amd64fbsd-tdep.c: New file.
3048 * config/i386/nm-fbsd64.h: New file.
3049 * config/i386/fbsd64.mh: New file.
3050 * config/i386/fbsd64.mt: New file.
3051
3052 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3053
3054 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3055 `sc_regs_offset' and `sc_fpregs_offset'.
3056 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3057 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3058 (alpha_sigtramp_register_address): Rewrite to use new members of
3059 `struct gdbarch_tdep'.
3060 (alpha_gdbarch_init): Initialize new members of struct
3061 gdbarch_tdep'.
3062 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3063 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3064 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3065 (alphafbsd_pc_in_sigtramp): Implement.
3066 (alphafbsd_sigtramp_offset): New function.
3067 (alphafbsd_sigcontext_addr): New function.
3068 (alphafbsd_init_abi): Initialize signal trampoline related members
3069 of `struct gdbarch_tdep'.
3070 (_initialize_alphafbsd_tdep): Add prototype.
3071
3072 2003-07-11 Theodore A. Roth <troth@openavr.org>
3073
3074 * Makefile.in (install-only): Quote sed expression when generating
3075 transformed_name.
3076
3077 2003-07-11 Richard Henderson <rth@redhat.com>
3078
3079 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3080 * dwarf2-frame.c: Include complaints.h.
3081 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3082 variable initialization; return NULL on error.
3083 (decode_frame_entry): New.
3084
3085 2003-07-11 Andrew Cagney <cagney@redhat.com>
3086
3087 * frame.h (frame_address_in_block): Delete declaration.
3088 * blockframe.c (frame_address_in_block): Delete function.
3089 (get_frame_block): Use get_frame_address_in_block.
3090 (block_innermost_frame): Ditto.
3091 * stack.c (print_frame, backtrace_command_1): Ditto.
3092
3093 * frame.h (get_frame_address_in_block): Declare.
3094 (frame_unwind_address_in_block): Declare.
3095 * frame.c (frame_unwind_address_in_block): New function.
3096 (get_frame_address_in_block): New function.
3097
3098 2003-07-10 Andrew Cagney <cagney@redhat.com>
3099
3100 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3101 pre-default. Note: re-generate has no effect.
3102
3103 2003-07-10 Andrew Cagney <cagney@redhat.com>
3104
3105 * gdbarch.sh: When a variable, but not a function, compare against
3106 0. Fix problem in previous patch.
3107 * gdbarch.c: Re-generate.
3108
3109 2003-07-10 Andrew Cagney <cagney@redhat.com>
3110
3111 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3112 functions against NULL, not 0.
3113 * gdbarch.c: Re-generate.
3114
3115 2003-07-10 Fred Fish <fnf@ninemoons.com>
3116
3117 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3118 null string instead of a null pointer.
3119 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3120
3121 2003-07-09 Michael Snyder <msnyder@redhat.com>
3122
3123 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3124
3125 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3126
3127 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3128 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3129 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3130 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3131 * x86-64-tdep.c: ... from here.
3132
3133 2003-07-09 Andreas Schwab <schwab@suse.de>
3134
3135 * m68k-tdep.h (enum struct_return): Define.
3136 (struct gdbarch_tdep): Add struct_return.
3137 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3138 bytes are padded to the right, not to the left. Pass struct value
3139 address in register %a1, not on stack.
3140 (m68k_use_struct_convention): New function.
3141 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3142 struct_return in tdep to pcc_struct_return.
3143 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3144 reg_struct_return.
3145
3146 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3147
3148 * somread.c (som_symfile_offsets): Fix compilation error.
3149
3150 2003-07-09 Andrew Cagney <cagney@redhat.com>
3151
3152 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3153 Add comments about the checks.
3154
3155 2003-07-08 Andrew Cagney <cagney@redhat.com>
3156
3157 * Makefile.in: Make dependency section headers consistent.
3158 (config_h): Move to $BUILD headers section.
3159 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3160 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3161 (ada-exp.tab.c): Move to YACC/LEX section.
3162 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3163 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3164
3165 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3166
3167 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3168 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3169 of strerror with safe_strerror, use ISO C function definitions,
3170 and replace instances of sprintf with snprintf.
3171
3172 2003-07-07 Andrew Cagney <cagney@redhat.com>
3173
3174 * frame.c (get_prev_frame): Enable check for identical frames.
3175 Update comments. Update error messages.
3176
3177 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3178
3179 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3180
3181 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3182
3183 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3184 sort_symtab_syms, no longer necessary.
3185
3186 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3187
3188 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3189
3190 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3191
3192 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3193 (mips_register_byte): Likewise.
3194
3195 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3196
3197 * Makefile.in (sparc_tdep_h): New.
3198 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3199 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3200 * sparc-linux-nat.c: Include "sparc-tdep.h".
3201 * sparc-nat.c: Likewise.
3202 * sparc-tdep.c: Likewise.
3203 * sparc64nbsd-nat.c: Likewise.
3204 * sparcnbsd-nat.c: Likewise.
3205 * sparcnbsd-tdep.c: Likewise.
3206 * sparc-tdep.h: New file.
3207 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3208 and sparc_npc_regnum.
3209
3210 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3211
3212 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3213 (mips_linux_cannot_store_register): List supported instead of
3214 unsupported registers.
3215
3216 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3217
3218 * disasm.c (dump_insns): Separate instructions from addresses.
3219
3220 2003-07-07 Andreas Schwab <schwab@suse.de>
3221
3222 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3223 dependencies.
3224 * m68k-tdep.c (NUM_FREGS): Delete.
3225 (SIG_PC_FP_OFFSET): Delete.
3226 (TARGET_M68K): Delete.
3227 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3228 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3229 P_MOVEL_SP, P_MOVEML_SP): Define.
3230 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3231 P_TRAP): Delete.
3232 (m68k_register_raw_size): Delete.
3233 (m68k_register_virtual_size): Delete.
3234 (m68k_register_type): Renamed from m68k_register_virtual_type and
3235 add gdbarch argument.
3236 (m68k_store_struct_return): Delete.
3237 (m68k_deprecated_extract_return_value): Delete.
3238 (m68k_deprecated_extract_struct_value_address): Delete.
3239 (m68k_frame_chain): Delete.
3240 (m68k_frame_saved_pc): Delete.
3241 (m68k_fix_call_dummy): Delete.
3242 (m68k_push_dummy_frame): Delete.
3243 (m68k_pop_frame): Delete.
3244 (m68k_extract_return_value): New function.
3245 (m68k_store_return_value): Rewrite using regcache.
3246 (m68k_extract_struct_value_address): Rewrite using regcache.
3247 (m68k_push_dummy_call): New function.
3248 (struct m68k_frame_cache): Define.
3249 (m68k_alloc_frame_cache): New function.
3250 (m68k_analyze_frame_setup): New function.
3251 (m68k_analyze_register_saves): New function.
3252 (m68k_analyze_prologue): New function.
3253 (m68k_skip_prologue): Rewrite using above functions.
3254 (m68k_unwind_pc): New function.
3255 (m68k_frame_cache): New function.
3256 (m68k_frame_this_id): New function.
3257 (m68k_frame_prev_register): New function.
3258 (m68k_frame_unwind): New variable.
3259 (m68k_frame_p): New function.
3260 (m68k_sigtramp_frame_cache): New function.
3261 (m68k_sigtramp_frame_this_id): New function.
3262 (m68k_sigtramp_frame_prev_register): New function.
3263 (m68k_sigtramp_frame_unwind): New variable.
3264 (m68k_sigtramp_frame_p): New function.
3265 (m68k_frame_base_address): New function.
3266 (m68k_frame_base): New function.
3267 (m68k_unwind_dummy_id): New function.
3268 (fill_gregset): Use regcache_collect.
3269 (fill_fpregset): Likewise.
3270 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3271 defined.
3272 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3273 deprecated_init_frame_pc, deprecated_store_struct_return,
3274 deprecated_extract_return_value, deprecated_store_return_value,
3275 deprecated_frame_chain, deprecated_frame_saved_pc,
3276 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3277 deprecated_register_virtual_size,
3278 deprecated_max_register_raw_size,
3279 deprecated_max_register_virtual_size,
3280 deprecated_register_virtual_type, deprecated_register_size,
3281 deprecated_register_byte, deprecated_register_bytes,
3282 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3283 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3284 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3285 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3286 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3287 deprecated_push_dummy_frame, deprecated_pop_frame,
3288 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3289 only if SYSCALL_TRAP is defined. Set extract_return_value,
3290 store_return_value, extract_struct_value_address, register_type,
3291 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3292 predicates.
3293 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3294 M68K_MAX_REGISTER_SIZE): Define.
3295 (struct m68k_sigtramp_info): Define.
3296 (struct gdbarch_tdep): Add get_sigtramp_info.
3297 * m68klinux-nat.c (fetch_register): Use register_size instead of
3298 REGISTER_RAW_SIZE. Don't put assignment in if.
3299 (store_register): Likewise.
3300 (fetch_inferior_registers): Likewise.
3301 (store_inferior_registers): Likewise.
3302 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3303 (m68k_linux_frame_saved_pc): Delete.
3304 (m68k_linux_sigcontext_reg_offset,
3305 m68k_linux_ucontext_reg_offset): Define.
3306 (m68k_linux_get_sigtramp_info): New function.
3307 (m68k_linux_extract_return_value): Rewrite using regcache.
3308 (m68k_linux_store_return_value): Likewise.
3309 (m68k_linux_extract_struct_value_address): Likewise.
3310 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3311 Don't set deprecated_frame_saved_pc,
3312 deprecated_extract_return_value, deprecated_store_return_value,
3313 deprecated_extract_struct_value_address. Set
3314 extract_return_value, store_return_value,
3315 extract_struct_value_address.
3316
3317 2003-07-07 Andrew Cagney <cagney@redhat.com>
3318
3319 * expprint.c: Include "user-regs.h" instead of "frame.h".
3320 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3321 frame_map_regnum_to_name.
3322 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3323 (frame_map_name_to_regnum): Simplify, call
3324 user_reg_map_name_to_regnum.
3325 (frame_map_regnum_to_name): Simplify, call
3326 user_reg_map_regnum_to_name.
3327 (frame_register_unwind): Update.
3328 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3329 (_initialize_frame_reg): Call user_reg_add_builtin.
3330 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3331 (value_of_register): Use value_of_user_reg.
3332 * eval.c (evaluate_subexp_standard): Update.
3333 * parse.c (write_dollar_variable): Update.
3334 * d10v-tdep.c (d10v_print_registers_info): Update.
3335 * infcmd.c (registers_info): Update.
3336 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3337 (builtin_regs_h): Delete macro.
3338 (user_regs_h): Define.
3339 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3340 (builtin-regs.o): Delete target.
3341 (user-regs.o): Specify dependencies.
3342 (expprint.o): Update dependencies.
3343 (findvar.o): Update dependencies.
3344 (frame.o): Update dependencies.
3345 (std-regs.o): Update dependencies.
3346
3347 2003-07-06 Christopher Faylor <cgf@redhat.com>
3348
3349 * win32-nat.c (solib_symbols_add): Use one variable for all section
3350 address stuff. Pass variable rather than address of variable to
3351 safe_symbol_file_add.
3352
3353 2003-07-06 Andreas Schwab <schwab@suse.de>
3354
3355 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3356
3357 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3358
3359 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3360
3361 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3362
3363 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3364
3365 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3366
3367 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3368 * config/i386/nto.mh: New file.
3369 * config/i386/nm-nto.h: New file.
3370 * configure.host: Add i[3456]86-*-nto*.
3371
3372 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3373
3374 * remote-vx.c (vx_add_symbols): Fix compilation error.
3375
3376 2003-07-03 Andrew Cagney <cagney@redhat.com>
3377
3378 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3379 * gdbarch.h, gdbarch.c: Re-generate.
3380 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3381 (legacy_register_name): Declare.
3382 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3383 (REGISTER_NAME): Define.
3384 * sparc-tdep.c (legacy_register_name): New function.
3385 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3386 (REGISTER_NAME): Define.
3387 (hppa64_register_name): Declare.
3388 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3389 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3390 (hppa64_register_name): New function.
3391 (hppa_register_name): New function.
3392 * arch-utils.c (legacy_register_name): Delete.
3393 * arch-utils.h (legacy_register_name): Delete.
3394
3395 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3396
3397 * cli/cli-interp.c (cli_interpreter_resume): Update the
3398 cli_uiout's stream to gdb_stdout.
3399
3400 2003-07-03 Andrew Cagney <cagney@redhat.com>
3401
3402 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3403 predicate.
3404 * gdbarch.h, gdbarch.c: Re-generate.
3405 * regcache.c (init_regcache_descr): Use legacy code when either
3406 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3407
3408 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3409
3410 * NEWS: Move "set logging" entry into GDB 6.0 section.
3411
3412 2003-07-02 Jim Blandy <jimb@redhat.com>
3413
3414 * s390-tdep.c (struct frame_extra_info): new member:
3415 'stack_bought_valid'.
3416 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3417 initialize fextra_info->stack_bought.
3418 (s390_frameless_function_invocation): Don't trust the value of
3419 fextra_info_ptr->stack_bought unless
3420 fextra_info->stack_bought_valid is set.
3421
3422 New S390 prologue analyzer.
3423 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3424 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3425 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3426 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3427 compute_x_addr, s390_on_stack, s390_store,
3428 s390_get_signal_frame_info): New functions.
3429 (S390_NUM_SPILL_SLOTS): New macro.
3430 (s390_get_frame_info): Rewritten.
3431 (is_arg_reg): Deleted.
3432
3433 Break out the decoding of S/390 instructions into separate
3434 functions, to make it more legible, and easier to check
3435 against the spec.
3436 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3437 is_rx, is_rxe): New functions.
3438 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3439 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3440 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3441 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3442 enums for opcode values. (Is this an improvement?)
3443
3444 2003-07-02 Andrew Cagney <cagney@redhat.com>
3445
3446 * i386-tdep.c: Revert change committed as part of trad-frame code
3447 below.
3448
3449 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3450
3451 * breakpoint.c (insert_catchpoint): Make static.
3452
3453 2003-07-02 Andreas Schwab <schwab@suse.de>
3454
3455 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3456 former ia64_push_arguments and ia64_push_return_address, and use
3457 regcache functions instead of read/write_register.
3458 (ia64_gdbarch_init): Set push_dummy_call instead of
3459 deprecated_push_arguments and deprecated_push_return_address.
3460
3461 2003-07-01 Andreas Jaeger <aj@suse.de>
3462
3463 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3464 before the call.
3465 Set %rax only to number of SSE registers used.
3466
3467 2003-07-01 Andrew Cagney <cagney@redhat.com>
3468
3469 * trad-frame.h: Update comments, a -1 .addr is reserved.
3470 (trad_frame_value_p, trad_frame_addr_p): Declare.
3471 (trad_frame_reg_p): Declare.
3472 (trad_frame_set_value): Rename trad_frame_register_value.
3473 (trad_frame_set_unknown): Declare.
3474 * trad-frame.c (trad_frame_realreg_p): New function.
3475 (trad_frame_addr_p, trad_frame_value_p): New function.
3476 (trad_frame_set_unknown): New function.
3477 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3478 (trad_frame_prev_register): Use trad_frame_realreg_p,
3479 trad_frame_addr_p and trad_frame_value_p.
3480 (trad_frame_set_value): Rename trad_frame_register_value.
3481 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3482 and trad_frame_set_value.
3483
3484 2003-06-30 Jim Blandy <jimb@redhat.com>
3485
3486 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3487 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3488 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3489 for 16 registers, and then 32 more bytes.
3490 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3491 New macros.
3492 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3493 Move up in the file, since it's now used by is_simple_arg.
3494 (is_simple_arg): Don't assume registers are four bytes long.
3495 Exclude all double arguments. Extended floats are not simple
3496 args.
3497 (is_power_of_two): New function.
3498 (pass_by_copy_ref): Call is_power_of_two, and check that the
3499 length fits in a register, rather than listing all the acceptable
3500 sizes. Extended floats are not passed by reference.
3501 (s390_push_arguments): Don't assume registers are four bytes long.
3502 Reserve an argument register to point to the buffer for structures
3503 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3504 S390_STACK_FRAME_OVERHEAD.
3505
3506 2003-06-30 Andreas Schwab <schwab@suse.de>
3507
3508 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3509 format error message.
3510
3511 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3512
3513 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3514
3515 2003-06-30 David Carlton <carlton@kealia.com>
3516
3517 Band-aid for PR c++/1245.
3518 * Makefile.in (cp-support.o): Depend on complaints_h.
3519 * cp-support.c: Include complaints.h. Add declaration for
3520 find_last_component.
3521 (cp_find_first_component): Separate code into
3522 cp_find_first_component_aux.
3523 (cp_find_first_component_aux): Call demangled_name_complaint.
3524 (demangled_name_complaint): New.
3525
3526 2003-06-30 Andrew Cagney <cagney@redhat.com>
3527
3528 * remote.c (remote_write_bytes): Explicitly compute and then use
3529 the payload size. Update comments to reflect. Fixes problem of
3530 GDB not sending small packets as found by Fred Fish.
3531
3532 2003-06-30 Andrew Cagney <cagney@redhat.com>
3533
3534 * remote.c (remote_async_wait): Fix -Wformat problem.
3535
3536 2003-06-29 Andrew Cagney <cagney@redhat.com>
3537
3538 * remote.c (remote_wait): Call error, and not warning, when the
3539 packet is corrupt.
3540 (remote_async_wait): Ditto.
3541
3542 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3543
3544 * sparc-tdep.c (sparc_y_regnum): Make external again.
3545
3546 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3547
3548 * cli/cli-logging.c (pop_output_files): Add void to function
3549 definition.
3550
3551 2003-06-29 Andrew Cagney <cagney@redhat.com>
3552
3553 * frame.c (frame_register_unwind): Use unsigned char when dumping
3554 the buffer contents.
3555
3556 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3557
3558 * cli/cli-logging.c: New file.
3559 * cli-out.c (struct ui_out_data): Add original_stream.
3560 (cli_redirect): New function.
3561 (cli_ui_out_impl): Add cli_redirect.
3562 (cli_out_new): Initialize original_stream.
3563 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3564 (uo_redirect, ui_out_redirect): New.
3565 * ui-out.h (struct ui_out_impl): Add redirect member.
3566 (redirect_ftype): New.
3567 (ui_out_redirect): Add prototype.
3568 * Makefile.in: Add rules for cli-logging.c.
3569 * NEWS: Mention "set logging".
3570
3571 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3572
3573 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3574
3575 2003-06-27 Andrew Cagney <cagney@redhat.com>
3576
3577 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3578 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3579 * avr-tdep.c (avr_call_dummy_address): Delete function.
3580 (avr_gdbarch_init): Do not set call_dummy_address.
3581
3582 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3583
3584 * symfile.c (syms_from_objfile): Move variables to inner block.
3585 Move the checks for the non-mainline case a bit earlier to avoid
3586 doing some useless computations.
3587
3588 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3589
3590 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3591
3592 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3593
3594 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3595 sections.
3596
3597 2003-06-26 Michael Chastain <mec@shout.net>
3598
3599 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3600 gdb/testsuite/gdb.c++/pr-1210.exp.
3601
3602 2003-06-26 Andrew Cagney <cagney@redhat.com>
3603
3604 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3605 altivec_expression.h and altivec_registers.h.
3606
3607 2003-06-26 Andrew Cagney <cagney@redhat.com>
3608
3609 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3610 info->mach when MIPS16. Patch suggested by Fred Fish.
3611
3612 2003-06-26 Andrew Cagney <cagney@redhat.com>
3613
3614 * utils.c (internal_vproblem): Print the problem to a reason
3615 buffer and then pass to query. Make the msg variable more local.
3616
3617 2003-06-26 Andrew Cagney <cagney@redhat.com>
3618
3619 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3620 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3621 * gdbarch.h, gdbarch.c: Re-generate.
3622 * frame-base.c (default_frame_args_address): Update. Use
3623 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3624 not available.
3625 (default_frame_locals_address): Ditto for
3626 DEPRECATED_FRAME_LOCALS_ADDRESS.
3627 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3628 (vax_frame_num_args): Update.
3629 (vax_gdbarch_init): Update.
3630 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3631 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3632 * mcore-tdep.c (mcore_gdbarch_init): Update.
3633 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3634 * ia64-tdep.c (ia64_gdbarch_init): Update.
3635 * symtab.h (address_class): Update comments.
3636 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3637 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3638 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3639 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3640 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3641 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3642 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3643 * alpha-mdebug-tdep.c: Update.
3644 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3645
3646 2003-06-26 Andreas Jaeger <aj@suse.de>
3647
3648 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3649 of SSE registers so that varargs functions work. Rework handling
3650 of passing arguments on the stack.
3651 (x86_64_store_return_value): Return double and float values in SSE
3652 register.
3653
3654 2003-06-24 Michael Chastain <mec@shout.net>
3655
3656 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3657 the "constructor breakpoints ignored" bug.
3658
3659 2003-06-25 David Carlton <carlton@kealia.com>
3660
3661 * MAINTAINERS: Update e-mail address.
3662
3663 2003-06-24 Jim Blandy <jimb@redhat.com>
3664
3665 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3666
3667 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3668 function.
3669 (ppc_linux_init_abi): Register it as the
3670 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3671
3672 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3673 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3674 method.
3675
3676 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3677 (ppc64_standard_linkage_target): Use it.
3678
3679 2003-06-23 Andrew Cagney <cagney@redhat.com>
3680
3681 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3682 for 0 "int0" and 4 "int32" sized registers.
3683 * gdbtypes.c (builtin_type_int0): Define.
3684 (build_gdbtypes): Initialize builtin_type_int0.
3685 * gdbtypes.h (builtin_type_int0): Declare.
3686
3687 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3688
3689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3690 as characters are unsigned.
3691
3692 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3693
3694 PR gdb/1179
3695 * dwarfread.c (struct_type): Skip static fields without crashing.
3696
3697 2003-06-22 Andrew Cagney <cagney@redhat.com>
3698
3699 GDB 6.0 branch created.
3700 * README: Update.
3701 * PROBLEMS: Update. Empty.
3702 * NEWS: Update.
3703
3704 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3705
3706 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3707 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3708
3709 2003-06-22 Andrew Cagney <cagney@redhat.com>
3710
3711 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3712 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3713 Velikov.
3714
3715 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3716
3717 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3718 compilers.
3719
3720 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3721
3722 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3723 argument of val_print.
3724 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3725 to the address argument of baseclass_offset or target_read_memory.
3726 Do add it to the argument of cp_print_value_fields.
3727
3728 2003-06-21 Andrew Cagney <cagney@redhat.com>
3729
3730 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3731 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3732 instead of 0..NUM_REGS.
3733 (mips_register_reggroup_p): New function.
3734 (mips_pseudo_register_write): New function.
3735 (mips_pseudo_register_read): New function.
3736 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3737 based on the register's type.
3738 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3739 cooked.
3740 (mips_get_saved_register): Simplify. Assert that REGNO is a
3741 pseudo / cooked.
3742 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3743 (mips_register_type): Replace mips_register_virtual_type. Map
3744 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3745 when available.
3746 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3747 that the register is cooked / virtual.
3748 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3749 Only get the extra info when needed.
3750 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3751 (mips32_heuristic_proc_desc): Fetch the cooked register.
3752 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3753 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3754 (mips_print_register): Use gdbarch_register_type, instead of
3755 REGISTER_VIRTUAL_TYPE.
3756 (print_gp_register_row): Use gdbarch_register_type, instead of
3757 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3758 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3759 Print the pseudo / cooked registers.
3760 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3761 Print the pseudo / cooked registers.
3762 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3763 REG_NUM is pseudo / cooked.
3764 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3765 (mips_n32n64_xfer_return_value): Ditto.
3766 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3767 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3768 (mips_register_sim_regno): New function.
3769 (mips_gdbarch_init): Set deprecated_register_byte,
3770 register_group_p, pseudo_register_write, pseudo_register_read,
3771 register_sim_regno, and num_pseudo_regs. Set register_type,
3772 instead of register_virtual_type.
3773 * Makefile.in (mips-tdep.o): Update dependencies.
3774 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3775 REGISTER_VIRTUAL_TYPE.
3776 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3777 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3778 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3779 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3780 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3781
3782 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3783
3784 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3785 * cli/cli-cmds.c: Include "gdb_vfork.h".
3786 (shell_escape): Use vfork.
3787
3788 2003-06-21 Andrew Cagney <cagney@redhat.com>
3789
3790 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3791 32 bit floating-point register saves.
3792
3793 * frame.h (deprecated_unwind_get_saved_register): Delete.
3794 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3795 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3796 and deprecated_get_next_frame_hack instead of
3797 deprecated_unwind_get_saved_register.
3798
3799 * mips-tdep.c (mips_dump_tdep): Do not print
3800 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3801
3802 * frame.c (get_frame_register): New function.
3803 (frame_unwind_register_signed): New function.
3804 (get_frame_register_signed): New function.
3805 (frame_unwind_register_unsigned): New function.
3806 (get_frame_register_unsigned): New function.
3807 * frame.h: Add comments on naming schema.
3808 (get_frame_register, frame_unwind_register_signed): Declare.
3809 (get_frame_register_signed, get_frame_register_signed): Declare.
3810 (frame_unwind_register_unsigned): Declare.
3811 (get_frame_register_unsigned): Declare.
3812
3813 2003-06-20 Theodore A. Roth <troth@openavr.org>
3814
3815 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3816
3817 2003-06-20 Theodore A. Roth <troth@openavr.org>
3818
3819 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3820 (avr_read_sp): Ditto.
3821
3822 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3823
3824 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3825 * config/arm/nm-linux.h: Likewise.
3826 * config/arm/tm-linux.h: Likewise.
3827 * config/ia64/nm-linux.h: Likewise.
3828 * config/ia64/tm-ia64.h: Likewise.
3829 * config/s390/tm-linux.h: Likewise.
3830 * config/s390/tm-s390.h: Likewise.
3831 * s390-nat.c: Likewise.
3832 * s390-tdep.c: Likewise.
3833
3834 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3835 * config/ia64/linux.mt: Likewise.
3836 * config/m68k/linux.mh: Likewise.
3837 * config/mips/linux.mt: Likewise.
3838 * config/powerpc/linux.mh: Likewise.
3839 * config/sh/linux.mt: Likewise.
3840
3841 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3842
3843 * solib.c (solib_open): Change tests for whether to search
3844 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3845 comments.
3846
3847 2003-06-19 Theodore A. Roth <troth@openavr.org>
3848
3849 * avr-tdep.c (avr_frame_address): Delete function.
3850 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3851 set_gdbarch_frame_args_address.
3852
3853 2003-06-19 Andrew Cagney <cagney@redhat.com>
3854
3855 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3856 (REGISTER_CONVERT_FROM_TYPE): Delete.
3857 (mips_register_convert_to_type): Delete declaration.
3858 (mips_register_convert_from_type): Delete declaration.
3859 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3860 kernel/.
3861
3862 2003-06-19 Michael Snyder <msnyder@redhat.com>
3863
3864 * linux-nat.h: New file.
3865 * linux-nat.c: Include linux-nat.h.
3866 * lin-lwp.c: Include linux-nat.h.
3867 Move struct lwp_info def to linux-nat.h.
3868 * linux-proc.c: Include linux-nat.h.
3869 (linux_make_note_section): Iterate over lwps instead of threads.
3870 (linux_do_thread_registers): Use lwp instead of merged pid.
3871 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3872 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3873 Add dependency on linux_nat_h.
3874
3875 2003-06-19 Theodore A. Roth <troth@openavr.org>
3876
3877 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3878
3879 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3880
3881 * varobj.c (get_type, get_target_type): Use check_typedef.
3882
3883 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3884
3885 * breakpoint.c (insert_catchpoint): Call internal_error.
3886
3887 2003-06-19 Theodore A. Roth <troth@openavr.org>
3888
3889 * avr-tdep.c (avr_push_dummy_code): Delete function.
3890 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3891
3892 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3893
3894 * arch-utils.c (default_prepare_to_proceed): Remove.
3895 (generic_prepare_to_proceed): Remove.
3896 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3897 (generic_prepare_to_proceed): Remove prototype.
3898 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3899 * gdbarch.c: Regenerate.
3900 * gdbarch.h: Regenerate.
3901 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3902 * hppah-nat.c (hppa_switched_threads): Remove.
3903 * infrun.c (prepare_to_proceed): New static function, copied from
3904 generic_prepare_to_proceed. Remove select_it argument.
3905 (proceed): Call prepare_to_proceed.
3906 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3907 variables.
3908 (ptrace_wait): Don't set the removed variables.
3909 (hppa_switched_threads): Remove.
3910 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3911 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3912 (lin_lwp_prepare_to_proceed): Remove prototype.
3913 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3914 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3915
3916 2003-06-18 Theodore A. Roth <troth@openavr.org>
3917
3918 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3919 trad-frame.h.
3920 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3921 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3922 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3923 (AVR_PROLOGUE_*): Enumerate prologue types.
3924 (struct frame_extra_info): Remove.
3925 (struct avr_unwind_cache): Define.
3926 (avr_write_sp): Delete function.
3927 (avr_read_fp): Ditto.
3928 (avr_init_extra_frame_info): Ditto.
3929 (avr_pop_frame): Ditto.
3930 (avr_frame_saved_pc): Ditto.
3931 (avr_saved_pc_after_call): Ditto.
3932 (avr_push_return_address): Ditto.
3933 (avr_frame_chain): Ditto.
3934 (avr_store_struct_return): Ditto.
3935 (avr_push_arguments): Ditto.
3936 (avr_scan_prologue): Update comments. Changed to set up the info for
3937 cache unwinding. Now returns end of prologue PC.
3938 (avr_skip_prologue): Better handling of functions lacking a prologue
3939 by using avr_scan_prologue.
3940 (avr_scan_arg_moves): New function.
3941 (avr_saved_regs_unwinder): Ditto.
3942 (avr_frame_unwind_cache): Ditto.
3943 (avr_unwind_pc): Ditto.
3944 (avr_frame_this_id): Ditto.
3945 (avr_frame_prev_register): Ditto.
3946 (avr_frame_p): Ditto.
3947 (avr_frame_base_address ): Ditto.
3948 (avr_unwind_dummy_id): Ditto.
3949 (avr_push_dummy_code): Ditto.
3950 (push_stack_item): Ditto.
3951 (pop_stack_item): Ditto.
3952 (avr_push_dummy_call): Ditto.
3953 (struct stack_item): Define.
3954 (avr_frame_unwind): Declare structure.
3955 (avr_frame_base): Ditto.
3956 (avr_gdbarch_init): Remove calls to
3957 set_gdbarch_deprecated_init_frame_pc,
3958 set_gdbarch_deprecated_target_read_fp,
3959 set_gdbarch_deprecated_dummy_write_sp,
3960 set_gdbarch_deprecated_fp_regnum,
3961 set_gdbarch_deprecated_push_arguments,
3962 set_gdbarch_deprecated_push_return_address,
3963 set_gdbarch_deprecated_pop_frame,
3964 set_gdbarch_deprecated_store_struct_return,
3965 set_gdbarch_deprecated_frame_init_saved_regs,
3966 set_gdbarch_deprecated_init_extra_frame_info,
3967 set_gdbarch_deprecated_frame_chain,
3968 set_gdbarch_deprecated_frame_saved_pc,
3969 set_gdbarch_deprecated_saved_pc_after_call.
3970 Add calls to set_gdbarch_push_dummy_call,
3971 set_gdbarch_push_dummy_code,
3972 frame_unwind_append_predicate,
3973 frame_base_set_default,
3974 set_gdbarch_unwind_dummy_id,
3975 set_gdbarch_unwind_pc.
3976 Wrap a long line.
3977
3978 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3979
3980 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3981 registers for H8/300S.
3982 (h8300_print_registers_info): Ditto.
3983 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3984
3985 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3986
3987 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3988 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3989 (lin_lwp_wait): Likewise. Update comments.
3990 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3991 (pull_pid_from_list, linux_record_stopped_pid): New.
3992
3993 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3994
3995 * ada-lang.c (scan_discrim_bound): Name first argument.
3996 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3997 declared by ALL_BLOCK_SYMBOLS.
3998
3999 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4000
4001 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4002 ("regcache.h"): Include it.
4003 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4004
4005 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4006
4007 * NEWS: Mention gdbserver detach change and "disconnect" command.
4008 * infcmd.c (disconnect_command): New function.
4009 (_initialize_infcmd): Add ``disconnect'' command.
4010 * remote.c (remote_async_detach): Delete.
4011 (remote_detach): Merge remote_async_detach.
4012 (remote_disconnect): New.
4013 (init_remote_ops): Set to_disconnect.
4014 (init_remote_cisco_ops): Likewise.
4015 (init_remote_async_ops): Likewise. Use remote_detach.
4016 * target.c (cleanup_target): Default to_disconnect.
4017 (update_current_target): Inherit to_disconnect.
4018 (target_disconnect, debug_to_disconnect): New functions.
4019 (setup_target_debug): Set to_disconnect.
4020 * target.h (struct target_ops): Add to_disconnect.
4021 (target_disconnect): Add prototype.
4022
4023 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4024
4025 * breakpoint.c (insert_catchpoint): New function.
4026 (insert_breakpoints): Use catch_exceptions to call
4027 insert_catchpoint. Disable catchpoints if they fail to insert.
4028
4029 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4030
4031 * symfile.c (reread_symbols): Clear sym_private.
4032
4033 2003-06-17 Andrew Cagney <cagney@redhat.com>
4034
4035 * trad-frame.h (struct frame_info): Add opaque declaration.
4036 * remote-fileio.h (struct cmd_list_element): Add opaque
4037 declaration.
4038 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4039 comments.
4040
4041 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4042
4043 * remote.c (remote_prepare_to_store): Replace call to
4044 deprecated_read_register_bytes with multiple regcache_raw_read
4045 calls.
4046
4047 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4048
4049 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4050 (nto_find_and_open_solib): Likewise.
4051 (nto_init_solib_absolute_prefix): Likewise.
4052 (_initialize_nto_tdep): Fix indentation.
4053
4054 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4055
4056 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4057
4058 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4059
4060 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4061
4062 2003-06-17 Jim Blandy <jimb@redhat.com>
4063
4064 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4065
4066 2003-06-16 Theodore A. Roth <troth@openavr.org>
4067
4068 * avr-tdep.c (avr_extract_return_value): New function.
4069 (avr_gdbarch_init): Set extract_return_value method.
4070
4071 2003-06-16 Andrew Cagney <cagney@redhat.com>
4072
4073 * frame.h (deprecated_get_next_frame_hack): Declare.
4074 * frame.c (legacy_saved_regs_prev_register): Only require
4075 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4076 there are always saved regs.
4077 (deprecated_generic_get_saved_register): Do not require
4078 DEPRECATED_FRAME_INIT_SAVED_REGS.
4079 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4080 use frame ID unwind instead.
4081 (deprecated_get_next_frame_hack): New function.
4082
4083 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4084
4085 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4086 (h8300_push_dummy_call): ...this function. Some minor optimization.
4087 (h8300_push_return_address): Remove.
4088 (h8300_gdbarch_init): Remove calls to
4089 set_gdbarch_deprecated_dummy_write_sp,
4090 set_gdbarch_deprecated_push_arguments and
4091 set_gdbarch_deprecated_push_return_address.
4092 Add call to set_gdbarch_push_dummy_call.
4093
4094 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4095
4096 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4097 (E_PSEUDO_EXR_REGNUM): Ditto.
4098 (h8300_is_argument_spill): Check for instructions moving argument
4099 registers into safe registers.
4100 (h8300_skip_prologue): Check for stm instruction to push registers
4101 used for register variables onto stack.
4102 (gdb_print_insn_h8300): Remove.
4103 (h8300_examine_prologue): Add a comment.
4104 (h8300_register_name): Take pseudo registers into account.
4105 (h8300s_register_name): Ditto.
4106 (h8300sx_register_name): Ditto.
4107 (h8300_print_register): Ditto.
4108 (h8300_print_registers_info): Define "nice" printing order.
4109 (h8300_saved_pc_after_call): Take pseudo registers into account.
4110 (h8300_register_type): Ditto. Return type used for remote connection
4111 when requesting real CCR or EXR register, return actual type when
4112 requesting pseudo CCR or EXR.
4113 (h8300_pseudo_register_read): New function.
4114 (h8300_pseudo_register_write): Ditto.
4115 (h8300_dbg_reg_to_regnum): Ditto.
4116 (h8300s_dbg_reg_to_regnum): Ditto.
4117 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4118 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4119 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4120 set_gdbarch_print_insn architecture dependent.
4121 Call set_gdbarch_pseudo_register_read and
4122 set_gdbarch_pseudo_register_write.
4123 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4124
4125 2003-06-16 Andrew Cagney <cagney@redhat.com>
4126
4127 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4128 * gdbarch.h, gdbarch.c: Re-generate.
4129 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4130 * s390-tdep.c (s390_gdbarch_init): Update.
4131 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4132 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4133 * mips-tdep.c (mips_gdbarch_init): Update.
4134 * mcore-tdep.c (mcore_gdbarch_init): Update.
4135 * cris-tdep.c (cris_gdbarch_init): Update.
4136 * infcall.c (call_function_by_hand): Update.
4137 * ia64-tdep.c (ia64_push_arguments): Update comment.
4138 * frame.c (legacy_get_prev_frame): Do not assume
4139 SAVE_DUMMY_FRAME_TOS_P.
4140 * dummy-frame.c (find_dummy_frame): Update comment.
4141
4142 2003-06-16 Andrew Cagney <cagney@redhat.com>
4143
4144 * regcache.c (do_cooked_read): Do not use register_valid_p.
4145
4146 2003-06-15 Theodore A. Roth <troth@openavr.org>
4147
4148 * avr-tdep.c (avr_register_type): Remove a blank line.
4149 (avr_scan_prologue): Correct some comments.
4150
4151 2003-06-15 Theodore A. Roth <troth@openavr.org>
4152
4153 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4154 prologue types.
4155 Properly scan prologues generated by gcc with the -mcall-prologues
4156 option.
4157 Add code to scan -mcall-prologues for mega devices.
4158
4159 2003-06-15 Theodore A. Roth <troth@openavr.org>
4160
4161 * avr-tdep.c (avr_register_byte): Delete function.
4162 (avr_register_raw_size): Delete function.
4163 (avr_register_virtual_size): Delete function.
4164 (avr_register_virtual_type): Delete function.
4165 (avr_register_type): New function.
4166 (avr_address_to_pointer): Remove unused code.
4167 (avr_read_fp): Need to read FP as two separate bytes due to change to
4168 avr_register_type() usage.
4169 (avr_gdbarch_init): Don't set deprecated_register_size.
4170 Don't set deprecated_register_bytes.
4171 Don't set deprecated_register_byte.
4172 Don't set deprecated_register_raw_size.
4173 Don't set deprecated_max_register_raw_size.
4174 Don't set deprecated_register_virtual_size.
4175 Don't set deprecated_max_register_virtual_size.
4176 Don't set deprecated_register_virtual_type.
4177 Set register_type method.
4178
4179 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4180
4181 * Makefile.in (linux-nat.o): Add rule.
4182 * linux-nat.c: New file.
4183 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4184 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4185 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4186 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4187 * config/arm/linux.mh (NATDEPFILES): Likewise.
4188 * config/i386/linux.mh (NATDEPFILES): Likewise.
4189 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4190 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4191 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4192 * config/mips/linux.mh (NATDEPFILES): Likewise.
4193 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4194 * config/s390/s390.mh (NATDEPFILES): Likewise.
4195 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4196
4197 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4198
4199 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4200 replace out-of-date comment.
4201
4202 2003-06-15 Andrew Cagney <cagney@redhat.com>
4203
4204 * rdi-share/host.h (Fail): Change to a varargs function.
4205 * remote-rdi.c (Fail): Update.
4206
4207 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4208
4209 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4210 (i386_convert_register_p, i386_register_to_value,
4211 i386_register_from_value): Handle types longer than 8 bytes.
4212
4213 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4214
4215 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4216 Move floating-point code to new function in i387-tdep.c.
4217 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4218 New functions containing code moved here from i386-tdep.c.
4219 * i387-tdep.h: Add opaque declaration for `struct type'.
4220 (i387_register_to_value, i387_value_to_register): New prototypes.
4221 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4222 (x86_64_init_abi): Set convert_register_p, register_to_value and
4223 value_to_register here.
4224
4225 2003-06-14 Andrew Cagney <cagney@redhat.com>
4226
4227 * mips-tdep.c (mips_register_to_value): Make static.
4228 (mips_value_to_register): Make static.
4229 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4230 * ia64-tdep.c (ia64_register_raw_size): Make static.
4231 (ia64_register_virtual_size): Make static.
4232 (ia64_register_byte): Make static.
4233 * i387-tdep.c: Include "i387-tdep.h".
4234 (print_387_control_word): Delete function.
4235 (print_387_status_word): Delete function.
4236 (print_387_status_bits): Delete function.
4237 (print_387_control_bits): Delete function.
4238 * Makefile.in (i387-tdep.o): Update dependencies.
4239 * rdi-share/host.h (Fail): Declare.
4240 * remote-rdi.c (Fail): Update to match declaration.
4241
4242 2003-06-14 Andrew Cagney <cagney@redhat.com>
4243
4244 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4245 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4246 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4247 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4248 * README: Delete reference to remote-array.
4249 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4250 (remote-array.o): Delete target.
4251 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4252 * remote-array.c: Delete file.
4253
4254 2003-06-14 Andrew Cagney <cagney@redhat.com>
4255 Mark Kettenis <kettenis@gnu.org>
4256
4257 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4258 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4259 parameter with "frame".
4260 * gdbarch.h, gdbarch.c: Re-generate.
4261 * frame.h (put_frame_register): Declare.
4262 * frame.c (put_frame_register): New function.
4263 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4264 (legacy_register_to_value): Rewrite, use "frame" to get the
4265 register value.
4266 (legacy_value_to_register): Rewrite, use "frame" to find the
4267 register's location before storing.
4268 * arch-utils.h (legacy_convert_register_p): Update.
4269 (legacy_register_to_value, legacy_value_to_register): Update.
4270 * findvar.c (value_from_register): Rewrite, eliminate use of
4271 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4272 "frame" to REGISTER_TO_VALUE.
4273 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4274 lval_reg_frame_relative + lval_register branch of the switch. Do
4275 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4276 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4277 I386_EDI_REGNUM): New defines.
4278 (i386_next_regnum, i386_convert_register_p,
4279 i386_register_to_value, i386_value_to_register): New functions.
4280 (i386_register_convertible, i386_register_convert_to_virtual,
4281 i386_convert_to_raw): Remove functions.
4282 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4283 value_to_register instead of register_convertible,
4284 register_convert_to_virtual and register_convert_to_raw.
4285 * mips-tdep.c (mips_convert_register_p): New function.
4286 (mips_value_to_register): Replace mips_register_convert_from_type.
4287 (mips_register_to_value): Replace mips_register_convert_to_type.
4288 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4289 register_to_value.
4290 * alpha-tdep.c (alpha_convert_register_p): Update.
4291 (alpha_value_to_register): Update, store the register.
4292 (alpha_register_to_value): Update, fetch the register.
4293
4294 2003-06-14 Theodore A. Roth <troth@openavr.org>
4295
4296 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4297 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4298 Don't set deprecated_call_dummy_words.
4299 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4300 Don't set remote_translate_xfer_address.
4301 (avr_io_reg_read_command): Remove commented out debug printf.
4302 Wrap a long line.
4303
4304 2003-06-14 Theodore A. Roth <troth@openavr.org>
4305
4306 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4307 causes gdb to seg fault.
4308
4309 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4310
4311 * sparc-nat.c (fetch_inferior_registers): Correct
4312 a reference to "registers".
4313
4314 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4315
4316 * Makefile.in (exc_request_U_h): Define
4317 (exc_request_S_h): Likewise.
4318 (msg_reply_S_h): Likewise.
4319 (msg_U_h): Likewise.
4320 (notify_S_h): Likewise.
4321 (process_reply_S_h): Likewise.
4322 (gnu-nat.o): Depend on gdb_obstack_h
4323 * gnu-nat.c: Include "gdb_obstack.h".
4324
4325 2003-06-13 Andrew Cagney <cagney@redhat.com>
4326
4327 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4328 * gdbarch.h, gdbarch.c: Re-generate.
4329
4330 2003-06-13 Andrew Cagney <cagney@redhat.com>
4331
4332 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4333 when deprecated REGISTER macros can be deleted.
4334 * gdbarch.h, gdbarch.c: Re-generate.
4335
4336 2003-06-13 Jim Blandy <jimb@redhat.com>
4337
4338 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4339 Linux entry point symbols for _dl_debug_state, too.
4340
4341 2003-06-13 Andrew Cagney <cagney@redhat.com>
4342
4343 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4344 available, do not use the FP register, and always save the TOS.
4345 * dummy-frame.c (dummy_frame_this_id): Do not assert
4346 SAVE_DUMMY_FRAME_TOS.
4347 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4348 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4349 (i386_push_dummy_call): Add 8 to the returned SP.
4350 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4351 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4352 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4353 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4354 (x86_64_push_dummy_call): Return "sp + 16".
4355 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4356 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4357 save_dummy_frame_tos.
4358
4359 2003-06-13 Jim Blandy <jimb@redhat.com>
4360
4361 * frv-tdep.c (frv_use_struct_convention): Delete static
4362 declaration for function deleted in my change of 2003-06-12.
4363
4364 2003-06-13 Theodore A. Roth <troth@openavr.org>
4365
4366 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4367 (avr_pointer_to_address): Shift code addrs left 1 bit.
4368 (avr_convert_from_func_ptr_addr): Delete function since operation is
4369 better handled by avr_address_to_pointer and avr_pointer_to_address.
4370 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4371
4372 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4373
4374 From Kelley Cook <kelleycook@wideopenwest.com>:
4375 * configure.host: Accept i[34567]86 variants.
4376 * configure.tgt: Likewise.
4377 * nlm/configure.in: Likewise.
4378 * nlm/configure: Regenerated.
4379
4380 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4381
4382 * arm-tdep.c (solib-svr4.h): Dont' include it.
4383 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4384 * arm-linux-tdep.c: ... here. Make static.
4385 (arm_linux_init_abi): Register it.
4386 (solib-svr4.h): Include it.
4387 * Makefile.in: Update dependencies.
4388 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4389 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4390
4391 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4392
4393 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4394 indicate registers used for return values.
4395 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4396 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4397 members.
4398 (h8300_init_extra_frame_info): Ditto.
4399 (h8300_frame_locals_address): Removed.
4400 (h8300_frame_args_address): Removed.
4401 (h8300_extract_return_value): Use new regcache structure. Only care
4402 for 16 bit CPUs.
4403 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4404 (h8300_store_return_value): Use new regcache structure. Only care
4405 for 16 bit CPUs.
4406 (h8300h_store_return_value): Same function for 32 bit CPUs.
4407 (h8300_store_struct_return): Removed.
4408 (h8300_extract_struct_value_address): Use new regcache structure.
4409 (h8300h_extract_struct_value_address): Removed.
4410 (h8300_push_dummy_code): New function.
4411 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4412 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4413 set_gdbarch_store_return_value architecture dependent.
4414 Call set_gdbarch_push_dummy_code and
4415 set_gdbarch_extract_struct_value_address.
4416 Remove calls to set_gdbarch_frame_args_address,
4417 set_gdbarch_frame_locals_address,
4418 set_gdbarch_deprecated_store_struct_return,
4419 set_gdbarch_deprecated_extract_return_value,
4420 set_gdbarch_deprecated_extract_struct_value_address,
4421 set_gdbarch_deprecated_call_dummy_words and
4422 set_gdbarch_deprecated_sizeof_call_dummy_words.
4423
4424 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4425
4426 * h8300-tdep.c (h8300_register_byte): Remove.
4427 (h8300h_register_byte): Remove.
4428 (h8300_register_virtual_type): Remove. Substitute by...
4429 (h8300_register_type): New function.
4430 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4431 (h8300h_extract_struct_value_address): Ditto.
4432 (h8300_gdbarch_init): Drop calls to
4433 set_gdbarch_deprecated_register_byte and
4434 set_gdbarch_deprecated_register_virtual_type.
4435 Add call to set_gdbarch_register_type.
4436
4437 2003-06-13 Andrew Cagney <cagney@redhat.com>
4438
4439 * gdbarch.sh: Update comments on registers.
4440 (deprecated_register_byte): Rename register_byte.
4441 (deprecated_register_raw_size): Rename register_raw_size.
4442 (deprecated_register_virtual_size): Rename register_virtual_size.
4443 (deprecated_register_virtual_type): Rename register_virtual_type.
4444 * gdbarch.h, gdbarch.c: Re-generate.
4445 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4446 * vax-tdep.c (vax_gdbarch_init): Update.
4447 * v850-tdep.c (v850_gdbarch_init): Update.
4448 * sparc-tdep.c (sparc_gdbarch_init): Update.
4449 * sh-tdep.c (sh_gdbarch_init): Update.
4450 * s390-tdep.c (s390_gdbarch_init): Update.
4451 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4452 * ns32k-tdep.c: Update.
4453 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4454 * mips-tdep.c (mips_gdbarch_init): Update.
4455 * mcore-tdep.c (mcore_gdbarch_init): Update.
4456 * m68k-tdep.c (m68k_gdbarch_init): Update.
4457 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4458 * ia64-tdep.c (ia64_gdbarch_init): Update.
4459 * hppa-tdep.c (hppa_gdbarch_init): Update.
4460 * h8300-tdep.c (h8300_gdbarch_init): Update.
4461 * frv-tdep.c (frv_gdbarch_init): Update.
4462 * cris-tdep.c (cris_gdbarch_init): Update.
4463 * avr-tdep.c (avr_gdbarch_init): Update.
4464 * alpha-tdep.c (alpha_gdbarch_init): Update.
4465 * arm-tdep.c (arm_gdbarch_init): Update.
4466
4467 2003-06-13 Andrew Cagney <cagney@redhat.com>
4468
4469 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4470 mips_o32_use_struct_convention with always_use_struct_convention.
4471
4472 2003-06-12 David Carlton <carlton@kealia.com>
4473
4474 * cp-namespace.c (cp_set_block_scope): Comment out
4475 processing_has_namespace_info branch.
4476
4477 2003-06-12 Jim Blandy <jimb@redhat.com>
4478
4479 Recognize and skip 64-bit PowerPC Linux linkage functions.
4480 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4481 insn_pattern, insns_match_pattern, d_field, ds_field): New
4482 functions, macros, and types for working with PPC instructions.
4483 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4484 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4485 ppc64_skip_trampoline_code): New functions, variables, and macros
4486 for recognizing and skipping linkage functions.
4487 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4488 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4489
4490 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4491 register offsets for both the 32- and 64-bit interfaces.
4492
4493 Actually finish the job started by my change of 2003-05-29.
4494 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4495 other #definition of this.
4496 (ppc_linux_skip_trampoline_code): Remove declaration.
4497 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4498 static.
4499 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4500 method for GDBARCH.
4501
4502 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4503 'long' on ppc64-*-linux*.
4504
4505 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4506 isn't #defined, assume the register doesn't exist: act as if
4507 tdep->ppc_mq_regnum were -1.
4508
4509 * configure.host, configure.tgt: Add entries for
4510 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4511 powerpc/linux.mt.
4512 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4513 New files.
4514
4515 * arch-utils.c (always_use_struct_convention): New function.
4516 * arch-utils.h (always_use_struct_convention): New prototype.
4517 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4518 (alpha_gdbarch_init): Register always_use_struct_convention,
4519 instead of alpha_use_struct_convention.
4520 * cris-tdep.c (cris_use_struct_convention): Delete.
4521 (cris_gdbarch_init): Register always_use_struct_convention,
4522 instead of cris_use_struct_convention.
4523 * frv-tdep.c (frv_use_struct_convention): Delete.
4524 (frv_gdbarch_init): Register always_use_struct_convention,
4525 instead of frv_use_struct_convention.
4526 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4527 (h8300_gdbarch_init): Register always_use_struct_convention,
4528 instead of h8300_use_struct_convention.
4529 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4530 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4531 instead of mips_o32_use_struct_convention.
4532
4533 2003-06-12 Andrew Cagney <cagney@redhat.com>
4534
4535 * wince.c: Include "mips-tdep.h".
4536 * mips-tdep.h (mips_next_pc): Declare.
4537 * mcore-tdep.c: Make more local functions static.
4538 * Makefile.in (wince.o): Update dependencies.
4539
4540 2003-06-12 David Carlton <carlton@kealia.com>
4541
4542 * symtab.c (lookup_symbol_aux_minsyms): Replace
4543 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4544 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4545 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4546 SYMBOL_NATURAL_NAME.
4547
4548 2003-06-12 Andreas Schwab <schwab@suse.de>
4549
4550 * Makefile.in (tuiDisassem.o): Update dependencies.
4551
4552 2003-06-12 David Carlton <carlton@bactrian.org>
4553
4554 * symtab.h: Delete declaration of make_symbol_overload_list.
4555 Add declaration of lookup_partial_symbol.
4556 * symtab.c (remove_params): Move to cp-support.c.
4557 (overload_list_add_symbol, make_symbol_overload_list)
4558 (sym_return_val_size, sym_return_val_index): Ditto.
4559 (lookup_partial_symbol): Make extern.
4560 * cp-support.h: Add declaration of make_symbol_overload_list.
4561 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4562 symtab.h, and block.h.
4563 (remove_params): Move here from symtab.c.
4564 (overload_list_add_symbol, make_symbol_overload_list)
4565 (sym_return_val_size, sym_return_val_index): Ditto.
4566 * valops.c: Include cp-support.h.
4567 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4568 frame_h, and block_h.
4569 (valops.o): Depend on cp_support_h.
4570
4571 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4572
4573 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4574 substitute by NUM_REGS throughout.
4575 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4576 (h8300s_register_name): New function for H8S registers.
4577 (h8300sx_register_name): Ditto for H8SX registers.
4578 (h8300_print_register): Revise register printing, avoid depending
4579 on 32 bit long.
4580 (h8300_register_byte): Only care for H8/300 registers.
4581 (h8300h_register_byte): New function for any other architecture.
4582 (h8300_register_raw_size): Remove.
4583 (h8300_register_virtual_type): Revise to return actually useful
4584 type.
4585 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4586 (h8300h_extract_struct_value_address): New function for any other
4587 architecture.
4588 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4589 set_gdbarch_register_name, set_gdbarch_register_byte,
4590 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4591 Remove calls to set_gdbarch_deprecated_register_size,
4592 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4593 set_gdbarch_deprecated_max_register_raw_size,
4594 set_gdbarch_register_virtual_size and
4595 set_gdbarch_deprecated_max_register_virtual_size entirely.
4596 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4597 set_gdbarch_long_double_bit.
4598
4599 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4600
4601 * doublest.c (convert_doublest_to_floatformat): When dealing
4602 with the implied integer bit, only alter mant_bits if we are
4603 processing a full 32 bits of mantissa.
4604
4605 2003-06-11 David Carlton <carlton@bactrian.org>
4606
4607 * dictionary.h: New.
4608 * dictionary.c: New.
4609 * block.h: Add opaque declaration for struct dictionary.
4610 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4611 'sym' members.
4612 (BLOCK_DICT): New macro.
4613 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4614 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4615 BLOCK_SHOULD_SORT.
4616 (ALL_BLOCK_SYMBOLS): Update definition.
4617 * Makefile.in (SFILES): Add dictionary.c.
4618 (dictionary_h): New.
4619 (COMMON_OBS): Add dictionary.o.
4620 (dictionary.o): New.
4621 (ada-lang.o): Depend on dictionary_h.
4622 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4623 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4624 (mi-cmd-stack.o): Ditto.
4625 (gdbtk-cmds.o): Update dependencies.
4626 (gdbtk-stack.o): Ditto.
4627 * ada-lang.c: Include dictionary.h.
4628 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4629 (fill_in_ada_prototype, debug_print_block): Ditto.
4630 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4631 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4632 'is_sorted'.
4633 * mdebugread.c: Include dictionary.h.
4634 (struct parse_stack): Delete 'maxsyms' member.
4635 (parse_symbol): Update calls to new_block. Delete calls to
4636 shrink_block. Use dictionary methods.
4637 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4638 Update calls to new_symtab. Don't maintain maxsyms data.
4639 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4640 (add_symbol): Just call dict_add_symbol.
4641 (new_symtab): Delete 'maxsyms' argument.
4642 (new_symtab): Update calls to new_block.
4643 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4644 (shrink_block): Delete function.
4645 (fixup_sigtramp): Update call to new_block. Add symbol via
4646 dict_add_symbol.
4647 * jv-lang.c: Include dictionary.h.
4648 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4649 appropriately. Set class_symtab->free_func. Make sure the
4650 blockvector is big enough to hold two blocks.
4651 (add_class_symtab_symbol): Use dictionary methods.
4652 (free_class_block): New function.
4653 (type_from_class): Replace explicit iteration by
4654 ALL_BLOCK_SYMBOLS.
4655 * symtab.h (struct symtab): Replace 'free_ptr' method by
4656 'free_func'.
4657 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4658 sort_symtab_syms.
4659 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4660 sort_symtab_syms.
4661 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4662 Include dictionary.h.
4663 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4664 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4665 sort_symtab_syms.
4666 * objfiles.c: Include dictionary.h.
4667 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4668 * buildsym.c: Include dictionary.h.
4669 (finish_block): Use dictionary methods.
4670 (end_symtab): Set free_func to NULL, not free_ptr.
4671 * tracepoint.c: Include dictionary.h.
4672 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4673 (scope_info): Ditto.
4674 * stack.c: Include dictionary.h.
4675 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4676 (print_block_frame_labels, print_frame_arg_vars)
4677 (print_frame_args): Ditto.
4678 * symmisc.c (free_symtab_block): Use dictionary methods.
4679 (dump_symtab): Ditto.
4680 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4681 Include dictionary.h.
4682 * symfile.h: Delete declarations of sort_block_syms,
4683 sort_symtab_syms.
4684 * symfile.c (sort_block_syms): Delete.
4685 (sort_symtab_syms): Delete.
4686 * symtab.c: Include dictionary.h.
4687 (lookup_block_symbol): Use dictionary iterators.
4688 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4689 (search_symbols, make_symbol_completion_list): Ditto.
4690 (make_symbol_overload_list): Ditto.
4691 * valops.c (value_of_local): Use dict_empty.
4692 Include dictionary.h.
4693
4694 2003-06-11 J. Brobecker <brobecker@gnat.com>
4695
4696 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4697
4698 2003-06-11 David Carlton <carlton@bactrian.org>
4699
4700 * block.h (BLOCK_SHOULD_SORT): Delete.
4701 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4702 blocks.
4703 * ada-lang.c (ada_add_block_symbols): Ditto.
4704 * symfile.c (sort_block_syms): Delete.
4705 (sort_symtab_syms): Ditto.
4706 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4707 declarations.
4708 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4709 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4710 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4711 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4712 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4713 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4714 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4715
4716 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4717
4718 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4719 bits to 128.
4720
4721 2003-06-11 Andrew Cagney <cagney@redhat.com>
4722
4723 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4724 REGISTER_CONVERTIBLE.
4725 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4726 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4727 * gdbarch.h, gdbarch.c: Re-generate.
4728 * arch-utils.h (deprecated_register_convertible_not): Rename
4729 generic_register_convertible_not.
4730 * arch-utils.c (deprecated_register_convertible_not): Rename
4731 generic_register_convertible.
4732 (legacy_convert_register_p, legacy_register_to_value): Update.
4733 * sh-tdep.c (sh64_push_arguments): Update.
4734 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4735 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4736 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4737 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4738 * arch-utils.c (legacy_value_to_register): Update.
4739 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4740 (rs6000_register_convert_to_raw): Make parameter "from" const.
4741 * mips-tdep.c (mips_gdbarch_init): Update.
4742 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4743 * infcmd.c (default_print_registers_info): Update.
4744 * ia64-tdep.c (ia64_gdbarch_init): Update.
4745 (ia64_register_convert_to_raw): Make parameter "from" const.
4746 * i386-tdep.c (i386_gdbarch_init): Update.
4747 (i386_register_convert_to_raw): Update.
4748
4749 2003-06-11 Andrew Cagney <cagney@redhat.com>
4750
4751 * remote-fileio.c: Include "remote-fileio.h".
4752 * Makefile.in (remote-fileio.o): Update dependencies.
4753 (remote_fileio_h): Fix typo.
4754
4755 2003-06-11 Andrew Cagney <cagney@redhat.com>
4756
4757 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4758 (xstormy16_save_dummy_frame_tos): Make static.
4759 (_initialize_xstormy16_tdep): Add declaration.
4760 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4761 * v850-tdep.c: Make local functions static.
4762 (_initialize_v850_tdep): Add declaration.
4763 * sparc-tdep.c: Make local functions static.
4764 (_initialize_sparc_tdep): Add declaration.
4765 * sh-tdep.c: Make local functions static.
4766 (_initialize_sh_tdep): Add declaration.
4767 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4768 * s390-tdep.c: Make local functions static.
4769 (_initialize_s390_tdep): Add declaration.
4770 * dbxread.c (find_stab_function_addr): Make static.
4771 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4772 * ocd.c (_initialize_remote_ocd): Add declaration.
4773 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4774 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4775 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4776 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4777 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4778 * remote-array.c (_initialize_array): Add declaration.
4779 (_initialize_remote_monitors): Add declaration.
4780 * remote-mips.c: Make local functions static.
4781 (_initialize_remote_mips): Add declaration.
4782 * mcore-tdep.c: Make all local functions static.
4783 (_initialize_mcore_tdep): Add declaration.
4784 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4785 * abug-rom.c (_initialize_abug_rom): Add declaration.
4786 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4787 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4788 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4789 * remote-est.c (_initialize_est): Add declaration.
4790 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4791 (m68hc11_call_dummy_address): Make static.
4792 * ia64-tdep.c: Make local functions static.
4793 (_initialize_ia64_tdep): Add declaration.
4794 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4795 * monitor.c (monitor_wait_filter): Make static.
4796 (_initialize_remote_monitors): Add declaration.
4797 * remote-hms.c (_initialize_remote_hms): Add declaration.
4798 * remote-e7000.c (fetch_regs_from_dump): Make static.
4799 (expect_n): Make static.
4800 (_initialize_remote_e7000): Add declaration.
4801 * ser-e7kpc.c: Always include "defs.h".
4802 (_initialize_ser_e7000pc): Add declaration.
4803 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4804 * cris-tdep.c: Make all but one function static.
4805 (_initialize_cris_tdep): Add declaration.
4806 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4807 * solib.c (update_solib_list): Make static.
4808 (_initialize_solib): Add declaration.
4809 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4810 (_initialize_avr_tdep): Add declaration.
4811 * remote-rdi.c (voiddummy): Make static.
4812 (_initialize_remote_rdi): Add declaration.
4813 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4814 * remote-rdp.c (send_rdp): Make static.
4815 (_initialize_remote_rdp): Add declaration.
4816 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4817
4818 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4819
4820 * remote-fileio.c: Make ari happy.
4821
4822 2003-06-10 J. Brobecker <brobecker@gnat.com>
4823
4824 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4825 fetching the trailing bytes of the buffer we are about to write.
4826
4827 2003-06-10 Andrew Cagney <cagney@redhat.com>
4828
4829 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4830 * Makefile.in (remote-fileio.o): Update dependencies.
4831 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4832 include <setjmp.h>, or <sys/types.h> conditional on USG.
4833 (remote_fio_jmp_buf): Delete global variable.
4834
4835 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4836 Martin M. Hunt <hunt@redhat.com>
4837
4838 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4839 (SFILES): Add remote-fileio.c.
4840 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4841 dependencies for building remote.o.
4842 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4843 * remote-fileio.h: New header file defining remote File-I/O interface.
4844 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4845 static storage class.
4846 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4847 'F' packet.
4848 (_initialize_remote): Call initialize_remote_fileio().
4849 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4850 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4851 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4852 (captured_main): Initialize new ui_files.
4853 * ui-file.c: Add read and fgets input functions.
4854 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4855 (null_file_read): New function.
4856 (ui_file_read): New function.
4857 (set_ui_file_read): New function.
4858 (stdio_file_read): New function.
4859 * ui-file.h: New type ui_file_read_ftype.
4860 (set_ui_file_read): Declare.
4861 (ui_file_read): Declare.
4862
4863 2003-06-09 Andrew Cagney <cagney@redhat.com>
4864
4865 * frame.h (deprecated_unwind_get_saved_register): Rename
4866 generic_unwind_get_saved_register, update comments.
4867 * mips-tdep.c (mips_get_saved_register): Update.
4868 * frame.c (deprecated_unwind_get_saved_register): Update.
4869
4870 2003-06-09 Andrew Cagney <cagney@redhat.com>
4871
4872 * vax-tdep.c (vax_frame_locals_address): Delete function.
4873 (vax_gdbarch_init): Do not set frame_locals_address.
4874 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4875 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4876 * s390-tdep.c (s390_frame_args_address): Delete function.
4877 (s390_gdbarch_init): Do not set frame_args_address or
4878 frame_locals_address.
4879 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4880 (ns32k_gdbarch_init): Do not set frame_locals_address.
4881 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4882 (hppa_frame_locals_address): Delete function.
4883 (hppa_gdbarch_init): Do not set frame_args_address, or
4884 frame_locals_address.
4885 * arm-tdep.c (arm_frame_args_address): Delete.
4886 (arm_frame_locals_address): Delete.
4887 (arm_gdbarch_init): Do not set frame_args_address, or
4888 frame_locals_address.
4889
4890 2003-06-09 Andrew Cagney <cagney@redhat.com>
4891
4892 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4893 * gdbarch.h, gdbarch.c: Re-generate.
4894 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4895 * arch-utils.c (frame_num_args_unknown): Delete function.
4896 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4897 (frame_info): Use FRAME_NUM_ARGS_P.
4898 * arm-tdep.c (arm_frame_num_args): Delete function.
4899 (arm_gdbarch_init): Do not set frame_num_args.
4900 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4901 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4902 (hppa_gdbarch_init): Do not set frame_num_args.
4903 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4904 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4905 frame_num_args to default frame_num_args_unknown.
4906 * v850-tdep.c (v850_gdbarch_init): Ditto.
4907 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4908 * sh-tdep.c (sh_gdbarch_init): Ditto.
4909 * s390-tdep.c (s390_gdbarch_init): Ditto.
4910 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4911 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4912 * mips-tdep.c (mips_gdbarch_init): Ditto.
4913 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4914 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4916 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4917 * i386-tdep.c (i386_gdbarch_init): Ditto.
4918 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4919 * frv-tdep.c (frv_gdbarch_init): Ditto.
4920 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4921 * cris-tdep.c (cris_gdbarch_init): Ditto.
4922 * avr-tdep.c (avr_gdbarch_init): Ditto.
4923 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4924
4925 2003-06-09 Andrew Cagney <cagney@redhat.com>
4926
4927 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4928 (print_frame_args): Moved to "stack.c".
4929 * stack.c: Include "gdb_assert.h".
4930 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4931 (print_frame_args): Moved from "printcmd.c".
4932 * frame.h (print_frame_args): Delete declaration.
4933 * Makefile.in (stack.o): Update dependencies.
4934
4935 2003-06-08 Andrew Cagney <cagney@redhat.com>
4936
4937 * frame.c (get_prev_frame): Remove reference to
4938 frame_args_address_correct in comments.
4939 * frame-base.c (default_frame_args_address): Delete code
4940 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4941 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4942 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4943 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4944 (vax_frame_args_address_correct): Delete declaration.
4945
4946 2003-06-08 Andrew Cagney <cagney@redhat.com>
4947
4948 * gdbarch.sh (UNWIND_SP): Add.
4949 * gdbarch.h, gdbarch.c: Re-generate.
4950 * frame.c (frame_sp_unwind): New function.
4951 (get_frame_sp): New function.
4952 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4953 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4954 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4955 value.
4956 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4957 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4958
4959 2003-06-08 Andrew Cagney <cagney@redhat.com>
4960
4961 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4962 REMOTE_BREAKPOINT.
4963 * remote.c: Update.
4964 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4965 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4966 * config/m68k/tm-sun3.h: Update.
4967 * config/m68k/tm-m68klynx.h: Update.
4968 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4969
4970 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4971 trad_frame". Update comments.
4972 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4973 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4974 (trad_frame_register_value, trad_frame_prev_register): Update.
4975
4976 2003-06-08 Andrew Cagney <cagney@redhat.com>
4977
4978 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4979 from GCC's acinclude.m4.
4980 * configure.in: Check for getopt's delcaration.
4981 * aclocal.m4, config.in, configure: Re-generate.
4982 * main.c (error_init): Delete declaration.
4983 * defs.h (error_init): Declare.
4984 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4985 (rs6000_convert_from_func_ptr_addr): Make static.
4986 (_initialize_rs6000_tdep): Add declaration.
4987 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4988 (show_commands, set_verbose, show_history): Delete declaration.
4989 * top.h (set_verbose): Add declaration.
4990 (show_history, set_history, show_commands): Add declaration.
4991 (do_restore_instream_cleanup): Add declaration.
4992 * objc-lang.c (specialcmp): Make static.
4993 (print_object_command): Make static.
4994 (find_objc_msgsend): Make static.
4995 (find_objc_msgcall_submethod_helper): Make static.
4996 (find_objc_msgcall_submethod): Make static.
4997 (_initialize_objc_language): Add declaration.
4998 (find_implementation_from_class): Make static.
4999 (find_implementation): Make static.
5000 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5001 * objc-lang.h (lookup_struct_typedef): Add declaration.
5002 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5003 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5004 (do_restore_user_call_depth): Make static.
5005 (do_restore_instream_cleanup): Delete declaration.
5006 (dont_repeat): Delete declaration.
5007 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5008 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5009 * reggroups.c (_initialize_reggroup): Add declaration.
5010 * cp-support.c (_initialize_cp_support): Add declaration.
5011 * cp-abi.c (_initialize_cp_abi): Add declaration.
5012 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5013 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5014 (_initialize_gnu_v3_abi): Add declaration.
5015 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5016 (_initialize_gnu_v2_abi): Add declaration.
5017 * frame-base.c (_initialize_frame_base): Add declaration.
5018 * doublest.c (floatformat_from_length): Make static.
5019 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5020 * frame.c (create_sentinel_frame): Make static.
5021 (_initialize_frame): Add declaration.
5022 * top.c (do_catch_errors): Make static.
5023 (gdb_rl_operate_and_get_next_completion): Make static.
5024 * typeprint.c: Include "typeprint.h".
5025 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5026 (sentinel_frame_this_id): Make static.
5027 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5028 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5029 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5030 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5031 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5032 * maint.c (maintenance_print_architecture): Make static.
5033 * signals/signals.c (_initialize_signals): Add declaration.
5034 * std-regs.c (_initialize_frame_reg): Add declaration.
5035 * jv-exp.y (push_variable): ISO C definition.
5036 (push_qualified_expression_name): Ditto.
5037 * memattr.c (_initialize_mem): Add declaration.
5038 * remote.c (remote_check_watch_resources): Make static.
5039 (remote_stopped_by_watchpoint): Make static.
5040 (remote_stopped_data_address): Make static.
5041 * d10v-tdep.c (nr_dmap_regs): Make static.
5042 (a0_regnum): Make static.
5043 (d10v_frame_unwind_cache): Make static.
5044 (d10v_frame_p): Make static.
5045 * osabi.c (show_osabi): Make static.
5046 (_initialize_gdb_osabi): Add extern declaration.
5047 * gdbtypes.c (make_qualified_type): Make static.
5048 (safe_parse_type): Make static.
5049 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5050 * macrotab.c (macro_bcache_free): Make static.
5051 * interps.c (interp_set_quiet): Make static.
5052 (interpreter_exec_cmd): Make static.
5053 * stack.h (select_frame_command): New file.
5054 * stack.c: Include "stack.h".
5055 (select_frame_command_wrapper): Delete function.
5056 (select_frame_command): Make global.
5057 * infcall.c: Include "infcall.h".
5058 * linespec.c: Include "linespec.h".
5059 * symfile.c (sections_overlap): Make static.
5060 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5061 * charset.c (_initialize_charset): Add missing prototype.
5062 * regcache.c (init_legacy_regcache_descr): Make static.
5063 (do_regcache_xfree): Make static.
5064 (regcache_xfer_part): Make static.
5065 (_initialize_regcache): Add missing prototype.
5066 * breakpoint.c (parse_breakpoint_sals): Make static.
5067 (breakpoint_sals_to_pc): Make static.
5068 * interps.h (clear_interpreter_hooks): ISO C declaration.
5069 * Makefile.in (stack_h): Define.
5070 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5071 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5072
5073 2003-06-08 Andrew Cagney <cagney@redhat.com>
5074
5075 * Makefile.in (d10v-tdep.o): Update dependencies.
5076 (SFILES): Add trad-frame.c.
5077 (trad_frame_h): Define.
5078 (COMMON_OBS): Add trad-frame.o.
5079 (trad-frame.o): Specify dependencies.
5080 * d10v-tdep.c: Include "trad-frame.h".
5081 (saved_regs_unwinder): Delete function.
5082 (d10v_frame_prev_register): Use trad_frame_prev_register.
5083 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5084 trad_frame", delete "regs" and "prev_sp".
5085 (prologue_find_regs): Use trad-frame.
5086 * trad-frame.h, trad-frame.c: New files.
5087
5088 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5089
5090 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5091
5092 2003-06-07 Adam Fedor <fedor@gnu.org>
5093
5094 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5095 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5096 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5097 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5098 resolve_msgsend_super, resolve_msgsend_super_stret):
5099 Use it.
5100
5101 2003-06-07 Andrew Cagney <cagney@redhat.com>
5102
5103 * symfile.h: Re-indent, clean up comments.
5104
5105 2003-06-07 Andrew Cagney <cagney@redhat.com>
5106
5107 * inferior.h (deprecated_write_sp): Replace
5108 generic_target_write_sp.
5109 * regcache.c (deprecated_write_sp): Replace
5110 generic_target_write_sp.
5111 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5112 * vax-tdep.c (vax_gdbarch_init): Update.
5113 * v850-tdep.c (v850_gdbarch_init): Update.
5114 * sparc-tdep.c (sparc_gdbarch_init): Update.
5115 * sh-tdep.c (sh_gdbarch_init): Update.
5116 * s390-tdep.c (s390_gdbarch_init): Update.
5117 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5118 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5119 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5120 * mcore-tdep.c (mcore_gdbarch_init): Update.
5121 * m68k-tdep.c (m68k_gdbarch_init): Update.
5122 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5123 * ia64-tdep.c (ia64_gdbarch_init): Update.
5124 * h8300-tdep.c (h8300_gdbarch_init): Update.
5125 * frv-tdep.c (frv_gdbarch_init): Update.
5126 * cris-tdep.c (cris_gdbarch_init): Update.
5127 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5128
5129 2003-06-07 Andrew Cagney <cagney@redhat.com>
5130
5131 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5132 Assert that PC_REGNUM is valid.
5133 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5134
5135 2003-06-07 Andrew Cagney <cagney@redhat.com>
5136
5137 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5138 * gdbarch.h, gdbarch.c: Regenerate.
5139 * mn10300-tdep.c: Include "gdb_assert.h".
5140 (mn10300_read_fp): New function.
5141 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5142 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5143 * ia64-tdep.c: Include "gdb_assert.h".
5144 (ia64_read_fp): New function.
5145 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5146 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5147 * regcache.c (generic_target_read_sp): Delete function.
5148 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5149 * inferior.h (generic_target_read_sp): Delete declaration.
5150 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5151 generic_target_read_sp.
5152 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5153 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5154 * sh-tdep.c (sh_gdbarch_init): Ditto.
5155 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5156 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5157
5158 2003-06-07 Andrew Cagney <cagney@redhat.com>
5159
5160 * gdbarch.sh: Comment each field of startup_gdbarch.
5161 * gdbarch.h, gdbarch.c: Re-generate.
5162
5163 2003-06-07 Andrew Cagney <cagney@redhat.com>
5164
5165 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5166 * gdbarch.h, gdbarch.c: Re-generate.
5167 * regcache.c: Update comments on read_pc et.al.
5168 (generic_target_read_pc): Delete function.
5169 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5170 * inferior.h (generic_target_read_pc): Delete declaration.
5171 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5172 generic_target_read_pc.
5173 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5174 * sh-tdep.c (sh_gdbarch_init): Ditto.
5175 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5176 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5177
5178 2003-06-07 Andrew Cagney <cagney@redhat.com>
5179
5180 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5181 "index" with "special_local_sect". Use strcmp instead of STREQ.
5182 Append period to coments.
5183
5184 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5185
5186 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5187 (elfstab_offset_sections): Likewise.
5188 * gdb-stabs.h (stab_section_info): Likewise.
5189 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5190 * objfiles.c (objfile_relocate): Likewise.
5191 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5192 * remote.c (get_offsets): Likewise.
5193 (remote_cisco_objfile_relocate): Likewise.
5194 * somread.c (som_symfile_offsets): Likewise.
5195 * symfile.c (alloc_section_addr_info): New function.
5196 (build_section_addr_info_from_section_tab): Use it.
5197 (free_section_addr_info): Adjust.
5198 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5199 (syms_from_objfile): Allocate local_addr dynamically.
5200 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5201 dynamically.
5202 (add_symbol_file_command): Allocate sect_opts dynamically.
5203 (reread_symbols): Avoid use of SECT_OFF_MAX.
5204 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5205 (alloc_section_addr_info): Declare it.
5206 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5207 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5208 dynamically.
5209 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5210
5211 2003-06-06 Andrew Cagney <cagney@redhat.com>
5212
5213 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5214 (d10v_frame_unwind_cache): Do not set "return_pc".
5215
5216 2003-06-06 Michael Snyder <msnyder@redhat.com>
5217
5218 * h8300-tdep.c: Make tidy (long lines).
5219
5220 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5221
5222 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5223 to regcache_collect().
5224
5225 2003-06-05 J. Brobecker <brobecker@gnat.com>
5226
5227 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5228 pc_in_sigtramp multiarch method.
5229 (hppa_hpux_som_init_abi): Use it.
5230 (hppa_hpux_elf_init_abi): Likewise.
5231 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5232 macro has been multiarched.
5233 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5234 macro here, as hppa64 isn't multiarched yet.
5235
5236 2003-06-05 Andrew Cagney <cagney@redhat.com>
5237
5238 * Makefile.in (value_h): Add $(frame_h).
5239 * value.h: Include "frame.h".
5240 (struct value): Replace "frame_addr" with "frame_id".
5241 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5242 * values.c (allocate_value): Use VALUE_FRAME_ID.
5243 (value_copy): Use VALUE_FRAME_ID.
5244 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5245 * valops.c (value_assign): Update. Use frame_find_by_id.
5246
5247 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5248
5249 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5250 in each pass.
5251
5252 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5253
5254 * thread-db.c (check_event): For create/death event breakpoints,
5255 loop through all messages to ensure that we read the message
5256 corresponding to the breakpoint we are at.
5257
5258 2003-06-04 Michael Snyder <msnyder@redhat.com>
5259
5260 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5261
5262 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5263
5264 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5265 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5266 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5267 when handling .eh_frame sections.
5268
5269 2003-06-04 J. Brobecker <brobecker@gnat.com>
5270
5271 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5272 prepare_to_proceed procedure instead of the hppa-specific one.
5273 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5274
5275 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5276
5277 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5278 * config.in: Regenerated.
5279 * configure.in: Add test for syscall function and check for
5280 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5281 * configure: Regenerated.
5282 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5283 <sys/syscall.h>.
5284 (kill_lwp): New function that uses tkill syscall or
5285 uses kill, depending on whether threading model is nptl or not.
5286 All callers of kill() changed to use kill_lwp().
5287 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5288 see if all threads have already exited in the nptl model.
5289 (stop_and_resume_callback): New callback function used by the
5290 lin_lwp_wait thread exit handling code.
5291 (stop_wait_callback): Check for threads already having exited and
5292 delete such threads fromt the lwp list when discovered.
5293 (stop_callback): Don't assert retcode of kill call.
5294
5295 Roland McGrath <roland@redhat.com>
5296 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5297 nptl libthread_db.
5298
5299 2003-06-03 Richard Henderson <rth@redhat.com>
5300
5301 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5302 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5303 (alpha_sigtramp_frame_prev_register): Likewise.
5304 (alpha_heuristic_frame_prev_register): Likewise.
5305 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5306
5307 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5308 alpha-specific register id names.
5309 (alpha_mdebug_frame_unwind_cache): Likewise.
5310 (alpha_mdebug_frame_prev_register): Likewise.
5311
5312 2003-06-03 Richard Henderson <rth@redhat.com>
5313
5314 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5315 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5316 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5317 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5318 unwind routines.
5319 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5320 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5321 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5322
5323 * alpha-linux-tdep.c: Remove unnecessary includes.
5324 * Makefile.in (alpha-linux-tdep.o): Update.
5325
5326 2003-06-03 Richard Henderson <rth@redhat.com>
5327
5328 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5329 (alphabsd_fill_fpreg): Likewise.
5330
5331 2003-06-03 J. Brobecker <brobecker@gnat.com>
5332
5333 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5334 references to struct frame_info fields by calls to the equivalent
5335 accessors. Necessary now that frame_info is opaque.
5336
5337 2003-06-03 J. Brobecker <brobecker@gnat.com>
5338
5339 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5340 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5341 structure, field no longer exists.
5342
5343 2003-06-03 J. Brobecker <brobecker@gnat.com>
5344
5345 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5346 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5347
5348 2003-06-03 J. Brobecker <brobecker@gnat.com>
5349
5350 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5351 references to struct frame_info fields by calls to the equivalent
5352 accessors. Necessary now that frame_info is opaque.
5353
5354 2003-06-03 J. Brobecker <brobecker@gnat.com>
5355
5356 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5357 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5358 structure, field no longer exists.
5359
5360 2003-06-03 Theodore A. Roth <troth@openavr.org>
5361
5362 * remote.c (init_remote_state): Compute sizeof_g_packet by
5363 accumulation of the size of all registers instead of blindly using
5364 DEPRECATED_REGISTER_BYTES.
5365
5366 2003-06-03 Michael Snyder <msnyder@redhat.com>
5367
5368 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5369 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5370 for h8300sx.
5371
5372 2003-06-03 J. Brobecker <brobecker@gnat.com>
5373
5374 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5375 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5376
5377 2003-06-03 Andrew Cagney <cagney@redhat.com>
5378
5379 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5380 (sparc_convert_to_raw): Delete function.
5381 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5382 register_convert_to_virtual.
5383
5384 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5385
5386 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5387 layer if not dealing with a statically-linked threaded program.
5388
5389 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5390
5391 * solib.c (solib_open): Update comment to reflect actual search order.
5392
5393 2003-06-03 Andrew Cagney <cagney@redhat.com>
5394
5395 * frame.c (get_frame_memory_signed): New function.
5396 (get_frame_memory, get_frame_memory_unsigned): New function.
5397 (get_frame_arch): New function.
5398 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5399 (get_frame_memory, get_frame_unsigned_memory): Declare.
5400 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5401 get_frame_memory_unsigned and get_frame_arch.
5402 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5403
5404 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5405
5406 * MAINTAINERS (write after approval): Add myself.
5407
5408 2003-06-03 Jim Blandy <jimb@redhat.com>
5409
5410 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5411 elements of gregset_t are 64 bits each, but access registers
5412 are still 32 bits, so they're packed two per gregset_t
5413 element. Unpack/pack them properly.
5414
5415 2003-06-02 David Carlton <carlton@bactrian.org>
5416
5417 * linespec.c (find_methods): Break out code into
5418 add_matching_methods and add_constructors.
5419 (add_matching_methods): New.
5420 (add_constructors): Ditto.
5421
5422 2003-06-02 Andrew Cagney <cagney@redhat.com>
5423
5424 * sparc-tdep.c (sparc_print_registers): Delete call to
5425 REGISTER_CONVERTIBLE.
5426 (sparc_gdbarch_init): Do not set register_convertible.
5427 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5428 * frv-tdep.c (frv_gdbarch_init): Ditto.
5429 * cris-tdep.c (cris_gdbarch_init): Ditto.
5430
5431 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5432
5433 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5434 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5435 (syms_from_objfile): Ditto.
5436
5437 2003-06-03 Andreas Schwab <schwab@suse.de>
5438
5439 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5440 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5441
5442 2003-06-02 Richard Henderson <rth@redhat.com>
5443
5444 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5445 a member of all_reggroup.
5446
5447 2003-06-02 Richard Henderson <rth@redhat.com>
5448
5449 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5450 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5451 (alpha_lds, alpha_sts): New.
5452 (alpha_convert_register_p): Change from _register_convertible.
5453 (alpha_register_to_value): Change from _convert_to_virtual;
5454 restructure and fail for type sizes other than 4 or 8.
5455 (alpha_value_to_register): Similarly.
5456 (alpha_extract_return_value): Use alpha_sts.
5457 (alpha_store_return_value): Use alpha_lds.
5458 (alpha_gdbarch_init): Update hooks.
5459
5460 2003-06-02 Richard Henderson <rth@redhat.com>
5461
5462 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5463 regnum identifiers.
5464 (alpha_sigtramp_register_address): Likewise.
5465
5466 2003-06-02 Richard Henderson <rth@redhat.com>
5467
5468 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5469 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5470 * alpha-tdep.h: Declare them.
5471
5472 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5473 Remove zerobuf. Don't error on UNIQUE.
5474 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5475 (ALPHA_REGSET_UNIQUE): Provide default.
5476 (supply_gregset): Use alpha_supply_int_regs.
5477 (fill_gregset): Use alpha_fill_int_regs.
5478 (supply_fpregset): Use alpha_supply_fp_regs.
5479 (fill_fpregset): Use alpha_fill_fp_regs.
5480 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5481 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5482 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5483 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5484 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5485 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5486
5487 2003-06-02 Richard Henderson <rth@redhat.com>
5488
5489 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5490
5491 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5492 (alpha_store_return_value): Likewise.
5493
5494 2003-06-02 David Carlton <carlton@math.stanford.edu>
5495
5496 * block.c (contained_in): Add 'const' to arguments.
5497 (block_function): Ditto.
5498 * block.h: Update declarations for block_function and
5499 contained_in.
5500
5501 2003-06-02 David Carlton <carlton@math.stanford.edu>
5502
5503 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5504 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5505 * p-valprint.c (pascal_val_print): Ditto.
5506 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5507
5508 2003-06-02 Richard Henderson <rth@redhat.com>
5509
5510 * alpha-tdep.c (alpha_push_dummy_call): Use
5511 builtin_type_ieee_double_little instead of builtin_type_double.
5512
5513 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5514 sign-extension of 32-bit values.
5515 (alpha_store_return_value): Similarly.
5516
5517 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5518 (alpha_extract_return_value): Likewise.
5519 (alpha_store_return_value): Likewise.
5520
5521 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5522 (alpha_store_return_value): Error on IEEE Quad floats.
5523
5524 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5525 (alpha_extract_struct_value_address): Likewise.
5526 (alpha_store_return_value): Likewise.
5527 (alpha_store_struct_return): Remove.
5528 (alpha_gdbarch_init): Update hook registration to match.
5529
5530 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5531 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5532 macros where appropriate.
5533 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5534 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5535
5536 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5537 for SP, GP; void_func_ptr for PC; non-language-specific types
5538 for all others.
5539 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5540
5541 2003-06-02 Richard Henderson <rth@redhat.com>
5542
5543 * top.h (lim_at_start): Declare.
5544 * main.c (captured_main): Set it.
5545 * top.c (lim_at_start): Define.
5546 (command_loop): Use it instead of &environ.
5547 * event-top.c (command_handler): Likewise.
5548
5549 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5550
5551 * mipsnbsd-tdep.c: Update copyright years.
5552 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5553
5554 2003-06-01 Richard Henderson <rth@redhat.com>
5555
5556 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5557 (alpha-linux-tdep.o): Update dependencies.
5558 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5559 * alpha-mdebug-tdep.c: Remove unneeded includes.
5560
5561 2003-06-01 Richard Henderson <rth@redhat.com>
5562
5563 * alpha-tdep.c (alpha_register_reggroup_p): New.
5564 (alpha_gdbarch_init): Register it.
5565
5566 2003-06-02 Andrew Cagney <cagney@redhat.com>
5567
5568 * dwarfread.c: Eliminate "register"
5569 (decode_die_type): Eliminate assignment within "if".
5570 (struct_type, decode_array_element_type): Ditto.
5571 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5572 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5573 (decode_modified_type, completedieinfo): Ditto.
5574 * block.c: Eliminate "register".
5575 (blockvector_for_pc_sect): Eliminate assignment within "if".
5576 * cp-support.h (struct symbol): Opaque declaration.
5577 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5578
5579 2003-06-01 Richard Henderson <rth@redhat.com>
5580
5581 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5582 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5583
5584 2003-06-01 Adam Fedor <fedor@gnu.org>
5585
5586 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5587 * gdbarch.[ch]: Regenerate.
5588 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5589 (hppa_gdbarch_init): Set it in the gdbarch vector.
5590 * i386-tdep.c (i386_fetch_pointer_argument): New
5591 (i386_gdbarch_init): Set it into gdbarch.
5592 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5593 (rs6000_gdbarch_init): Set it in gdbarch.
5594 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5595 (sparc_gdbarch_init): Set it in gdbarch.
5596
5597 2003-06-01 Andrew Cagney <cagney@redhat.com>
5598
5599 * defs.h (extract_address): Delete declaration.
5600 * findvar.c (extract_address): Delete function.
5601 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5602 extract_address with the inline equivalent,
5603 extract_unsigned_integer.
5604 (xstormy16_extract_struct_value_address): Ditto.
5605 (xstormy16_pointer_to_address): Ditto.
5606 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5607 * v850-tdep.c (v850_push_arguments): Ditto.
5608 (v850_extract_return_value): Ditto.
5609 (v850_extract_struct_value_address): Ditto.
5610 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5611 (sparcnbsd_get_longjmp_target_64): Ditto.
5612 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5613 (get_longjmp_target): Ditto.
5614 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5615 (sh64_extract_struct_value_address): Ditto.
5616 (sh_push_arguments): Ditto.
5617 (sh64_push_arguments): Ditto.
5618 * remote-vxsparc.c (vx_read_register): Ditto.
5619 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5620 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5621 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5622 * mipsv4-nat.c (get_longjmp_target): Ditto.
5623 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5624 * mips-nat.c (get_longjmp_target): Ditto.
5625 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5626 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5627 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5628 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5629 * irix5-nat.c (get_longjmp_target): Ditto.
5630 * irix4-nat.c (get_longjmp_target): Ditto.
5631 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5632 (ia64_push_arguments): Ditto.
5633 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5634 * h8300-tdep.c (h8300_push_arguments): Ditto.
5635 (h8300_store_return_value): Ditto.
5636 (h8300_extract_struct_value_address): Ditto.
5637 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5638 (frv_push_arguments): Ditto.
5639 * avr-tdep.c (avr_pointer_to_address): Ditto.
5640 (avr_push_arguments): Ditto.
5641 * arm-tdep.c (arm_push_dummy_call): Ditto.
5642 (arm_get_longjmp_target): Ditto.
5643 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5644 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5645 (alpha_get_longjmp_target): Ditto.
5646
5647 * solib-irix.c (extract_mips_address): Inline extract_address,
5648 replacing it with extract_signed_integer.
5649 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5650 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5651 (first_link_map_member, open_symbol_file_object): Ditto.
5652 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5653 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5654 (LM_NEXT, LM_NAME): Ditto.
5655
5656 2003-06-01 Richard Henderson <rth@redhat.com>
5657
5658 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5659 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5660 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5661 (alpha_cannot_store_register): Likewise.
5662 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5663 * alpha-nat.c (supply_gregset): Likewise.
5664 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5665
5666 2003-06-01 Andrew Cagney <cagney@redhat.com>
5667
5668 * infcall.c (call_function_by_hand): Update comment on
5669 DEPRECATED_DUMMY_WRITE_SP.
5670
5671 * mips-tdep.c (mips_gdbarch_init): Do not set
5672 deprecated_dummy_write_sp.
5673 (mips_eabi_push_dummy_call): Set the SP register.
5674 (mips_o64_push_dummy_call): Set the SP register.
5675 (mips_o32_push_dummy_call): Set the SP register.
5676 (mips_n32n64_push_dummy_call): Set the SP register.
5677
5678 2003-06-01 Richard Henderson <rth@redhat.com>
5679
5680 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5681 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5682 (supply_gregset): Likewise.
5683 * alpha-tdep.c (alpha_store_return_value): Likewise.
5684 (alpha_get_longjmp_target): Likewise.
5685 (alpha_register_name): Constify array.
5686 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5687 deprecated_register_size, deprecated_register_bytes,
5688 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5689 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5690 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5691
5692 2003-06-01 Richard Henderson <rth@redhat.com>
5693
5694 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5695 from arg_reg_buffer to regcache to avoid double conversion.
5696
5697 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5698
5699 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5700 SP_REGNUM.
5701 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5702 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5703
5704 2003-06-01 Richard Henderson <rth@redhat.com>
5705
5706 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5707 (decode_frame_entry): Set it. Skip FDE augmentation.
5708
5709 2003-06-01 Richard Henderson <rth@redhat.com>
5710
5711 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5712 not overlapping PC_REGNUM.
5713
5714 2003-06-01 Richard Henderson <rth@redhat.com>
5715
5716 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5717 alpha_push_arguments. Don't dump argument register data to
5718 the target stack. Fix float and 128-bit long double semantics.
5719 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5720 (alpha_fix_call_dummy): Remove.
5721 (alpha_call_dummy_words): Remove.
5722 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5723
5724 2003-06-01 Richard Henderson <rth@redhat.com>
5725
5726 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5727
5728 2003-06-01 Andrew Cagney <cagney@redhat.com>
5729
5730 * mips-tdep.c (is_mips16_addr): New function.
5731 (make_mips16_addr, unmake_mips16_addr): New functions.
5732 (pc_is_mips16, mips_fetch_instruction): Use.
5733 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5734 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5735 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5736 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5737 TARGET_MIPS.
5738 * config/mips/tm-mips.h: Update copyright.
5739 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5740 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5741 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5742 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5743 (TM_PRINT_INSN_MACH): Delete.
5744 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5745
5746 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5747 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5748 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5749 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5750 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5751 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5752 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5753 mips*-*-riscos* and mips*-*-sysv* onto mips.
5754 * config/mips/mips64.mt: New file.
5755 * config/mips/mips.mt: New file.
5756 * config/mips/littlemips.mt: Delete file.
5757 * config/mips/decstation.mt: Delete file.
5758 * config/mips/vr4300el.mt: Delete file.
5759 * config/mips/vr5000el.mt: Delete file.
5760 * config/mips/vr5000.mt: Delete file.
5761 * config/mips/vr4100.mt: Delete file.
5762 * config/mips/vr4xxxel.mt: Delete file.
5763 * config/mips/vr4300.mt: Delete file.
5764 * config/mips/vr4xxx.mt: Delete file.
5765 * config/mips/bigmips.mt: Delete file.
5766 * config/mips/bigmips64.mt: Delete file.
5767 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5768 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5769 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5770 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5771 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5772 "tm-bigmips.h".
5773 * config/mips/tm-irix3.h: Ditto.
5774 * config/mips/tm-mipsv4.h: Ditto.
5775 * config/mips/tm-embed.h: Ditto.
5776 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5777 "tm-bigmips64.h".
5778 * config/mips/tm-vr5000el.h: Delete file.
5779 * config/mips/tm-tx39l.h: Delete file.
5780 * config/mips/tm-vr4300el.h: Delete file.
5781 * config/mips/tm-vr4xxxel.h: Delete file.
5782 * config/mips/tm-vr4300.h: Delete file.
5783 * config/mips/tm-vr4100.h: Delete file.
5784 * config/mips/tm-vr4xxx.h: Delete file.
5785 * config/mips/tm-vr5000.h: Delete file.
5786 * config/mips/tm-embedl64.h: Delete file.
5787 * config/mips/tm-embedl.h: Delete file.
5788 * config/mips/tm-embed64.h: Delete file.
5789 * config/mips/tm-bigmips64.h: Delete file.
5790 * config/mips/tm-bigmips.h: Delete file.
5791
5792 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5793
5794 Fix gdb/1216.
5795 * shnbsd-nat.c: Include "sh-tdep.h".
5796
5797 From Richard Henderson <rth@redhat.com>:
5798 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5799
5800 2003-05-31 Andrew Cagney <cagney@redhat.com>
5801
5802 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5803 forward declaration.
5804 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5805 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5806 (mips_find_saved_regs): Use set_reg_offset.
5807 (mips_frame_init_saved_regs): Delete function.
5808 (mips_pop_frame): Call mips_find_saved_regs instead of
5809 DEPRECATED_FRAME_INIT_SAVED_REGS.
5810
5811 2003-05-31 Andrew Cagney <cagney@redhat.com>
5812
5813 * mips-tdep.c (mips_gdbarch_init): Do not set
5814 deprecated_max_register_raw_size, register_virtual_size, and
5815 deprecated_max_register_virtual_size.
5816
5817 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5818
5819 * i386-tdep.c: Include "dwarf2-frame.h".
5820 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5821 * Makefile.in (i386-tdep.o): Update dependencies.
5822
5823 * dwarf2-frame.c, dwarf2-frame.h: New files.
5824 * Makefile.in (SFILES): Add dwarf2-frame.c.
5825 (dwarf2_frame_h): Define.
5826 (COMMON_OBS): Add dwarf2-frame.o.
5827 (dwarf2-frame.o): Add dependencies.
5828
5829 2003-05-31 Andreas Jaeger <aj@suse.de>
5830
5831 * x86-64-linux-nat.c: Fix comment.
5832
5833 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5834
5835 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5836 function signature.
5837
5838 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5839 have a sigcontext_addr handler.
5840 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5841 sigcontext_addr handler.
5842
5843 2003-05-31 Andrew Cagney <cagney@redhat.com>
5844
5845 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5846 (print_fp_register_row): Replace do_fp_register_row.
5847 (mips_print_fp_register): Add "file" and "frame" parameters.
5848 (mips_print_register): Add "file" and "frame" parameters.
5849 (mips_print_registers_info): Replace mips_do_registers_info.
5850 (mips_gdbarch_init): Set print_registers_info instead of
5851 deprecated_do_registers_info.
5852 (mips_read_fp_register_single): Add "frame" parameter.
5853 (mips_read_fp_register_double): Add "frame" parameter.
5854
5855 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5856
5857 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5858 Fixes a bug where GDB would print the wrong register names for
5859 targets without SSE.
5860
5861 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5862 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5863 registers.
5864
5865 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5866 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5867 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5868 TDEP->sc_sp_offset.
5869
5870 From Michal Ludvig <mludvig@suse.cz>:
5871 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5872 and `sc_num_regs'.
5873 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5874 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5875 I386_ST0_REGNUM): Move here from...
5876 * i386-tdep.c: ... here.
5877 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5878 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5879 registers if possible.
5880 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5881 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5882 Remove variables.
5883 (i386bsd_sc_reg_offset): New variable.
5884 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5885 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5886 TDEP->sc_sp_offset.
5887 (i386fbsd_sc_reg_offset): New variable.
5888 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5889 TDEP->sc_num_regs.
5890 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5891 variables.
5892 (i386fbsd4_sc_reg_offset): New variable.
5893 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5894 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5895 TDEP->sc_sp_offset.
5896 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5897 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5898 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5899 Remove variables.
5900 (i386nbsd_sc_reg_offset): New variable.
5901 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5902 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5903 TDEP->sc_sp_offset.
5904 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5905 Remove variables.
5906 (i386obsd_sc_reg_offset): New variable.
5907 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5908 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5909 TDEP->sc_sp_offset.
5910 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5911 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5912 for frame pointer offset in `struct sigcontext'.
5913
5914 2003-05-31 Andrew Cagney <cagney@redhat.com>
5915
5916 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5917 architecture methods call_dummy_words, sizeof_call_dummy_words,
5918 push_return_address, store_struct_return, and fix_call_dummy. Set
5919 push_dummy_call instead of deprecated_push_arguments.
5920 (mips_store_struct_return): Delete function.
5921 (mips_fix_call_dummy): Delete function.
5922 (mips_push_return_address): Delete function.
5923 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5924 RA_REGNUM and T9_REGNUM.
5925 (mips_n32n64_push_dummy_call): Ditto for
5926 mips_n32n64_push_arguments.
5927 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5928 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5929
5930 2003-05-31 Andrew Cagney <cagney@redhat.com>
5931
5932 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5933 "dummy_addr" to "bp_addr".
5934 * infcall.c (call_function_by_hand): Pass "funaddr" to
5935 gdbarch_push_dummy_call.
5936 * gdbarch.h, gdbarch.c: Re-generate.
5937 * i386-tdep.c (i386_push_dummy_call): Update.
5938 * arm-tdep.c (arm_push_dummy_call): Update.
5939 * d10v-tdep.c (d10v_push_dummy_call): Update.
5940
5941 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5942
5943 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5944 variable declarations.
5945 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5946 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5947 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5948 x86_64_init_frame_pc, x86_64_init_frame_pc,
5949 x86_64_function_has_prologue): Remove prototypes.
5950 (X86_64_NUM_GREGS): New define.
5951 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5952 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5953 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5954 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5955 XMM1_REGNUM): Remove defines.
5956 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5957 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5958 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5959 X86_64_XMM1_REGNUM): New defines.
5960 (struct x86_64_register_info): Renamed from `struct
5961 register_info'. Remove `size' member.
5962 (x86_64_register_info_table): Remove variable.
5963 (x86_64_register_info): New variable.
5964 (X86_64_NUM_REGS): New define.
5965 (X86_64_NUM_GREGS): Remove define.
5966 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5967 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5968 Remove variables.
5969 (x86_54_dwarf2_reg_to_regnum): Remove function.
5970 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5971 (x86_64_dwarf_reg_to_regnum): New function.
5972 (x86_64_register_name): Rewrite.
5973 (x86_64_register_raw_size): Remove function.
5974 (x86_64_register_byte_table): Remove variable.
5975 (x86_64_register_byte): Remove function.
5976 (x86_64_register_virtual_type): Remove function.
5977 (x86_64_register_type): New function.
5978 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5979 x86_64_register_convert_to_raw): Remove functions.
5980 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5981 (x86_64_use_struct_convention): Make static. Adjust for renamed
5982 defines.
5983 (x86_64_frame_init_saved_regs): Remove function.
5984 (x86_64_push_arguments): Make static. Change to accept a regcache
5985 as argument.
5986 (x86_64_store_return_value, x86_64_extract_return_value): Make
5987 static. Rewrite based on i386 counterparts.
5988 (x86_64_push_dummy_call): New function.
5989 (X86_64_NUM_SAVED_REGS): New define.
5990 (x86_64_register_number): Remove function.
5991 (x86_64_store_struct_return): Remove function.
5992 (x86_64_frameless_function_invocation,
5993 x86_64_function_has_prologue): Remove functions.
5994 (PROLOG_BUFSIZE): Remove define.
5995 (struct x86_64_frame_cache): New structure.
5996 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5997 x86_64_frame_cache, x86_64_frame_this_id,
5998 x86_64_frame_prev_register, x86_64_frame_p,
5999 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6000 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6001 functions.
6002 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6003 variables.
6004 (x86_64_skip_prologue): Rewrite in terms of
6005 x86_64_analyze_prologue.
6006 (x86_64_frame_base_address): New function.
6007 (x86_64_frame_base): New variable.
6008 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6009 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6010 set deprecated_fp_regnum, deprecated_register_size,
6011 deprecated_register_bytes, register_raw_size, register_byte,
6012 register_virtual_type, register_convertiable,
6013 register_convert_to_virtual, convert_to_raw,
6014 deprecated_get_saved_register, deprecated_target_read_fp,
6015 deprecated_push_arguments, deprecated_push_return_address,
6016 deprecated_pop_frame, deprecated_store_struct_return,
6017 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6018 frameless_function_invocation, deprecated_frame_saved_pc,
6019 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6020 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6021 deprecated_init_frame_pc and virtual_frame_pointer. Call
6022 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6023 and x86_64_frame_p. Call frame_base_set_default to register
6024 x86_64_frame_base.
6025 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6026 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6027 (_initialize_x86_64_tdep): Remove function.
6028 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6029 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6030 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6031 define.
6032 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6033 (x86_64_linux_sigcontext_addr): Rewrite.
6034 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6035 x86_64_linux_frame_saved_pc): Remove functions.
6036 (x86_64_linux_pc_in_sigtramp): Renamed from
6037 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6038 trampoline.
6039 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6040 Remove_functions.
6041 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6042 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6043 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6044 (x86_64_regmap): Rename to regmap.
6045 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6046 x86_64_num_gregs.
6047 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6048 x86_64_regmap.
6049 (x86_64_fxsave_offset): Remove function.
6050 (supply_fpregset): Simply call x86_64_supply_fxsave.
6051 (fill_fpregset): Simply call x86_64_fill_fxsave.
6052 (fetch_inferior_registers, store_inferior_registers): Avoid
6053 asignment in if-statement.
6054 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6055 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6056 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6057 (fetch_core_registers): Remove function.
6058 (linux_elf_core_fns): Remove.
6059 (offsetoff): Don't define.
6060 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6061 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6062 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6063 add core-regset.o.
6064 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6065 protection against multiple includes instead of NM_X86_64_h. Add
6066 various comments. Include "config/nm-linux.h". Don't include
6067 <signal.h>.
6068 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6069 GET_THREAD_SIGNALS): Remove defines.
6070 (x86_64_register_u_addr, kernel_u_size,
6071 lin_thread_get_thread_signals): Remove prototypes.
6072 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6073 [HAVE_LINK_H]: Don't include "solib.h".
6074 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6075 * config/i386/tm-x86-64linux.h: Fix comments.
6076 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6077 x86-64-tdep.o): Update dependencies.
6078
6079 2003-05-30 Andrew Cagney <cagney@redhat.com>
6080
6081 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6082 Change parameter type to a "struct regcache *".
6083
6084 * gdbarch.sh: Regardless of the multi-arch level, always define
6085 the macro when not already defined.
6086 * gdbarch.h, gdbarch.c: Re-generate.
6087
6088 2003-05-30 Richard Henderson <rth@redhat.com>
6089
6090 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6091 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6092 (alpha_mdebug_frame_this_id): Likewise.
6093 (alpha_mdebug_frame_prev_register): Likewise.
6094 (alpha_mdebug_frame_base_address): Likewise.
6095 (alpha_mdebug_frame_locals_address): Likewise.
6096 (alpha_mdebug_frame_args_address): Likewise.
6097 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6098 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6099 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6100 loop increment.
6101 (alpha_heuristic_frame_this_id): Make static.
6102 (alpha_heuristic_frame_prev_register): Likewise.
6103 (alpha_heuristic_frame_base_address): Likewise.
6104 * alpha-tdep.h: Update.
6105
6106 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6107
6108 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6109 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6110 defenitions.
6111 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6112 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6113 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6114 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6115 I386_ST0_REGNUM): New defines.
6116 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6117 codestream_get): Remove define.
6118 (codestream_next_addr, condestream_addr, condestream_buf,
6119 codestream_off, codestream_cnt): Remove variables.
6120 (codestream_fill, codestream_seek, codestream_read): Remove
6121 functions.
6122 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6123 functionality.
6124 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6125 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6126 i386_frame_saved_pc, i386_saved_pc_after_call,
6127 i386_frame_num_args, i386_frame_init_saved_regs,
6128 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6129 i386_push_arguments): Remove functions.
6130 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6131 functionality. Use i386_analyze_prologue instead of
6132 i386_get_frame_setup.
6133 (I386_NUM_SAVED_REGS): New define.
6134 (struct i386_frame_cache): New structure.
6135 (i386_alloc_frame_cache, i386_analyze_struct_return,
6136 i386_skip_probe, i386_analyze_frame_setup,
6137 i386_analyze_register_saves, i386_analyze_prologue,
6138 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6139 i386_frame_prev_register, i386_sigtramp_frame_cache,
6140 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6141 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6142 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6143 New functions.
6144 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6145 New variables.
6146 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6147 I386_EAX_REGNUM and I386_EDX_REGNUM.
6148 (i386_extract_return_value, i386_store_return_value): Use
6149 I386_ST0_REGNUM where appropriate.
6150 (i386_extract_struct_value_address): Rewrite to use extract_address.
6151 (i386_svr4_pc_in_sigtramp): Add comment.
6152 (i386_svr4_sigcontext_addr): Rewrite.
6153 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6154 TDEP->sc_sp_offset.
6155 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6156 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6157 of new defines. Set push_dummy_call, don't set
6158 deprecated_push_arguments, deprecated_push_return_address,
6159 deprecated_pop_frame. Don't set parm_boundary. Don't set
6160 deprecated_frame_chain, deprecated_frame_saved_pc,
6161 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6162 save_dummy_frame_tos, unwind_pc. Call
6163 frame_unwind_append_predicate and frame_base_set_default. Don't
6164 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6165 Don't set frameless_function_invocation. Don't set
6166 deprecated_register_bytes, deprecated_register_size,
6167 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6168 * i386-linux-tdep.c: Fix formatting in some comments.
6169 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6170 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6171 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6172 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6173 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6174 redundant parentheses.
6175 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6176 (i386_linux_sigcontext_addr): Use it. Rewrite.
6177 (find_minsym_and_objfile): Change name of second argument.
6178 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6179 changed. Use frame_pc_unwind instead of
6180 DEPRECATED_SAVED_PC_AFTER_CALL.
6181 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6182 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6183 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6184 unwinder.
6185 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6186 "dummy-frame.h".
6187 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6188 (_initialize_i386_cygwin_tdep): New prototype.
6189 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6190 deprecated_frame_chain_valid.
6191 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6192 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6193 Rely on the SVR4 defaults.
6194 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6195 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6196
6197 2003-05-30 Andrew Cagney <cagney@redhat.com>
6198
6199 * infcall.c (call_function_by_hand): Always call
6200 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6201
6202 2003-05-30 Richard Henderson <rth@redhat.com>
6203
6204 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6205 increment.
6206
6207 2003-05-29 Jim Blandy <jimb@redhat.com>
6208
6209 Use gdbarch methods for solib stuff on PowerPC Linux.
6210 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6211 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6212 show through.
6213 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6214 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6215 giving the same effect as the #definitions above.
6216
6217 2003-05-29 Adam Fedor <fedor@gnu.org>
6218
6219 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6220 (find_implementation_from_class): Replace it with the standard
6221 case i.e. do nothing.
6222
6223 2003-05-29 Richard Henderson <rth@redhat.com>
6224
6225 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6226 (alpha_linux_sigtramp_offset): Use it. Make static.
6227 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6228 update for new frame model.
6229 * alpha-mdebug-tdep.c: New file.
6230 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6231 (alpha_osf1_init_abi): Install it.
6232 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6233 (linked_proc_desc_table): Remove.
6234 (alpha_frame_past_sigtramp_frame): Remove.
6235 (alpha_dynamic_sigtramp_offset): Remove.
6236 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6237 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6238 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6239 (push_sigtramp_desc): Remove.
6240 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6241 (alpha_cannot_store_register): Likewise.
6242 (alpha_sigcontext_addr): Remove.
6243 (alpha_find_saved_regs): Remove.
6244 (alpha_frame_init_saved_regs): Remove.
6245 (alpha_init_frame_pc_first): Remove.
6246 (read_next_frame_reg): Remove.
6247 (alpha_frame_saved_pc): Remove.
6248 (alpha_saved_pc_after_call): Remove.
6249 (temp_proc_desc, temp_saved_regs): Remove.
6250 (alpha_about_to_return): Remove.
6251 (cached_proc_desc): Remove.
6252 (alpha_frame_chain): Remove.
6253 (alpha_print_extra_frame_info): Remove.
6254 (alpha_init_extra_frame_info): Remove.
6255 (alpha_frame_locals_address): Remove.
6256 (alpha_frame_args_address): Remove.
6257 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6258 (alpha_push_dummy_frame): Remove.
6259 (alpha_pop_frame): Remove.
6260 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6261 (alpha_read_insn): New.
6262 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6263 for different insn encodings.
6264 (alpha_in_lenient_prologue): Remove.
6265 (struct alpha_sigtramp_unwind_cache): New.
6266 (alpha_sigtramp_frame_unwind_cache): New.
6267 (alpha_sigtramp_register_address): New.
6268 (alpha_sigtramp_frame_this_id): New.
6269 (alpha_sigtramp_frame_prev_register): New.
6270 (alpha_sigtramp_frame_unwind): New.
6271 (alpha_sigtramp_frame_p): New.
6272 (struct alpha_heuristic_unwind_cache): New.
6273 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6274 don't count nop insns that occur between functions.
6275 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6276 heuristic_proc_desc, but without the mdebug wrapping.
6277 (alpha_heuristic_frame_this_id): New.
6278 (alpha_heuristic_frame_prev_register): New.
6279 (alpha_heuristic_frame_unwind): New.
6280 (alpha_heuristic_frame_p): New.
6281 (alpha_heuristic_frame_base_address): New.
6282 (alpha_heuristic_frame_base): New.
6283 (alpha_unwind_dummy_id): New.
6284 (alpha_unwind_pc): New.
6285 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6286 frame related deprecated initializations; install replacements.
6287 (alpha_dump_tdep): Remove.
6288 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6289 (alpha_read_insn, alpha_after_prologue,
6290 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6291 alpha_heuristic_frame_prev_register,
6292 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6293 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6294 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6295 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6296
6297 2003-05-29 Andrew Cagney <cagney@redhat.com>
6298
6299 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6300 dependant on the availability of ASSERT_FUNCTION.
6301 (ASSERT_FUNCTION): Do not define when there is no function name.
6302
6303 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6304
6305 From Jimi X <jimix@watson.ibm.com>:
6306 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6307
6308 2003-05-28 Jim Blandy <jimb@redhat.com>
6309
6310 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6311 argument to ptrace to int; the system headers should give it the
6312 right type, and pointers don't fit in ints on powerpc64-*-*.
6313
6314 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6315
6316 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6317 DW_TAG_catch_block.
6318
6319 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6320
6321 * stabsread.c (dbx_lookup_type): Make static.
6322 (read_type): Ditto.
6323 (add_undefined_type): Ditto.
6324 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6325 not export.
6326
6327 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6328
6329 * hpread.c (hpread_has_name): Make static.
6330 (hpread_psymtab_to_symtab): Ditto.
6331 (file_exists): Ditto.
6332 (hpread_call_pxdb): Ditto.
6333 (hpread_pxdb_needed): Ditto.
6334 (hpread_quick_traverse): Ditto.
6335 (hpread_get_header): Ditto.
6336 (hpread_get_lntt): Ditto.
6337 (hpread_get_slt): Ditto.
6338 (class_of): Ditto.
6339
6340 2003-05-25 Andreas Schwab <schwab@suse.de>
6341
6342 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6343 stack_align and deprecated_extra_stack_alignment_needed.
6344 (m68k_stack_align): Delete.
6345
6346 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6347 (m68k_register_virtual_size): Likewise.
6348 (altos_skip_prologue): Remove obsolete function.
6349 (isi_frame_num_args): Likewise.
6350 (news_frame_num_args): Likewise.
6351 (m68k_fix_call_dummy): Make static.
6352 (m68k_push_dummy_frame): Likewise.
6353 (m68k_pop_frame): Likewise.
6354 (m68k_skip_prologue): Likewise.
6355 (m68k_frame_init_saved_regs): Likewise.
6356 (m68k_saved_pc_after_call): Likewise.
6357 (m68k_get_longjmp_target): Make multi-arch.
6358 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6359 structure. Register m68k_get_longjmp_target if enabled.
6360 * m68k-tdep.h (struct gdbarch_tdep): Define.
6361 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6362
6363 * Makefile.in (config.status): Also depend on configure.tgt
6364 and configure.host.
6365 (m68klinux-tdep.o): Update dependencies.
6366 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6367 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6368 (M68K_LINUX_JB_PC): Define.
6369 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6370 and take additional parameter.
6371 (m68k_linux_sigtramp_saved_pc): Update.
6372 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6373 m68k_linux_pc_in_sigtramp, in_plt_section,
6374 find_solib_trampoline_target.
6375 * config/m68k/tm-linux.h: Don't include any tm headers.
6376 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6377 (JB_ELEMENT_SIZE): Likewise.
6378 (JB_PC): Likewise.
6379 (GET_LONGJMP_TARGET): Likewise.
6380 (IN_SIGTRAMP): Likewise.
6381 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6382
6383 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6384
6385 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6386 (sparc32_push_arguments): Re-implement by calling
6387 sparc32_do_push_arguments.
6388
6389 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6390
6391 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6392 SPARC_O1_REGNUM): New defines.
6393 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6394 (sparc32_store_return_value): New function.
6395 (sparc_extract_struct_value_address): Rewrite to operate on a
6396 regcache.
6397 (sparc_gdbarch_init): Don't set
6398 deprecated_extract_struct_value_address. Set
6399 extract_struct_value_address instead. Don't set
6400 deprecated_extract_return_value and deprecated_store_return_value
6401 for 32-bit targets. Set extract_return_value and
6402 store_return_value instead.
6403 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6404 DEPRECTAED_EXTRACT_RETURN_VALUE,
6405 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6406 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6407 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6408 (sparc_store_return_value): Remove prototype.
6409 (sparc32_store_return_value): New prototype.
6410 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6411 Adjust prototypes.
6412
6413 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6414
6415 * sparcnbsd-tdep.c: Include "gdb_string.h".
6416
6417 2003-05-23 Andrew Cagney <cagney@redhat.com>
6418
6419 * p-valprint.c (pascal_val_print): Replace extract_address with
6420 the inline equivalent extract_unsigned_integer.
6421 * jv-valprint.c (java_value_print): Ditto.
6422 * ada-valprint.c (ada_val_print_1): Ditto.
6423 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6424
6425 2003-05-23 Theodore A. Roth <troth@openavr.org>
6426
6427 * blockframe.c (frameless_look_for_prologue): Remove unused
6428 after_prologue variable.
6429
6430 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6431
6432 * blockframe.c (get_pc_function_start): Rewrite to avoid
6433 asignments in if-statements.
6434
6435 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6436
6437 Committed by Elena Zannoni <ezannoni@redhat.com>.
6438 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6439 files, don't relocate absolute symbols (and do use mst_abs).
6440
6441 2003-05-23 Andrew Cagney <cagney@redhat.com>
6442
6443 * objc-lang.c: Include "gdb_assert.h".
6444 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6445 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6446 (gdb_check, gdb_check_fatal): Delete functions.
6447 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6448 gdb_assert.
6449 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6450 * Makefile.in (objc-lang.o): Update dependencies.
6451
6452 2003-05-22 Ian Lance Taylor <ian@airs.com>
6453
6454 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6455 with fprintf_filtered, not fprintf_unfiltered.
6456
6457 2003-05-22 Andrew Cagney <cagney@redhat.com>
6458
6459 * stack.c (frame_info): Inline extract_address, replacing it with
6460 extract_unsigned_integer.
6461 * findvar.c (unsigned_pointer_to_address): Ditto.
6462 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6463 * dwarf2expr.c (dwarf2_read_address): Ditto.
6464 * frame.c (frame_pc_unwind): Update comment.
6465 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6466
6467 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6468
6469 * infptrace.c (detach): Call print_sys_errmsg rather than
6470 perror_with_name to issue warning message when errno is non-zero
6471 after calling ptrace detach.
6472
6473 2003-05-21 J. Brobecker <brobecker@gnat.com>
6474
6475 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6476 macro definitions from here...
6477 * hppa-tdep.c: ...to there.
6478
6479 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6480
6481 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6482 register_ptrace_addr(). Fix all callers.
6483
6484 2003-05-21 Andreas Schwab <schwab@suse.de>
6485
6486 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6487 dependencies.
6488 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6489 end.
6490 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6491 (_initialize_m68k_linux_tdep): New function.
6492 (m68k_linux_frame_saved_pc): Make static.
6493 (m68k_linux_extract_return_value): Likewise.
6494 (m68k_linux_store_return_value): Likewise.
6495 (m68k_linux_extract_struct_value_address): Likewise.
6496 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6497 Remove.
6498 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6499 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6500 (DEPRECATED_FRAME_SAVED_PC): Remove.
6501
6502 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6503
6504 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6505 regset numbering rather than our own.
6506
6507 2003-05-19 David Carlton <carlton@bactrian.org>
6508
6509 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6510
6511 2003-05-19 David Carlton <carlton@bactrian.org>
6512
6513 Partial fix for PR c++/827.
6514 * cp-support.h: Include symtab.h.
6515 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6516 * cp-namespace.c: Update contributors.
6517 (cp_lookup_symbol_nonlocal): New.
6518 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6519 (lookup_symbol_file): Ditto.
6520 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6521 * block.h: Declare block_scope, block_using, block_global_block.
6522 * block.c (block_scope): New.
6523 (block_using, block_global_block): Ditto.
6524 * Makefile.in (cp_support_h): Depend on symtab_h.
6525 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6526
6527 2003-05-19 David Carlton <carlton@bactrian.org>
6528
6529 * language.h (struct language_defn): Add 'la_value_of_this'
6530 and 'la_lookup_symbol_nonlocal' members.
6531 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6532 lookup_symbol_static, lookup_symbol_global,
6533 lookup_symbol_aux_block.
6534 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6535 if we should search fields of this and how to do static/global
6536 lookup.
6537 (lookup_symbol_aux_block): Make extern.
6538 (basic_lookup_symbol_nonlocal): New.
6539 (lookup_symbol_static, lookup_symbol_global): Ditto.
6540 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6541 'la_lookup_symbol_nonlocal' members.
6542 * c-lang.c (c_language_defn, cplus_language_defn)
6543 (asm_language_defn, minimal_language_defn): Ditto.
6544 * jv-lang.c (java_language_defn): Ditto.
6545 * language.c (unknown_language_defn, auto_language_defn)
6546 (local_language_defn): Ditto.
6547 * m2-lang.c (m2_language_defn): Ditto.
6548 * objc-lang.c (objc_language_defn): Ditto.
6549 * scm-lang.c (scm_language_defn): Ditto.
6550 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6551 * p-lang.c (pascal_language_defn): Ditto for both.
6552 * Makefile.in (f-lang.o): Depend on value_h.
6553 (p-lang.o): Ditto.
6554
6555 2003-05-19 David Carlton <carlton@bactrian.org>
6556
6557 * block.h: Declare block_static_block.
6558 * block.c (block_static_block): New.
6559 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6560 lookup_symbol_aux_local, calling block_static_block instead.
6561 (lookup_symbol_aux_local): Delete 'static_block' argument.
6562
6563 2003-05-19 David Carlton <carlton@bactrian.org>
6564
6565 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6566
6567 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6568
6569 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6570 register numbers mapping.
6571
6572 2003-05-18 Adam Fedor <fedor@gnu.org>
6573
6574 * symtab.c (completion_list_objc_symbol): New function.
6575 (make_symbol_completion_list): Use it to add ObjC symbols
6576 when looking though the list.
6577 (language_search_unquoted_string): New function.
6578 (make_file_symbol_completion_list): Use it.
6579
6580 2003-05-18 Andreas Schwab <schwab@suse.de>
6581
6582 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6583 dependencies.
6584 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6585 as m68k_linux_extract_return_value.
6586 (DEPRECATED_STORE_RETURN_VALUE): Define as
6587 m68k_linux_store_return_value.
6588 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6589 m68k_linux_extract_struct_value_address.
6590 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6591 get_next_frame, get_frame_base, get_frame_pc.
6592 (m68k_linux_frame_saved_pc): Use get_frame_base.
6593 (m68k_linux_extract_return_value): New function.
6594 (m68k_linux_store_return_value): New function.
6595 (m68k_linux_extract_struct_value_address): New function.
6596 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6597
6598 * c-exp.y (typebase): Remove duplicate occurence of
6599 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6600 of lookup_signed_typename.
6601
6602 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6603
6604 * dwarf2loc.c (find_location_expression): Change type of second
6605 argument to `size_t *'.
6606 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6607 for size variable.
6608
6609 2003-05-18 David Carlton <carlton@bactrian.org>
6610
6611 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6612 'linkage_name'. Add comment.
6613 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6614 'linkage_name'.
6615 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6616 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6617 (lookup_block_symbol): Ditto.
6618
6619 2003-05-16 Andrew Cagney <cagney@redhat.com>
6620
6621 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6622 * gdbarch.h, gdbarch.c: Re-generate.
6623 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6624 * TODO (REGISTER_BYTES): Delete reference.
6625 * alpha-tdep.c (alpha_gdbarch_init): Update.
6626 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6627 * x86-64-tdep.c (x86_64_init_abi): Update.
6628 * vax-tdep.c (vax_gdbarch_init): Update.
6629 * v850-tdep.c (v850_gdbarch_init): Update.
6630 * sparc-tdep.c (sparc_gdbarch_init): Update.
6631 * sh-tdep.c (sh_gdbarch_init): Update.
6632 * s390-tdep.c (s390_gdbarch_init): Update.
6633 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6634 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6635 (ns32k_gdbarch_init_32382): Update.
6636 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6637 * mcore-tdep.c (mcore_gdbarch_init): Update.
6638 * m68k-tdep.c (m68k_gdbarch_init): Update.
6639 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6640 * ia64-tdep.c (ia64_gdbarch_init): Update.
6641 * i386-tdep.c (i386_gdbarch_init): Update.
6642 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6643 * hppa-tdep.c (hppa_gdbarch_init): Update.
6644 * h8300-tdep.c (h8300_gdbarch_init): Update.
6645 * frv-tdep.c (frv_gdbarch_init): Update.
6646 * cris-tdep.c (cris_gdbarch_init): Update.
6647 * avr-tdep.c (avr_gdbarch_init): Update.
6648 * arm-tdep.c (arm_gdbarch_init): Update.
6649 * sparc-tdep.c (sparc_pop_frame): Update.
6650 * rs6000-tdep.c (rs6000_pop_frame): Update.
6651 * remote.c (init_remote_state): Update.
6652 (remote_prepare_to_store): Update.
6653 * remote-vx.c (vx_prepare_to_store): Update.
6654 * remote-sds.c (sds_fetch_registers): Update.
6655 (sds_prepare_to_store): Update.
6656 * remote-array.c: Update.
6657 * regcache.c (init_legacy_regcache_descr): Update.
6658 (init_regcache_descr): Update.
6659 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6660 (mips_o64_extract_return_value): Update.
6661 * irix5-nat.c (fetch_core_registers): Update.
6662 * irix4-nat.c (fetch_core_registers): Update.
6663 * i386-tdep.h: Update.
6664 * hppa-tdep.c (pa_do_registers_info): Update.
6665 (pa_do_strcat_registers_info): Update.
6666 * cris-tdep.c (cris_register_bytes_ok): Update.
6667 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6668 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6669 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6670 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6671 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6672 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6673 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6674 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6675 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6676 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6677 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6678 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6679 (REGISTER_BYTES_OK): Update.
6680 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6681 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6682
6683 2003-05-16 Ian Lance Taylor <ian@airs.com>
6684
6685 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6686 (vax_print_insn, print_insn_arg): Remove static functions.
6687 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6688 print_insn_vax from opcodes library.
6689 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6690
6691 2003-05-15 Andrew Cagney <cagney@redhat.com>
6692
6693 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6694 * target.h (memory_breakpoint_from_pc): Delete declaration.
6695 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6696 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6697 * monitor.c (monitor_insert_breakpoint): Use
6698 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6699 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6700 * gdbarch.h, gdbarch.c: Re-generate.
6701 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6702 (sparc_gdbarch_init): Set breakpoint_from_pc to
6703 sparc_breakpoint_from_pc.
6704 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6705 (BREAKPOINT_FROM_PC): Define.
6706 (sparc_breakpoint_from_pc): Declare.
6707 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6708 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6709 (BREAKPOINT_FROM_PC): Define.
6710 (BREAKPOINT): Delete macro.
6711 * target.h: Update comment.
6712 * s390-tdep.c (s390_gdbarch_init): Update comments.
6713 * remote.c: Update comments.
6714 * remote-mips.c: Update comments.
6715 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6716 * mem-break.c: Update comment.
6717 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6718 (ia64_memory_insert_breakpoint): Update.
6719 * config/sparc/tm-sparc.h: Update comment.
6720 * config/pa/tm-hppa64.h: Update comment.
6721 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6722 (rs6000_breakpoint_from_pc): Update.
6723 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6724 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6725 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6726 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6727 (mips_breakpoint_from_pc): Update.
6728 (mips_dump_tdep): Update.
6729
6730 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6731 * minsyms.c (lookup_minimal_symbol): Inline
6732 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6733
6734 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6735 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6736 * p-lang.c (pascal_printstr): Ditto.
6737 * objc-lang.c (objc_printstr): Ditto.
6738 * m2-lang.c (m2_printstr): Ditto.
6739 * jv-valprint.c (java_print_value_fields): Ditto.
6740 * f-lang.c (f_printstr): Ditto.
6741 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6742 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6743 for repeat_count_threshold.
6744 * Makefile.in (cp-valprint.o): Update dependencies.
6745
6746 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6747
6748 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6749 (examine_prologue): Support looking through leaf functions, knowing
6750 they start with mov r2,r12. Support skipping over indirect stores
6751 of the input registers. Upon hitting a non-nop branch instruction
6752 or predicated instruction, bail out by setting lim_pc to the current
6753 pc value in the loop. At the end, if the lim_pc value is still
6754 beyond our calculated value and we have trust_limit set,
6755 use the lim_pc value.
6756
6757 2003-05-15 Andrew Cagney <cagney@redhat.com>
6758
6759 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6760 generic_find_dummy_frame.
6761 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6762 (deprecated_generic_find_dummy_frame): Update.
6763 (deprecated_read_register_dummy): Update.
6764 * frame.c (deprecated_generic_get_saved_register): Update.
6765
6766 2003-05-15 Theodore A. Roth <troth@openavr.org>
6767
6768 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6769 (avr_gdbarch_init): Set breakpoint_from_pc method.
6770
6771 2003-05-15 Andrew Cagney <cagney@redhat.com>
6772
6773 * regcache.c (build_regcache): Set deprecated_register_valid
6774 directly.
6775 (deprecated_grub_regcache_for_register_valid): Delete function.
6776 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6777 declaration.
6778
6779 2003-05-15 David Carlton <carlton@bactrian.org>
6780
6781 Committed by Elena Zannoni <ezannoni@redhat.com>
6782 * symtab.c (lookup_symbol_aux): Delete calls to
6783 lookup_symbol_aux_minsyms.
6784 (lookup_symbol_aux_minsyms): Comment out function and
6785 prototype. Delete lookup by mangled name.
6786
6787 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6788
6789 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6790 correctly indicate an empty stack and ``stack_allocated'' to the
6791 indicate the number of elements initially allocated.
6792 (dwarf_expr_grow_stack): Simplify method for computing new
6793 stack size. Don't loop infinitely if ``stack_len'' is zero.
6794 (execute_stack_op): Move ``ctx->in_reg'' initialization
6795 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6796 be used in conjuction with DW_OP_piece. Revise error message
6797 accordingly.
6798
6799 2003-05-14 Theodore A. Roth <troth@openavr.org>
6800
6801 * MAINTAINERS: Update my email address.
6802 * avr-tdep.c: Ditto.
6803
6804 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6805
6806 * symtab.h (enum domain_enum): Rename from namespace_enum.
6807 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6808 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6809 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6810 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6811 TYPES_NAMESPACE, METHODS_NAMESPACE.
6812 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6813 (struct symbol, struct partial_symbol): Rename field
6814 'namespace_enum namespace' to 'domain_enum domain'.
6815 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6816 Delete old define kludge for namespace.
6817
6818 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6819 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6820 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6821 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6822 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6823 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6824 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6825 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6826 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6827 occurrences of the above.
6828
6829 2003-05-14 Ian Lance Taylor <ian@airs.com>
6830
6831 * Makefile.in (install-only): Use $(SHELL) when running
6832 mkinstalldirs.
6833
6834 2003-05-13 Ian Lance Taylor <ian@airs.com>
6835
6836 * MAINTAINERS (write after approval): Add myself.
6837
6838 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6839 second and third arguments.
6840 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6841 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6842
6843 2003-05-13 Andrew Cagney <cagney@redhat.com>
6844
6845 * defs.h (store_address): Delete declaration.
6846 findvar.c (store_address): Delete function.
6847 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6848 store_unsigned_integer.
6849 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6850 * v850-tdep.c (v850_push_arguments): Ditto.
6851 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6852 * sh-tdep.c (sh64_get_saved_register): Ditto.
6853 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6854 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6855 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6856 (mips_get_saved_register): Ditto.
6857 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6858 (find_func_descr, ia64_push_arguments): Ditto.
6859 * i386-tdep.c (i386_push_arguments): Ditto.
6860 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6861 * frv-tdep.c (frv_push_arguments): Ditto.
6862 * frame.c (legacy_saved_regs_prev_register): Ditto.
6863 (deprecated_generic_get_saved_register): Ditto.
6864 * findvar.c (unsigned_address_to_pointer): Ditto.
6865 * dwarf2read.c (dwarf2_const_value): Ditto.
6866 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6867 * alpha-tdep.c (alpha_push_arguments): Ditto.
6868
6869 2003-05-12 J. Brobecker <brobecker@gnat.com>
6870
6871 * NEWS: Mention that the hppa-hpux port has been partially
6872 multiarched (32bit ABIT only, so far).
6873
6874 2003-05-11 Andrew Cagney <cagney@redhat.com>
6875
6876 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6877 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6878 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6879 sim/testsuite/sim/arm/misaligned2.ms, and
6880 sim/testsuite/sim/arm/misaligned3.ms.
6881 * disasm.h (struct ui_file): Add opaque struct declaration.
6882 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6883 * frame.h (struct ui_file): Ditto.
6884
6885 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6886
6887 * value.h: Pretty print.
6888
6889 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6890
6891 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6892
6893 2003-05-08 Andrew Cagney <cagney@redhat.com>
6894
6895 * regcache.h (max_register_size): Delete declaration.
6896 * regcache.c (max_register_size): Delete function.
6897 (struct regcache_descr): Delete field "max_register_size".
6898 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6899 registers fit in MAX_REGISTER_SIZE.
6900 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6901 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6902 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6903 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6904 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6905 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6906 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6907 * dve3900-rom.c, hppa-tdep.c: Ditto.
6908
6909 2003-05-08 David Carlton <carlton@math.stanford.edu>
6910
6911 * valops.c (push_word): Fix typo.
6912
6913 2003-05-08 Andrew Cagney <cagney@redhat.com>
6914
6915 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6916 * gdbarch.h: Re-generate.
6917 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6918 (legacy_max_register_raw_size): Delete declaration.
6919 * regcache.c (legacy_max_register_raw_size): Delete function.
6920 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6921 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6922 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6923 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6924 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6925 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6926 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6927 * findvar.c, dwarf2cfi.c: Ditto.
6928
6929 2003-05-08 Andrew Cagney <cagney@redhat.com>
6930
6931 * mips-tdep.c (read_signed_register): New function, moved to here
6932 from "regcache.c".
6933 (read_signed_register_pid): Ditto.
6934 * regcache.c (read_signed_register_pid): Delete function, moved to
6935 "mips-tdep.c".
6936 (read_signed_register): Ditto.
6937 * regcache.h (read_signed_register): Delete declaration.
6938 (read_signed_register_pid): Delete declaration.
6939
6940 2003-05-08 Andrew Cagney <cagney@redhat.com>
6941
6942 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6943 * gdbarch.h: Re-generate.
6944 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6945 (legacy_max_register_virtual_size): Delete declaration.
6946 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6947 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6948 * tracepoint.c (memrange_sortmerge): Ditto.
6949 * sparc-tdep.c (sparc_print_registers): Ditto.
6950 * regcache.c (legacy_max_register_virtual_size): Delete function.
6951
6952 2002-05-08 J. Brobecker <brobecker@gnat.com>
6953
6954 * fork-child.c (escape_bang_in_quoted_argument): New function.
6955 (fork_inferior): Escape '!' characters in quoted arguments
6956 only when needed.
6957
6958 2003-05-08 J. Brobecker <brobecker@gnat.com>
6959
6960 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6961 the language of the CU is not currently supported by GDB.
6962
6963 2003-05-08 J. Brobecker <brobecker@gnat.com>
6964
6965 * defs.h (language): Add language_minimal enum value.
6966 * c-lang.c (minimal_language_defn): New language definition.
6967 (_initialize_c_language): Add the new minimal language to the list
6968 of languages known to GDB.
6969
6970 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6971
6972 * frame.c (get_frame_type): Don't attempt to lazily initialize
6973 frame's unwinder for legacy frames.
6974
6975 2003-05-07 Andrew Cagney <cagney@redhat.com>
6976
6977 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6978 and "regcache" parameters.
6979 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6980
6981 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6982
6983 * dwarf2read.c (dwarf_decode_lines): Only use output of
6984 check_cu_functions() when calling record_line(). Do not update
6985 the current address.
6986
6987 2003-05-07 Andrew Cagney <cagney@redhat.com>
6988
6989 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6990 code.
6991
6992 2003-05-07 Jim Blandy <jimb@redhat.com>
6993
6994 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6995 'maint info symtabs' and 'maint info psymtabs'.
6996 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6997 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6998 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6999 Declarations updated.
7000 * maint.c (maintenance_list_command): Delete.
7001 (_initialize_maint_cmds): Update calls to add_cmd.
7002 * gdbcmd.h (maintenancelistlist): Delete declaration.
7003 * cli/cli-cmds.c (maintenancelistlist): Delete.
7004 (init_cmd_lists): Don't initialize it.
7005 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7006
7007 2003-05-07 Andrew Cagney <cagney@redhat.com>
7008
7009 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7010 "regcache".
7011 (d10v_print_registers_info): Update.
7012 (d10v_dmap_register, d10v_imap_register): Delete functions.
7013 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7014 and "imap_register".
7015 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7016 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7017 * arch-utils.c (generic_remote_translate_xfer_address): Add
7018 "regcache" and "gdbarch" parameters.
7019 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7020 parameter. Change class to multi-arch.
7021 * gdbarch.h, gdbarch.c: Re-generate.
7022 * remote.c (remote_xfer_memory): Use
7023 gdbarch_remote_translate_xfer_address.
7024
7025 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7026
7027 * infrun.c (prev_pc): Move declaration ahead of proceed().
7028 (proceed): Refresh prev_pc value before resuming.
7029 (stop_stepping): Remove code to refresh prev_pc.
7030
7031 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7032
7033 * nto-tdep.c: Removed stray comment.
7034
7035 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7036
7037 * i386-nto-tdep.c: Fix old K&R function definitions.
7038 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7039 Also change add_show_from_set() call to add_setshow_cmd().
7040 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7041
7042 2003-05-05 Andrew Cagney <cagney@redhat.com>
7043
7044 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7045 (fprint_dummy_frames): New function.
7046 (maintenance_print_dummy_frames): New function.
7047 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7048 * frame.c (fprint_frame_id): Make global.
7049 * frame.h (fprint_frame_id): Declare.
7050 * Makefile.in (dummy-frame.o): Update dependencies.
7051
7052 2003-05-05 Andrew Cagney <cagney@redhat.com>
7053
7054 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7055 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7056 SIZEOF_CALL_DUMMY_WORDS.
7057 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7058 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7059 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7060 CALL_DUMMY_BREAKPOINT_OFFSET.
7061 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7062 CALL_DUMMY_START_OFFSET.
7063 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7064 * gdbarch.h, gdbarch.c: Re-generate.
7065 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7066 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7067 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7068 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7069 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7070 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7071 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7072 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7073 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7074 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7075 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7076 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7077 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7078 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7079 * config/sparc/tm-sparc.h: Update.
7080
7081 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7082
7083 * configure.tgt: Add i[3456]86-*-nto*.
7084 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7085 * nto-tdep.c: New file. Neutrino target support routines.
7086 * nto-tdep.h: New file. Neutrino target header.
7087 * config/tm-qnxnto.h: New file.
7088 * config/i386/i386nto.mt: New file.
7089 * config/i386/tm-i386nto.h: New file.
7090
7091 2003-05-04 Andrew Cagney <cagney@redhat.com>
7092
7093 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7094 (load_infrun_state): Ditto.
7095 (struct thread_info): Drop "prev_func_name" field.
7096 * thread.c (load_infrun_state): Update.
7097 (save_infrun_state): Update.
7098 * infrun.c (prev_func_name): Delete variable.
7099 (init_wait_for_inferior): Do not clear prev_func_name.
7100 (stop_stepping, keep_going, context_switch): Do not swap
7101 prev_func_name.
7102 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7103 instead of PC_IN_SIGTRAMP.
7104
7105 2003-05-04 Andrew Cagney <cagney@redhat.com>
7106
7107 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7108 REGISTER_BYTE with register_offset_hack.
7109 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7110 that REGISTER_BYTE is consistent with the regcache.
7111 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7112 * gdbarch.h, gdbarch.c: Regenerate.
7113
7114 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7115
7116 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7117 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7118
7119 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7120
7121 2003-05-03 J. Brobecker <brobecker@gnat.com>
7122
7123 From Thierry Schneider <tpschneider1@yahoo.com>
7124 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7125 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7126 (mi-cmd-symbol.o): Add rule.
7127
7128 2003-05-03 Andrew Cagney <cagney@redhat.com>
7129
7130 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7131 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7132 * gdbarch.h, gdbarch.c: Re-generate.
7133 * d10v-tdep.c (d10v_push_dummy_code): New function.
7134 (d10v_gdbarch_init): Set push_dummy_code.
7135 * infcall.c (legacy_push_dummy_code): New function.
7136 (generic_push_dummy_code): New function.
7137 (push_dummy_code): New function.
7138 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7139 instead of dummy_addr, to push_dummy_call. Move call to
7140 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7141 switch.
7142 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7143
7144 2003-05-03 Andrew Cagney <cagney@redhat.com>
7145
7146 * disasm.h (print_insn): Declare.
7147 * disasm.c (init_gdb_disassemble_info): New function.
7148 (gdb_disassembly): Call init_gdb_disassemble_info.
7149 (gdb_print_insn): New function.
7150 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7151 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7152 * mcore-tdep.c: Include "disasm.h"
7153 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7154 * d10v-tdep.c: Include "disasm.h".
7155 (display_trace): Call gdb_print_insn, instead of print_insn.
7156 (print_insn): Delete function.
7157 * printcmd.c: Include "disasm.h".
7158 (print_insn): Delete function.
7159 (print_formatted): Call gdb_print_insn, instead of print_insn.
7160 * Makefile.in (printcmd.o): Update dependencies.
7161 (mcore-tdep.o, d10v-tdep.o): Ditto.
7162
7163 2003-05-02 Andrew Cagney <cagney@redhat.com>
7164
7165 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7166 PC_REGNUM, re-indent.
7167 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7168 PC_REGNUM isn't set.
7169
7170 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7171 * gdbarch.h, gdbarch.c: Re-generate.
7172 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7173 register_virtual_size, pc_regnum, or register_bytes.
7174 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7175 (d10v_register_type): Use D10V_PC_REGNUM.
7176 (d10v_print_registers_info, d10v_read_pc): Ditto.
7177 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7178 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7179
7180 2003-05-02 David Carlton <carlton@bactrian.org>
7181
7182 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7183 the name with mstrsave.
7184
7185 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7186
7187 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7188 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7189 (host_charset_name, target_charset_name): New vars for use by
7190 set/show commands.
7191 (host_charset_enum, target_charset_enum): New enums for set/show
7192 commands.
7193 (set_charset_sfunc, set_host_charset_sfunc,
7194 set_target_charset_sfunc): New functions.
7195 (set_host_charset, set_target_charset): Make static.
7196 (list_charsets, set_host_charset_command,
7197 set_target_charset_command): Delete functions.
7198 (show_charset_command): Rewrite as....
7199 (show_charset): Hook this up with the set/show command mechanism.
7200 (_initialize_charset): Change names of charsets to match the
7201 set/show enums. Use host_charset_name and target_charset_name.
7202 Use set/show mechanism for charset, host-charset, target-charset
7203 commands. Do not make 'show host-charset' and 'show
7204 target-charset' be aliases of 'show charset'.
7205
7206 * charset.h (set_host_charset, set_target_charset): Don't export,
7207 they are not used outside the file.
7208
7209 2003-05-01 Andrew Cagney <cagney@redhat.com>
7210
7211 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7212 (gdb_disassembly): Make "di" non static, always initialize and
7213 cleanup. Always use dis_asm_read_memory.
7214 (gdb_dis_asm_read_memory): Delete function.
7215
7216 2003-05-01 Andrew Cagney <cagney@redhat.com>
7217
7218 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7219 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7220
7221 2003-04-30 Andrew Cagney <cagney@redhat.com>
7222
7223 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7224 "tm_print_insn_info".
7225 (TARGET_PRINT_INSN_INFO): Delete macro.
7226 (dis_asm_read_memory): Delete function declaration.
7227 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7228 (tm_print_insn_info): Delete variable definition.
7229 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7230 * gdbarch.h, gdbarch.c: Re-generate.
7231 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7232 "deprecated_tm_print_insn_info".
7233 * mcore-tdep.c (mcore_dump_insn): Ditto.
7234 * mips-tdep.c (mips_gdbarch_init): Ditto.
7235 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7236 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7237 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7238 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7239 instead of TARGET_PRINT_INSN_INFO, add comment.
7240 * s390-tdep.c (s390_get_frame_info): Instead of
7241 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7242 (s390_check_function_end, s390_is_sigreturn): Ditto.
7243 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7244 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7245 * disasm.c: Include "gdbcore.h".
7246 (_initialize_disasm): New function, initialize
7247 "deprecated_tm_print_insn_info".
7248 (deprecated_tm_print_insn_info): New variable.
7249 (dis_asm_read_memory): Moved from "corefile.c", made static.
7250 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7251 * Makefile.in (disasm.o): Update dependencies.
7252
7253 2003-04-30 Andrew Cagney <cagney@redhat.com>
7254
7255 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7256
7257 2003-04-29 Adam Fedor <fedor@gnu.org>
7258
7259 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7260 * infcall.c (find_function_addr): Make non-static.
7261 * infcall.h (find_function_addr): Declare.
7262 * Makefile.in (eval.o): Update dependencies.
7263
7264 2003-04-28 Adam Fedor <fedor@gnu.org>
7265
7266 * symtab.c (symbol_find_demangled_name): Check for and demangle
7267 ObjC symbols.
7268 (symbol_init_demangled_name): Init for language_objc as well.
7269
7270 2003-04-28 Andrew Cagney <cagney@redhat.com>
7271
7272 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7273 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7274 * gdbarch.h, gdbarch.c: Re-generate.
7275 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7276 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7277 * inferior.h (deprecated_read_fp): Rename read_fp.
7278 (generic_target_read_fp): Delete declaration.
7279 * regcache.c (generic_target_read_fp): Delete function.
7280 (deprecated_read_fp): Replace read_fp, use
7281 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7282 * d10v-tdep.c (d10v_read_fp): Delete function.
7283 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7284
7285 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7286 deprecated_target_read_fp to generic_target_read_fp.
7287 * sh-tdep.c (sh_gdbarch_init): Ditto.
7288 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7290 * frv-tdep.c (frv_gdbarch_init): Ditto.
7291
7292 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7293 deprecated_fp_regnum.
7294 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7295 * vax-tdep.c (vax_gdbarch_init): Ditto.
7296 * v850-tdep.c (v850_gdbarch_init): Ditto.
7297 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7298 * sh-tdep.c (sh_gdbarch_init): Ditto.
7299 * s390-tdep.c (s390_gdbarch_init): Ditto.
7300 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7301 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7302 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7303 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7304 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7305 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7306 * i386-tdep.c (i386_gdbarch_init): Ditto.
7307 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7308 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7309 * frv-tdep.c (frv_gdbarch_init): Ditto.
7310 * cris-tdep.c (cris_gdbarch_init): Ditto.
7311 * avr-tdep.c (avr_gdbarch_init): Ditto.
7312 * arm-tdep.c (arm_gdbarch_init): Ditto.
7313 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7314
7315 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7316 * v850-tdep.c (v850_gdbarch_init): Ditto.
7317 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7318 * sh-tdep.c (sh_gdbarch_init): Ditto.
7319 * s390-tdep.c (s390_gdbarch_init): Ditto.
7320 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7321 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7322 * mips-tdep.c (mips_gdbarch_init): Ditto.
7323 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7324 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7325 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7326 * frv-tdep.c (frv_gdbarch_init): Ditto.
7327 * avr-tdep.c (avr_gdbarch_init): Ditto.
7328 * arm-tdep.c (arm_gdbarch_init): Ditto.
7329
7330 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7331 DEPRECATED_FP_REGNUM.
7332 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7333 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7334 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7335 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7336 (sparc32_register_virtual_type): Ditto.
7337 * sh-tdep.c (sh64_frame_chain): Ditto.
7338 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7339 (sh_nofp_frame_init_saved_regs): Ditto.
7340 (sh64_nofp_frame_init_saved_regs): Ditto.
7341 (sh_fp_frame_init_saved_regs): Ditto.
7342 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7343 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7344 * procfs.c (procfs_fetch_registers): Ditto.
7345 (procfs_store_registers): Ditto.
7346 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7347 (store_inferior_registers, fetch_core_registers): Ditto.
7348 (fetch_kcore_registers, clear_regs): Ditto.
7349 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7350 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7351 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7352 * nlm/i386.c (do_status): Ditto.
7353 * mipsv4-nat.c (supply_gregset): Ditto.
7354 * mips-tdep.c: Ditto for comments.
7355 * mips-nat.c (fetch_inferior_registers): Ditto.
7356 (store_inferior_registers, fetch_core_registers): Ditto.
7357 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7358 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7359 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7360 (i386_do_pop_frame, i386_register_type): Ditto.
7361 * hppa-tdep.c (hppa_frame_chain): Ditto.
7362 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7363 (hppa_pop_frame, hppa_read_fp): Ditto.
7364 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7365 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7366 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7367 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7368 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7369 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7370 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7371 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7372 * blockframe.c: Ditto for comments.
7373 * arch-utils.h: Ditto for comments.
7374 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7375 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7376 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7377 * alpha-tdep.h: Ditto for comments.
7378 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7379 (alpha_cannot_store_register): Ditto.
7380 (alpha_push_dummy_frame): Ditto.
7381 * alpha-nat.c (supply_gregset): Ditto.
7382
7383 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7384 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7385 * config/sparc/tm-sparc.h: Update comment.
7386
7387 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7388 deprecated_read_fp instead of TARGET_READ_FP.
7389 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7390 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7391 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7392 deprecated_read_fp instead of read_fp.
7393 * s390-tdep.c (s390_push_arguments): Ditto.
7394 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7395 * frame.h: Ditto in comments.
7396 * frame.c (legacy_get_prev_frame): Ditto.
7397 * dummy-frame.c (dummy_frame_this_id): Ditto.
7398 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7399
7400 2003-04-28 Andrew Cagney <cagney@redhat.com>
7401
7402 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7403 * gdbarch.h, gdbarch.c: Re-generate.
7404 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7405 * vax-tdep.c (_initialize_vax_tdep): Update.
7406 * v850-tdep.c (_initialize_v850_tdep): Update.
7407 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7408 * s390-tdep.c (_initialize_s390_tdep): Update.
7409 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7410 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7411 * mips-tdep.c (_initialize_mips_tdep): Update.
7412 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7413 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7414 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7415 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7416 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7417 * frv-tdep.c (_initialize_frv_tdep): Update.
7418 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7419 (_initialize_cris_tdep): Update.
7420 * arch-utils.c (legacy_print_insn): Update.
7421 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7422
7423 2003-04-26 Adam Fedor <fedor@gnu.org>
7424
7425 * linespec.c (decode_objc): New function to decode ObjC calls
7426 (decode_line_1): Check for ObjC calls (using decode_objc)
7427 * Makefile (linespec.o): Update dependencies.
7428
7429 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7430
7431 * breakpoint.h (struct breakpoint_ops): New.
7432 (struct breakpoint): Add ops member.
7433
7434 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7435 (mention): Use new breakpoint ops member.
7436 (set_raw_breakpoint): Initialize ops field to NULL.
7437 (print_exception_catchpoint, print_one_exception_catchpoint)
7438 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7439 (gnu_v3_exception_catchpoint_ops): New.
7440 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7441
7442 2003-04-25 Adam Fedor <fedor@gnu.org>
7443
7444 * Makefile.in (COMMON_OBS): Add objc-lang.o
7445
7446 2003-04-25 Andrew Cagney <cagney@redhat.com>
7447
7448 * d10v-tdep.c (print_insn): Delete function.
7449 (display_trace): Use TARGET_PRINT_INSN.
7450 (_initialize_d10v_tdep): Do not set tm_print_insn.
7451 (d10v_gdbarch_init): Set print_insn.
7452
7453 2003-04-25 Andrew Cagney <cagney@redhat.com>
7454
7455 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7456 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7457 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7458 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7459 (nr_dmap_regs, a0_regnum): ... new functions.
7460 (d10v_print_registers_info): Use a0_regnum, use register_size.
7461 (d10v_register_byte): Delete function.
7462 (d10v_register_raw_size): Delete function.
7463 (d10v_register_type): Use a0_regnum.
7464 (d10v_print_registers_info): Use a0_regnum.
7465 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7466 (d10v_gdbarch_init): Do not set register_byte or
7467 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7468 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7469 extract_address.
7470 (trace_command): Use XCALLOC.
7471 (print_insn): Delete reference to tm_print_insn.
7472 (saved_regs_unwinder): Use store_unsigned_integer instead of
7473 store_address.
7474 * frame.h (FRAME_OBSTACK_CALLOC): Define
7475
7476 2003-04-25 David Carlton <carlton@bactrian.org>
7477
7478 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7479
7480 2003-04-24 Adam Fedor <fedor@gnu.org>
7481
7482 * objc-lang.c: Include "valprint.h"
7483 * Makefile.in (objc-lang.o): Update dependencies.
7484
7485 2003-04-24 Adam Fedor <fedor@gnu.org>
7486
7487 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7488 architecture dependant compilation and mark as unimplemented
7489 (until they get put in the gdbarch vector).
7490
7491 2003-04-23 David Carlton <carlton@bactrian.org>
7492
7493 * cp-support.c (cp_find_first_component): Accept 'operator' in
7494 more locations.
7495
7496 2003-04-23 Andrew Cagney <cagney@redhat.com>
7497
7498 * infcall.c (call_function_by_hand): Eliminate redundant
7499 indentation. Move "saved_async" and "old_cleanups" to where they
7500 are needed.
7501
7502 2003-04-23 Andrew Cagney <cagney@redhat.com>
7503
7504 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7505 and "buffer". Move the "name" code to where it is needed.
7506
7507 2003-04-23 Andrew Cagney <cagney@redhat.com>
7508
7509 * infcall.c (call_function_by_hand): Move variables "start_sp",
7510 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7511 code to ON_STACK switch branch.
7512
7513 2003-04-23 Andrew Cagney <cagney@redhat.com>
7514
7515 * infcall.c (call_function_by_hand): Make declaration of "i",
7516 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7517 lint.
7518
7519 2003-04-23 Andrew Cagney <cagney@redhat.com>
7520
7521 * infcall.c (call_function_by_hand): Delete variable
7522 "n_method_args". Localize "param_type"'s declaration to the loop
7523 that it is used. Reinstate code assigning to said variable -
7524 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7525 Rationalize code using "param_type".
7526
7527 2003-04-22 Andrew Cagney <cagney@redhat.com>
7528
7529 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7530 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7531 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7532 to DEPRECATED_PUSH_RETURN_ADDRESS.
7533
7534 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7535
7536 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7537 on the DWARF2 register number prior to fetching a register.
7538
7539 2003-04-22 J. Brobecker <brobecker@gnat.com>
7540
7541 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7542 Update all the tests using SOFT_FLOAT considering the fact that
7543 this macro was always set to 0.
7544 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7545 considering the fact that this macro was always set to 0.
7546 * hppa-tdep.h (hppa_store_return_value): Likewise.
7547 (hppa_extract_return_value): Likewise.
7548
7549 2003-04-22 J. Brobecker <brobecker@gnat.com>
7550
7551 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7552 the hppa-pro target only.
7553
7554 2003-04-21 J. Brobecker <brobecker@gnat.com>
7555
7556 Ongoing multi-arch conversion effort for HP/UX:
7557 * config/pa/tm-hppa.h: Move all macro that are no longer
7558 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7559 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7560
7561 2003-04-21 J. Brobecker <brobecker@gnat.com>
7562
7563 * config/pa/tm-hppa.h: Obsolete a section that was only used
7564 for hppa-pro.
7565
7566 2003-04-21 J. Brobecker <brobecker@gnat.com>
7567
7568 Ongoing multi-arch conversion for HP/UX.
7569 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7570 if already defined (allows hppa64 to stay non-multiarched for now).
7571 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7572
7573 2003-04-21 Andrew Cagney <cagney@redhat.com>
7574
7575 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7576
7577 2003-04-21 Andrew Cagney <cagney@redhat.com>
7578
7579 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7580 "i386_num_mmx_regs".
7581
7582 2003-04-21 Andrew Cagney <cagney@redhat.com>
7583
7584 * infcall.c: New file.
7585 * infcall.h: New file.
7586 * valarith.c: Include "infcall.h".
7587 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7588 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7589 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7590 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7591 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7592 (SFILES): Add "infcall.c"
7593 (COMMON_OBS): Add "infcall.o".
7594 (infcall.o): Specify dependencies.
7595 * value.h (call_function_by_hand): Delete declaration.
7596 * inferior.h (run_stack_dummy): Delete declaration.
7597 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7598 (run_stack_dummy): Move to "infcall.c", merged into
7599 call_function_by_hand.
7600 * valops.c (call_function_by_hand): Moved to "infcall.c".
7601 (find_function_addr, value_arg_coerce): Ditto.
7602 (unwindonsignal_p, coerce_float_to_double): Ditto.
7603 (_initialize_valops): Move "set/show coerce-float-to-double", and
7604 "set/show unwindonsignal" commands to "infcall.c".
7605 * v850-tdep.c, target.h: Update comments.
7606 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7607 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7608 (sh64_init_extra_frame_info): Update comments.
7609 * mn10300-tdep.c: Update comments.
7610 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7611 * config/sparc/tm-sparc.h: Update comments.
7612 * breakpoint.h: Update comments.
7613 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7614 * arm-tdep.c: Update comment.
7615
7616 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7617
7618 * i386-tdep.c (i386_num_register_names): New variable.
7619 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7620 (MM0_REGNUM): Remove redundant parentheses in define.
7621 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7622 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7623 i386_mxcsr_regnum_p): Remove redundant parentheses.
7624 (i386_register_name): Use i386_num_register_names.
7625
7626 * i386-tdep.c (i386_extract_return_value,
7627 i386_store_return_value): Correct check for availability of
7628 floating-point registers.
7629
7630 * i386-tdep.c (i386_frame_num_args): Remove function.
7631 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7632
7633 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7634 mmx_regnum_to_fp_regnum. Adjust all callers.
7635
7636 * i386-tdep.c (i386_get_longjmp_target): Use
7637 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7638 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7639 extract_address.
7640
7641 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7642
7643 * core-regset.c: Update comments to reflect reality. Re-order
7644 includes.
7645 (fetch_core_registers): Use switch instead of if. Remove
7646 redundant prototype.
7647
7648 2003-04-18 Jim Blandy <jimb@redhat.com>
7649
7650 * s390-tdep.c (s390_frame_align): New function.
7651 (s390_gdbarch_init): Register it with the gdbarch object.
7652
7653 2003-04-17 Richard Henderson <rth@redhat.com>
7654
7655 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7656
7657 2003-04-17 Michael Snyder <msnyder@redhat.com>
7658 Karen Bennet <bennet@redhat.com>
7659
7660 Committed by Elena Zannoni <ezannoni@redhat.com>
7661 * gdb_gcore.sh: New script to create a core dump of a process.
7662
7663 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7664
7665 * values.c (value_being_returned): Don't fetch the return
7666 value if the return type is void.
7667
7668 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7669
7670 * thread-db.c: Reindented.
7671
7672 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7673
7674 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7675 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7676 as types.
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7703
7704 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7705 the size of ``long double'' to 16, instead of 8.
7706
7707 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7708
7709 * i386-linux-nat.c: Add some whitespace to make things more
7710 readable.
7711 (fetch_register, store_register, fetch_inferior_registers,
7712 store_inferior_registers): Get rid of assignment in if-statement.
7713 (store_register): Fix typo in error message.
7714
7715 2003-04-16 Andrew Cagney <cagney@redhat.com>
7716
7717 * utils.c (xmmalloc): Always allocate something, matches
7718 libiberty/xmalloc's semantics.
7719 (xmrealloc, xmcalloc): Ditto.
7720
7721 2003-04-16 Andrew Cagney <cagney@redhat.com>
7722
7723 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7724 update comments.
7725 (get_frame_type): Initialize unwind and type when needed.
7726 (get_frame_id, frame_register_unwind): Ditto.
7727
7728 2003-04-16 Andrew Cagney <cagney@redhat.com>
7729
7730 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7731 obsolete.
7732 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7733 * sparcl-stub.c: Obsolete file.
7734 * config/sparc/tm-sparclet.h: Obsolete file.
7735 * sparclet-stub.c: Obsolete file.
7736 * sparclet-rom.c: Obsolete file.
7737 * sparcl-tdep.c: Obsolete file.
7738 * config/sparc/tm-sparclite.h: Obsolete file.
7739 * config/sparc/sparclite.mt: Obsolete file.
7740 * config/sparc/sparclet.mt: Obsolete file.
7741 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7742 sparc86x-*-* obsolete.
7743
7744 2003-04-15 David Carlton <carlton@math.stanford.edu>
7745
7746 * Makefile.in (SFILES): Add cp-namespace.c.
7747 (COMMON_OBS): Add cp-namespace.o.
7748 (block.o): Depend on gdb_obstack_h and cp_support_h.
7749 (buildsym.o): Depend on cp_support_h.
7750 (cp-namespace.o): New.
7751 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7752 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7753 (dwarf2read.o): Depend on cp_support_h.
7754 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7755 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7756 processing_current_namespace.
7757 (read_namespace): Update processing_current_namespace; check for
7758 anonymous namespaces.
7759 (dwarf2_name): New function.
7760 (dwarf2_extension): Ditto.
7761 * cp-support.h: Update copyright, contributors.
7762 Add inclusion guards.
7763 Add opaque declaration for structs obstack, block, symbol.
7764 (struct using_direct): New struct.
7765 Add declarations for cp_find_first_component,
7766 cp_entire_prefix_len, processing_has_namespace_info,
7767 processing_current_namespace, cp_is_anonymous,
7768 cp_add_using_directive, cp_initialize_namespace,
7769 cp_finalize_namespace, cp_set_block_scope,
7770 cp_scan_for_anonymous_namespaces.
7771 * cp-namespace.c: New file.
7772 * cp-support.c: Update copyright.
7773 Include ctype.h, gdb_assert.h, gdbcmd.h.
7774 New variable maint_cplus_cmd_list.
7775 (cp_find_first_component): New function.
7776 (cp_entire_prefix_len, maint_cplus_command)
7777 (first_component_command, _initialize_cp_support): Ditto.
7778 * buildsym.c: Include cp-support.h.
7779 New variable using_list.
7780 (add_symbol_to_list): Check for anonymous namespaces.
7781 (finish_block): Set block's scope.
7782 (start_symtab): Initialize C++ namespace support.
7783 (end_symtab): Finalize C++ namespace support.
7784 * block.h: Add opaque declarations for structs
7785 block_namespace_info, using_direct, and obstack.
7786 Add declarations for block_set_scope and block_set_using.
7787 (struct block): Add 'language_specific' member.
7788 (BLOCK_NAMESPACE): New macro.
7789 * block.c: Include gdb_obstack.h and cp-support.h.
7790 (struct block_namespace_info): New struct.
7791 (block_set_scope): New function.
7792 (block_set_using, block_initialize_namespace): Ditto.
7793
7794 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7795
7796 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7797 (locate_base): Return early if there aren't any link map offsets.
7798 (svr4_solib_create_inferior_hook): Warn if shared library support
7799 is unavailable.
7800
7801 2003-04-14 David Carlton <carlton@math.stanford.edu>
7802
7803 * symtab.c (symbol_set_names): Add prefix when storing Java names
7804 in hash table. Fix for PR java/1039.
7805
7806 2003-04-14 David Carlton <carlton@math.stanford.edu>
7807
7808 * symtab.c (symbol_set_names): Rename 'name' arg to
7809 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7810 * symtab.h: Change 'name' argument in declaration of
7811 symbol_set_names to 'linkage_name'.
7812 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7813
7814 2003-04-14 Andrew Cagney <cagney@redhat.com>
7815
7816 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7817 return the fully sign-extended register value.
7818 (get_frame_pointer): Ditto.
7819 (mips_pop_frame): Initialize "proc_desc" after checking for a
7820 dummy frame.
7821
7822 2003-04-14 Andrew Cagney <cagney@redhat.com>
7823
7824 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7825 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7826 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7827 (mips_push_register): Delete function.
7828 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7829 PUSH_FP_REGNUM.
7830
7831 2003-04-14 Jim Blandy <jimb@redhat.com>
7832
7833 * symmisc.c: #include "gdb_regex.h".
7834 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7835 functions.
7836 * maint.c (maintenance_list_command): New function.
7837 (_initialize_maint_cmds): Register the above as commands.
7838 * symtab.h (maintenance_list_symtabs,
7839 maintenance_list_psymtabs): New declarations.
7840 * cli/cli-cmds.c (maintenancelistlist): New variable.
7841 (init_cmd_lists): Initialize it.
7842 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7843 * gdbcmd.h (maintenancelistlist): New declaration.
7844 * Makefile.in (symmisc.o): Update dependencies.
7845
7846 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7847
7848 * s390-nat.c: Include asm/types.h for addr_t.
7849
7850 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7851
7852 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7853 actually incoming type.
7854
7855 2003-04-13 Andrew Cagney <cagney@redhat.com>
7856
7857 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7858 get_next_frame and get_frame_saved_regs.
7859
7860 2003-04-13 Andrew Cagney <cagney@redhat.com>
7861
7862 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7863 of gdbarch_num_regs.
7864
7865 2003-04-13 Andrew Cagney <cagney@redhat.com>
7866
7867 * frame.h: Mention what replaced what in "struct frame_info".
7868 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7869 deprecated_update_frame_base_hack and
7870 deprecated_update_frame_pc_hack.
7871 * hppa-tdep.c: Ditto.
7872
7873 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7874
7875 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7876 to read_reg and update its comment. Remove regnum member.
7877 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7878 Don't call read_reg when setting in_reg. Call read_reg to get
7879 the frame base if it's in a register. Return the register number
7880 on the stack instead of in the context. Remove extra arguments
7881 to read_reg.
7882 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7883 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7884 the register number on the expression stack.
7885 (needs_frame_read_reg): Remove extra arguments.
7886
7887 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7888
7889 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7890 made non-static.
7891 (execute_stack_op): All callers updated.
7892 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7893 * dwarf2loc.c (find_location_expression): New function.
7894 (dwarf_expr_frame_base): Call it.
7895 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7896 (dwarf2_tracepoint_var_ref): New function, broken out from
7897 locexpr_tracepoint_var_ref.
7898 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7899 Make static.
7900 (loclist_read_variable, loclist_read_needs_frame): New functions.
7901 (loclist_describe_location, loclist_tracepoint_var_ref): New
7902 functions.
7903 (dwarf2_loclist_funcs): New struct location_funcs.
7904 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7905 (struct dwarf2_locexpr_baton): Add comments.
7906 (dwarf2_loclist_funcs): New extern.
7907 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7908 base_address and base_known.
7909 (dwarf_loc_buffer): New variable.
7910 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7911 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7912 (dwarf2_has_info): Initialize dwarf_loc_offset.
7913 (dwarf2_build_psymtabs): Read in .debug_loc.
7914 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7915 DWARF_LOC_SIZE.
7916 (psymtab_to_symtab_1): Likewise. Move base address calculation
7917 here, from...
7918 (dwarf2_get_pc_bounds): ... here. Use the base address from
7919 cu_header.
7920 (dwarf2_symbol_mark_computed): Handle location lists.
7921
7922 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7923
7924 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7925 if the linkage name demangled successfully.
7926
7927 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7928
7929 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7930 disassmbly_flavour): Removed.
7931
7932 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7933
7934 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7935
7936 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7937
7938 2003-04-12 Andrew Cagney <cagney@redhat.com>
7939
7940 * frame.h (struct frame_info): Move definition from here ...
7941 * frame.c (struct frame_info): ... to here.
7942
7943 2003-04-12 Andrew Cagney <cagney@redhat.com>
7944
7945 * gdbthread.h (save_infrun_state): Delete parameter
7946 "prev_func_start".
7947 (struct thread_info): Delete field "prev_func_start".
7948 (load_infrun_state): Ditto.
7949 * thread.c (load_infrun_state, save_infrun_state): Update.
7950 * infrun.c (prev_func_start): Delete variable.
7951 (context_switch, init_wait_for_inferior): Update.
7952 (stop_stepping, keep_going): Update.
7953
7954 2003-04-12 Andrew Cagney <cagney@redhat.com>
7955
7956 * gdbarch.sh: Add missing opaque declarations.
7957 * gdbarch.h: Regnerate.
7958 * symtab.h: Add missing opaque declarations.
7959 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7960 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7961 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7962 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7963 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7964 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7965 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7966 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7967 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7968 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7969 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7970 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7971 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7972
7973 2003-04-11 Andrew Cagney <cagney@redhat.com>
7974
7975 * frame.c (get_frame_id): Return this frame's "id".
7976 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7977 function start.
7978 (legacy_saved_regs_this_id): Replace function body with
7979 internal-error.
7980 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7981 FRAME_OBSTACK_ZALLOC.
7982 (create_new_frame): Mark the frame ID as valid.
7983
7984 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7985
7986 * Makefile.in (libbfd_h): Added missing setting.
7987 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7988 according to the selected ABI.
7989
7990 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7991
7992 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7993
7994 2003-04-11 Andrew Cagney <cagney@redhat.com>
7995
7996 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7997 SAVED_PC_AFTER_CALL.
7998 * gdbarch.h, gdbarch.c: Regenerate.
7999 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8000 * x86-64-tdep.c (x86_64_init_abi): Update.
8001 * vax-tdep.c (vax_gdbarch_init): Update.
8002 * v850-tdep.c (v850_gdbarch_init): Update.
8003 * sparc-tdep.c (sparc_gdbarch_init): Update.
8004 * sh-tdep.c (sh_gdbarch_init): Update.
8005 * s390-tdep.c (s390_gdbarch_init): Update.
8006 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8007 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8008 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8009 * mips-tdep.c (mips_gdbarch_init): Update.
8010 * mcore-tdep.c (mcore_gdbarch_init): Update.
8011 * m68k-tdep.c (m68k_gdbarch_init): Update.
8012 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8013 * ia64-tdep.c (ia64_gdbarch_init): Update.
8014 (ia64_saved_pc_after_call): Update declaration.
8015 * i386ly-tdep.c (i386lynx_init_abi): Update.
8016 * i386-tdep.c (i386_gdbarch_init): Update.
8017 * hppa-tdep.c (hppa_gdbarch_init): Update.
8018 * h8300-tdep.c (h8300_gdbarch_init): Update.
8019 * frv-tdep.c (frv_gdbarch_init): Update.
8020 * cris-tdep.c (cris_gdbarch_init): Update.
8021 * avr-tdep.c (avr_gdbarch_init): Update.
8022 * arm-tdep.c (arm_gdbarch_init): Update.
8023 * alpha-tdep.c (alpha_gdbarch_init): Update.
8024 * ns32knbsd-nat.c (frame_num_args): Update.
8025 * ns32k-tdep.c (umax_frame_num_args): Update.
8026 * mips-tdep.c (mips_init_frame_pc_first): Update.
8027 * infrun.c (step_over_function): Update.
8028 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8029 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8030 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8031 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8032 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8033 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8034 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8035 * arch-utils.c (init_frame_pc_default): Update.
8036 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8037 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8038 declaration.
8039
8040 2003-04-11 Andrew Cagney <cagney@redhat.com>
8041
8042 * i387-tdep.c: Update copyright.
8043 (i387_to_double): Delete function.
8044 (double_to_i387): Delete function.
8045
8046 2003-04-10 Andrew Cagney <cagney@redhat.com>
8047
8048 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8049 frame's function's address. Simplify.
8050 (d10v_frame_unwind_cache): Check that the frame's function is
8051 non-zero.
8052
8053 2003-04-10 Jim Blandy <jimb@redhat.com>
8054
8055 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8056 call to set_gdbarch_deprecated_push_arguments.
8057
8058 2003-04-10 Andrew Cagney <cagney@redhat.com>
8059
8060 * frame.c (fprint_frame_id): New function.
8061 (fprint_frame_type, fprint_frame): New function.
8062 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8063 (create_sentinel_frame, get_frame_id): Ditto.
8064 (frame_id_p, frame_id_eq): Ditto.
8065 (frame_id_inner, create_new_frame): Ditto.
8066 (legacy_get_prev_frame, get_prev_frame): Ditto.
8067 (deprecated_update_frame_pc_hack): Ditto.
8068 (frame_register_unwind): Ditto.
8069 (deprecated_update_frame_base_hack): Ditto.
8070
8071 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8072
8073 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8074 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8075 frame_chain function.
8076 * Makefile.in: Add dependencies due to above change.
8077
8078 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8079
8080 * blockframe.c (legacy_frame_chain_valid): Move call to
8081 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8082 inside_entry_file.
8083
8084 2003-04-09 Andrew Cagney <cagney@redhat.com>
8085
8086 * frame.h (struct frame_id): Replace "pc" and "base" with
8087 "stack_addr" and "code_addr". Update comments.
8088 (frame_id_build): Update parameter names and comment.
8089 (struct frame_info): Replace "id_p" and "id" with "this_id".
8090 * dummy-frame.c (dummy_frame_this_id): Update.
8091 * breakpoint.c (print_one_breakpoint): Update.
8092 * frame.c (get_frame_id): Update.
8093 (get_frame_base, frame_id_build): Update.
8094 (create_sentinel_frame, legacy_get_prev_frame): Update.
8095 (deprecated_update_frame_base_hack): Update.
8096 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8097 (frame_id_inner): Ditto.
8098
8099 2003-04-09 Andrew Cagney <cagney@redhat.com>
8100
8101 * defs.h (gdb_print_host_address): Make "addr" parameter a
8102 pointer constant.
8103 * utils.c (gdb_print_host_address): Update.
8104
8105 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8106
8107 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8108 register number for R0 is 0.
8109
8110 2003-04-09 J. Brobecker <brobecker@gnat.com>
8111
8112 * frame.h (struct gdbarch): Add opaque structure definition
8113 to avoid a compilation warning on LynxOS 4.0.
8114
8115 2003-04-09 Andrew Cagney <cagney@redhat.com>
8116
8117 * frame.h (struct frame_info): Delete field "pc". Replace
8118 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8119 structure.
8120 * frame.c (frame_pc_unwind): Update.
8121 (create_sentinel_frame): Do not set "pc".
8122 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8123 (get_frame_pc): Call frame_pc_unwind.
8124 (deprecated_update_frame_pc_hack): Update.
8125 (create_new_frame): Use "pc" not "->pc".
8126
8127 2003-04-09 Andrew Cagney <cagney@redhat.com>
8128
8129 * frame.c (get_frame_id): Eliminate code updating "frame".
8130 (legacy_get_prev_frame): Ditto.
8131 (get_frame_base): Return id.base directly.
8132 (deprecated_update_frame_base_hack): Update "id.base".
8133 * frame.h (struct frame_info): Delete field "frame".
8134
8135 2003-04-09 Andrew Cagney <cagney@redhat.com>
8136
8137 * NEWS: Mention that the "Sequent family" is obsolete.
8138 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8139 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8140 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8141 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8142 * config/i386/tm-ptx4.h: Obsolete file.
8143 * config/i386/tm-ptx.h: Obsolete file.
8144 * symm-tdep.c: Obsolete file.
8145 * config/i386/symmetry.mt: Obsolete file.
8146 * config/i386/tm-symmetry.h: Obsolete file.
8147 * symm-nat.c: Obsolete file.
8148 * config/i386/nm-symmetry.h: Obsolete file.
8149 * config/i386/xm-symmetry.h: Obsolete file.
8150 * config/i386/symmetry.mh: Obsolete file.
8151 * config/i386/nm-ptx4.h: Obsolete file.
8152 * config/i386/ptx4.mh: Obsolete file.
8153 * config/i386/ptx.mt: Obsolete file.
8154 * config/i386/ptx.mh: Obsolete file.
8155 * config/i386/xm-ptx4.h: Obsolete file.
8156 * config/i386/xm-ptx.h: Obsolete file.
8157
8158 2003-04-09 Andrew Cagney <cagney@redhat.com>
8159
8160 Obsolete mips*-*-mach3*.
8161 * NEWS: Mention that mips*-*-mach3* is obsolete.
8162 * m3-nat.c: Obsolete file.
8163 * config/nm-m3.h: Obsolete file.
8164 * config/mips/tm-mipsm3.h: Obsolete file.
8165 * config/mips/mipsm3.mt: Obsolete file.
8166 * config/mips/mipsm3.mh: Obsolete file.
8167 * config/mips/xm-mipsm3.h: Obsolete file.
8168 * mipsm3-nat.c: Obsolete file.
8169 * configure.host: Obsolete mips-dec-mach3*.
8170 * configure.tgt: Obsolete mips*-*-mach3*.
8171
8172 2003-04-09 Andrew Cagney <cagney@redhat.com>
8173
8174 * doublest.h: Update copyright.
8175 (deprecated_store_floating, deprecated_extract_floating): Rename
8176 store_floating and extract_floating. Update comments.
8177 * doublest.c: Update copyright.
8178 (extract_floating_by_length): Replace extract_floating.
8179 (store_floating_by_length): Replace store_floating.
8180 (deprecated_extract_floating): New function.
8181 (deprecated_store_floating): New function.
8182 (extract_typed_floating): Call extract_floating_by_length.
8183 (store_typed_floating): Call store_floating_by_length.
8184 * x86-64-tdep.c (x86_64_store_return_value): Update.
8185 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8186 (sh64_extract_return_value): Update.
8187 (sh_sh4_register_convert_to_virtual): Update.
8188 (sh_sh64_register_convert_to_virtual): Update.
8189 (sh_sh4_register_convert_to_raw): Update.
8190 (sh_sh64_register_convert_to_raw): Update.
8191 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8192 (rs6000_register_convert_to_raw): Update.
8193 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8194 (ia64_register_convert_to_raw): Update.
8195 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8196 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8197 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8198 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8199 (alpha_register_convert_to_raw): Update.
8200
8201 2003-04-08 Andrew Cagney <cagney@redhat.com>
8202
8203 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8204 * gdbarch.h, gdbarch.c: Re-generate.
8205 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8206 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8207 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8208 conditionally, use frame_pc_unwind as an alternative. Add
8209 comments.
8210 * arch-utils.c (init_frame_pc_default): Only call
8211 SAVED_PC_AFTER_CALL when available.
8212
8213 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8214
8215 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8216 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8217 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8218 (start_remote): Ditto.
8219 (handle_inferior_event): Ditto.
8220 (save_inferior_status): Ditto.
8221 (restore_inferior_status): Ditto.
8222 * infcmd.c (attach_command): Ditto.
8223 * fork-child.c (startup_inferior): Ditto.
8224 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8225 * alpha-tdep.c (heuristic_proc_start): Ditto.
8226 * mips-tdep.c (heuristic_proc_start): Ditto.
8227 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8228 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8229 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8230 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8231 * remote-vx.c (vx_create_inferior): Ditto.
8232
8233 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8234
8235 * infrun.c (stop_soon_quietly): Make it an enum, to better
8236 override the default behavior of handle_inferior_event.
8237 (clear_proceed_status): Update uses of stop_soon_quietly to
8238 reflect that it is now an enum.
8239 (start_remote): Ditto.
8240 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8241 is set to handle the new GNU/Linux kernel behavior for
8242 attach/sigstop. Update uses of stop_soon_quietly.
8243 * inferior.h (enum stop_kind): New enum.
8244 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8245 Reset normal handle_inferior_event behavior, afterwards.
8246 * fork-child.c (startup_inferior): Update.
8247 * alpha-tdep.c (heuristic_proc_start): Update.
8248 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8249 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8250 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8251 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8252 * remote-vx.c (vx_create_inferior): Update.
8253 * mips-tdep.c (heuristic_proc_start): Update.
8254
8255 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8256
8257 * disasm.c (dump_insns): Move variables inside loop, or they will
8258 be freed more than once, causing wild memory corruptions.
8259 (gdb_disassembly): Look for the substring "-thread",
8260 instead of "-threads" in the target name, to make sure to find
8261 the 'multi-thread' target. Also, make sure we do the right thing
8262 with the "core" target.
8263
8264 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8265
8266 * mips-tdep.c (mips_print_fp_register): New function, created from
8267 do_fp_register_row(). Registers are now (also) printed as hex.
8268 Only one register is printed per row.
8269 (mips_print_register, do_fp_register_row): Print floating point
8270 registers with mips_print_fp_register().
8271
8272 2003-04-06 Andrew Cagney <cagney@redhat.com>
8273
8274 * valprint.h (inspect_it): Add extern declaration.
8275 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8276 (selectors_info, classes_info): Ditto.
8277 (find_objc_msgcall): Fix indentation.
8278 (objc_printstr): Delete extern declarations.
8279
8280 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8281
8282 2003-04-06 Andrew Cagney <cagney@redhat.com>
8283
8284 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8285 Update comment.
8286 * frame.c (legacy_saved_regs_this_id): Update.
8287 (legacy_get_prev_frame): Update.
8288 * xstormy16-tdep.c: Update comment.
8289 * sparc-tdep.c (sparc_frame_chain): Update comment.
8290 * blockframe.c (legacy_frame_chain_valid): Update.
8291
8292 2003-04-06 Andrew Cagney <cagney@redhat.com>
8293
8294 * valprint.c (val_print_type_code_int): Delete #ifdef
8295 PRINT_TYPELESS_INTEGER code.
8296
8297 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8298 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8299 multi-arch definition.
8300 * gdbarch.h: Re-generate.
8301
8302 2003-04-05 Andrew Cagney <cagney@redhat.com>
8303
8304 Eliminate FRAME_FIND_SAVED_REGS.
8305 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8306 Change FSR parameter to a pointer.
8307 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8308 Assume FSR parameter is a pointer.
8309 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8310 Make fsr a pointer.
8311 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8312 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8313 saved_regs a pointer.
8314 (hppa_frame_saved_pc): Ditto.
8315 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8316 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8317 pointer.
8318 (restore_pc_queue): Make fsr a pointer.
8319 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8320 (hppa_frame_chain): Make saved_regs a pointer, call
8321 hppa_frame_init_saved_regs.
8322 * sparc-tdep.c: Include "gdb_assert.h".
8323 (sparc_frame_find_saved_regs): Replace internal_error with
8324 gdb_assert.
8325 * remote-vxsparc.c (vx_read_register): Delete reference to
8326 FRAME_FIND_SAVED_REGS.
8327 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8328 * gdbarch.h: Regenerate.
8329 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8330 (deprecated_get_frame_saved_regs): Delete declaration.
8331 (struct frame_saved_regs): Delete definition.
8332 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8333 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8334 (hppa_frame_find_saved_regs): Delete declaration.
8335 (FRAME_FIND_SAVED_REGS): Delete macro.
8336 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8337 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8338 FRAME_FIND_SAVED_REGS in comment.
8339
8340 2003-04-05 Andrew Cagney <cagney@redhat.com>
8341
8342 * frame.c (frame_func_unwind, get_frame_func): New functions.
8343 * frame.h (get_frame_func, frame_func_unwind): Declare.
8344 (struct frame_info): Add field "prev_func" for caching the
8345 previous frame's function address.
8346 * arm-tdep.c (arm_frameless_function_invocation): Combine
8347 get_pc_function_start and get_frame_pc into get_frame_func.
8348 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8349 (sh64_nofp_frame_init_saved_regs): Ditto.
8350 * s390-tdep.c (s390_function_start): Ditto.
8351 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8352 (rs6000_frameless_function_invocation): Ditto.
8353 (rs6000_frame_saved_pc): Ditto.
8354 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8355 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8356 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8357 (i386_frame_init_saved_regs): Ditto.
8358 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8359 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8360 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8361 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8362 * blockframe.c (frameless_look_for_prologue): Ditto.
8363
8364 2003-04-05 Andrew Cagney <cagney@redhat.com>
8365
8366 * frame.c (legacy_get_prev_frame): Link prev to next at the
8367 function start. Update comments.
8368
8369 2003-04-05 Andrew Cagney <cagney@redhat.com>
8370
8371 * frame.c (get_frame_id): Update comment.
8372 (legacy_get_prev_frame): Update comment.
8373 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8374 * gdbarch.h: Regenerate.
8375 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8376 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8377
8378 2003-04-05 Andrew Cagney <cagney@redhat.com>
8379
8380 * stack.c (print_frame_info): Use get_frame_pc.
8381
8382 2003-04-04 Andrew Cagney <cagney@redhat.com>
8383
8384 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8385 the frame's type from the unwinder.
8386 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8387 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8388 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8389 (get_frame_base_address): Use get_frame_type.
8390 (get_frame_locals_address, get_frame_args_address): Ditto.
8391 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8392 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8393 (struct frame_info): Add comment explaining why the frame contains
8394 a "type" field.
8395 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8396 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8397 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8398 NORMAL_FRAME.
8399 * frame-unwind.h: Include "frame.h".
8400 (struct frame_unwind): Add "type" field.
8401 * Makefile.in (frame_unwind_h): Add $(frame_h).
8402
8403 2003-04-04 Andrew Cagney <cagney@redhat.com>
8404
8405 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8406 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8407 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8408 get_frame_base.
8409 (d10v_unwind_dummy_id): Use frame_id_build.
8410 * frame.c (find_frame_sal): Use get_frame_pc.
8411 (create_new_frame): Use deprecated_update_frame_pc_hack and
8412 deprecated_update_frame_base_hack.
8413 (create_sentinel_frame): Add comment about ->pc going away.
8414 (get_prev_frame): Add comment about ->pc going away.
8415 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8416 frame_id_build, deprecated_update_frame_pc_hack and
8417 deprecated_update_frame_base_hack.
8418 (select_frame): Use get_frame_pc.
8419 (legacy_saved_regs_this_id): Use frame_id_build.
8420
8421 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8422
8423 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8424 signed integer case.
8425 (classify_argument): Handle enumerations and references.
8426
8427 2003-04-04 Andrew Cagney <cagney@redhat.com>
8428
8429 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8430 ID to NULL.
8431
8432 2003-04-01 Adam Fedor <fedor@gnu.org>
8433
8434 * gdb/objc-lang.c (selectors_info): Replace calls to
8435 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8436 SYMBOL_NATURAL_NAME.
8437 (classes_info, find_methods): Likewise.
8438
8439 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8440
8441 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8442 ``mach'' to the value determined by bfd_default_set_arch_mach().
8443
8444 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8445
8446 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8447 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8448 (mi-cmd-file.o): Update dependencies.
8449
8450 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8451
8452 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8453 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8454
8455 2003-04-01 Adam Fedor <fedor@gnu.org>
8456
8457 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8458 * language.h (struct language_defn): Add la_demangle.
8459 (language_demangle): Declare.
8460 * language.c (language_demangle): New function.
8461 (unk_lang_demangle): Likewise.
8462 (unknown_language_defn, auto_language_defn, local_language_defn):
8463 Add ukn_lang_demangle.
8464 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8465 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8466 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8467 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8468 * jv-lang.c (java_demangle): New function
8469 (java_language_defn): Use it for la_demangle element.
8470 * objc-lang.c (objc_demangle): Add options argument
8471 (objc_language_defn): Use objc_demangle for la_demangle element.
8472 * maint.c (maintenance_demangle): Replace switch with
8473 call to language_demangle.
8474 * utils.c (fprintf_symbol_filtered): Likewise.
8475
8476 2003-04-01 Andrew Cagney <cagney@redhat.com>
8477
8478 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8479 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8480 PRINT_TYPELESS_INTEGER.
8481 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8482 PUSH_RETURN_ADDRESS.
8483
8484 2003-04-01 Andrew Cagney <cagney@redhat.com>
8485
8486 * Makefile.in (d10v-tdep.o): Update dependencies.
8487 * d10v-tdep.c: Include "frame-base.h".
8488 (d10v_frame_unwind): Make constant.
8489 (d10v_frame_base_address): New function.
8490 (d10v_frame_base): New variable.
8491 (d10v_gdbarch_init): Set frame_base default.
8492 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8493 comment for base.
8494 (d10v_frame_unwind_cache): Set and use "prev_sp".
8495 (d10v_frame_this_id): Use the previous frame's inner most stack
8496 address and this frame's func address for the frame ID. Use
8497 frame_id_build. Don't analyze beyond the current instruction.
8498
8499 2003-04-01 Andrew Cagney <cagney@redhat.com>
8500
8501 * frame.h (get_frame_locals_address, get_frame_args_address):
8502 Refer to the base address, instead of the address of the first
8503 local or parameter.
8504
8505 2003-04-01 Andrew Cagney <cagney@redhat.com>
8506
8507 Add frame debug info addresses:
8508 * frame-base.c: New file.
8509 * frame-base.h: New file.
8510 * frame.h (struct frame_base): Add opaque declaration.
8511 (get_frame_base): Update comment.
8512 (get_frame_base_address): Declare.
8513 (get_frame_locals_address): Declare.
8514 (get_frame_args_address): Declare.
8515 (struct frame_info): Add "base" and "base_cache". Update
8516 comments on the unwinder.
8517 * frame.c: Include "frame-base.h".
8518 (get_frame_locals_address): New function.
8519 (get_frame_base_address): New function.
8520 (get_frame_args_address): New function.
8521 * findvar.c (read_var_value): Use get_frame_locals_address and
8522 get_frame_args_address.
8523 * stack.c (frame_info): Use get_frame_locals_address and
8524 get_frame_args_address.
8525 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8526 moved to "frame-base.c".
8527 * printcmd.c (print_frame_nameless_args): Ditto.
8528 * symtab.h (address_class): Update comments.
8529 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8530 get_frame_base_address.
8531 * dwarf2expr.c (execute_stack_op): Ditto.
8532 * Makefile.in (frame_base_h): Define.
8533 (frame.o): Update dependencies.
8534 (frame-base.o): Add dependencies.
8535 (SFILES): Add frame-base.c.
8536 (COMMON_OBS): Add frame-base.o.
8537
8538 2003-04-01 Andrew Cagney <cagney@redhat.com>
8539
8540 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8541 CALL_DUMMY_LENGTH): Ditto.
8542 * gdbarch.c: Re-generate.
8543 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8544 (CALL_DUMMY_LENGTH): Delete macro.
8545 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8546 * arm-tdep.c (arm_gdbarch_init): Ditto.
8547 * avr-tdep.c (avr_gdbarch_init): Ditto.
8548 * cris-tdep.c (cris_gdbarch_init): Ditto.
8549 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8550 * frv-tdep.c (frv_gdbarch_init): Ditto.
8551 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8552 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8553 * i386-tdep.c (i386_gdbarch_init): Ditto.
8554 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8555 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8556 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8557 * mips-tdep.c (mips_gdbarch_init): Ditto.
8558 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8559 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8560 * s390-tdep.c (s390_gdbarch_init): Ditto.
8561 * sh-tdep.c (sh_gdbarch_init): Ditto.
8562 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8563 * v850-tdep.c (v850_gdbarch_init): Ditto.
8564 * vax-tdep.c (vax_gdbarch_init): Ditto.
8565 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8566
8567 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8568
8569 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8570
8571 2003-04-01 Andrew Cagney <cagney@redhat.com>
8572
8573 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8574 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8575 * gdbarch.h, gdbarch.c: Re-generate.
8576 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8577 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8578 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8579 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8580 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8581 * infcmd.c (run_stack_dummy): Simplify assuming
8582 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8583 * infrun.c (handle_inferior_event): Ditto.
8584 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8585 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8586 * arm-tdep.c (arm_gdbarch_init): Ditto.
8587 * avr-tdep.c (avr_gdbarch_init): Ditto.
8588 * cris-tdep.c (cris_gdbarch_init): Ditto.
8589 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8590 * frv-tdep.c (frv_gdbarch_init): Ditto.
8591 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8592 * i386-tdep.c (i386_gdbarch_init): Ditto.
8593 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8594 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8595 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8596 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8597 * mips-tdep.c (mips_gdbarch_init): Ditto.
8598 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8599 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8600 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8601 * s390-tdep.c (s390_gdbarch_init): Ditto.
8602 * sh-tdep.c (sh_gdbarch_init): Ditto.
8603 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8604 * v850-tdep.c (v850_gdbarch_init): Ditto.
8605 * vax-tdep.c (vax_gdbarch_init): Ditto.
8606 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8607
8608 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8609
8610 * symfile.c (symfile_relocate_debug_section): Update call to
8611 bfd_simple_get_relocated_section_contents.
8612
8613 2003-03-31 Andrew Cagney <cagney@redhat.com>
8614
8615 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8616 * gdbarch.h, gdbarch.c: Regenerate.
8617 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8618 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8619 available.
8620 * frame.h (generic_fix_call_dummy): Delete declaration.
8621 * dummy-frame.h: Update comment.
8622 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8623 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8624 fix_call_dummy.
8625 * sh-tdep.c (sh_gdbarch_init): Ditto.
8626 * s390-tdep.c (s390_gdbarch_init): Ditto.
8627 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8628 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8629 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8630 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8631 * i386-tdep.c (i386_gdbarch_init): Ditto.
8632 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8633 * frv-tdep.c (frv_gdbarch_init): Ditto.
8634 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8635 * cris-tdep.c (cris_gdbarch_init): Ditto.
8636 * avr-tdep.c (avr_gdbarch_init): Ditto.
8637 * arm-tdep.c (arm_gdbarch_init): Ditto.
8638
8639 2003-03-31 J. Brobecker <brobecker@gnat.com>
8640
8641 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8642 (INIT_FRAME_AP): Likewise.
8643 (EXTRA_FRAME_INFO): Likewise.
8644
8645 2003-03-31 Andrew Cagney <cagney@redhat.com>
8646
8647 * gdbarch.sh: Include "symfile.h".
8648 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8649 * gdbarch.h, gdbarch.c: Re-generate.
8650 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8651 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8652 call_dummy_address, the default is at entry_point_address.
8653 * v850-tdep.c (v850_gdbarch_init): Ditto.
8654 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8655 * sh-tdep.c (sh_gdbarch_init): Ditto.
8656 * s390-tdep.c (s390_gdbarch_init): Ditto.
8657 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8658 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8659 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8660 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8661 * i386-tdep.c (i386_gdbarch_init): Ditto.
8662 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8663 * frv-tdep.c (frv_gdbarch_init): Ditto.
8664 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8665 * cris-tdep.c (cris_gdbarch_init): Ditto.
8666 * arm-tdep.c (arm_gdbarch_init): Ditto.
8667
8668 2003-03-31 Andrew Cagney <cagney@redhat.com>
8669
8670 * gdbarch.sh (CALL_DUMMY_P): Delete.
8671 * gdbarch.h, gdbarch.c: Re-generate.
8672 * inferior.h (CALL_DUMMY_P): Delete macro.
8673 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8674 * vax-tdep.c (vax_gdbarch_init): Update.
8675 * v850-tdep.c (v850_gdbarch_init): Update.
8676 * sparc-tdep.c (sparc_gdbarch_init): Update.
8677 * sh-tdep.c (sh_gdbarch_init): Update.
8678 * s390-tdep.c (s390_gdbarch_init): Update.
8679 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8680 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8681 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8682 * mips-tdep.c (mips_gdbarch_init): Update.
8683 * mcore-tdep.c (mcore_gdbarch_init): Update.
8684 * m68k-tdep.c (m68k_gdbarch_init): Update.
8685 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8686 * ia64-tdep.c (ia64_gdbarch_init): Update.
8687 * i386-tdep.c (i386_gdbarch_init): Update.
8688 * h8300-tdep.c (h8300_gdbarch_init): Update.
8689 * frv-tdep.c (frv_gdbarch_init): Update.
8690 * d10v-tdep.c (d10v_gdbarch_init): Update.
8691 * cris-tdep.c (cris_gdbarch_init): Update.
8692 * breakpoint.c (deprecated_frame_in_dummy): Update.
8693 * avr-tdep.c (avr_gdbarch_init): Update.
8694 * alpha-tdep.c (alpha_gdbarch_init): Update.
8695 * arm-tdep.c (arm_gdbarch_init): Update.
8696 * dummy-frame.c (dummy_frame_this_id): Update comments.
8697 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8698 * frame.c (legacy_get_prev_frame): Ditto.
8699 * valops.c (call_function_by_hand): Delete function.
8700 (hand_function_call): Rename to call_function_by_hand
8701
8702 2003-03-30 Andrew Cagney <cagney@redhat.com>
8703
8704 2002-11-10 Klee Dienes <kdienes@apple.com>
8705 * value.h (struct value): Update comment.
8706
8707 2003-03-30 Andrew Cagney <cagney@redhat.com>
8708
8709 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8710 D10V_FP_REGNUM.
8711 (d10v_gdbarch_init): Do not set fp_regnum.
8712
8713 * frame.c (get_frame_base): Force ID initialization.
8714 (get_prev_frame): Move computation of the frame ID from here ...
8715 (get_frame_id): ... to here.
8716 (legacy_get_prev_frame): Mark the frame ID as valid.
8717 * frame.h (struct frame_info): Add field "id_p".
8718
8719 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8720
8721 * i386-tdep.c (i386_store_struct_return): Removed.
8722 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8723
8724 2003-03-30 Andrew Cagney <cagney@redhat.com>
8725
8726 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8727 * gdbarch.h, gdbarch.c: Regenerate.
8728 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8729 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8730 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8731 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8732 * i386-tdep.c (i386_gdbarch_init): Ditto.
8733 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8734 * cris-tdep.c (cris_gdbarch_init): Ditto.
8735 * vax-tdep.c (vax_gdbarch_init): Ditto.
8736 * s390-tdep.c (s390_gdbarch_init): Ditto.
8737 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8738 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8739 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8740 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8741 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8742 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8743 * sparc-tdep.c (sparc_gdbarch_init): Update.
8744 * sh-tdep.c (sh_gdbarch_init): Update.
8745 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8746 * mips-tdep.c (mips_gdbarch_init): Update.
8747 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8748 * ia64-tdep.c (ia64_gdbarch_init): Update.
8749 * frv-tdep.c (frv_gdbarch_init): Update.
8750 * avr-tdep.c (avr_gdbarch_init): Update.
8751 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8752 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8753 instead of when push_dummy_call is not available.
8754
8755 2003-03-30 Andrew Cagney <cagney@redhat.com>
8756
8757 * infttrace.c: Include "gdbthread.h".
8758 (parent_attach_all): Fix function signature.
8759 (call_ptrace): Update call.
8760 * Makefile.in (infttrace.o): Update dependencies.
8761
8762 2003-03-30 Andrew Cagney <cagney@redhat.com>
8763
8764 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8765 PUSH_RETURN_ADDRESS.
8766 * gdbarch.h, gdbarch.c: Regenerate.
8767 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8768 * x86-64-tdep.c (x86_64_init_abi): Update.
8769 * v850-tdep.c (v850_gdbarch_init): Update.
8770 * sparc-tdep.c (sparc_gdbarch_init): Update.
8771 * sh-tdep.c (sh_gdbarch_init): Update.
8772 * s390-tdep.c (s390_gdbarch_init): Update.
8773 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8774 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8775 * mips-tdep.c (mips_gdbarch_init): Update.
8776 * mcore-tdep.c (mcore_gdbarch_init): Update.
8777 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8778 * ia64-tdep.c (ia64_gdbarch_init): Update.
8779 * i386-tdep.c (i386_gdbarch_init): Update.
8780 * h8300-tdep.c (h8300_gdbarch_init): Update.
8781 * frv-tdep.c (frv_gdbarch_init): Update.
8782 * cris-tdep.c (cris_gdbarch_init): Update.
8783 * avr-tdep.c (avr_gdbarch_init): Update.
8784 * arm-tdep.c (arm_gdbarch_init): Update.
8785 * valops.c (hand_function_call): Update.
8786
8787 2003-03-29 Andrew Cagney <cagney@redhat.com>
8788
8789 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8790 sizeof_call_dummy_words.
8791 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8792 define.
8793 * gdbarch.h: Regenerate.
8794
8795 2003-03-29 Andrew Cagney <cagney@redhat.com>
8796
8797 * infttrace.h: New file.
8798 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8799 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8800 (hpread_read_doc_function_type): Detect an initialized type1.
8801 (hpread_quick_traverse): Initialize mod_name_string.
8802 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8803 (som_solib_get_solib_by_pc): Declare.
8804 (so_lib_thread_start_addr): Declare.
8805 (no_shared_libraries): Declare.
8806 * somread.c (init_import_symbols): Make static. Add forward
8807 declaration.
8808 * config/pa/nm-hppah.h: Include "infttrace.h" for
8809 parent_attach_all.
8810 (hppa_insert_hw_watchpoint): Declare.
8811 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8812 * hppah-nat.c: Include "gdb_string.h".
8813 (parent_attach_all): Delete extern declaration, moved to
8814 "infttrace.h".
8815 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8816 int.
8817 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8818 * Makefile.in (infttrace_h): Define.
8819 (hpread.o): Update dependencies.
8820 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8821 * hppa-hpux-tdep.c: Include "gdb_string.h".
8822 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8823 * infrun.c (handle_inferior_event): Always initialize
8824 stepped_after_stopped_by_watchpoint. Add default and remove
8825 fallthrough in switch statement.
8826 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8827 parameter to int.
8828 (hppa_remove_hw_watchpoint): Ditto.
8829
8830 2003-03-29 Andrew Cagney <cagney@redhat.com>
8831
8832 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8833 offset.
8834
8835 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8836
8837 * arm-tdep.c (arm_push_arguments): Delete.
8838 (struct stack_item): New type.
8839 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8840 (arm_store_struct_return): Delte.
8841 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8842 arm_push_arguments or arm_store_struct_return.
8843
8844 2003-03-28 Andrew Cagney <cagney@redhat.com>
8845
8846 * Makefile.in (d10v-tdep.o): Update dependencies.
8847 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8848 * d10v-tdep.c: Include "remote.h".
8849 (target_resume_hook): Delete extern declaration.
8850 (target_wait_loop_hook): Ditto.
8851 (tdisassemble_command): Eliminate assignment in "if" conditional.
8852 (d10v_ts2_register_sim_regno): Eliminate call to
8853 legacy_register_sim_regno.
8854 (d10v_ts3_register_sim_regno): Ditto.
8855
8856 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8857
8858 * thread.c: Reindented.
8859 * lin-lwp.c: Ditto.
8860 * linux-proc.c: Ditto.
8861
8862 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8863
8864 * MAINTAINERS (write after approval): Add myself.
8865
8866 2003-03-27 Theodore A. Roth <troth@openavr.org>
8867
8868 * objc-exp.y: Add missing semi-colons.
8869
8870 2003-03-27 Andrew Cagney <cagney@redhat.com>
8871
8872 * regcache.c (write_sp): Delete function and references.
8873 * inferior.h (write_sp): Delete declaration.
8874 * valops.c (hand_function_call): Replace write_sp with
8875 TARGET_WRITE_SP.
8876 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8877 (sparc_pop_frame): Ditto.
8878
8879 2003-03-27 Andrew Cagney <cagney@redhat.com>
8880
8881 * NEWS: Mention removal of support for hppa*-*-bsd* and
8882 hppa*-*-osf* natives, and hppa*-*-pro* target.
8883 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8884 * config/pa/xm-pa.h: Obsolete file.
8885 * config/pa/xm-hppab.h: Obsolete file.
8886 * config/pa/nm-hppab.h: Obsolete file.
8887 * config/pa/tm-hppab.h: Obsolete file.
8888 * config/pa/tm-hppao.h: Obsolete file.
8889 * config/pa/nm-hppao.h: Obsolete file.
8890 * config/pa/tm-pro.h: Obsolete file.
8891 * config/pa/hppaosf.mt: Obsolete file.
8892 * config/pa/hppaosf.mh: Obsolete file.
8893 * config/pa/hppapro.mt: Obsolete file.
8894 * config/pa/hppabsd.mt: Obsolete file.
8895 * config/pa/hppabsd.mh: Obsolete file.
8896 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8897 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8898 hppa*-*-osf*.
8899
8900 2003-03-27 Andrew Cagney <cagney@redhat.com>
8901
8902 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8903 push_arguments. Don't set push_return_address or write_sp.
8904 (d10v_push_dummy_call): Replace d10v_push_arguments.
8905 (d10v_push_return_address, d10v_write_sp): Delete function,
8906 handled by push_dummy_call.
8907
8908 2003-03-26 Andrew Cagney <cagney@redhat.com>
8909
8910 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8911 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8912 regcache and dummy_addr parameters.
8913 * gdbarch.h, gdbarch.c: Re-generate.
8914 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8915 available; assume it will handle stack alignment and return
8916 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8917 legacy_push_arguments.
8918 (legacy_push_arguments): Rename default_push_arguments.
8919 * value.h (legacy_push_arguments): Rename default_push_arguments.
8920 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8921 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8922 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8923 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8924 * config/i386/tm-symmetry.h: Update.
8925 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8926 * x86-64-tdep.c (x86_64_init_abi): Update.
8927 * v850-tdep.c (v850_gdbarch_init): Update.
8928 * sparc-tdep.c (sparc_gdbarch_init): Update.
8929 * sh-tdep.c (sh_gdbarch_init): Update.
8930 * s390-tdep.c (s390_gdbarch_init): Update.
8931 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8932 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8933 * mips-tdep.c (mips_gdbarch_init): Update.
8934 * mcore-tdep.c (mcore_gdbarch_init): Update.
8935 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8936 * ia64-tdep.c (ia64_gdbarch_init): Update.
8937 * i386-tdep.c (i386_gdbarch_init): Update.
8938 * hppa-tdep.c (hppa_gdbarch_init): Update.
8939 * h8300-tdep.c (h8300_gdbarch_init): Update.
8940 * frv-tdep.c (frv_gdbarch_init): Update.
8941 * d10v-tdep.c (d10v_gdbarch_init): Update.
8942 * cris-tdep.c (cris_gdbarch_init): Update.
8943 * avr-tdep.c (avr_gdbarch_init): Update.
8944 * arm-tdep.c (arm_gdbarch_init): Update.
8945 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8946 * alpha-tdep.c (alpha_gdbarch_init): Update.
8947
8948 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8949
8950 * signals/signals.c (do_target_signal_to_host): Correct realtime
8951 signal range test.
8952
8953 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8954
8955 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8956 (struct sal_chain, map_catch_names): Remove.
8957 (catch_exception_command_1): Don't call
8958 handle_gnu_4_16_catch_command.
8959
8960 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8961
8962 From Mark Dettinger <dettinge@de.ibm.com>:
8963 * dwarf2cfi.c (read_2u): Increment pointer by two.
8964
8965 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8966
8967 * signals/signals.c: Fix typos in last change.
8968
8969 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8970
8971 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8972 not already defined. Use __SIGRTMIN if available.
8973 (target_signal_from_host): Remove SIGRTMIN block.
8974 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8975 the signal is within the realtime range.
8976
8977 2003-03-25 Adam Fedor <fedor@gnu.org>
8978
8979 * Makefile.in (infrun.o): Add $(language_h)
8980 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8981 for language specific trampolines.
8982 * language.h (struct language_defn): Add skip_trampoline.
8983 (skip_language_trampoline): Declare.
8984 * language.c (unk_lang_trampoline, skip_language_trampoline):
8985 New functions.
8986 (unknown_language_defn, auto_language_defn, local_language_defn):
8987 Add ukn_lang_trampoline.
8988 * ada-lang.c (ada_language_defn): Add NULL for language
8989 specific skip_trampoline.
8990 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8991 scm-lang.c: Likewise.
8992 * objc-lang.c (objc_skip_trampoline): New function.
8993 (objc_language_defn): Add objc_skip_trampoline.
8994
8995 2003-03-25 Andrew Cagney <cagney@redhat.com>
8996
8997 * frame.c (get_prev_frame): Delay validating a frame's ID -
8998 non-NULL, didn't go backwards - until an attempt to unwind it to
8999 the previous frame.
9000
9001 2003-03-25 Andrew Cagney <cagney@redhat.com>
9002
9003 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9004 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9005 * gdbarch.h, gdbarch.c: Re-generate.
9006 * config/sparc/tm-sparc.h
9007 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9008 * sparc-tdep.c (sparc_gdbarch_init): Set
9009 deprecated_extra_stack_alignment_needed.
9010 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9011 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9012 extra_stack_alignment_needed.
9013 * v850-tdep.c (v850_gdbarch_init): Ditto.
9014 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9015 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9016 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9017 * cris-tdep.c (cris_gdbarch_init): Ditto.
9018 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9019 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9020
9021 2003-03-25 Andrew Cagney <cagney@redhat.com>
9022
9023 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9024 STORE_STRUCT_RETURN.
9025 * gdbarch.h, gdbarch.c: Regenerate.
9026 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9027 (d10v_push_arguments): Set the struct return register.
9028 (d10v_gdbarch_init): Update.
9029 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9030 * x86-64-tdep.c (x86_64_init_abi): Update.
9031 * vax-tdep.c (vax_gdbarch_init): Update.
9032 * v850-tdep.c (v850_gdbarch_init): Update.
9033 * sparc-tdep.c (sparc_gdbarch_init): Update.
9034 * sh-tdep.c (sh_gdbarch_init): Update.
9035 * s390-tdep.c (s390_gdbarch_init): Update.
9036 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9037 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9038 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9039 * mips-tdep.c (mips_gdbarch_init): Update.
9040 * mcore-tdep.c (mcore_gdbarch_init): Update.
9041 * m68k-tdep.c (m68k_gdbarch_init): Update.
9042 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9043 * ia64-tdep.c (ia64_gdbarch_init): Update.
9044 * i386-tdep.c (i386_gdbarch_init): Update.
9045 * hppa-tdep.c (hppa_gdbarch_init): Update.
9046 * h8300-tdep.c (h8300_gdbarch_init): Update.
9047 * frv-tdep.c (frv_gdbarch_init): Update.
9048 * cris-tdep.c (cris_gdbarch_init): Update.
9049 * avr-tdep.c (avr_gdbarch_init): Update.
9050 * arm-tdep.c (arm_gdbarch_init): Update.
9051 * alpha-tdep.c (alpha_gdbarch_init): Update.
9052
9053 2003-03-25 Andrew Cagney <cagney@redhat.com>
9054
9055 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9056 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9057 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9058 * gdbarch.h, gdbarch.c: Regenerate.
9059 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9060 call_dummy_stack_adjust_p.
9061 * vax-tdep.c (vax_gdbarch_init): Ditto.
9062 * v850-tdep.c (v850_gdbarch_init): Ditto.
9063 * sh-tdep.c (sh_gdbarch_init): Ditto.
9064 * s390-tdep.c (s390_gdbarch_init): Ditto.
9065 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9066 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9067 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9068 * mips-tdep.c (mips_gdbarch_init): Ditto.
9069 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9070 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9071 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9072 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9073 * i386-tdep.c (i386_gdbarch_init): Ditto.
9074 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9075 * frv-tdep.c (frv_gdbarch_init): Ditto.
9076 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9077 * cris-tdep.c (cris_gdbarch_init): Ditto.
9078 * avr-tdep.c (avr_gdbarch_init): Ditto.
9079 * arm-tdep.c (arm_gdbarch_init): Ditto.
9080 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9081 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9082 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9083 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9084 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9085 call_dummy_stack_adjust_p.
9086 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9087 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9088 * sparc-tdep.c (sparc32_push_arguments): Update.
9089 * valops.c (hand_function_call): Update.
9090
9091 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9092
9093 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9094 set_gdbarch_char_signed.
9095
9096 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9097
9098 PR cli/548
9099 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9100
9101 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9102
9103 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9104 (_initialize_arm_tdep): Don't set tm_print_insn.
9105
9106 2003-03-24 Adam Fedor <fedor@gnu.org>
9107
9108 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9109 * objc-lang.h: Add multiple inclusion protection.
9110 (start_msglist, add_msglist, end_msglist): Additional declarations.
9111
9112 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9113
9114 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9115 value was renamed to ARM_FLOAT_SOFT_FPA.
9116
9117 2003-03-23 Andrew Cagney <cagney@redhat.com>
9118
9119 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9120 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9121 * gdbarch.h, gdbarch.c: Regenerate.
9122 * valops.c (hand_function_call): Update.
9123 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9124 * frame.c (legacy_saved_regs_this_id): Update.
9125 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9126 * dummy-frame.h: Update.
9127 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9128 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9129 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9130 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9131 * config/m68k/tm-sun3.h: Update.
9132 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9133 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9134 * x86-64-tdep.c (x86_64_init_abi): Update.
9135 * vax-tdep.c (vax_gdbarch_init): Update.
9136 * v850-tdep.c (v850_gdbarch_init): Update.
9137 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9138 * sh-tdep.c (sh_gdbarch_init): Update.
9139 * s390-tdep.c (s390_gdbarch_init): Update.
9140 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9141 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9142 (frame_get_saved_regs): Update.
9143 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9144 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9145 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9146 * mips-tdep.c (mips_gdbarch_init): Update.
9147 * mcore-tdep.c (mcore_gdbarch_init): Update.
9148 * m68k-tdep.c (m68k_gdbarch_init): Update.
9149 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9150 * ia64-tdep.c (ia64_gdbarch_init): Update.
9151 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9152 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9153 (i386_interix_back_one_frame): Update.
9154 * hppa-tdep.c (hppa_gdbarch_init): Update.
9155 (hppa_init_extra_frame_info): Update.
9156 * h8300-tdep.c (h8300_gdbarch_init): Update.
9157 * frv-tdep.c (frv_gdbarch_init): Update.
9158 * cris-tdep.c (cris_gdbarch_init): Update.
9159 * avr-tdep.c (avr_gdbarch_init): Update.
9160 * arm-tdep.c (arm_gdbarch_init): Update.
9161 * alpha-tdep.c (alpha_gdbarch_init): Update.
9162
9163 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9164
9165 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9166 (arm_get_fp_model): Declare.
9167 * arm-tdep.c (fp_model_strings): New string array.
9168 (arm_fp_model, current_fp_model): New variables.
9169 (arm_get_fp_model): New function.
9170 (arm_set_fp): New function.
9171 (set_fp_model_sfunc): New function.
9172 (show_fp_model): New function.
9173 (_initialize_arm_tdep): Add new command to set/show the FPU.
9174 (arm_extract_return_value): Use arm_get_fp_model.
9175 (arm_store_return_value): Likewise.
9176 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9177 to initialize the floating-point data types.
9178 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9179 model is FPA.
9180
9181 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9182
9183 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9184 the current setting of each value.
9185 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9186 new_set and new_show. Use add_setshow_cmd_full and
9187 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9188 commands and add new version as subcommands of "set/show arm".
9189
9190 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9191
9192 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9193 (set_arm_command, show_arm_command): New functions.
9194 (_initialize_arm_tdep): Add them.
9195 (num_disassembly_options): Renamed from num_flavor_options.
9196 (valid_disassembly_styles): Renamed from valid_flavors.
9197 (disassembly_style): Renamed from disassembly_flavor.
9198 (set_disassembly_style_sfunc): Renamed from
9199 set_disassembly_flavor_sfunc.
9200 (set_disassembly_style): Renamed from set_disassembly_flavor.
9201 (arm_othernames): Updated.
9202 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9203 command. Add "set/show arm disassembly" commands. Deprecate
9204 "othernames" command.
9205
9206 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9207
9208 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9209 (arm-tdep.o): Depend on elf_arm_h.
9210
9211 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9212
9213 * Makefile.in (coff_internal_h): Define.
9214 (arm-tdep.o): Update dependencies.
9215
9216 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9217
9218 * arm-tdep.c (prologue_cache): Delete.
9219 (check_prologue_cache, save_prologue_cache): Delete.
9220 (arm_scan_prologue): Don't check or update the prologue_cache.
9221 (arm_gdb_arch_init): Don't initialize it.
9222 (_initialize_arm_tdep): Likewise.
9223
9224 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9225
9226 * MAINTAINERS (tui): Maintainer of tui code.
9227
9228 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9229
9230 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9231 (i386-cygwin-tdep.o): Add dependencies.
9232 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9233 * i386-cygwin-tdep.c: New file.
9234 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9235 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9236
9237 2003-03-20 Andrew Cagney <cagney@redhat.com>
9238
9239 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9240 (handle_inferior_event): Remove code calling
9241 DYNAMIC_TRAMPOLINE_NEXTPC.
9242
9243 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9244 already has a full path.
9245
9246 * main.c (gdb_main): Return 1.
9247 (captured_main): Call error to report an invalid interpreter.
9248
9249 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9250 * alpha-osf1-tdep.c: Include "gdb_string.h".
9251
9252 2003-03-19 J. Brobecker <brobecker@gnat.com>
9253
9254 Continuing work to convert the hppa targets to multiarch partial.
9255
9256 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9257 method, now that hppa_push_dummy_frame has a conformant prototype.
9258 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9259 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9260 for the switch to multiarch partial.
9261
9262 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9263
9264 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9265 when iss is issNull.
9266
9267 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9268
9269 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9270 NUM_REGS bounds check.
9271
9272 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9273
9274 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9275 * mips-tdep.c (gdb_assert.h): Include.
9276 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9277 (mips_register_name): Handle integer registers explicitly. Add
9278 bounds checking.
9279 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9280 (mips_lsi33k_reg_names): Don't list integer registers; they're
9281 handled by mips_register_name() now.
9282 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9283 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9284 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9285 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9286 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9287
9288 2003-03-18 Andrew Cagney <cagney@redhat.com>
9289
9290 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9291 a void pointer.
9292 * gdbtypes.h (print_scalar_formatted): Update declaration.
9293 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9294
9295 2003-03-18 J. Brobecker <brobecker@gnat.com>
9296
9297 * infrun.c (observer.h): Add #include.
9298 (normal_stop): Add call to observer_notify_normal_stop.
9299 * Makefile.in (infrun.o): Add dependency on observer.h.
9300
9301 2003-03-18 J. Brobecker <brobecker@gnat.com>
9302
9303 Continuing work to convert the hppa targets to multiarch partial.
9304 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9305 parameter. Reformat comment.
9306 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9307 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9308 to match new profile.
9309
9310 2003-03-18 J. Brobecker <brobecker@gnat.com>
9311
9312 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9313 appear to be working in any case.
9314
9315 2003-03-18 J. Brobecker <brobecker@gnat.com>
9316
9317 * observer.c (observer_test_first_observer): New static variable.
9318 (observer_test_second_observer): Likewise.
9319 (observer_test_third_observer): Likewise.
9320 (observer_test_first_notification_function): New static function.
9321 (observer_test_second_notification_function): Likewise.
9322 (observer_test_third_notification_function): Likewise.
9323
9324 2003-03-17 J. Brobecker <brobecker@gnat.com>
9325
9326 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9327 * somsolib.c (gdb_assert.h): Likewise.
9328 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9329 (somsolib.o): Likewise.
9330
9331 2003-03-17 Andrew Cagney <cagney@redhat.com>
9332
9333 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9334 BFD. Simplify setting of di.endian.
9335
9336 2003-03-17 Andrew Cagney <cagney@redhat.com>
9337
9338 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9339 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9340
9341 From Elena Zannoni <ezannoni@redhat.com>
9342 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9343 vector and floating-point parameters.
9344 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9345 convention.
9346 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9347
9348 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9349
9350 * MAINTAINERS: Remove my name from several maintainership roles.
9351
9352 2003-03-17 Andrew Cagney <cagney@redhat.com>
9353
9354 Fix frame off-by-one bug.
9355 * frame-unwind.h (frame_this_id_ftype): Replace
9356 frame_unwind_id_ftype.
9357 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9358 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9359 with "prev_register".
9360 * frame-unwind.c (frame_unwind_find_by_pc): Return
9361 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9362 comment.
9363 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9364 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9365 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9366 (dummy_frame_unwind): Update.
9367 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9368 sentinel_frame_register_unwind.
9369 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9370 (sentinel_frame_unwinder): Update.
9371 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9372 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9373 * frame.c (create_sentinel_frame): Update. Initialize
9374 "prologue_cache" instead of "unwind_cache".
9375 (frame_register_unwind): Call this frame's prev_register with the
9376 next frame and this frame's prologue cache.
9377 (get_prev_frame): Simplify. Always call prev frame's this_id with
9378 this frame and prev frame's prologue cache. Document that this
9379 call is shifted one to the left when compared to the
9380 frame_register_unwind call.
9381 (legacy_saved_regs_prev_register): Replace
9382 frame_saved_regs_register_unwind.
9383 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9384 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9385 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9386 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9387 (d10v_frame_unwind): Update.
9388 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9389 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9390 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9391 "saved_regs" with "this_saved_regs".
9392
9393 2003-03-16 Andrew Cagney <cagney@redhat.com>
9394
9395 * frame.c (frame_pop): Don't call target_store_registers. Fix
9396 problem reported by Mark Kettenis.
9397
9398 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9399
9400 * i386-tdep.c (i386_register_type): Renamed from
9401 i386_register_virtual_type. Adjust function signature.
9402 (i386_gdbarch_init): Set register_type instead of
9403 deprecated_max_register_raw_size,
9404 deprecated_max_register_virtual_size and register_virtual_type.
9405
9406 2003-03-14 Andrew Cagney <cagney@redhat.com>
9407
9408 * frame.c (get_prev_frame): When a legacy frame, always call
9409 legacy_get_prev_frame. Simplify unwind code using assumption that
9410 the unwinder is new.
9411 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9412 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9413 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9414
9415 2003-03-14 Andrew Cagney <cagney@redhat.com>
9416
9417 * frame.c (get_saved_register): Delete function.
9418 * frame.h (get_saved_register): Delete declaration.
9419 * xstormy16-tdep.c: Update comment.
9420 * regcache.h: Update comments.
9421 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9422 get_saved_register and extract_address, use
9423 frame_read_unsigned_register.
9424 (sparc_frame_saved_pc): Ditto.
9425 (sparc_get_saved_register): Instead of get_saved_register, use
9426 frame_register.
9427 (sparc_pop_frame): Ditto.
9428 * findvar.c: Update comments.
9429 (value_of_register): Call frame_register instead of
9430 get_saved_register.
9431 (value_from_register): Ditto.
9432 * config/sparc/tm-sparc.h: Update comment.
9433 * breakpoint.c: Update comment.
9434
9435 2003-03-14 Andrew Cagney <cagney@redhat.com>
9436
9437 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9438 GET_SAVED_REGISTER.
9439 * gdbarch.h, gdbarch.c: Re-generate.
9440 * frame.h: Update comments.
9441 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9442 * x86-64-tdep.c (x86_64_init_abi): Update.
9443 * sparc-tdep.c (sparc_gdbarch_init): Update.
9444 * sh-tdep.c (sh_gdbarch_init): Update.
9445 * mips-tdep.c (mips_gdbarch_init): Update.
9446 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9447 * cris-tdep.c (cris_gdbarch_init): Update.
9448 * ia64-tdep.c (ia64_gdbarch_init): Update.
9449 * frame.c (frame_register): Update.
9450 (get_saved_register): Update.
9451 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9452
9453 2003-03-13 Andrew Cagney <cagney@redhat.com>
9454
9455 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9456 * gdbarch.h, gdbarch.c: Regenerate.
9457 * valops.c (hand_function_call): Update comment.
9458 * stack.c (return_command): Update comment.
9459 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9460 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9461 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9462 * x86-64-tdep.c (x86_64_init_abi): Update.
9463 * vax-tdep.c (vax_gdbarch_init): Update.
9464 * v850-tdep.c (v850_gdbarch_init): Update.
9465 * sparc-tdep.c (sparc_gdbarch_init): Update.
9466 * sh-tdep.c (sh_gdbarch_init): Update.
9467 * s390-tdep.c (s390_gdbarch_init): Update.
9468 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9469 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9470 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9471 * mips-tdep.c (mips_gdbarch_init): Update.
9472 * mcore-tdep.c (mcore_gdbarch_init): Update.
9473 * m68k-tdep.c (m68k_gdbarch_init): Update.
9474 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9475 * ia64-tdep.c (ia64_gdbarch_init): Update.
9476 * i386-tdep.c (i386_gdbarch_init): Update.
9477 * hppa-tdep.c (hppa_gdbarch_init): Update.
9478 * h8300-tdep.c (h8300_gdbarch_init): Update.
9479 * frv-tdep.c (frv_gdbarch_init): Update.
9480 * cris-tdep.c (cris_gdbarch_init): Update.
9481 * avr-tdep.c (avr_gdbarch_init): Update.
9482 * arm-tdep.c (arm_gdbarch_init): Update.
9483 * alpha-tdep.c (alpha_gdbarch_init): Update.
9484
9485 2003-03-13 Andrew Cagney <cagney@redhat.com>
9486
9487 * frame.c (legacy_frame_p): New function.
9488 (get_prev_frame): Use legacy_frame_p.
9489 * frame.h (legacy_frame_p): Declare.
9490
9491 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9492
9493 * MAINTAINERS (write after approval): Alphabetically
9494 listing corrected.
9495
9496 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9497
9498 * MAINTAINERS (write after approval): Add myself.
9499
9500 2003-03-12 Andrew Cagney <cagney@redhat.com>
9501
9502 * frame.c (get_prev_frame): Rename the frame parameter to
9503 "this_frame".
9504 (get_next_frame, legacy_get_prev_frame): Ditto.
9505
9506 2003-03-12 Andrew Cagney <cagney@redhat.com>
9507
9508 * frame.c (get_current_frame): Check target_has_registers before
9509 checking target_has_stack.
9510 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9511 instead of deprecated_selected_frame.
9512 * findvar.c (value_of_register): Pass "frame", not
9513 deprecated_selected_frame, to value_of_builtin_reg.
9514
9515 2003-03-12 Andrew Cagney <cagney@redhat.com>
9516
9517 * regcache.c (regcache_cooked_write_signed): New function.
9518 (regcache_cooked_write_unsigned): New function.
9519 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9520 (regcache_cooked_read_signed): Fix regnum in range assertion.
9521 * regcache.h (regcache_cooked_write_signed): Declare.
9522 (regcache_cooked_write_unsigned): Declare.
9523
9524 2003-03-12 Andrew Cagney <cagney@redhat.com>
9525
9526 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9527 * gdbarch.h, gdbarch.c: Re-generate.
9528 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9529 * x86-64-tdep.h: Update.
9530 * x86-64-tdep.c (x86_64_init_abi): Update.
9531 * v850-tdep.c (v850_gdbarch_init): Update.
9532 * sparc-tdep.c (sparc_gdbarch_init): Update.
9533 * sh-tdep.c (sh_gdbarch_init): Update.
9534 * s390-tdep.c (s390_gdbarch_init): Update.
9535 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9536 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9537 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9538 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9539 * mips-tdep.c (mips_gdbarch_init): Update.
9540 * mcore-tdep.c (mcore_gdbarch_init): Update.
9541 * m68k-tdep.c (m68k_gdbarch_init): Update.
9542 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9543 * ia64-tdep.c (ia64_gdbarch_init): Update.
9544 * i386-tdep.c (i386_gdbarch_init): Update.
9545 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9546 * hppa-tdep.c (hppa_gdbarch_init): Update.
9547 * h8300-tdep.c (h8300_gdbarch_init): Update.
9548 * frv-tdep.c (frv_gdbarch_init): Update.
9549 * cris-tdep.c (cris_gdbarch_init): Update.
9550 * avr-tdep.c (avr_gdbarch_init): Update.
9551 * arm-tdep.c (arm_gdbarch_init): Update.
9552 * alpha-tdep.c (alpha_gdbarch_init): Update.
9553 * sh-tdep.c (sh_init_extra_frame_info): Update.
9554 (sh64_init_extra_frame_info): Update.
9555 * ns32knbsd-nat.c (frame_num_args): Update.
9556 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9557 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9558 (xstormy16_frame_chain_valid): Update.
9559 * vax-tdep.c (vax_saved_pc_after_call): Update.
9560 * v850-tdep.c (v850_frame_chain): Update.
9561 (v850_pop_frame): Update.
9562 (v850_init_extra_frame_info): Update.
9563 * sparc-tdep.c (setup_arbitrary_frame): Update.
9564 * ns32k-tdep.c (umax_frame_num_args): Update.
9565 * s390-tdep.c (s390_pop_frame_regular): Update.
9566 * mn10300-tdep.c (mn10300_frame_chain): Update.
9567 (mn10300_pop_frame_regular): Update.
9568 (mn10300_init_extra_frame_info): Update.
9569 * mips-tdep.c (mips_init_frame_pc_first): Update.
9570 (mips_frame_chain): Update.
9571 (mips_pop_frame): Update.
9572 * mcore-tdep.c (mcore_frame_chain): Update.
9573 (mcore_pop_frame): Update.
9574 (mcore_init_extra_frame_info): Update.
9575 * arch-utils.c (init_frame_pc_default): Update.
9576 * m68k-tdep.c (isi_frame_num_args): Update.
9577 (delta68_frame_num_args): Update.
9578 (news_frame_num_args): Update.
9579 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9580 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9581 (alpha_frame_chain): Update.
9582 (alpha_pop_frame): Update.
9583 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9584 (hppa_init_extra_frame_info): Update.
9585 (hppa_frame_chain): Update.
9586 (hppa_frame_chain_valid): Update.
9587 * cris-tdep.c (cris_init_extra_frame_info): Update.
9588 * avr-tdep.c (avr_init_extra_frame_info): Update.
9589 * arm-tdep.c (arm_frame_chain_valid): Update.
9590 (arm_init_extra_frame_info): Update.
9591 (arm_pop_frame): Update.
9592 * frame.c (frame_pc_unwind): Update.
9593 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9594 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9595 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9596 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9597 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9598 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9599
9600 2003-03-12 Andrew Cagney <cagney@redhat.com>
9601
9602 Eliminate the need for POP_FRAME.
9603 * frame.c (do_frame_unwind_register): New function.
9604 (frame_pop): When no POP_FRAME, pop the frame using register
9605 unwind and a scratch regcache.
9606 (frame_saved_regs_pop): Delete function.
9607 (trad_frame_unwinder): Update.
9608 * d10v-tdep.c (d10v_frame_pop): Delete function.
9609 (d10v_frame_unwind): Update.
9610 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9611 (sentinel_frame_unwinder): Update.
9612 * dummy-frame.c (dummy_frame_pop): Delete function.
9613 (dummy_frame_unwind): Update.
9614 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9615 (struct frame_unwind): Update.
9616
9617 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9618
9619 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9620 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9621 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9622 Do range checks on register number obtained from debugging info.
9623 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9624 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9625 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9626 mapping function.
9627 (do_fp_register_row): Fix typo which caused double type to be
9628 used when attempting to unpack a float.
9629
9630 2003-03-11 J. Brobecker <brobecker@gnat.com>
9631
9632 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9633
9634 2003-03-11 Andrew Cagney <cagney@redhat.com>
9635
9636 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9637 frame. Problem found by Corinna Vinschen.
9638
9639 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9640
9641 * doublest.c (floatformat_from_length): Accept also
9642 the real size of 'long double' type.
9643
9644 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9645
9646 From Klee Dienes <kdienes@apple.com>:
9647 * breakpoint.c (bpstat_copy): Copy the command lines as well
9648 as the old value, to match what is freed in bpstat_clear.
9649
9650 2003-03-10 David Carlton <carlton@math.stanford.edu>
9651
9652 * minsyms.c (add_minsym_to_hash_table): Replace
9653 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9654 (compare_minimal_symbols, compact_minimal_symbols)
9655 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9656 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9657 of DEPRECATED_SYMBOL_MATCHES_NAME.
9658 (lookup_minimal_symbol_solib_trampoline): Ditto.
9659
9660 2003-03-10 Andrew Cagney <cagney@redhat.com>
9661
9662 * regcache.h (regcache_cooked_read_ftype): Define.
9663 (regcache_save, regcache_restore): Add a cooked_read parameter.
9664 * regcache.c (regcache_save, regcache_restore): Update.
9665 (do_cooked_read): New function.
9666 (regcache_cpy): Pass do_cooked_read to regcache_save and
9667 regcache_restore.
9668
9669 2003-03-10 Andrew Cagney <cagney@redhat.com>
9670
9671 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9672 * gdbarch.h, gdbarch.c: Re-generate.
9673 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9674 * x86-64-tdep.h: Update.
9675 * x86-64-tdep.c (x86_64_init_abi): Update.
9676 * v850-tdep.c (v850_gdbarch_init): Update.
9677 * sparc-tdep.c (sparc_gdbarch_init): Update.
9678 * sh-tdep.c (sh_gdbarch_init): Update.
9679 * s390-tdep.c (s390_gdbarch_init): Update.
9680 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9681 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9682 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9683 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9684 * mips-tdep.c (mips_gdbarch_init): Update.
9685 * mcore-tdep.c (mcore_gdbarch_init): Update.
9686 * m68k-tdep.c (m68k_gdbarch_init): Update.
9687 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9688 * ia64-tdep.c (ia64_gdbarch_init): Update.
9689 * i386-tdep.c (i386_gdbarch_init): Update.
9690 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9691 * hppa-tdep.c (hppa_gdbarch_init): Update.
9692 * h8300-tdep.c (h8300_gdbarch_init): Update.
9693 * frv-tdep.c (frv_gdbarch_init): Update.
9694 * cris-tdep.c (cris_gdbarch_init): Update.
9695 * avr-tdep.c (avr_gdbarch_init): Update.
9696 * arm-tdep.c (arm_gdbarch_init): Update.
9697 * alpha-tdep.c (alpha_gdbarch_init): Update.
9698 * sh-tdep.c (sh_init_extra_frame_info): Update.
9699 (sh64_init_extra_frame_info): Update.
9700 * ns32knbsd-nat.c (frame_num_args): Update.
9701 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9702 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9703 (xstormy16_frame_chain_valid): Update.
9704 * vax-tdep.c (vax_saved_pc_after_call): Update.
9705 * v850-tdep.c (v850_frame_chain): Update.
9706 (v850_pop_frame): Update.
9707 (v850_init_extra_frame_info): Update.
9708 * sparc-tdep.c (setup_arbitrary_frame): Update.
9709 * ns32k-tdep.c (umax_frame_num_args): Update.
9710 * s390-tdep.c (s390_pop_frame_regular): Update.
9711 * mn10300-tdep.c (mn10300_frame_chain): Update.
9712 (mn10300_pop_frame_regular): Update.
9713 (mn10300_init_extra_frame_info): Update.
9714 * mips-tdep.c (mips_init_frame_pc_first): Update.
9715 (mips_frame_chain): Update.
9716 (mips_pop_frame): Update.
9717 * mcore-tdep.c (mcore_frame_chain): Update.
9718 (mcore_pop_frame): Update.
9719 (mcore_init_extra_frame_info): Update.
9720 * arch-utils.c (init_frame_pc_default): Update.
9721 * m68k-tdep.c (isi_frame_num_args): Update.
9722 (delta68_frame_num_args): Update.
9723 (news_frame_num_args): Update.
9724 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9725 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9726 (alpha_frame_chain): Update.
9727 (alpha_pop_frame): Update.
9728 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9729 (hppa_init_extra_frame_info): Update.
9730 (hppa_frame_chain): Update.
9731 (hppa_frame_chain_valid): Update.
9732 * cris-tdep.c (cris_init_extra_frame_info): Update.
9733 * avr-tdep.c (avr_init_extra_frame_info): Update.
9734 * arm-tdep.c (arm_frame_chain_valid): Update.
9735 (arm_init_extra_frame_info): Update.
9736 (arm_pop_frame): Update.
9737 * frame.c (frame_pc_unwind): Update.
9738 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9739 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9740 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9741 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9742 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9743 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9744
9745 2003-03-10 Andrew Cagney <cagney@redhat.com>
9746
9747 * gdbarch.sh (gdbarch_unwind_pc): New method.
9748 * gdbarch.h, gdbarch.c: Regenerate.
9749 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9750 but use read_pc and FRAME_SAVED_PC as fall backs.
9751 (frame_saved_regs_pc_unwind): Delete function.
9752 (trad_frame_unwinder): Update.
9753 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9754 (struct frame_unwind): Update.
9755 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9756 (dummy_frame_unwind): Update.
9757 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9758 (sentinel_frame_unwinder): Update.
9759 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9760 (d10v_frame_unwind): Update.
9761 (d10v_unwind_pc): New function.
9762 (d10v_gdbarch_init): Set unwind_pc.
9763
9764 2003-03-10 Andrew Cagney <cagney@redhat.com>
9765
9766 * gdbarch.h: Re-generate.
9767
9768 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9769 PC.
9770 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9771 the PC register.
9772
9773 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9774
9775 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9776
9777 2003-03-08 Andrew Cagney <cagney@redhat.com>
9778
9779 * cli-out.c: Update copyright.
9780 (cli_out_data): Define typedef. Use instead of ui_out_data.
9781
9782 2003-03-08 Andrew Cagney <cagney@redhat.com>
9783
9784 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9785 the result.
9786
9787 2003-03-07 Andrew Cagney <cagney@redhat.com>
9788
9789 * gdbarch.sh: Don't generate two macro definitions when an
9790 undefined macro taking no arguments.
9791 * gdbarch.h: Regenerate.
9792
9793 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9794
9795 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9796 (x86_64_unwind_dummy_id): New functions.
9797 (x86_64_init_abi): Register these two new functions.
9798
9799 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9800
9801 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9802 (x86_64_skip_prologue): Move prologue detection to
9803 separate function.
9804 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9805
9806 2003-03-05 Andrew Cagney <cagney@redhat.com>
9807
9808 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9809 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9810 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9811 to use unwind_dummy_id when a dummy frame.
9812 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9813 predicate.
9814 * gdbarch.h, gdbarch.c: Regneerate.
9815
9816 2003-03-05 Andrew Cagney <cagney@redhat.com>
9817
9818 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9819 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9820 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9821 values.
9822
9823 2003-03-05 Andrew Cagney <cagney@redhat.com>
9824
9825 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9826 (struct d10v_unwind_cache): Delete field "frameless". Replace
9827 "next_addr" with "sp_offset". Add "r11_offset".
9828 (d10v_frame_unwind_cache): Update.
9829 (prologue_find_regs): Update. When "mv r11, sp", save the
9830 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9831 RN was saved in r11_offset.
9832
9833 2003-03-05 Andrew Cagney <cagney@redhat.com>
9834
9835 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9836 cached PC value in the next frame.
9837
9838 2003-03-05 Andrew Cagney <cagney@redhat.com>
9839
9840 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9841 "id_unwind_cache" with "id".
9842 (frame_id_unwind): Delete declaration.
9843 * frame.c (frame_id_unwind): Delete function.
9844 (get_prev_frame): Call the frame id unwind method directly. Store
9845 the returned next frame's ID value in NEXT_FRAME. Note that there
9846 is a problem with the wrong unwind ID being called with the wrong
9847 unwind cache.
9848
9849 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9850
9851 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9852
9853 2003-03-05 James Ingham <jingham@apple.com>
9854 Daniel Jacobowitz <drow@mvista.com>
9855
9856 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9857 (auto_cp_abi): New variable.
9858 (current_cp_abi, num_cp_abis): Make static.
9859 (CP_ABI_MAX): Define.
9860 (cp_abis): Turn into an array.
9861 (value_virtual_fn_field): Fix formatting.
9862 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9863 takes a pointer.
9864 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9865 (list_cp_abis, _initialize_cp_abi): New functions.
9866 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9867 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9868 switch_to_cp_abi. Update prototype for register_cp_abi.
9869 * Makefile.in (cp-abi.o): Update dependencies.
9870 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9871 instead of switch_to_cp_abi.
9872 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9873 register_cp_abi.
9874 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9875 register_cp_abi.
9876 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9877
9878 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9879
9880 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9881 * dwarf2loc.c: Include "regcache.h".
9882 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9883 register_size.
9884 * Makefile.in (dwarf2loc.o): Update dependencies.
9885
9886 2003-03-04 Theodore A. Roth <troth@openavr.org>
9887
9888 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9889 number of io registers reported by remote target is not a multiple of
9890 step.
9891
9892 2003-03-04 David Carlton <carlton@math.stanford.edu>
9893
9894 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9895 (lookup_symbol_aux_psymtabs): Update call to
9896 lookup_partial_symbol.
9897 (lookup_transparent_type, find_main_psymtab)
9898 (make_symbol_overload_list): Ditto.
9899
9900 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9901
9902 * MAINTAINERS (Write after approval): Update my email address.
9903
9904 2003-03-03 Andrew Cagney <cagney@redhat.com>
9905
9906 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9907 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9908 predicate. Replace MAX_REGISTER_RAW_SIZE.
9909 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9910 MAX_REGISTER_VIRTUAL_SIZE.
9911 * regcache.c (legacy_max_register_raw_size): New function.
9912 (legacy_max_register_virtual_size): New function.
9913 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9914 (MAX_REGISTER_RAW_SIZE): Define.
9915 (legacy_max_register_raw_size): Declare.
9916 (legacy_max_register_virtual_size): Declare.
9917 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9918 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9919 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9920 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9921 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9922 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9923 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9924 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9925 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9926 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9927 * vax-tdep.c (vax_gdbarch_init): Update.
9928 * v850-tdep.c (v850_gdbarch_init): Update.
9929 * sparc-tdep.c (sparc_gdbarch_init): Update.
9930 * sh-tdep.c (sh_gdbarch_init): Update.
9931 * s390-tdep.c (s390_gdbarch_init): Update.
9932 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9933 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9934 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9935 * mips-tdep.c (mips_gdbarch_init): Update.
9936 * mcore-tdep.c (mcore_gdbarch_init): Update.
9937 * m68k-tdep.c (m68k_gdbarch_init): Update.
9938 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9939 * ia64-tdep.c (ia64_gdbarch_init): Update.
9940 * i386-tdep.c (i386_gdbarch_init): Update.
9941 * hppa-tdep.c (hppa_gdbarch_init): Update.
9942 * h8300-tdep.c (h8300_gdbarch_init): Update.
9943 * frv-tdep.c (frv_gdbarch_init): Update.
9944 * cris-tdep.c (cris_gdbarch_init): Update.
9945 * avr-tdep.c (avr_gdbarch_init): Update.
9946 * arm-tdep.c (arm_gdbarch_init): Update.
9947 * alpha-tdep.c (alpha_gdbarch_init): Update.
9948 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9949 max_register_raw_size or max_register_virtual_size.
9950
9951 2003-03-03 David Carlton <carlton@math.stanford.edu>
9952
9953 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9954 SYMBOL_MATCHES_NAME, add comment.
9955 (SYMBOL_MATCHES_NATURAL_NAME): New.
9956 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9957 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9958 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9959 * symtab.c (lookup_partial_symbol): Use
9960 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9961 unhelpful comment.
9962 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9963 SYMBOL_MATCHES_NAME.
9964 Fix for PR c++/33.
9965
9966 2003-03-03 David Carlton <carlton@math.stanford.edu>
9967
9968 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9969 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9970 by regexp matching against SYMBOL_NATURAL_NAME.
9971
9972 2003-03-03 David Carlton <carlton@math.stanford.edu>
9973
9974 * linespec.c (find_method): Extract code into collect_methods.
9975 (collect_methods): New.
9976
9977 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9978
9979 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9980 get_frame_base.
9981
9982 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9983 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9984
9985 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9986
9987 * arch-utils.c (generic_register_byte): Fix to use the loop index
9988 and not regnum when summing the size of all registers up to regnum.
9989
9990 2003-03-01 Andrew Cagney <cagney@redhat.com>
9991
9992 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9993 FRAME_INIT_SAVED_REGS.
9994 * gdbarch.h, gdbarch.c: Regenerate.
9995 * stack.c (frame_info): Update.
9996 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9997 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9998 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9999 * ns32k-tdep.c (ns32k_pop_frame): Update.
10000 * mips-tdep.c (mips_pop_frame): Update.
10001 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10002 * ia64-tdep.c (ia64_frame_chain): Update.
10003 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10004 (ia64_frameless_function_invocation): Update.
10005 (ia64_init_extra_frame_info): Update.
10006 (ia64_pop_frame_regular): Update.
10007 * frame.h (struct frame_info): Update comment.
10008 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10009 * frame.c (frame_saved_regs_register_unwind): Update.
10010 (frame_saved_regs_register_unwind): Update.
10011 (deprecated_generic_get_saved_register): Update.
10012 * cris-tdep.c: Update comment.
10013 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10014 Rename macro.
10015 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10016 * x86-64-tdep.c (x86_64_init_abi): Update.
10017 * vax-tdep.c (vax_gdbarch_init): Update.
10018 * v850-tdep.c (v850_gdbarch_init): Update.
10019 * sparc-tdep.c (sparc_gdbarch_init): Update.
10020 * sh-tdep.c (sh_gdbarch_init): Update.
10021 * s390-tdep.c (s390_gdbarch_init): Update.
10022 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10023 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10024 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10025 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10026 * mips-tdep.c (mips_gdbarch_init): Update.
10027 * mcore-tdep.c (mcore_gdbarch_init): Update.
10028 * m68k-tdep.c (m68k_gdbarch_init): Update.
10029 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10030 * ia64-tdep.c (ia64_gdbarch_init): Update.
10031 * i386-tdep.c (i386_gdbarch_init): Update.
10032 * frv-tdep.c (frv_gdbarch_init): Update.
10033 * avr-tdep.c (avr_gdbarch_init): Update.
10034 * arm-tdep.c (arm_gdbarch_init): Update.
10035 * alpha-tdep.c (alpha_gdbarch_init): Update.
10036
10037 2003-03-01 Andrew Cagney <cagney@redhat.com>
10038
10039 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10040 option enum and switch. When no windows, set the interpreter to
10041 INTERP_CONSOLE.
10042
10043 2003-03-01 Andrew Cagney <cagney@redhat.com>
10044
10045 * main.c (captured_main): Replace magic option characters with an
10046 enum.
10047
10048 2003-03-01 Andrew Cagney <cagney@redhat.com>
10049
10050 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10051 INIT_EXTRA_FRAME_INFO.
10052 * gdbarch.h, gdbarch.c: Regenerate.
10053 * arm-tdep.c: Update comments.
10054 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10055 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10056 * frame.h, avr-tdep.c: Ditto.
10057 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10058 (create_new_frame, legacy_get_prev_frame): Ditto.
10059 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10060 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10061 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10062 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10063 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10064 * v850-tdep.c (v850_gdbarch_init): Ditto.
10065 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10066 * sh-tdep.c (sh_gdbarch_init): Ditto.
10067 * s390-tdep.c (s390_gdbarch_init): Ditto.
10068 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10069 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10070 * mips-tdep.c (mips_gdbarch_init): Ditto.
10071 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10072 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10073 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10074 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10075 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10076 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10077 * frv-tdep.c (frv_gdbarch_init): Ditto.
10078 * cris-tdep.c (cris_gdbarch_init): Ditto.
10079 * avr-tdep.c (avr_gdbarch_init): Ditto.
10080 * arm-tdep.c (arm_gdbarch_init): Ditto.
10081 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10082 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10083
10084 2003-03-01 Andrew Cagney <cagney@redhat.com>
10085
10086 * gdbarch.sh (register_type): New function with predicate.
10087 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10088 * gdbarch.h, gdbarch.c: Re-generate.
10089 * arch-utils.c (generic_register_byte): Use generic_register_size.
10090 (generic_register_size): When available, use
10091 gdbarch_register_type.
10092 * regcache.c (init_regcache_descr): When available, initialize the
10093 register type array using gdbarch_register_type. If the
10094 architecture supplies gdbarch_register_type, do not use the legacy
10095 regcache layout.
10096 * d10v-tdep.c (d10v_register_type): Replace
10097 d10v_register_virtual_type.
10098 (d10v_gdbarch_init): Set register_type instead of
10099 register_virtual_type.
10100
10101 2003-03-01 Andrew Cagney <cagney@redhat.com>
10102
10103 * Makefile.in (ax-gdb.o): Update dependencies.
10104 * ax-gdb.c: Include "regcache.h".
10105 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10106 * findvar.c (value_of_register): Ditto.
10107 * infcmd.c (default_print_registers_info): Ditto.
10108
10109 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10110
10111 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10112 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10113
10114 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10115
10116 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10117 of STREQ.
10118
10119 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10120
10121 * Makefile.in (dwarf2loc.o): Update dependencies.
10122 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10123 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10124 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10125 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10126 (locexpr_tracepoint_var_ref): New function.
10127 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10128
10129 2003-02-28 Andrew Cagney <cagney@redhat.com>
10130
10131 * regcache.c (register_size): New function.
10132 * regcache.h (register_size): Declare
10133 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10134 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10135
10136 2003-02-28 David Carlton <carlton@math.stanford.edu>
10137
10138 * linespec.c (decode_compound): Extract code into find_method.
10139 (find_method): New.
10140
10141 2003-02-28 J. Brobecker <brobecker@gnat.com>
10142
10143 * Makefile.in: Add rules to build and link in observer.o.
10144
10145 2003-02-27 J. Brobecker <brobecker@gnat.com>
10146
10147 * observer.c: Minor comments edits.
10148
10149 2003-02-27 J. Brobecker <brobecker@gnat.com>
10150
10151 * observer.h, observer.c: New file.
10152
10153 2003-02-27 Andrew Cagney <cagney@redhat.com>
10154
10155 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10156
10157 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10158
10159 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10160 (M6812_OP_STS_EXT): Likewise.
10161 (m6811_prologue): Use the above to recognize prologue.
10162 (m6812_prologue): Likewise.
10163
10164 2003-02-27 David Carlton <carlton@math.stanford.edu>
10165
10166 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10167 SYMBOL_PRINT_NAME.
10168 (compare_psymbols): Ditto.
10169 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10170
10171 2003-02-27 Michael Snyder <msnyder@redhat.com>
10172
10173 * f-lang.c (build_fortran_types): New function.
10174 (_initialize_f_language): Gdbarch-register built-in fortran types.
10175 * doublest.c (extract_floating): Fix warning text.
10176
10177 2003-02-27 Andrew Cagney <cagney@redhat.com>
10178
10179 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10180 predicate. Replaces PUSH_DUMMY_FRAME.
10181 * gdbarch.h, gdbarch.c: Regnerate.
10182 * valops.c (hand_function_call): Update. Call
10183 generic_push_dummy_frame directly.
10184 * vax-tdep.c (vax_gdbarch_init): Update.
10185 * sparc-tdep.c (sparc_gdbarch_init): Update.
10186 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10187 * m68k-tdep.c (m68k_gdbarch_init): Update.
10188 * hppa-tdep.c (hppa_gdbarch_init): Update.
10189 * alpha-tdep.c (alpha_gdbarch_init): Update.
10190 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10191 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10192 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10193 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10194 push_dummy_frame to generic_push_dummy_frame.
10195 * v850-tdep.c (v850_gdbarch_init): Ditto.
10196 * sh-tdep.c (sh_gdbarch_init): Ditto.
10197 * s390-tdep.c (s390_gdbarch_init): Ditto.
10198 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10199 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10200 * mips-tdep.c (mips_gdbarch_init): Ditto.
10201 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10203 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10204 * i386-tdep.c (i386_gdbarch_init): Ditto.
10205 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10206 * frv-tdep.c (frv_gdbarch_init): Ditto.
10207 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10208 * cris-tdep.c (cris_gdbarch_init): Ditto.
10209 * avr-tdep.c (avr_gdbarch_init): Ditto.
10210 * arm-tdep.c (arm_gdbarch_init): Ditto.
10211
10212 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10213
10214 * mips-tdep.c (show_mips_abi): New function.
10215 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10216 command ``show mips abi''.
10217
10218 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10219
10220 From Elena Zannoni <ezannoni@redhat.com>
10221 * dbxread.c (process_one_symbol): Only record line 0 if one or
10222 more sline entries have been seen for the function.
10223
10224 2003-02-26 Michael Chastain <mec@shout.net>
10225
10226 * configure: Regenerate with autoconf 000227.
10227
10228 2003-02-26 Michael Chastain <mec@shout.net>
10229
10230 Close PR build/660.
10231 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10232 for old libc5/glibc.
10233 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10234
10235 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10236
10237 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10238 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10239
10240 2003-02-26 Michael Chastain <mec@shout.net>
10241
10242 * configure.in: New variable HAVE_UINTPTR_T.
10243 * configure, config.in: Regenerated.
10244
10245 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10246
10247 Fix PR build/1097.
10248 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10249
10250 2003-02-25 Andrew Cagney <cagney@redhat.com>
10251
10252 * frame.c (get_prev_frame): Add comment on check for
10253 inside_entry_func. Only check for inside_entry_file when not a
10254 dummy and not a sentinel. Check that the new frame is not inner
10255 to the old frame.
10256
10257 2003-02-25 Andrew Cagney <cagney@redhat.com>
10258
10259 * frame.c (frame_debug): New variable.
10260 (_initialize_frame): Add "set/show debug frame" command.
10261 (get_prev_frame): When frame_debug, print reason why unwind
10262 failed.
10263
10264 2003-02-25 Michael Chastain <mec@shout.net>
10265
10266 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10267 to avoid uintptr_t definition problems.
10268
10269 2003-02-25 David Carlton <carlton@math.stanford.edu>
10270
10271 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10272 (SYMBOL_LINKAGE_NAME): Ditto.
10273 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10274 SYMBOL_LINKAGE_NAME.
10275 (struct general_symbol_info): Expand comment.
10276 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10277 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10278 (SYMBOL_MATCHES_REGEXP): Ditto.
10279 * symtab.c (symbol_natural_name): New function.
10280 * objfiles.h: Replace all uses of SYMBOL_NAME by
10281 DEPRECATED_SYMBOL_NAME.
10282 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10283 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10284 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10285 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10286 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10287 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10288 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10289 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10290 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10291 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10292 * ada-exp.y: Ditto.
10293 * ada-exp.y: Update copyright.
10294 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10295 * cp-valprint.c: Ditto.
10296
10297 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10298
10299 * infptrace.c (detach): Do not flag error if ptrace detach fails
10300 and errno is set to ESRCH.
10301
10302 2003-02-24 Andrew Cagney <cagney@redhat.com>
10303
10304 * infptrace.c (udot_info): Change type of udot_off to long. Use
10305 paddr when printing udot_off's value.
10306
10307 2003-02-24 David Carlton <carlton@math.stanford.edu>
10308
10309 * symtab.c (make_symbol_overload_list): Only read in partial
10310 symtabs containing a matching partial symbol.
10311
10312 2003-02-24 David Carlton <carlton@math.stanford.edu>
10313
10314 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10315 do the comparison, not strcmp.
10316 * symfile.c (compare_psymbols): Ditto.
10317 * defs.h: Declare strcmp_iw_ordered.
10318 * utils.c (strcmp_iw_ordered): New function.
10319
10320 2003-02-24 Jim Blandy <jimb@redhat.com>
10321
10322 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10323 support, shared libs): Remove my name from here, to better reflect
10324 reality.
10325
10326 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10327
10328 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10329 (target_ops): Add to_have_continuable_watchpoint.
10330 * target.c (update_current_target): Add INHERIT line for
10331 to_have_continuable_watchpoint.
10332 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10333 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10334 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10335 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10336
10337 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10338
10339 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10340 maintainership.
10341
10342 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10343
10344 * solib.c (solib_open): Call target defined search function after
10345 failing with solib-search-path.
10346 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10347 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10348
10349 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10350
10351 * MAINTAINERS: Add myself to Write After section.
10352
10353 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10354
10355 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10356
10357 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10358
10359 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10360 (m68hc11_add_reggroups): New function.
10361 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10362 (m68hc11_gdbarch_init): Install the reggroups.
10363 (_initialize_m68hc11_tdep): Initialize them.
10364
10365 2003-02-21 James E Wilson <wilson@tuliptree.org>
10366
10367 * MAINTAINERS: Update my email address.
10368
10369 2003-02-21 David Carlton <carlton@math.stanford.edu>
10370
10371 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10372
10373 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10374
10375 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10376 * symtab.h: Add opaque declarations of struct axs_value and
10377 struct agent_expr.
10378 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10379 (struct location_funcs): New type.
10380 (struct symbol): Add "loc" to aux_value.
10381 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10382 * dwarf2read.c: Include "dwarf2expr.h".
10383 (dwarf2_symbol_mark_computed): New function.
10384 (read_func_scope): Use it.
10385 (var_decode_location): New function.
10386 (new_symbol): Use it.
10387 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10388
10389 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10390 (dwarf2expr_h, dwarf2loc_h): New variables.
10391 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10392 (dwarf2expr.o, dwarf2loc.o): New rules.
10393 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10394 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10395 LOC_COMPUTED_ARG.
10396 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10397 * m2-exp.y (yylex): Likewise.
10398 * printcmd.c (address_info, print_frame_args): Likewise.
10399 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10400 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10401 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10402 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10403 * symtab.c (lookup_block_symbol): Likewise.
10404
10405 2003-02-20 Adam Fedor <fedor@gnu.org>
10406
10407 * symtab.h: Remove objc_specific struct
10408 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10409 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10410 Have language_objc use cplus_specific struct.
10411
10412 2003-02-20 Tom Tromey <tromey@redhat.com>
10413
10414 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10415 TYPE_NAME, when printing a String value. PR java/1075.
10416
10417 2003-02-20 Adam Fedor <fedor@gnu.org>
10418
10419 * objc-lang.h (find_methods): Remove declaration.
10420 * objc-lang.c (find_methods): Make static.
10421
10422 2003-02-20 Christopher Faylor <cgf@redhat.com>
10423
10424 * win32-nat.c (get_image_name): Check return value from
10425 ReadProcessMemory.
10426 (child_xfer_memory): Ditto.
10427
10428 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10429
10430 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10431 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10432 '${exec_prefix}' (in addition to the expansion thereof) as
10433 relocatable.
10434 * configure: Rebuilt.
10435
10436 2003-02-20 David Carlton <carlton@math.stanford.edu>
10437
10438 * symtab.c (search_symbols): Revert the search_symbols part of my
10439 2002-12-23 patch. Add comment.
10440
10441 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10442
10443 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10444 * dbxread.c (elfstab_build_psymtabs): Don't call
10445 install_minimal_symbols.
10446 (stabsect_build_psymtabs): Likewise.
10447 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10448 earlier.
10449 * somread.c (som_symfile_read): Call install_minimal_symbols
10450 and do_cleanups earlier.
10451 * nlmread.c (nlm_symfile_read): Likewise.
10452 * mdebugread.c (elfmdebug_build_psymtabs): Call
10453 install_minimal_symbols and make appropriate cleanups.
10454
10455 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10456
10457 * solib.c (reload_shared_libraries): New function.
10458 (_initialize_solib): Add callbacks for ``set solib-search-path''
10459 and ``set solib-absolute-prefix''.
10460
10461 2003-02-20 David Carlton <carlton@math.stanford.edu>
10462
10463 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10464 expand comment.
10465 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10466 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10467 * ada-typeprint.c (ada_typedef_print): Ditto.
10468 * ax-gdb.c (gen_var_ref): Ditto.
10469 * breakpoint.c (print_one_breakpoint): Ditto.
10470 * buildsym.c (finish_block): Ditto.
10471 * c-valprint.c (c_val_print): Ditto.
10472 * expprint.c (print_subexp): Ditto.
10473 * findvar.c (locate_var_value): Ditto.
10474 * infcmd.c (jump_command): Ditto.
10475 * linespec.c (decode_line_2, decode_compound): Ditto.
10476 * maint.c (maintenance_translate_address): Ditto.
10477 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10478 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10479 Ditto.
10480 * p-valprint.c (pascal_val_print): Ditto.
10481 * stabsread.c (define_symbol): Ditto.
10482 * stack.c (print_frame, frame_info, print_block_frame_locals)
10483 (print_frame_arg_vars, return_command): Ditto.
10484 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10485 * symmisc.c (print_symbol): Ditto.
10486 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10487 (compare_search_syms, print_symbol_info, print_msymbol_info)
10488 (rbreak_command): Ditto.
10489 * tracepoint.c (tracepoints_info): Ditto.
10490 * typeprint.c (typedef_print): Ditto.
10491 * valops.c (value_of_variable, hand_function_call): Ditto.
10492 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10493 * ada-typeprint.c: Update Copyright.
10494 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10495 * tracepoint.c, cli/cli-cmds.c: Ditto.
10496
10497 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10498
10499 * frame.c (generic_unwind_get_saved_register): Make non-static.
10500 * frame.h (generic_unwind_get_saved_register): Declare.
10501 * mips-tdep.c (read_next_frame_reg): Fetch register from
10502 current regcache when frame is NULL.
10503 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10504 that must be NULL.
10505 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10506 instead of frame_register_unwind().
10507
10508 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10509
10510 * remote-sim.c (gdbsim_insert_breakpoint)
10511 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10512 code.
10513
10514 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10515
10516 * remote.c (_initialize_remote): Add commands "set/show remote
10517 hardware-watchpoint-limit" and "set/show remote
10518 hardware-breakpoint-limit".
10519 (remote_hw_watchpoint_limit): Initialize to -1.
10520 (remote_hw_breakpoint_limit): Ditto.
10521 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10522
10523 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10524
10525 * coff-pe-read.c: New file - support reading of minimal symbols from a
10526 portable executable using the export table.
10527 * coff-pe-read.h: New file.
10528 * coffread.c: Include coff-pe-read.h.
10529 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10530 debugging symbols found.
10531 * Makefile.in (SFILES): Add coff-pe-read.o.
10532 (coff_pe_read_h): Define.
10533 (COMMON_OBS): Add coff-pe-read.o.
10534 (coffread.o): Add coff_pe_read_h dependency.
10535 (coff-pe-read.o): New target.
10536
10537 2003-02-19 David Carlton <carlton@math.stanford.edu>
10538
10539 * Makefile.in (SFILES): Add block.c.
10540 (block_h): New.
10541 (COMMON_OBS): Add block.o.
10542 (block.o): New.
10543 (x86-64-tdep.o): Add $(block_h).
10544 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10545 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10546 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10547 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10548 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10549 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10550 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10551 * value.h: Add opaque declaration for struct block.
10552 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10553 * ada-lang.h: Ditto.
10554 * x86-64-tdep.c: #include "block.h"
10555 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10556 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10557 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10558 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10559 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10560 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10561 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10562 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10563 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10564 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10565 * symtab.c (block_function): Ditto.
10566 (contained_in): Ditto.
10567 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10568 block.h. Add opaque declaration for struct block.
10569 * symtab.h: Move block_function and contained_in declarations to
10570 block.h. Add opaque declarations for struct block, struct
10571 blockvector.
10572 (struct block): Move to block.h.
10573 (struct blockvector): Ditto.
10574 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10575 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10576 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10577 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10578 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10579 Ditto.
10580 * block.c: New file.
10581 * block.h: New file.
10582
10583 2003-02-19 Theodore A. Roth <troth@openavr.org>
10584
10585 * avr-tdep.c (avr_extract_return_value): Remove function.
10586 (avr_store_return_value): Remove function.
10587 (avr_extract_struct_value_address): Remove function.
10588 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10589
10590 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10591
10592 * rs6000-tdep.c: Include "gdb_assert.h".
10593 (registers_e500): Add "acc" and "spefscr".
10594 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10595 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10596 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10597 really is "r0".
10598 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10599
10600 2003-02-18 Keith Seitz <keiths@redhat.com>
10601
10602 * Makefile.in: Add gdbtk-interps.c.
10603
10604 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10605
10606 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10607 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10608
10609 2003-02-18 Andrew Cagney <cagney@redhat.com>
10610
10611 * symtab.h (struct objfile): Add opaque declaration.
10612
10613 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10614
10615 From Jim Ingham <jingham@apple.com>:
10616 * dbxread.c (process_one_symbol): Use last_function_start rather
10617 than function_start_offset to find the real beginning of the
10618 current function. The latter is just the text section offset on
10619 some systems, the former is always the real function start.
10620
10621 2003-02-17 Andrew Cagney <cagney@redhat.com>
10622
10623 * configure.in: Revert ${target} != ${host}.
10624
10625 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10626
10627 * configure.in (Makefile): Use the test ${target} != ${host},
10628 instead of the absence of the "nm.h" file, to determine of the
10629 configuration non-native.
10630 * configure: Regenerate.
10631
10632 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10633
10634 From Brian Ford <ford@vss.fsi.com>
10635
10636 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10637 conditionalize tui_active test.
10638 (lookup_cmd_1): Ditto.
10639
10640 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10641
10642 * configure.in: Add check for _etext.
10643 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10644 available.
10645 * config.in, configure: regenerated.
10646
10647 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10648
10649 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10650
10651 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10652
10653 * main.c (tui_version): Delete variable.
10654 (captured_main): When --tui, set interpreter_p to "tui" instead of
10655 enabling tui_version.
10656 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10657 tui_version.
10658 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10659 * cli/cli-cmds.c (disassemble_command): Ditto.
10660 * defs.h (tui_version): Delete declaration.
10661 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10662 (tui-interp.o): Add rules.
10663 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10664
10665 2003-02-14 Christopher Faylor <cgf@redhat.com>
10666
10667 * win32-nat.c (register_loaded_dll): Correctly set address range for
10668 just-loaded dll.
10669
10670 2003-02-12 Jason Molenda (jmolenda@apple.com)
10671
10672 * symmisc.c (print_objfile_statistics): Include information about
10673 the number of psymtabs and symtabs in each object file.
10674
10675 2003-02-13 Keith R Seitz <keiths@redhat.com>
10676
10677 * main.h (struct captured_main_args): Add interpreter_p.
10678 * main.c (captured_main): Initialize interpreter_p from context.
10679 * gdb.c (main): Set interpreter_p argument.
10680 * Makefile.in (gdb.o): Add dependency for interps.h.
10681
10682 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10683
10684 * event-top.c (cli_command_loop): Delete declaration.
10685 (_initialize_event_loop): Delete function setting event_loop_hook.
10686 * event-top.h (cli_command_loop): Declare. Update copyright.
10687 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10688 * interps.c (current_interp_command_loop): When event_loop_p, call
10689 cli_command_loop.
10690
10691 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10692
10693 * interps.h (interp_command_loop_ftype): Change return type to
10694 void.
10695
10696 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10697
10698 * x86-64-tdep.c (x86_64_extract_return_value)
10699 (x86_64_store_return_value): Use regcache instead of regbuf.
10700 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10701 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10702
10703 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10704
10705 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10706 * aclocal.m4: Regenerate.
10707 * configure: Regenerate.
10708
10709 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10710 TCL_LD_SEARCH_FLAGS.
10711
10712 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10713
10714 * dwarf2cfi.c: Reindented.
10715
10716 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10717
10718 * interps.c (clear_interpreter_hooks): Convert function definition
10719 to ISO C.
10720
10721 2003-02-07 David Carlton <carlton@math.stanford.edu>
10722
10723 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10724
10725 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10726
10727 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10728 (struct type): ...to here.
10729 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10730 field.
10731 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10732 (replace_type): Set length on all type variants for a given type.
10733
10734 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10735
10736 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10737 <sys/stat.h>.
10738 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10739
10740 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10741
10742 * Makefile.in (symm-nat.o): Update dependencies.
10743 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10744 (lynx-nat.o, ia64-linux-nat.): Ditto.
10745 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10746 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10747 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10748
10749 * Makefile.in (inflow_h): Define.
10750 (procfs.o, inflow.o, procfs.o): Update dependencies.
10751 * inftarg.c (child_stop): Delete extern declaration of
10752 inferior_process_group. Include "inflow.h".
10753 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10754 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10755 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10756 (our_process_group, inferior_process_group): Extern declarations.
10757
10758 * procfs.c: Include "gdb_assert.h".
10759
10760 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10761 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10762 * jv-typeprint.c (java_type_print_base): Ditto.
10763 * typeprint.c (typedef_print): Eliminate STREQ.
10764 * cli/cli-script.c (define_command, define_command): Ditto.
10765 * main.c (captured_main): Ditto.
10766 * values.c (lookup_internalvar): Ditto.
10767 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10768 within `if' conditional.
10769 * linespec.c (decode_line_2): Ditto.
10770 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10771 (bfd_openw_with_cleanup): Ditto.
10772
10773 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10774
10775 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10776 legacy_extract_return_value and store_return_value to
10777 legacy_return_value.
10778
10779 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10780
10781 * win32-nat.c (get_relocated_section_addrs): New function. Find
10782 section load addresses for symbol handling in relocated DLLs.
10783 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10784
10785 2003-02-05 Fred Fish <fnf@intrinsity.com>
10786
10787 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10788 '=' and '!='.
10789 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10790 with '&' and '=='.
10791 (angel_RDI_info): Ditto.
10792 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10793 with '&' and '!='.
10794 (threads_continue_all_with_signals): Ditto.
10795
10796 2003-02-05 Jim Ingham <jingham@apple.com>
10797 Keith Seitz <keiths@redhat.com>
10798 Elena Zannoni <ezannoni@redhat.com>
10799 Andrew Cagney <ac131313@redhat.com>
10800
10801 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10802 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10803 (SUBDIR_MI_OBS): Add "mi-interp.o".
10804 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10805 (SFILES): Add "interps.c".
10806 (COMMON_OBS): Add "interps.o".
10807 (interps_h, mi_main_h): Define.
10808 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10809 (mi-main.o, main.o, event-top.o): Update dependencies.
10810 * cli/cli-interp.c: New file.
10811 * interps.h, interps.c: New files.
10812 * top.c: (gdb_init): Don't install the default interpreter, handed
10813 by captured_main.
10814 * main.c: Include "interps.h".
10815 (interpreter_p): Note that it should malloc'ed.
10816 (captured_command_loop): Call current_interp_command_loop.
10817 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10818 xfree and xstrdup when updating interpreter_p. Install the
10819 default interpreter. Add hack to stop mi1's copyright notice
10820 being encoded.
10821 * event-top.h (gdb_setup_readline): Declare.
10822 (gdb_disable_readline): Declare.
10823 * event-top.c: Include "interps.h".
10824 (display_gdb_prompt): Call current_interp_display_prompt_p.
10825 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10826 gdb_stdlog, and gdb_stdtarg.
10827 (_initialize_event_loop): Don't call gdb_setup_readline.
10828 * cli-out.c (cli_out_set_stream): New function.
10829 * cli-out.h (cli_out_set_stream): Declare.
10830
10831 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10832
10833 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10834 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10835 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10836 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10837 config/i386/i386v42mp.mt: Removed.
10838
10839 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10840
10841 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10842 GDB_OSABI_SOLARIS.
10843
10844 2003-02-05 Michael Chastain <mec@shout.net>
10845
10846 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10847 2.12.1 and earlier versions.
10848
10849 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10850
10851 Remove orphaned hosts, targets and files.
10852 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10853 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10854 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10855 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10856 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10857 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10858 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10859 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10860 * config/sparc/tm-sp64sim.h: Delete.
10861 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10862 hosts.
10863 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10864 mips*-dec-mach3* targets.
10865
10866 2003-02-04 Michael Chastain <mec@shout.net>
10867
10868 * NEWS: Fix typo: sepcifying -> specifying.
10869
10870 2003-02-04 Michael Chastain <mec@shout.net>
10871
10872 * dwarfread.c: Add documentation on the state of dwarf-1,
10873 looking towards obsoletion.
10874
10875 2003-02-03 Michael Chastain <mec@shout.net>
10876
10877 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10878 gdb/testsuite/gdb.c++/pr-1023.exp.
10879
10880 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10881
10882 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10883 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10884
10885 * utils.c (init_page_info): Delete reference to MPW in comments.
10886 * main.c (captured_main): Delete #ifdef MPW.
10887
10888 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10889
10890 * NEWS: Note that the m32r-*-elf* is obsolete.
10891 * monitor.c (monitor_expect): Obsolete reference to m32r.
10892 * configure.tgt: Mark m32r-*-elf* as obsolete.
10893 * MAINTAINERS: Mark m32k as obsolete.
10894 * m32r-rom.c: Obsolete file.
10895 * config/m32r/m32r.mt: Obsolete file.
10896 * config/m32r/tm-m32r.h: Obsolete file.
10897 * m32r-stub.c: Obsolete file.
10898 * m32r-tdep.c: Obsolete file.
10899
10900 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10901
10902 * NEWS: Mention that the z8k-zilog-none is obsolete.
10903 * MAINTAINERS: Mark z8k as obsolete.
10904 * configure.tgt: Obsolete the z8k-*-coff* target.
10905 * config/z8k/z8k.mt: Obsolete file.
10906 * config/z8k/tm-z8k.h: Obsolete file.
10907 * z8k-tdep.c: Obsolete file.
10908
10909 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10910
10911 * NEWS: Mention that the mn10200-elf is obsolete.
10912 * configure.tgt: Obsolete mn10200-*-* target.
10913 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10914 mention that the mn10200 is obsolete.
10915 * breakpoint.h: Ditto.
10916 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10917 * config/mn10200/mn10200.mt: Obsolete file.
10918 * config/mn10200/tm-mn10200.h: Obsolete file.
10919 * mn10200-tdep.c: Obsolete file.
10920
10921 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10922
10923 * MAINTAINERS: Mark h8500 as obsolete.
10924 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10925 * findvar.c (value_from_register): Ditto.
10926 * h8500-tdep.c: Mark file as obsolete.
10927 * config/h8500/h8500.mt: Ditto.
10928 * config/h8500/tm-h8500.h: Ditto.
10929 * NEWS: Mention that h8500 is obsolete.
10930
10931 2003-02-04 David Carlton <carlton@math.stanford.edu>
10932
10933 * objfiles.c (allocate_objfile): Always set name. Add comment at
10934 start of function.
10935 * jv-lang.c (get_dynamics_objfile): Add comment.
10936
10937 2003-02-04 David Carlton <carlton@math.stanford.edu>
10938
10939 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10940 * printcmd.c (build_address_symbolic): Replace uses of
10941 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10942 SYMBOL_NAME, and asm_demangle.
10943 Update copyright.
10944
10945 2003-02-04 David Carlton <carlton@math.stanford.edu>
10946
10947 * linespec.c (decode_compound): Extract code into
10948 lookup_prefix_sym.
10949 (lookup_prefix_sym): New function.
10950
10951 2003-02-04 David Carlton <carlton@math.stanford.edu>
10952
10953 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10954 FLOAT_COERCION_BADNESS.
10955 * gdbtypes.c (rank_one_type): Replace all uses of
10956 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10957
10958 2003-02-04 Jim Blandy <jimb@redhat.com>
10959
10960 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10961 section, let dwarf_macinfo_section point to it, not
10962 dwarf_loc_section.
10963
10964 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10965
10966 Pointed out by Anton Blanchard <anton@samba.org>.
10967 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10968 (ppc_linux_at_sigtramp_return_path): Use it.
10969
10970 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10971
10972 * defs.h (streq): Add prototype.
10973 * utils.c (streq): New function.
10974
10975 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10976 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10977 * mdebugread.c (new_symbol): Likewise.
10978 * stabsread.c (define_symbol): Likewise.
10979 * coffread.c (process_coff_symbol): Likewise.
10980 * dwarfread.c (new_symbol): Likewise.
10981
10982 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10983 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10984 here.
10985 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10986 SYMBOL_INIT_DEMANGLED_NAME.
10987 * objfiles.c: Include "hashtab.h".
10988 (allocate_objfile): Call htab_set_functions_ex for the
10989 demangled_names_hash.
10990 (free_objfile): Call htab_delete for the demangled_names_hash.
10991 * objfiles.h (struct htab): Add declaration.
10992 (struct objfile): Add demangled_names_hash.
10993 * symfile.c: Include "hashtab.h".
10994 (reread_symbols): Call htab_delete for the demangled_names_hash.
10995 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10996 SYMBOL_NAME in the bcache.
10997 * symtab.c: Include "hashtab.h". Update comments.
10998 (create_demangled_names_hash, symbol_set_names): New functions.
10999 (symbol_find_demangled_name): New function, broken out from
11000 symbol_init_demangled_names.
11001 (symbol_init_demangled_names): Use it.
11002 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11003 (SYMBOL_SET_NAMES): New macro.
11004 (symbol_set_names): Add prototype.
11005
11006 2003-02-03 Jim Blandy <jimb@redhat.com>
11007
11008 Use a single, consistent representation for an empty minimal
11009 symbol table in an objfile.
11010 * objfiles.c (terminate_minimal_symbol_table): New function.
11011 (allocate_objfile): Call it.
11012 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11013 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11014 non-NULL.
11015 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11016 objfile has minimal symbols, compare minimal_symbol_count to zero,
11017 instead of comparing msymbols with NULL.
11018 * objfiles.c (have_minimal_symbols): Same.
11019 * solib-sunos.c (solib_add_common_symbols): Call
11020 terminate_minimal_symbol_table.
11021 * symfile.c (reread_symbols): Same.
11022
11023 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11024
11025 * s390-tdep.c (s390_address_class_type_flags)
11026 (s390_address_class_type_flags_to_name)
11027 (s390_address_class_name_to_type_flags): New functions.
11028 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11029 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11030
11031 2003-02-03 Michael Snyder <msnyder@redhat.com>
11032
11033 * arm-tdep.c: Fix spell-o in comment.
11034
11035 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11036
11037 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11038 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11039 error messages to contain BFD filename.
11040
11041 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11042
11043 Fix PR gdb/742 gdb/743 gdb/877
11044 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11045 (do_mixed_source_and_assembly): Use
11046 make_cleanup_ui_out_tuple_begin_end and
11047 make_cleanup_ui_out_tuple_begin_end.
11048 (do_mixed_source_and_assembly): Ditto.
11049 * thread.c (do_captured_list_thread_ids): Ditto.
11050 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11051 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11052 ui_out_tuple_end): Delete prototypes.
11053 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11054 ui_out_list_end, ui_out_tuple_end): Delete.
11055
11056 From Kevin Buettner <kevinb@redhat.com>:
11057 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11058 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11059 (do_cleanup_table_end): New functions.
11060 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11061 Use cleanups to invoke_ui_out_tuple_end().
11062 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11063 * cli/cli-setshow.c (cmd_show_list): Use
11064 make_cleanup_ui_out_tuple_begin_end.
11065
11066 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11067
11068 * frame.c (frame_unwind_register): New function.
11069 (frame_unwind_unsigned_register): Use.
11070 (frame_unwind_signed_register): Use.
11071 (frame_read_register): New function.
11072 * frame.h (frame_unwind_register): Declare.
11073 (frame_read_register): Declare.
11074
11075 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11076 and frame_unwind_register instead of read_memory, write_register
11077 and deprecated_write_register_bytes.
11078
11079 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11080
11081 * frame.h: Note that namelen can be negative.
11082 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11083 NAME's length.
11084
11085 * NEWS: Mention that the d10v's `regs' command is deprecated.
11086 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11087 (d10v_print_registers_info): New function.
11088 (show_regs): Call d10v_print_registers_info.
11089 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11090
11091 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11092
11093 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11094 lost in the previous patch.
11095
11096 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11097
11098 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11099 * stack.c (print_frame_info_base): Output complete FRAME tuple
11100 for synthesized frames.
11101
11102 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11103
11104 * mips-nat.c (zerobuf): Delete.
11105 (fetch_inferior_registers): Alloc local zerobuf.
11106 (fetch_core_registers): Alloc local zerobuf.
11107 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11108 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11109 * thread-db.c (thread_db_store_registers): Ditto.
11110 * sh-tdep.c (sh_do_register): Ditto.
11111 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11112 * remote-sim.c (gdbsim_store_register): Ditto.
11113 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11114 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11115 * monitor.c (monitor_supply_register): Ditto.
11116 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11117 * mips-nat.c (fetch_inferior_registers): Ditto.
11118 * m68klinux-nat.c (fetch_register): Ditto.
11119 * lynx-nat.c (fetch_inferior_registers): Ditto.
11120 (fetch_inferior_registers): Ditto.
11121 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11122 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11123 (hpux_thread_store_registers): Ditto.
11124 * hppah-nat.c (fetch_register): Ditto.
11125 * hppab-nat.c (fetch_register): Ditto.
11126 * hppa-tdep.c (pa_register_look_aside): Ditto.
11127 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11128 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11129
11130 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11131
11132 * gdbarch.sh: Explictly specify all method levels. When a
11133 variable with an empty level, provide a non-multi-arch default.
11134 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11135 * gdbarch.h: Re-generate.
11136 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11137 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11138
11139 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11140
11141 * defs.h (host_pointer_to_address): Delete declaration.
11142 (address_to_host_pointer): Delete declaration.
11143 * utils.c (host_pointer_to_address): Delete function.
11144 (address_to_host_pointer): Delete function.
11145 * procfs.c (procfs_address_to_host_pointer): New function.
11146 * procfs.c (proc_set_watchpoint): Use.
11147 (procfs_can_use_hw_breakpoint): Update comments.
11148 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11149 (som_solib_add): Use.
11150 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11151 * hppa-tdep.c (unwind_command): Use.
11152
11153 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11154
11155 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11156 strlen d_name.
11157
11158 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11159 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11160 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11161 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11162 (define_symbol): Update.
11163 * symfile.c (generic_load): Remove references to nindy.
11164 * symtab.c: Remove references to nindy.
11165
11166 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11167
11168 * infcmd.c (print_float_info): Delete code conditional on
11169 FLOAT_INFO.
11170 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11171 * config/m68k/nm-apollo68b.h: Ditto.
11172 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11173 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11174 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11175
11176 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11177
11178 * config/i386/tm-i386os9k.h: Removed.
11179
11180 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11181 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11182 they're identical to i[3456]86-*-sysv* now.
11183 * config/i386/i386v32.mh: Removed.
11184 * config/i386/xm-i386v32.h: Removed.
11185 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11186
11187 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11188
11189 * config/i386/i386dgux.mh: Removed.
11190 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11191
11192 * configure.in: Fix typo.
11193 * configure: Regenerated.
11194
11195 2003-01-31 David Carlton <carlton@math.stanford.edu>
11196
11197 * dwarf2read.c (dwarf2_locate_sections): Set
11198 dwarf_ranges_section.
11199
11200 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11201
11202 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11203 * utils.c: Update comments documenting legitimate uses of PTR.
11204
11205 * utils.c: Re-indent.
11206
11207 * config/djgpp/fnchange.lst: Delete nindy files.
11208 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11209 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11210 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11211 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11212 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11213 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11214 * Makefile.in (init.c): Remove nindy references.
11215 (saber_gdb): Delete rule.
11216 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11217 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11218 and a68v-nat.c.
11219 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11220 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11221 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11222 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11223 nindy-share/stop.h.
11224 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11225 * saber.suppress: Delete file.
11226
11227 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11228
11229 * dbxread.c (stabs_data): New static variable.
11230 (fill_symbuf): Support an in-memory buffer for stabs data.
11231 (stabs_seek): New function.
11232 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11233 (read_ofile_symtab): Use stabs_seek.
11234 (elfstab_build_psymtabs): Take an asection* instead of
11235 an offset and size. Relocate the stabs data if necessary.
11236 Save the section* for dbx_psymtab_to_symtab.
11237 * dwarf2read.c: Add section variables for each debug section.
11238 (dwarf2_locate_sections): Fill them in.
11239 (dwarf2_read_section): Take an asection* argument.
11240 Relocate the section contents if necessary.
11241 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11242 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11243 it to dwarf2_read_section.
11244 (dwarf2_build_frame_info): Update callers.
11245 * elfread.c (elf_symfile_read): Update call to
11246 elfstab_build_psymtabs.
11247 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11248 (DBX_STAB_SECTION): New macro.
11249 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11250 * symfile.c (symfile_dummy_outputs): New function.
11251 (symfile_relocate_debug_section): New function.
11252 * symfile.h (symfile_relocate_debug_section): Add prototype.
11253
11254 2003-01-31 Richard Henderson <rth@redhat.com>
11255
11256 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11257 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11258 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11259 * alpha-tdep.c (alpha_register_name): Add "unique".
11260 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11261 (ALPHA_UNIQUE_REGNUM): New.
11262 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11263
11264 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11265
11266 * README: Remove reference to Ericsson 1800 monitor.
11267 * Makefile.in (remote-es.o): Delete rule.
11268 (ALLDEPFILES): Delete remote-es.c.
11269 * remote-es.c: Delete file.
11270 * config/m68k/es1800.mt: Delete file.
11271 * config/djgpp/fnchange.lst: Update.
11272 * configure.tgt: Delete m68*-ericsson-* target.
11273
11274 2003-01-31 Adam Fedor <fedor@gnu.org>
11275
11276 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11277 Remove duplicate/shadowing variable of same name.
11278
11279 2003-01-30 Jim Blandy <jimb@redhat.com>
11280
11281 * symfile.c (find_separate_debug_file): Assert that the objfile's
11282 directory name we compute ends with a slash, and then assume that
11283 that's so everywhere we use it.
11284
11285 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11286
11287 * valops.c (value_assign): Flush frame cache after stores to memory
11288 also.
11289
11290 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11291
11292 * Makefile.in (mon960-rom.o): Delete rule.
11293 * mon960-rom.c: Delete file.
11294
11295 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11296
11297 * d10v-tdep.c: Include "frame-unwind.h".
11298 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11299 list.
11300 (next_addr, uses_frame): Delete.
11301 (struct d10v_unwind_cache): Define.
11302 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11303 Use info instead of next_addr and uses_frame globals.
11304 (d10v_frame_init_saved_regs): Delete function.
11305 (d10v_init_extra_frame_info): Delete function.
11306 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11307 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11308 init_frame_pc or frame_saved_pc.
11309 (d10v_pop_frame): Delete function.
11310 (do_d10v_pop_frame): Delete function.
11311 (d10v_frame_chain): Delete function.
11312 (d10v_frame_chain_valid): Delete function.
11313 (d10v_frame_pc_unwind): New function.
11314 (d10v_frame_id_unwind): New function.
11315 (saved_regs_unwinder): New function.
11316 (d10v_frame_register_unwind): New function.
11317 (d10v_frame_pop): New function.
11318 (d10v_frame_unwind): New variable.
11319 (d10v_frame_p): New function.
11320 (d10v_frame_saved_pc): Delete function.
11321 * Makefile.in (d10v-tdep.o): Update dependencies.
11322
11323 2003-01-30 J. Brobecker <brobecker@gnat.com>
11324
11325 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11326 causing some regressions due to a change in the default value
11327 for this macro.
11328
11329 2003-01-29 Richard Henderson <rth@redhat.com>
11330 Elena Zannoni <ezannoni@redhat.com>
11331 Daniel Jacobowitz <drow@mvista.com>
11332
11333 Fix PR gdb/961.
11334 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11335 variables.
11336 (RANGES_SECTION): New.
11337 (dwarf_ranges_buffer): New variable.
11338 (struct comp_unit_head): Add member "die".
11339 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11340 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11341 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11342 (dwarf2_locate_sections): Likewise.
11343 (dwarf2_build_psymtabs): Read .debug_ranges.
11344 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11345 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11346 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11347 Look for DW_AT_ranges and return the bounding box.
11348
11349 2003-01-29 Brian Ford <ford@vss.fsi.com>
11350
11351 * win32-nat.c (cygwin_pid): Removed as unused.
11352 (child_attach): Try fall back to Cygwin pid.
11353
11354 2003-01-29 Jim Blandy <jimb@redhat.com>
11355
11356 * objfiles.h (struct objfile): Doc fix.
11357
11358 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11359
11360 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11361 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11362 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11363 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11364 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11365 (FRAME_SAVED_PC): Change to a function with predicate.
11366 * gdbarch.h, gdbarch.c: Re-generate.
11367
11368 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11369
11370 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11371
11372 * complaints.c (complain): Delete function.
11373 * complaints.h (struct deprecated_complaint): Delete definition.
11374 (complain): Delete declaration.
11375
11376 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11377
11378 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11379 dummy frames.
11380
11381 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11382
11383 * sentinel-frame.h, sentinel-frame.c: New files.
11384 * Makefile.in (frame.o): Update dependencies.
11385 (SFILES): Add sentinel-frame.c.
11386 (sentinel_frame_h): Define.
11387 (COMMON_OBS): Add sentinel-frame.o.
11388 (sentinel-frame.o): Specify dependencies.
11389 * frame.c: Include "sentinel-frame.h".
11390 (frame_register_unwind): Rewrite assuming that there is always a a
11391 ->next frame.
11392 (frame_register, generic_unwind_get_saved_register): Ditto.
11393 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11394 (create_sentinel_frame, unwind_to_current_frame): New functions.
11395 (get_current_frame): Rewrite using create_sentinel_frame and
11396 unwind_to_current_frame. When possible, always create a frame.
11397 (create_new_frame): Set next to the sentinel frame.
11398 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11399 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11400 ID cache when necessary.
11401 (frame_saved_regs_id_unwind): Use frame_relative_level.
11402 (deprecated_generic_get_saved_register): Use frame_relative_level,
11403 get_frame_saved_regs, get_frame_pc, get_frame_base and
11404 get_next_frame.
11405 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11406 frame_register.
11407
11408 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11409
11410 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11411
11412 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11413
11414 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11415 (maintenance_set_profile_cmd): Use error () instead of warning ().
11416
11417 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11418
11419 * configure.in: Check that -pg works if using --enable-profiling.
11420 Check for monstartup and _mcleanup regardless of --enable-profiling.
11421 * maint.c: Check for monstartup and _mcleanup before using them.
11422 * config.in: Regenerated.
11423 * configure: Regenerated.
11424
11425 2003-01-24 Nick Clifton <nickc@redhat.com>
11426
11427 * Add sh2e support:
11428
11429 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11430
11431 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11432 (sh2e_show_regs): New.
11433 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11434 * config/sh/tm-sh.h: Added sh2e to comments.
11435
11436 2003-01-23 Jim Blandy <jimb@redhat.com>
11437
11438 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11439 symbols found)" message here; we haven't checked for a separate
11440 debug info file yet, so we don't know yet.
11441 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11442 we've looked everywhere. Also, there's no need to print a special
11443 message when we're loading the separate debug info file: the one
11444 symbol_file_add prints is fine.
11445
11446 2003-01-23 Alexander Larsson <alexl@redhat.com>
11447 Jim Blandy <jimb@redhat.com>
11448
11449 Add support for executables whose debug info has been separated
11450 out into a separate file, leaving only a link behind.
11451 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11452 and separate_debug_objfile_backlink.
11453 (put_objfile_before): New declaration.
11454 * symfile.c: #include "filenames.h".
11455 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11456 debug info in a separate file, read that, too. Save the addrs
11457 argument, so we can use it again to read the separated debug info;
11458 syms_from_objfile modifies the table we pass it.
11459 (reread_symbols): After re-reading an objfile, call
11460 reread_separate_symbols to refresh its separate debug info
11461 objfile, if it has one.
11462 (reread_separate_symbols, find_separate_debug_file,
11463 get_debug_link_info, separate_debug_file_exists): New functions.
11464 (debug_file_directory): New global var.
11465 (_initialize_symfile): Initialize debug_file_directory, and
11466 provide the new `set debug-file-directory' command to let the user
11467 change it.
11468 * objfiles.c (free_objfile): If this objfile has its debug info in
11469 a separate objfile, free that one too. If this is itself a
11470 separate debug info objfile, clear our parent's backlink.
11471 (put_objfile_before): New function.
11472 * utils.c (gnu_debuglink_crc32): New function.
11473 * defs.h (gnu_debuglink_crc32): New declaration.
11474 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11475 * configure.in: Handle --with-separate-debug-dir config option.
11476 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11477 * acconfig.h (DEBUGDIR): New macro.
11478 * configure, aclocal.m4, config.in: Regenerated.
11479
11480 2003-01-22 Jim Blandy <jimb@redhat.com>
11481
11482 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11483 like the old symbol_file_add, but taking new arguments: you can
11484 now pass in either a `struct section_addr_info' list to say where
11485 each section is loaded, or a `struct section_offsets' table. Pass
11486 these new arguments through to syms_from_objfile as appropriate.
11487 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11488 with the appropriate quiescent values for the new arguments.
11489
11490 * symfile.c: #include "gdb_assert.h".
11491 (syms_from_objfile): Add the ability to pass in a section offset
11492 table directly, as an alternative to the section_addr_info table.
11493 Document arguments better.
11494 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11495 * symfile.h (syms_from_objfile): Update declaration.
11496 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11497 syms_from_objfile.
11498 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11499
11500 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11501
11502 Original patch by Tom Tromey <tromey@cygnus.com> and
11503 Jason Molenda <jmolenda@apple.com>.
11504 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11505 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11506 * NEWS: Mention profiling.
11507 * configure.in (--enable-gdbtk): Fix typo.
11508 (--enable-profiling): New. Set PROFILE_CFLAGS.
11509 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11510 Fill in function.
11511 (profiling_state): New variable.
11512 (mcleanup_wrapper): New function.
11513 (_initialize_maint): Remove NOTYET, fix call to
11514 add_setshow_boolean_cmd for "maint set profile".
11515 * configure: Regenerated.
11516
11517 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11518
11519 * Makefile.in (install-gdbtk): Install PNG images too.
11520
11521 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11522
11523 * exec.c (text_start): Delete global variable.
11524 (exec_file_attach): Make text_start local to the function.
11525 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11526 * valops.c (hand_function_call): Delete code that handles
11527 BEFORE_TEXT_END and AFTER_TEXT_END.
11528 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11529 of CALL_DUMMY_LOCATION.
11530 * gdbarch.c: Regenerate.
11531 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11532 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11533 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11534 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11535 (text_end): Delete extern declaration.
11536
11537 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11538
11539 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11540 * blockframe.c (backtrace_below_main): Move to "frame.c".
11541 (frame_chain_valid): Delete check for backtrace_below_main.
11542 (_initialize_blockframe): Delete initialization, move ``set
11543 backtrace-below-main'' command to "frame.c".
11544 (do_flush_frames_sfunc): Delete function.
11545 * frame.c: Include "command.h" and "gdbcmd.h".
11546 (frame_type_from_pc): New function.
11547 (create_new_frame): Use frame_type_from_pc.
11548 (legacy_get_prev_frame): New function.
11549 (get_prev_frame): Rewrite. When an old style frame, call
11550 legacy_get_prev_frame. Otherwize, unwind the PC first.
11551 (_initialize_frame): Add ``set backtrace-below-main'' command.
11552 * Makefile.in (frame.o): Update dependencies.
11553
11554 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11555
11556 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11557 DEPRECATED_REGISTERS_INFO.
11558
11559 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11560
11561 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11562 Maintainers'. Update `Various Maintainers'.
11563
11564 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11565
11566 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11567 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11568 Suppress actual parameters when `-'.
11569 * gdbarch.h, gdbarch.c: Regenerate.
11570
11571 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11572
11573 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11574 code handling dummy frames.
11575
11576 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11577
11578 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11579 (struct frame_unwind): Add field pop.
11580 * frame.h (frame_pop): Declare.
11581 * frame.c (frame_saved_regs_pop): New function.
11582 (trad_frame_unwinder): Add frame_saved_regs_pop.
11583 (frame_pop): New function.
11584 * dummy-frame.c (dummy_frame_pop): New function.
11585 (discard_innermost_dummy): New function.
11586 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11587 (dummy_frame_unwind): Add dummy_frame_pop.
11588 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11589 * valops.c (hand_function_call): Ditto.
11590 * stack.c (return_command): Ditto.
11591
11592 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11593
11594 * cris-tdep.c: Fix function declaration indentation.
11595 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11596 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11597 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11598 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11599 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11600 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11601
11602 2003-01-18 Michael Chastain <mec@shout.net>
11603
11604 * README (Unpacking and Installation -- quick overview):
11605 Warn against ".../gdb-5.3/gdb/configure".
11606
11607 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11608
11609 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11610 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11611 (struct frame_unwind): Declare opaque.
11612 (dummy_frame_p): Declare function.
11613 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11614 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11615 * dummy-frame.c: Include "frame-unwind.h".
11616 (dummy_frame_p): New function.
11617 (dummy_frame_unwind): New variable.
11618 * frame.c: Include "frame-unwind.h".
11619 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11620 to use the new unwind field.
11621 (set_unwind_by_pc): Delete function.
11622 (create_new_frame, get_prev_frame): Set unwind field using
11623 frame_unwind_find_by_pc.
11624 (trad_frame_unwind, trad_frame_unwinder): New variables.
11625 * frame.h (trad_frame_unwind): Declare variable.
11626 (frame_id_unwind_ftype): Delete declaration.
11627 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11628 (struct frame_unwind): Declare opaque.
11629 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11630 register_unwind with a single unwind pointer.
11631 * frame-unwind.h, frame-unwind.c: New files.
11632 * Makefile.in (SFILES): Add frame-unwind.c.
11633 (frame_unwind_h): Define.
11634 (COMMON_OBS): Add frame-unwind.o.
11635 (frame-unwind.o): Specify dependencies.
11636 (frame.o, dummy-frame.o): Update dependencies.
11637
11638 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11639
11640 * ada-valprint.c: Eliminate PTR.
11641 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11642 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11643 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11644 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11645 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11646 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11647 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11648
11649 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11650
11651 * main.c (captured_main): Don't use PTR.
11652 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11653 * gdbtypes.c (lookup_primitive_typename): Ditto.
11654 (lookup_struct_elt_type): Ditto.
11655 * f-valprint.c (info_common_command): Ditto.
11656 (list_all_visible_commons): Ditto.
11657 * jv-typeprint.c (java_type_print_base): Ditto.
11658
11659 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11660 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11661 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11662 i386-interix-nat.c and i386-interix-tdep.c. Rename
11663 m68klinux-nat.c and m68klinux-tdep.c. Rename
11664 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11665 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11666 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11667 * main.c (captured_main): Use xfree, not free.
11668
11669 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11670
11671 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11672 ID back using a parameter.
11673 * frame.c (frame_id_unwind): Update call.
11674 (frame_saved_regs_id_unwind): Update.
11675 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11676 * dummy-frame.h (struct frame_id): Add opaque declaration.
11677 (dummy_frame_id_unwind): Update declaration.
11678
11679 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11680
11681 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11682
11683 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11684
11685 * MAINTAINERS (Stephen P. Smith): Updated email address.
11686
11687 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11688
11689 Fix PR gdb/898
11690 * breakpoint.c (until_break_command): Add new argument. Use it to
11691 decide whether to stop only at the current frame or not.
11692 * breakpoint.h (until_break_command): Update prototype.
11693 * infcmd.c (until_command): Add new argument to until_break_command
11694 call.
11695 (advance_command): New function.
11696 (_initialize_infcmd): Update help string for 'until' command.
11697 Add new 'advance' command.
11698
11699 2003-01-14 David Carlton <carlton@math.stanford.edu>
11700
11701 * linespec.c (decode_line_1): Normalize comments.
11702 (set_flags): Ditto.
11703 (locate_first_half): Ditto.
11704 (decode_compound): Ditto.
11705 (symtab_from_filename): Ditto.
11706 (decode_all_digits): Ditto.
11707 (decode_dollar): Ditto.
11708 (find_methods): Ditto.
11709 (find_toplevel_char): Ditto.
11710
11711 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11712
11713 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11714 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11715 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11716 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11717 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11718 * language.c, language.h, m32r-tdep.c: Update copyright.
11719 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11720 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11721 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11722 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11723 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11724 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11725
11726 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11727
11728 * stabsread.h (process_later, resolve_cfront_continuation):
11729 Obsolete.
11730 Update copyright years.
11731 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11732 Update copyright year.
11733 * dbxread.c(struct cont_elem): Obsolete.
11734 (process_later, process_now): Obsolete functions.
11735 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11736 Update copyright year.
11737 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11738 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11739 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11740 (parse_partial_symbols): Obsolete cfront support.
11741 * stabsread.c
11742 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11743 macros.
11744 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11745 read_cfront_baseclasses, read_cfront_member_functions,
11746 resolve_cfront_continuation,read_cfront_static_fields,
11747 copy_cfront_struct_fields): Obsolete functions.
11748 (define_symbol, read_one_struct_field): Obsolete cfront support.
11749 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11750 Update Copyright year.
11751
11752 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11753
11754 * stack.c (print_frame_info, print_stack_frame_base_stub,
11755 print_stack_frame_base, show_and_print_stack_frame_stub,
11756 show_and_print_stack_frame, print_only_stack_frame_stub,
11757 print_only_stack_frame): Delete functions.
11758 (print_stack_frame_stub): Call print_frame_info instead of
11759 print_frame_info_base.
11760 (print_frame_info_base): Rename to print_frame_info.
11761 (backtrace_command_1): Call print_frame_info, instead of
11762 print_frame_info_base.
11763 (current_frame_command): Call print_stack_frame, instead of
11764 print_only_stack_frame.
11765 (frame_command): Call print_stack_frame, instead of
11766 show_and_print_stack_frame.
11767 (up_command): Ditto.
11768 (down_command): Ditto.
11769 * frame.h (print_only_stack_frame): Delete prototype.
11770 * infrun.c (normal_stop): Call print_stack_frame, instead of
11771 show_and_print_stack_frame.
11772 * thread.c (info_threads_command): Call print_stack_frame, instead
11773 of print_only_stack_frame.
11774
11775 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11776
11777 * README (Graphical interface to GDB): Update URL. Point at
11778 gdb/links/.
11779
11780 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11781 version match.
11782
11783 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11784
11785 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11786 lines.
11787
11788 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11789
11790 * thread-db.c (attach_thread): Prototype.
11791 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11792 thread information (ti), and valid flags (th_valid, ti_valid).
11793 (attach_thread): Move target_pid_to_str call to after the thread
11794 is added to GDB's list. Initialize the cache.
11795 (thread_get_info_callback, thread_db_map_id2thr)
11796 (thread_db_get_info): New functions.
11797 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11798 (thread_db_store_registers, thread_db_thread_alive)
11799 (thread_db_get_thread_local_address): Use them.
11800 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11801 of calling error() for threads in unknown state.
11802
11803 (clear_lwpid_callback): New function.
11804 (thread_db_resume): Use it to clear the cache.
11805
11806 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11807
11808 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11809 (resume_callback): Remove dead code.
11810
11811 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11812
11813 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11814 predicate.
11815 * gdbarch.h, gdbarch.c: Regenerate.
11816 * stack.c (frame_info): Only initialize the saved registers when
11817 FRAME_INIT_SAVED_REGS_P.
11818 * frame.c (frame_saved_regs_register_unwind): Assert
11819 FRAME_INIT_SAVED_REGS_P.
11820 (deprecated_generic_get_saved_register): Ditto.
11821
11822 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11823
11824 * source.c (openp): Squelch warning about "filename".
11825
11826 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11827
11828 * source.c (openp): If the file does not exist don't necessarily
11829 search the path.
11830
11831 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11832
11833 Fix PR gdb/872.
11834 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11835 (integer_types_same_name_p): New function.
11836 (rank_one_type): Use it.
11837 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11838
11839 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11840
11841 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11842 variables.
11843 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11844 * configure.in: Add --with-sysroot.
11845 * configure: Regenerated.
11846 * main.c (gdb_sysroot): New variable.
11847 (captured_main): Initialize gdb_sysroot.
11848 * defs.h (gdb_sysroot): New extern declaration.
11849 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11850
11851 2003-01-12 Michael Chastain <mec@shout.net>
11852
11853 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11854
11855 2003-01-12 Michael Chastain <mec@shout.net>
11856
11857 * top.c (print_gdb_version): Bump copyright year to 2003.
11858
11859 2003-01-12 David Carlton <carlton@bactrian.org>
11860
11861 * linespec.c (symtab_from_filename): Rename variable 's' to
11862 'file_symtab'.
11863
11864 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11865
11866 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11867 dummy frame.
11868 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11869
11870 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11871
11872 * d10v-tdep.c: Include "gdb_assert.h".
11873 (d10v_store_return_value): Rewrite to match current interface.
11874 (d10v_extract_struct_value_address): Ditto.
11875 (d10v_extract_return_value): Ditto.
11876 (d10v_gdbarch_init): Set store_restore_value,
11877 extract_struct_value_address and extract_return_value.
11878
11879 2003-01-12 J. Brobecker <brobecker@gnat.com>
11880
11881 * hpread.c (set_namestring): New procedure replacing the
11882 SET_NAMESTRING macro.
11883 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11884 by calls to set_namestring.
11885
11886 2003-01-11 J. Brobecker <brobecker@gnat.com>
11887
11888 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11889 a compilation warning.
11890 (hpread_process_one_debug_symbol): Likewise.
11891
11892 2003-01-10 David Carlton <carlton@math.stanford.edu>
11893
11894 * linespec.c (decode_line_1): Rename variable 's' to
11895 'file_symtab'.
11896 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11897 (decode_dollar): Ditto.
11898 (decode_variable): Ditto.
11899 (symbol_found): Ditto.
11900
11901 2003-01-09 Michael Chastain <mec@shout.net>
11902
11903 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11904
11905 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11906
11907 * win32-nat.c (set_process_privilege): New function.
11908 (child_attach): Call set_process_privilege() to enable the
11909 SE_DEBUG_NAME user privilege if available in process token.
11910
11911 2003-01-10 J. Brobecker <brobecker@gnat.com>
11912
11913 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11914 compilation error in the previous revision.
11915
11916 2003-01-09 David Carlton <carlton@math.stanford.edu>
11917
11918 * linespec.c: Update copyright.
11919
11920 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11921
11922 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11923 than inferior_ptid.
11924 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11925
11926 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11927
11928 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11929 Update comments.
11930 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11931 (frame_saved_regs_zalloc): Update.
11932 (frame_saved_regs_register_unwind): Update.
11933 (create_new_frame): Update.
11934 (get_prev_frame): Update.
11935 (frame_extra_info_zalloc): Update.
11936 (deprecated_get_frame_saved_regs): Update.
11937 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11938 * cris-tdep.c: Update comment.
11939
11940 * somsolib.h: Fix function indentation.
11941 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11942 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11943 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11944 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11945 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11946
11947 * infrun.c (follow_fork): Use ISO C definition.
11948 * expprint.c (print_subexp): Use xfree instead of free.
11949 * charset.c: Include "gdb_string.h" instead of <string.h>.
11950 (register_iconv_charsets): Use ISO C definition.
11951 (host_charset, target_charset): Ditto.
11952 * Makefile.in (charset.o): Update dependencies.
11953 (mi-cmd-env.o): Update dependencies.
11954
11955 2003-01-08 Andrew Cagney <cagney@redhat.com>
11956
11957 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11958 get_frame_base.
11959
11960 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11961
11962 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11963 build directories. Save edited gdb output in Mbuild.log. If a
11964 build fails, remove any final GDB executable.
11965
11966 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11967
11968 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11969 replacing hex constants with function names and stripping leading
11970 file name directory prefixes.
11971
11972 2003-01-08 Andrew Cagney <cagney@redhat.com>
11973
11974 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11975 get_frame_base.
11976
11977 2003-01-08 David Carlton <carlton@math.stanford.edu>
11978
11979 * linespec.c (decode_line_1): Move code into decode_variable.
11980 (decode_variable): New function.
11981
11982 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11983
11984 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11985
11986 2003-01-08 Andrew Cagney <cagney@redhat.com>
11987
11988 * cris-tdep.c (cris_frame_init_saved_regs): Use
11989 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11990 saved_regs buffer.
11991 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11992 (sh64_nofp_frame_init_saved_regs): Ditto.
11993 (sh_fp_frame_init_saved_regs): Ditto.
11994 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11995 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11996 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11997 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11998
11999 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12000
12001 * minsyms.c (lookup_minimal_symbol): Update comment.
12002 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12003 (lookup_minimal_symbol_solib_trampoline): Likewise.
12004
12005 2003-01-08 Andrew Cagney <cagney@redhat.com>
12006
12007 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12008 frame_relative_level.
12009
12010 * alpha-tdep.c: Use get_frame_extra_info.
12011 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12012 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12013 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12014 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12015
12016 * alpha-tdep.c: Use get_next_frame.
12017 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12018 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12019 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12020 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12021 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12022 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12023 * xstormy16-tdep.c: Ditto.
12024
12025 2003-01-07 Andrew Cagney <cagney@redhat.com>
12026
12027 * alpha-tdep.c: Use get_frame_base.
12028 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12029 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12030 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12031 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12032 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12033 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12034 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12035 * config/sparc/tm-sparc.h: Ditto.
12036
12037 2003-01-07 Andrew Cagney <cagney@redhat.com>
12038
12039 * frame.c (deprecated_get_frame_context): New function.
12040 (deprecated_set_frame_context): New function.
12041 * frame.h (deprecated_get_frame_context): Declare.
12042 (deprecated_set_frame_context): Declare.
12043 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12044 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12045
12046 2003-01-07 Andrew Cagney <cagney@redhat.com>
12047
12048 * frame.c (deprecated_set_frame_next_hack): New function.
12049 (deprecated_set_frame_prev_hack): New function.
12050 * frame.h (deprecated_set_frame_next_hack): Declare.
12051 (deprecated_set_frame_prev_hack): Declare.
12052 * mcore-tdep.c (analyze_dummy_frame): Use
12053 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12054 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12055
12056 2003-01-07 David Carlton <carlton@math.stanford.edu>
12057
12058 * linespec.c (decode_line_1): Move code into decode_dollar.
12059 (decode_dollar): New function.
12060
12061 2003-01-07 Andrew Cagney <cagney@redhat.com>
12062
12063 * arm-tdep.c (arm_init_extra_frame_info): Use
12064 deprecated_update_frame_base_hack.
12065 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12066 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12067 (fix_frame_pointer): Ditto.
12068 (mn10300_analyze_prologue): Ditto.
12069
12070 2003-01-07 Andrew Cagney <cagney@redhat.com>
12071
12072 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12073 extra_info using frame_extra_info_zalloc.
12074 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12075 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12076 (sh64_init_extra_frame_info): Ditto.
12077 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12078 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12079 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12080 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12081 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12082 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12083 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12084 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12085 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12086 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12087 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12088 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12089
12090 * mn10300-tdep.c (analyze_dummy_frame): Use
12091 deprecated_set_frame_extra_info_hack.
12092 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12093
12094 2003-01-07 J. Brobecker <brobecker@gnat.com>
12095
12096 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12097 class is not scText. These do not define "real" procedures.
12098 (parse_partial_symbols): Likewise.
12099
12100 2003-01-06 Michael Snyder <msnyder@redhat.com>
12101
12102 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12103
12104 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12105
12106 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12107 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12108 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12109 deprecated_frame_xmalloc_with_cleanup.
12110 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12111 deprecated_frame_xmalloc.
12112 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12113 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12114
12115 2003-01-06 Andrew Cagney <cagney@redhat.com>
12116
12117 * x86-64-linux-tdep.c: Include "osabi.h".
12118 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12119
12120 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12121
12122 2003-01-06 Andrew Cagney <cagney@redhat.com>
12123
12124 * MAINTAINERS (Target Instruction Set Architectures): Update
12125 arm-elf. Can be built with -Werror, has been multiarched.
12126
12127 * value.h (unpack_long): Make buffer parameter constant.
12128 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12129 * scm-lang.h (scm_parse): Ditto.
12130 * defs.h (extract_typed_address, extract_address): Ditto.
12131 (extract_long_unsigned_integer): Ditto.
12132 * inferior.h (unsigned_pointer_to_address): Ditto.
12133 (signed_pointer_to_address): Ditto.
12134 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12135 * gdbarch.h, gdbarch.c: Regenerate.
12136 * findvar.c (extract_long_unsigned_integer): Update.
12137 (extract_address): Update.
12138 (extract_typed_address): Update.
12139 (unsigned_pointer_to_address): Update.
12140 * values.c (unpack_long): Update.
12141 (unpack_double): Update.
12142 (unpack_pointer): Update.
12143 (unpack_field_as_long): Update.
12144 * d10v-tdep.c (d10v_pointer_to_address): Update.
12145 * avr-tdep.c (avr_pointer_to_address): Update.
12146 * scm-lang.c (scm_unpack): Update.
12147 * findvar.c (signed_pointer_to_address): Update.
12148
12149 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12150
12151 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12152 since it is in i386-tdep.c.
12153
12154 2003-01-06 J. Brobecker <brobecker@gnat.com>
12155
12156 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12157 failure introduced in the previous change.
12158
12159 2003-01-05 Michael Chastain <mec@shout.net>
12160
12161 * README: Remove references to deleted remote-*.c files:
12162 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12163 remote-nrom.c, remote-os9k.c, remote-udi.c.
12164
12165 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12166
12167 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12168 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12169 i386_get_longjmp_target.
12170
12171 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12172
12173 * arm-tdep.c (prologue_cache): Change to a pointer.
12174 (_initialize_arm_tdep): Allocate prologue_cache.
12175 (check_prologue_cache): Update.
12176 (save_prologue_cache): Update.
12177 (arm_gdbarch_init): Update.
12178
12179 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12180
12181 * stabsread.c (update_method_name_from_physname): Call complaint()
12182 instead of error.
12183
12184 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12185
12186 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12187 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12188 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12189
12190 * blockframe.c: Include "gdbcmd.h" and "command.h".
12191 (backtrace_below_main): New variable.
12192 (file_frame_chain_valid, func_frame_chain_valid)
12193 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12194 (generic_func_frame_chain_valid): Remove functions.
12195 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12196 (_initialize_blockframe): New function.
12197 * Makefile.in (blockframe.o): Update dependencies.
12198 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12199 comment. Call frame_chain_valid ().
12200 * frame.h: Remove old prototypes. Add prototype for
12201 frame_chain_valid and update comments to match.
12202 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12203 Remove old comment.
12204 * gdbarch.h: Regenerated.
12205 * gdbarch.c: Regenerated.
12206
12207 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12208 set_gdbarch_frame_chain_valid.
12209 * avr-tdep.c (avr_gdbarch_init): Likewise.
12210 * cris-tdep.c (cris_gdbarch_init): Likewise.
12211 * frv-tdep.c (frv_gdbarch_init): Likewise.
12212 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12213 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12214 (i386_nw_init_abi): Likewise.
12215 (i386_gdbarch_init): Likewise.
12216 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12217 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12218 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12219 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12220 * mips-tdep.c (mips_gdbarch_init): Likewise.
12221 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12222 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12223 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12224 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12225 * s390-tdep.c (s390_gdbarch_init): Likewise.
12226 * sh-tdep.c (sh_gdbarch_init): Likewise.
12227 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12228 * v850-tdep.c (v850_gdbarch_init): Likewise.
12229 * vax-tdep.c (vax_gdbarch_init): Likewise.
12230 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12231
12232 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12233 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12234 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12235 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12236 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12237 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12238 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12239 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12240
12241 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12242
12243 * Makefile.in (acconfig_h): Remove incorrect macro.
12244 (config_h): Define.
12245 (osabi.o): Update dependencies.
12246 * configure.tgt: Set gdb_osabi based on target triplet.
12247 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12248 * configure: Regenerated.
12249 * config.in: Regenerated.
12250 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12251 (GDB_OSABI_DEFAULT): Define if not already defined.
12252 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12253 (set_osabi_string): New variables.
12254 (gdbarch_register_osabi): Add new OS ABI to
12255 gdb_osabi_available_names.
12256 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12257 (set_osabi, show_osabi): New functions.
12258 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12259
12260 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12261
12262 * arch-utils.c (gdbarch_info_init): Set osabi to
12263 GDB_OSABI_UNINITIALIZED.
12264 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12265 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12266 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12267 * gdbarch.c: Regenerated.
12268 * gdbarch.h: Regenerated.
12269 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12270 there's no BFD.
12271 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12272 * osabi.h (enum gdb_osabi): Move to defs.h.
12273 (gdbarch_init_osabi): Update prototype.
12274 * defs.h (enum gdb_osabi): Moved here.
12275 * Makefile.in: Update dependencies.
12276
12277 * alpha-tdep.h: Don't include "osabi.h".
12278 (struct gdbarch_tdep): Remove osabi member.
12279 * alpha-tdep.c: Include "osabi.h".
12280 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12281 iterate over arches. Update call to gdbarch_init_osabi.
12282 (alpha_dump_tdep): Don't dump osabi.
12283 * alpha-linux-tdep.c: Include "osabi.h".
12284 * alpha-osf1-tdep.c: Include "osabi.h".
12285 * alphafbsd-tdep.c: Include "osabi.h".
12286 * alphanbsd-tdep.c: Include "osabi.h".
12287
12288 * arm-tdep.h: Don't include "osabi.h".
12289 (struct gdbarch_tdep): Remove osabi member.
12290 * arm-tdep.c: Include "osabi.h".
12291 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12292 iterate over arches. Update call to gdbarch_init_osabi.
12293 (arm_dump_tdep): Don't dump osabi.
12294 * arm-linux-tdep.c: Include "osabi.h".
12295 * armnbsd-tdep.c: Include "osabi.h".
12296
12297 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12298 Update call to gdbarch_init_osabi.
12299
12300 * i386-tdep.h: Don't include "osabi.h".
12301 (struct gdbarch_tdep): Remove osabi member.
12302 * i386-tdep.c: Include "osabi.h".
12303 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12304 iterate over arches. Update call to gdbarch_init_osabi.
12305 (i386_dump_tdep): Don't dump osabi.
12306 * i386-linux-tdep.c: Include "osabi.h".
12307 * i386-sol2-tdep.c: Include "osabi.h".
12308 * i386bsd-tdep.c: Include "osabi.h".
12309 * i386gnu-tdep.c: Include "osabi.h".
12310 * i386ly-tdep.c: Include "osabi.h".
12311 * i386nbsd-tdep.c: Include "osabi.h".
12312 * i386obsd-tdep.c: Include "osabi.h".
12313
12314 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12315 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12316 check osabi when iterating over arches. Update call to
12317 gdbarch_init_osabi.
12318 (mips_dump_tdep): Don't dump osabi.
12319
12320 * ns32k-tdep.h: Don't include "osabi.h".
12321 (struct gdbarch_tdep): Remove.
12322 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12323 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12324 allocate tdep. Update call to gdbarch_init_osabi.
12325 (ns32k_dump_tdep): Remove.
12326 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12327 * ns32knbsd-tdep.c: Include "osabi.h".
12328
12329 * ppc-tdep.h: Don't include "osabi.h".
12330 (struct gdbarch_tdep): Remove osabi member.
12331 * rs6000-tdep.c: Include "osabi.h".
12332 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12333 osabi when iterating over arches. Update call to
12334 gdbarch_init_osabi.
12335 (rs6000_dump_tdep): Don't dump osabi.
12336 * ppc-linux-tdep.c: Include "osabi.h".
12337 * ppcnbsd-tdep.c: Include "osabi.h".
12338
12339 * sh-tdep.h: Don't include "osabi.h".
12340 (struct gdbarch_tdep): Remove osabi member.
12341 * sh-tdep.c: Include "osabi.h".
12342 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12343 iterate over arches. Update call to gdbarch_init_osabi.
12344 (sh_dump_tdep): Don't dump osabi.
12345 * shnbsd-tdep.c: Include "osabi.h".
12346
12347 * sparc-tdep.c: Include "osabi.h".
12348 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12349 iterate over arches. Update call to gdbarch_init_osabi.
12350 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12351 tdep structure.
12352
12353 * vax-tdep.h: Don't include "osabi.h".
12354 (struct gdbarch_tdep): Remove.
12355 * vax-tdep.c: Include "osabi.h".
12356 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12357 iterate over arches. Don't allocate tdep. Update call
12358 to gdbarch_init_osabi.
12359 (vax_dump_tdep): Remove.
12360 (_initialize_vax_tdep): Update call to gdbarch_register.
12361
12362 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12363
12364 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12365 entirely.
12366 (breakpoint_re_set_one): Don't fetch the value for a disabled
12367 watchpoint.
12368
12369 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12370
12371 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12372 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12373 (COERCE_FLOAT_TO_DOUBLE): Remove.
12374 * gdbarch.c: Regenerate.
12375 * gdbarch.h: Regenerate.
12376 * Makefile.in: Remove value_h from gdbarch_h.
12377 * valops.c (coerce_float_to_double): New variable.
12378 (default_coerce_float_to_double): Remove.
12379 (standard_coerce_float_to_double): Remove.
12380 (value_arg_coerce): Use coerce_float_to_double.
12381 (_initialize_valops): Add "set coerce-float-to-double".
12382 * value.h (default_coerce_float_to_double): Remove prototype.
12383 (standard_coerce_float_to_double): Remove prototype.
12384
12385 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12386 prototyped.
12387 * mdebugread.c (parse_symbol): Likewise.
12388 * stabsread.c (define_symbol): Mark all functions as prototyped.
12389
12390 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12391 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12392 set_gdbarch_coerce_float_to_double.
12393 * arm-tdep.c (arm_gdbarch_init): Likewise.
12394 * frv-tdep.c (frv_gdbarch_init): Likewise.
12395 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12396 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12397 * mips-tdep.c (mips_gdbarch_init): Likewise.
12398 (mips_coerce_float_to_double): Remove.
12399 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12400 (rs6000_coerce_float_to_double): Remove.
12401 * s390-tdep.c (s390_gdbarch_init): Likewise.
12402 * sh-tdep.c (sh_gdbarch_init): Likewise.
12403 (sh_coerce_float_to_double): Remove.
12404 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12405 (sparc_coerce_float_to_double): Remove.
12406 * v850-tdep.c (v850_gdbarch_init): Likewise.
12407 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12408 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12409 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12410 (hppa_coerce_float_to_double): Remove prototype.
12411 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12412
12413 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12414
12415 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12416
12417 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12418
12419 Suggested by Stewart Brown <sb24@avaya.com>:
12420 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12421 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12422 (c_type_print_varspec_suffix): Likewise.
12423
12424 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12425
12426 * configure.in: Don't set and AC_SUBST SUBDIRS.
12427 * configure: Regenerated.
12428
12429 * configure.in: Remove code dealing with shared libraries.
12430 * Makefile.in: Remove HLDFLAGS and HLDENV.
12431 * configure: Regenerated.
12432
12433 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12434
12435 * frame.c (deprecated_frame_xmalloc): New function.
12436 (deprecated_set_frame_saved_regs_hack): New function.
12437 (deprecated_set_frame_extra_info_hack): New function.
12438 * frame.h (deprecated_frame_xmalloc): Declare.
12439 (deprecated_set_frame_saved_regs_hack): Declare.
12440 (deprecated_set_frame_extra_info_hack): Declare.
12441
12442 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12443
12444 * configure.in: Move code that provides the --enable-gdbtk option
12445 right after the code that handles the --enable-tui option, and
12446 polish it somewhat.
12447 * configure: Regenerated.
12448
12449 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12450 AC_CHECK_FUNCS and remove the old check for pread64.
12451 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12452 * acconfig.h (_GNU_SOURCE): Add.
12453 (HAVE_PREAD64): Remove.
12454 * configure, aclocal.m4, config.in: Regenerated.
12455
12456 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12457
12458 * alpha-tdep.c: Use get_frame_saved_regs.
12459 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12460 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12461 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12462 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12463 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12464
12465 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12466
12467 * configure.in: Remove all use of the SUBDIRS variable; add
12468 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12469 code providing the --enable-multi-ice option, and move it right in
12470 front of the code that checks whether gdbserver is supported.
12471 Polish that too.
12472 * configure: Regenerated.
12473 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12474 @SUBDIRS@.
12475
12476 2003-01-03 Andrew Cagney <cagney@redhat.com>
12477
12478 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12479 * avr-tdep.c, cris-tdep.c: Ditto.
12480 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12481 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12482
12483 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12484
12485 * configure.in: Remove --enable-netrom option.
12486 * configure: Regenerated.
12487
12488 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12489
12490 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12491 declaration for `struct re_pattern_buffer' instead.
12492 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12493
12494 2003-01-03 J. Brobecker <brobecker@gnat.com>
12495
12496 * mdebugread.c (parse_symbol): Count until the stEnd matching
12497 the structure name.
12498
12499 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12500
12501 * configure.in: Remove --with-cpu option.
12502 subscripts. Remove evil changequotes here.
12503 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12504 * config.in, configure: Regenerated.
12505
12506 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12507 * configure.in: Cleanup section that sources GDB and BFD configure
12508 subscripts. Remove evil changequotes here.
12509 * config.in, configure: Regenerated.
12510
12511 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12512
12513 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12514 frame accessor methods.
12515 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12516 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12517 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12518 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12519 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12520 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12521 * z8k-tdep.c: Ditto.
12522
12523 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12524
12525 * configure.in: Remove UI_OUT configuration code.
12526 * ada-lang.c: Update assuming UI_OUT is always true.
12527 * Makefile.in (UIOUT_CFLAGS): Remove.
12528 * configure: Regenerated.
12529 * TODO: Remove blurb about elimination of -DUI_OUT.
12530
12531 * configure.in: Move code that provides the --enable-gdbcli,
12532 --enable-gdbmi options right before the code that handles the
12533 --enable-tui option. Polish a bit.
12534 * configure: Regenerated.
12535
12536 * configure.in: Rewrite check for GNU regex and the
12537 --without-included regex option, and move it into the "Checks for
12538 library functions" section. This makes us use the system regex
12539 again by default on systems with version 2 of the GNU C library.
12540 This was apparently broken.
12541 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12542 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12543 * config.in, configure: Regenerated.
12544
12545 * configure.in: Move code that provides the --enable-tui option
12546 before the "Checks for libraries" section. Polish the code
12547 somewhat and set need_curses to yes if we build the TUI. Rewrite
12548 code that looks for a library providing termcap functionality to
12549 match more closely what's done in the Readline library, and move
12550 it into to the "Checks for libraries" section.
12551 * configure: Regenerated.
12552 * Makefile.in (TERMCAP): Remove variable.
12553 * config/i386/go32.mh (TERMCAP): Remove variable.
12554
12555 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12556
12557 * MAINTAINERS: Mention gdb_mbuild.sh.
12558 * gdb_mbuild.sh: Rewrite.
12559
12560 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12561
12562 * configure.in: Fix typo in last change.
12563 * config.in, configure: Regenerated.
12564
12565 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12566
12567 * valarith.c (value_binop): Delete obsolete code and comments.
12568 * configure.host: Ditto.
12569 * buildsym.h (make_blockvector): Ditto.
12570 * buildsym.c (make_blockvector): Ditto.
12571 * defs.h (enum language): Ditto.
12572 (chill_demangle): Ditto.
12573 * elfread.c (elf_symtab_read): Ditto.
12574 * dwarfread.c (CHILL_PRODUCER): Ditto.
12575 (set_cu_language): Ditto.
12576 (handle_producer): Ditto.
12577 * expprint.c (print_subexp): Ditto.
12578 * gdbtypes.c (chill_varying_type): Ditto.
12579 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12580 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12581 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12582 (chill_varying_type): Ditto.
12583 * language.h (_LANG_chill): Ditto.
12584 * language.c (binop_result_type, integral_type): Ditto.
12585 (character_type, string_type, structured_type): Ditto.
12586 (lang_bool_type, binop_type_check): Ditto.
12587 * stabsread.h (os9k_stabs): Ditto.
12588 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12589 (define_symbol, read_type, read_struct_fields): Ditto.
12590 (read_array_type, read_enum_type, read_huge_number): Ditto.
12591 (read_range_type, start_stabs): Ditto.
12592 * symfile.c (init_filename_language_table): Ditto.
12593 (add_psymbol_with_dem_name_to_list): Ditto.
12594 * symtab.c (symbol_init_language_specific): Ditto.
12595 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12596 * symtab.h (struct general_symbol_info): Ditto.
12597 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12598 * typeprint.c (typedef_print): Ditto.
12599 * utils.c (fprintf_symbol_filtered): Ditto.
12600 * valops.c (value_cast, search_struct_field, value_slice): Delete
12601 obsolete code.
12602 (varying_to_slice): Delete function.
12603 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12604 (varying_to_slice): Delete declaration.
12605 * MAINTAINERS: Update.
12606
12607 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12608
12609 * configure.in: Reorganize "Checks for library functions section"
12610 a bit. Remove check for `btowc' and `isascii' functions.
12611 * configure: Regenerated.
12612
12613 * acconfig.h (_MSE_INT_H): Remove.
12614 * configure.in: Create "Checks for header files" section, and move
12615 appropriate tests there. Don't check for objlist.h, wchar.h,
12616 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12617 misdetection fix. Also add "Checks for types", "Checks for
12618 compiler characteristics" and "Checks for library functions"
12619 sections.
12620 * config.in, configure: Regenerated.
12621
12622 * configure.in: Create "Checks for programs" section, and move
12623 appropriate tests there.
12624
12625 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12626
12627 * configure.in: Create "Checks for libraries" section, and move
12628 appropriate tests there. Cleanup check for wctype in libw. Use
12629 AC_SEARCH_LIBS to see whether we need libsocket.
12630 * configure: Regenerated.
12631
12632 For older changes see ChangeLog-2002
12633 \f
12634 Local Variables:
12635 mode: change-log
12636 left-margin: 8
12637 fill-column: 74
12638 version-control: never
12639 End: