2003-09-30 Andrew Cagney <cagney@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2003-09-30 Andrew Cagney <cagney@redhat.com>
2
3 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
4 * remote-vxmips.c (vx_read_register): Ditto.
5 * remote-vx68.c (vx_read_register): Ditto.
6 * gnu-nat.c (inf_validate_procs): Ditto.
7
8 2003-09-29 J. Brobecker <brobecker@gnat.com>
9
10 * infcall.c (call_function_by_hand): Fix build failure
11 introduced in the previous change to this file.
12
13 2003-09-29 Andrew Cagney <cagney@redhat.com>
14
15 * NEWS: Mention Objective-C.
16
17 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
18
19 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
20 test if the register has been saved on the stack.
21 (arm_scan_prologue_cache): When analysing the instruction
22 "str lr, [sp, #-4]", save the address where lr has been stored.
23
24 2003-09-28 Andrew Cagney <cagney@redhat.com>
25
26 * frame.c (frame_read_unsigned_register): Delete function.
27 * frame.h (frame_read_unsigned_register): Delete declaration.
28 * sparc-tdep.c (sparc_init_extra_frame_info): Use
29 get_frame_register_unsigned.
30 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
31 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
32 * d10v-tdep.c (d10v_print_registers_info): Ditto.
33
34 * frame.h (frame_read_register): Delete declaration.
35 * frame.c (frame_read_register): Delete function.
36 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
37 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
38 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
39 * mips-tdep.c (mips_register_to_value): Ditto.
40 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
41 * d10v-tdep.c (d10v_print_registers_info): Ditto.
42
43 * frame.c (frame_read_signed_register): Delete function.
44 (frame_read_unsigned_register): Update comments.
45 * frame.h (frame_read_signed_register): Delete declaration.
46 * h8300-tdep.c (h8300_print_register): Use
47 get_frame_register_signed.
48 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
49
50 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
51 Rename VALUE_RETURNED_FROM_STACK.
52 * infcmd.c (print_return_value): Update.
53 * infcall.c (call_function_by_hand): Update.
54
55 2003-09-28 Mark Kettenis <kettenis@gnu.org>
56
57 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
58 regcache argument and reverse the order of the other two
59 arguments. Remove local regcache variable. Determine
60 architecture from REGCACHE. Update comments.
61 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
62 reverse the order of the other two arguments. Remove local
63 regcache variable. Determine architecture from REGCACHE. Update
64 comments.
65 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
66 prototypes. Update comments.
67 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
68 comment.
69 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
70 Update.
71 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
72 * i386-interix-nat.c (supply_fpregset): Update.
73 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
74 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
75 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
76 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
77 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
78 Update.
79 * i386obsd-tdep.c (fetch_core_registers): Update.
80 * i386v4-nat.c (supply_fpregset): Update.
81 * x86-64-linux-nat.c (supply_fpregset): Update.
82 * x86-64-linux-tdep.c (fetch_core_registers): Update.
83
84 2003-09-27 Mark Kettenis <kettenis@gnu.org>
85
86 * i386-tdep.h: Put opaque declarations in alphabetical
87 order. Remove spurious whitespace.
88 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
89 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
90 * i386-tdep.c (MM0_REGNUM): Remove define.
91 (i386_mmx_regnum_p): Add gdbarch argument.
92 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
93 Rewrite using new macro definitions for FPU/SSE registers.
94 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
95 definitions from i387-tdep.h.
96 (i386_register_name): Update.
97 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
98 new macro definitions for FPU/SSE registers.
99 (i386_extract_return_value): Determine whether floating-point
100 registers are present by examining REGCACHE's architecture.
101 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
102 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
103 FPU/SSE registers.
104 (i386_register_type): Update.
105 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
106 definitions for FPU registers. Use REGCACHE's architecture to
107 determine the appropriate register numbers.
108 (i386_pseudo_register_read, i386_pseudo_register_write,
109 i386_register_reggroup_p): Update.
110 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
111 TDEP->mm0_regnum.
112 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
113 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
114 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
115 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
116 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
117 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
118 *' to `void *'.
119 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
120 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
121 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
122 definitions for FPU/SSE registers.
123 (FXSAVE_MXCSR_ADDR): New define.
124 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
125 TDEP->mm0_regnum.
126 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
127 (I387_ST0_REGNUM): Define.
128
129 * regcache.h (get_regcache_arch): New prototype.
130 * regcache.c (get_regcache_arch): New function.
131
132 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
133 whitespace.
134
135 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
136 Initialize using ARRAY_SIZE.
137
138 2003-09-27 Andrew Cagney <cagney@redhat.com>
139
140 * arch-utils.c (deprecated_init_frame_pc_default): Rename
141 "init_frame_pc_default".
142 * arch-utils.h (deprecated_init_frame_pc_default): Update.
143 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
144 * vax-tdep.c (vax_gdbarch_init): Update.
145 * v850-tdep.c (v850_gdbarch_init): Update.
146 * sh64-tdep.c (sh64_gdbarch_init): Update.
147 * s390-tdep.c (s390_gdbarch_init): Update.
148 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
149 * mcore-tdep.c (mcore_gdbarch_init): Update.
150 * h8300-tdep.c (h8300_gdbarch_init): Update.
151 * cris-tdep.c (cris_gdbarch_init): Update.
152 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
153
154 2003-09-26 Mark Kettenis <kettenis@gnu.org>
155
156 * regset.h: New file.
157 * Makefile.in (regset_h): Add.
158
159 2003-09-25 Andrew Cagney <cagney@redhat.com>
160
161 * frame.h (deprecated_frame_saved_regs): Rename
162 get_frame_saved_regs.
163 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
164 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
165 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
166 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
167 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
168
169 2003-09-25 Andrew Cagney <cagney@redhat.com>
170
171 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
172 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
173 and Java.
174 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
175 arm*-*-* do not use the new frame code.
176
177 2003-09-25 David Carlton <carlton@kealia.com>
178
179 * c-exp.y: Remove 'register' declarations.
180 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
181
182 2003-09-25 David Carlton <carlton@kealia.com>
183
184 * c-exp.y: Include cp-support.h. Add qualified_type.
185 (yylex): Delete nested type hack; add comments.
186 * cp-namespace.c (cp_lookup_nested_type): New function.
187 * cp-support.h: Declare cp_lookup_nested_type.
188 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
189 instead of value_struct_elt_for_reference.
190 * valops.c: Include cp-support.h.
191 (value_aggregate_elt): New function.
192 (value_namespace_elt): Ditto.
193 (value_struct_elt_for_reference): Make static.
194 * value.h: Delete declaration of value_struct_elt_for_reference;
195 add declaration for value_aggregate_elt.
196 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
197 (valops.o): Ditto.
198
199 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
200
201 * stack.c: Include "reggroups.h".
202 (frame_info): Only display registers in all_reggroup.
203 * Makefile.in (stack.o): Update dependencies.
204
205 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
206
207 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
208 "add ip, sp #n" in the prologue.
209 (arm_scan_prologue): Ditto.
210
211 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
212
213 * MAINTAINERS (write after approval): Add myself.
214
215 2003-09-25 Andreas Schwab <schwab@suse.de>
216
217 * m68k-tdep.c: Include "dwarf2-frame.h".
218 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
219 * Makefile.in (m68k-tdep.o): Update dependencies.
220
221 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
222
223 * sh-tdep.c (struct frame_extra_info): Remove.
224 (struct sh_frame_cache): New structure.
225 (GET_SOURCE_REG): New macro extracting source register of an opcode.
226 (GET_TARGET_REG): Ditto but target register.
227 (GET_PUSHED_REG): Remove.
228 (IS_MOV_ARG_TO_REG): New macro.
229 (IS_MOV_ARG_TO_IND_R14): New macro.
230 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
231 (IS_MOVW_PCREL_TO_REG): New macro.
232 (IS_MOVL_PCREL_TO_REG): New macro.
233 (IS_SUB_REG_FROM_SP): New macro.
234 (IS_ARG_MOV): Remove.
235 (IS_MOV_TO_R14): Remove.
236 (IS_RESTORE_FP): New macro.
237 (IS_RTS): New macro.
238 (IS_LDS): New macro.
239 (IS_MOV_FP_SP): New macro.
240 (IS_ADD_REG_TO_FP): New macro.
241 (IS_ADD_IMM_FP): New macro.
242 (sh_skip_prologue_hard_way): Remove.
243 (sh_saved_pc_after_call): Remove.
244 (sh_frame_chain): Remove.
245 (sh_find_callers_reg): Remove.
246 (sh_nofp_frame_init_saved_regs): Remove.
247 (sh_fp_frame_init_saved_regs): Remove.
248 (sh_init_extra_frame_info): Remove.
249 (sh_analyze_prologue): New function.
250 (sh_skip_prologue): Remove deprecated code. Rely on new function
251 sh_analyze_prologue when after_prologue fails.
252 (sh_frame_saved_pc): Remove.
253 (sh_alloc_frame_cache): New function.
254 (sh_frame_cache): Ditto.
255 (sh_frame_prev_register): Ditto.
256 (sh_frame_this_id): Ditto.
257 (sh_frame_unwind): New structure defining the heuristic frame
258 sniffer interface.
259 (sh_frame_sniffer): New function.
260 (sh_unwind_sp): Ditto.
261 (sh_unwind_pc): Ditto.
262 (sh_unwind_dummy_id): Ditto.
263 (sh_frame_base_address): Ditto.
264 (sh_frame_base): New structure defining new frame base code.
265 (sh_in_function_epilogue_p): New function.
266 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
267 code and to call all new code instead. Initialize dwarf2 and
268 heuristic frame sniffer.
269
270 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
271
272 * parser-defs.h (struct exp_descriptor): New definition, containing
273 language-specific info for printing, prefixifying, dumping, and
274 evaluating expressions.
275 (exp_descriptor_standard): Declare new variable.
276 (print_subexp): Make global and declare here (from expprint.c).
277 (dump_subexp): Ditto.
278 (dump_subexp_body_standard): Declare.
279 (operator_length_standard): Declare.
280 (op_name_standard): Declare.
281 (print_subexp): Declare.
282 (print_subexp_standard): Declare.
283
284 * language.h (struct language_defn): Add la_exp_desc field to hold
285 pointer to table for language-specific operators.
286 Remove evaluate_exp field, which is now in struct exp_descriptor.
287
288 * parse.c (operator_length): Move most code to new
289 operator_length_standard function. Use language-specific information.
290 (operator_length_standard): New function taking most code from
291 operator_length.
292 (exp_descriptor_standard): New constant.
293
294 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
295 and OP_EXTENDED_LAST.
296
297 * expprint.c (print_subexp): Use language-specific print_subexp.
298 Make global; remove static declaration.
299 Move most code to print_subexp_standard.
300 (print_subexp_standard): New function, containing code formerly in
301 print_subexp.
302 (op_name): Add expression to argument signature.
303 Use langauge-specific op_name.
304 Move most code to op_name_standard.
305 (op_name_standard): New function, containing code formerly in op_name.
306 (dump_subexp): Use new version of op_name function.
307 Use language-specific dump_subexp_body, and move most existing code to
308 dump_subexp_body_standard.
309 (dump_raw_expression): Use new op_name interface.
310 (dump_subexp_body): Move most code to dump_subexp_body_standard.
311 (dump_subexp_body_standard): New function, containing code formerly
312 in dump_subexp_body.
313
314 * language.c (unknown_language): Add default la_exp_desc field and
315 remove evaluate_exp field.
316 (auto_language): Ditto.
317 (local_language): Ditto.
318 * f-lang.c (f_language_defn): Ditto.
319 * c-lang.c (c_language_defn): Ditto.
320 (cplus_language_defn): Ditto.
321 (asm_language_defn): Ditto.
322 (minimal_language_defn): Ditto.
323 * p-lang.c (pascal_language_defn): Ditto.
324 * m2-lang.c (m2_language_defn): Ditto.
325 * objc-lang.c (objc_language_defn): Ditto.
326
327 * jv-lang.c (exp_descriptor_java): New variable, containing
328 Java-specific expression evaluator.
329 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
330 field.
331 * scm-lang.c (exp_descriptor_scm): New variable, containing
332 Scheme-specific expression evaluator.
333 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
334 field.
335 * objc-lang.c (print_object_command): Take evaluate_exp from the
336 la_exp_desc field.
337
338 * Makefile.in (eval.o): Add dependency on parser-defs.h.
339
340 * eval.c: Include parser-defs.h for the full declaration of
341 la_exp_desc's type.
342 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
343
344 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
345
346 * parser-defs.h (operator_length): Declare.
347
348 * parse.c (length_of_subexp): Use operator_length to get operator
349 lengths and arities for operators.
350 Move most code to new operator_length function.
351 (operator_length): New function absorbing most code from
352 length_of_subexp.
353 (prefixify_subexp): Remove large case and use operator_length instead.
354 (parse_exp_1): Use renamings:
355 dump_prefix_expression => dump_raw_expression and
356 dump_postfix_expression => dump_prefix_expression.
357
358 * expression.h (dump_prefix_expression): Rename to ...
359 (dump_raw_expression): New name.
360 (dump_postfix_expression): Rename to ...
361 (dump_prefix_expression): New name.
362
363 * expprint.c (dump_subexp): Make global. Add comment.
364 Move most existing code to dump_subexp_body.
365 (dump_subexp_body): New function.
366 (dump_prefix_expression): Rename to dump_raw_expression.
367 Remove attempt to print the expression via print_expression: it can't
368 work before the expression is prefixified.
369 (dump_raw_expression): Renamed from dump_prefix_expression.
370 (dump_postfix_expression): Rename to dump_prefix_expression, since
371 that's what it does.
372 Remove 'note' parameter, since this routine must be used on
373 prefixified expression.
374 (dump_prefix_expression): Renamed from dump_postfix_expression.
375
376 2003-09-22 Jim Blandy <jimb@redhat.com>
377
378 * dwarf2read.c (read_array_type): When building the type for an
379 array of unspecified length, make sure to choose the upper bound
380 so that the array's total length comes out to be zero --- that's
381 how we represent such arrays.
382
383 2003-09-22 Michael Chastain <mec@shout.net>
384
385 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
386
387 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
388
389 * top.c (quit_force): Fix indirect call to quit_target so
390 a struct qt_args pointer is passed.
391
392 2003-09-22 Andrew Cagney <cagney@redhat.com>
393
394 * arch-utils.h (init_frame_pc_noop): Delete declaration.
395 * arch-utils.c (init_frame_pc_noop): Delete function.
396 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
397 "init_frame_pc".
398 * mips-tdep.c (mips_gdbarch_init): Ditto.
399 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
400 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
401 declaration.
402 (DEPRECATED_INIT_FRAME_PC): Delete macro.
403 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
404 declaration.
405 (DEPRECATED_INIT_FRAME_PC): Delete macro.
406
407 2003-09-22 Anthony Green <green@redhat.com>
408
409 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
410 declaration.
411
412 2003-09-20 Andrew Cagney <cagney@redhat.com>
413
414 * breakpoint.c: Eliminate ARGSUSED.
415 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
416 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
417 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
418 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
419 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
420 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
421 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
422 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
423 * wince.c, remote-vx.c: Ditto.
424
425 * cli/cli-script.c: Remove "register" attributes.
426 * config/pa/tm-hppa.h: Ditto.
427 * cli/cli-decode.c: Ditto.
428 * cli/cli-cmds.c: Ditto.
429
430 2003-09-19 Andrew Cagney <cagney@redhat.com>
431
432 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
433 DEPRECATED_NPC_REGNUM.
434 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
435
436 2003-09-19 Christopher Faylor <cgf@redhat.com>
437
438 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
439
440 2003-09-19 Jim Blandy <jimb@redhat.com>
441
442 * macrotab.c (macro_include): Use the correct comparison to find
443 the appropriate place for this inclusion in the list.
444
445 2003-09-19 Andrew Cagney <cagney@redhat.com>
446
447 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
448 (DEPRECATED_HPUX_TEXT_END): Define.
449 (deprecated_hpux_text_end): Declare.
450 (struct target_ops): Declare opaque.
451 * hppah-nat.c (text_end): Make static.
452 (deprecated_hpux_text_end): New function.
453 * exec.c (text_end): Delete global variable.
454 (NEED_TEXT_START_END): Do not define.
455 (exec_file_attach): Replace code computing "text_end" code with
456 call to DEPRECATED_HPUX_TEXT_END.
457
458 2003-09-19 Andrew Cagney <cagney@redhat.com>
459
460 * utils.c (align_up, align_down): New functions.
461 * defs.h (align_up, align_down): Declare.
462 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
463 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
464 and "align_down".
465 (round_up, round_down): Delete functions.
466 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
467 "align_down".
468 (ROUND_DOWN, ROUND_UP): Delete macros.
469 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
470 * h8300-tdep.c: Replace "round_up" and "round_down" with
471 "align_up" and "align_down".
472 (round_up, round_down): Delete macros.
473 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
474 "align_down".
475 (ROUND_UP, ROUND_DOWN): Delete macros.
476
477 2003-09-18 J. Brobecker <brobecker@gnat.com>
478
479 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
480 hard-coded constant. Use the proper machine name instead.
481
482 2003-09-17 Andrew Cagney <cagney@redhat.com>
483
484 * sparc-tdep.c (legacy_register_name): Delete function.
485 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
486 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
487 * infcmd.c (gdb_register_name): Delete variable.
488 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
489 REGISTER_NAME and "tm.h".
490 * gdbarch.h, gdbarch.c: Regenerate.
491 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
492 REGISTER_NAMES in comments.
493 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
494 * m68klinux-nat.c (regmap): Ditto.
495
496 2003-09-17 Jim Blandy <jimb@redhat.com>
497
498 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
499
500 2003-09-17 Andrew Cagney <cagney@redhat.com>
501
502 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
503 (ppcnbsd_init_abi): Set "use_struct_convention" to
504 "ppcnbsd_use_struct_convention".
505
506 2003-09-17 Mark Kettenis <kettenis@gnu.org>
507
508 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
509 * gdbarch.h, gdbarch.c: Regenerate.
510 (stabs_argument_has_addr): New architecture method.
511 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
512 * arch-utils.c: Include "buildsym.h".
513 (default_stabs_argument_has_addr): New function.
514 * stabsread.c (define_symbol): Use stabs_argument_has_addr
515 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
516
517 2003-09-17 Andrew Cagney <cagney@redhat.com>
518
519 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
520 * gdbarch.h, gdbarch.c: Regenerate.
521 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
522 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
523 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
524 * sparcnbsd-tdep.c: Update.
525
526 2003-09-17 Andrew Cagney <cagney@redhat.com>
527
528 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
529 * gdbarch.h, gdbarch.c: Regenerate.
530 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
531 * d10v-tdep.c, frame.c: Update.
532 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
533 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
534 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
535 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
536 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
537 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
538 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
539 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
540 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
541 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
542 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
543 * config/pa/nm-hppah.h: Update.
544
545 2003-09-16 Andrew Cagney <cagney@redhat.com>
546
547 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
548 "use_struct_convention" to "ppc_linux_use_struct_convention".
549 (ppc_linux_use_struct_convention): New function.
550 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
551 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
552 "rs6000_use_struct_convention".
553 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
554 declaration.
555 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
556 Delete function.
557
558 2003-09-16 Andrew Cagney <cagney@redhat.com>
559
560 * buildsym.c: Remove more occurances of "register".
561 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
562 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
563 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
564 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
565 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
566 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
567 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
568 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
569
570 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
571
572 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
573 numbers to enumeration values.
574 * sh-tdep.c: Accomodate above change.
575 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
576 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
577 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
578 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
579 (IS_FPUSH): Rename from IS_FMOV.
580 (sh_extract_struct_value_address): Remove useless comment.
581 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
582 instead of own local values.
583 (sh_dump_tdep): Remove.
584 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
585 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
586
587 2003-09-15 Andrew Cagney <cagney@redhat.com>
588
589 * doublest.c (convert_floatformat_to_doublest): No longer need to
590 cast "exp_bias" to an int. Reverts 2002-12-04 change.
591
592 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
593
594 * values.c (unpack_double): Call floatformat_is_valid.
595
596 2003-09-15 Mark Kettenis <kettenis@gnu.org>
597
598 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
599 ps_strings into a long.
600
601 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
602 _initialize_am64fbsd_nat.
603
604 2003-09-15 Kevin Buettner <kevinb@redhat.com>
605
606 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
607 associated with DW_AT_ranges attribute is out of bounds.
608
609 2003-09-15 David Lecomber <dsl@sources.redhat.com>
610
611 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
612
613 2003-09-14 Michael Chastain <mec@shout.net>
614
615 * config/m68k/nm-apollo68v.h: Delete.
616 * config/m68k/xm-apollo68v.h: Delete.
617
618 2003-09-14 Andrew Cagney <cagney@redhat.com>
619
620 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
621 * dcache.c: Update copyrights and descriptions.
622 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
623
624 2003-09-14 Andrew Cagney <cagney@redhat.com>
625
626 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
627 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
628
629 2003-09-14 Andrew Cagney <cagney@redhat.com>
630
631 * alpha-nat.c: Remove some occurances of "register".
632 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
633 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
634 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
635 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
636 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
637 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
638 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
639 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
640 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
641 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
642 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
643 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
644 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
645 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
646 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
647 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
648 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
649 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
650 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
651 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
652 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
653 * values.c, vax-tdep.c, xcoffread.c: Ditto.
654
655 2003-09-13 Andrew Cagney <cagney@redhat.com>
656
657 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
658 * ppc-tdep.h (struct regcache): Declare opaque.
659 * objfiles.h (struct objfile_data): Declare opaque.
660 * cp-support.h (struct objfile): Declare opaque.
661 * linux-nat.h (target_waitstatus): Declare opaque.
662
663 2003-09-14 Mark Kettenis <kettenis@gnu.org>
664
665 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
666 (stabs_argument_has_addr): New architecture method.
667 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
668 * arch-utils.c: Include "buildsym.h".
669 (default_stabs_argument_has_addr): New function.
670 * stabsread.c (define_symbol): Use stabs_argument_has_addr
671 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
672
673 * cris-tdep.c (cris_gdbarch_init): Set
674 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
675 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
676 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
677 * mips-tdep.c (mips_gdbarch_init): Likewise.
678 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
679 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
680
681 2003-09-13 Andrew Cagney <cagney@redhat.com>
682
683 * values.c (using_struct_return): Delete "function" and "funcaddr"
684 parameters.
685 * value.h (using_struct_return): Update declaration.
686 * infcmd.c (finish_command_continuation): Update.
687 (finish_command): Update.
688 * infcall.c (call_function_by_hand): Update.
689 * eval.c (evaluate_subexp_standard): Update.
690
691 2003-09-13 Christopher Faylor <cgf@redhat.com>
692
693 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
694 SSE registers since gdb will not operate correctly without this.
695 Restore include file ordering munged in previous change.
696 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
697
698 2003-09-13 Mark Kettenis <kettenis@gnu.org>
699
700 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
701 REG_STRUCT_HAS_ADDR.
702 * gdbarch.c, gdbarch.h: Updated.
703 * infcall.c (call_function_by_hand): Update.
704 * stabsread.c (define_symbol): Updated.
705
706 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
707
708 2003-09-12 Christopher Faylor <cgf@redhat.com>
709
710 * win32-nat.c: Reorganize so that defines used by target headers are
711 actually defined by the system headers.
712 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
713 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
714
715 2003-09-12 Jim Blandy <jimb@redhat.com>
716
717 * dbxread.c (read_dbx_symtab): Don't report an internal error if
718 the file has no .data, .bss, or .rodata sections. Instead wait
719 until we see a variable alleged to live in one of those sections.
720
721 * dbxread.c (read_dbx_symtab): If we have no .data section and no
722 .bss section, presume that any variables we find live in the
723 .rodata section.
724
725 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
726 offsets for global and static variables.
727
728 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
729 symbol types are, by definition, in the .data section, so it is
730 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
731 If there is no .data section, there should be no N_DATA or N_DATA
732 | N_EXT symbols.
733
734 2003-09-12 Mark Kettenis <kettenis@gnu.org>
735
736 * amd64fbsd-tdep.c: Fix sigtramp recognition.
737 (amd64fbsd_sigcontext_addr): Rewrite.
738 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
739 with correct values.
740 (amd64fbsd_sc_reg_offset): Initialize with correct values.
741 (amd64fbsd_init_abi): Fix typo.
742
743 2003-09-12 Andrew Cagney <cagney@redhat.com>
744
745 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
746 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
747
748 2003-09-12 Andrew Cagney <cagney@redhat.com>
749
750 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
751 "entry_file_highpc". Update comments.
752 * defs.h (deprecated_inside_entry_file): Rename
753 "inside_entry_file".
754 * blockframe.c (deprecated_inside_entry_file): Rename
755 "inside_entry_file".
756 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
757 * vax-tdep.c (vax_frame_chain): Update.
758 * sh64-tdep.c (sh64_frame_chain): Update.
759 * sh-tdep.c (sh_frame_chain): Update.
760 * rs6000-tdep.c (rs6000_frame_chain): Update.
761 * ns32k-tdep.c (ns32k_frame_chain): Update.
762 * mips-tdep.c (mips_frame_chain): Update.
763 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
764 * m32r-tdep.c (m32r_frame_this_id): Update.
765 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
766 * frv-tdep.c (frv_frame_this_id): Update.
767 * d10v-tdep.c (d10v_frame_this_id): Update.
768 * cris-tdep.c (cris_frame_chain): Update.
769 * blockframe.c (legacy_frame_chain_valid): Update.
770 * avr-tdep.c (avr_frame_this_id): Update.
771 * arm-tdep.c (arm_prologue_this_id): Update.
772 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
773 * objfiles.c (objfile_relocate): Update.
774 * mipsread.c (mipscoff_symfile_read): Update.
775 (mipscoff_symfile_read): Update.
776 * mdebugread.c (parse_partial_symbols): Update.
777 * dwarfread.c (read_file_scope): Update.
778 * dwarf2read.c (read_file_scope): Update.
779 * dbxread.c (read_dbx_symtab): Update.
780 (read_dbx_symtab): Update.
781 * coffread.c (complete_symtab): Update.
782
783 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
784
785 * top.c (quit_target): New static helper function.
786 (quit_force): Moved code to quit_target(). Call quit_target()
787 via catch_errors() to catch errors during quit.
788
789 2003-09-11 David Carlton <carlton@kealia.com>
790
791 * buildsym.c (finish_block): Use allocate_block to allocate the
792 block.
793 * mdebugread.c (new_block): Add FIXME.
794
795 2003-09-11 David Carlton <carlton@kealia.com>
796
797 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
798 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
799 (recursive_dump_type): Ditto.
800 * printcmd.c (print_formatted): Ditto.
801 * typeprint.c (print_type_scalar): Ditto.
802 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
803 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
804 * cp-support.h: Declare cp_check_possible_namespace_symbols,
805 maint_cplus_cmd_list.
806 * cp-support.c: Make maint_cplus_cmd_list extern.
807 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
808 command.h.
809 (lookup_symbol_file): Look in possible namespace blocks when
810 appropriate.
811 (initialize_namespace_symtab): New.
812 (get_possible_namespace_block, free_namespace_block)
813 (check_possible_namespace_symbols)
814 (check_possible_namespace_symbols_loop)
815 (check_one_possible_namespace_symbol)
816 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
817 (_initialize_cp_namespace): Ditto.
818 * block.h: Declare allocate_block.
819 * block.c (allocate_block): New.
820 * jv-lang.c (get_java_class_symtab): Allocate blocks via
821 allocate_block.
822 * symfile.h: Update declaration of add_psymbol_to_list.
823 * symfile.c (add_psymbol_to_list): Return the partial symbol in
824 question.
825 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
826 scan_partial_symbols_call.
827 (scan_partial_symbols): Add NAMESPACE argument; update calls to
828 helper functions.
829 (add_partial_symbol): If necessary, scan mangled names for names
830 of namespaces.
831 (add_partial_namespace): Add NAMESPACE argument; generate partial
832 symbols associated to namespaces.
833 (add_partial_enumeration): Add NAMESPACE argument.
834 (new_symbol): Allow namespace syms.
835 (read_namespace): Generate namespace syms.
836 * objfiles.h: Add opaque declaration of struct symtab.
837 (struct objfile): Add cp_namespace_symtab member.
838 * objfiles.c (allocate_objfile): Set
839 objfile->cp_namespace_symtab.
840 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
841 dictionary_h, command_h.
842
843 2003-09-11 Andrew Cagney <cagney@redhat.com>
844
845 * rs6000-tdep.c (rs6000_push_dummy_call): Use
846 regcache_raw_write_signed to set SP_REGNUM, move the operation to
847 near the function's end.
848 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
849 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
850 regcache_raw_write_signed to set SP_REGNUM.
851
852 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
853
854 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
855 orig_addrs is set up properly.
856
857 2003-09-11 Andrew Cagney <cagney@redhat.com>
858
859 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
860 * gdbarch.h, gdbarch.c: Re-generate.
861 * infcall.c (call_function_by_hand): Update.
862 * hppa-tdep.c (hppa_push_arguments): Update.
863 * ada-lang.c (place_on_stack): Update.
864 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
865 * sparc-tdep.c (sparc_gdbarch_init): Update.
866 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
867 * hppa-tdep.c (hppa_gdbarch_init): Update.
868 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
869 stack_align.
870
871 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
872
873 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
874 register do need a frame.
875
876 2003-09-11 Andrew Cagney <cagney@redhat.com>
877
878 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
879 buildable since GDB 5.0.
880 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
881 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
882 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
883 * irix4-nat.c: Delete file.
884 * config/mips/irix4.mh: Delete file.
885 * config/mips/irix3.mh: Delete file.
886 * config/mips/irix3.mt: Delete file.
887 * config/mips/tm-irix3.h: Delete file.
888 * config/mips/nm-irix3.h: Delete file.
889 * config/mips/xm-irix3.h: Delete file.
890 * config/mips/nm-irix4.h: Delete file.
891 * config/mips/xm-irix4.h: Delete file.
892 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
893
894 2003-09-10 J. Brobecker <brobecker@gnat.com>
895
896 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
897 * Makefile.in (hppa-tdep.o): Update dependencies.
898
899 2003-09-10 James E Wilson <wilson@specifixinc.com>
900
901 * MAINTAINERS: Change my e-mail address. Move to paper trail
902 section.
903
904 2003-09-10 Kevin Buettner <kevinb@redhat.com>
905
906 * MAINTAINERS (frv): New ISA entry.
907
908 2003-09-10 Kevin Buettner <kevinb@redhat.com>
909
910 * frv-tdep.c (dis-asm.h): Include.
911 * Makefile.in (frv-tdep.o): Update dependencies.
912
913 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
914
915 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
916 Fix typo for high range of floating registers.
917
918 2003-09-09 David Carlton <carlton@kealia.com>
919
920 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
921 highpc initialization here out of scan_partial_symbols.
922 (scan_partial_symbols): Restructure into a recursive version,
923 calling add_partial_namespace and add_partial_enumeration when
924 appropriate.
925 (add_partial_namespace): New.
926 (add_partial_enumeration, locate_pdi_sibling): Ditto.
927
928 2003-09-09 Andrew Cagney <cagney@redhat.com>
929
930 * rs6000-tdep.c (ppc_push_return_address): Delete function.
931 (rs6000_push_dummy_call): Set LR to BP_ADDR.
932 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
933 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
934
935 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
936 (rs6000_push_dummy_call): Set the "TOC" register.
937
938 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
939 methods "max_register_raw_size", "max_register_virtual_size" or
940 "register_virtual_size".
941
942 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
943
944 * MAINTAINERS: Update my e-mail address.
945
946 2003-09-09 Andrew Cagney <cagney@redhat.com>
947
948 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
949 (rs6000_push_dummy_call): Store the struct return address.
950 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
951
952 2003-09-09 Andrew Cagney <cagney@redhat.com>
953
954 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
955 "ppc_sysv_abi_push_arguments".
956 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
957 "ppc_sysv_abi_push_arguments".
958 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
959 instead of "push_arguments".
960 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
961
962 2003-09-09 Andrew Cagney <cagney@redhat.com>
963
964 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
965 instead of CALL_DUMMY_ADDRESS.
966
967 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
968
969 * p-lang.c: Eliminate "register".
970 * c-lang.c: Ditto.
971 * expprint.c: Ditto.
972 * f-lang.c: Ditto.
973 * jv-lang.c: Ditto.
974 * language.c: Ditto.
975 * m2-lang.c: Ditto.
976 * parse.c: Ditto.
977 * scm-lang.c: Ditto.
978 * objc-lang.c: Ditto.
979
980 2003-09-09 Nick Clifton <nickc@redhat.com>
981
982 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
983
984 2003-09-04 Andrew Cagney <cagney@redhat.com>
985
986 * avr-tdep.c: Include "dis-asm.h".
987 * cris-tdep.c: Include "dis-asm.h".
988 (cris_delayed_get_disassembler): Use "struct disassemble_info"
989 instead of corresponding typedef.
990 * h8300-tdep.c: Include "dis-asm.h".
991 * ia64-tdep.c: Include "dis-asm.h".
992 * i386-tdep.c: Include "dis-asm.h".
993 (i386_print_insn): Use "struct disassemble_info" instead of
994 corresponding typedef.
995 * m68k-tdep.c: Include "dis-asm.h".
996 * mcore-tdep.c: Include "dis-asm.h".
997 * mips-tdep.c: Include "dis-asm.h".
998 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
999 instead of corresponding typedef.
1000 * ns32k-tdep.c: Include "dis-asm.h".
1001 * s390-tdep.c: Include "dis-asm.h".
1002 * sparc-tdep.c: Include "dis-asm.h".
1003 * vax-tdep.c: Include "dis-asm.h".
1004 * v850-tdep.c: Include "dis-asm.h".
1005 * mn10300-tdep.c: Include "dis-asm.h".
1006 * rs6000-tdep.c: Include "dis-asm.h".
1007 * xstormy16-tdep.c: Include "dis-asm.h".
1008 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1009 print_insn_xstormy16.
1010 * Makefile.in (v850-tdep.o): Update dependencies.
1011 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1012 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1013 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1014 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1015 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1016 (gdbarch_h): Remove $(dis_asm_h).
1017 * disasm.c: Include "dis-asm.h".
1018 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1019 corresponding typedef.
1020 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1021 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1022 * gdbarch.sh: Do not include "dis-asm.h".
1023 (struct disassemble_info): Declare opaque.
1024 (TARGET_PRINT_INSN): Update declaration.
1025 * gdbarch.h, gdbarch.c: Re-generate.
1026
1027 2003-09-08 Andrew Cagney <cagney@redhat.com>
1028
1029 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1030 CALL_DUMMY_ADDRESS, change to a predicate.
1031 * gdbarch.h, gdbarch.c: Re-generate.
1032 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1033 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1034 * infcall.c (call_function_by_hand): Ditto.
1035 * sparc-tdep.c (sparc_push_return_address): Ditto.
1036 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1037 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1038 CALL_DUMMY_ADDRESS with entry_point_address.
1039 * v850-tdep.c (v850_push_return_address): Ditto.
1040 * s390-tdep.c (s390_push_return_address): Ditto.
1041 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1042 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1043 * mcore-tdep.c (mcore_push_return_address): Ditto.
1044 * cris-tdep.c (cris_push_return_address): Ditto.
1045 * arm-tdep.c (arm_push_return_address): Ditto.
1046
1047 2003-09-08 Andrew Cagney <cagney@redhat.com>
1048
1049 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1050 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1051 and REG_UNMODIFIED to REG_SAME_VALUE.
1052 (execute_cfa_program): Update.
1053 (dwarf2_frame_cache): Update. Initialize table to
1054 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1055 location.
1056 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1057
1058 2003-09-08 Andrew Cagney <cagney@redhat.com>
1059
1060 * gnu-nat.c: Remove "inline" function attribute.
1061 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1062
1063 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1064
1065 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1066 target.
1067
1068 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1069
1070 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1071 (frame_extra_info): Rename this struct to frv_unwind_cache.
1072 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1073 Add fields ``prev_sp'' and ``base''.
1074 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1075 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1076 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1077 Delete.
1078 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1079 Revise all callers. Fill in the unwind cache argument and make
1080 other adjustments to account for new frame mechanisms.
1081 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1082 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1083 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1084 (frv_frame_unwind, frv_frame_base): New structs.
1085 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1086 additional arguments expected by this method and adjust function
1087 body accordingly.
1088 (frv_gdbarch_init): Remove calls to the following functions:
1089 set_gdbarch_deprecated_init_frame_pc(),
1090 set_gdbarch_deprecated_saved_pc_after_call(),
1091 set_gdbarch_deprecated_frame_chain(),
1092 set_gdbarch_deprecated_frame_saved_pc(),
1093 set_gdbarch_deprecated_frame_init_saved_regs(),
1094 set_gdbarch_deprecated_push_arguments(),
1095 set_gdbarch_deprecated_push_return_address(),
1096 set_gdbarch_deprecated_pop_frame(),
1097 set_gdbarch_deprecated_call_dummy_words(),
1098 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1099 set_gdbarch_deprecated_init_extra_frame_info(),
1100 set_gdbarch_deprecated_dummy_write_sp(), and
1101 set_gdbarch_deprecated_pc_in_call_dummy().
1102 Add calls to the following functions:
1103 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1104 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1105 frame_base_set_default().
1106 * Makefile.in (frv-tdep.o): Update dependencies.
1107
1108 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1109
1110 * dwarf2-frame.c (read_encoded_value): Add support for
1111 DW_EH_PE_aligned encoding.
1112
1113 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1114
1115 * infrun.c (normal_stop): Don't print a message if the inferior
1116 has exited.
1117
1118 2003-09-08 Jim Blandy <jimb@redhat.com>
1119
1120 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1121 * dbxread.c: #include "gdb_assert.h".
1122 (read_dbx_symtab): If the objfile has no .data section, use the
1123 section index for the .bss section instead.
1124
1125 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1126
1127 * frame.c (deprecated_safe_get_selected_frame): New function.
1128 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1129 * findvar.c (read_var_value): Call it.
1130
1131 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1132
1133 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1134 (sh64-tdep.o): Add dependencies.
1135 * configure.tgt: Add FIXME to sh-*-linux*.
1136 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1137 (sh_gdbarch_init): Always set correct sh_show_regs function
1138 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1139 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1140 * sh64-tdep.c: New file, containing all sh64 related code from
1141 sh-tdep.c.
1142 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1143 * config/sh/linux.mt (TDEPFILES): Ditto.
1144 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1145 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1146 * config/sh/wince.mt (TDEPFILES): Ditto.
1147
1148 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1149
1150 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1151 (stop_wait_callback): Handle !lp->signalled also.
1152 (lin_lwp_has_pending, flush_callback): New functions.
1153 (lin_lwp_wait): Call flush_callback.
1154 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1155 (linux_proc_pending_signals): New function.
1156 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1157
1158 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1159
1160 From Nick Kelsey <nickk@ubicom.com>:
1161 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1162 when the stop PC is at the beginning of a function also.
1163
1164 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1165
1166 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1167 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1168
1169 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1170
1171 * sol-thread.c: Include "gdb_string.h".
1172
1173 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1174
1175 * gcore.c: Reorder include files in alphabetical order. Include
1176 "gdb_assert.h". Various coding style fixes.
1177 (derive_stack_segment, derive_heap_segment): Replace check for
1178 non-null BOTTOM and TOP with gdb_assert.
1179 (derive_heap_segment): Replace check for successful creation of
1180 ZERO with gdb_assert.
1181 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1182
1183 2003-09-04 Andrew Cagney <cagney@redhat.com>
1184
1185 * thread-db.c (verbose_dlsym): New function.
1186 (thread_db_load): Use verbose_dlsym
1187 (thread_db_new_objfile): Print that libthread_db was loaded, and
1188 that thread debugging was enabled.
1189
1190 2003-09-04 Andrew Cagney <cagney@redhat.com>
1191
1192 * configure.tgt: Add "mips64*-*-*" target. Delete
1193 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1194 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1195 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1196 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1197 mips*-sony-*, and mips64*-*-elf* targets.
1198 * config/mips/embedl.mt: Delete file.
1199 * config/mips/embedl64.mt: Delete file.
1200 * config/mips/mips.mt: Delete file.
1201 * config/mips/mips64.mt: Delete file.
1202 * config/mips/tm-embed.h: Delete file.
1203 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1204 * config/mips/embed64.mt: Delete out-of-date comment.
1205
1206 2003-09-04 Andrew Cagney <cagney@redhat.com>
1207
1208 * hppa-tdep.c (hppa_gdbarch_init): Set
1209 "have_nonsteppable_watchpoint".
1210 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1211 * mips-tdep.c (mips_dump_tdep): Do not print
1212 HAVE_NONSTEPPABLE_WATCHPOINT.
1213 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1214 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1215 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1216 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1217
1218 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1219
1220 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1221 unused code. Add comment.
1222
1223 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1224
1225 * breakpoint.c (watchpoint_check): Check for pc being in an
1226 epilogue if watchpoint frame couldn't be found.
1227
1228 2003-09-04 Andrew Cagney <cagney@redhat.com>
1229
1230 * Makefile.in: Re-generate all dependencies.
1231
1232 2003-09-03 Andrew Cagney <cagney@redhat.com>
1233
1234 * arch-utils.h (legacy_print_insn): Delete declaration.
1235 * arch-utils.c (legacy_print_insn): Delete function.
1236 * disasm.c (deprecated_tm_print_insn_info): Delete.
1237 (_initialize_disasm): Delete function, contained code initializing
1238 deprecated_tm_print_insn_info.
1239 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1240 (deprecated_tm_print_insn_info): Delete.
1241 (TARGET_PRINT_INSN): Do not provide a default.
1242 * gdbarch.h, gdbarch.c: Re-generate.
1243
1244 2003-09-03 Andrew Cagney <cagney@redhat.com>
1245
1246 * disasm.c (fprintf_disasm): New function.
1247 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1248 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1249 reverts 2003-08-14 change.
1250 (_initialize_disasm): Call "init_disassemble_info", instead of
1251 INIT_DISASSEMBLE_INFO_NO_ARCH.
1252
1253 2003-09-03 Michael Snyder <msnyder@redhat.com>
1254
1255 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1256
1257 2003-09-03 Andrew Cagney <cagney@redhat.com>
1258
1259 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1260 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1261 * symfile.c (syms_from_objfile): Update.
1262 (reread_symbols): `Update
1263 * exec.c (exec_file_attach): Update.
1264 (exec_file_attach): Update.
1265 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1266 2003-08-29 change.
1267 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1268
1269 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1270
1271 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1272 trad-frame.h.
1273 (arm_get_cache): Delete macro.
1274 (struct arm_prologue_cache): Update comments. Make saved_regs into
1275 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1276 to prev_sp.
1277 (thumb_scan_prologue): Update for cache changes. Don't call
1278 DEPRECATED_PC_IN_CALL_DUMMY.
1279 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1280 argument and use it in desperation search for our prologue. Do not
1281 search past the specified PC.
1282 (arm_make_prologue_cache): Simplify.
1283
1284 (arm_prologue_this_id, arm_prologue_prev_register)
1285 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1286 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1287 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1288 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1289 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1290
1291 (arm_frame_chain_valid, arm_find_callers_reg)
1292 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1293 (arm_pop_frame): Delete obsolete methods.
1294 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1295
1296 (arm_gdbarch_init): Update for new frame methods. Register prologue
1297 and sigtramp unwinders. Set the default frame base method.
1298
1299 * Makefile.in (arm-tdep.o): Update dependencies.
1300 * varobj.c (find_frame_addr_in_frame_chain): Call
1301 get_frame_base_address.
1302 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1303
1304 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1305
1306 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1307 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1308 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1309 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1310 Take NEXT_FRAME and CACHE arguments. Call
1311 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1312 Set unwound_pc in CACHE instead of modifying the frame argument.
1313 Don't bother checking the frame type when looking for sigtramp
1314 frames.
1315 (arm_make_prologue_cache, arm_frame_chain)
1316 (arm_init_extra_frame_info): New functions.
1317
1318 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1319
1320 * arm-tdep.c (arm_get_cache): Define.
1321 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1322 unwound_sp, unwound_pc, and saved_regs.
1323 (thumb_scan_prologue): Take a cache instead of the frame.
1324 (arm_scan_prologue): Likewise.
1325 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1326 instead of a temporary frame.
1327 (arm_init_extra_frame_info): Allocate and use a cache.
1328 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1329
1330 2003-09-03 Andrew Cagney <cagney@redhat.com>
1331
1332 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1333 * config/mips/wince.mt (TM_CLIBS): Ditto.
1334 * config/sh/wince.mt (TM_CLIBS): Ditto.
1335 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1336 * config/sparc/sp64.mt (CC): Delete.
1337
1338 2003-09-03 Andrew Cagney <cagney@redhat.com>
1339
1340 * defs.h: Do not include "arch-utils.h".
1341 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1342 GDB_MULTI_ARCH_PURE.
1343 * configure.in (GDB_MULTI_ARCH): Do not define.
1344 * configure, config.in: Regenerate.
1345 * configure.tgt: Do not set variable "gdb_multi_arch".
1346 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1347 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1348 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1349 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1350 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1351 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1352 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1353 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1354 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1355 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1356 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1357 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1358 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1359 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1360 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1361 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1362 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1363 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1364
1365 2003-08-30 Michael Chastain <mec@shout.net>
1366
1367 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1368 * config/m68k/nm-hp300hpux.h: Delete.
1369 * config/m68k/tm-hp300hpux.h: Delete.
1370 * config/m68k/xm-hp300hpux.h: Delete.
1371 * config/m68k/xm-hp300bsd.h: Delete.
1372 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1373 tm-hp300hpux.h, xm-hp300hpux.h.
1374 * somsolib.c: Remove comment about hp300 shared libraries.
1375
1376 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1377
1378 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1379 Only define PTRACE_GET_THREAD_AREA is not already defined.
1380 Various style fixes in code and comments and some additional
1381 spelling fixes in comments. Move after functions dealing with
1382 debug registers.
1383 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1384 Fix coding-style.
1385
1386 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1387 frame_unwind_register_unsigned instead of
1388 frame_unwind_unsigned_register.
1389
1390 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1391
1392 * configure.in: Search for gethostbyname in libnsl.
1393 * configure: Regenerated.
1394
1395 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1396
1397 * configure.in: Remove redundant AC_MSG_RESULT in check for
1398 uintptr_t in stdint.h.
1399 * configure: Regenerated.
1400
1401 * amd64-nat.h (struct regcache): Add opaque declaration.
1402
1403 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1404 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1405 Change "register array" to "register cache" in comments.
1406 (x86_64_linux_gregset64_reg_offset): New variable.
1407 (GETREGS_SUPPLIES): Remove macro.
1408 (supply_gregset): Call amd64_supply_native_gregset instead of
1409 x86_64_linux_supply_gregset.
1410 (fill_gregset): Rename `regno' to `regnum'. Call
1411 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1412 (store_regs): Rename `regno' to `regnum'.
1413 (store_fpregs): Rename `regno' to `regnum'.
1414 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1415 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1416 Reorganize function a bit.
1417 (store_inferior_registers): Rename `regno' to `regnum'. Use
1418 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1419 Reorganize function a bit.
1420 (_initialize_x86_64_linux_nat): New function.
1421 * config/i386/x86-64linux.mh.
1422
1423 2003-08-29 Andrew Cagney <cagney@redhat.com>
1424
1425 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1426 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1427 (target_remove_watchpoint): Delete macro.
1428 (target_insert_watchpoint): Delete macro.
1429 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1430 (remote_mips_stopped_by_watchpoint): Delete declaration.
1431 (remote_mips_remove_watchpoint): Delete declaration.
1432 (remote_mips_set_watchpoint): Delete declaration.
1433 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1434 * remote-mips.c (_initialize_remote_mips): Set
1435 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1436 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1437 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1438 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1439 (mips_stopped_by_watchpoint): Rename
1440 remote_mips_stopped_by_watchpoint.
1441 (mips_can_hardware_watchpoint): Rename
1442 remote_mips_can_use_hardware_watchpoint, update function
1443 signature.
1444
1445 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1446
1447 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1448 USER_DS. We haven't given them a register number yet.
1449
1450 * amd64-nat.h: New file.
1451 * amd64-nat.c: New file.
1452 * amd64fbsd-nat.c: Include "amd64-nat.h".
1453 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1454 (amd64fbsd32_r_reg_offset): New variable.
1455 (supply_gregset): Simply call amd64_supply_native_gregset.
1456 (fill_gregset): Rename `regno' to `regnum'. Simply call
1457 amd64_collect_native_gregset.
1458 (fill_fpregset): Rename `regno' to `regnum'.
1459 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1460 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1461 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1462 `fpregset_t'. Call amd64_supply_native_gregset instead of
1463 supply_gregset. Call x86_64_supply_fxsave instead of
1464 supply_fpregset.
1465 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1466 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1467 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1468 `fpregset_t'. Call amd64_collect_native_gregset instead of
1469 fill_gregset. Call x86_64_collect_fxsave instead of
1470 fill_fpregset.
1471 (_initialize_am64fbsd_nat): Initialize
1472 amd64_native_gregset32_reg_offset and
1473 amd64_native_gregset64_reg_offset.
1474 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1475
1476 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1477 null pointer. Fix typo in comment.
1478
1479 * regcache.c (supply_register): Reimplement to call
1480 regcache_raw_supply.
1481 (regcache_collect): Reimplement by calling regcache_raw_collect.
1482
1483 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1484
1485 * regcache.c (register_buffer): Consitify first argument.
1486 (regcache_raw_supply, regcache_raw_collect): New
1487 functions.
1488
1489 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1490
1491 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1492 by Nathan J. Williams.
1493
1494 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1495
1496 * lin-lwp.c (wait_lwp): New function, copied from
1497 stop_wait_callback. Clean up.
1498 (stop_wait_callback): Use wait_lwp.
1499
1500 2003-08-28 Andrew Cagney <cagney@redhat.com>
1501
1502 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1503 flavour and disassembler options.
1504 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1505 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1506 deprecated_tm_print_insn_info.
1507
1508 2003-08-27 Andrew Cagney <cagney@redhat.com>
1509
1510 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1511 Use target_read_memory.
1512 (s390_get_frame_info): Update. Do not reference
1513 deprecated_tm_print_insn_info.
1514 (s390_check_function_end, s390_is_sigreturn): Ditto.
1515
1516 2003-08-27 Andrew Cagney <cagney@redhat.com>
1517
1518 * Makefile.in (cris-tdep.o): Update dependencies.
1519 * cris-tdep.c: Include "gdb_assert.h".
1520 (cris_gdbarch_init): Set print_insn.
1521 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1522 (cris_delayed_get_disassembler): Simplify, directly call the
1523 disassembler returned by cris_get_disassembler.
1524 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1525 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1526 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1527 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1528 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1529 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1530 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1531 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1532 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1533 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1534 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1535 (gdb_print_insn_sparc): Delete function.
1536 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1537 deprecated_tm_print_insn_info.
1538 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1539 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1540 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1541 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1542 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1543 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1544 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1545 (s390_gdbarch_init): Set print_insn.
1546
1547 2003-08-27 Andrew Cagney <cagney@redhat.com>
1548
1549 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1550 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1551 * infcall.c (call_function_by_hand): Convert the entry point
1552 address into a code address.
1553
1554 2003-08-27 Andrew Cagney <cagney@redhat.com>
1555
1556 * dsrec.c: Include "gdb_string.h".
1557 * Makefile.in (dsrec.o): Update dependencies.
1558
1559 2003-08-27 Michael Chastain <mec@shout.net>
1560
1561 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1562
1563 2003-08-27 Andrew Cagney <cagney@redhat.com>
1564
1565 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1566 (alpha_osf1_init_abi): Do not set call_dummy_address.
1567
1568 2003-08-27 David Carlton <carlton@kealia.com>
1569
1570 From Randolph Chung <tausq@debian.org>:
1571 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1572 compiles with -Wformat-nonliteral -Werror.
1573
1574 2003-08-26 Jim Blandy <jimb@redhat.com>
1575
1576 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1577 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1578 bfd_lookup_symbol, since we only want symbols in code sections.
1579 (look_for_base): Pass zero as the SECT_FLAGS argument to
1580 bfd_lookup_symbol, since we're not concerned about which section
1581 the symbol is in.
1582
1583 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1584
1585 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1586 we are frameless or the return address register is already known.
1587
1588 2003-08-26 Andrew Cagney <cagney@redhat.com>
1589
1590 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1591 in size. Add comments.
1592
1593 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1594
1595 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1596 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1597
1598 2003-08-26 Jason Merrill <jason@redhat.com>
1599
1600 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1601 case out of #ifdef MIPS block.
1602
1603 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1604
1605 PR java/1322
1606 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1607 available before calling SECT_OFF_TEXT.
1608 * PROBLEMS: Remove description of java/1322.
1609
1610 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1611
1612 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1613 bof, and nat0-nat127 as pseudo-registers.
1614 (ia64_frame_cache): New struct used to cache frame info.
1615 (ia64_register_reggroup_p): New routine used to override default
1616 register grouping so registers without names are still saved and
1617 restored.
1618 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1619 pseudo values.
1620 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1621 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1622 (ia64_alloc_frame_cache): New routine to create a new
1623 ia64_frame_cache.
1624 (examine_prologue): Change prototype to add next_frame pointer.
1625 Assume frameless until otherwise proven. Verify that the cfm for
1626 current frame matches the cfm that should occur for the prologues
1627 alloc insn and if equal, mark as not frameless. At end of routine,
1628 if not frameless, calculate registers for the previous frame and store
1629 in the cache, if a cache is provided.
1630 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1631 and pass 0 for next_frame.
1632 (ia64_store_return_value): Change to use convert_typed_floating()
1633 instead of calling ia64_convert_to_raw().
1634 (ia64_extract_return_value): Change to use convert_typed_floating()
1635 instead of calling ia64_convert_to_virtual().
1636 (ia64_frame_cache): New routine to support new frame model.
1637 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1638 (ia64_frame_sniffer): Ditto.
1639 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1640 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1641 (ia64_sigtramp_frame_prev_register): Ditto.
1642 (ia64_sigtramp_frame_sniffer): Ditto.
1643 (ia64_frame_base_address): Ditto.
1644 (ia64_extract_struct_value_address): Change to issue error message.
1645 (ia64_frame_align): New routine to align sp.
1646 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1647 (ia64_push_arguments): Removed. Logic moved to
1648 ia64_push_dummy_call().
1649 (ia64_push_return_address): Ditto.
1650 (ia64_unwind_dummy_id): New function.
1651 (ia64_unwind_pc): Ditto.
1652 (ia64_convert_register_p): Ditto.
1653 (ia64_register_to_value): Ditto.
1654 (ia64_value_to_register): Ditto.
1655 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1656 (ia64_register_byte, ia64_register_raw_size): Ditto.
1657 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1658 (ia64_saved_pc_after_call): Ditto.
1659 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1660 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1661 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1662 (ia64_register_convert_to_raw): Ditto.
1663 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1664 (ia64_init_extra_frame_info): Ditto.
1665 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1666 (ia64_gdbarch_init): Remove registering of deprecated functions that
1667 are no longer used. Add registration of new gdbarch functions.
1668 Remove registering deprecated_write_sp. Replace
1669 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1670 Delete set_gdbarch_deprecated_register_convertible(),
1671 set_gdbarch_deprecated_register_convert_to_virtual(), and
1672 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1673 set_gdbarch_deprecated_register_size(),
1674 set_gdbarch_deprecated_register_bytes(),
1675 set_gdbarch_pcregnum(),
1676 set_gdbarch_deprecated_register_byte(),
1677 set_gdbarch_deprecated_register_raw_size(),
1678 set_gdbarch_deprecated_max_register_raw_size(),
1679 set_gdbarch_deprecated_register_virtual_size(),
1680 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1681 Replace set_gdbarch_deprecated_extract_return_value() with
1682 set_gdbarch_extract_return_value(). Remove calls to:
1683 set_gdbarch_deprecated_saved_pc_after_call();
1684 set_gdbarch_deprecated_frame_chain(),
1685 set_gdbarch_deprecated_frame_saved_pc(),
1686 set_gdbarch_deprecated_frame_init_saved_regs(),
1687 set_gdbarch_deprecated_get_saved_register(),
1688 set_gdbarch_deprecated_call_dummy_words(),
1689 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1690 set_gdbarch_deprecated_init_extra_frame_info(),
1691 set_gdbarch_deprecated_frame_args_address(),
1692 set_gdbarch_deprecated_frame_locals_address(),
1693 and set_gdbarch_deprecated_dummy_write_sp().
1694 Add set_gdbarch_convert_register_p(),
1695 set_gdbarch_register_to_value(),
1696 set_gdbarch_value_to_register(),
1697 set_gdbarch_push_dummy_call(),
1698 set_gdbarch_frame_align(),
1699 set_gdbarch_unwind_dummy_id(),
1700 set_gdbarch_unwind_pc(),
1701 frame_unwind_append_sniffer(),
1702 frame_unwind_append_sniffer(),
1703 and frame_base_set_default().
1704
1705 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1706
1707 * configure.tgt: Document need for special "mipsisa64" handling.
1708 (mipsisa64*-*-linux64): Handle as target linux64.
1709 (mipsisa64*-*-*): Handle as target embed64.
1710
1711 2003-08-18 Michael Chastain <mec@shout.net>
1712
1713 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1714 objfile bug.
1715
1716 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1717
1718 * i387-tdep.h: Update copyright date.
1719 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1720
1721 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1722 CFLAGS games to reflect reality.
1723
1724 2003-08-24 Andrew Cagney <cagney@redhat.com>
1725
1726 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1727 GDB_MULTI_ARCH is always non-zero.
1728 * osabi.c (_initialize_gdb_osabi): Ditto.
1729 (gdbarch_init_osabi): Ditto.
1730 * sparc-tdep.c: Ditto for #if code.
1731
1732 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1733
1734 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1735 Update comments.
1736 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1737 comments.
1738 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1739 x86_64_supply_fxsave.
1740 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1741 x86_64_supply_fxsave.
1742 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1743 x86_64_supply_fxsave.
1744
1745 2003-08-23 Andreas Jaeger <aj@suse.de>
1746
1747 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1748 i387_supply_fxsave.
1749
1750 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1751
1752 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1753 i387_supply_register.
1754 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1755 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1756 i387_supply_fsave.
1757 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1758 i387_supply_fxsave.
1759 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1760 i387_supply_fsave.
1761 * i386bsd-nat.c (supply_fpregset): Adjust call to
1762 i387_supply_fsave.
1763 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1764 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1765 supply_fpregset.
1766 (store_inferior_registers): Remove extraneous whitespace. Call
1767 i387_fill_fsave instead of fill_fpregset.
1768 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1769 (supply_fpregset): Likewise.
1770 * i386v4-nat.c (supply_fpregset): Adjust call to
1771 i387_supply_fsave.
1772 * i386-interix-nat.c (supply_fpregset): Adjust call to
1773 i387_supply_fsave.
1774 * i386-linux-nat.c (supply_fpregset): Adjust call to
1775 i387_supply_fsave.
1776 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1777 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1778 i387supply_fsave and i387_supply_fxsave.
1779 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1780 Incorporate code from `i387_supply_register.
1781 (i387_supply_register): Remove.
1782 (i387_supply_fxsave): Add `regnum' argument.
1783 Update comments.
1784 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1785 prototype.
1786 (i387_supply_register): remove prototype.
1787 Update comments.
1788
1789 2003-08-22 Michael Chastain <mec@shout.net>
1790
1791 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1792 Add lines for files in gdb/testsuite/gdb.cp/* that are
1793 still not 8.3 unique.
1794
1795 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1796
1797 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1798 TYPE_VPTR_FIELDNO is valid.
1799
1800 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1801
1802 * utils.c (set_width_command): Remove prototypes.
1803 (set_screen_size): New prototype.
1804 (init_page_info): Simplify by fetching the screen size from
1805 Readline. Call set_screen_size.
1806 (set_screen_size): New function.
1807 (set_width): Add missing whitespace in comment.
1808 (set_width_command): Call set_screen_size.
1809 (set_height_command): New function.
1810 (initialize_utils): Fix formatting. Make "set height" command
1811 call set_height_command. Remove redundant code that turns off
1812 pagination if output isn't a terminal. Remove redundant call to
1813 set_width_command.
1814
1815 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1816
1817 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1818 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1819 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1820 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1821 `case' keyword.
1822 (sparc64_register_info): Give the reister with number
1823 SPARC64_STATE_REGNUM a name.
1824 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1825 %asi and %ccr.
1826 (sparc64_push_dummy_call): Take BIAS into account when checking
1827 stcak alignment.
1828 (sparc_software_single_step): Remove assertions that check whether
1829 NPC and NNPC were zero.
1830 (sparc_supply_rwindow): Make public. Merge functionality with
1831 sparc64_supply_rwindow.
1832 (sparc_fill_rwindow): Make public. Merge functionality with
1833 sparc64_fill_rwindow.
1834 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1835 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1836 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1837 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1838 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1839
1840 * reggroups.c: Add whitespace after declarations of local
1841 variables in functions.
1842
1843 2003-08-21 Michael Chastain <mec@shout.net>
1844
1845 * gdbtypes.h: Change array bound type from an int to enum.
1846
1847 2003-08-21 Andrew Cagney <cagney@redhat.com>
1848
1849 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1850 * config/sparc/tm-sparc.h: Ditto.
1851 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1852 unconditionally.
1853 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1854
1855 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1856
1857 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1858 (register_objfile_data, set_objfile_data, objfile_data): New
1859 prototypes.
1860 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1861 prototypes.
1862 (allocate_objfile): Call objfile_alloc_data.
1863 (free_objfile): Call objfile_free_data.
1864 (struct objfile_data): New.
1865 (struct objfile_data_registration): New.
1866 (struct objfile_data_registry): New.
1867 (objfile_data_registry): New variable.
1868 (register_objfile_data): New function.
1869 (objfile_alloc_data, objfile_free_data): New functions.
1870 (set_objfile_data, objfile_data): New functions.
1871 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1872 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1873 (_initialize_dwarf2_frame): New function and prototype.
1874
1875 2003-08-21 Andrew Cagney <cagney@redhat.com>
1876
1877 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1878 a specific architecture.
1879 * arch-utils.h (set_architecture_from_arch_mach): Delete
1880 declaration.
1881 (target_architecture_hook): Delete declaration.
1882 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1883 (default_float_format): Assume GDB_MULTI_ARCH.
1884 (default_double_format): Assume GDB_MULTI_ARCH.
1885 (set_endian_from_file): Delete function.
1886 (arch_ok): Delete function.
1887 (set_arch): Delete function.
1888 (set_architecture_from_arch_mach): Delete function.
1889 (set_architecture_from_file): Delete function.
1890 (set_architecture): Assume GDB_MULTI_ARCH.
1891 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1892
1893 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1894
1895 Rewrite FreeBSD/sparc64 native configuration.
1896 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1897 * sparc64fbsd-nat.c: New file.
1898 * sparc64fbsd-tdep.c: New file.
1899 * sparc64-tdep.c sparc64-tdep.h: New files.
1900 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1901 sparc64fbsd-tdep.o): New dependencies.
1902 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1903 and sparc64fbsd-tdep.c.
1904 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1905 * config/sparc/fbsd.mh: Remove copyright notice.
1906 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1907 sparcbsd-nat.o.
1908 * config/sparc/fbsd.mt: Remove copyright notice.
1909 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1910 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1911 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1912 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1913 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1914 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1915 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1916 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1917 "sparc/tm-sp64.h".
1918 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1919 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1920
1921 2003-08-21 Michael Chastain <mec@shout.net>
1922
1923 * symtab.h: Add doco on the space critical structures and
1924 some measurements of space usage.
1925
1926 2003-08-21 Michael Snyder <msnyder@redhat.com>
1927
1928 * tracepoint.c (trace_dump_command): Trace break address
1929 is subject to DECR_PC_AFTER_BREAK.
1930 (set_traceframe_context): Make "trace_line" an int.
1931 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1932
1933 2003-08-20 Michael Snyder <msnyder@redhat.com>
1934
1935 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1936 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1937 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1938 argument passing.
1939 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1940 functions, replace sh_push_dummy_call.
1941 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1942
1943 2003-08-20 Michael Chastain <mec@shout.net>
1944
1945 * gdbtypes.h (struct main_type): Rearrange to save space.
1946
1947 2003-08-20 Michael Snyder <msnyder@redhat.com>
1948
1949 * trad-frame.c: Comment typo fix.
1950
1951 2003-08-20 Michael Snyder <msnyder@redhat.com>
1952 Kevin Buettner <kevinb@redhat.com>
1953
1954 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1955 (frv_frame_init_saved_regs): Add declaration.
1956 (frame_extra_info): Add new field ``saved_regs''.
1957 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1958 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1959 Update frame related code.
1960 (frv_extract_struct_value_address): Adjust formatting.
1961 * Makefile.in (frv-tdep.o): Update dependencies.
1962 * config/frv/tm-frv.h (target_insert_watchpoint)
1963 (target_remove_watchpoint, target_insert_hw_breakpoint)
1964 (target_remove_hw_breakpoint): Delete these macros.
1965 (remote_insert_watchpoint, remote_remove_watchpoint)
1966 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1967 these declarations.
1968
1969 2003-08-20 Michael Chastain <mec@shout.net>
1970
1971 * defs.h (ENUM_BITFIELD): New macro.
1972 * symtab.h (ENUM_BITFIELD): Use it.
1973 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1974
1975 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1976
1977 * MAINTAINERS (write after approval): Add myself.
1978
1979 2003-08-18 Andrew Cagney <cagney@redhat.com>
1980
1981 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1982 * gdbarch.h, gdbarch.c: Re-generate.
1983 * infcall.c (call_function_by_hand): Adjust the SP by
1984 frame_red_zone_size before allocating any stack space.
1985 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1986 * x86-64-tdep.c (x86_64_frame_align): New function.
1987 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1988
1989 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1990 Remove code adjusting SP so that it skips over the Red Zone.
1991
1992 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1993
1994 * NEWS (New native configurations): Mention FreeBSD/amd64.
1995
1996 2003-08-18 Andrew Cagney <cagney@redhat.com>
1997
1998 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1999 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2000 "m68k_frame_p".
2001 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2002
2003 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2004
2005 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2006
2007 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2008
2009 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2010 Define.
2011 * i386-linux-nat.c: Include "linux-nat.h".
2012 (child_post_startup_inferior): New function.
2013
2014 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2015
2016 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2017 at the start of a frameless function. This probably fixes PR
2018 backtrace/1338.
2019
2020 2003-08-17 Michael Chastain <mec@shout.net>
2021
2022 * symfile.c (find_sym_fns): Remove special case for apollo target.
2023
2024 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2025
2026 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2027 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2028 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2029 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2030 (linux_supports_tracevforkdone): New function.
2031 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2032 TRACEVFORKDONE.
2033 (child_follow_fork): Handle vfork.
2034 (linux_handle_extended_wait): Likewise. Also handle exec.
2035 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2036 * NEWS: Mention fork tracing.
2037
2038 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2039
2040 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2041
2042 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2043
2044 * Makefile.in (i386-linux-nat.o): Update dependencies.
2045 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2046 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2047 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2048 * i386-linux-nat.c: Include "linux-nat.h".
2049 (child_post_startup_inferior): New function.
2050 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2051 * infptrace.c (kill_inferior): Wrap in #ifdef.
2052 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2053 attaching to each LWP.
2054 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2055 (init_lin_lwp_ops): Fill in some more operations.
2056 * linux-nat.h (linux_enable_event_reporting)
2057 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2058 prototypes.
2059 * linux-nat.c (linux_enable_event_reporting): New function.
2060 (child_post_attach, linux_child_post_startup_inferior)
2061 (child_post_startup_inferior, child_follow_fork)
2062 (linux_handle_extended_wait, kill_inferior): New functions.
2063
2064 2003-08-16 Andrew Cagney <cagney@redhat.com>
2065
2066 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2067 * gdbarch.h, gdbarch.c: Re-generate.
2068
2069 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2070
2071 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2072
2073 2003-08-16 Andrew Cagney <cagney@redhat.com>
2074
2075 * NEWS: Mention that "set prompt-escape-char" was deleted.
2076 * top.c (get_prompt_1): Delete function.
2077 (gdb_prompt_escape):
2078 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2079 prompt-escape-char" command.
2080 (MAX_PROMPT_SIZE): Delete macro.
2081 (get_prompt): Simplify, do not call get_prompt_1.
2082
2083 2003-08-16 Andrew Cagney <cagney@redhat.com>
2084
2085 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2086 -Werror. -Wformat-nonliteral problems.
2087
2088 2003-08-15 J. Brobecker <brobecker@gnat.com>
2089
2090 Further multiarching work mostly for hppa64-*-hpux11:
2091 * hppa-tdep.h: New file.
2092 * hppa-tdep.c: #include hppa-tdep.c.
2093 (hppa32_num_regs): Renamed from hppa_num_regs.
2094 (hppa64_num_regs): New constant.
2095 (hppa64_call_dummy_breakpoint_offset): New constant.
2096 (hppa32_call_dummy_length): New constant.
2097 (hppa64_call_dummy_length): New constant.
2098 (hppa32_stack_align): Make name 32bit explicit.
2099 (hppa32_register_virtual_type): Likewise.
2100 (hppa32_extract_return_value): Likewise.
2101 (hppa32_use_struct_convention): Likewise.
2102 (hppa32_store_return_value): Likewise.
2103 (hppa64_register_virtual_type): New function.
2104 (hppa64_extract_return_value): New function.
2105 (hppa64_use_struct_convention): New function.
2106 (hppa64_store_return_value): New function.
2107 (hppa_frame_locals_address): Remove declaration, function does
2108 not exist anymore.
2109 (hppa_register_byte): Add support for PA64 ABI.
2110 (hppa_gdbarch_init): Add support for PA64 ABI.
2111 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2112 Make name 32bit explicit.
2113 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2114 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2115 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2116 (hppa64_hpux_frame_base_before_sigtramp): New function.
2117 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2118 * config/pa/tm-hppa64.h: Remove macros that are no longer
2119 necessary now that the gdbarch vector is properly setup.
2120 Transform some macros into function calls. Some minor cleanup.
2121 * config/pa/tm-hppah.h: Update function calls in macros
2122 following the function renaming in hppa-hpux-tdep.c.
2123 * Makefile.in (hppa_tdep_h): New variable.
2124 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2125
2126 2003-08-14 Michael Snyder <msnyder@redhat.com>
2127
2128 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2129
2130 2003-08-13 J. Brobecker <brobecker@gnat.com>
2131
2132 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2133 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2134 routine.
2135
2136 2003-08-13 Michael Snyder <msnyder@redhat.com>
2137
2138 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2139 (frv_saved_pc_after_call): Use deprecated ftype.
2140 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2141 (frv_remote_translate_xfer_address): Remove.
2142 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2143
2144 2003-08-13 J. Brobecker <brobecker@gnat.com>
2145
2146 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2147 initialization after the common gdbarch initialization, not before.
2148
2149 2003-08-13 J. Brobecker <brobecker@gnat.com>
2150
2151 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2152 (ADDR_BITS_REMOVE): Remove, redundant.
2153
2154 2003-08-13 J. Brobecker <brobecker@gnat.com>
2155
2156 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2157 gdbarch method to clear the 2 low bits of text addresses.
2158
2159 2003-08-12 Andrew Cagney <cagney@redhat.com>
2160
2161 * Makefile.in (dsrec.o): Update dependencies.
2162 * dsrec.c: Include "gdb_assert.h".
2163 (make_srec): Use snprintf instead of sprintf, use a literal format
2164 string.
2165
2166 2003-08-12 Andrew Cagney <cagney@redhat.com>
2167
2168 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2169 FRAME_OBSTACK_ZALLOC.
2170
2171 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2172
2173 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2174 SSE registers.
2175
2176 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2177
2178 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2179 amd64fbsd_sc_reg_offset): Add extern declarations.
2180 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2181 declarations.
2182
2183 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2184
2185 * MAINTAINERS (write after approval): Update my mail address.
2186
2187 2003-08-10 Andrew Cagney <cagney@redhat.com>
2188
2189 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2190
2191 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2192
2193 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2194 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2195 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2196 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2197 i386bsd_sc_reg_offset): Add extern declarations.
2198 * i386obsd-nat.c: Include "i386-tdep.h"
2199 (_initialize_i386obsd_nat): Remove extern declarations.
2200 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2201 declarations.
2202 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2203 declarations.
2204
2205 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2206 instead of frame_read_register.
2207 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2208 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2209 SP_REGNUM.
2210 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2211 instead of frame_unwind_unsigned_register. Use
2212 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2213 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2214 instead of read_register. Use builtin_type_void_data_ptr instead
2215 of builtin_type_void_func_ptr when extracting the address of the
2216 jmp_buf.
2217 (i386_extract_return_value, i386_store_return_value,
2218 i386_pseudo_register_read, i386_pseudo_register_write): Use
2219 register_size instead REGISTER_RAW_SIZE.
2220
2221 2003-08-10 Andrew Cagney <cagney@redhat.com>
2222
2223 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2224 sprintf. Make "name" constant.
2225
2226 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2227
2228 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2229 instead of frame_read_register.
2230 (i387_print_float_info): Use get_frame_register and
2231 get_frame_register_unsigned instead of frame_register_read.
2232
2233 * i386fbsd-nat.c: Include "i386-tdep.h".
2234 (child_resume): Make `eflags' an ULONGEST. Use
2235 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2236 instead of register_read and register_write.
2237
2238 * i386bsd-nat.c (fetch_inferior_registers,
2239 store_inferior_registers): Don't use && at the end of a line.
2240 (_initialize_i386bsd_nat): Fix typo.
2241
2242 * frame.c (_initialize_frame): Add missing backslash.
2243
2244 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2245 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2246 and supply_register instead of manipulating the register buffer
2247 directly.
2248
2249 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2250 * config/i386/nm-i386sol2.h
2251 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2252
2253 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2254 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2255 instructions that GCC likes to mingle into the prologue. Fixes
2256 gdb/1253 and gdb/1255.
2257
2258 2003-08-09 Andrew Cagney <cagney@redhat.com>
2259
2260 Fix GDB PR cli/926.
2261 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2262 * command.h (add_setshow_uinteger_cmd): Declare.
2263 * frame.c (set_backtrace_cmd): New function.
2264 (show_backtrace_cmd): New function.
2265 * frame.c (_initialize_frame): Replace "set/show
2266 backtrace-below-main" with "set/show backtrace past-main". Add
2267 command "set/show backtrace limit".
2268 (backtrace_past_main): Rename "backtrace_below_main".
2269 (backtrace_limit): New variable.
2270 (get_prev_frame): Update. Check the backtrace_limit.
2271
2272 2003-08-09 Andrew Cagney <cagney@redhat.com>
2273
2274 * defs.h (xstrprintf): Declare.
2275 * utils.c (xstrprintf): New function.
2276 * breakpoint.c (insert_breakpoints): Replace sprintf and
2277 non-literal format strings, with xstrprintf and cleanups.
2278 (delete_breakpoint,breakpoint_re_set): Ditto.
2279 (commands_command, insert_breakpoints): Ditto.
2280 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2281 (break_at_finish_command_1): Ditto.
2282
2283 2003-08-09 Andrew Cagney <cagney@redhat.com>
2284
2285 * MAINTAINERS (language support): List Adam Fedor as Objective C
2286 maintainer.
2287
2288 2003-08-08 J. Brobecker <brobecker@gnat.com>
2289
2290 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2291 are now multiarched.
2292
2293 2003-08-08 J. Brobecker <brobecker@gnat.com>
2294
2295 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2296 longer necessary now that hppa64 is partially multiarch'ed.
2297
2298 2003-08-08 Andrew Cagney <cagney@redhat.com>
2299
2300 * interps.c (interp_set): Check for a NULL "old_interp".
2301
2302 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2303
2304 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2305 (install-only): Support DESTDIR.
2306 (uninstall): Likewise.
2307 (install-gdbtk): Likewise.
2308
2309 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2310
2311 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2312 contains something meaningful at all times.
2313
2314 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2315
2316 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2317
2318 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2319
2320 * MAINTAINERS (write after approval): Added self.
2321
2322 2003-08-07 Andrew Cagney <cagney@redhat.com>
2323
2324 * inferior.h (AT_SYMBOL): Define.
2325 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2326 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2327 * mips-tdep.c (mips_call_dummy_address): Delete function.
2328 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2329 set call_dummy_address.
2330
2331 2003-08-07 Andrew Cagney <cagney@redhat.com>
2332
2333 * language.c (op_error): Delete function.
2334 (binop_type_check): Delete function.
2335 * language.h (type_op_error, range_op_error): Delete macros.
2336 (op_error): Delete declaration.
2337
2338 2003-08-07 Andrew Cagney <cagney@redhat.com>
2339
2340 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2341
2342 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2343
2344 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2345 (x86_64_push_arguments): Skip the red zone.
2346
2347 2003-08-05 Andrew Cagney <cagney@redhat.com>
2348
2349 * reggroups.c (reggroup_next): Check for the final entry.
2350
2351 2003-08-04 Andrew Cagney <cagney@redhat.com>
2352
2353 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2354 * cli/cli-script.c (define_command): Call query directly, instead
2355 of passing it a buffer.
2356 * ocd.c (ocd_error): Pass error a constant format string.
2357 * remote-mips.c (mips_error): Use fputs_filtered.
2358
2359 * solib-svr4.c (_initialize_svr4_solib): Update
2360 register_gdbarch_data call.
2361 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2362
2363 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2364 (register_gdbarch_data): Delete "free" parameter. Update
2365 comments.
2366 * gdbarch.h, gdbarch.c: Re-generate.
2367 * reggroups.c (_initialize_reggroup): Update.
2368 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2369 * frame-base.c (_initialize_frame_base): Update.
2370 * frame-unwind.c (_initialize_frame_unwind): Update.
2371 * user-regs.c (_initialize_user_regs): Update.
2372 * remote.c (_initialize_remote): Update.
2373 * regcache.c (_initialize_regcache): Update.
2374
2375 * regcache.c (xfree_regcache_descr): Delete function.
2376 (_initialize_regcache): Update call to register_gdbarch_data.
2377 (init_regcache_descr, init_legacy_regcache_descr): Use
2378 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2379
2380 * remote.c (free_remote_state): Delete function.
2381 (_initialize_remote): Update register_gdbarch_data.
2382 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2383 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2384
2385 2003-08-04 Andrew Cagney <cagney@redhat.com>
2386
2387 * reggroups.c (struct reggroup_el): Define.
2388 (struct reggroups): Delete field "nr_group". Replace array
2389 "group" with a "first" to "last" linked list.
2390 (reggroups_init): Update. Allocate using gdbarch's obstack.
2391 (reggroups_free): Delete function.
2392 (add_group): Update. Add "el" parameter.
2393 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2394 (default_groups): Update.
2395 (reggroup_next): Replace reggroups.
2396 (reggroups_dump): Update.
2397 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2398 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2399 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2400
2401 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2402
2403 * Makefile.in (tui-interp.o): Update dependencies.
2404
2405 2003-08-04 David Carlton <carlton@kealia.com>
2406
2407 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2408 to internal_error call.
2409 * source.c (forward_search_command): Add "%s" format argument.
2410 (reverse_search_command): Ditto.
2411 * top.c (quit_confirm): Ditto.
2412 * cli/cli-setshow.c (do_setshow_command): Ditto.
2413 * cp-valprint.c (cp_print_class_method): Replace
2414 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2415 (cp_print_class_member): Ditto.
2416 * event-top.c (command_line_handler): Ditto.
2417 * linux-proc.c (linux_info_proc_cmd): Ditto.
2418 * p-typeprint.c (pascal_type_print_base): Ditto.
2419 * p-valprint.c (pascal_object_print_class_method): Ditto.
2420 (pascal_object_print_class_member): Ditto.
2421 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2422 * remote.c (remote_cisco_section_offsets): Ditto.
2423 * top.c (command_line_input): Ditto.
2424 * utils.c (vwarning,error_stream,quit): Ditto.
2425 * valprint.c (print_floating,print_binary_chars)
2426 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2427
2428 2003-08-04 Andrew Cagney <cagney@redhat.com>
2429
2430 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2431
2432 2003-08-02 Andrew Cagney <cagney@redhat.com>
2433
2434 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2435 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2436 amd64fbsd-nat.c.
2437
2438 2003-08-02 Andrew Cagney <cagney@redhat.com>
2439
2440 * Makefile.in: Update all dependencies and definitions.
2441
2442 2003-08-02 Adam Fedor <fedor@gnu.org>
2443
2444 * linespec.c (is_objc_method_format): New function
2445 (decode_line_1, locate_first_half): Use it.
2446 Fixes PR objc/1298
2447
2448 2003-08-01 Andrew Cagney <cagney@redhat.com>
2449
2450 * NEWS: Mention that m32r is multi-arch.
2451 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2452 * configure.tgt: Recognize m32r-*-*.
2453 * config/m32r/tm-m32r.h: Delete file.
2454 * config/m32r/m32r.mt: New file.
2455 * m32r-rom.c (m32r_upload_command): Use hostent only when
2456 gethostname succeeds, in order to avoid a compilation
2457 warning.
2458 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2459 compiler warning.
2460
2461 2003-08-01 Michael Snyder <msnyder@redhat.com>
2462
2463 * sh-tdep.c (sh_frame_align): New gdbarch method.
2464 (sh_gdbarch_init): Set up frame_align method.
2465
2466 2003-07-31 Michael Snyder <msnyder@redhat.com>
2467
2468 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2469 which is already covered by the new frames infrastructure.
2470
2471 2003-07-31 Andrew Cagney <cagney@redhat.com>
2472
2473 * user-regs.c (struct user_reg): Add "next" link.
2474 (struct user_regs): Replace "user" with "first" and "last" links.
2475 (append_user_reg): Add pre-allocated "reg" parameter.
2476 (builtin_user_regs): Provide initial value for "last".
2477 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2478 (user_regs_init): Allocate memory from the gdbarch obstack.
2479 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2480 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2481 linked list.
2482 (usernum_to_user_reg): New function.
2483 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2484 (value_of_user_reg): Use usernum_to_user_reg.
2485 (user_regs_free): Delete function.
2486 (_initialize_user_regs): Update register_gdbarch_data call.
2487
2488 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2489
2490 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2491
2492 2003-07-30 Michael Snyder <msnyder@redhat.com>
2493
2494 * value.h (value_being_returned): Add a struct_addr argument.
2495 * infcall.c (call_function_by_hand): Pass struct_addr to
2496 value_being_returned.
2497 * infcmd.c (print_return_value): Pass zero as struct_addr.
2498 * values.c (value_being_returned): If struct_addr is passed,
2499 use it instead of trying to recover it from the inferior.
2500
2501 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2502
2503 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2504 the prologue analyzer won't need to attempt to extract the pc
2505 value from the woefully incomplete dummy frame.
2506 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2507 possible. Disable code which modifies the frame.
2508
2509 2003-07-28 Andrew Cagney <cagney@redhat.com>
2510
2511 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2512 to level 2.
2513 (annotate_breakpoints_table, annotate_record): Ditto.
2514 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2515 (annotate_field_name_end, annotate_field_value): Ditto.
2516 (annotate_field_end, annotate_frame_source_begin): Ditto.
2517 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2518 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2519 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2520 (annotate_frame_address_end, annotate_frame_address): Ditto.
2521 (annotate_frame_args, annotate_frame_end): Ditto.
2522 (annotate_frame_where, annotate_arg_begin): Ditto.
2523 (annotate_arg_name_end, annotate_arg_value): Ditto.
2524 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2525 (annotate_function_call, annotate_signal_name): Ditto.
2526 (annotate_signal_string, annotate_signal_name_end): Ditto.
2527 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2528 (annotate_value_begin, annotate_value_history_value): Ditto.
2529 (annotate_value_history_end, annotate_value_end): Ditto.
2530 (annotate_display_begin, annotate_display_number_end): Ditto.
2531 (annotate_display_format, annotate_display_expression): Ditto.
2532 (annotate_display_expression_end, annotate_display_value): Ditto.
2533 (annotate_display_end, annotate_array_section_begin): Ditto.
2534 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2535 (annotate_elt, annotate_array_section_end): Ditto.
2536
2537 2003-07-28 Andrew Cagney <cagney@redhat.com>
2538
2539 * regcache.c (struct regcache_descr): Update comments on
2540 nr_raw_registers.
2541 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2542 sizeof_raw_register_valid_p.
2543 (init_regcache_descr): Set nr_raw_registers and
2544 sizeof_raw_register_valid_p before calling
2545 init_legacy_regcache_descr.
2546
2547 2003-07-28 Andrew Cagney <cagney@redhat.com>
2548
2549 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2550 MOD NUM_REGS.
2551
2552 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2553
2554 * thread.c (info_threads_command): Use get_selected_frame ().
2555 Check that there is at least one non-sentinel frame.
2556
2557 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2558
2559 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2560 (m68hc11_pop_frame): Remove.
2561 (m68hc11_frame_saved_pc): Remove.
2562 (m68hc11_frame_chain): Remove.
2563 (m68hc11_frame_init_saved_regs): Remove.
2564 (m68hc11_init_extra_frame_info): Remove.
2565 (m68hc11_store_struct_return): Remove.
2566 (m68hc11_saved_pc_after_call): Remove.
2567
2568 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2569
2570 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2571 frame unwind information.
2572 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2573 and adapted for frame unwinding.
2574 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2575 (m68hc11_unwind_pc): New function.
2576 (m68hc11_frame_unwind_cache): New function to analyze frames.
2577 (m68hc11_frame_this_id): New function to create new frame struct.
2578 (m68hc11_frame_prev_register): New function to unwind a register from
2579 the frame.
2580 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2581 (m68hc11_frame_p): New function for the above.
2582 (m68hc11_frame_base_address): New function to return fp of frame.
2583 (m68hc11_frame_args_address): Update for frame.
2584 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2585 (m68hc11_unwind_sp): New function.
2586 (m68hc11_unwind_dummy_id): New function.
2587 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2588 calls.
2589
2590 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2591
2592 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2593 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2594 when we are beyond the current pc.
2595
2596 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2597
2598 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2599 from m68hc11_push_arguments.
2600 (m68hc11_push_arguments): Remove.
2601 (m68hc11_push_return_address): Remove.
2602 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2603 handlers; remove deprecated_extra_stack_alignment_needed.
2604
2605 2003-07-27 Andrew Cagney <cagney@redhat.com>
2606
2607 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2608 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2609 REAL_PC and not the pointer.
2610 * hppa-hpux-tdep.c: Include frame.h
2611
2612 2003-07-27 Andrew Cagney <cagney@redhat.com>
2613
2614 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2615 GDB_MULTI_ACH_PARTIAL.
2616
2617 2003-07-27 Andrew Cagney <cagney@redhat.com>
2618
2619 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2620 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2621 operator at start and not end of line.
2622 (decode_prologue): Ditto.
2623 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2624 frame_unwind_register_unsigned instead of
2625 frame_unwind_unsigned_register.
2626 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2627 read_register.
2628 (m32r_push_dummy_call): Use register_size instead of
2629 REGISTER_RAW_SIZE.
2630 (m32r_frame_sniffer): Replace m32r_frame_p.
2631 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2632 * m32r-rom.c (report_transfer_performance): Delete extern
2633 declaration.
2634 (m32r_load, m32r_upload_command): Use print_transfer_performance
2635 instead of report_transfer_performance.
2636 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2637 / add_show_from_set.
2638
2639 2003-07-26 Andrew Cagney <cagney@redhat.com>
2640
2641 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2642 store_return_value and extract_struct_value_address.
2643
2644 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2645
2646 PR c++/1267
2647 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2648 NULL, default to the section containing PC.
2649
2650 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2651
2652 * NEWS: Mention "regs" deprecated for m68hc11 too.
2653
2654 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2655 (m68hc11_print_register): New function to print out one register.
2656 (m68hc11_print_registers_info): New function to print registers.
2657 (show_regs): Deprecate and use the above.
2658 (m68hc11_gdbarch_init): Install the print_registers_info.
2659
2660 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2661
2662 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2663 that we have a SIGTRAP before returning non-zero.
2664
2665 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2666 Elena Zannoni <ezannoni@redhat.com>
2667
2668 * linespec.c (decode_line_2): Avoid crash if
2669 find_function_start_sal() returns empty record.
2670
2671 2003-07-23 Andreas Schwab <schwab@suse.de>
2672
2673 * ia64-tdep.c (ia64_print_insn): New function.
2674 (ia64_gdbarch_init): Set print_insn to it.
2675 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2676 deprecated_tm_print_insn_info.
2677
2678 2003-07-22 Michael Snyder <msnyder@redhat.com>
2679
2680 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2681 handle 8-bit returns (long long).
2682 (h8300h_extract_return_value): Ditto.
2683 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2684
2685 2003-07-22 Andrew Cagney <cagney@redhat.com>
2686
2687 * gdbarch.c Include "gdb_obstack.h".
2688 (struct gdbarch): Add an "obstack".
2689 (alloc_gdbarch_data): Allocate the gdbarch data using
2690 GDBARCH_OBSTACK_CALLOC.
2691 (free_gdbarch_data): Delete function.
2692 (gdbarch_obstack_zalloc): New function.
2693 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2694 Assert that the architecture is not initialized.
2695 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2696 vector from the obstack.
2697 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2698 architecture obstack.
2699 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2700 (set_gdbarch_data): Assert that the data is not initialized.
2701 (struct gdbarch_data): Delete member "free".
2702 (register_gdbarch_data): Do not initialize "free".
2703 * gdbarch.h, gdbarch.c: Re-generate.
2704
2705 2003-07-22 Andrew Cagney <cagney@redhat.com>
2706
2707 * configure.in (build_warnings): Add -Wformat-nonliteral.
2708 * configure: Re-generate.
2709
2710 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2711
2712 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2713
2714 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2715
2716 * findvar.c (read_var_value): Remove case for thread local storage
2717 variables. It is now entirely handled by the dwarf2 location
2718 expression code.
2719 * printcmd.c (address_info): Ditto.
2720 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2721 enumeration value.
2722 (struct symbol): Remove objfile field, which was used by
2723 LOC_THREAD_LOCAL_STATIC only.
2724 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2725 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2726 usage of objfile pointer.
2727 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2728 thread local variables.
2729 Add include of objfiles.h.
2730 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2731 storage variables.
2732 * Makefile.in (dwarf2loc.o): Update dependencies.
2733
2734 2003-07-22 Andrew Cagney <cagney@redhat.com>
2735
2736 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2737 get_frame_base.
2738 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2739 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2740 (struct value): Add opaque declaration.
2741 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2742
2743 2003-07-21 Andrew Cagney <cagney@redhat.com>
2744
2745 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2746 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2747
2748 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2749
2750 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2751 regcache_cooked_read_unsigned instead of read_register.
2752 (m68hc11_saved_pc_after_call): Likewise.
2753 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2754 instead of write_register.
2755 (m68hc11_register_type): New function.
2756 (m68hc11_register_virtual_type): Remove.
2757 (m68hc11_store_return_value): Convert to use the regcache.
2758 (m68hc11_extract_struct_value_address): Likewise.
2759 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2760 m68hc11_register_type; undeprecate store_return_value and
2761 extract_struct_value_address.
2762
2763 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2764
2765 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2766 and translate to use regcache.
2767 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2768
2769 2003-07-18 Andrew Cagney <cagney@redhat.com>
2770
2771 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2772 * gdbarch.h, gdbarch.c: Re-generate.
2773 * i386-tdep.c (i386_gdbarch_init): Do not set
2774 DWARF2_BUILD_FRAME_INFO.
2775 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2776 unconditionally.
2777 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2778 DWARF2_BUILD_FRAME_INFO.
2779
2780 2003-07-18 Andrew Cagney <cagney@redhat.com>
2781
2782 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2783 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2784
2785 2003-07-18 Andrew Cagney <cagney@redhat.com>
2786
2787 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2788 frame_unwind_address_in_block, instead of frame_pc_unwind.
2789 (dwarf2_frame_cache): Ditto.
2790
2791 2003-07-18 Andrew Cagney <cagney@redhat.com>
2792
2793 * user-regs.h (struct gdbarch): Declare opaque.
2794 * ui-out.h (struct ui_file): Declare opaque.
2795 * dwarf2-frame.h (struct frame_info): Declare opaque.
2796
2797 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2798
2799 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2800 #include "...".
2801 (procfs_meminfo): Change strerror to safe_strerror.
2802 (procfs_can_run): Remove K&R badness.
2803
2804 2003-07-17 Michael Snyder <msnyder@redhat.com>
2805
2806 * remote-sim.c: Comment typo fix.
2807
2808 2003-07-17 Andrew Cagney <cagney@redhat.com>
2809
2810 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2811 configure.
2812 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2813 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2814 GDB_MULTI_ARCH_PARTIAL.
2815
2816 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2817
2818 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2819 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2820 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2821
2822 2003-07-16 Theodore A. Roth <troth@openavr.org>
2823
2824 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2825 found.
2826 (avr_frame_unwind_cache): Don't unwind FP for main.
2827 Update a comment.
2828 Save the computed prev_sp.
2829 (avr_saved_regs_unwinder): Remove function.
2830 (avr_frame_prev_register): Use PC unwind logic from
2831 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2832
2833 2003-07-16 Andrew Cagney <cagney@redhat.com>
2834
2835 * frame-base.h (frame_base_p_ftype): Delete definition.
2836 (frame_base_append_predicate): Delete declaration.
2837 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2838 (frame_unwind_append_predicate): Delete declaration.
2839 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2840 (append_predicate): Delete parameter "p".
2841 (frame_unwind_append_predicate): Delete function.
2842 (frame_unwind_append_sniffer): Update call to append_predicate.
2843 (frame_unwind_free): Delete function.
2844 (_initialize_frame_unwind): Pass NULL as "free" to
2845 register_gdbarch_data.
2846 (frame_unwind_init): Append the dummy_frame_sniffer.
2847 (frame_unwind_find_by_frame): Simplify.
2848 * frame-base.c (struct frame_base_table): Delete field "p".
2849 (append_predicate): Delete parameter "p".
2850 (frame_base_append_predicate): Delete function.
2851 (frame_base_append_sniffer): Update call to append_predicate.
2852 (frame_base_free): Delete function.
2853 (frame_base_find_by_frame): Simplify.
2854 (_initialize_frame_base): Pass NULL as "free" to
2855 register_gdbarch_data.
2856 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2857 (x86_64_sigtramp_frame_sniffer): Replace
2858 "x86_64_sigtramp_frame_p".
2859 (x86_64_init_abi): Set the frame unwind sniffers.
2860 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2861 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2862 (m68k_gdbarch_init): Set the frame unwind sniffers.
2863 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2864 "i386_sigtramp_frame_p".
2865 (i386_frame_sniffer): Replace "i386_frame_p".
2866 (i386_gdbarch_init): Set the frame unwind sniffers.
2867 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2868 (avr_gdbarch_init): Set the frame unwind sniffers.
2869 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2870 "alpha_sigtramp_frame_p"
2871 (alpha_heuristic_frame_sniffer): Replace
2872 "alpha_heuristic_frame_p".
2873 (alpha_gdbarch_init): Set the frame unwind sniffers.
2874 (alpha_dwarf2_init_abi): Ditto.
2875 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2876 "alpha_debug_frame_p".
2877 (alpha_mdebug_frame_base_sniffer): Replace
2878 "alpha_mdebug_frame_base_p".
2879 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2880 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2881 (d10v_gdbarch_init): Set the frame unwind sniffer.
2882 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2883 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2884 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2885 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2886 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2887 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2888
2889 2003-07-16 Michael Snyder <msnyder@redhat.com>
2890
2891 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2892 should go thru sh_dsp_register_sim_regno, else the dsp regs
2893 will not get the right values.
2894
2895 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2896
2897 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2898 deprecated_store_floating by call to store_typed_floating.
2899 (sh_sh4_register_convert_to_raw): Substitute call to
2900 deprecated_extract_floating by call to extract_typed_floating.
2901
2902 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2903
2904 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2905
2906 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2907
2908 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2909 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2910 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2911 as possible.
2912 (do_pseudo_register): Remove.
2913 (sh_push_dummy_code): New function.
2914 (sh64_store_struct_return): Rename from sh_store_struct_return.
2915 Only called for sh64 now.
2916 (sh_extract_struct_value_address): Regcache'ify.
2917 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2918 and accomodate new tasks.
2919 (sh64_push_return_address): Rename from sh_push_return_address.
2920 Only called for sh64 now.
2921 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2922 Regcache'ify.
2923 (sh3e_sh4_extract_return_value): Regcache'ify.
2924 (sh_default_store_return_value): Ditto.
2925 (sh3e_sh4_store_return_value): Ditto.
2926 (sh_default_register_byte): Remove.
2927 (sh_sh4_register_byte): Remove.
2928 (sh_default_register_raw_size): Remove.
2929 (sh_sh4_register_raw_size): Remove.
2930 (sh_register_virtual_size): Remove.
2931 (sh_sh3e_register_virtual_type): Remove.
2932 (sh_sh3e_register_type): New function.
2933 (sh_sh4_register_virtual_type): Remove.
2934 (sh_sh4_register_type): New function.
2935 (sh_default_register_virtual_type): Remove.
2936 (sh_default_register_type): New function.
2937 (do_fv_register_info): Add parameters to accomodate call from
2938 sh_print_registers_info.
2939 (do_dr_register_info): Ditto.
2940 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2941 Add parameters to accomodate call from sh_print_registers_info.
2942 (sh_do_fp_register): Ditto.
2943 (sh64_do_pseudo_register): Call do_dr_register_info,
2944 do_fv_register_info and sh_do_fp_register with default parameters.
2945 (sh_do_register): Add parameters to accomodate call from
2946 sh_print_registers_info.
2947 (sh_print_register): Ditto.
2948 (sh_print_registers_info): Rename from sh_do_registers_info.
2949 Add parameters to be used as gdbarch_print_registers_info
2950 implementation. Accomodate removed do_pseudo_register function
2951 pointer.
2952 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2953 function pointer. Call sh_print_register with default parameters.
2954 (sh64_do_registers_info): Call sh_print_registers_info instead of
2955 sh_do_registers_info.
2956 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2957 detection of deprecated vs. non-deprecated functionality.
2958 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2959 function pointer assignments by direct function calls.
2960
2961 2003-07-15 Andrew Cagney <cagney@redhat.com>
2962
2963 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2964 (frame_register_unwind, create_new_frame): Ditto.
2965 (legacy_get_prev_frame, get_frame_type): Ditto.
2966 (get_frame_base_address): Use frame_base_find_by_frame.
2967 (get_frame_locals_address): Use frame_base_find_by_frame.
2968 (get_frame_args_address): Use frame_base_find_by_frame.
2969 * frame-base.h (frame_base_sniffer_ftype): Declare.
2970 (frame_base_append_sniffer): Declare.
2971 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2972 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2973 (frame_base_append_sniffer): New function.
2974 (frame_base_append_predicate): Add a NULL sniffer.
2975 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2976 (struct frame_base_table): Add "sniffer".
2977 (frame_base_free): Free the "sniffer" table.
2978 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2979 (frame_unwind_append_sniffer): Declare.
2980 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2981 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2982 (struct frame_unwind_table): Add "sniffer", delete "middle".
2983 (append_predicate): Add "sniffer" parameter, append the sniffer.
2984 (frame_unwind_init): Update append_predicate call.
2985 (frame_unwind_append_sniffer): New function.
2986 (frame_unwind_append_predicate): Update append_predicate call.
2987 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2988
2989 2003-07-15 Andrew Cagney <cagney@redhat.com>
2990
2991 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2992 before code inhibiting repeated unwind attempts. Add to
2993 commentary on that test's problems.
2994 * blockframe.c (inside_main_func): Look for "main" in the minimal
2995 symbol table.
2996 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2997 identical.
2998
2999 2003-07-15 Andrew Cagney <cagney@redhat.com>
3000
3001 * complaints.c (struct explanation): Define.
3002 (struct complaints): Change type of "explanation" to "struct
3003 explanation".
3004 (symfile_explanations): Convert to a "struct explanation" table.
3005 (vcomplaint): Update.
3006
3007 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3008
3009 * x86-64-linux-nat.c (regmap): Removed.
3010 (supply_gregset, fill_gregset): Call
3011 x86_64_linux_(fill,supply)_gregset functions.
3012 * x86-64-linux-tdep.c (USER_*): New defines.
3013 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3014 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3015 New functions.
3016 (fetch_core_registers): Ditto.
3017 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3018 * x86-64-linux-tdep.h: New file.
3019 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3020 and core-regset.o.
3021 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3022
3023 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3024
3025 * x86-64-tdep.c (x86_64_store_return_value): Use
3026 regcache_cooked_write_part instead of regcache_cooked_write.
3027
3028 * configure.host: Add x86_64-*-freebsd*.
3029 * configure.tgt: Add x86_64-*-freebsd*.
3030 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3031 * amd64fbsd-nat.c: New file.
3032 * amd64fbsd-tdep.c: New file.
3033 * config/i386/nm-fbsd64.h: New file.
3034 * config/i386/fbsd64.mh: New file.
3035 * config/i386/fbsd64.mt: New file.
3036
3037 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3038
3039 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3040 `sc_regs_offset' and `sc_fpregs_offset'.
3041 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3042 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3043 (alpha_sigtramp_register_address): Rewrite to use new members of
3044 `struct gdbarch_tdep'.
3045 (alpha_gdbarch_init): Initialize new members of struct
3046 gdbarch_tdep'.
3047 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3048 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3049 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3050 (alphafbsd_pc_in_sigtramp): Implement.
3051 (alphafbsd_sigtramp_offset): New function.
3052 (alphafbsd_sigcontext_addr): New function.
3053 (alphafbsd_init_abi): Initialize signal trampoline related members
3054 of `struct gdbarch_tdep'.
3055 (_initialize_alphafbsd_tdep): Add prototype.
3056
3057 2003-07-11 Theodore A. Roth <troth@openavr.org>
3058
3059 * Makefile.in (install-only): Quote sed expression when generating
3060 transformed_name.
3061
3062 2003-07-11 Richard Henderson <rth@redhat.com>
3063
3064 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3065 * dwarf2-frame.c: Include complaints.h.
3066 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3067 variable initialization; return NULL on error.
3068 (decode_frame_entry): New.
3069
3070 2003-07-11 Andrew Cagney <cagney@redhat.com>
3071
3072 * frame.h (frame_address_in_block): Delete declaration.
3073 * blockframe.c (frame_address_in_block): Delete function.
3074 (get_frame_block): Use get_frame_address_in_block.
3075 (block_innermost_frame): Ditto.
3076 * stack.c (print_frame, backtrace_command_1): Ditto.
3077
3078 * frame.h (get_frame_address_in_block): Declare.
3079 (frame_unwind_address_in_block): Declare.
3080 * frame.c (frame_unwind_address_in_block): New function.
3081 (get_frame_address_in_block): New function.
3082
3083 2003-07-10 Andrew Cagney <cagney@redhat.com>
3084
3085 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3086 pre-default. Note: re-generate has no effect.
3087
3088 2003-07-10 Andrew Cagney <cagney@redhat.com>
3089
3090 * gdbarch.sh: When a variable, but not a function, compare against
3091 0. Fix problem in previous patch.
3092 * gdbarch.c: Re-generate.
3093
3094 2003-07-10 Andrew Cagney <cagney@redhat.com>
3095
3096 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3097 functions against NULL, not 0.
3098 * gdbarch.c: Re-generate.
3099
3100 2003-07-10 Fred Fish <fnf@ninemoons.com>
3101
3102 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3103 null string instead of a null pointer.
3104 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3105
3106 2003-07-09 Michael Snyder <msnyder@redhat.com>
3107
3108 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3109
3110 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3111
3112 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3113 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3114 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3115 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3116 * x86-64-tdep.c: ... from here.
3117
3118 2003-07-09 Andreas Schwab <schwab@suse.de>
3119
3120 * m68k-tdep.h (enum struct_return): Define.
3121 (struct gdbarch_tdep): Add struct_return.
3122 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3123 bytes are padded to the right, not to the left. Pass struct value
3124 address in register %a1, not on stack.
3125 (m68k_use_struct_convention): New function.
3126 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3127 struct_return in tdep to pcc_struct_return.
3128 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3129 reg_struct_return.
3130
3131 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3132
3133 * somread.c (som_symfile_offsets): Fix compilation error.
3134
3135 2003-07-09 Andrew Cagney <cagney@redhat.com>
3136
3137 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3138 Add comments about the checks.
3139
3140 2003-07-08 Andrew Cagney <cagney@redhat.com>
3141
3142 * Makefile.in: Make dependency section headers consistent.
3143 (config_h): Move to $BUILD headers section.
3144 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3145 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3146 (ada-exp.tab.c): Move to YACC/LEX section.
3147 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3148 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3149
3150 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3151
3152 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3153 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3154 of strerror with safe_strerror, use ISO C function definitions,
3155 and replace instances of sprintf with snprintf.
3156
3157 2003-07-07 Andrew Cagney <cagney@redhat.com>
3158
3159 * frame.c (get_prev_frame): Enable check for identical frames.
3160 Update comments. Update error messages.
3161
3162 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3163
3164 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3165
3166 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3167
3168 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3169 sort_symtab_syms, no longer necessary.
3170
3171 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3172
3173 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3174
3175 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3176
3177 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3178 (mips_register_byte): Likewise.
3179
3180 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3181
3182 * Makefile.in (sparc_tdep_h): New.
3183 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3184 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3185 * sparc-linux-nat.c: Include "sparc-tdep.h".
3186 * sparc-nat.c: Likewise.
3187 * sparc-tdep.c: Likewise.
3188 * sparc64nbsd-nat.c: Likewise.
3189 * sparcnbsd-nat.c: Likewise.
3190 * sparcnbsd-tdep.c: Likewise.
3191 * sparc-tdep.h: New file.
3192 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3193 and sparc_npc_regnum.
3194
3195 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3196
3197 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3198 (mips_linux_cannot_store_register): List supported instead of
3199 unsupported registers.
3200
3201 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3202
3203 * disasm.c (dump_insns): Separate instructions from addresses.
3204
3205 2003-07-07 Andreas Schwab <schwab@suse.de>
3206
3207 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3208 dependencies.
3209 * m68k-tdep.c (NUM_FREGS): Delete.
3210 (SIG_PC_FP_OFFSET): Delete.
3211 (TARGET_M68K): Delete.
3212 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3213 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3214 P_MOVEL_SP, P_MOVEML_SP): Define.
3215 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3216 P_TRAP): Delete.
3217 (m68k_register_raw_size): Delete.
3218 (m68k_register_virtual_size): Delete.
3219 (m68k_register_type): Renamed from m68k_register_virtual_type and
3220 add gdbarch argument.
3221 (m68k_store_struct_return): Delete.
3222 (m68k_deprecated_extract_return_value): Delete.
3223 (m68k_deprecated_extract_struct_value_address): Delete.
3224 (m68k_frame_chain): Delete.
3225 (m68k_frame_saved_pc): Delete.
3226 (m68k_fix_call_dummy): Delete.
3227 (m68k_push_dummy_frame): Delete.
3228 (m68k_pop_frame): Delete.
3229 (m68k_extract_return_value): New function.
3230 (m68k_store_return_value): Rewrite using regcache.
3231 (m68k_extract_struct_value_address): Rewrite using regcache.
3232 (m68k_push_dummy_call): New function.
3233 (struct m68k_frame_cache): Define.
3234 (m68k_alloc_frame_cache): New function.
3235 (m68k_analyze_frame_setup): New function.
3236 (m68k_analyze_register_saves): New function.
3237 (m68k_analyze_prologue): New function.
3238 (m68k_skip_prologue): Rewrite using above functions.
3239 (m68k_unwind_pc): New function.
3240 (m68k_frame_cache): New function.
3241 (m68k_frame_this_id): New function.
3242 (m68k_frame_prev_register): New function.
3243 (m68k_frame_unwind): New variable.
3244 (m68k_frame_p): New function.
3245 (m68k_sigtramp_frame_cache): New function.
3246 (m68k_sigtramp_frame_this_id): New function.
3247 (m68k_sigtramp_frame_prev_register): New function.
3248 (m68k_sigtramp_frame_unwind): New variable.
3249 (m68k_sigtramp_frame_p): New function.
3250 (m68k_frame_base_address): New function.
3251 (m68k_frame_base): New function.
3252 (m68k_unwind_dummy_id): New function.
3253 (fill_gregset): Use regcache_collect.
3254 (fill_fpregset): Likewise.
3255 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3256 defined.
3257 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3258 deprecated_init_frame_pc, deprecated_store_struct_return,
3259 deprecated_extract_return_value, deprecated_store_return_value,
3260 deprecated_frame_chain, deprecated_frame_saved_pc,
3261 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3262 deprecated_register_virtual_size,
3263 deprecated_max_register_raw_size,
3264 deprecated_max_register_virtual_size,
3265 deprecated_register_virtual_type, deprecated_register_size,
3266 deprecated_register_byte, deprecated_register_bytes,
3267 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3268 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3269 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3270 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3271 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3272 deprecated_push_dummy_frame, deprecated_pop_frame,
3273 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3274 only if SYSCALL_TRAP is defined. Set extract_return_value,
3275 store_return_value, extract_struct_value_address, register_type,
3276 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3277 predicates.
3278 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3279 M68K_MAX_REGISTER_SIZE): Define.
3280 (struct m68k_sigtramp_info): Define.
3281 (struct gdbarch_tdep): Add get_sigtramp_info.
3282 * m68klinux-nat.c (fetch_register): Use register_size instead of
3283 REGISTER_RAW_SIZE. Don't put assignment in if.
3284 (store_register): Likewise.
3285 (fetch_inferior_registers): Likewise.
3286 (store_inferior_registers): Likewise.
3287 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3288 (m68k_linux_frame_saved_pc): Delete.
3289 (m68k_linux_sigcontext_reg_offset,
3290 m68k_linux_ucontext_reg_offset): Define.
3291 (m68k_linux_get_sigtramp_info): New function.
3292 (m68k_linux_extract_return_value): Rewrite using regcache.
3293 (m68k_linux_store_return_value): Likewise.
3294 (m68k_linux_extract_struct_value_address): Likewise.
3295 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3296 Don't set deprecated_frame_saved_pc,
3297 deprecated_extract_return_value, deprecated_store_return_value,
3298 deprecated_extract_struct_value_address. Set
3299 extract_return_value, store_return_value,
3300 extract_struct_value_address.
3301
3302 2003-07-07 Andrew Cagney <cagney@redhat.com>
3303
3304 * expprint.c: Include "user-regs.h" instead of "frame.h".
3305 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3306 frame_map_regnum_to_name.
3307 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3308 (frame_map_name_to_regnum): Simplify, call
3309 user_reg_map_name_to_regnum.
3310 (frame_map_regnum_to_name): Simplify, call
3311 user_reg_map_regnum_to_name.
3312 (frame_register_unwind): Update.
3313 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3314 (_initialize_frame_reg): Call user_reg_add_builtin.
3315 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3316 (value_of_register): Use value_of_user_reg.
3317 * eval.c (evaluate_subexp_standard): Update.
3318 * parse.c (write_dollar_variable): Update.
3319 * d10v-tdep.c (d10v_print_registers_info): Update.
3320 * infcmd.c (registers_info): Update.
3321 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3322 (builtin_regs_h): Delete macro.
3323 (user_regs_h): Define.
3324 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3325 (builtin-regs.o): Delete target.
3326 (user-regs.o): Specify dependencies.
3327 (expprint.o): Update dependencies.
3328 (findvar.o): Update dependencies.
3329 (frame.o): Update dependencies.
3330 (std-regs.o): Update dependencies.
3331
3332 2003-07-06 Christopher Faylor <cgf@redhat.com>
3333
3334 * win32-nat.c (solib_symbols_add): Use one variable for all section
3335 address stuff. Pass variable rather than address of variable to
3336 safe_symbol_file_add.
3337
3338 2003-07-06 Andreas Schwab <schwab@suse.de>
3339
3340 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3341
3342 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3343
3344 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3345
3346 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3347
3348 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3349
3350 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3351
3352 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3353 * config/i386/nto.mh: New file.
3354 * config/i386/nm-nto.h: New file.
3355 * configure.host: Add i[3456]86-*-nto*.
3356
3357 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3358
3359 * remote-vx.c (vx_add_symbols): Fix compilation error.
3360
3361 2003-07-03 Andrew Cagney <cagney@redhat.com>
3362
3363 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3364 * gdbarch.h, gdbarch.c: Re-generate.
3365 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3366 (legacy_register_name): Declare.
3367 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3368 (REGISTER_NAME): Define.
3369 * sparc-tdep.c (legacy_register_name): New function.
3370 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3371 (REGISTER_NAME): Define.
3372 (hppa64_register_name): Declare.
3373 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3374 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3375 (hppa64_register_name): New function.
3376 (hppa_register_name): New function.
3377 * arch-utils.c (legacy_register_name): Delete.
3378 * arch-utils.h (legacy_register_name): Delete.
3379
3380 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3381
3382 * cli/cli-interp.c (cli_interpreter_resume): Update the
3383 cli_uiout's stream to gdb_stdout.
3384
3385 2003-07-03 Andrew Cagney <cagney@redhat.com>
3386
3387 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3388 predicate.
3389 * gdbarch.h, gdbarch.c: Re-generate.
3390 * regcache.c (init_regcache_descr): Use legacy code when either
3391 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3392
3393 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3394
3395 * NEWS: Move "set logging" entry into GDB 6.0 section.
3396
3397 2003-07-02 Jim Blandy <jimb@redhat.com>
3398
3399 * s390-tdep.c (struct frame_extra_info): new member:
3400 'stack_bought_valid'.
3401 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3402 initialize fextra_info->stack_bought.
3403 (s390_frameless_function_invocation): Don't trust the value of
3404 fextra_info_ptr->stack_bought unless
3405 fextra_info->stack_bought_valid is set.
3406
3407 New S390 prologue analyzer.
3408 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3409 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3410 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3411 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3412 compute_x_addr, s390_on_stack, s390_store,
3413 s390_get_signal_frame_info): New functions.
3414 (S390_NUM_SPILL_SLOTS): New macro.
3415 (s390_get_frame_info): Rewritten.
3416 (is_arg_reg): Deleted.
3417
3418 Break out the decoding of S/390 instructions into separate
3419 functions, to make it more legible, and easier to check
3420 against the spec.
3421 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3422 is_rx, is_rxe): New functions.
3423 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3424 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3425 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3426 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3427 enums for opcode values. (Is this an improvement?)
3428
3429 2003-07-02 Andrew Cagney <cagney@redhat.com>
3430
3431 * i386-tdep.c: Revert change committed as part of trad-frame code
3432 below.
3433
3434 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3435
3436 * breakpoint.c (insert_catchpoint): Make static.
3437
3438 2003-07-02 Andreas Schwab <schwab@suse.de>
3439
3440 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3441 former ia64_push_arguments and ia64_push_return_address, and use
3442 regcache functions instead of read/write_register.
3443 (ia64_gdbarch_init): Set push_dummy_call instead of
3444 deprecated_push_arguments and deprecated_push_return_address.
3445
3446 2003-07-01 Andreas Jaeger <aj@suse.de>
3447
3448 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3449 before the call.
3450 Set %rax only to number of SSE registers used.
3451
3452 2003-07-01 Andrew Cagney <cagney@redhat.com>
3453
3454 * trad-frame.h: Update comments, a -1 .addr is reserved.
3455 (trad_frame_value_p, trad_frame_addr_p): Declare.
3456 (trad_frame_reg_p): Declare.
3457 (trad_frame_set_value): Rename trad_frame_register_value.
3458 (trad_frame_set_unknown): Declare.
3459 * trad-frame.c (trad_frame_realreg_p): New function.
3460 (trad_frame_addr_p, trad_frame_value_p): New function.
3461 (trad_frame_set_unknown): New function.
3462 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3463 (trad_frame_prev_register): Use trad_frame_realreg_p,
3464 trad_frame_addr_p and trad_frame_value_p.
3465 (trad_frame_set_value): Rename trad_frame_register_value.
3466 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3467 and trad_frame_set_value.
3468
3469 2003-06-30 Jim Blandy <jimb@redhat.com>
3470
3471 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3472 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3473 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3474 for 16 registers, and then 32 more bytes.
3475 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3476 New macros.
3477 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3478 Move up in the file, since it's now used by is_simple_arg.
3479 (is_simple_arg): Don't assume registers are four bytes long.
3480 Exclude all double arguments. Extended floats are not simple
3481 args.
3482 (is_power_of_two): New function.
3483 (pass_by_copy_ref): Call is_power_of_two, and check that the
3484 length fits in a register, rather than listing all the acceptable
3485 sizes. Extended floats are not passed by reference.
3486 (s390_push_arguments): Don't assume registers are four bytes long.
3487 Reserve an argument register to point to the buffer for structures
3488 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3489 S390_STACK_FRAME_OVERHEAD.
3490
3491 2003-06-30 Andreas Schwab <schwab@suse.de>
3492
3493 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3494 format error message.
3495
3496 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3497
3498 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3499
3500 2003-06-30 David Carlton <carlton@kealia.com>
3501
3502 Band-aid for PR c++/1245.
3503 * Makefile.in (cp-support.o): Depend on complaints_h.
3504 * cp-support.c: Include complaints.h. Add declaration for
3505 find_last_component.
3506 (cp_find_first_component): Separate code into
3507 cp_find_first_component_aux.
3508 (cp_find_first_component_aux): Call demangled_name_complaint.
3509 (demangled_name_complaint): New.
3510
3511 2003-06-30 Andrew Cagney <cagney@redhat.com>
3512
3513 * remote.c (remote_write_bytes): Explicitly compute and then use
3514 the payload size. Update comments to reflect. Fixes problem of
3515 GDB not sending small packets as found by Fred Fish.
3516
3517 2003-06-30 Andrew Cagney <cagney@redhat.com>
3518
3519 * remote.c (remote_async_wait): Fix -Wformat problem.
3520
3521 2003-06-29 Andrew Cagney <cagney@redhat.com>
3522
3523 * remote.c (remote_wait): Call error, and not warning, when the
3524 packet is corrupt.
3525 (remote_async_wait): Ditto.
3526
3527 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3528
3529 * sparc-tdep.c (sparc_y_regnum): Make external again.
3530
3531 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3532
3533 * cli/cli-logging.c (pop_output_files): Add void to function
3534 definition.
3535
3536 2003-06-29 Andrew Cagney <cagney@redhat.com>
3537
3538 * frame.c (frame_register_unwind): Use unsigned char when dumping
3539 the buffer contents.
3540
3541 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3542
3543 * cli/cli-logging.c: New file.
3544 * cli-out.c (struct ui_out_data): Add original_stream.
3545 (cli_redirect): New function.
3546 (cli_ui_out_impl): Add cli_redirect.
3547 (cli_out_new): Initialize original_stream.
3548 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3549 (uo_redirect, ui_out_redirect): New.
3550 * ui-out.h (struct ui_out_impl): Add redirect member.
3551 (redirect_ftype): New.
3552 (ui_out_redirect): Add prototype.
3553 * Makefile.in: Add rules for cli-logging.c.
3554 * NEWS: Mention "set logging".
3555
3556 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3557
3558 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3559
3560 2003-06-27 Andrew Cagney <cagney@redhat.com>
3561
3562 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3563 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3564 * avr-tdep.c (avr_call_dummy_address): Delete function.
3565 (avr_gdbarch_init): Do not set call_dummy_address.
3566
3567 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3568
3569 * symfile.c (syms_from_objfile): Move variables to inner block.
3570 Move the checks for the non-mainline case a bit earlier to avoid
3571 doing some useless computations.
3572
3573 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3574
3575 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3576
3577 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3578
3579 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3580 sections.
3581
3582 2003-06-26 Michael Chastain <mec@shout.net>
3583
3584 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3585 gdb/testsuite/gdb.c++/pr-1210.exp.
3586
3587 2003-06-26 Andrew Cagney <cagney@redhat.com>
3588
3589 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3590 altivec_expression.h and altivec_registers.h.
3591
3592 2003-06-26 Andrew Cagney <cagney@redhat.com>
3593
3594 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3595 info->mach when MIPS16. Patch suggested by Fred Fish.
3596
3597 2003-06-26 Andrew Cagney <cagney@redhat.com>
3598
3599 * utils.c (internal_vproblem): Print the problem to a reason
3600 buffer and then pass to query. Make the msg variable more local.
3601
3602 2003-06-26 Andrew Cagney <cagney@redhat.com>
3603
3604 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3605 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3606 * gdbarch.h, gdbarch.c: Re-generate.
3607 * frame-base.c (default_frame_args_address): Update. Use
3608 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3609 not available.
3610 (default_frame_locals_address): Ditto for
3611 DEPRECATED_FRAME_LOCALS_ADDRESS.
3612 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3613 (vax_frame_num_args): Update.
3614 (vax_gdbarch_init): Update.
3615 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3616 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3617 * mcore-tdep.c (mcore_gdbarch_init): Update.
3618 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3619 * ia64-tdep.c (ia64_gdbarch_init): Update.
3620 * symtab.h (address_class): Update comments.
3621 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3622 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3623 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3624 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3625 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3626 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3627 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3628 * alpha-mdebug-tdep.c: Update.
3629 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3630
3631 2003-06-26 Andreas Jaeger <aj@suse.de>
3632
3633 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3634 of SSE registers so that varargs functions work. Rework handling
3635 of passing arguments on the stack.
3636 (x86_64_store_return_value): Return double and float values in SSE
3637 register.
3638
3639 2003-06-24 Michael Chastain <mec@shout.net>
3640
3641 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3642 the "constructor breakpoints ignored" bug.
3643
3644 2003-06-25 David Carlton <carlton@kealia.com>
3645
3646 * MAINTAINERS: Update e-mail address.
3647
3648 2003-06-24 Jim Blandy <jimb@redhat.com>
3649
3650 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3651
3652 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3653 function.
3654 (ppc_linux_init_abi): Register it as the
3655 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3656
3657 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3658 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3659 method.
3660
3661 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3662 (ppc64_standard_linkage_target): Use it.
3663
3664 2003-06-23 Andrew Cagney <cagney@redhat.com>
3665
3666 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3667 for 0 "int0" and 4 "int32" sized registers.
3668 * gdbtypes.c (builtin_type_int0): Define.
3669 (build_gdbtypes): Initialize builtin_type_int0.
3670 * gdbtypes.h (builtin_type_int0): Declare.
3671
3672 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3673
3674 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3675 as characters are unsigned.
3676
3677 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3678
3679 PR gdb/1179
3680 * dwarfread.c (struct_type): Skip static fields without crashing.
3681
3682 2003-06-22 Andrew Cagney <cagney@redhat.com>
3683
3684 GDB 6.0 branch created.
3685 * README: Update.
3686 * PROBLEMS: Update. Empty.
3687 * NEWS: Update.
3688
3689 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3690
3691 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3692 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3693
3694 2003-06-22 Andrew Cagney <cagney@redhat.com>
3695
3696 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3697 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3698 Velikov.
3699
3700 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3701
3702 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3703 compilers.
3704
3705 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3706
3707 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3708 argument of val_print.
3709 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3710 to the address argument of baseclass_offset or target_read_memory.
3711 Do add it to the argument of cp_print_value_fields.
3712
3713 2003-06-21 Andrew Cagney <cagney@redhat.com>
3714
3715 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3716 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3717 instead of 0..NUM_REGS.
3718 (mips_register_reggroup_p): New function.
3719 (mips_pseudo_register_write): New function.
3720 (mips_pseudo_register_read): New function.
3721 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3722 based on the register's type.
3723 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3724 cooked.
3725 (mips_get_saved_register): Simplify. Assert that REGNO is a
3726 pseudo / cooked.
3727 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3728 (mips_register_type): Replace mips_register_virtual_type. Map
3729 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3730 when available.
3731 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3732 that the register is cooked / virtual.
3733 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3734 Only get the extra info when needed.
3735 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3736 (mips32_heuristic_proc_desc): Fetch the cooked register.
3737 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3738 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3739 (mips_print_register): Use gdbarch_register_type, instead of
3740 REGISTER_VIRTUAL_TYPE.
3741 (print_gp_register_row): Use gdbarch_register_type, instead of
3742 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3743 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3744 Print the pseudo / cooked registers.
3745 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3746 Print the pseudo / cooked registers.
3747 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3748 REG_NUM is pseudo / cooked.
3749 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3750 (mips_n32n64_xfer_return_value): Ditto.
3751 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3752 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3753 (mips_register_sim_regno): New function.
3754 (mips_gdbarch_init): Set deprecated_register_byte,
3755 register_group_p, pseudo_register_write, pseudo_register_read,
3756 register_sim_regno, and num_pseudo_regs. Set register_type,
3757 instead of register_virtual_type.
3758 * Makefile.in (mips-tdep.o): Update dependencies.
3759 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3760 REGISTER_VIRTUAL_TYPE.
3761 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3762 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3763 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3764 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3765 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3766
3767 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3768
3769 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3770 * cli/cli-cmds.c: Include "gdb_vfork.h".
3771 (shell_escape): Use vfork.
3772
3773 2003-06-21 Andrew Cagney <cagney@redhat.com>
3774
3775 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3776 32 bit floating-point register saves.
3777
3778 * frame.h (deprecated_unwind_get_saved_register): Delete.
3779 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3780 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3781 and deprecated_get_next_frame_hack instead of
3782 deprecated_unwind_get_saved_register.
3783
3784 * mips-tdep.c (mips_dump_tdep): Do not print
3785 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3786
3787 * frame.c (get_frame_register): New function.
3788 (frame_unwind_register_signed): New function.
3789 (get_frame_register_signed): New function.
3790 (frame_unwind_register_unsigned): New function.
3791 (get_frame_register_unsigned): New function.
3792 * frame.h: Add comments on naming schema.
3793 (get_frame_register, frame_unwind_register_signed): Declare.
3794 (get_frame_register_signed, get_frame_register_signed): Declare.
3795 (frame_unwind_register_unsigned): Declare.
3796 (get_frame_register_unsigned): Declare.
3797
3798 2003-06-20 Theodore A. Roth <troth@openavr.org>
3799
3800 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3801
3802 2003-06-20 Theodore A. Roth <troth@openavr.org>
3803
3804 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3805 (avr_read_sp): Ditto.
3806
3807 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3808
3809 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3810 * config/arm/nm-linux.h: Likewise.
3811 * config/arm/tm-linux.h: Likewise.
3812 * config/ia64/nm-linux.h: Likewise.
3813 * config/ia64/tm-ia64.h: Likewise.
3814 * config/s390/tm-linux.h: Likewise.
3815 * config/s390/tm-s390.h: Likewise.
3816 * s390-nat.c: Likewise.
3817 * s390-tdep.c: Likewise.
3818
3819 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3820 * config/ia64/linux.mt: Likewise.
3821 * config/m68k/linux.mh: Likewise.
3822 * config/mips/linux.mt: Likewise.
3823 * config/powerpc/linux.mh: Likewise.
3824 * config/sh/linux.mt: Likewise.
3825
3826 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3827
3828 * solib.c (solib_open): Change tests for whether to search
3829 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3830 comments.
3831
3832 2003-06-19 Theodore A. Roth <troth@openavr.org>
3833
3834 * avr-tdep.c (avr_frame_address): Delete function.
3835 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3836 set_gdbarch_frame_args_address.
3837
3838 2003-06-19 Andrew Cagney <cagney@redhat.com>
3839
3840 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3841 (REGISTER_CONVERT_FROM_TYPE): Delete.
3842 (mips_register_convert_to_type): Delete declaration.
3843 (mips_register_convert_from_type): Delete declaration.
3844 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3845 kernel/.
3846
3847 2003-06-19 Michael Snyder <msnyder@redhat.com>
3848
3849 * linux-nat.h: New file.
3850 * linux-nat.c: Include linux-nat.h.
3851 * lin-lwp.c: Include linux-nat.h.
3852 Move struct lwp_info def to linux-nat.h.
3853 * linux-proc.c: Include linux-nat.h.
3854 (linux_make_note_section): Iterate over lwps instead of threads.
3855 (linux_do_thread_registers): Use lwp instead of merged pid.
3856 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3857 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3858 Add dependency on linux_nat_h.
3859
3860 2003-06-19 Theodore A. Roth <troth@openavr.org>
3861
3862 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3863
3864 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3865
3866 * varobj.c (get_type, get_target_type): Use check_typedef.
3867
3868 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3869
3870 * breakpoint.c (insert_catchpoint): Call internal_error.
3871
3872 2003-06-19 Theodore A. Roth <troth@openavr.org>
3873
3874 * avr-tdep.c (avr_push_dummy_code): Delete function.
3875 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3876
3877 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3878
3879 * arch-utils.c (default_prepare_to_proceed): Remove.
3880 (generic_prepare_to_proceed): Remove.
3881 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3882 (generic_prepare_to_proceed): Remove prototype.
3883 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3884 * gdbarch.c: Regenerate.
3885 * gdbarch.h: Regenerate.
3886 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3887 * hppah-nat.c (hppa_switched_threads): Remove.
3888 * infrun.c (prepare_to_proceed): New static function, copied from
3889 generic_prepare_to_proceed. Remove select_it argument.
3890 (proceed): Call prepare_to_proceed.
3891 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3892 variables.
3893 (ptrace_wait): Don't set the removed variables.
3894 (hppa_switched_threads): Remove.
3895 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3896 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3897 (lin_lwp_prepare_to_proceed): Remove prototype.
3898 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3899 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3900
3901 2003-06-18 Theodore A. Roth <troth@openavr.org>
3902
3903 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3904 trad-frame.h.
3905 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3906 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3907 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3908 (AVR_PROLOGUE_*): Enumerate prologue types.
3909 (struct frame_extra_info): Remove.
3910 (struct avr_unwind_cache): Define.
3911 (avr_write_sp): Delete function.
3912 (avr_read_fp): Ditto.
3913 (avr_init_extra_frame_info): Ditto.
3914 (avr_pop_frame): Ditto.
3915 (avr_frame_saved_pc): Ditto.
3916 (avr_saved_pc_after_call): Ditto.
3917 (avr_push_return_address): Ditto.
3918 (avr_frame_chain): Ditto.
3919 (avr_store_struct_return): Ditto.
3920 (avr_push_arguments): Ditto.
3921 (avr_scan_prologue): Update comments. Changed to set up the info for
3922 cache unwinding. Now returns end of prologue PC.
3923 (avr_skip_prologue): Better handling of functions lacking a prologue
3924 by using avr_scan_prologue.
3925 (avr_scan_arg_moves): New function.
3926 (avr_saved_regs_unwinder): Ditto.
3927 (avr_frame_unwind_cache): Ditto.
3928 (avr_unwind_pc): Ditto.
3929 (avr_frame_this_id): Ditto.
3930 (avr_frame_prev_register): Ditto.
3931 (avr_frame_p): Ditto.
3932 (avr_frame_base_address ): Ditto.
3933 (avr_unwind_dummy_id): Ditto.
3934 (avr_push_dummy_code): Ditto.
3935 (push_stack_item): Ditto.
3936 (pop_stack_item): Ditto.
3937 (avr_push_dummy_call): Ditto.
3938 (struct stack_item): Define.
3939 (avr_frame_unwind): Declare structure.
3940 (avr_frame_base): Ditto.
3941 (avr_gdbarch_init): Remove calls to
3942 set_gdbarch_deprecated_init_frame_pc,
3943 set_gdbarch_deprecated_target_read_fp,
3944 set_gdbarch_deprecated_dummy_write_sp,
3945 set_gdbarch_deprecated_fp_regnum,
3946 set_gdbarch_deprecated_push_arguments,
3947 set_gdbarch_deprecated_push_return_address,
3948 set_gdbarch_deprecated_pop_frame,
3949 set_gdbarch_deprecated_store_struct_return,
3950 set_gdbarch_deprecated_frame_init_saved_regs,
3951 set_gdbarch_deprecated_init_extra_frame_info,
3952 set_gdbarch_deprecated_frame_chain,
3953 set_gdbarch_deprecated_frame_saved_pc,
3954 set_gdbarch_deprecated_saved_pc_after_call.
3955 Add calls to set_gdbarch_push_dummy_call,
3956 set_gdbarch_push_dummy_code,
3957 frame_unwind_append_predicate,
3958 frame_base_set_default,
3959 set_gdbarch_unwind_dummy_id,
3960 set_gdbarch_unwind_pc.
3961 Wrap a long line.
3962
3963 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3964
3965 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3966 registers for H8/300S.
3967 (h8300_print_registers_info): Ditto.
3968 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3969
3970 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3971
3972 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3973 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3974 (lin_lwp_wait): Likewise. Update comments.
3975 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3976 (pull_pid_from_list, linux_record_stopped_pid): New.
3977
3978 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3979
3980 * ada-lang.c (scan_discrim_bound): Name first argument.
3981 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3982 declared by ALL_BLOCK_SYMBOLS.
3983
3984 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3985
3986 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3987 ("regcache.h"): Include it.
3988 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3989
3990 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3991
3992 * NEWS: Mention gdbserver detach change and "disconnect" command.
3993 * infcmd.c (disconnect_command): New function.
3994 (_initialize_infcmd): Add ``disconnect'' command.
3995 * remote.c (remote_async_detach): Delete.
3996 (remote_detach): Merge remote_async_detach.
3997 (remote_disconnect): New.
3998 (init_remote_ops): Set to_disconnect.
3999 (init_remote_cisco_ops): Likewise.
4000 (init_remote_async_ops): Likewise. Use remote_detach.
4001 * target.c (cleanup_target): Default to_disconnect.
4002 (update_current_target): Inherit to_disconnect.
4003 (target_disconnect, debug_to_disconnect): New functions.
4004 (setup_target_debug): Set to_disconnect.
4005 * target.h (struct target_ops): Add to_disconnect.
4006 (target_disconnect): Add prototype.
4007
4008 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4009
4010 * breakpoint.c (insert_catchpoint): New function.
4011 (insert_breakpoints): Use catch_exceptions to call
4012 insert_catchpoint. Disable catchpoints if they fail to insert.
4013
4014 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4015
4016 * symfile.c (reread_symbols): Clear sym_private.
4017
4018 2003-06-17 Andrew Cagney <cagney@redhat.com>
4019
4020 * trad-frame.h (struct frame_info): Add opaque declaration.
4021 * remote-fileio.h (struct cmd_list_element): Add opaque
4022 declaration.
4023 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4024 comments.
4025
4026 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4027
4028 * remote.c (remote_prepare_to_store): Replace call to
4029 deprecated_read_register_bytes with multiple regcache_raw_read
4030 calls.
4031
4032 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4033
4034 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4035 (nto_find_and_open_solib): Likewise.
4036 (nto_init_solib_absolute_prefix): Likewise.
4037 (_initialize_nto_tdep): Fix indentation.
4038
4039 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4040
4041 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4042
4043 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4044
4045 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4046
4047 2003-06-17 Jim Blandy <jimb@redhat.com>
4048
4049 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4050
4051 2003-06-16 Theodore A. Roth <troth@openavr.org>
4052
4053 * avr-tdep.c (avr_extract_return_value): New function.
4054 (avr_gdbarch_init): Set extract_return_value method.
4055
4056 2003-06-16 Andrew Cagney <cagney@redhat.com>
4057
4058 * frame.h (deprecated_get_next_frame_hack): Declare.
4059 * frame.c (legacy_saved_regs_prev_register): Only require
4060 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4061 there are always saved regs.
4062 (deprecated_generic_get_saved_register): Do not require
4063 DEPRECATED_FRAME_INIT_SAVED_REGS.
4064 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4065 use frame ID unwind instead.
4066 (deprecated_get_next_frame_hack): New function.
4067
4068 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4069
4070 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4071 (h8300_push_dummy_call): ...this function. Some minor optimization.
4072 (h8300_push_return_address): Remove.
4073 (h8300_gdbarch_init): Remove calls to
4074 set_gdbarch_deprecated_dummy_write_sp,
4075 set_gdbarch_deprecated_push_arguments and
4076 set_gdbarch_deprecated_push_return_address.
4077 Add call to set_gdbarch_push_dummy_call.
4078
4079 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4080
4081 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4082 (E_PSEUDO_EXR_REGNUM): Ditto.
4083 (h8300_is_argument_spill): Check for instructions moving argument
4084 registers into safe registers.
4085 (h8300_skip_prologue): Check for stm instruction to push registers
4086 used for register variables onto stack.
4087 (gdb_print_insn_h8300): Remove.
4088 (h8300_examine_prologue): Add a comment.
4089 (h8300_register_name): Take pseudo registers into account.
4090 (h8300s_register_name): Ditto.
4091 (h8300sx_register_name): Ditto.
4092 (h8300_print_register): Ditto.
4093 (h8300_print_registers_info): Define "nice" printing order.
4094 (h8300_saved_pc_after_call): Take pseudo registers into account.
4095 (h8300_register_type): Ditto. Return type used for remote connection
4096 when requesting real CCR or EXR register, return actual type when
4097 requesting pseudo CCR or EXR.
4098 (h8300_pseudo_register_read): New function.
4099 (h8300_pseudo_register_write): Ditto.
4100 (h8300_dbg_reg_to_regnum): Ditto.
4101 (h8300s_dbg_reg_to_regnum): Ditto.
4102 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4103 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4104 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4105 set_gdbarch_print_insn architecture dependent.
4106 Call set_gdbarch_pseudo_register_read and
4107 set_gdbarch_pseudo_register_write.
4108 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4109
4110 2003-06-16 Andrew Cagney <cagney@redhat.com>
4111
4112 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4113 * gdbarch.h, gdbarch.c: Re-generate.
4114 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4115 * s390-tdep.c (s390_gdbarch_init): Update.
4116 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4117 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4118 * mips-tdep.c (mips_gdbarch_init): Update.
4119 * mcore-tdep.c (mcore_gdbarch_init): Update.
4120 * cris-tdep.c (cris_gdbarch_init): Update.
4121 * infcall.c (call_function_by_hand): Update.
4122 * ia64-tdep.c (ia64_push_arguments): Update comment.
4123 * frame.c (legacy_get_prev_frame): Do not assume
4124 SAVE_DUMMY_FRAME_TOS_P.
4125 * dummy-frame.c (find_dummy_frame): Update comment.
4126
4127 2003-06-16 Andrew Cagney <cagney@redhat.com>
4128
4129 * regcache.c (do_cooked_read): Do not use register_valid_p.
4130
4131 2003-06-15 Theodore A. Roth <troth@openavr.org>
4132
4133 * avr-tdep.c (avr_register_type): Remove a blank line.
4134 (avr_scan_prologue): Correct some comments.
4135
4136 2003-06-15 Theodore A. Roth <troth@openavr.org>
4137
4138 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4139 prologue types.
4140 Properly scan prologues generated by gcc with the -mcall-prologues
4141 option.
4142 Add code to scan -mcall-prologues for mega devices.
4143
4144 2003-06-15 Theodore A. Roth <troth@openavr.org>
4145
4146 * avr-tdep.c (avr_register_byte): Delete function.
4147 (avr_register_raw_size): Delete function.
4148 (avr_register_virtual_size): Delete function.
4149 (avr_register_virtual_type): Delete function.
4150 (avr_register_type): New function.
4151 (avr_address_to_pointer): Remove unused code.
4152 (avr_read_fp): Need to read FP as two separate bytes due to change to
4153 avr_register_type() usage.
4154 (avr_gdbarch_init): Don't set deprecated_register_size.
4155 Don't set deprecated_register_bytes.
4156 Don't set deprecated_register_byte.
4157 Don't set deprecated_register_raw_size.
4158 Don't set deprecated_max_register_raw_size.
4159 Don't set deprecated_register_virtual_size.
4160 Don't set deprecated_max_register_virtual_size.
4161 Don't set deprecated_register_virtual_type.
4162 Set register_type method.
4163
4164 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4165
4166 * Makefile.in (linux-nat.o): Add rule.
4167 * linux-nat.c: New file.
4168 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4169 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4170 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4171 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4172 * config/arm/linux.mh (NATDEPFILES): Likewise.
4173 * config/i386/linux.mh (NATDEPFILES): Likewise.
4174 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4175 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4176 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4177 * config/mips/linux.mh (NATDEPFILES): Likewise.
4178 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4179 * config/s390/s390.mh (NATDEPFILES): Likewise.
4180 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4181
4182 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4183
4184 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4185 replace out-of-date comment.
4186
4187 2003-06-15 Andrew Cagney <cagney@redhat.com>
4188
4189 * rdi-share/host.h (Fail): Change to a varargs function.
4190 * remote-rdi.c (Fail): Update.
4191
4192 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4193
4194 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4195 (i386_convert_register_p, i386_register_to_value,
4196 i386_register_from_value): Handle types longer than 8 bytes.
4197
4198 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4199
4200 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4201 Move floating-point code to new function in i387-tdep.c.
4202 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4203 New functions containing code moved here from i386-tdep.c.
4204 * i387-tdep.h: Add opaque declaration for `struct type'.
4205 (i387_register_to_value, i387_value_to_register): New prototypes.
4206 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4207 (x86_64_init_abi): Set convert_register_p, register_to_value and
4208 value_to_register here.
4209
4210 2003-06-14 Andrew Cagney <cagney@redhat.com>
4211
4212 * mips-tdep.c (mips_register_to_value): Make static.
4213 (mips_value_to_register): Make static.
4214 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4215 * ia64-tdep.c (ia64_register_raw_size): Make static.
4216 (ia64_register_virtual_size): Make static.
4217 (ia64_register_byte): Make static.
4218 * i387-tdep.c: Include "i387-tdep.h".
4219 (print_387_control_word): Delete function.
4220 (print_387_status_word): Delete function.
4221 (print_387_status_bits): Delete function.
4222 (print_387_control_bits): Delete function.
4223 * Makefile.in (i387-tdep.o): Update dependencies.
4224 * rdi-share/host.h (Fail): Declare.
4225 * remote-rdi.c (Fail): Update to match declaration.
4226
4227 2003-06-14 Andrew Cagney <cagney@redhat.com>
4228
4229 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4230 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4231 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4232 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4233 * README: Delete reference to remote-array.
4234 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4235 (remote-array.o): Delete target.
4236 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4237 * remote-array.c: Delete file.
4238
4239 2003-06-14 Andrew Cagney <cagney@redhat.com>
4240 Mark Kettenis <kettenis@gnu.org>
4241
4242 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4243 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4244 parameter with "frame".
4245 * gdbarch.h, gdbarch.c: Re-generate.
4246 * frame.h (put_frame_register): Declare.
4247 * frame.c (put_frame_register): New function.
4248 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4249 (legacy_register_to_value): Rewrite, use "frame" to get the
4250 register value.
4251 (legacy_value_to_register): Rewrite, use "frame" to find the
4252 register's location before storing.
4253 * arch-utils.h (legacy_convert_register_p): Update.
4254 (legacy_register_to_value, legacy_value_to_register): Update.
4255 * findvar.c (value_from_register): Rewrite, eliminate use of
4256 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4257 "frame" to REGISTER_TO_VALUE.
4258 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4259 lval_reg_frame_relative + lval_register branch of the switch. Do
4260 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4261 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4262 I386_EDI_REGNUM): New defines.
4263 (i386_next_regnum, i386_convert_register_p,
4264 i386_register_to_value, i386_value_to_register): New functions.
4265 (i386_register_convertible, i386_register_convert_to_virtual,
4266 i386_convert_to_raw): Remove functions.
4267 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4268 value_to_register instead of register_convertible,
4269 register_convert_to_virtual and register_convert_to_raw.
4270 * mips-tdep.c (mips_convert_register_p): New function.
4271 (mips_value_to_register): Replace mips_register_convert_from_type.
4272 (mips_register_to_value): Replace mips_register_convert_to_type.
4273 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4274 register_to_value.
4275 * alpha-tdep.c (alpha_convert_register_p): Update.
4276 (alpha_value_to_register): Update, store the register.
4277 (alpha_register_to_value): Update, fetch the register.
4278
4279 2003-06-14 Theodore A. Roth <troth@openavr.org>
4280
4281 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4282 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4283 Don't set deprecated_call_dummy_words.
4284 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4285 Don't set remote_translate_xfer_address.
4286 (avr_io_reg_read_command): Remove commented out debug printf.
4287 Wrap a long line.
4288
4289 2003-06-14 Theodore A. Roth <troth@openavr.org>
4290
4291 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4292 causes gdb to seg fault.
4293
4294 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4295
4296 * sparc-nat.c (fetch_inferior_registers): Correct
4297 a reference to "registers".
4298
4299 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4300
4301 * Makefile.in (exc_request_U_h): Define
4302 (exc_request_S_h): Likewise.
4303 (msg_reply_S_h): Likewise.
4304 (msg_U_h): Likewise.
4305 (notify_S_h): Likewise.
4306 (process_reply_S_h): Likewise.
4307 (gnu-nat.o): Depend on gdb_obstack_h
4308 * gnu-nat.c: Include "gdb_obstack.h".
4309
4310 2003-06-13 Andrew Cagney <cagney@redhat.com>
4311
4312 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4313 * gdbarch.h, gdbarch.c: Re-generate.
4314
4315 2003-06-13 Andrew Cagney <cagney@redhat.com>
4316
4317 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4318 when deprecated REGISTER macros can be deleted.
4319 * gdbarch.h, gdbarch.c: Re-generate.
4320
4321 2003-06-13 Jim Blandy <jimb@redhat.com>
4322
4323 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4324 Linux entry point symbols for _dl_debug_state, too.
4325
4326 2003-06-13 Andrew Cagney <cagney@redhat.com>
4327
4328 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4329 available, do not use the FP register, and always save the TOS.
4330 * dummy-frame.c (dummy_frame_this_id): Do not assert
4331 SAVE_DUMMY_FRAME_TOS.
4332 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4333 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4334 (i386_push_dummy_call): Add 8 to the returned SP.
4335 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4336 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4337 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4338 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4339 (x86_64_push_dummy_call): Return "sp + 16".
4340 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4341 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4342 save_dummy_frame_tos.
4343
4344 2003-06-13 Jim Blandy <jimb@redhat.com>
4345
4346 * frv-tdep.c (frv_use_struct_convention): Delete static
4347 declaration for function deleted in my change of 2003-06-12.
4348
4349 2003-06-13 Theodore A. Roth <troth@openavr.org>
4350
4351 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4352 (avr_pointer_to_address): Shift code addrs left 1 bit.
4353 (avr_convert_from_func_ptr_addr): Delete function since operation is
4354 better handled by avr_address_to_pointer and avr_pointer_to_address.
4355 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4356
4357 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4358
4359 From Kelley Cook <kelleycook@wideopenwest.com>:
4360 * configure.host: Accept i[34567]86 variants.
4361 * configure.tgt: Likewise.
4362 * nlm/configure.in: Likewise.
4363 * nlm/configure: Regenerated.
4364
4365 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4366
4367 * arm-tdep.c (solib-svr4.h): Dont' include it.
4368 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4369 * arm-linux-tdep.c: ... here. Make static.
4370 (arm_linux_init_abi): Register it.
4371 (solib-svr4.h): Include it.
4372 * Makefile.in: Update dependencies.
4373 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4374 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4375
4376 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4377
4378 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4379 indicate registers used for return values.
4380 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4381 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4382 members.
4383 (h8300_init_extra_frame_info): Ditto.
4384 (h8300_frame_locals_address): Removed.
4385 (h8300_frame_args_address): Removed.
4386 (h8300_extract_return_value): Use new regcache structure. Only care
4387 for 16 bit CPUs.
4388 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4389 (h8300_store_return_value): Use new regcache structure. Only care
4390 for 16 bit CPUs.
4391 (h8300h_store_return_value): Same function for 32 bit CPUs.
4392 (h8300_store_struct_return): Removed.
4393 (h8300_extract_struct_value_address): Use new regcache structure.
4394 (h8300h_extract_struct_value_address): Removed.
4395 (h8300_push_dummy_code): New function.
4396 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4397 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4398 set_gdbarch_store_return_value architecture dependent.
4399 Call set_gdbarch_push_dummy_code and
4400 set_gdbarch_extract_struct_value_address.
4401 Remove calls to set_gdbarch_frame_args_address,
4402 set_gdbarch_frame_locals_address,
4403 set_gdbarch_deprecated_store_struct_return,
4404 set_gdbarch_deprecated_extract_return_value,
4405 set_gdbarch_deprecated_extract_struct_value_address,
4406 set_gdbarch_deprecated_call_dummy_words and
4407 set_gdbarch_deprecated_sizeof_call_dummy_words.
4408
4409 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4410
4411 * h8300-tdep.c (h8300_register_byte): Remove.
4412 (h8300h_register_byte): Remove.
4413 (h8300_register_virtual_type): Remove. Substitute by...
4414 (h8300_register_type): New function.
4415 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4416 (h8300h_extract_struct_value_address): Ditto.
4417 (h8300_gdbarch_init): Drop calls to
4418 set_gdbarch_deprecated_register_byte and
4419 set_gdbarch_deprecated_register_virtual_type.
4420 Add call to set_gdbarch_register_type.
4421
4422 2003-06-13 Andrew Cagney <cagney@redhat.com>
4423
4424 * gdbarch.sh: Update comments on registers.
4425 (deprecated_register_byte): Rename register_byte.
4426 (deprecated_register_raw_size): Rename register_raw_size.
4427 (deprecated_register_virtual_size): Rename register_virtual_size.
4428 (deprecated_register_virtual_type): Rename register_virtual_type.
4429 * gdbarch.h, gdbarch.c: Re-generate.
4430 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4431 * vax-tdep.c (vax_gdbarch_init): Update.
4432 * v850-tdep.c (v850_gdbarch_init): Update.
4433 * sparc-tdep.c (sparc_gdbarch_init): Update.
4434 * sh-tdep.c (sh_gdbarch_init): Update.
4435 * s390-tdep.c (s390_gdbarch_init): Update.
4436 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4437 * ns32k-tdep.c: Update.
4438 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4439 * mips-tdep.c (mips_gdbarch_init): Update.
4440 * mcore-tdep.c (mcore_gdbarch_init): Update.
4441 * m68k-tdep.c (m68k_gdbarch_init): Update.
4442 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4443 * ia64-tdep.c (ia64_gdbarch_init): Update.
4444 * hppa-tdep.c (hppa_gdbarch_init): Update.
4445 * h8300-tdep.c (h8300_gdbarch_init): Update.
4446 * frv-tdep.c (frv_gdbarch_init): Update.
4447 * cris-tdep.c (cris_gdbarch_init): Update.
4448 * avr-tdep.c (avr_gdbarch_init): Update.
4449 * alpha-tdep.c (alpha_gdbarch_init): Update.
4450 * arm-tdep.c (arm_gdbarch_init): Update.
4451
4452 2003-06-13 Andrew Cagney <cagney@redhat.com>
4453
4454 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4455 mips_o32_use_struct_convention with always_use_struct_convention.
4456
4457 2003-06-12 David Carlton <carlton@kealia.com>
4458
4459 * cp-namespace.c (cp_set_block_scope): Comment out
4460 processing_has_namespace_info branch.
4461
4462 2003-06-12 Jim Blandy <jimb@redhat.com>
4463
4464 Recognize and skip 64-bit PowerPC Linux linkage functions.
4465 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4466 insn_pattern, insns_match_pattern, d_field, ds_field): New
4467 functions, macros, and types for working with PPC instructions.
4468 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4469 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4470 ppc64_skip_trampoline_code): New functions, variables, and macros
4471 for recognizing and skipping linkage functions.
4472 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4473 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4474
4475 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4476 register offsets for both the 32- and 64-bit interfaces.
4477
4478 Actually finish the job started by my change of 2003-05-29.
4479 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4480 other #definition of this.
4481 (ppc_linux_skip_trampoline_code): Remove declaration.
4482 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4483 static.
4484 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4485 method for GDBARCH.
4486
4487 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4488 'long' on ppc64-*-linux*.
4489
4490 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4491 isn't #defined, assume the register doesn't exist: act as if
4492 tdep->ppc_mq_regnum were -1.
4493
4494 * configure.host, configure.tgt: Add entries for
4495 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4496 powerpc/linux.mt.
4497 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4498 New files.
4499
4500 * arch-utils.c (always_use_struct_convention): New function.
4501 * arch-utils.h (always_use_struct_convention): New prototype.
4502 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4503 (alpha_gdbarch_init): Register always_use_struct_convention,
4504 instead of alpha_use_struct_convention.
4505 * cris-tdep.c (cris_use_struct_convention): Delete.
4506 (cris_gdbarch_init): Register always_use_struct_convention,
4507 instead of cris_use_struct_convention.
4508 * frv-tdep.c (frv_use_struct_convention): Delete.
4509 (frv_gdbarch_init): Register always_use_struct_convention,
4510 instead of frv_use_struct_convention.
4511 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4512 (h8300_gdbarch_init): Register always_use_struct_convention,
4513 instead of h8300_use_struct_convention.
4514 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4515 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4516 instead of mips_o32_use_struct_convention.
4517
4518 2003-06-12 Andrew Cagney <cagney@redhat.com>
4519
4520 * wince.c: Include "mips-tdep.h".
4521 * mips-tdep.h (mips_next_pc): Declare.
4522 * mcore-tdep.c: Make more local functions static.
4523 * Makefile.in (wince.o): Update dependencies.
4524
4525 2003-06-12 David Carlton <carlton@kealia.com>
4526
4527 * symtab.c (lookup_symbol_aux_minsyms): Replace
4528 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4529 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4530 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4531 SYMBOL_NATURAL_NAME.
4532
4533 2003-06-12 Andreas Schwab <schwab@suse.de>
4534
4535 * Makefile.in (tuiDisassem.o): Update dependencies.
4536
4537 2003-06-12 David Carlton <carlton@bactrian.org>
4538
4539 * symtab.h: Delete declaration of make_symbol_overload_list.
4540 Add declaration of lookup_partial_symbol.
4541 * symtab.c (remove_params): Move to cp-support.c.
4542 (overload_list_add_symbol, make_symbol_overload_list)
4543 (sym_return_val_size, sym_return_val_index): Ditto.
4544 (lookup_partial_symbol): Make extern.
4545 * cp-support.h: Add declaration of make_symbol_overload_list.
4546 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4547 symtab.h, and block.h.
4548 (remove_params): Move here from symtab.c.
4549 (overload_list_add_symbol, make_symbol_overload_list)
4550 (sym_return_val_size, sym_return_val_index): Ditto.
4551 * valops.c: Include cp-support.h.
4552 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4553 frame_h, and block_h.
4554 (valops.o): Depend on cp_support_h.
4555
4556 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4557
4558 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4559 substitute by NUM_REGS throughout.
4560 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4561 (h8300s_register_name): New function for H8S registers.
4562 (h8300sx_register_name): Ditto for H8SX registers.
4563 (h8300_print_register): Revise register printing, avoid depending
4564 on 32 bit long.
4565 (h8300_register_byte): Only care for H8/300 registers.
4566 (h8300h_register_byte): New function for any other architecture.
4567 (h8300_register_raw_size): Remove.
4568 (h8300_register_virtual_type): Revise to return actually useful
4569 type.
4570 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4571 (h8300h_extract_struct_value_address): New function for any other
4572 architecture.
4573 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4574 set_gdbarch_register_name, set_gdbarch_register_byte,
4575 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4576 Remove calls to set_gdbarch_deprecated_register_size,
4577 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4578 set_gdbarch_deprecated_max_register_raw_size,
4579 set_gdbarch_register_virtual_size and
4580 set_gdbarch_deprecated_max_register_virtual_size entirely.
4581 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4582 set_gdbarch_long_double_bit.
4583
4584 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4585
4586 * doublest.c (convert_doublest_to_floatformat): When dealing
4587 with the implied integer bit, only alter mant_bits if we are
4588 processing a full 32 bits of mantissa.
4589
4590 2003-06-11 David Carlton <carlton@bactrian.org>
4591
4592 * dictionary.h: New.
4593 * dictionary.c: New.
4594 * block.h: Add opaque declaration for struct dictionary.
4595 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4596 'sym' members.
4597 (BLOCK_DICT): New macro.
4598 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4599 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4600 BLOCK_SHOULD_SORT.
4601 (ALL_BLOCK_SYMBOLS): Update definition.
4602 * Makefile.in (SFILES): Add dictionary.c.
4603 (dictionary_h): New.
4604 (COMMON_OBS): Add dictionary.o.
4605 (dictionary.o): New.
4606 (ada-lang.o): Depend on dictionary_h.
4607 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4608 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4609 (mi-cmd-stack.o): Ditto.
4610 (gdbtk-cmds.o): Update dependencies.
4611 (gdbtk-stack.o): Ditto.
4612 * ada-lang.c: Include dictionary.h.
4613 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4614 (fill_in_ada_prototype, debug_print_block): Ditto.
4615 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4616 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4617 'is_sorted'.
4618 * mdebugread.c: Include dictionary.h.
4619 (struct parse_stack): Delete 'maxsyms' member.
4620 (parse_symbol): Update calls to new_block. Delete calls to
4621 shrink_block. Use dictionary methods.
4622 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4623 Update calls to new_symtab. Don't maintain maxsyms data.
4624 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4625 (add_symbol): Just call dict_add_symbol.
4626 (new_symtab): Delete 'maxsyms' argument.
4627 (new_symtab): Update calls to new_block.
4628 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4629 (shrink_block): Delete function.
4630 (fixup_sigtramp): Update call to new_block. Add symbol via
4631 dict_add_symbol.
4632 * jv-lang.c: Include dictionary.h.
4633 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4634 appropriately. Set class_symtab->free_func. Make sure the
4635 blockvector is big enough to hold two blocks.
4636 (add_class_symtab_symbol): Use dictionary methods.
4637 (free_class_block): New function.
4638 (type_from_class): Replace explicit iteration by
4639 ALL_BLOCK_SYMBOLS.
4640 * symtab.h (struct symtab): Replace 'free_ptr' method by
4641 'free_func'.
4642 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4643 sort_symtab_syms.
4644 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4645 sort_symtab_syms.
4646 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4647 Include dictionary.h.
4648 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4649 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4650 sort_symtab_syms.
4651 * objfiles.c: Include dictionary.h.
4652 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4653 * buildsym.c: Include dictionary.h.
4654 (finish_block): Use dictionary methods.
4655 (end_symtab): Set free_func to NULL, not free_ptr.
4656 * tracepoint.c: Include dictionary.h.
4657 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4658 (scope_info): Ditto.
4659 * stack.c: Include dictionary.h.
4660 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4661 (print_block_frame_labels, print_frame_arg_vars)
4662 (print_frame_args): Ditto.
4663 * symmisc.c (free_symtab_block): Use dictionary methods.
4664 (dump_symtab): Ditto.
4665 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4666 Include dictionary.h.
4667 * symfile.h: Delete declarations of sort_block_syms,
4668 sort_symtab_syms.
4669 * symfile.c (sort_block_syms): Delete.
4670 (sort_symtab_syms): Delete.
4671 * symtab.c: Include dictionary.h.
4672 (lookup_block_symbol): Use dictionary iterators.
4673 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4674 (search_symbols, make_symbol_completion_list): Ditto.
4675 (make_symbol_overload_list): Ditto.
4676 * valops.c (value_of_local): Use dict_empty.
4677 Include dictionary.h.
4678
4679 2003-06-11 J. Brobecker <brobecker@gnat.com>
4680
4681 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4682
4683 2003-06-11 David Carlton <carlton@bactrian.org>
4684
4685 * block.h (BLOCK_SHOULD_SORT): Delete.
4686 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4687 blocks.
4688 * ada-lang.c (ada_add_block_symbols): Ditto.
4689 * symfile.c (sort_block_syms): Delete.
4690 (sort_symtab_syms): Ditto.
4691 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4692 declarations.
4693 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4694 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4695 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4696 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4697 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4698 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4699 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4700
4701 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4702
4703 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4704 bits to 128.
4705
4706 2003-06-11 Andrew Cagney <cagney@redhat.com>
4707
4708 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4709 REGISTER_CONVERTIBLE.
4710 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4711 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4712 * gdbarch.h, gdbarch.c: Re-generate.
4713 * arch-utils.h (deprecated_register_convertible_not): Rename
4714 generic_register_convertible_not.
4715 * arch-utils.c (deprecated_register_convertible_not): Rename
4716 generic_register_convertible.
4717 (legacy_convert_register_p, legacy_register_to_value): Update.
4718 * sh-tdep.c (sh64_push_arguments): Update.
4719 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4720 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4721 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4722 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4723 * arch-utils.c (legacy_value_to_register): Update.
4724 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4725 (rs6000_register_convert_to_raw): Make parameter "from" const.
4726 * mips-tdep.c (mips_gdbarch_init): Update.
4727 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4728 * infcmd.c (default_print_registers_info): Update.
4729 * ia64-tdep.c (ia64_gdbarch_init): Update.
4730 (ia64_register_convert_to_raw): Make parameter "from" const.
4731 * i386-tdep.c (i386_gdbarch_init): Update.
4732 (i386_register_convert_to_raw): Update.
4733
4734 2003-06-11 Andrew Cagney <cagney@redhat.com>
4735
4736 * remote-fileio.c: Include "remote-fileio.h".
4737 * Makefile.in (remote-fileio.o): Update dependencies.
4738 (remote_fileio_h): Fix typo.
4739
4740 2003-06-11 Andrew Cagney <cagney@redhat.com>
4741
4742 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4743 (xstormy16_save_dummy_frame_tos): Make static.
4744 (_initialize_xstormy16_tdep): Add declaration.
4745 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4746 * v850-tdep.c: Make local functions static.
4747 (_initialize_v850_tdep): Add declaration.
4748 * sparc-tdep.c: Make local functions static.
4749 (_initialize_sparc_tdep): Add declaration.
4750 * sh-tdep.c: Make local functions static.
4751 (_initialize_sh_tdep): Add declaration.
4752 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4753 * s390-tdep.c: Make local functions static.
4754 (_initialize_s390_tdep): Add declaration.
4755 * dbxread.c (find_stab_function_addr): Make static.
4756 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4757 * ocd.c (_initialize_remote_ocd): Add declaration.
4758 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4759 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4760 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4761 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4762 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4763 * remote-array.c (_initialize_array): Add declaration.
4764 (_initialize_remote_monitors): Add declaration.
4765 * remote-mips.c: Make local functions static.
4766 (_initialize_remote_mips): Add declaration.
4767 * mcore-tdep.c: Make all local functions static.
4768 (_initialize_mcore_tdep): Add declaration.
4769 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4770 * abug-rom.c (_initialize_abug_rom): Add declaration.
4771 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4772 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4773 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4774 * remote-est.c (_initialize_est): Add declaration.
4775 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4776 (m68hc11_call_dummy_address): Make static.
4777 * ia64-tdep.c: Make local functions static.
4778 (_initialize_ia64_tdep): Add declaration.
4779 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4780 * monitor.c (monitor_wait_filter): Make static.
4781 (_initialize_remote_monitors): Add declaration.
4782 * remote-hms.c (_initialize_remote_hms): Add declaration.
4783 * remote-e7000.c (fetch_regs_from_dump): Make static.
4784 (expect_n): Make static.
4785 (_initialize_remote_e7000): Add declaration.
4786 * ser-e7kpc.c: Always include "defs.h".
4787 (_initialize_ser_e7000pc): Add declaration.
4788 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4789 * cris-tdep.c: Make all but one function static.
4790 (_initialize_cris_tdep): Add declaration.
4791 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4792 * solib.c (update_solib_list): Make static.
4793 (_initialize_solib): Add declaration.
4794 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4795 (_initialize_avr_tdep): Add declaration.
4796 * remote-rdi.c (voiddummy): Make static.
4797 (_initialize_remote_rdi): Add declaration.
4798 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4799 * remote-rdp.c (send_rdp): Make static.
4800 (_initialize_remote_rdp): Add declaration.
4801 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4802
4803 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4804
4805 * remote-fileio.c: Make ari happy.
4806
4807 2003-06-10 J. Brobecker <brobecker@gnat.com>
4808
4809 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4810 fetching the trailing bytes of the buffer we are about to write.
4811
4812 2003-06-10 Andrew Cagney <cagney@redhat.com>
4813
4814 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4815 * Makefile.in (remote-fileio.o): Update dependencies.
4816 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4817 include <setjmp.h>, or <sys/types.h> conditional on USG.
4818 (remote_fio_jmp_buf): Delete global variable.
4819
4820 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4821 Martin M. Hunt <hunt@redhat.com>
4822
4823 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4824 (SFILES): Add remote-fileio.c.
4825 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4826 dependencies for building remote.o.
4827 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4828 * remote-fileio.h: New header file defining remote File-I/O interface.
4829 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4830 static storage class.
4831 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4832 'F' packet.
4833 (_initialize_remote): Call initialize_remote_fileio().
4834 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4835 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4836 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4837 (captured_main): Initialize new ui_files.
4838 * ui-file.c: Add read and fgets input functions.
4839 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4840 (null_file_read): New function.
4841 (ui_file_read): New function.
4842 (set_ui_file_read): New function.
4843 (stdio_file_read): New function.
4844 * ui-file.h: New type ui_file_read_ftype.
4845 (set_ui_file_read): Declare.
4846 (ui_file_read): Declare.
4847
4848 2003-06-09 Andrew Cagney <cagney@redhat.com>
4849
4850 * frame.h (deprecated_unwind_get_saved_register): Rename
4851 generic_unwind_get_saved_register, update comments.
4852 * mips-tdep.c (mips_get_saved_register): Update.
4853 * frame.c (deprecated_unwind_get_saved_register): Update.
4854
4855 2003-06-09 Andrew Cagney <cagney@redhat.com>
4856
4857 * vax-tdep.c (vax_frame_locals_address): Delete function.
4858 (vax_gdbarch_init): Do not set frame_locals_address.
4859 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4860 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4861 * s390-tdep.c (s390_frame_args_address): Delete function.
4862 (s390_gdbarch_init): Do not set frame_args_address or
4863 frame_locals_address.
4864 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4865 (ns32k_gdbarch_init): Do not set frame_locals_address.
4866 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4867 (hppa_frame_locals_address): Delete function.
4868 (hppa_gdbarch_init): Do not set frame_args_address, or
4869 frame_locals_address.
4870 * arm-tdep.c (arm_frame_args_address): Delete.
4871 (arm_frame_locals_address): Delete.
4872 (arm_gdbarch_init): Do not set frame_args_address, or
4873 frame_locals_address.
4874
4875 2003-06-09 Andrew Cagney <cagney@redhat.com>
4876
4877 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4878 * gdbarch.h, gdbarch.c: Re-generate.
4879 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4880 * arch-utils.c (frame_num_args_unknown): Delete function.
4881 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4882 (frame_info): Use FRAME_NUM_ARGS_P.
4883 * arm-tdep.c (arm_frame_num_args): Delete function.
4884 (arm_gdbarch_init): Do not set frame_num_args.
4885 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4886 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4887 (hppa_gdbarch_init): Do not set frame_num_args.
4888 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4889 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4890 frame_num_args to default frame_num_args_unknown.
4891 * v850-tdep.c (v850_gdbarch_init): Ditto.
4892 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4893 * sh-tdep.c (sh_gdbarch_init): Ditto.
4894 * s390-tdep.c (s390_gdbarch_init): Ditto.
4895 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4896 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4897 * mips-tdep.c (mips_gdbarch_init): Ditto.
4898 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4899 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4900 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4901 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4902 * i386-tdep.c (i386_gdbarch_init): Ditto.
4903 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4904 * frv-tdep.c (frv_gdbarch_init): Ditto.
4905 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4906 * cris-tdep.c (cris_gdbarch_init): Ditto.
4907 * avr-tdep.c (avr_gdbarch_init): Ditto.
4908 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4909
4910 2003-06-09 Andrew Cagney <cagney@redhat.com>
4911
4912 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4913 (print_frame_args): Moved to "stack.c".
4914 * stack.c: Include "gdb_assert.h".
4915 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4916 (print_frame_args): Moved from "printcmd.c".
4917 * frame.h (print_frame_args): Delete declaration.
4918 * Makefile.in (stack.o): Update dependencies.
4919
4920 2003-06-08 Andrew Cagney <cagney@redhat.com>
4921
4922 * frame.c (get_prev_frame): Remove reference to
4923 frame_args_address_correct in comments.
4924 * frame-base.c (default_frame_args_address): Delete code
4925 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4926 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4927 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4928 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4929 (vax_frame_args_address_correct): Delete declaration.
4930
4931 2003-06-08 Andrew Cagney <cagney@redhat.com>
4932
4933 * gdbarch.sh (UNWIND_SP): Add.
4934 * gdbarch.h, gdbarch.c: Re-generate.
4935 * frame.c (frame_sp_unwind): New function.
4936 (get_frame_sp): New function.
4937 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4938 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4939 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4940 value.
4941 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4942 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4943
4944 2003-06-08 Andrew Cagney <cagney@redhat.com>
4945
4946 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4947 REMOTE_BREAKPOINT.
4948 * remote.c: Update.
4949 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4950 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4951 * config/m68k/tm-sun3.h: Update.
4952 * config/m68k/tm-m68klynx.h: Update.
4953 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4954
4955 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4956 trad_frame". Update comments.
4957 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4958 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4959 (trad_frame_register_value, trad_frame_prev_register): Update.
4960
4961 2003-06-08 Andrew Cagney <cagney@redhat.com>
4962
4963 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4964 from GCC's acinclude.m4.
4965 * configure.in: Check for getopt's delcaration.
4966 * aclocal.m4, config.in, configure: Re-generate.
4967 * main.c (error_init): Delete declaration.
4968 * defs.h (error_init): Declare.
4969 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4970 (rs6000_convert_from_func_ptr_addr): Make static.
4971 (_initialize_rs6000_tdep): Add declaration.
4972 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4973 (show_commands, set_verbose, show_history): Delete declaration.
4974 * top.h (set_verbose): Add declaration.
4975 (show_history, set_history, show_commands): Add declaration.
4976 (do_restore_instream_cleanup): Add declaration.
4977 * objc-lang.c (specialcmp): Make static.
4978 (print_object_command): Make static.
4979 (find_objc_msgsend): Make static.
4980 (find_objc_msgcall_submethod_helper): Make static.
4981 (find_objc_msgcall_submethod): Make static.
4982 (_initialize_objc_language): Add declaration.
4983 (find_implementation_from_class): Make static.
4984 (find_implementation): Make static.
4985 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4986 * objc-lang.h (lookup_struct_typedef): Add declaration.
4987 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4988 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4989 (do_restore_user_call_depth): Make static.
4990 (do_restore_instream_cleanup): Delete declaration.
4991 (dont_repeat): Delete declaration.
4992 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4993 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4994 * reggroups.c (_initialize_reggroup): Add declaration.
4995 * cp-support.c (_initialize_cp_support): Add declaration.
4996 * cp-abi.c (_initialize_cp_abi): Add declaration.
4997 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4998 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4999 (_initialize_gnu_v3_abi): Add declaration.
5000 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5001 (_initialize_gnu_v2_abi): Add declaration.
5002 * frame-base.c (_initialize_frame_base): Add declaration.
5003 * doublest.c (floatformat_from_length): Make static.
5004 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5005 * frame.c (create_sentinel_frame): Make static.
5006 (_initialize_frame): Add declaration.
5007 * top.c (do_catch_errors): Make static.
5008 (gdb_rl_operate_and_get_next_completion): Make static.
5009 * typeprint.c: Include "typeprint.h".
5010 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5011 (sentinel_frame_this_id): Make static.
5012 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5013 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5014 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5015 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5016 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5017 * maint.c (maintenance_print_architecture): Make static.
5018 * signals/signals.c (_initialize_signals): Add declaration.
5019 * std-regs.c (_initialize_frame_reg): Add declaration.
5020 * jv-exp.y (push_variable): ISO C definition.
5021 (push_qualified_expression_name): Ditto.
5022 * memattr.c (_initialize_mem): Add declaration.
5023 * remote.c (remote_check_watch_resources): Make static.
5024 (remote_stopped_by_watchpoint): Make static.
5025 (remote_stopped_data_address): Make static.
5026 * d10v-tdep.c (nr_dmap_regs): Make static.
5027 (a0_regnum): Make static.
5028 (d10v_frame_unwind_cache): Make static.
5029 (d10v_frame_p): Make static.
5030 * osabi.c (show_osabi): Make static.
5031 (_initialize_gdb_osabi): Add extern declaration.
5032 * gdbtypes.c (make_qualified_type): Make static.
5033 (safe_parse_type): Make static.
5034 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5035 * macrotab.c (macro_bcache_free): Make static.
5036 * interps.c (interp_set_quiet): Make static.
5037 (interpreter_exec_cmd): Make static.
5038 * stack.h (select_frame_command): New file.
5039 * stack.c: Include "stack.h".
5040 (select_frame_command_wrapper): Delete function.
5041 (select_frame_command): Make global.
5042 * infcall.c: Include "infcall.h".
5043 * linespec.c: Include "linespec.h".
5044 * symfile.c (sections_overlap): Make static.
5045 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5046 * charset.c (_initialize_charset): Add missing prototype.
5047 * regcache.c (init_legacy_regcache_descr): Make static.
5048 (do_regcache_xfree): Make static.
5049 (regcache_xfer_part): Make static.
5050 (_initialize_regcache): Add missing prototype.
5051 * breakpoint.c (parse_breakpoint_sals): Make static.
5052 (breakpoint_sals_to_pc): Make static.
5053 * interps.h (clear_interpreter_hooks): ISO C declaration.
5054 * Makefile.in (stack_h): Define.
5055 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5056 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5057
5058 2003-06-08 Andrew Cagney <cagney@redhat.com>
5059
5060 * Makefile.in (d10v-tdep.o): Update dependencies.
5061 (SFILES): Add trad-frame.c.
5062 (trad_frame_h): Define.
5063 (COMMON_OBS): Add trad-frame.o.
5064 (trad-frame.o): Specify dependencies.
5065 * d10v-tdep.c: Include "trad-frame.h".
5066 (saved_regs_unwinder): Delete function.
5067 (d10v_frame_prev_register): Use trad_frame_prev_register.
5068 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5069 trad_frame", delete "regs" and "prev_sp".
5070 (prologue_find_regs): Use trad-frame.
5071 * trad-frame.h, trad-frame.c: New files.
5072
5073 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5074
5075 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5076
5077 2003-06-07 Adam Fedor <fedor@gnu.org>
5078
5079 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5080 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5081 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5082 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5083 resolve_msgsend_super, resolve_msgsend_super_stret):
5084 Use it.
5085
5086 2003-06-07 Andrew Cagney <cagney@redhat.com>
5087
5088 * symfile.h: Re-indent, clean up comments.
5089
5090 2003-06-07 Andrew Cagney <cagney@redhat.com>
5091
5092 * inferior.h (deprecated_write_sp): Replace
5093 generic_target_write_sp.
5094 * regcache.c (deprecated_write_sp): Replace
5095 generic_target_write_sp.
5096 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5097 * vax-tdep.c (vax_gdbarch_init): Update.
5098 * v850-tdep.c (v850_gdbarch_init): Update.
5099 * sparc-tdep.c (sparc_gdbarch_init): Update.
5100 * sh-tdep.c (sh_gdbarch_init): Update.
5101 * s390-tdep.c (s390_gdbarch_init): Update.
5102 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5103 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5104 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5105 * mcore-tdep.c (mcore_gdbarch_init): Update.
5106 * m68k-tdep.c (m68k_gdbarch_init): Update.
5107 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5108 * ia64-tdep.c (ia64_gdbarch_init): Update.
5109 * h8300-tdep.c (h8300_gdbarch_init): Update.
5110 * frv-tdep.c (frv_gdbarch_init): Update.
5111 * cris-tdep.c (cris_gdbarch_init): Update.
5112 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5113
5114 2003-06-07 Andrew Cagney <cagney@redhat.com>
5115
5116 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5117 Assert that PC_REGNUM is valid.
5118 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5119
5120 2003-06-07 Andrew Cagney <cagney@redhat.com>
5121
5122 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5123 * gdbarch.h, gdbarch.c: Regenerate.
5124 * mn10300-tdep.c: Include "gdb_assert.h".
5125 (mn10300_read_fp): New function.
5126 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5127 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5128 * ia64-tdep.c: Include "gdb_assert.h".
5129 (ia64_read_fp): New function.
5130 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5131 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5132 * regcache.c (generic_target_read_sp): Delete function.
5133 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5134 * inferior.h (generic_target_read_sp): Delete declaration.
5135 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5136 generic_target_read_sp.
5137 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5138 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5139 * sh-tdep.c (sh_gdbarch_init): Ditto.
5140 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5141 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5142
5143 2003-06-07 Andrew Cagney <cagney@redhat.com>
5144
5145 * gdbarch.sh: Comment each field of startup_gdbarch.
5146 * gdbarch.h, gdbarch.c: Re-generate.
5147
5148 2003-06-07 Andrew Cagney <cagney@redhat.com>
5149
5150 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5151 * gdbarch.h, gdbarch.c: Re-generate.
5152 * regcache.c: Update comments on read_pc et.al.
5153 (generic_target_read_pc): Delete function.
5154 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5155 * inferior.h (generic_target_read_pc): Delete declaration.
5156 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5157 generic_target_read_pc.
5158 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5159 * sh-tdep.c (sh_gdbarch_init): Ditto.
5160 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5161 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5162
5163 2003-06-07 Andrew Cagney <cagney@redhat.com>
5164
5165 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5166 "index" with "special_local_sect". Use strcmp instead of STREQ.
5167 Append period to coments.
5168
5169 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5170
5171 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5172 (elfstab_offset_sections): Likewise.
5173 * gdb-stabs.h (stab_section_info): Likewise.
5174 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5175 * objfiles.c (objfile_relocate): Likewise.
5176 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5177 * remote.c (get_offsets): Likewise.
5178 (remote_cisco_objfile_relocate): Likewise.
5179 * somread.c (som_symfile_offsets): Likewise.
5180 * symfile.c (alloc_section_addr_info): New function.
5181 (build_section_addr_info_from_section_tab): Use it.
5182 (free_section_addr_info): Adjust.
5183 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5184 (syms_from_objfile): Allocate local_addr dynamically.
5185 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5186 dynamically.
5187 (add_symbol_file_command): Allocate sect_opts dynamically.
5188 (reread_symbols): Avoid use of SECT_OFF_MAX.
5189 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5190 (alloc_section_addr_info): Declare it.
5191 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5192 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5193 dynamically.
5194 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5195
5196 2003-06-06 Andrew Cagney <cagney@redhat.com>
5197
5198 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5199 (d10v_frame_unwind_cache): Do not set "return_pc".
5200
5201 2003-06-06 Michael Snyder <msnyder@redhat.com>
5202
5203 * h8300-tdep.c: Make tidy (long lines).
5204
5205 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5206
5207 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5208 to regcache_collect().
5209
5210 2003-06-05 J. Brobecker <brobecker@gnat.com>
5211
5212 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5213 pc_in_sigtramp multiarch method.
5214 (hppa_hpux_som_init_abi): Use it.
5215 (hppa_hpux_elf_init_abi): Likewise.
5216 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5217 macro has been multiarched.
5218 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5219 macro here, as hppa64 isn't multiarched yet.
5220
5221 2003-06-05 Andrew Cagney <cagney@redhat.com>
5222
5223 * Makefile.in (value_h): Add $(frame_h).
5224 * value.h: Include "frame.h".
5225 (struct value): Replace "frame_addr" with "frame_id".
5226 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5227 * values.c (allocate_value): Use VALUE_FRAME_ID.
5228 (value_copy): Use VALUE_FRAME_ID.
5229 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5230 * valops.c (value_assign): Update. Use frame_find_by_id.
5231
5232 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5233
5234 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5235 in each pass.
5236
5237 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5238
5239 * thread-db.c (check_event): For create/death event breakpoints,
5240 loop through all messages to ensure that we read the message
5241 corresponding to the breakpoint we are at.
5242
5243 2003-06-04 Michael Snyder <msnyder@redhat.com>
5244
5245 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5246
5247 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5248
5249 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5250 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5251 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5252 when handling .eh_frame sections.
5253
5254 2003-06-04 J. Brobecker <brobecker@gnat.com>
5255
5256 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5257 prepare_to_proceed procedure instead of the hppa-specific one.
5258 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5259
5260 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5261
5262 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5263 * config.in: Regenerated.
5264 * configure.in: Add test for syscall function and check for
5265 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5266 * configure: Regenerated.
5267 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5268 <sys/syscall.h>.
5269 (kill_lwp): New function that uses tkill syscall or
5270 uses kill, depending on whether threading model is nptl or not.
5271 All callers of kill() changed to use kill_lwp().
5272 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5273 see if all threads have already exited in the nptl model.
5274 (stop_and_resume_callback): New callback function used by the
5275 lin_lwp_wait thread exit handling code.
5276 (stop_wait_callback): Check for threads already having exited and
5277 delete such threads fromt the lwp list when discovered.
5278 (stop_callback): Don't assert retcode of kill call.
5279
5280 Roland McGrath <roland@redhat.com>
5281 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5282 nptl libthread_db.
5283
5284 2003-06-03 Richard Henderson <rth@redhat.com>
5285
5286 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5287 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5288 (alpha_sigtramp_frame_prev_register): Likewise.
5289 (alpha_heuristic_frame_prev_register): Likewise.
5290 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5291
5292 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5293 alpha-specific register id names.
5294 (alpha_mdebug_frame_unwind_cache): Likewise.
5295 (alpha_mdebug_frame_prev_register): Likewise.
5296
5297 2003-06-03 Richard Henderson <rth@redhat.com>
5298
5299 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5300 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5301 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5302 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5303 unwind routines.
5304 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5305 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5306 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5307
5308 * alpha-linux-tdep.c: Remove unnecessary includes.
5309 * Makefile.in (alpha-linux-tdep.o): Update.
5310
5311 2003-06-03 Richard Henderson <rth@redhat.com>
5312
5313 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5314 (alphabsd_fill_fpreg): Likewise.
5315
5316 2003-06-03 J. Brobecker <brobecker@gnat.com>
5317
5318 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5319 references to struct frame_info fields by calls to the equivalent
5320 accessors. Necessary now that frame_info is opaque.
5321
5322 2003-06-03 J. Brobecker <brobecker@gnat.com>
5323
5324 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5325 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5326 structure, field no longer exists.
5327
5328 2003-06-03 J. Brobecker <brobecker@gnat.com>
5329
5330 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5331 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5332
5333 2003-06-03 J. Brobecker <brobecker@gnat.com>
5334
5335 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5336 references to struct frame_info fields by calls to the equivalent
5337 accessors. Necessary now that frame_info is opaque.
5338
5339 2003-06-03 J. Brobecker <brobecker@gnat.com>
5340
5341 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5342 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5343 structure, field no longer exists.
5344
5345 2003-06-03 Theodore A. Roth <troth@openavr.org>
5346
5347 * remote.c (init_remote_state): Compute sizeof_g_packet by
5348 accumulation of the size of all registers instead of blindly using
5349 DEPRECATED_REGISTER_BYTES.
5350
5351 2003-06-03 Michael Snyder <msnyder@redhat.com>
5352
5353 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5354 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5355 for h8300sx.
5356
5357 2003-06-03 J. Brobecker <brobecker@gnat.com>
5358
5359 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5360 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5361
5362 2003-06-03 Andrew Cagney <cagney@redhat.com>
5363
5364 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5365 (sparc_convert_to_raw): Delete function.
5366 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5367 register_convert_to_virtual.
5368
5369 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5370
5371 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5372 layer if not dealing with a statically-linked threaded program.
5373
5374 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5375
5376 * solib.c (solib_open): Update comment to reflect actual search order.
5377
5378 2003-06-03 Andrew Cagney <cagney@redhat.com>
5379
5380 * frame.c (get_frame_memory_signed): New function.
5381 (get_frame_memory, get_frame_memory_unsigned): New function.
5382 (get_frame_arch): New function.
5383 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5384 (get_frame_memory, get_frame_unsigned_memory): Declare.
5385 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5386 get_frame_memory_unsigned and get_frame_arch.
5387 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5388
5389 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5390
5391 * MAINTAINERS (write after approval): Add myself.
5392
5393 2003-06-03 Jim Blandy <jimb@redhat.com>
5394
5395 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5396 elements of gregset_t are 64 bits each, but access registers
5397 are still 32 bits, so they're packed two per gregset_t
5398 element. Unpack/pack them properly.
5399
5400 2003-06-02 David Carlton <carlton@bactrian.org>
5401
5402 * linespec.c (find_methods): Break out code into
5403 add_matching_methods and add_constructors.
5404 (add_matching_methods): New.
5405 (add_constructors): Ditto.
5406
5407 2003-06-02 Andrew Cagney <cagney@redhat.com>
5408
5409 * sparc-tdep.c (sparc_print_registers): Delete call to
5410 REGISTER_CONVERTIBLE.
5411 (sparc_gdbarch_init): Do not set register_convertible.
5412 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5413 * frv-tdep.c (frv_gdbarch_init): Ditto.
5414 * cris-tdep.c (cris_gdbarch_init): Ditto.
5415
5416 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5417
5418 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5419 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5420 (syms_from_objfile): Ditto.
5421
5422 2003-06-03 Andreas Schwab <schwab@suse.de>
5423
5424 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5425 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5426
5427 2003-06-02 Richard Henderson <rth@redhat.com>
5428
5429 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5430 a member of all_reggroup.
5431
5432 2003-06-02 Richard Henderson <rth@redhat.com>
5433
5434 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5435 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5436 (alpha_lds, alpha_sts): New.
5437 (alpha_convert_register_p): Change from _register_convertible.
5438 (alpha_register_to_value): Change from _convert_to_virtual;
5439 restructure and fail for type sizes other than 4 or 8.
5440 (alpha_value_to_register): Similarly.
5441 (alpha_extract_return_value): Use alpha_sts.
5442 (alpha_store_return_value): Use alpha_lds.
5443 (alpha_gdbarch_init): Update hooks.
5444
5445 2003-06-02 Richard Henderson <rth@redhat.com>
5446
5447 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5448 regnum identifiers.
5449 (alpha_sigtramp_register_address): Likewise.
5450
5451 2003-06-02 Richard Henderson <rth@redhat.com>
5452
5453 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5454 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5455 * alpha-tdep.h: Declare them.
5456
5457 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5458 Remove zerobuf. Don't error on UNIQUE.
5459 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5460 (ALPHA_REGSET_UNIQUE): Provide default.
5461 (supply_gregset): Use alpha_supply_int_regs.
5462 (fill_gregset): Use alpha_fill_int_regs.
5463 (supply_fpregset): Use alpha_supply_fp_regs.
5464 (fill_fpregset): Use alpha_fill_fp_regs.
5465 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5466 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5467 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5468 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5469 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5470 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5471
5472 2003-06-02 Richard Henderson <rth@redhat.com>
5473
5474 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5475
5476 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5477 (alpha_store_return_value): Likewise.
5478
5479 2003-06-02 David Carlton <carlton@math.stanford.edu>
5480
5481 * block.c (contained_in): Add 'const' to arguments.
5482 (block_function): Ditto.
5483 * block.h: Update declarations for block_function and
5484 contained_in.
5485
5486 2003-06-02 David Carlton <carlton@math.stanford.edu>
5487
5488 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5489 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5490 * p-valprint.c (pascal_val_print): Ditto.
5491 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5492
5493 2003-06-02 Richard Henderson <rth@redhat.com>
5494
5495 * alpha-tdep.c (alpha_push_dummy_call): Use
5496 builtin_type_ieee_double_little instead of builtin_type_double.
5497
5498 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5499 sign-extension of 32-bit values.
5500 (alpha_store_return_value): Similarly.
5501
5502 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5503 (alpha_extract_return_value): Likewise.
5504 (alpha_store_return_value): Likewise.
5505
5506 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5507 (alpha_store_return_value): Error on IEEE Quad floats.
5508
5509 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5510 (alpha_extract_struct_value_address): Likewise.
5511 (alpha_store_return_value): Likewise.
5512 (alpha_store_struct_return): Remove.
5513 (alpha_gdbarch_init): Update hook registration to match.
5514
5515 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5516 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5517 macros where appropriate.
5518 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5519 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5520
5521 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5522 for SP, GP; void_func_ptr for PC; non-language-specific types
5523 for all others.
5524 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5525
5526 2003-06-02 Richard Henderson <rth@redhat.com>
5527
5528 * top.h (lim_at_start): Declare.
5529 * main.c (captured_main): Set it.
5530 * top.c (lim_at_start): Define.
5531 (command_loop): Use it instead of &environ.
5532 * event-top.c (command_handler): Likewise.
5533
5534 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5535
5536 * mipsnbsd-tdep.c: Update copyright years.
5537 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5538
5539 2003-06-01 Richard Henderson <rth@redhat.com>
5540
5541 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5542 (alpha-linux-tdep.o): Update dependencies.
5543 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5544 * alpha-mdebug-tdep.c: Remove unneeded includes.
5545
5546 2003-06-01 Richard Henderson <rth@redhat.com>
5547
5548 * alpha-tdep.c (alpha_register_reggroup_p): New.
5549 (alpha_gdbarch_init): Register it.
5550
5551 2003-06-02 Andrew Cagney <cagney@redhat.com>
5552
5553 * dwarfread.c: Eliminate "register"
5554 (decode_die_type): Eliminate assignment within "if".
5555 (struct_type, decode_array_element_type): Ditto.
5556 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5557 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5558 (decode_modified_type, completedieinfo): Ditto.
5559 * block.c: Eliminate "register".
5560 (blockvector_for_pc_sect): Eliminate assignment within "if".
5561 * cp-support.h (struct symbol): Opaque declaration.
5562 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5563
5564 2003-06-01 Richard Henderson <rth@redhat.com>
5565
5566 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5567 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5568
5569 2003-06-01 Adam Fedor <fedor@gnu.org>
5570
5571 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5572 * gdbarch.[ch]: Regenerate.
5573 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5574 (hppa_gdbarch_init): Set it in the gdbarch vector.
5575 * i386-tdep.c (i386_fetch_pointer_argument): New
5576 (i386_gdbarch_init): Set it into gdbarch.
5577 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5578 (rs6000_gdbarch_init): Set it in gdbarch.
5579 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5580 (sparc_gdbarch_init): Set it in gdbarch.
5581
5582 2003-06-01 Andrew Cagney <cagney@redhat.com>
5583
5584 * defs.h (extract_address): Delete declaration.
5585 * findvar.c (extract_address): Delete function.
5586 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5587 extract_address with the inline equivalent,
5588 extract_unsigned_integer.
5589 (xstormy16_extract_struct_value_address): Ditto.
5590 (xstormy16_pointer_to_address): Ditto.
5591 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5592 * v850-tdep.c (v850_push_arguments): Ditto.
5593 (v850_extract_return_value): Ditto.
5594 (v850_extract_struct_value_address): Ditto.
5595 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5596 (sparcnbsd_get_longjmp_target_64): Ditto.
5597 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5598 (get_longjmp_target): Ditto.
5599 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5600 (sh64_extract_struct_value_address): Ditto.
5601 (sh_push_arguments): Ditto.
5602 (sh64_push_arguments): Ditto.
5603 * remote-vxsparc.c (vx_read_register): Ditto.
5604 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5605 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5606 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5607 * mipsv4-nat.c (get_longjmp_target): Ditto.
5608 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5609 * mips-nat.c (get_longjmp_target): Ditto.
5610 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5611 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5612 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5613 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5614 * irix5-nat.c (get_longjmp_target): Ditto.
5615 * irix4-nat.c (get_longjmp_target): Ditto.
5616 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5617 (ia64_push_arguments): Ditto.
5618 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5619 * h8300-tdep.c (h8300_push_arguments): Ditto.
5620 (h8300_store_return_value): Ditto.
5621 (h8300_extract_struct_value_address): Ditto.
5622 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5623 (frv_push_arguments): Ditto.
5624 * avr-tdep.c (avr_pointer_to_address): Ditto.
5625 (avr_push_arguments): Ditto.
5626 * arm-tdep.c (arm_push_dummy_call): Ditto.
5627 (arm_get_longjmp_target): Ditto.
5628 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5629 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5630 (alpha_get_longjmp_target): Ditto.
5631
5632 * solib-irix.c (extract_mips_address): Inline extract_address,
5633 replacing it with extract_signed_integer.
5634 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5635 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5636 (first_link_map_member, open_symbol_file_object): Ditto.
5637 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5638 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5639 (LM_NEXT, LM_NAME): Ditto.
5640
5641 2003-06-01 Richard Henderson <rth@redhat.com>
5642
5643 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5644 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5645 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5646 (alpha_cannot_store_register): Likewise.
5647 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5648 * alpha-nat.c (supply_gregset): Likewise.
5649 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5650
5651 2003-06-01 Andrew Cagney <cagney@redhat.com>
5652
5653 * infcall.c (call_function_by_hand): Update comment on
5654 DEPRECATED_DUMMY_WRITE_SP.
5655
5656 * mips-tdep.c (mips_gdbarch_init): Do not set
5657 deprecated_dummy_write_sp.
5658 (mips_eabi_push_dummy_call): Set the SP register.
5659 (mips_o64_push_dummy_call): Set the SP register.
5660 (mips_o32_push_dummy_call): Set the SP register.
5661 (mips_n32n64_push_dummy_call): Set the SP register.
5662
5663 2003-06-01 Richard Henderson <rth@redhat.com>
5664
5665 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5666 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5667 (supply_gregset): Likewise.
5668 * alpha-tdep.c (alpha_store_return_value): Likewise.
5669 (alpha_get_longjmp_target): Likewise.
5670 (alpha_register_name): Constify array.
5671 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5672 deprecated_register_size, deprecated_register_bytes,
5673 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5674 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5675 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5676
5677 2003-06-01 Richard Henderson <rth@redhat.com>
5678
5679 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5680 from arg_reg_buffer to regcache to avoid double conversion.
5681
5682 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5683
5684 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5685 SP_REGNUM.
5686 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5687 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5688
5689 2003-06-01 Richard Henderson <rth@redhat.com>
5690
5691 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5692 (decode_frame_entry): Set it. Skip FDE augmentation.
5693
5694 2003-06-01 Richard Henderson <rth@redhat.com>
5695
5696 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5697 not overlapping PC_REGNUM.
5698
5699 2003-06-01 Richard Henderson <rth@redhat.com>
5700
5701 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5702 alpha_push_arguments. Don't dump argument register data to
5703 the target stack. Fix float and 128-bit long double semantics.
5704 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5705 (alpha_fix_call_dummy): Remove.
5706 (alpha_call_dummy_words): Remove.
5707 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5708
5709 2003-06-01 Richard Henderson <rth@redhat.com>
5710
5711 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5712
5713 2003-06-01 Andrew Cagney <cagney@redhat.com>
5714
5715 * mips-tdep.c (is_mips16_addr): New function.
5716 (make_mips16_addr, unmake_mips16_addr): New functions.
5717 (pc_is_mips16, mips_fetch_instruction): Use.
5718 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5719 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5720 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5721 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5722 TARGET_MIPS.
5723 * config/mips/tm-mips.h: Update copyright.
5724 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5725 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5726 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5727 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5728 (TM_PRINT_INSN_MACH): Delete.
5729 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5730
5731 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5732 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5733 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5734 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5735 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5736 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5737 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5738 mips*-*-riscos* and mips*-*-sysv* onto mips.
5739 * config/mips/mips64.mt: New file.
5740 * config/mips/mips.mt: New file.
5741 * config/mips/littlemips.mt: Delete file.
5742 * config/mips/decstation.mt: Delete file.
5743 * config/mips/vr4300el.mt: Delete file.
5744 * config/mips/vr5000el.mt: Delete file.
5745 * config/mips/vr5000.mt: Delete file.
5746 * config/mips/vr4100.mt: Delete file.
5747 * config/mips/vr4xxxel.mt: Delete file.
5748 * config/mips/vr4300.mt: Delete file.
5749 * config/mips/vr4xxx.mt: Delete file.
5750 * config/mips/bigmips.mt: Delete file.
5751 * config/mips/bigmips64.mt: Delete file.
5752 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5753 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5754 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5755 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5756 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5757 "tm-bigmips.h".
5758 * config/mips/tm-irix3.h: Ditto.
5759 * config/mips/tm-mipsv4.h: Ditto.
5760 * config/mips/tm-embed.h: Ditto.
5761 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5762 "tm-bigmips64.h".
5763 * config/mips/tm-vr5000el.h: Delete file.
5764 * config/mips/tm-tx39l.h: Delete file.
5765 * config/mips/tm-vr4300el.h: Delete file.
5766 * config/mips/tm-vr4xxxel.h: Delete file.
5767 * config/mips/tm-vr4300.h: Delete file.
5768 * config/mips/tm-vr4100.h: Delete file.
5769 * config/mips/tm-vr4xxx.h: Delete file.
5770 * config/mips/tm-vr5000.h: Delete file.
5771 * config/mips/tm-embedl64.h: Delete file.
5772 * config/mips/tm-embedl.h: Delete file.
5773 * config/mips/tm-embed64.h: Delete file.
5774 * config/mips/tm-bigmips64.h: Delete file.
5775 * config/mips/tm-bigmips.h: Delete file.
5776
5777 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5778
5779 Fix gdb/1216.
5780 * shnbsd-nat.c: Include "sh-tdep.h".
5781
5782 From Richard Henderson <rth@redhat.com>:
5783 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5784
5785 2003-05-31 Andrew Cagney <cagney@redhat.com>
5786
5787 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5788 forward declaration.
5789 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5790 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5791 (mips_find_saved_regs): Use set_reg_offset.
5792 (mips_frame_init_saved_regs): Delete function.
5793 (mips_pop_frame): Call mips_find_saved_regs instead of
5794 DEPRECATED_FRAME_INIT_SAVED_REGS.
5795
5796 2003-05-31 Andrew Cagney <cagney@redhat.com>
5797
5798 * mips-tdep.c (mips_gdbarch_init): Do not set
5799 deprecated_max_register_raw_size, register_virtual_size, and
5800 deprecated_max_register_virtual_size.
5801
5802 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5803
5804 * i386-tdep.c: Include "dwarf2-frame.h".
5805 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5806 * Makefile.in (i386-tdep.o): Update dependencies.
5807
5808 * dwarf2-frame.c, dwarf2-frame.h: New files.
5809 * Makefile.in (SFILES): Add dwarf2-frame.c.
5810 (dwarf2_frame_h): Define.
5811 (COMMON_OBS): Add dwarf2-frame.o.
5812 (dwarf2-frame.o): Add dependencies.
5813
5814 2003-05-31 Andreas Jaeger <aj@suse.de>
5815
5816 * x86-64-linux-nat.c: Fix comment.
5817
5818 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5819
5820 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5821 function signature.
5822
5823 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5824 have a sigcontext_addr handler.
5825 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5826 sigcontext_addr handler.
5827
5828 2003-05-31 Andrew Cagney <cagney@redhat.com>
5829
5830 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5831 (print_fp_register_row): Replace do_fp_register_row.
5832 (mips_print_fp_register): Add "file" and "frame" parameters.
5833 (mips_print_register): Add "file" and "frame" parameters.
5834 (mips_print_registers_info): Replace mips_do_registers_info.
5835 (mips_gdbarch_init): Set print_registers_info instead of
5836 deprecated_do_registers_info.
5837 (mips_read_fp_register_single): Add "frame" parameter.
5838 (mips_read_fp_register_double): Add "frame" parameter.
5839
5840 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5841
5842 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5843 Fixes a bug where GDB would print the wrong register names for
5844 targets without SSE.
5845
5846 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5847 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5848 registers.
5849
5850 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5851 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5852 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5853 TDEP->sc_sp_offset.
5854
5855 From Michal Ludvig <mludvig@suse.cz>:
5856 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5857 and `sc_num_regs'.
5858 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5859 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5860 I386_ST0_REGNUM): Move here from...
5861 * i386-tdep.c: ... here.
5862 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5863 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5864 registers if possible.
5865 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5866 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5867 Remove variables.
5868 (i386bsd_sc_reg_offset): New variable.
5869 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5870 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5871 TDEP->sc_sp_offset.
5872 (i386fbsd_sc_reg_offset): New variable.
5873 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5874 TDEP->sc_num_regs.
5875 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5876 variables.
5877 (i386fbsd4_sc_reg_offset): New variable.
5878 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5879 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5880 TDEP->sc_sp_offset.
5881 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5882 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5883 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5884 Remove variables.
5885 (i386nbsd_sc_reg_offset): New variable.
5886 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5887 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5888 TDEP->sc_sp_offset.
5889 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5890 Remove variables.
5891 (i386obsd_sc_reg_offset): New variable.
5892 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5893 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5894 TDEP->sc_sp_offset.
5895 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5896 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5897 for frame pointer offset in `struct sigcontext'.
5898
5899 2003-05-31 Andrew Cagney <cagney@redhat.com>
5900
5901 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5902 architecture methods call_dummy_words, sizeof_call_dummy_words,
5903 push_return_address, store_struct_return, and fix_call_dummy. Set
5904 push_dummy_call instead of deprecated_push_arguments.
5905 (mips_store_struct_return): Delete function.
5906 (mips_fix_call_dummy): Delete function.
5907 (mips_push_return_address): Delete function.
5908 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5909 RA_REGNUM and T9_REGNUM.
5910 (mips_n32n64_push_dummy_call): Ditto for
5911 mips_n32n64_push_arguments.
5912 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5913 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5914
5915 2003-05-31 Andrew Cagney <cagney@redhat.com>
5916
5917 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5918 "dummy_addr" to "bp_addr".
5919 * infcall.c (call_function_by_hand): Pass "funaddr" to
5920 gdbarch_push_dummy_call.
5921 * gdbarch.h, gdbarch.c: Re-generate.
5922 * i386-tdep.c (i386_push_dummy_call): Update.
5923 * arm-tdep.c (arm_push_dummy_call): Update.
5924 * d10v-tdep.c (d10v_push_dummy_call): Update.
5925
5926 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5927
5928 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5929 variable declarations.
5930 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5931 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5932 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5933 x86_64_init_frame_pc, x86_64_init_frame_pc,
5934 x86_64_function_has_prologue): Remove prototypes.
5935 (X86_64_NUM_GREGS): New define.
5936 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5937 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5938 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5939 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5940 XMM1_REGNUM): Remove defines.
5941 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5942 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5943 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5944 X86_64_XMM1_REGNUM): New defines.
5945 (struct x86_64_register_info): Renamed from `struct
5946 register_info'. Remove `size' member.
5947 (x86_64_register_info_table): Remove variable.
5948 (x86_64_register_info): New variable.
5949 (X86_64_NUM_REGS): New define.
5950 (X86_64_NUM_GREGS): Remove define.
5951 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5952 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5953 Remove variables.
5954 (x86_54_dwarf2_reg_to_regnum): Remove function.
5955 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5956 (x86_64_dwarf_reg_to_regnum): New function.
5957 (x86_64_register_name): Rewrite.
5958 (x86_64_register_raw_size): Remove function.
5959 (x86_64_register_byte_table): Remove variable.
5960 (x86_64_register_byte): Remove function.
5961 (x86_64_register_virtual_type): Remove function.
5962 (x86_64_register_type): New function.
5963 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5964 x86_64_register_convert_to_raw): Remove functions.
5965 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5966 (x86_64_use_struct_convention): Make static. Adjust for renamed
5967 defines.
5968 (x86_64_frame_init_saved_regs): Remove function.
5969 (x86_64_push_arguments): Make static. Change to accept a regcache
5970 as argument.
5971 (x86_64_store_return_value, x86_64_extract_return_value): Make
5972 static. Rewrite based on i386 counterparts.
5973 (x86_64_push_dummy_call): New function.
5974 (X86_64_NUM_SAVED_REGS): New define.
5975 (x86_64_register_number): Remove function.
5976 (x86_64_store_struct_return): Remove function.
5977 (x86_64_frameless_function_invocation,
5978 x86_64_function_has_prologue): Remove functions.
5979 (PROLOG_BUFSIZE): Remove define.
5980 (struct x86_64_frame_cache): New structure.
5981 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5982 x86_64_frame_cache, x86_64_frame_this_id,
5983 x86_64_frame_prev_register, x86_64_frame_p,
5984 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5985 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5986 functions.
5987 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5988 variables.
5989 (x86_64_skip_prologue): Rewrite in terms of
5990 x86_64_analyze_prologue.
5991 (x86_64_frame_base_address): New function.
5992 (x86_64_frame_base): New variable.
5993 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5994 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5995 set deprecated_fp_regnum, deprecated_register_size,
5996 deprecated_register_bytes, register_raw_size, register_byte,
5997 register_virtual_type, register_convertiable,
5998 register_convert_to_virtual, convert_to_raw,
5999 deprecated_get_saved_register, deprecated_target_read_fp,
6000 deprecated_push_arguments, deprecated_push_return_address,
6001 deprecated_pop_frame, deprecated_store_struct_return,
6002 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6003 frameless_function_invocation, deprecated_frame_saved_pc,
6004 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6005 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6006 deprecated_init_frame_pc and virtual_frame_pointer. Call
6007 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6008 and x86_64_frame_p. Call frame_base_set_default to register
6009 x86_64_frame_base.
6010 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6011 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6012 (_initialize_x86_64_tdep): Remove function.
6013 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6014 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6015 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6016 define.
6017 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6018 (x86_64_linux_sigcontext_addr): Rewrite.
6019 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6020 x86_64_linux_frame_saved_pc): Remove functions.
6021 (x86_64_linux_pc_in_sigtramp): Renamed from
6022 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6023 trampoline.
6024 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6025 Remove_functions.
6026 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6027 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6028 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6029 (x86_64_regmap): Rename to regmap.
6030 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6031 x86_64_num_gregs.
6032 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6033 x86_64_regmap.
6034 (x86_64_fxsave_offset): Remove function.
6035 (supply_fpregset): Simply call x86_64_supply_fxsave.
6036 (fill_fpregset): Simply call x86_64_fill_fxsave.
6037 (fetch_inferior_registers, store_inferior_registers): Avoid
6038 asignment in if-statement.
6039 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6040 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6041 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6042 (fetch_core_registers): Remove function.
6043 (linux_elf_core_fns): Remove.
6044 (offsetoff): Don't define.
6045 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6046 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6047 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6048 add core-regset.o.
6049 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6050 protection against multiple includes instead of NM_X86_64_h. Add
6051 various comments. Include "config/nm-linux.h". Don't include
6052 <signal.h>.
6053 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6054 GET_THREAD_SIGNALS): Remove defines.
6055 (x86_64_register_u_addr, kernel_u_size,
6056 lin_thread_get_thread_signals): Remove prototypes.
6057 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6058 [HAVE_LINK_H]: Don't include "solib.h".
6059 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6060 * config/i386/tm-x86-64linux.h: Fix comments.
6061 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6062 x86-64-tdep.o): Update dependencies.
6063
6064 2003-05-30 Andrew Cagney <cagney@redhat.com>
6065
6066 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6067 Change parameter type to a "struct regcache *".
6068
6069 * gdbarch.sh: Regardless of the multi-arch level, always define
6070 the macro when not already defined.
6071 * gdbarch.h, gdbarch.c: Re-generate.
6072
6073 2003-05-30 Richard Henderson <rth@redhat.com>
6074
6075 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6076 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6077 (alpha_mdebug_frame_this_id): Likewise.
6078 (alpha_mdebug_frame_prev_register): Likewise.
6079 (alpha_mdebug_frame_base_address): Likewise.
6080 (alpha_mdebug_frame_locals_address): Likewise.
6081 (alpha_mdebug_frame_args_address): Likewise.
6082 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6083 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6084 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6085 loop increment.
6086 (alpha_heuristic_frame_this_id): Make static.
6087 (alpha_heuristic_frame_prev_register): Likewise.
6088 (alpha_heuristic_frame_base_address): Likewise.
6089 * alpha-tdep.h: Update.
6090
6091 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6092
6093 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6094 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6095 defenitions.
6096 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6097 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6098 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6099 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6100 I386_ST0_REGNUM): New defines.
6101 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6102 codestream_get): Remove define.
6103 (codestream_next_addr, condestream_addr, condestream_buf,
6104 codestream_off, codestream_cnt): Remove variables.
6105 (codestream_fill, codestream_seek, codestream_read): Remove
6106 functions.
6107 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6108 functionality.
6109 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6110 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6111 i386_frame_saved_pc, i386_saved_pc_after_call,
6112 i386_frame_num_args, i386_frame_init_saved_regs,
6113 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6114 i386_push_arguments): Remove functions.
6115 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6116 functionality. Use i386_analyze_prologue instead of
6117 i386_get_frame_setup.
6118 (I386_NUM_SAVED_REGS): New define.
6119 (struct i386_frame_cache): New structure.
6120 (i386_alloc_frame_cache, i386_analyze_struct_return,
6121 i386_skip_probe, i386_analyze_frame_setup,
6122 i386_analyze_register_saves, i386_analyze_prologue,
6123 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6124 i386_frame_prev_register, i386_sigtramp_frame_cache,
6125 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6126 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6127 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6128 New functions.
6129 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6130 New variables.
6131 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6132 I386_EAX_REGNUM and I386_EDX_REGNUM.
6133 (i386_extract_return_value, i386_store_return_value): Use
6134 I386_ST0_REGNUM where appropriate.
6135 (i386_extract_struct_value_address): Rewrite to use extract_address.
6136 (i386_svr4_pc_in_sigtramp): Add comment.
6137 (i386_svr4_sigcontext_addr): Rewrite.
6138 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6139 TDEP->sc_sp_offset.
6140 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6141 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6142 of new defines. Set push_dummy_call, don't set
6143 deprecated_push_arguments, deprecated_push_return_address,
6144 deprecated_pop_frame. Don't set parm_boundary. Don't set
6145 deprecated_frame_chain, deprecated_frame_saved_pc,
6146 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6147 save_dummy_frame_tos, unwind_pc. Call
6148 frame_unwind_append_predicate and frame_base_set_default. Don't
6149 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6150 Don't set frameless_function_invocation. Don't set
6151 deprecated_register_bytes, deprecated_register_size,
6152 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6153 * i386-linux-tdep.c: Fix formatting in some comments.
6154 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6155 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6156 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6157 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6158 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6159 redundant parentheses.
6160 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6161 (i386_linux_sigcontext_addr): Use it. Rewrite.
6162 (find_minsym_and_objfile): Change name of second argument.
6163 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6164 changed. Use frame_pc_unwind instead of
6165 DEPRECATED_SAVED_PC_AFTER_CALL.
6166 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6167 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6168 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6169 unwinder.
6170 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6171 "dummy-frame.h".
6172 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6173 (_initialize_i386_cygwin_tdep): New prototype.
6174 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6175 deprecated_frame_chain_valid.
6176 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6177 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6178 Rely on the SVR4 defaults.
6179 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6180 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6181
6182 2003-05-30 Andrew Cagney <cagney@redhat.com>
6183
6184 * infcall.c (call_function_by_hand): Always call
6185 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6186
6187 2003-05-30 Richard Henderson <rth@redhat.com>
6188
6189 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6190 increment.
6191
6192 2003-05-29 Jim Blandy <jimb@redhat.com>
6193
6194 Use gdbarch methods for solib stuff on PowerPC Linux.
6195 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6196 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6197 show through.
6198 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6199 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6200 giving the same effect as the #definitions above.
6201
6202 2003-05-29 Adam Fedor <fedor@gnu.org>
6203
6204 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6205 (find_implementation_from_class): Replace it with the standard
6206 case i.e. do nothing.
6207
6208 2003-05-29 Richard Henderson <rth@redhat.com>
6209
6210 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6211 (alpha_linux_sigtramp_offset): Use it. Make static.
6212 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6213 update for new frame model.
6214 * alpha-mdebug-tdep.c: New file.
6215 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6216 (alpha_osf1_init_abi): Install it.
6217 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6218 (linked_proc_desc_table): Remove.
6219 (alpha_frame_past_sigtramp_frame): Remove.
6220 (alpha_dynamic_sigtramp_offset): Remove.
6221 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6222 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6223 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6224 (push_sigtramp_desc): Remove.
6225 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6226 (alpha_cannot_store_register): Likewise.
6227 (alpha_sigcontext_addr): Remove.
6228 (alpha_find_saved_regs): Remove.
6229 (alpha_frame_init_saved_regs): Remove.
6230 (alpha_init_frame_pc_first): Remove.
6231 (read_next_frame_reg): Remove.
6232 (alpha_frame_saved_pc): Remove.
6233 (alpha_saved_pc_after_call): Remove.
6234 (temp_proc_desc, temp_saved_regs): Remove.
6235 (alpha_about_to_return): Remove.
6236 (cached_proc_desc): Remove.
6237 (alpha_frame_chain): Remove.
6238 (alpha_print_extra_frame_info): Remove.
6239 (alpha_init_extra_frame_info): Remove.
6240 (alpha_frame_locals_address): Remove.
6241 (alpha_frame_args_address): Remove.
6242 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6243 (alpha_push_dummy_frame): Remove.
6244 (alpha_pop_frame): Remove.
6245 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6246 (alpha_read_insn): New.
6247 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6248 for different insn encodings.
6249 (alpha_in_lenient_prologue): Remove.
6250 (struct alpha_sigtramp_unwind_cache): New.
6251 (alpha_sigtramp_frame_unwind_cache): New.
6252 (alpha_sigtramp_register_address): New.
6253 (alpha_sigtramp_frame_this_id): New.
6254 (alpha_sigtramp_frame_prev_register): New.
6255 (alpha_sigtramp_frame_unwind): New.
6256 (alpha_sigtramp_frame_p): New.
6257 (struct alpha_heuristic_unwind_cache): New.
6258 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6259 don't count nop insns that occur between functions.
6260 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6261 heuristic_proc_desc, but without the mdebug wrapping.
6262 (alpha_heuristic_frame_this_id): New.
6263 (alpha_heuristic_frame_prev_register): New.
6264 (alpha_heuristic_frame_unwind): New.
6265 (alpha_heuristic_frame_p): New.
6266 (alpha_heuristic_frame_base_address): New.
6267 (alpha_heuristic_frame_base): New.
6268 (alpha_unwind_dummy_id): New.
6269 (alpha_unwind_pc): New.
6270 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6271 frame related deprecated initializations; install replacements.
6272 (alpha_dump_tdep): Remove.
6273 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6274 (alpha_read_insn, alpha_after_prologue,
6275 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6276 alpha_heuristic_frame_prev_register,
6277 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6278 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6279 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6280 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6281
6282 2003-05-29 Andrew Cagney <cagney@redhat.com>
6283
6284 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6285 dependant on the availability of ASSERT_FUNCTION.
6286 (ASSERT_FUNCTION): Do not define when there is no function name.
6287
6288 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6289
6290 From Jimi X <jimix@watson.ibm.com>:
6291 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6292
6293 2003-05-28 Jim Blandy <jimb@redhat.com>
6294
6295 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6296 argument to ptrace to int; the system headers should give it the
6297 right type, and pointers don't fit in ints on powerpc64-*-*.
6298
6299 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6300
6301 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6302 DW_TAG_catch_block.
6303
6304 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6305
6306 * stabsread.c (dbx_lookup_type): Make static.
6307 (read_type): Ditto.
6308 (add_undefined_type): Ditto.
6309 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6310 not export.
6311
6312 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6313
6314 * hpread.c (hpread_has_name): Make static.
6315 (hpread_psymtab_to_symtab): Ditto.
6316 (file_exists): Ditto.
6317 (hpread_call_pxdb): Ditto.
6318 (hpread_pxdb_needed): Ditto.
6319 (hpread_quick_traverse): Ditto.
6320 (hpread_get_header): Ditto.
6321 (hpread_get_lntt): Ditto.
6322 (hpread_get_slt): Ditto.
6323 (class_of): Ditto.
6324
6325 2003-05-25 Andreas Schwab <schwab@suse.de>
6326
6327 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6328 stack_align and deprecated_extra_stack_alignment_needed.
6329 (m68k_stack_align): Delete.
6330
6331 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6332 (m68k_register_virtual_size): Likewise.
6333 (altos_skip_prologue): Remove obsolete function.
6334 (isi_frame_num_args): Likewise.
6335 (news_frame_num_args): Likewise.
6336 (m68k_fix_call_dummy): Make static.
6337 (m68k_push_dummy_frame): Likewise.
6338 (m68k_pop_frame): Likewise.
6339 (m68k_skip_prologue): Likewise.
6340 (m68k_frame_init_saved_regs): Likewise.
6341 (m68k_saved_pc_after_call): Likewise.
6342 (m68k_get_longjmp_target): Make multi-arch.
6343 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6344 structure. Register m68k_get_longjmp_target if enabled.
6345 * m68k-tdep.h (struct gdbarch_tdep): Define.
6346 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6347
6348 * Makefile.in (config.status): Also depend on configure.tgt
6349 and configure.host.
6350 (m68klinux-tdep.o): Update dependencies.
6351 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6352 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6353 (M68K_LINUX_JB_PC): Define.
6354 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6355 and take additional parameter.
6356 (m68k_linux_sigtramp_saved_pc): Update.
6357 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6358 m68k_linux_pc_in_sigtramp, in_plt_section,
6359 find_solib_trampoline_target.
6360 * config/m68k/tm-linux.h: Don't include any tm headers.
6361 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6362 (JB_ELEMENT_SIZE): Likewise.
6363 (JB_PC): Likewise.
6364 (GET_LONGJMP_TARGET): Likewise.
6365 (IN_SIGTRAMP): Likewise.
6366 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6367
6368 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6369
6370 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6371 (sparc32_push_arguments): Re-implement by calling
6372 sparc32_do_push_arguments.
6373
6374 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6375
6376 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6377 SPARC_O1_REGNUM): New defines.
6378 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6379 (sparc32_store_return_value): New function.
6380 (sparc_extract_struct_value_address): Rewrite to operate on a
6381 regcache.
6382 (sparc_gdbarch_init): Don't set
6383 deprecated_extract_struct_value_address. Set
6384 extract_struct_value_address instead. Don't set
6385 deprecated_extract_return_value and deprecated_store_return_value
6386 for 32-bit targets. Set extract_return_value and
6387 store_return_value instead.
6388 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6389 DEPRECTAED_EXTRACT_RETURN_VALUE,
6390 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6391 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6392 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6393 (sparc_store_return_value): Remove prototype.
6394 (sparc32_store_return_value): New prototype.
6395 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6396 Adjust prototypes.
6397
6398 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6399
6400 * sparcnbsd-tdep.c: Include "gdb_string.h".
6401
6402 2003-05-23 Andrew Cagney <cagney@redhat.com>
6403
6404 * p-valprint.c (pascal_val_print): Replace extract_address with
6405 the inline equivalent extract_unsigned_integer.
6406 * jv-valprint.c (java_value_print): Ditto.
6407 * ada-valprint.c (ada_val_print_1): Ditto.
6408 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6409
6410 2003-05-23 Theodore A. Roth <troth@openavr.org>
6411
6412 * blockframe.c (frameless_look_for_prologue): Remove unused
6413 after_prologue variable.
6414
6415 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6416
6417 * blockframe.c (get_pc_function_start): Rewrite to avoid
6418 asignments in if-statements.
6419
6420 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6421
6422 Committed by Elena Zannoni <ezannoni@redhat.com>.
6423 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6424 files, don't relocate absolute symbols (and do use mst_abs).
6425
6426 2003-05-23 Andrew Cagney <cagney@redhat.com>
6427
6428 * objc-lang.c: Include "gdb_assert.h".
6429 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6430 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6431 (gdb_check, gdb_check_fatal): Delete functions.
6432 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6433 gdb_assert.
6434 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6435 * Makefile.in (objc-lang.o): Update dependencies.
6436
6437 2003-05-22 Ian Lance Taylor <ian@airs.com>
6438
6439 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6440 with fprintf_filtered, not fprintf_unfiltered.
6441
6442 2003-05-22 Andrew Cagney <cagney@redhat.com>
6443
6444 * stack.c (frame_info): Inline extract_address, replacing it with
6445 extract_unsigned_integer.
6446 * findvar.c (unsigned_pointer_to_address): Ditto.
6447 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6448 * dwarf2expr.c (dwarf2_read_address): Ditto.
6449 * frame.c (frame_pc_unwind): Update comment.
6450 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6451
6452 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6453
6454 * infptrace.c (detach): Call print_sys_errmsg rather than
6455 perror_with_name to issue warning message when errno is non-zero
6456 after calling ptrace detach.
6457
6458 2003-05-21 J. Brobecker <brobecker@gnat.com>
6459
6460 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6461 macro definitions from here...
6462 * hppa-tdep.c: ...to there.
6463
6464 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6465
6466 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6467 register_ptrace_addr(). Fix all callers.
6468
6469 2003-05-21 Andreas Schwab <schwab@suse.de>
6470
6471 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6472 dependencies.
6473 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6474 end.
6475 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6476 (_initialize_m68k_linux_tdep): New function.
6477 (m68k_linux_frame_saved_pc): Make static.
6478 (m68k_linux_extract_return_value): Likewise.
6479 (m68k_linux_store_return_value): Likewise.
6480 (m68k_linux_extract_struct_value_address): Likewise.
6481 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6482 Remove.
6483 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6484 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6485 (DEPRECATED_FRAME_SAVED_PC): Remove.
6486
6487 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6488
6489 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6490 regset numbering rather than our own.
6491
6492 2003-05-19 David Carlton <carlton@bactrian.org>
6493
6494 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6495
6496 2003-05-19 David Carlton <carlton@bactrian.org>
6497
6498 Partial fix for PR c++/827.
6499 * cp-support.h: Include symtab.h.
6500 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6501 * cp-namespace.c: Update contributors.
6502 (cp_lookup_symbol_nonlocal): New.
6503 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6504 (lookup_symbol_file): Ditto.
6505 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6506 * block.h: Declare block_scope, block_using, block_global_block.
6507 * block.c (block_scope): New.
6508 (block_using, block_global_block): Ditto.
6509 * Makefile.in (cp_support_h): Depend on symtab_h.
6510 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6511
6512 2003-05-19 David Carlton <carlton@bactrian.org>
6513
6514 * language.h (struct language_defn): Add 'la_value_of_this'
6515 and 'la_lookup_symbol_nonlocal' members.
6516 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6517 lookup_symbol_static, lookup_symbol_global,
6518 lookup_symbol_aux_block.
6519 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6520 if we should search fields of this and how to do static/global
6521 lookup.
6522 (lookup_symbol_aux_block): Make extern.
6523 (basic_lookup_symbol_nonlocal): New.
6524 (lookup_symbol_static, lookup_symbol_global): Ditto.
6525 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6526 'la_lookup_symbol_nonlocal' members.
6527 * c-lang.c (c_language_defn, cplus_language_defn)
6528 (asm_language_defn, minimal_language_defn): Ditto.
6529 * jv-lang.c (java_language_defn): Ditto.
6530 * language.c (unknown_language_defn, auto_language_defn)
6531 (local_language_defn): Ditto.
6532 * m2-lang.c (m2_language_defn): Ditto.
6533 * objc-lang.c (objc_language_defn): Ditto.
6534 * scm-lang.c (scm_language_defn): Ditto.
6535 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6536 * p-lang.c (pascal_language_defn): Ditto for both.
6537 * Makefile.in (f-lang.o): Depend on value_h.
6538 (p-lang.o): Ditto.
6539
6540 2003-05-19 David Carlton <carlton@bactrian.org>
6541
6542 * block.h: Declare block_static_block.
6543 * block.c (block_static_block): New.
6544 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6545 lookup_symbol_aux_local, calling block_static_block instead.
6546 (lookup_symbol_aux_local): Delete 'static_block' argument.
6547
6548 2003-05-19 David Carlton <carlton@bactrian.org>
6549
6550 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6551
6552 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6553
6554 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6555 register numbers mapping.
6556
6557 2003-05-18 Adam Fedor <fedor@gnu.org>
6558
6559 * symtab.c (completion_list_objc_symbol): New function.
6560 (make_symbol_completion_list): Use it to add ObjC symbols
6561 when looking though the list.
6562 (language_search_unquoted_string): New function.
6563 (make_file_symbol_completion_list): Use it.
6564
6565 2003-05-18 Andreas Schwab <schwab@suse.de>
6566
6567 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6568 dependencies.
6569 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6570 as m68k_linux_extract_return_value.
6571 (DEPRECATED_STORE_RETURN_VALUE): Define as
6572 m68k_linux_store_return_value.
6573 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6574 m68k_linux_extract_struct_value_address.
6575 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6576 get_next_frame, get_frame_base, get_frame_pc.
6577 (m68k_linux_frame_saved_pc): Use get_frame_base.
6578 (m68k_linux_extract_return_value): New function.
6579 (m68k_linux_store_return_value): New function.
6580 (m68k_linux_extract_struct_value_address): New function.
6581 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6582
6583 * c-exp.y (typebase): Remove duplicate occurence of
6584 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6585 of lookup_signed_typename.
6586
6587 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6588
6589 * dwarf2loc.c (find_location_expression): Change type of second
6590 argument to `size_t *'.
6591 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6592 for size variable.
6593
6594 2003-05-18 David Carlton <carlton@bactrian.org>
6595
6596 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6597 'linkage_name'. Add comment.
6598 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6599 'linkage_name'.
6600 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6601 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6602 (lookup_block_symbol): Ditto.
6603
6604 2003-05-16 Andrew Cagney <cagney@redhat.com>
6605
6606 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6607 * gdbarch.h, gdbarch.c: Re-generate.
6608 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6609 * TODO (REGISTER_BYTES): Delete reference.
6610 * alpha-tdep.c (alpha_gdbarch_init): Update.
6611 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6612 * x86-64-tdep.c (x86_64_init_abi): Update.
6613 * vax-tdep.c (vax_gdbarch_init): Update.
6614 * v850-tdep.c (v850_gdbarch_init): Update.
6615 * sparc-tdep.c (sparc_gdbarch_init): Update.
6616 * sh-tdep.c (sh_gdbarch_init): Update.
6617 * s390-tdep.c (s390_gdbarch_init): Update.
6618 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6619 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6620 (ns32k_gdbarch_init_32382): Update.
6621 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6622 * mcore-tdep.c (mcore_gdbarch_init): Update.
6623 * m68k-tdep.c (m68k_gdbarch_init): Update.
6624 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6625 * ia64-tdep.c (ia64_gdbarch_init): Update.
6626 * i386-tdep.c (i386_gdbarch_init): Update.
6627 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6628 * hppa-tdep.c (hppa_gdbarch_init): Update.
6629 * h8300-tdep.c (h8300_gdbarch_init): Update.
6630 * frv-tdep.c (frv_gdbarch_init): Update.
6631 * cris-tdep.c (cris_gdbarch_init): Update.
6632 * avr-tdep.c (avr_gdbarch_init): Update.
6633 * arm-tdep.c (arm_gdbarch_init): Update.
6634 * sparc-tdep.c (sparc_pop_frame): Update.
6635 * rs6000-tdep.c (rs6000_pop_frame): Update.
6636 * remote.c (init_remote_state): Update.
6637 (remote_prepare_to_store): Update.
6638 * remote-vx.c (vx_prepare_to_store): Update.
6639 * remote-sds.c (sds_fetch_registers): Update.
6640 (sds_prepare_to_store): Update.
6641 * remote-array.c: Update.
6642 * regcache.c (init_legacy_regcache_descr): Update.
6643 (init_regcache_descr): Update.
6644 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6645 (mips_o64_extract_return_value): Update.
6646 * irix5-nat.c (fetch_core_registers): Update.
6647 * irix4-nat.c (fetch_core_registers): Update.
6648 * i386-tdep.h: Update.
6649 * hppa-tdep.c (pa_do_registers_info): Update.
6650 (pa_do_strcat_registers_info): Update.
6651 * cris-tdep.c (cris_register_bytes_ok): Update.
6652 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6653 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6654 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6655 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6656 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6657 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6658 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6659 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6660 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6661 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6662 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6663 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6664 (REGISTER_BYTES_OK): Update.
6665 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6666 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6667
6668 2003-05-16 Ian Lance Taylor <ian@airs.com>
6669
6670 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6671 (vax_print_insn, print_insn_arg): Remove static functions.
6672 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6673 print_insn_vax from opcodes library.
6674 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6675
6676 2003-05-15 Andrew Cagney <cagney@redhat.com>
6677
6678 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6679 * target.h (memory_breakpoint_from_pc): Delete declaration.
6680 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6681 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6682 * monitor.c (monitor_insert_breakpoint): Use
6683 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6684 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6685 * gdbarch.h, gdbarch.c: Re-generate.
6686 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6687 (sparc_gdbarch_init): Set breakpoint_from_pc to
6688 sparc_breakpoint_from_pc.
6689 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6690 (BREAKPOINT_FROM_PC): Define.
6691 (sparc_breakpoint_from_pc): Declare.
6692 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6693 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6694 (BREAKPOINT_FROM_PC): Define.
6695 (BREAKPOINT): Delete macro.
6696 * target.h: Update comment.
6697 * s390-tdep.c (s390_gdbarch_init): Update comments.
6698 * remote.c: Update comments.
6699 * remote-mips.c: Update comments.
6700 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6701 * mem-break.c: Update comment.
6702 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6703 (ia64_memory_insert_breakpoint): Update.
6704 * config/sparc/tm-sparc.h: Update comment.
6705 * config/pa/tm-hppa64.h: Update comment.
6706 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6707 (rs6000_breakpoint_from_pc): Update.
6708 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6709 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6710 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6711 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6712 (mips_breakpoint_from_pc): Update.
6713 (mips_dump_tdep): Update.
6714
6715 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6716 * minsyms.c (lookup_minimal_symbol): Inline
6717 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6718
6719 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6720 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6721 * p-lang.c (pascal_printstr): Ditto.
6722 * objc-lang.c (objc_printstr): Ditto.
6723 * m2-lang.c (m2_printstr): Ditto.
6724 * jv-valprint.c (java_print_value_fields): Ditto.
6725 * f-lang.c (f_printstr): Ditto.
6726 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6727 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6728 for repeat_count_threshold.
6729 * Makefile.in (cp-valprint.o): Update dependencies.
6730
6731 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6732
6733 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6734 (examine_prologue): Support looking through leaf functions, knowing
6735 they start with mov r2,r12. Support skipping over indirect stores
6736 of the input registers. Upon hitting a non-nop branch instruction
6737 or predicated instruction, bail out by setting lim_pc to the current
6738 pc value in the loop. At the end, if the lim_pc value is still
6739 beyond our calculated value and we have trust_limit set,
6740 use the lim_pc value.
6741
6742 2003-05-15 Andrew Cagney <cagney@redhat.com>
6743
6744 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6745 generic_find_dummy_frame.
6746 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6747 (deprecated_generic_find_dummy_frame): Update.
6748 (deprecated_read_register_dummy): Update.
6749 * frame.c (deprecated_generic_get_saved_register): Update.
6750
6751 2003-05-15 Theodore A. Roth <troth@openavr.org>
6752
6753 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6754 (avr_gdbarch_init): Set breakpoint_from_pc method.
6755
6756 2003-05-15 Andrew Cagney <cagney@redhat.com>
6757
6758 * regcache.c (build_regcache): Set deprecated_register_valid
6759 directly.
6760 (deprecated_grub_regcache_for_register_valid): Delete function.
6761 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6762 declaration.
6763
6764 2003-05-15 David Carlton <carlton@bactrian.org>
6765
6766 Committed by Elena Zannoni <ezannoni@redhat.com>
6767 * symtab.c (lookup_symbol_aux): Delete calls to
6768 lookup_symbol_aux_minsyms.
6769 (lookup_symbol_aux_minsyms): Comment out function and
6770 prototype. Delete lookup by mangled name.
6771
6772 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6773
6774 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6775 correctly indicate an empty stack and ``stack_allocated'' to the
6776 indicate the number of elements initially allocated.
6777 (dwarf_expr_grow_stack): Simplify method for computing new
6778 stack size. Don't loop infinitely if ``stack_len'' is zero.
6779 (execute_stack_op): Move ``ctx->in_reg'' initialization
6780 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6781 be used in conjuction with DW_OP_piece. Revise error message
6782 accordingly.
6783
6784 2003-05-14 Theodore A. Roth <troth@openavr.org>
6785
6786 * MAINTAINERS: Update my email address.
6787 * avr-tdep.c: Ditto.
6788
6789 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6790
6791 * symtab.h (enum domain_enum): Rename from namespace_enum.
6792 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6793 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6794 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6795 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6796 TYPES_NAMESPACE, METHODS_NAMESPACE.
6797 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6798 (struct symbol, struct partial_symbol): Rename field
6799 'namespace_enum namespace' to 'domain_enum domain'.
6800 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6801 Delete old define kludge for namespace.
6802
6803 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6804 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6805 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6806 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6807 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6808 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6809 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6810 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6811 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6812 occurrences of the above.
6813
6814 2003-05-14 Ian Lance Taylor <ian@airs.com>
6815
6816 * Makefile.in (install-only): Use $(SHELL) when running
6817 mkinstalldirs.
6818
6819 2003-05-13 Ian Lance Taylor <ian@airs.com>
6820
6821 * MAINTAINERS (write after approval): Add myself.
6822
6823 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6824 second and third arguments.
6825 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6826 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6827
6828 2003-05-13 Andrew Cagney <cagney@redhat.com>
6829
6830 * defs.h (store_address): Delete declaration.
6831 findvar.c (store_address): Delete function.
6832 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6833 store_unsigned_integer.
6834 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6835 * v850-tdep.c (v850_push_arguments): Ditto.
6836 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6837 * sh-tdep.c (sh64_get_saved_register): Ditto.
6838 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6839 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6840 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6841 (mips_get_saved_register): Ditto.
6842 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6843 (find_func_descr, ia64_push_arguments): Ditto.
6844 * i386-tdep.c (i386_push_arguments): Ditto.
6845 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6846 * frv-tdep.c (frv_push_arguments): Ditto.
6847 * frame.c (legacy_saved_regs_prev_register): Ditto.
6848 (deprecated_generic_get_saved_register): Ditto.
6849 * findvar.c (unsigned_address_to_pointer): Ditto.
6850 * dwarf2read.c (dwarf2_const_value): Ditto.
6851 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6852 * alpha-tdep.c (alpha_push_arguments): Ditto.
6853
6854 2003-05-12 J. Brobecker <brobecker@gnat.com>
6855
6856 * NEWS: Mention that the hppa-hpux port has been partially
6857 multiarched (32bit ABIT only, so far).
6858
6859 2003-05-11 Andrew Cagney <cagney@redhat.com>
6860
6861 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6862 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6863 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6864 sim/testsuite/sim/arm/misaligned2.ms, and
6865 sim/testsuite/sim/arm/misaligned3.ms.
6866 * disasm.h (struct ui_file): Add opaque struct declaration.
6867 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6868 * frame.h (struct ui_file): Ditto.
6869
6870 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6871
6872 * value.h: Pretty print.
6873
6874 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6875
6876 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6877
6878 2003-05-08 Andrew Cagney <cagney@redhat.com>
6879
6880 * regcache.h (max_register_size): Delete declaration.
6881 * regcache.c (max_register_size): Delete function.
6882 (struct regcache_descr): Delete field "max_register_size".
6883 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6884 registers fit in MAX_REGISTER_SIZE.
6885 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6886 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6887 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6888 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6889 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6890 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6891 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6892 * dve3900-rom.c, hppa-tdep.c: Ditto.
6893
6894 2003-05-08 David Carlton <carlton@math.stanford.edu>
6895
6896 * valops.c (push_word): Fix typo.
6897
6898 2003-05-08 Andrew Cagney <cagney@redhat.com>
6899
6900 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6901 * gdbarch.h: Re-generate.
6902 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6903 (legacy_max_register_raw_size): Delete declaration.
6904 * regcache.c (legacy_max_register_raw_size): Delete function.
6905 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6906 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6907 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6908 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6909 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6910 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6911 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6912 * findvar.c, dwarf2cfi.c: Ditto.
6913
6914 2003-05-08 Andrew Cagney <cagney@redhat.com>
6915
6916 * mips-tdep.c (read_signed_register): New function, moved to here
6917 from "regcache.c".
6918 (read_signed_register_pid): Ditto.
6919 * regcache.c (read_signed_register_pid): Delete function, moved to
6920 "mips-tdep.c".
6921 (read_signed_register): Ditto.
6922 * regcache.h (read_signed_register): Delete declaration.
6923 (read_signed_register_pid): Delete declaration.
6924
6925 2003-05-08 Andrew Cagney <cagney@redhat.com>
6926
6927 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6928 * gdbarch.h: Re-generate.
6929 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6930 (legacy_max_register_virtual_size): Delete declaration.
6931 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6932 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6933 * tracepoint.c (memrange_sortmerge): Ditto.
6934 * sparc-tdep.c (sparc_print_registers): Ditto.
6935 * regcache.c (legacy_max_register_virtual_size): Delete function.
6936
6937 2002-05-08 J. Brobecker <brobecker@gnat.com>
6938
6939 * fork-child.c (escape_bang_in_quoted_argument): New function.
6940 (fork_inferior): Escape '!' characters in quoted arguments
6941 only when needed.
6942
6943 2003-05-08 J. Brobecker <brobecker@gnat.com>
6944
6945 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6946 the language of the CU is not currently supported by GDB.
6947
6948 2003-05-08 J. Brobecker <brobecker@gnat.com>
6949
6950 * defs.h (language): Add language_minimal enum value.
6951 * c-lang.c (minimal_language_defn): New language definition.
6952 (_initialize_c_language): Add the new minimal language to the list
6953 of languages known to GDB.
6954
6955 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6956
6957 * frame.c (get_frame_type): Don't attempt to lazily initialize
6958 frame's unwinder for legacy frames.
6959
6960 2003-05-07 Andrew Cagney <cagney@redhat.com>
6961
6962 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6963 and "regcache" parameters.
6964 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6965
6966 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6967
6968 * dwarf2read.c (dwarf_decode_lines): Only use output of
6969 check_cu_functions() when calling record_line(). Do not update
6970 the current address.
6971
6972 2003-05-07 Andrew Cagney <cagney@redhat.com>
6973
6974 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6975 code.
6976
6977 2003-05-07 Jim Blandy <jimb@redhat.com>
6978
6979 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6980 'maint info symtabs' and 'maint info psymtabs'.
6981 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6982 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6983 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6984 Declarations updated.
6985 * maint.c (maintenance_list_command): Delete.
6986 (_initialize_maint_cmds): Update calls to add_cmd.
6987 * gdbcmd.h (maintenancelistlist): Delete declaration.
6988 * cli/cli-cmds.c (maintenancelistlist): Delete.
6989 (init_cmd_lists): Don't initialize it.
6990 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6991
6992 2003-05-07 Andrew Cagney <cagney@redhat.com>
6993
6994 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6995 "regcache".
6996 (d10v_print_registers_info): Update.
6997 (d10v_dmap_register, d10v_imap_register): Delete functions.
6998 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6999 and "imap_register".
7000 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7001 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7002 * arch-utils.c (generic_remote_translate_xfer_address): Add
7003 "regcache" and "gdbarch" parameters.
7004 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7005 parameter. Change class to multi-arch.
7006 * gdbarch.h, gdbarch.c: Re-generate.
7007 * remote.c (remote_xfer_memory): Use
7008 gdbarch_remote_translate_xfer_address.
7009
7010 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7011
7012 * infrun.c (prev_pc): Move declaration ahead of proceed().
7013 (proceed): Refresh prev_pc value before resuming.
7014 (stop_stepping): Remove code to refresh prev_pc.
7015
7016 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7017
7018 * nto-tdep.c: Removed stray comment.
7019
7020 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7021
7022 * i386-nto-tdep.c: Fix old K&R function definitions.
7023 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7024 Also change add_show_from_set() call to add_setshow_cmd().
7025 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7026
7027 2003-05-05 Andrew Cagney <cagney@redhat.com>
7028
7029 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7030 (fprint_dummy_frames): New function.
7031 (maintenance_print_dummy_frames): New function.
7032 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7033 * frame.c (fprint_frame_id): Make global.
7034 * frame.h (fprint_frame_id): Declare.
7035 * Makefile.in (dummy-frame.o): Update dependencies.
7036
7037 2003-05-05 Andrew Cagney <cagney@redhat.com>
7038
7039 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7040 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7041 SIZEOF_CALL_DUMMY_WORDS.
7042 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7043 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7044 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7045 CALL_DUMMY_BREAKPOINT_OFFSET.
7046 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7047 CALL_DUMMY_START_OFFSET.
7048 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7049 * gdbarch.h, gdbarch.c: Re-generate.
7050 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7051 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7052 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7053 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7054 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7055 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7056 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7057 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7058 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7059 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7060 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7061 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7062 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7063 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7064 * config/sparc/tm-sparc.h: Update.
7065
7066 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7067
7068 * configure.tgt: Add i[3456]86-*-nto*.
7069 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7070 * nto-tdep.c: New file. Neutrino target support routines.
7071 * nto-tdep.h: New file. Neutrino target header.
7072 * config/tm-qnxnto.h: New file.
7073 * config/i386/i386nto.mt: New file.
7074 * config/i386/tm-i386nto.h: New file.
7075
7076 2003-05-04 Andrew Cagney <cagney@redhat.com>
7077
7078 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7079 (load_infrun_state): Ditto.
7080 (struct thread_info): Drop "prev_func_name" field.
7081 * thread.c (load_infrun_state): Update.
7082 (save_infrun_state): Update.
7083 * infrun.c (prev_func_name): Delete variable.
7084 (init_wait_for_inferior): Do not clear prev_func_name.
7085 (stop_stepping, keep_going, context_switch): Do not swap
7086 prev_func_name.
7087 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7088 instead of PC_IN_SIGTRAMP.
7089
7090 2003-05-04 Andrew Cagney <cagney@redhat.com>
7091
7092 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7093 REGISTER_BYTE with register_offset_hack.
7094 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7095 that REGISTER_BYTE is consistent with the regcache.
7096 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7097 * gdbarch.h, gdbarch.c: Regenerate.
7098
7099 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7100
7101 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7102 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7103
7104 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7105
7106 2003-05-03 J. Brobecker <brobecker@gnat.com>
7107
7108 From Thierry Schneider <tpschneider1@yahoo.com>
7109 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7110 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7111 (mi-cmd-symbol.o): Add rule.
7112
7113 2003-05-03 Andrew Cagney <cagney@redhat.com>
7114
7115 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7116 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7117 * gdbarch.h, gdbarch.c: Re-generate.
7118 * d10v-tdep.c (d10v_push_dummy_code): New function.
7119 (d10v_gdbarch_init): Set push_dummy_code.
7120 * infcall.c (legacy_push_dummy_code): New function.
7121 (generic_push_dummy_code): New function.
7122 (push_dummy_code): New function.
7123 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7124 instead of dummy_addr, to push_dummy_call. Move call to
7125 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7126 switch.
7127 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7128
7129 2003-05-03 Andrew Cagney <cagney@redhat.com>
7130
7131 * disasm.h (print_insn): Declare.
7132 * disasm.c (init_gdb_disassemble_info): New function.
7133 (gdb_disassembly): Call init_gdb_disassemble_info.
7134 (gdb_print_insn): New function.
7135 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7136 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7137 * mcore-tdep.c: Include "disasm.h"
7138 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7139 * d10v-tdep.c: Include "disasm.h".
7140 (display_trace): Call gdb_print_insn, instead of print_insn.
7141 (print_insn): Delete function.
7142 * printcmd.c: Include "disasm.h".
7143 (print_insn): Delete function.
7144 (print_formatted): Call gdb_print_insn, instead of print_insn.
7145 * Makefile.in (printcmd.o): Update dependencies.
7146 (mcore-tdep.o, d10v-tdep.o): Ditto.
7147
7148 2003-05-02 Andrew Cagney <cagney@redhat.com>
7149
7150 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7151 PC_REGNUM, re-indent.
7152 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7153 PC_REGNUM isn't set.
7154
7155 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7156 * gdbarch.h, gdbarch.c: Re-generate.
7157 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7158 register_virtual_size, pc_regnum, or register_bytes.
7159 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7160 (d10v_register_type): Use D10V_PC_REGNUM.
7161 (d10v_print_registers_info, d10v_read_pc): Ditto.
7162 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7163 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7164
7165 2003-05-02 David Carlton <carlton@bactrian.org>
7166
7167 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7168 the name with mstrsave.
7169
7170 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7171
7172 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7173 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7174 (host_charset_name, target_charset_name): New vars for use by
7175 set/show commands.
7176 (host_charset_enum, target_charset_enum): New enums for set/show
7177 commands.
7178 (set_charset_sfunc, set_host_charset_sfunc,
7179 set_target_charset_sfunc): New functions.
7180 (set_host_charset, set_target_charset): Make static.
7181 (list_charsets, set_host_charset_command,
7182 set_target_charset_command): Delete functions.
7183 (show_charset_command): Rewrite as....
7184 (show_charset): Hook this up with the set/show command mechanism.
7185 (_initialize_charset): Change names of charsets to match the
7186 set/show enums. Use host_charset_name and target_charset_name.
7187 Use set/show mechanism for charset, host-charset, target-charset
7188 commands. Do not make 'show host-charset' and 'show
7189 target-charset' be aliases of 'show charset'.
7190
7191 * charset.h (set_host_charset, set_target_charset): Don't export,
7192 they are not used outside the file.
7193
7194 2003-05-01 Andrew Cagney <cagney@redhat.com>
7195
7196 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7197 (gdb_disassembly): Make "di" non static, always initialize and
7198 cleanup. Always use dis_asm_read_memory.
7199 (gdb_dis_asm_read_memory): Delete function.
7200
7201 2003-05-01 Andrew Cagney <cagney@redhat.com>
7202
7203 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7204 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7205
7206 2003-04-30 Andrew Cagney <cagney@redhat.com>
7207
7208 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7209 "tm_print_insn_info".
7210 (TARGET_PRINT_INSN_INFO): Delete macro.
7211 (dis_asm_read_memory): Delete function declaration.
7212 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7213 (tm_print_insn_info): Delete variable definition.
7214 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7215 * gdbarch.h, gdbarch.c: Re-generate.
7216 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7217 "deprecated_tm_print_insn_info".
7218 * mcore-tdep.c (mcore_dump_insn): Ditto.
7219 * mips-tdep.c (mips_gdbarch_init): Ditto.
7220 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7221 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7222 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7223 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7224 instead of TARGET_PRINT_INSN_INFO, add comment.
7225 * s390-tdep.c (s390_get_frame_info): Instead of
7226 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7227 (s390_check_function_end, s390_is_sigreturn): Ditto.
7228 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7229 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7230 * disasm.c: Include "gdbcore.h".
7231 (_initialize_disasm): New function, initialize
7232 "deprecated_tm_print_insn_info".
7233 (deprecated_tm_print_insn_info): New variable.
7234 (dis_asm_read_memory): Moved from "corefile.c", made static.
7235 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7236 * Makefile.in (disasm.o): Update dependencies.
7237
7238 2003-04-30 Andrew Cagney <cagney@redhat.com>
7239
7240 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7241
7242 2003-04-29 Adam Fedor <fedor@gnu.org>
7243
7244 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7245 * infcall.c (find_function_addr): Make non-static.
7246 * infcall.h (find_function_addr): Declare.
7247 * Makefile.in (eval.o): Update dependencies.
7248
7249 2003-04-28 Adam Fedor <fedor@gnu.org>
7250
7251 * symtab.c (symbol_find_demangled_name): Check for and demangle
7252 ObjC symbols.
7253 (symbol_init_demangled_name): Init for language_objc as well.
7254
7255 2003-04-28 Andrew Cagney <cagney@redhat.com>
7256
7257 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7258 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7259 * gdbarch.h, gdbarch.c: Re-generate.
7260 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7261 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7262 * inferior.h (deprecated_read_fp): Rename read_fp.
7263 (generic_target_read_fp): Delete declaration.
7264 * regcache.c (generic_target_read_fp): Delete function.
7265 (deprecated_read_fp): Replace read_fp, use
7266 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7267 * d10v-tdep.c (d10v_read_fp): Delete function.
7268 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7269
7270 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7271 deprecated_target_read_fp to generic_target_read_fp.
7272 * sh-tdep.c (sh_gdbarch_init): Ditto.
7273 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7274 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7275 * frv-tdep.c (frv_gdbarch_init): Ditto.
7276
7277 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7278 deprecated_fp_regnum.
7279 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7280 * vax-tdep.c (vax_gdbarch_init): Ditto.
7281 * v850-tdep.c (v850_gdbarch_init): Ditto.
7282 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7283 * sh-tdep.c (sh_gdbarch_init): Ditto.
7284 * s390-tdep.c (s390_gdbarch_init): Ditto.
7285 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7286 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7287 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7288 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7290 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7291 * i386-tdep.c (i386_gdbarch_init): Ditto.
7292 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7293 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7294 * frv-tdep.c (frv_gdbarch_init): Ditto.
7295 * cris-tdep.c (cris_gdbarch_init): Ditto.
7296 * avr-tdep.c (avr_gdbarch_init): Ditto.
7297 * arm-tdep.c (arm_gdbarch_init): Ditto.
7298 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7299
7300 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7301 * v850-tdep.c (v850_gdbarch_init): Ditto.
7302 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7303 * sh-tdep.c (sh_gdbarch_init): Ditto.
7304 * s390-tdep.c (s390_gdbarch_init): Ditto.
7305 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7306 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7307 * mips-tdep.c (mips_gdbarch_init): Ditto.
7308 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7309 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7310 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7311 * frv-tdep.c (frv_gdbarch_init): Ditto.
7312 * avr-tdep.c (avr_gdbarch_init): Ditto.
7313 * arm-tdep.c (arm_gdbarch_init): Ditto.
7314
7315 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7316 DEPRECATED_FP_REGNUM.
7317 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7318 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7319 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7320 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7321 (sparc32_register_virtual_type): Ditto.
7322 * sh-tdep.c (sh64_frame_chain): Ditto.
7323 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7324 (sh_nofp_frame_init_saved_regs): Ditto.
7325 (sh64_nofp_frame_init_saved_regs): Ditto.
7326 (sh_fp_frame_init_saved_regs): Ditto.
7327 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7328 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7329 * procfs.c (procfs_fetch_registers): Ditto.
7330 (procfs_store_registers): Ditto.
7331 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7332 (store_inferior_registers, fetch_core_registers): Ditto.
7333 (fetch_kcore_registers, clear_regs): Ditto.
7334 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7335 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7336 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7337 * nlm/i386.c (do_status): Ditto.
7338 * mipsv4-nat.c (supply_gregset): Ditto.
7339 * mips-tdep.c: Ditto for comments.
7340 * mips-nat.c (fetch_inferior_registers): Ditto.
7341 (store_inferior_registers, fetch_core_registers): Ditto.
7342 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7343 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7344 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7345 (i386_do_pop_frame, i386_register_type): Ditto.
7346 * hppa-tdep.c (hppa_frame_chain): Ditto.
7347 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7348 (hppa_pop_frame, hppa_read_fp): Ditto.
7349 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7350 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7351 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7352 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7353 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7354 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7355 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7356 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7357 * blockframe.c: Ditto for comments.
7358 * arch-utils.h: Ditto for comments.
7359 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7360 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7361 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7362 * alpha-tdep.h: Ditto for comments.
7363 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7364 (alpha_cannot_store_register): Ditto.
7365 (alpha_push_dummy_frame): Ditto.
7366 * alpha-nat.c (supply_gregset): Ditto.
7367
7368 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7369 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7370 * config/sparc/tm-sparc.h: Update comment.
7371
7372 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7373 deprecated_read_fp instead of TARGET_READ_FP.
7374 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7375 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7376 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7377 deprecated_read_fp instead of read_fp.
7378 * s390-tdep.c (s390_push_arguments): Ditto.
7379 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7380 * frame.h: Ditto in comments.
7381 * frame.c (legacy_get_prev_frame): Ditto.
7382 * dummy-frame.c (dummy_frame_this_id): Ditto.
7383 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7384
7385 2003-04-28 Andrew Cagney <cagney@redhat.com>
7386
7387 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7388 * gdbarch.h, gdbarch.c: Re-generate.
7389 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7390 * vax-tdep.c (_initialize_vax_tdep): Update.
7391 * v850-tdep.c (_initialize_v850_tdep): Update.
7392 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7393 * s390-tdep.c (_initialize_s390_tdep): Update.
7394 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7395 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7396 * mips-tdep.c (_initialize_mips_tdep): Update.
7397 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7398 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7399 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7400 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7401 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7402 * frv-tdep.c (_initialize_frv_tdep): Update.
7403 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7404 (_initialize_cris_tdep): Update.
7405 * arch-utils.c (legacy_print_insn): Update.
7406 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7407
7408 2003-04-26 Adam Fedor <fedor@gnu.org>
7409
7410 * linespec.c (decode_objc): New function to decode ObjC calls
7411 (decode_line_1): Check for ObjC calls (using decode_objc)
7412 * Makefile (linespec.o): Update dependencies.
7413
7414 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7415
7416 * breakpoint.h (struct breakpoint_ops): New.
7417 (struct breakpoint): Add ops member.
7418
7419 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7420 (mention): Use new breakpoint ops member.
7421 (set_raw_breakpoint): Initialize ops field to NULL.
7422 (print_exception_catchpoint, print_one_exception_catchpoint)
7423 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7424 (gnu_v3_exception_catchpoint_ops): New.
7425 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7426
7427 2003-04-25 Adam Fedor <fedor@gnu.org>
7428
7429 * Makefile.in (COMMON_OBS): Add objc-lang.o
7430
7431 2003-04-25 Andrew Cagney <cagney@redhat.com>
7432
7433 * d10v-tdep.c (print_insn): Delete function.
7434 (display_trace): Use TARGET_PRINT_INSN.
7435 (_initialize_d10v_tdep): Do not set tm_print_insn.
7436 (d10v_gdbarch_init): Set print_insn.
7437
7438 2003-04-25 Andrew Cagney <cagney@redhat.com>
7439
7440 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7441 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7442 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7443 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7444 (nr_dmap_regs, a0_regnum): ... new functions.
7445 (d10v_print_registers_info): Use a0_regnum, use register_size.
7446 (d10v_register_byte): Delete function.
7447 (d10v_register_raw_size): Delete function.
7448 (d10v_register_type): Use a0_regnum.
7449 (d10v_print_registers_info): Use a0_regnum.
7450 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7451 (d10v_gdbarch_init): Do not set register_byte or
7452 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7453 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7454 extract_address.
7455 (trace_command): Use XCALLOC.
7456 (print_insn): Delete reference to tm_print_insn.
7457 (saved_regs_unwinder): Use store_unsigned_integer instead of
7458 store_address.
7459 * frame.h (FRAME_OBSTACK_CALLOC): Define
7460
7461 2003-04-25 David Carlton <carlton@bactrian.org>
7462
7463 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7464
7465 2003-04-24 Adam Fedor <fedor@gnu.org>
7466
7467 * objc-lang.c: Include "valprint.h"
7468 * Makefile.in (objc-lang.o): Update dependencies.
7469
7470 2003-04-24 Adam Fedor <fedor@gnu.org>
7471
7472 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7473 architecture dependant compilation and mark as unimplemented
7474 (until they get put in the gdbarch vector).
7475
7476 2003-04-23 David Carlton <carlton@bactrian.org>
7477
7478 * cp-support.c (cp_find_first_component): Accept 'operator' in
7479 more locations.
7480
7481 2003-04-23 Andrew Cagney <cagney@redhat.com>
7482
7483 * infcall.c (call_function_by_hand): Eliminate redundant
7484 indentation. Move "saved_async" and "old_cleanups" to where they
7485 are needed.
7486
7487 2003-04-23 Andrew Cagney <cagney@redhat.com>
7488
7489 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7490 and "buffer". Move the "name" code to where it is needed.
7491
7492 2003-04-23 Andrew Cagney <cagney@redhat.com>
7493
7494 * infcall.c (call_function_by_hand): Move variables "start_sp",
7495 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7496 code to ON_STACK switch branch.
7497
7498 2003-04-23 Andrew Cagney <cagney@redhat.com>
7499
7500 * infcall.c (call_function_by_hand): Make declaration of "i",
7501 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7502 lint.
7503
7504 2003-04-23 Andrew Cagney <cagney@redhat.com>
7505
7506 * infcall.c (call_function_by_hand): Delete variable
7507 "n_method_args". Localize "param_type"'s declaration to the loop
7508 that it is used. Reinstate code assigning to said variable -
7509 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7510 Rationalize code using "param_type".
7511
7512 2003-04-22 Andrew Cagney <cagney@redhat.com>
7513
7514 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7515 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7516 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7517 to DEPRECATED_PUSH_RETURN_ADDRESS.
7518
7519 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7520
7521 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7522 on the DWARF2 register number prior to fetching a register.
7523
7524 2003-04-22 J. Brobecker <brobecker@gnat.com>
7525
7526 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7527 Update all the tests using SOFT_FLOAT considering the fact that
7528 this macro was always set to 0.
7529 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7530 considering the fact that this macro was always set to 0.
7531 * hppa-tdep.h (hppa_store_return_value): Likewise.
7532 (hppa_extract_return_value): Likewise.
7533
7534 2003-04-22 J. Brobecker <brobecker@gnat.com>
7535
7536 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7537 the hppa-pro target only.
7538
7539 2003-04-21 J. Brobecker <brobecker@gnat.com>
7540
7541 Ongoing multi-arch conversion effort for HP/UX:
7542 * config/pa/tm-hppa.h: Move all macro that are no longer
7543 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7544 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7545
7546 2003-04-21 J. Brobecker <brobecker@gnat.com>
7547
7548 * config/pa/tm-hppa.h: Obsolete a section that was only used
7549 for hppa-pro.
7550
7551 2003-04-21 J. Brobecker <brobecker@gnat.com>
7552
7553 Ongoing multi-arch conversion for HP/UX.
7554 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7555 if already defined (allows hppa64 to stay non-multiarched for now).
7556 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7557
7558 2003-04-21 Andrew Cagney <cagney@redhat.com>
7559
7560 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7561
7562 2003-04-21 Andrew Cagney <cagney@redhat.com>
7563
7564 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7565 "i386_num_mmx_regs".
7566
7567 2003-04-21 Andrew Cagney <cagney@redhat.com>
7568
7569 * infcall.c: New file.
7570 * infcall.h: New file.
7571 * valarith.c: Include "infcall.h".
7572 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7573 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7574 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7575 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7576 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7577 (SFILES): Add "infcall.c"
7578 (COMMON_OBS): Add "infcall.o".
7579 (infcall.o): Specify dependencies.
7580 * value.h (call_function_by_hand): Delete declaration.
7581 * inferior.h (run_stack_dummy): Delete declaration.
7582 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7583 (run_stack_dummy): Move to "infcall.c", merged into
7584 call_function_by_hand.
7585 * valops.c (call_function_by_hand): Moved to "infcall.c".
7586 (find_function_addr, value_arg_coerce): Ditto.
7587 (unwindonsignal_p, coerce_float_to_double): Ditto.
7588 (_initialize_valops): Move "set/show coerce-float-to-double", and
7589 "set/show unwindonsignal" commands to "infcall.c".
7590 * v850-tdep.c, target.h: Update comments.
7591 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7592 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7593 (sh64_init_extra_frame_info): Update comments.
7594 * mn10300-tdep.c: Update comments.
7595 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7596 * config/sparc/tm-sparc.h: Update comments.
7597 * breakpoint.h: Update comments.
7598 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7599 * arm-tdep.c: Update comment.
7600
7601 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7602
7603 * i386-tdep.c (i386_num_register_names): New variable.
7604 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7605 (MM0_REGNUM): Remove redundant parentheses in define.
7606 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7607 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7608 i386_mxcsr_regnum_p): Remove redundant parentheses.
7609 (i386_register_name): Use i386_num_register_names.
7610
7611 * i386-tdep.c (i386_extract_return_value,
7612 i386_store_return_value): Correct check for availability of
7613 floating-point registers.
7614
7615 * i386-tdep.c (i386_frame_num_args): Remove function.
7616 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7617
7618 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7619 mmx_regnum_to_fp_regnum. Adjust all callers.
7620
7621 * i386-tdep.c (i386_get_longjmp_target): Use
7622 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7623 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7624 extract_address.
7625
7626 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7627
7628 * core-regset.c: Update comments to reflect reality. Re-order
7629 includes.
7630 (fetch_core_registers): Use switch instead of if. Remove
7631 redundant prototype.
7632
7633 2003-04-18 Jim Blandy <jimb@redhat.com>
7634
7635 * s390-tdep.c (s390_frame_align): New function.
7636 (s390_gdbarch_init): Register it with the gdbarch object.
7637
7638 2003-04-17 Richard Henderson <rth@redhat.com>
7639
7640 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7641
7642 2003-04-17 Michael Snyder <msnyder@redhat.com>
7643 Karen Bennet <bennet@redhat.com>
7644
7645 Committed by Elena Zannoni <ezannoni@redhat.com>
7646 * gdb_gcore.sh: New script to create a core dump of a process.
7647
7648 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7649
7650 * values.c (value_being_returned): Don't fetch the return
7651 value if the return type is void.
7652
7653 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7654
7655 * thread-db.c: Reindented.
7656
7657 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7658
7659 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7660 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7661 as types.
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7688
7689 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7690 the size of ``long double'' to 16, instead of 8.
7691
7692 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7693
7694 * i386-linux-nat.c: Add some whitespace to make things more
7695 readable.
7696 (fetch_register, store_register, fetch_inferior_registers,
7697 store_inferior_registers): Get rid of assignment in if-statement.
7698 (store_register): Fix typo in error message.
7699
7700 2003-04-16 Andrew Cagney <cagney@redhat.com>
7701
7702 * utils.c (xmmalloc): Always allocate something, matches
7703 libiberty/xmalloc's semantics.
7704 (xmrealloc, xmcalloc): Ditto.
7705
7706 2003-04-16 Andrew Cagney <cagney@redhat.com>
7707
7708 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7709 update comments.
7710 (get_frame_type): Initialize unwind and type when needed.
7711 (get_frame_id, frame_register_unwind): Ditto.
7712
7713 2003-04-16 Andrew Cagney <cagney@redhat.com>
7714
7715 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7716 obsolete.
7717 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7718 * sparcl-stub.c: Obsolete file.
7719 * config/sparc/tm-sparclet.h: Obsolete file.
7720 * sparclet-stub.c: Obsolete file.
7721 * sparclet-rom.c: Obsolete file.
7722 * sparcl-tdep.c: Obsolete file.
7723 * config/sparc/tm-sparclite.h: Obsolete file.
7724 * config/sparc/sparclite.mt: Obsolete file.
7725 * config/sparc/sparclet.mt: Obsolete file.
7726 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7727 sparc86x-*-* obsolete.
7728
7729 2003-04-15 David Carlton <carlton@math.stanford.edu>
7730
7731 * Makefile.in (SFILES): Add cp-namespace.c.
7732 (COMMON_OBS): Add cp-namespace.o.
7733 (block.o): Depend on gdb_obstack_h and cp_support_h.
7734 (buildsym.o): Depend on cp_support_h.
7735 (cp-namespace.o): New.
7736 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7737 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7738 (dwarf2read.o): Depend on cp_support_h.
7739 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7740 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7741 processing_current_namespace.
7742 (read_namespace): Update processing_current_namespace; check for
7743 anonymous namespaces.
7744 (dwarf2_name): New function.
7745 (dwarf2_extension): Ditto.
7746 * cp-support.h: Update copyright, contributors.
7747 Add inclusion guards.
7748 Add opaque declaration for structs obstack, block, symbol.
7749 (struct using_direct): New struct.
7750 Add declarations for cp_find_first_component,
7751 cp_entire_prefix_len, processing_has_namespace_info,
7752 processing_current_namespace, cp_is_anonymous,
7753 cp_add_using_directive, cp_initialize_namespace,
7754 cp_finalize_namespace, cp_set_block_scope,
7755 cp_scan_for_anonymous_namespaces.
7756 * cp-namespace.c: New file.
7757 * cp-support.c: Update copyright.
7758 Include ctype.h, gdb_assert.h, gdbcmd.h.
7759 New variable maint_cplus_cmd_list.
7760 (cp_find_first_component): New function.
7761 (cp_entire_prefix_len, maint_cplus_command)
7762 (first_component_command, _initialize_cp_support): Ditto.
7763 * buildsym.c: Include cp-support.h.
7764 New variable using_list.
7765 (add_symbol_to_list): Check for anonymous namespaces.
7766 (finish_block): Set block's scope.
7767 (start_symtab): Initialize C++ namespace support.
7768 (end_symtab): Finalize C++ namespace support.
7769 * block.h: Add opaque declarations for structs
7770 block_namespace_info, using_direct, and obstack.
7771 Add declarations for block_set_scope and block_set_using.
7772 (struct block): Add 'language_specific' member.
7773 (BLOCK_NAMESPACE): New macro.
7774 * block.c: Include gdb_obstack.h and cp-support.h.
7775 (struct block_namespace_info): New struct.
7776 (block_set_scope): New function.
7777 (block_set_using, block_initialize_namespace): Ditto.
7778
7779 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7780
7781 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7782 (locate_base): Return early if there aren't any link map offsets.
7783 (svr4_solib_create_inferior_hook): Warn if shared library support
7784 is unavailable.
7785
7786 2003-04-14 David Carlton <carlton@math.stanford.edu>
7787
7788 * symtab.c (symbol_set_names): Add prefix when storing Java names
7789 in hash table. Fix for PR java/1039.
7790
7791 2003-04-14 David Carlton <carlton@math.stanford.edu>
7792
7793 * symtab.c (symbol_set_names): Rename 'name' arg to
7794 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7795 * symtab.h: Change 'name' argument in declaration of
7796 symbol_set_names to 'linkage_name'.
7797 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7798
7799 2003-04-14 Andrew Cagney <cagney@redhat.com>
7800
7801 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7802 return the fully sign-extended register value.
7803 (get_frame_pointer): Ditto.
7804 (mips_pop_frame): Initialize "proc_desc" after checking for a
7805 dummy frame.
7806
7807 2003-04-14 Andrew Cagney <cagney@redhat.com>
7808
7809 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7810 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7811 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7812 (mips_push_register): Delete function.
7813 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7814 PUSH_FP_REGNUM.
7815
7816 2003-04-14 Jim Blandy <jimb@redhat.com>
7817
7818 * symmisc.c: #include "gdb_regex.h".
7819 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7820 functions.
7821 * maint.c (maintenance_list_command): New function.
7822 (_initialize_maint_cmds): Register the above as commands.
7823 * symtab.h (maintenance_list_symtabs,
7824 maintenance_list_psymtabs): New declarations.
7825 * cli/cli-cmds.c (maintenancelistlist): New variable.
7826 (init_cmd_lists): Initialize it.
7827 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7828 * gdbcmd.h (maintenancelistlist): New declaration.
7829 * Makefile.in (symmisc.o): Update dependencies.
7830
7831 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7832
7833 * s390-nat.c: Include asm/types.h for addr_t.
7834
7835 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7836
7837 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7838 actually incoming type.
7839
7840 2003-04-13 Andrew Cagney <cagney@redhat.com>
7841
7842 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7843 get_next_frame and get_frame_saved_regs.
7844
7845 2003-04-13 Andrew Cagney <cagney@redhat.com>
7846
7847 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7848 of gdbarch_num_regs.
7849
7850 2003-04-13 Andrew Cagney <cagney@redhat.com>
7851
7852 * frame.h: Mention what replaced what in "struct frame_info".
7853 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7854 deprecated_update_frame_base_hack and
7855 deprecated_update_frame_pc_hack.
7856 * hppa-tdep.c: Ditto.
7857
7858 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7859
7860 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7861 to read_reg and update its comment. Remove regnum member.
7862 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7863 Don't call read_reg when setting in_reg. Call read_reg to get
7864 the frame base if it's in a register. Return the register number
7865 on the stack instead of in the context. Remove extra arguments
7866 to read_reg.
7867 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7868 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7869 the register number on the expression stack.
7870 (needs_frame_read_reg): Remove extra arguments.
7871
7872 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7873
7874 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7875 made non-static.
7876 (execute_stack_op): All callers updated.
7877 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7878 * dwarf2loc.c (find_location_expression): New function.
7879 (dwarf_expr_frame_base): Call it.
7880 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7881 (dwarf2_tracepoint_var_ref): New function, broken out from
7882 locexpr_tracepoint_var_ref.
7883 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7884 Make static.
7885 (loclist_read_variable, loclist_read_needs_frame): New functions.
7886 (loclist_describe_location, loclist_tracepoint_var_ref): New
7887 functions.
7888 (dwarf2_loclist_funcs): New struct location_funcs.
7889 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7890 (struct dwarf2_locexpr_baton): Add comments.
7891 (dwarf2_loclist_funcs): New extern.
7892 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7893 base_address and base_known.
7894 (dwarf_loc_buffer): New variable.
7895 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7896 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7897 (dwarf2_has_info): Initialize dwarf_loc_offset.
7898 (dwarf2_build_psymtabs): Read in .debug_loc.
7899 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7900 DWARF_LOC_SIZE.
7901 (psymtab_to_symtab_1): Likewise. Move base address calculation
7902 here, from...
7903 (dwarf2_get_pc_bounds): ... here. Use the base address from
7904 cu_header.
7905 (dwarf2_symbol_mark_computed): Handle location lists.
7906
7907 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7908
7909 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7910 if the linkage name demangled successfully.
7911
7912 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7913
7914 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7915 disassmbly_flavour): Removed.
7916
7917 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7918
7919 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7920
7921 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7922
7923 2003-04-12 Andrew Cagney <cagney@redhat.com>
7924
7925 * frame.h (struct frame_info): Move definition from here ...
7926 * frame.c (struct frame_info): ... to here.
7927
7928 2003-04-12 Andrew Cagney <cagney@redhat.com>
7929
7930 * gdbthread.h (save_infrun_state): Delete parameter
7931 "prev_func_start".
7932 (struct thread_info): Delete field "prev_func_start".
7933 (load_infrun_state): Ditto.
7934 * thread.c (load_infrun_state, save_infrun_state): Update.
7935 * infrun.c (prev_func_start): Delete variable.
7936 (context_switch, init_wait_for_inferior): Update.
7937 (stop_stepping, keep_going): Update.
7938
7939 2003-04-12 Andrew Cagney <cagney@redhat.com>
7940
7941 * gdbarch.sh: Add missing opaque declarations.
7942 * gdbarch.h: Regnerate.
7943 * symtab.h: Add missing opaque declarations.
7944 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7945 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7946 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7947 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7948 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7949 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7950 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7951 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7952 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7953 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7954 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7955 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7956 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7957
7958 2003-04-11 Andrew Cagney <cagney@redhat.com>
7959
7960 * frame.c (get_frame_id): Return this frame's "id".
7961 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7962 function start.
7963 (legacy_saved_regs_this_id): Replace function body with
7964 internal-error.
7965 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7966 FRAME_OBSTACK_ZALLOC.
7967 (create_new_frame): Mark the frame ID as valid.
7968
7969 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7970
7971 * Makefile.in (libbfd_h): Added missing setting.
7972 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7973 according to the selected ABI.
7974
7975 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7976
7977 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7978
7979 2003-04-11 Andrew Cagney <cagney@redhat.com>
7980
7981 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7982 SAVED_PC_AFTER_CALL.
7983 * gdbarch.h, gdbarch.c: Regenerate.
7984 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7985 * x86-64-tdep.c (x86_64_init_abi): Update.
7986 * vax-tdep.c (vax_gdbarch_init): Update.
7987 * v850-tdep.c (v850_gdbarch_init): Update.
7988 * sparc-tdep.c (sparc_gdbarch_init): Update.
7989 * sh-tdep.c (sh_gdbarch_init): Update.
7990 * s390-tdep.c (s390_gdbarch_init): Update.
7991 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7992 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7993 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7994 * mips-tdep.c (mips_gdbarch_init): Update.
7995 * mcore-tdep.c (mcore_gdbarch_init): Update.
7996 * m68k-tdep.c (m68k_gdbarch_init): Update.
7997 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7998 * ia64-tdep.c (ia64_gdbarch_init): Update.
7999 (ia64_saved_pc_after_call): Update declaration.
8000 * i386ly-tdep.c (i386lynx_init_abi): Update.
8001 * i386-tdep.c (i386_gdbarch_init): Update.
8002 * hppa-tdep.c (hppa_gdbarch_init): Update.
8003 * h8300-tdep.c (h8300_gdbarch_init): Update.
8004 * frv-tdep.c (frv_gdbarch_init): Update.
8005 * cris-tdep.c (cris_gdbarch_init): Update.
8006 * avr-tdep.c (avr_gdbarch_init): Update.
8007 * arm-tdep.c (arm_gdbarch_init): Update.
8008 * alpha-tdep.c (alpha_gdbarch_init): Update.
8009 * ns32knbsd-nat.c (frame_num_args): Update.
8010 * ns32k-tdep.c (umax_frame_num_args): Update.
8011 * mips-tdep.c (mips_init_frame_pc_first): Update.
8012 * infrun.c (step_over_function): Update.
8013 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8014 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8015 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8016 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8017 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8018 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8019 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8020 * arch-utils.c (init_frame_pc_default): Update.
8021 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8022 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8023 declaration.
8024
8025 2003-04-11 Andrew Cagney <cagney@redhat.com>
8026
8027 * i387-tdep.c: Update copyright.
8028 (i387_to_double): Delete function.
8029 (double_to_i387): Delete function.
8030
8031 2003-04-10 Andrew Cagney <cagney@redhat.com>
8032
8033 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8034 frame's function's address. Simplify.
8035 (d10v_frame_unwind_cache): Check that the frame's function is
8036 non-zero.
8037
8038 2003-04-10 Jim Blandy <jimb@redhat.com>
8039
8040 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8041 call to set_gdbarch_deprecated_push_arguments.
8042
8043 2003-04-10 Andrew Cagney <cagney@redhat.com>
8044
8045 * frame.c (fprint_frame_id): New function.
8046 (fprint_frame_type, fprint_frame): New function.
8047 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8048 (create_sentinel_frame, get_frame_id): Ditto.
8049 (frame_id_p, frame_id_eq): Ditto.
8050 (frame_id_inner, create_new_frame): Ditto.
8051 (legacy_get_prev_frame, get_prev_frame): Ditto.
8052 (deprecated_update_frame_pc_hack): Ditto.
8053 (frame_register_unwind): Ditto.
8054 (deprecated_update_frame_base_hack): Ditto.
8055
8056 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8057
8058 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8059 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8060 frame_chain function.
8061 * Makefile.in: Add dependencies due to above change.
8062
8063 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8064
8065 * blockframe.c (legacy_frame_chain_valid): Move call to
8066 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8067 inside_entry_file.
8068
8069 2003-04-09 Andrew Cagney <cagney@redhat.com>
8070
8071 * frame.h (struct frame_id): Replace "pc" and "base" with
8072 "stack_addr" and "code_addr". Update comments.
8073 (frame_id_build): Update parameter names and comment.
8074 (struct frame_info): Replace "id_p" and "id" with "this_id".
8075 * dummy-frame.c (dummy_frame_this_id): Update.
8076 * breakpoint.c (print_one_breakpoint): Update.
8077 * frame.c (get_frame_id): Update.
8078 (get_frame_base, frame_id_build): Update.
8079 (create_sentinel_frame, legacy_get_prev_frame): Update.
8080 (deprecated_update_frame_base_hack): Update.
8081 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8082 (frame_id_inner): Ditto.
8083
8084 2003-04-09 Andrew Cagney <cagney@redhat.com>
8085
8086 * defs.h (gdb_print_host_address): Make "addr" parameter a
8087 pointer constant.
8088 * utils.c (gdb_print_host_address): Update.
8089
8090 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8091
8092 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8093 register number for R0 is 0.
8094
8095 2003-04-09 J. Brobecker <brobecker@gnat.com>
8096
8097 * frame.h (struct gdbarch): Add opaque structure definition
8098 to avoid a compilation warning on LynxOS 4.0.
8099
8100 2003-04-09 Andrew Cagney <cagney@redhat.com>
8101
8102 * frame.h (struct frame_info): Delete field "pc". Replace
8103 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8104 structure.
8105 * frame.c (frame_pc_unwind): Update.
8106 (create_sentinel_frame): Do not set "pc".
8107 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8108 (get_frame_pc): Call frame_pc_unwind.
8109 (deprecated_update_frame_pc_hack): Update.
8110 (create_new_frame): Use "pc" not "->pc".
8111
8112 2003-04-09 Andrew Cagney <cagney@redhat.com>
8113
8114 * frame.c (get_frame_id): Eliminate code updating "frame".
8115 (legacy_get_prev_frame): Ditto.
8116 (get_frame_base): Return id.base directly.
8117 (deprecated_update_frame_base_hack): Update "id.base".
8118 * frame.h (struct frame_info): Delete field "frame".
8119
8120 2003-04-09 Andrew Cagney <cagney@redhat.com>
8121
8122 * NEWS: Mention that the "Sequent family" is obsolete.
8123 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8124 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8125 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8126 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8127 * config/i386/tm-ptx4.h: Obsolete file.
8128 * config/i386/tm-ptx.h: Obsolete file.
8129 * symm-tdep.c: Obsolete file.
8130 * config/i386/symmetry.mt: Obsolete file.
8131 * config/i386/tm-symmetry.h: Obsolete file.
8132 * symm-nat.c: Obsolete file.
8133 * config/i386/nm-symmetry.h: Obsolete file.
8134 * config/i386/xm-symmetry.h: Obsolete file.
8135 * config/i386/symmetry.mh: Obsolete file.
8136 * config/i386/nm-ptx4.h: Obsolete file.
8137 * config/i386/ptx4.mh: Obsolete file.
8138 * config/i386/ptx.mt: Obsolete file.
8139 * config/i386/ptx.mh: Obsolete file.
8140 * config/i386/xm-ptx4.h: Obsolete file.
8141 * config/i386/xm-ptx.h: Obsolete file.
8142
8143 2003-04-09 Andrew Cagney <cagney@redhat.com>
8144
8145 Obsolete mips*-*-mach3*.
8146 * NEWS: Mention that mips*-*-mach3* is obsolete.
8147 * m3-nat.c: Obsolete file.
8148 * config/nm-m3.h: Obsolete file.
8149 * config/mips/tm-mipsm3.h: Obsolete file.
8150 * config/mips/mipsm3.mt: Obsolete file.
8151 * config/mips/mipsm3.mh: Obsolete file.
8152 * config/mips/xm-mipsm3.h: Obsolete file.
8153 * mipsm3-nat.c: Obsolete file.
8154 * configure.host: Obsolete mips-dec-mach3*.
8155 * configure.tgt: Obsolete mips*-*-mach3*.
8156
8157 2003-04-09 Andrew Cagney <cagney@redhat.com>
8158
8159 * doublest.h: Update copyright.
8160 (deprecated_store_floating, deprecated_extract_floating): Rename
8161 store_floating and extract_floating. Update comments.
8162 * doublest.c: Update copyright.
8163 (extract_floating_by_length): Replace extract_floating.
8164 (store_floating_by_length): Replace store_floating.
8165 (deprecated_extract_floating): New function.
8166 (deprecated_store_floating): New function.
8167 (extract_typed_floating): Call extract_floating_by_length.
8168 (store_typed_floating): Call store_floating_by_length.
8169 * x86-64-tdep.c (x86_64_store_return_value): Update.
8170 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8171 (sh64_extract_return_value): Update.
8172 (sh_sh4_register_convert_to_virtual): Update.
8173 (sh_sh64_register_convert_to_virtual): Update.
8174 (sh_sh4_register_convert_to_raw): Update.
8175 (sh_sh64_register_convert_to_raw): Update.
8176 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8177 (rs6000_register_convert_to_raw): Update.
8178 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8179 (ia64_register_convert_to_raw): Update.
8180 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8181 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8182 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8183 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8184 (alpha_register_convert_to_raw): Update.
8185
8186 2003-04-08 Andrew Cagney <cagney@redhat.com>
8187
8188 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8189 * gdbarch.h, gdbarch.c: Re-generate.
8190 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8191 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8192 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8193 conditionally, use frame_pc_unwind as an alternative. Add
8194 comments.
8195 * arch-utils.c (init_frame_pc_default): Only call
8196 SAVED_PC_AFTER_CALL when available.
8197
8198 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8199
8200 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8201 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8202 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8203 (start_remote): Ditto.
8204 (handle_inferior_event): Ditto.
8205 (save_inferior_status): Ditto.
8206 (restore_inferior_status): Ditto.
8207 * infcmd.c (attach_command): Ditto.
8208 * fork-child.c (startup_inferior): Ditto.
8209 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8210 * alpha-tdep.c (heuristic_proc_start): Ditto.
8211 * mips-tdep.c (heuristic_proc_start): Ditto.
8212 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8213 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8214 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8215 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8216 * remote-vx.c (vx_create_inferior): Ditto.
8217
8218 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8219
8220 * infrun.c (stop_soon_quietly): Make it an enum, to better
8221 override the default behavior of handle_inferior_event.
8222 (clear_proceed_status): Update uses of stop_soon_quietly to
8223 reflect that it is now an enum.
8224 (start_remote): Ditto.
8225 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8226 is set to handle the new GNU/Linux kernel behavior for
8227 attach/sigstop. Update uses of stop_soon_quietly.
8228 * inferior.h (enum stop_kind): New enum.
8229 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8230 Reset normal handle_inferior_event behavior, afterwards.
8231 * fork-child.c (startup_inferior): Update.
8232 * alpha-tdep.c (heuristic_proc_start): Update.
8233 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8234 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8235 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8236 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8237 * remote-vx.c (vx_create_inferior): Update.
8238 * mips-tdep.c (heuristic_proc_start): Update.
8239
8240 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8241
8242 * disasm.c (dump_insns): Move variables inside loop, or they will
8243 be freed more than once, causing wild memory corruptions.
8244 (gdb_disassembly): Look for the substring "-thread",
8245 instead of "-threads" in the target name, to make sure to find
8246 the 'multi-thread' target. Also, make sure we do the right thing
8247 with the "core" target.
8248
8249 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8250
8251 * mips-tdep.c (mips_print_fp_register): New function, created from
8252 do_fp_register_row(). Registers are now (also) printed as hex.
8253 Only one register is printed per row.
8254 (mips_print_register, do_fp_register_row): Print floating point
8255 registers with mips_print_fp_register().
8256
8257 2003-04-06 Andrew Cagney <cagney@redhat.com>
8258
8259 * valprint.h (inspect_it): Add extern declaration.
8260 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8261 (selectors_info, classes_info): Ditto.
8262 (find_objc_msgcall): Fix indentation.
8263 (objc_printstr): Delete extern declarations.
8264
8265 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8266
8267 2003-04-06 Andrew Cagney <cagney@redhat.com>
8268
8269 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8270 Update comment.
8271 * frame.c (legacy_saved_regs_this_id): Update.
8272 (legacy_get_prev_frame): Update.
8273 * xstormy16-tdep.c: Update comment.
8274 * sparc-tdep.c (sparc_frame_chain): Update comment.
8275 * blockframe.c (legacy_frame_chain_valid): Update.
8276
8277 2003-04-06 Andrew Cagney <cagney@redhat.com>
8278
8279 * valprint.c (val_print_type_code_int): Delete #ifdef
8280 PRINT_TYPELESS_INTEGER code.
8281
8282 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8283 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8284 multi-arch definition.
8285 * gdbarch.h: Re-generate.
8286
8287 2003-04-05 Andrew Cagney <cagney@redhat.com>
8288
8289 Eliminate FRAME_FIND_SAVED_REGS.
8290 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8291 Change FSR parameter to a pointer.
8292 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8293 Assume FSR parameter is a pointer.
8294 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8295 Make fsr a pointer.
8296 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8297 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8298 saved_regs a pointer.
8299 (hppa_frame_saved_pc): Ditto.
8300 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8301 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8302 pointer.
8303 (restore_pc_queue): Make fsr a pointer.
8304 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8305 (hppa_frame_chain): Make saved_regs a pointer, call
8306 hppa_frame_init_saved_regs.
8307 * sparc-tdep.c: Include "gdb_assert.h".
8308 (sparc_frame_find_saved_regs): Replace internal_error with
8309 gdb_assert.
8310 * remote-vxsparc.c (vx_read_register): Delete reference to
8311 FRAME_FIND_SAVED_REGS.
8312 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8313 * gdbarch.h: Regenerate.
8314 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8315 (deprecated_get_frame_saved_regs): Delete declaration.
8316 (struct frame_saved_regs): Delete definition.
8317 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8318 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8319 (hppa_frame_find_saved_regs): Delete declaration.
8320 (FRAME_FIND_SAVED_REGS): Delete macro.
8321 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8322 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8323 FRAME_FIND_SAVED_REGS in comment.
8324
8325 2003-04-05 Andrew Cagney <cagney@redhat.com>
8326
8327 * frame.c (frame_func_unwind, get_frame_func): New functions.
8328 * frame.h (get_frame_func, frame_func_unwind): Declare.
8329 (struct frame_info): Add field "prev_func" for caching the
8330 previous frame's function address.
8331 * arm-tdep.c (arm_frameless_function_invocation): Combine
8332 get_pc_function_start and get_frame_pc into get_frame_func.
8333 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8334 (sh64_nofp_frame_init_saved_regs): Ditto.
8335 * s390-tdep.c (s390_function_start): Ditto.
8336 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8337 (rs6000_frameless_function_invocation): Ditto.
8338 (rs6000_frame_saved_pc): Ditto.
8339 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8340 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8341 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8342 (i386_frame_init_saved_regs): Ditto.
8343 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8344 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8345 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8346 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8347 * blockframe.c (frameless_look_for_prologue): Ditto.
8348
8349 2003-04-05 Andrew Cagney <cagney@redhat.com>
8350
8351 * frame.c (legacy_get_prev_frame): Link prev to next at the
8352 function start. Update comments.
8353
8354 2003-04-05 Andrew Cagney <cagney@redhat.com>
8355
8356 * frame.c (get_frame_id): Update comment.
8357 (legacy_get_prev_frame): Update comment.
8358 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8359 * gdbarch.h: Regenerate.
8360 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8361 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8362
8363 2003-04-05 Andrew Cagney <cagney@redhat.com>
8364
8365 * stack.c (print_frame_info): Use get_frame_pc.
8366
8367 2003-04-04 Andrew Cagney <cagney@redhat.com>
8368
8369 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8370 the frame's type from the unwinder.
8371 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8372 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8373 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8374 (get_frame_base_address): Use get_frame_type.
8375 (get_frame_locals_address, get_frame_args_address): Ditto.
8376 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8377 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8378 (struct frame_info): Add comment explaining why the frame contains
8379 a "type" field.
8380 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8381 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8382 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8383 NORMAL_FRAME.
8384 * frame-unwind.h: Include "frame.h".
8385 (struct frame_unwind): Add "type" field.
8386 * Makefile.in (frame_unwind_h): Add $(frame_h).
8387
8388 2003-04-04 Andrew Cagney <cagney@redhat.com>
8389
8390 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8391 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8392 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8393 get_frame_base.
8394 (d10v_unwind_dummy_id): Use frame_id_build.
8395 * frame.c (find_frame_sal): Use get_frame_pc.
8396 (create_new_frame): Use deprecated_update_frame_pc_hack and
8397 deprecated_update_frame_base_hack.
8398 (create_sentinel_frame): Add comment about ->pc going away.
8399 (get_prev_frame): Add comment about ->pc going away.
8400 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8401 frame_id_build, deprecated_update_frame_pc_hack and
8402 deprecated_update_frame_base_hack.
8403 (select_frame): Use get_frame_pc.
8404 (legacy_saved_regs_this_id): Use frame_id_build.
8405
8406 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8407
8408 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8409 signed integer case.
8410 (classify_argument): Handle enumerations and references.
8411
8412 2003-04-04 Andrew Cagney <cagney@redhat.com>
8413
8414 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8415 ID to NULL.
8416
8417 2003-04-01 Adam Fedor <fedor@gnu.org>
8418
8419 * gdb/objc-lang.c (selectors_info): Replace calls to
8420 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8421 SYMBOL_NATURAL_NAME.
8422 (classes_info, find_methods): Likewise.
8423
8424 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8425
8426 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8427 ``mach'' to the value determined by bfd_default_set_arch_mach().
8428
8429 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8430
8431 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8432 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8433 (mi-cmd-file.o): Update dependencies.
8434
8435 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8436
8437 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8438 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8439
8440 2003-04-01 Adam Fedor <fedor@gnu.org>
8441
8442 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8443 * language.h (struct language_defn): Add la_demangle.
8444 (language_demangle): Declare.
8445 * language.c (language_demangle): New function.
8446 (unk_lang_demangle): Likewise.
8447 (unknown_language_defn, auto_language_defn, local_language_defn):
8448 Add ukn_lang_demangle.
8449 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8450 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8451 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8452 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8453 * jv-lang.c (java_demangle): New function
8454 (java_language_defn): Use it for la_demangle element.
8455 * objc-lang.c (objc_demangle): Add options argument
8456 (objc_language_defn): Use objc_demangle for la_demangle element.
8457 * maint.c (maintenance_demangle): Replace switch with
8458 call to language_demangle.
8459 * utils.c (fprintf_symbol_filtered): Likewise.
8460
8461 2003-04-01 Andrew Cagney <cagney@redhat.com>
8462
8463 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8464 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8465 PRINT_TYPELESS_INTEGER.
8466 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8467 PUSH_RETURN_ADDRESS.
8468
8469 2003-04-01 Andrew Cagney <cagney@redhat.com>
8470
8471 * Makefile.in (d10v-tdep.o): Update dependencies.
8472 * d10v-tdep.c: Include "frame-base.h".
8473 (d10v_frame_unwind): Make constant.
8474 (d10v_frame_base_address): New function.
8475 (d10v_frame_base): New variable.
8476 (d10v_gdbarch_init): Set frame_base default.
8477 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8478 comment for base.
8479 (d10v_frame_unwind_cache): Set and use "prev_sp".
8480 (d10v_frame_this_id): Use the previous frame's inner most stack
8481 address and this frame's func address for the frame ID. Use
8482 frame_id_build. Don't analyze beyond the current instruction.
8483
8484 2003-04-01 Andrew Cagney <cagney@redhat.com>
8485
8486 * frame.h (get_frame_locals_address, get_frame_args_address):
8487 Refer to the base address, instead of the address of the first
8488 local or parameter.
8489
8490 2003-04-01 Andrew Cagney <cagney@redhat.com>
8491
8492 Add frame debug info addresses:
8493 * frame-base.c: New file.
8494 * frame-base.h: New file.
8495 * frame.h (struct frame_base): Add opaque declaration.
8496 (get_frame_base): Update comment.
8497 (get_frame_base_address): Declare.
8498 (get_frame_locals_address): Declare.
8499 (get_frame_args_address): Declare.
8500 (struct frame_info): Add "base" and "base_cache". Update
8501 comments on the unwinder.
8502 * frame.c: Include "frame-base.h".
8503 (get_frame_locals_address): New function.
8504 (get_frame_base_address): New function.
8505 (get_frame_args_address): New function.
8506 * findvar.c (read_var_value): Use get_frame_locals_address and
8507 get_frame_args_address.
8508 * stack.c (frame_info): Use get_frame_locals_address and
8509 get_frame_args_address.
8510 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8511 moved to "frame-base.c".
8512 * printcmd.c (print_frame_nameless_args): Ditto.
8513 * symtab.h (address_class): Update comments.
8514 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8515 get_frame_base_address.
8516 * dwarf2expr.c (execute_stack_op): Ditto.
8517 * Makefile.in (frame_base_h): Define.
8518 (frame.o): Update dependencies.
8519 (frame-base.o): Add dependencies.
8520 (SFILES): Add frame-base.c.
8521 (COMMON_OBS): Add frame-base.o.
8522
8523 2003-04-01 Andrew Cagney <cagney@redhat.com>
8524
8525 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8526 CALL_DUMMY_LENGTH): Ditto.
8527 * gdbarch.c: Re-generate.
8528 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8529 (CALL_DUMMY_LENGTH): Delete macro.
8530 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8531 * arm-tdep.c (arm_gdbarch_init): Ditto.
8532 * avr-tdep.c (avr_gdbarch_init): Ditto.
8533 * cris-tdep.c (cris_gdbarch_init): Ditto.
8534 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8535 * frv-tdep.c (frv_gdbarch_init): Ditto.
8536 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8537 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8538 * i386-tdep.c (i386_gdbarch_init): Ditto.
8539 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8540 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8541 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8542 * mips-tdep.c (mips_gdbarch_init): Ditto.
8543 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8544 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8545 * s390-tdep.c (s390_gdbarch_init): Ditto.
8546 * sh-tdep.c (sh_gdbarch_init): Ditto.
8547 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8548 * v850-tdep.c (v850_gdbarch_init): Ditto.
8549 * vax-tdep.c (vax_gdbarch_init): Ditto.
8550 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8551
8552 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8553
8554 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8555
8556 2003-04-01 Andrew Cagney <cagney@redhat.com>
8557
8558 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8559 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8560 * gdbarch.h, gdbarch.c: Re-generate.
8561 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8562 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8563 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8564 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8565 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8566 * infcmd.c (run_stack_dummy): Simplify assuming
8567 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8568 * infrun.c (handle_inferior_event): Ditto.
8569 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8570 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8571 * arm-tdep.c (arm_gdbarch_init): Ditto.
8572 * avr-tdep.c (avr_gdbarch_init): Ditto.
8573 * cris-tdep.c (cris_gdbarch_init): Ditto.
8574 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8575 * frv-tdep.c (frv_gdbarch_init): Ditto.
8576 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8577 * i386-tdep.c (i386_gdbarch_init): Ditto.
8578 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8579 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8580 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8581 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8582 * mips-tdep.c (mips_gdbarch_init): Ditto.
8583 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8584 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8585 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8586 * s390-tdep.c (s390_gdbarch_init): Ditto.
8587 * sh-tdep.c (sh_gdbarch_init): Ditto.
8588 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8589 * v850-tdep.c (v850_gdbarch_init): Ditto.
8590 * vax-tdep.c (vax_gdbarch_init): Ditto.
8591 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8592
8593 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8594
8595 * symfile.c (symfile_relocate_debug_section): Update call to
8596 bfd_simple_get_relocated_section_contents.
8597
8598 2003-03-31 Andrew Cagney <cagney@redhat.com>
8599
8600 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8601 * gdbarch.h, gdbarch.c: Regenerate.
8602 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8603 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8604 available.
8605 * frame.h (generic_fix_call_dummy): Delete declaration.
8606 * dummy-frame.h: Update comment.
8607 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8608 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8609 fix_call_dummy.
8610 * sh-tdep.c (sh_gdbarch_init): Ditto.
8611 * s390-tdep.c (s390_gdbarch_init): Ditto.
8612 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8613 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8614 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8615 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8616 * i386-tdep.c (i386_gdbarch_init): Ditto.
8617 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8618 * frv-tdep.c (frv_gdbarch_init): Ditto.
8619 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8620 * cris-tdep.c (cris_gdbarch_init): Ditto.
8621 * avr-tdep.c (avr_gdbarch_init): Ditto.
8622 * arm-tdep.c (arm_gdbarch_init): Ditto.
8623
8624 2003-03-31 J. Brobecker <brobecker@gnat.com>
8625
8626 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8627 (INIT_FRAME_AP): Likewise.
8628 (EXTRA_FRAME_INFO): Likewise.
8629
8630 2003-03-31 Andrew Cagney <cagney@redhat.com>
8631
8632 * gdbarch.sh: Include "symfile.h".
8633 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8634 * gdbarch.h, gdbarch.c: Re-generate.
8635 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8636 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8637 call_dummy_address, the default is at entry_point_address.
8638 * v850-tdep.c (v850_gdbarch_init): Ditto.
8639 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8640 * sh-tdep.c (sh_gdbarch_init): Ditto.
8641 * s390-tdep.c (s390_gdbarch_init): Ditto.
8642 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8643 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8644 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8645 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8646 * i386-tdep.c (i386_gdbarch_init): Ditto.
8647 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8648 * frv-tdep.c (frv_gdbarch_init): Ditto.
8649 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8650 * cris-tdep.c (cris_gdbarch_init): Ditto.
8651 * arm-tdep.c (arm_gdbarch_init): Ditto.
8652
8653 2003-03-31 Andrew Cagney <cagney@redhat.com>
8654
8655 * gdbarch.sh (CALL_DUMMY_P): Delete.
8656 * gdbarch.h, gdbarch.c: Re-generate.
8657 * inferior.h (CALL_DUMMY_P): Delete macro.
8658 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8659 * vax-tdep.c (vax_gdbarch_init): Update.
8660 * v850-tdep.c (v850_gdbarch_init): Update.
8661 * sparc-tdep.c (sparc_gdbarch_init): Update.
8662 * sh-tdep.c (sh_gdbarch_init): Update.
8663 * s390-tdep.c (s390_gdbarch_init): Update.
8664 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8665 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8666 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8667 * mips-tdep.c (mips_gdbarch_init): Update.
8668 * mcore-tdep.c (mcore_gdbarch_init): Update.
8669 * m68k-tdep.c (m68k_gdbarch_init): Update.
8670 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8671 * ia64-tdep.c (ia64_gdbarch_init): Update.
8672 * i386-tdep.c (i386_gdbarch_init): Update.
8673 * h8300-tdep.c (h8300_gdbarch_init): Update.
8674 * frv-tdep.c (frv_gdbarch_init): Update.
8675 * d10v-tdep.c (d10v_gdbarch_init): Update.
8676 * cris-tdep.c (cris_gdbarch_init): Update.
8677 * breakpoint.c (deprecated_frame_in_dummy): Update.
8678 * avr-tdep.c (avr_gdbarch_init): Update.
8679 * alpha-tdep.c (alpha_gdbarch_init): Update.
8680 * arm-tdep.c (arm_gdbarch_init): Update.
8681 * dummy-frame.c (dummy_frame_this_id): Update comments.
8682 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8683 * frame.c (legacy_get_prev_frame): Ditto.
8684 * valops.c (call_function_by_hand): Delete function.
8685 (hand_function_call): Rename to call_function_by_hand
8686
8687 2003-03-30 Andrew Cagney <cagney@redhat.com>
8688
8689 2002-11-10 Klee Dienes <kdienes@apple.com>
8690 * value.h (struct value): Update comment.
8691
8692 2003-03-30 Andrew Cagney <cagney@redhat.com>
8693
8694 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8695 D10V_FP_REGNUM.
8696 (d10v_gdbarch_init): Do not set fp_regnum.
8697
8698 * frame.c (get_frame_base): Force ID initialization.
8699 (get_prev_frame): Move computation of the frame ID from here ...
8700 (get_frame_id): ... to here.
8701 (legacy_get_prev_frame): Mark the frame ID as valid.
8702 * frame.h (struct frame_info): Add field "id_p".
8703
8704 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8705
8706 * i386-tdep.c (i386_store_struct_return): Removed.
8707 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8708
8709 2003-03-30 Andrew Cagney <cagney@redhat.com>
8710
8711 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8712 * gdbarch.h, gdbarch.c: Regenerate.
8713 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8714 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8715 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8716 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8717 * i386-tdep.c (i386_gdbarch_init): Ditto.
8718 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8719 * cris-tdep.c (cris_gdbarch_init): Ditto.
8720 * vax-tdep.c (vax_gdbarch_init): Ditto.
8721 * s390-tdep.c (s390_gdbarch_init): Ditto.
8722 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8723 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8724 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8725 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8726 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8727 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8728 * sparc-tdep.c (sparc_gdbarch_init): Update.
8729 * sh-tdep.c (sh_gdbarch_init): Update.
8730 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8731 * mips-tdep.c (mips_gdbarch_init): Update.
8732 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8733 * ia64-tdep.c (ia64_gdbarch_init): Update.
8734 * frv-tdep.c (frv_gdbarch_init): Update.
8735 * avr-tdep.c (avr_gdbarch_init): Update.
8736 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8737 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8738 instead of when push_dummy_call is not available.
8739
8740 2003-03-30 Andrew Cagney <cagney@redhat.com>
8741
8742 * infttrace.c: Include "gdbthread.h".
8743 (parent_attach_all): Fix function signature.
8744 (call_ptrace): Update call.
8745 * Makefile.in (infttrace.o): Update dependencies.
8746
8747 2003-03-30 Andrew Cagney <cagney@redhat.com>
8748
8749 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8750 PUSH_RETURN_ADDRESS.
8751 * gdbarch.h, gdbarch.c: Regenerate.
8752 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8753 * x86-64-tdep.c (x86_64_init_abi): Update.
8754 * v850-tdep.c (v850_gdbarch_init): Update.
8755 * sparc-tdep.c (sparc_gdbarch_init): Update.
8756 * sh-tdep.c (sh_gdbarch_init): Update.
8757 * s390-tdep.c (s390_gdbarch_init): Update.
8758 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8759 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8760 * mips-tdep.c (mips_gdbarch_init): Update.
8761 * mcore-tdep.c (mcore_gdbarch_init): Update.
8762 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8763 * ia64-tdep.c (ia64_gdbarch_init): Update.
8764 * i386-tdep.c (i386_gdbarch_init): Update.
8765 * h8300-tdep.c (h8300_gdbarch_init): Update.
8766 * frv-tdep.c (frv_gdbarch_init): Update.
8767 * cris-tdep.c (cris_gdbarch_init): Update.
8768 * avr-tdep.c (avr_gdbarch_init): Update.
8769 * arm-tdep.c (arm_gdbarch_init): Update.
8770 * valops.c (hand_function_call): Update.
8771
8772 2003-03-29 Andrew Cagney <cagney@redhat.com>
8773
8774 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8775 sizeof_call_dummy_words.
8776 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8777 define.
8778 * gdbarch.h: Regenerate.
8779
8780 2003-03-29 Andrew Cagney <cagney@redhat.com>
8781
8782 * infttrace.h: New file.
8783 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8784 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8785 (hpread_read_doc_function_type): Detect an initialized type1.
8786 (hpread_quick_traverse): Initialize mod_name_string.
8787 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8788 (som_solib_get_solib_by_pc): Declare.
8789 (so_lib_thread_start_addr): Declare.
8790 (no_shared_libraries): Declare.
8791 * somread.c (init_import_symbols): Make static. Add forward
8792 declaration.
8793 * config/pa/nm-hppah.h: Include "infttrace.h" for
8794 parent_attach_all.
8795 (hppa_insert_hw_watchpoint): Declare.
8796 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8797 * hppah-nat.c: Include "gdb_string.h".
8798 (parent_attach_all): Delete extern declaration, moved to
8799 "infttrace.h".
8800 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8801 int.
8802 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8803 * Makefile.in (infttrace_h): Define.
8804 (hpread.o): Update dependencies.
8805 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8806 * hppa-hpux-tdep.c: Include "gdb_string.h".
8807 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8808 * infrun.c (handle_inferior_event): Always initialize
8809 stepped_after_stopped_by_watchpoint. Add default and remove
8810 fallthrough in switch statement.
8811 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8812 parameter to int.
8813 (hppa_remove_hw_watchpoint): Ditto.
8814
8815 2003-03-29 Andrew Cagney <cagney@redhat.com>
8816
8817 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8818 offset.
8819
8820 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8821
8822 * arm-tdep.c (arm_push_arguments): Delete.
8823 (struct stack_item): New type.
8824 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8825 (arm_store_struct_return): Delte.
8826 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8827 arm_push_arguments or arm_store_struct_return.
8828
8829 2003-03-28 Andrew Cagney <cagney@redhat.com>
8830
8831 * Makefile.in (d10v-tdep.o): Update dependencies.
8832 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8833 * d10v-tdep.c: Include "remote.h".
8834 (target_resume_hook): Delete extern declaration.
8835 (target_wait_loop_hook): Ditto.
8836 (tdisassemble_command): Eliminate assignment in "if" conditional.
8837 (d10v_ts2_register_sim_regno): Eliminate call to
8838 legacy_register_sim_regno.
8839 (d10v_ts3_register_sim_regno): Ditto.
8840
8841 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8842
8843 * thread.c: Reindented.
8844 * lin-lwp.c: Ditto.
8845 * linux-proc.c: Ditto.
8846
8847 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8848
8849 * MAINTAINERS (write after approval): Add myself.
8850
8851 2003-03-27 Theodore A. Roth <troth@openavr.org>
8852
8853 * objc-exp.y: Add missing semi-colons.
8854
8855 2003-03-27 Andrew Cagney <cagney@redhat.com>
8856
8857 * regcache.c (write_sp): Delete function and references.
8858 * inferior.h (write_sp): Delete declaration.
8859 * valops.c (hand_function_call): Replace write_sp with
8860 TARGET_WRITE_SP.
8861 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8862 (sparc_pop_frame): Ditto.
8863
8864 2003-03-27 Andrew Cagney <cagney@redhat.com>
8865
8866 * NEWS: Mention removal of support for hppa*-*-bsd* and
8867 hppa*-*-osf* natives, and hppa*-*-pro* target.
8868 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8869 * config/pa/xm-pa.h: Obsolete file.
8870 * config/pa/xm-hppab.h: Obsolete file.
8871 * config/pa/nm-hppab.h: Obsolete file.
8872 * config/pa/tm-hppab.h: Obsolete file.
8873 * config/pa/tm-hppao.h: Obsolete file.
8874 * config/pa/nm-hppao.h: Obsolete file.
8875 * config/pa/tm-pro.h: Obsolete file.
8876 * config/pa/hppaosf.mt: Obsolete file.
8877 * config/pa/hppaosf.mh: Obsolete file.
8878 * config/pa/hppapro.mt: Obsolete file.
8879 * config/pa/hppabsd.mt: Obsolete file.
8880 * config/pa/hppabsd.mh: Obsolete file.
8881 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8882 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8883 hppa*-*-osf*.
8884
8885 2003-03-27 Andrew Cagney <cagney@redhat.com>
8886
8887 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8888 push_arguments. Don't set push_return_address or write_sp.
8889 (d10v_push_dummy_call): Replace d10v_push_arguments.
8890 (d10v_push_return_address, d10v_write_sp): Delete function,
8891 handled by push_dummy_call.
8892
8893 2003-03-26 Andrew Cagney <cagney@redhat.com>
8894
8895 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8896 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8897 regcache and dummy_addr parameters.
8898 * gdbarch.h, gdbarch.c: Re-generate.
8899 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8900 available; assume it will handle stack alignment and return
8901 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8902 legacy_push_arguments.
8903 (legacy_push_arguments): Rename default_push_arguments.
8904 * value.h (legacy_push_arguments): Rename default_push_arguments.
8905 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8906 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8907 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8908 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8909 * config/i386/tm-symmetry.h: Update.
8910 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8911 * x86-64-tdep.c (x86_64_init_abi): Update.
8912 * v850-tdep.c (v850_gdbarch_init): Update.
8913 * sparc-tdep.c (sparc_gdbarch_init): Update.
8914 * sh-tdep.c (sh_gdbarch_init): Update.
8915 * s390-tdep.c (s390_gdbarch_init): Update.
8916 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8917 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8918 * mips-tdep.c (mips_gdbarch_init): Update.
8919 * mcore-tdep.c (mcore_gdbarch_init): Update.
8920 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8921 * ia64-tdep.c (ia64_gdbarch_init): Update.
8922 * i386-tdep.c (i386_gdbarch_init): Update.
8923 * hppa-tdep.c (hppa_gdbarch_init): Update.
8924 * h8300-tdep.c (h8300_gdbarch_init): Update.
8925 * frv-tdep.c (frv_gdbarch_init): Update.
8926 * d10v-tdep.c (d10v_gdbarch_init): Update.
8927 * cris-tdep.c (cris_gdbarch_init): Update.
8928 * avr-tdep.c (avr_gdbarch_init): Update.
8929 * arm-tdep.c (arm_gdbarch_init): Update.
8930 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8931 * alpha-tdep.c (alpha_gdbarch_init): Update.
8932
8933 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8934
8935 * signals/signals.c (do_target_signal_to_host): Correct realtime
8936 signal range test.
8937
8938 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8939
8940 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8941 (struct sal_chain, map_catch_names): Remove.
8942 (catch_exception_command_1): Don't call
8943 handle_gnu_4_16_catch_command.
8944
8945 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8946
8947 From Mark Dettinger <dettinge@de.ibm.com>:
8948 * dwarf2cfi.c (read_2u): Increment pointer by two.
8949
8950 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8951
8952 * signals/signals.c: Fix typos in last change.
8953
8954 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8955
8956 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8957 not already defined. Use __SIGRTMIN if available.
8958 (target_signal_from_host): Remove SIGRTMIN block.
8959 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8960 the signal is within the realtime range.
8961
8962 2003-03-25 Adam Fedor <fedor@gnu.org>
8963
8964 * Makefile.in (infrun.o): Add $(language_h)
8965 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8966 for language specific trampolines.
8967 * language.h (struct language_defn): Add skip_trampoline.
8968 (skip_language_trampoline): Declare.
8969 * language.c (unk_lang_trampoline, skip_language_trampoline):
8970 New functions.
8971 (unknown_language_defn, auto_language_defn, local_language_defn):
8972 Add ukn_lang_trampoline.
8973 * ada-lang.c (ada_language_defn): Add NULL for language
8974 specific skip_trampoline.
8975 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8976 scm-lang.c: Likewise.
8977 * objc-lang.c (objc_skip_trampoline): New function.
8978 (objc_language_defn): Add objc_skip_trampoline.
8979
8980 2003-03-25 Andrew Cagney <cagney@redhat.com>
8981
8982 * frame.c (get_prev_frame): Delay validating a frame's ID -
8983 non-NULL, didn't go backwards - until an attempt to unwind it to
8984 the previous frame.
8985
8986 2003-03-25 Andrew Cagney <cagney@redhat.com>
8987
8988 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8989 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8990 * gdbarch.h, gdbarch.c: Re-generate.
8991 * config/sparc/tm-sparc.h
8992 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8993 * sparc-tdep.c (sparc_gdbarch_init): Set
8994 deprecated_extra_stack_alignment_needed.
8995 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8996 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8997 extra_stack_alignment_needed.
8998 * v850-tdep.c (v850_gdbarch_init): Ditto.
8999 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9000 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9001 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9002 * cris-tdep.c (cris_gdbarch_init): Ditto.
9003 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9004 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9005
9006 2003-03-25 Andrew Cagney <cagney@redhat.com>
9007
9008 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9009 STORE_STRUCT_RETURN.
9010 * gdbarch.h, gdbarch.c: Regenerate.
9011 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9012 (d10v_push_arguments): Set the struct return register.
9013 (d10v_gdbarch_init): Update.
9014 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9015 * x86-64-tdep.c (x86_64_init_abi): Update.
9016 * vax-tdep.c (vax_gdbarch_init): Update.
9017 * v850-tdep.c (v850_gdbarch_init): Update.
9018 * sparc-tdep.c (sparc_gdbarch_init): Update.
9019 * sh-tdep.c (sh_gdbarch_init): Update.
9020 * s390-tdep.c (s390_gdbarch_init): Update.
9021 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9022 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9023 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9024 * mips-tdep.c (mips_gdbarch_init): Update.
9025 * mcore-tdep.c (mcore_gdbarch_init): Update.
9026 * m68k-tdep.c (m68k_gdbarch_init): Update.
9027 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9028 * ia64-tdep.c (ia64_gdbarch_init): Update.
9029 * i386-tdep.c (i386_gdbarch_init): Update.
9030 * hppa-tdep.c (hppa_gdbarch_init): Update.
9031 * h8300-tdep.c (h8300_gdbarch_init): Update.
9032 * frv-tdep.c (frv_gdbarch_init): Update.
9033 * cris-tdep.c (cris_gdbarch_init): Update.
9034 * avr-tdep.c (avr_gdbarch_init): Update.
9035 * arm-tdep.c (arm_gdbarch_init): Update.
9036 * alpha-tdep.c (alpha_gdbarch_init): Update.
9037
9038 2003-03-25 Andrew Cagney <cagney@redhat.com>
9039
9040 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9041 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9042 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9043 * gdbarch.h, gdbarch.c: Regenerate.
9044 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9045 call_dummy_stack_adjust_p.
9046 * vax-tdep.c (vax_gdbarch_init): Ditto.
9047 * v850-tdep.c (v850_gdbarch_init): Ditto.
9048 * sh-tdep.c (sh_gdbarch_init): Ditto.
9049 * s390-tdep.c (s390_gdbarch_init): Ditto.
9050 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9051 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9052 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9053 * mips-tdep.c (mips_gdbarch_init): Ditto.
9054 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9055 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9057 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9058 * i386-tdep.c (i386_gdbarch_init): Ditto.
9059 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9060 * frv-tdep.c (frv_gdbarch_init): Ditto.
9061 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9062 * cris-tdep.c (cris_gdbarch_init): Ditto.
9063 * avr-tdep.c (avr_gdbarch_init): Ditto.
9064 * arm-tdep.c (arm_gdbarch_init): Ditto.
9065 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9066 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9067 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9068 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9069 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9070 call_dummy_stack_adjust_p.
9071 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9072 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9073 * sparc-tdep.c (sparc32_push_arguments): Update.
9074 * valops.c (hand_function_call): Update.
9075
9076 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9077
9078 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9079 set_gdbarch_char_signed.
9080
9081 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9082
9083 PR cli/548
9084 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9085
9086 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9087
9088 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9089 (_initialize_arm_tdep): Don't set tm_print_insn.
9090
9091 2003-03-24 Adam Fedor <fedor@gnu.org>
9092
9093 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9094 * objc-lang.h: Add multiple inclusion protection.
9095 (start_msglist, add_msglist, end_msglist): Additional declarations.
9096
9097 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9098
9099 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9100 value was renamed to ARM_FLOAT_SOFT_FPA.
9101
9102 2003-03-23 Andrew Cagney <cagney@redhat.com>
9103
9104 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9105 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9106 * gdbarch.h, gdbarch.c: Regenerate.
9107 * valops.c (hand_function_call): Update.
9108 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9109 * frame.c (legacy_saved_regs_this_id): Update.
9110 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9111 * dummy-frame.h: Update.
9112 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9113 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9114 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9115 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9116 * config/m68k/tm-sun3.h: Update.
9117 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9118 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9119 * x86-64-tdep.c (x86_64_init_abi): Update.
9120 * vax-tdep.c (vax_gdbarch_init): Update.
9121 * v850-tdep.c (v850_gdbarch_init): Update.
9122 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9123 * sh-tdep.c (sh_gdbarch_init): Update.
9124 * s390-tdep.c (s390_gdbarch_init): Update.
9125 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9126 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9127 (frame_get_saved_regs): Update.
9128 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9129 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9130 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9131 * mips-tdep.c (mips_gdbarch_init): Update.
9132 * mcore-tdep.c (mcore_gdbarch_init): Update.
9133 * m68k-tdep.c (m68k_gdbarch_init): Update.
9134 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9135 * ia64-tdep.c (ia64_gdbarch_init): Update.
9136 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9137 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9138 (i386_interix_back_one_frame): Update.
9139 * hppa-tdep.c (hppa_gdbarch_init): Update.
9140 (hppa_init_extra_frame_info): Update.
9141 * h8300-tdep.c (h8300_gdbarch_init): Update.
9142 * frv-tdep.c (frv_gdbarch_init): Update.
9143 * cris-tdep.c (cris_gdbarch_init): Update.
9144 * avr-tdep.c (avr_gdbarch_init): Update.
9145 * arm-tdep.c (arm_gdbarch_init): Update.
9146 * alpha-tdep.c (alpha_gdbarch_init): Update.
9147
9148 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9149
9150 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9151 (arm_get_fp_model): Declare.
9152 * arm-tdep.c (fp_model_strings): New string array.
9153 (arm_fp_model, current_fp_model): New variables.
9154 (arm_get_fp_model): New function.
9155 (arm_set_fp): New function.
9156 (set_fp_model_sfunc): New function.
9157 (show_fp_model): New function.
9158 (_initialize_arm_tdep): Add new command to set/show the FPU.
9159 (arm_extract_return_value): Use arm_get_fp_model.
9160 (arm_store_return_value): Likewise.
9161 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9162 to initialize the floating-point data types.
9163 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9164 model is FPA.
9165
9166 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9167
9168 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9169 the current setting of each value.
9170 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9171 new_set and new_show. Use add_setshow_cmd_full and
9172 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9173 commands and add new version as subcommands of "set/show arm".
9174
9175 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9176
9177 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9178 (set_arm_command, show_arm_command): New functions.
9179 (_initialize_arm_tdep): Add them.
9180 (num_disassembly_options): Renamed from num_flavor_options.
9181 (valid_disassembly_styles): Renamed from valid_flavors.
9182 (disassembly_style): Renamed from disassembly_flavor.
9183 (set_disassembly_style_sfunc): Renamed from
9184 set_disassembly_flavor_sfunc.
9185 (set_disassembly_style): Renamed from set_disassembly_flavor.
9186 (arm_othernames): Updated.
9187 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9188 command. Add "set/show arm disassembly" commands. Deprecate
9189 "othernames" command.
9190
9191 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9192
9193 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9194 (arm-tdep.o): Depend on elf_arm_h.
9195
9196 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9197
9198 * Makefile.in (coff_internal_h): Define.
9199 (arm-tdep.o): Update dependencies.
9200
9201 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9202
9203 * arm-tdep.c (prologue_cache): Delete.
9204 (check_prologue_cache, save_prologue_cache): Delete.
9205 (arm_scan_prologue): Don't check or update the prologue_cache.
9206 (arm_gdb_arch_init): Don't initialize it.
9207 (_initialize_arm_tdep): Likewise.
9208
9209 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9210
9211 * MAINTAINERS (tui): Maintainer of tui code.
9212
9213 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9214
9215 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9216 (i386-cygwin-tdep.o): Add dependencies.
9217 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9218 * i386-cygwin-tdep.c: New file.
9219 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9220 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9221
9222 2003-03-20 Andrew Cagney <cagney@redhat.com>
9223
9224 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9225 (handle_inferior_event): Remove code calling
9226 DYNAMIC_TRAMPOLINE_NEXTPC.
9227
9228 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9229 already has a full path.
9230
9231 * main.c (gdb_main): Return 1.
9232 (captured_main): Call error to report an invalid interpreter.
9233
9234 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9235 * alpha-osf1-tdep.c: Include "gdb_string.h".
9236
9237 2003-03-19 J. Brobecker <brobecker@gnat.com>
9238
9239 Continuing work to convert the hppa targets to multiarch partial.
9240
9241 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9242 method, now that hppa_push_dummy_frame has a conformant prototype.
9243 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9244 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9245 for the switch to multiarch partial.
9246
9247 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9248
9249 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9250 when iss is issNull.
9251
9252 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9253
9254 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9255 NUM_REGS bounds check.
9256
9257 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9258
9259 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9260 * mips-tdep.c (gdb_assert.h): Include.
9261 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9262 (mips_register_name): Handle integer registers explicitly. Add
9263 bounds checking.
9264 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9265 (mips_lsi33k_reg_names): Don't list integer registers; they're
9266 handled by mips_register_name() now.
9267 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9268 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9269 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9270 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9271 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9272
9273 2003-03-18 Andrew Cagney <cagney@redhat.com>
9274
9275 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9276 a void pointer.
9277 * gdbtypes.h (print_scalar_formatted): Update declaration.
9278 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9279
9280 2003-03-18 J. Brobecker <brobecker@gnat.com>
9281
9282 * infrun.c (observer.h): Add #include.
9283 (normal_stop): Add call to observer_notify_normal_stop.
9284 * Makefile.in (infrun.o): Add dependency on observer.h.
9285
9286 2003-03-18 J. Brobecker <brobecker@gnat.com>
9287
9288 Continuing work to convert the hppa targets to multiarch partial.
9289 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9290 parameter. Reformat comment.
9291 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9292 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9293 to match new profile.
9294
9295 2003-03-18 J. Brobecker <brobecker@gnat.com>
9296
9297 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9298 appear to be working in any case.
9299
9300 2003-03-18 J. Brobecker <brobecker@gnat.com>
9301
9302 * observer.c (observer_test_first_observer): New static variable.
9303 (observer_test_second_observer): Likewise.
9304 (observer_test_third_observer): Likewise.
9305 (observer_test_first_notification_function): New static function.
9306 (observer_test_second_notification_function): Likewise.
9307 (observer_test_third_notification_function): Likewise.
9308
9309 2003-03-17 J. Brobecker <brobecker@gnat.com>
9310
9311 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9312 * somsolib.c (gdb_assert.h): Likewise.
9313 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9314 (somsolib.o): Likewise.
9315
9316 2003-03-17 Andrew Cagney <cagney@redhat.com>
9317
9318 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9319 BFD. Simplify setting of di.endian.
9320
9321 2003-03-17 Andrew Cagney <cagney@redhat.com>
9322
9323 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9324 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9325
9326 From Elena Zannoni <ezannoni@redhat.com>
9327 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9328 vector and floating-point parameters.
9329 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9330 convention.
9331 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9332
9333 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9334
9335 * MAINTAINERS: Remove my name from several maintainership roles.
9336
9337 2003-03-17 Andrew Cagney <cagney@redhat.com>
9338
9339 Fix frame off-by-one bug.
9340 * frame-unwind.h (frame_this_id_ftype): Replace
9341 frame_unwind_id_ftype.
9342 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9343 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9344 with "prev_register".
9345 * frame-unwind.c (frame_unwind_find_by_pc): Return
9346 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9347 comment.
9348 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9349 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9350 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9351 (dummy_frame_unwind): Update.
9352 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9353 sentinel_frame_register_unwind.
9354 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9355 (sentinel_frame_unwinder): Update.
9356 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9357 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9358 * frame.c (create_sentinel_frame): Update. Initialize
9359 "prologue_cache" instead of "unwind_cache".
9360 (frame_register_unwind): Call this frame's prev_register with the
9361 next frame and this frame's prologue cache.
9362 (get_prev_frame): Simplify. Always call prev frame's this_id with
9363 this frame and prev frame's prologue cache. Document that this
9364 call is shifted one to the left when compared to the
9365 frame_register_unwind call.
9366 (legacy_saved_regs_prev_register): Replace
9367 frame_saved_regs_register_unwind.
9368 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9369 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9370 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9371 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9372 (d10v_frame_unwind): Update.
9373 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9374 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9375 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9376 "saved_regs" with "this_saved_regs".
9377
9378 2003-03-16 Andrew Cagney <cagney@redhat.com>
9379
9380 * frame.c (frame_pop): Don't call target_store_registers. Fix
9381 problem reported by Mark Kettenis.
9382
9383 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9384
9385 * i386-tdep.c (i386_register_type): Renamed from
9386 i386_register_virtual_type. Adjust function signature.
9387 (i386_gdbarch_init): Set register_type instead of
9388 deprecated_max_register_raw_size,
9389 deprecated_max_register_virtual_size and register_virtual_type.
9390
9391 2003-03-14 Andrew Cagney <cagney@redhat.com>
9392
9393 * frame.c (get_prev_frame): When a legacy frame, always call
9394 legacy_get_prev_frame. Simplify unwind code using assumption that
9395 the unwinder is new.
9396 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9397 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9398 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9399
9400 2003-03-14 Andrew Cagney <cagney@redhat.com>
9401
9402 * frame.c (get_saved_register): Delete function.
9403 * frame.h (get_saved_register): Delete declaration.
9404 * xstormy16-tdep.c: Update comment.
9405 * regcache.h: Update comments.
9406 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9407 get_saved_register and extract_address, use
9408 frame_read_unsigned_register.
9409 (sparc_frame_saved_pc): Ditto.
9410 (sparc_get_saved_register): Instead of get_saved_register, use
9411 frame_register.
9412 (sparc_pop_frame): Ditto.
9413 * findvar.c: Update comments.
9414 (value_of_register): Call frame_register instead of
9415 get_saved_register.
9416 (value_from_register): Ditto.
9417 * config/sparc/tm-sparc.h: Update comment.
9418 * breakpoint.c: Update comment.
9419
9420 2003-03-14 Andrew Cagney <cagney@redhat.com>
9421
9422 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9423 GET_SAVED_REGISTER.
9424 * gdbarch.h, gdbarch.c: Re-generate.
9425 * frame.h: Update comments.
9426 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9427 * x86-64-tdep.c (x86_64_init_abi): Update.
9428 * sparc-tdep.c (sparc_gdbarch_init): Update.
9429 * sh-tdep.c (sh_gdbarch_init): Update.
9430 * mips-tdep.c (mips_gdbarch_init): Update.
9431 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9432 * cris-tdep.c (cris_gdbarch_init): Update.
9433 * ia64-tdep.c (ia64_gdbarch_init): Update.
9434 * frame.c (frame_register): Update.
9435 (get_saved_register): Update.
9436 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9437
9438 2003-03-13 Andrew Cagney <cagney@redhat.com>
9439
9440 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9441 * gdbarch.h, gdbarch.c: Regenerate.
9442 * valops.c (hand_function_call): Update comment.
9443 * stack.c (return_command): Update comment.
9444 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9445 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9446 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9447 * x86-64-tdep.c (x86_64_init_abi): Update.
9448 * vax-tdep.c (vax_gdbarch_init): Update.
9449 * v850-tdep.c (v850_gdbarch_init): Update.
9450 * sparc-tdep.c (sparc_gdbarch_init): Update.
9451 * sh-tdep.c (sh_gdbarch_init): Update.
9452 * s390-tdep.c (s390_gdbarch_init): Update.
9453 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9454 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9455 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9456 * mips-tdep.c (mips_gdbarch_init): Update.
9457 * mcore-tdep.c (mcore_gdbarch_init): Update.
9458 * m68k-tdep.c (m68k_gdbarch_init): Update.
9459 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9460 * ia64-tdep.c (ia64_gdbarch_init): Update.
9461 * i386-tdep.c (i386_gdbarch_init): Update.
9462 * hppa-tdep.c (hppa_gdbarch_init): Update.
9463 * h8300-tdep.c (h8300_gdbarch_init): Update.
9464 * frv-tdep.c (frv_gdbarch_init): Update.
9465 * cris-tdep.c (cris_gdbarch_init): Update.
9466 * avr-tdep.c (avr_gdbarch_init): Update.
9467 * arm-tdep.c (arm_gdbarch_init): Update.
9468 * alpha-tdep.c (alpha_gdbarch_init): Update.
9469
9470 2003-03-13 Andrew Cagney <cagney@redhat.com>
9471
9472 * frame.c (legacy_frame_p): New function.
9473 (get_prev_frame): Use legacy_frame_p.
9474 * frame.h (legacy_frame_p): Declare.
9475
9476 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9477
9478 * MAINTAINERS (write after approval): Alphabetically
9479 listing corrected.
9480
9481 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9482
9483 * MAINTAINERS (write after approval): Add myself.
9484
9485 2003-03-12 Andrew Cagney <cagney@redhat.com>
9486
9487 * frame.c (get_prev_frame): Rename the frame parameter to
9488 "this_frame".
9489 (get_next_frame, legacy_get_prev_frame): Ditto.
9490
9491 2003-03-12 Andrew Cagney <cagney@redhat.com>
9492
9493 * frame.c (get_current_frame): Check target_has_registers before
9494 checking target_has_stack.
9495 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9496 instead of deprecated_selected_frame.
9497 * findvar.c (value_of_register): Pass "frame", not
9498 deprecated_selected_frame, to value_of_builtin_reg.
9499
9500 2003-03-12 Andrew Cagney <cagney@redhat.com>
9501
9502 * regcache.c (regcache_cooked_write_signed): New function.
9503 (regcache_cooked_write_unsigned): New function.
9504 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9505 (regcache_cooked_read_signed): Fix regnum in range assertion.
9506 * regcache.h (regcache_cooked_write_signed): Declare.
9507 (regcache_cooked_write_unsigned): Declare.
9508
9509 2003-03-12 Andrew Cagney <cagney@redhat.com>
9510
9511 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9512 * gdbarch.h, gdbarch.c: Re-generate.
9513 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9514 * x86-64-tdep.h: Update.
9515 * x86-64-tdep.c (x86_64_init_abi): Update.
9516 * v850-tdep.c (v850_gdbarch_init): Update.
9517 * sparc-tdep.c (sparc_gdbarch_init): Update.
9518 * sh-tdep.c (sh_gdbarch_init): Update.
9519 * s390-tdep.c (s390_gdbarch_init): Update.
9520 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9521 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9522 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9523 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9524 * mips-tdep.c (mips_gdbarch_init): Update.
9525 * mcore-tdep.c (mcore_gdbarch_init): Update.
9526 * m68k-tdep.c (m68k_gdbarch_init): Update.
9527 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9528 * ia64-tdep.c (ia64_gdbarch_init): Update.
9529 * i386-tdep.c (i386_gdbarch_init): Update.
9530 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9531 * hppa-tdep.c (hppa_gdbarch_init): Update.
9532 * h8300-tdep.c (h8300_gdbarch_init): Update.
9533 * frv-tdep.c (frv_gdbarch_init): Update.
9534 * cris-tdep.c (cris_gdbarch_init): Update.
9535 * avr-tdep.c (avr_gdbarch_init): Update.
9536 * arm-tdep.c (arm_gdbarch_init): Update.
9537 * alpha-tdep.c (alpha_gdbarch_init): Update.
9538 * sh-tdep.c (sh_init_extra_frame_info): Update.
9539 (sh64_init_extra_frame_info): Update.
9540 * ns32knbsd-nat.c (frame_num_args): Update.
9541 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9542 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9543 (xstormy16_frame_chain_valid): Update.
9544 * vax-tdep.c (vax_saved_pc_after_call): Update.
9545 * v850-tdep.c (v850_frame_chain): Update.
9546 (v850_pop_frame): Update.
9547 (v850_init_extra_frame_info): Update.
9548 * sparc-tdep.c (setup_arbitrary_frame): Update.
9549 * ns32k-tdep.c (umax_frame_num_args): Update.
9550 * s390-tdep.c (s390_pop_frame_regular): Update.
9551 * mn10300-tdep.c (mn10300_frame_chain): Update.
9552 (mn10300_pop_frame_regular): Update.
9553 (mn10300_init_extra_frame_info): Update.
9554 * mips-tdep.c (mips_init_frame_pc_first): Update.
9555 (mips_frame_chain): Update.
9556 (mips_pop_frame): Update.
9557 * mcore-tdep.c (mcore_frame_chain): Update.
9558 (mcore_pop_frame): Update.
9559 (mcore_init_extra_frame_info): Update.
9560 * arch-utils.c (init_frame_pc_default): Update.
9561 * m68k-tdep.c (isi_frame_num_args): Update.
9562 (delta68_frame_num_args): Update.
9563 (news_frame_num_args): Update.
9564 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9565 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9566 (alpha_frame_chain): Update.
9567 (alpha_pop_frame): Update.
9568 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9569 (hppa_init_extra_frame_info): Update.
9570 (hppa_frame_chain): Update.
9571 (hppa_frame_chain_valid): Update.
9572 * cris-tdep.c (cris_init_extra_frame_info): Update.
9573 * avr-tdep.c (avr_init_extra_frame_info): Update.
9574 * arm-tdep.c (arm_frame_chain_valid): Update.
9575 (arm_init_extra_frame_info): Update.
9576 (arm_pop_frame): Update.
9577 * frame.c (frame_pc_unwind): Update.
9578 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9579 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9580 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9581 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9582 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9583 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9584
9585 2003-03-12 Andrew Cagney <cagney@redhat.com>
9586
9587 Eliminate the need for POP_FRAME.
9588 * frame.c (do_frame_unwind_register): New function.
9589 (frame_pop): When no POP_FRAME, pop the frame using register
9590 unwind and a scratch regcache.
9591 (frame_saved_regs_pop): Delete function.
9592 (trad_frame_unwinder): Update.
9593 * d10v-tdep.c (d10v_frame_pop): Delete function.
9594 (d10v_frame_unwind): Update.
9595 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9596 (sentinel_frame_unwinder): Update.
9597 * dummy-frame.c (dummy_frame_pop): Delete function.
9598 (dummy_frame_unwind): Update.
9599 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9600 (struct frame_unwind): Update.
9601
9602 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9603
9604 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9605 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9606 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9607 Do range checks on register number obtained from debugging info.
9608 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9609 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9610 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9611 mapping function.
9612 (do_fp_register_row): Fix typo which caused double type to be
9613 used when attempting to unpack a float.
9614
9615 2003-03-11 J. Brobecker <brobecker@gnat.com>
9616
9617 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9618
9619 2003-03-11 Andrew Cagney <cagney@redhat.com>
9620
9621 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9622 frame. Problem found by Corinna Vinschen.
9623
9624 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9625
9626 * doublest.c (floatformat_from_length): Accept also
9627 the real size of 'long double' type.
9628
9629 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9630
9631 From Klee Dienes <kdienes@apple.com>:
9632 * breakpoint.c (bpstat_copy): Copy the command lines as well
9633 as the old value, to match what is freed in bpstat_clear.
9634
9635 2003-03-10 David Carlton <carlton@math.stanford.edu>
9636
9637 * minsyms.c (add_minsym_to_hash_table): Replace
9638 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9639 (compare_minimal_symbols, compact_minimal_symbols)
9640 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9641 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9642 of DEPRECATED_SYMBOL_MATCHES_NAME.
9643 (lookup_minimal_symbol_solib_trampoline): Ditto.
9644
9645 2003-03-10 Andrew Cagney <cagney@redhat.com>
9646
9647 * regcache.h (regcache_cooked_read_ftype): Define.
9648 (regcache_save, regcache_restore): Add a cooked_read parameter.
9649 * regcache.c (regcache_save, regcache_restore): Update.
9650 (do_cooked_read): New function.
9651 (regcache_cpy): Pass do_cooked_read to regcache_save and
9652 regcache_restore.
9653
9654 2003-03-10 Andrew Cagney <cagney@redhat.com>
9655
9656 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9657 * gdbarch.h, gdbarch.c: Re-generate.
9658 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9659 * x86-64-tdep.h: Update.
9660 * x86-64-tdep.c (x86_64_init_abi): Update.
9661 * v850-tdep.c (v850_gdbarch_init): Update.
9662 * sparc-tdep.c (sparc_gdbarch_init): Update.
9663 * sh-tdep.c (sh_gdbarch_init): Update.
9664 * s390-tdep.c (s390_gdbarch_init): Update.
9665 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9666 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9667 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9668 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9669 * mips-tdep.c (mips_gdbarch_init): Update.
9670 * mcore-tdep.c (mcore_gdbarch_init): Update.
9671 * m68k-tdep.c (m68k_gdbarch_init): Update.
9672 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9673 * ia64-tdep.c (ia64_gdbarch_init): Update.
9674 * i386-tdep.c (i386_gdbarch_init): Update.
9675 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9676 * hppa-tdep.c (hppa_gdbarch_init): Update.
9677 * h8300-tdep.c (h8300_gdbarch_init): Update.
9678 * frv-tdep.c (frv_gdbarch_init): Update.
9679 * cris-tdep.c (cris_gdbarch_init): Update.
9680 * avr-tdep.c (avr_gdbarch_init): Update.
9681 * arm-tdep.c (arm_gdbarch_init): Update.
9682 * alpha-tdep.c (alpha_gdbarch_init): Update.
9683 * sh-tdep.c (sh_init_extra_frame_info): Update.
9684 (sh64_init_extra_frame_info): Update.
9685 * ns32knbsd-nat.c (frame_num_args): Update.
9686 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9687 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9688 (xstormy16_frame_chain_valid): Update.
9689 * vax-tdep.c (vax_saved_pc_after_call): Update.
9690 * v850-tdep.c (v850_frame_chain): Update.
9691 (v850_pop_frame): Update.
9692 (v850_init_extra_frame_info): Update.
9693 * sparc-tdep.c (setup_arbitrary_frame): Update.
9694 * ns32k-tdep.c (umax_frame_num_args): Update.
9695 * s390-tdep.c (s390_pop_frame_regular): Update.
9696 * mn10300-tdep.c (mn10300_frame_chain): Update.
9697 (mn10300_pop_frame_regular): Update.
9698 (mn10300_init_extra_frame_info): Update.
9699 * mips-tdep.c (mips_init_frame_pc_first): Update.
9700 (mips_frame_chain): Update.
9701 (mips_pop_frame): Update.
9702 * mcore-tdep.c (mcore_frame_chain): Update.
9703 (mcore_pop_frame): Update.
9704 (mcore_init_extra_frame_info): Update.
9705 * arch-utils.c (init_frame_pc_default): Update.
9706 * m68k-tdep.c (isi_frame_num_args): Update.
9707 (delta68_frame_num_args): Update.
9708 (news_frame_num_args): Update.
9709 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9710 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9711 (alpha_frame_chain): Update.
9712 (alpha_pop_frame): Update.
9713 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9714 (hppa_init_extra_frame_info): Update.
9715 (hppa_frame_chain): Update.
9716 (hppa_frame_chain_valid): Update.
9717 * cris-tdep.c (cris_init_extra_frame_info): Update.
9718 * avr-tdep.c (avr_init_extra_frame_info): Update.
9719 * arm-tdep.c (arm_frame_chain_valid): Update.
9720 (arm_init_extra_frame_info): Update.
9721 (arm_pop_frame): Update.
9722 * frame.c (frame_pc_unwind): Update.
9723 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9724 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9725 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9726 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9727 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9728 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9729
9730 2003-03-10 Andrew Cagney <cagney@redhat.com>
9731
9732 * gdbarch.sh (gdbarch_unwind_pc): New method.
9733 * gdbarch.h, gdbarch.c: Regenerate.
9734 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9735 but use read_pc and FRAME_SAVED_PC as fall backs.
9736 (frame_saved_regs_pc_unwind): Delete function.
9737 (trad_frame_unwinder): Update.
9738 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9739 (struct frame_unwind): Update.
9740 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9741 (dummy_frame_unwind): Update.
9742 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9743 (sentinel_frame_unwinder): Update.
9744 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9745 (d10v_frame_unwind): Update.
9746 (d10v_unwind_pc): New function.
9747 (d10v_gdbarch_init): Set unwind_pc.
9748
9749 2003-03-10 Andrew Cagney <cagney@redhat.com>
9750
9751 * gdbarch.h: Re-generate.
9752
9753 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9754 PC.
9755 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9756 the PC register.
9757
9758 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9759
9760 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9761
9762 2003-03-08 Andrew Cagney <cagney@redhat.com>
9763
9764 * cli-out.c: Update copyright.
9765 (cli_out_data): Define typedef. Use instead of ui_out_data.
9766
9767 2003-03-08 Andrew Cagney <cagney@redhat.com>
9768
9769 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9770 the result.
9771
9772 2003-03-07 Andrew Cagney <cagney@redhat.com>
9773
9774 * gdbarch.sh: Don't generate two macro definitions when an
9775 undefined macro taking no arguments.
9776 * gdbarch.h: Regenerate.
9777
9778 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9779
9780 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9781 (x86_64_unwind_dummy_id): New functions.
9782 (x86_64_init_abi): Register these two new functions.
9783
9784 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9785
9786 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9787 (x86_64_skip_prologue): Move prologue detection to
9788 separate function.
9789 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9790
9791 2003-03-05 Andrew Cagney <cagney@redhat.com>
9792
9793 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9794 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9795 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9796 to use unwind_dummy_id when a dummy frame.
9797 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9798 predicate.
9799 * gdbarch.h, gdbarch.c: Regneerate.
9800
9801 2003-03-05 Andrew Cagney <cagney@redhat.com>
9802
9803 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9804 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9805 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9806 values.
9807
9808 2003-03-05 Andrew Cagney <cagney@redhat.com>
9809
9810 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9811 (struct d10v_unwind_cache): Delete field "frameless". Replace
9812 "next_addr" with "sp_offset". Add "r11_offset".
9813 (d10v_frame_unwind_cache): Update.
9814 (prologue_find_regs): Update. When "mv r11, sp", save the
9815 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9816 RN was saved in r11_offset.
9817
9818 2003-03-05 Andrew Cagney <cagney@redhat.com>
9819
9820 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9821 cached PC value in the next frame.
9822
9823 2003-03-05 Andrew Cagney <cagney@redhat.com>
9824
9825 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9826 "id_unwind_cache" with "id".
9827 (frame_id_unwind): Delete declaration.
9828 * frame.c (frame_id_unwind): Delete function.
9829 (get_prev_frame): Call the frame id unwind method directly. Store
9830 the returned next frame's ID value in NEXT_FRAME. Note that there
9831 is a problem with the wrong unwind ID being called with the wrong
9832 unwind cache.
9833
9834 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9835
9836 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9837
9838 2003-03-05 James Ingham <jingham@apple.com>
9839 Daniel Jacobowitz <drow@mvista.com>
9840
9841 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9842 (auto_cp_abi): New variable.
9843 (current_cp_abi, num_cp_abis): Make static.
9844 (CP_ABI_MAX): Define.
9845 (cp_abis): Turn into an array.
9846 (value_virtual_fn_field): Fix formatting.
9847 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9848 takes a pointer.
9849 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9850 (list_cp_abis, _initialize_cp_abi): New functions.
9851 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9852 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9853 switch_to_cp_abi. Update prototype for register_cp_abi.
9854 * Makefile.in (cp-abi.o): Update dependencies.
9855 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9856 instead of switch_to_cp_abi.
9857 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9858 register_cp_abi.
9859 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9860 register_cp_abi.
9861 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9862
9863 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9864
9865 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9866 * dwarf2loc.c: Include "regcache.h".
9867 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9868 register_size.
9869 * Makefile.in (dwarf2loc.o): Update dependencies.
9870
9871 2003-03-04 Theodore A. Roth <troth@openavr.org>
9872
9873 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9874 number of io registers reported by remote target is not a multiple of
9875 step.
9876
9877 2003-03-04 David Carlton <carlton@math.stanford.edu>
9878
9879 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9880 (lookup_symbol_aux_psymtabs): Update call to
9881 lookup_partial_symbol.
9882 (lookup_transparent_type, find_main_psymtab)
9883 (make_symbol_overload_list): Ditto.
9884
9885 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9886
9887 * MAINTAINERS (Write after approval): Update my email address.
9888
9889 2003-03-03 Andrew Cagney <cagney@redhat.com>
9890
9891 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9892 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9893 predicate. Replace MAX_REGISTER_RAW_SIZE.
9894 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9895 MAX_REGISTER_VIRTUAL_SIZE.
9896 * regcache.c (legacy_max_register_raw_size): New function.
9897 (legacy_max_register_virtual_size): New function.
9898 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9899 (MAX_REGISTER_RAW_SIZE): Define.
9900 (legacy_max_register_raw_size): Declare.
9901 (legacy_max_register_virtual_size): Declare.
9902 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9903 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9904 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9905 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9906 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9907 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9908 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9909 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9910 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9911 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9912 * vax-tdep.c (vax_gdbarch_init): Update.
9913 * v850-tdep.c (v850_gdbarch_init): Update.
9914 * sparc-tdep.c (sparc_gdbarch_init): Update.
9915 * sh-tdep.c (sh_gdbarch_init): Update.
9916 * s390-tdep.c (s390_gdbarch_init): Update.
9917 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9918 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9919 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9920 * mips-tdep.c (mips_gdbarch_init): Update.
9921 * mcore-tdep.c (mcore_gdbarch_init): Update.
9922 * m68k-tdep.c (m68k_gdbarch_init): Update.
9923 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9924 * ia64-tdep.c (ia64_gdbarch_init): Update.
9925 * i386-tdep.c (i386_gdbarch_init): Update.
9926 * hppa-tdep.c (hppa_gdbarch_init): Update.
9927 * h8300-tdep.c (h8300_gdbarch_init): Update.
9928 * frv-tdep.c (frv_gdbarch_init): Update.
9929 * cris-tdep.c (cris_gdbarch_init): Update.
9930 * avr-tdep.c (avr_gdbarch_init): Update.
9931 * arm-tdep.c (arm_gdbarch_init): Update.
9932 * alpha-tdep.c (alpha_gdbarch_init): Update.
9933 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9934 max_register_raw_size or max_register_virtual_size.
9935
9936 2003-03-03 David Carlton <carlton@math.stanford.edu>
9937
9938 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9939 SYMBOL_MATCHES_NAME, add comment.
9940 (SYMBOL_MATCHES_NATURAL_NAME): New.
9941 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9942 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9943 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9944 * symtab.c (lookup_partial_symbol): Use
9945 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9946 unhelpful comment.
9947 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9948 SYMBOL_MATCHES_NAME.
9949 Fix for PR c++/33.
9950
9951 2003-03-03 David Carlton <carlton@math.stanford.edu>
9952
9953 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9954 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9955 by regexp matching against SYMBOL_NATURAL_NAME.
9956
9957 2003-03-03 David Carlton <carlton@math.stanford.edu>
9958
9959 * linespec.c (find_method): Extract code into collect_methods.
9960 (collect_methods): New.
9961
9962 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9963
9964 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9965 get_frame_base.
9966
9967 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9968 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9969
9970 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9971
9972 * arch-utils.c (generic_register_byte): Fix to use the loop index
9973 and not regnum when summing the size of all registers up to regnum.
9974
9975 2003-03-01 Andrew Cagney <cagney@redhat.com>
9976
9977 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9978 FRAME_INIT_SAVED_REGS.
9979 * gdbarch.h, gdbarch.c: Regenerate.
9980 * stack.c (frame_info): Update.
9981 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9982 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9983 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9984 * ns32k-tdep.c (ns32k_pop_frame): Update.
9985 * mips-tdep.c (mips_pop_frame): Update.
9986 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9987 * ia64-tdep.c (ia64_frame_chain): Update.
9988 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9989 (ia64_frameless_function_invocation): Update.
9990 (ia64_init_extra_frame_info): Update.
9991 (ia64_pop_frame_regular): Update.
9992 * frame.h (struct frame_info): Update comment.
9993 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9994 * frame.c (frame_saved_regs_register_unwind): Update.
9995 (frame_saved_regs_register_unwind): Update.
9996 (deprecated_generic_get_saved_register): Update.
9997 * cris-tdep.c: Update comment.
9998 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9999 Rename macro.
10000 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10001 * x86-64-tdep.c (x86_64_init_abi): Update.
10002 * vax-tdep.c (vax_gdbarch_init): Update.
10003 * v850-tdep.c (v850_gdbarch_init): Update.
10004 * sparc-tdep.c (sparc_gdbarch_init): Update.
10005 * sh-tdep.c (sh_gdbarch_init): Update.
10006 * s390-tdep.c (s390_gdbarch_init): Update.
10007 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10008 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10009 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10010 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10011 * mips-tdep.c (mips_gdbarch_init): Update.
10012 * mcore-tdep.c (mcore_gdbarch_init): Update.
10013 * m68k-tdep.c (m68k_gdbarch_init): Update.
10014 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10015 * ia64-tdep.c (ia64_gdbarch_init): Update.
10016 * i386-tdep.c (i386_gdbarch_init): Update.
10017 * frv-tdep.c (frv_gdbarch_init): Update.
10018 * avr-tdep.c (avr_gdbarch_init): Update.
10019 * arm-tdep.c (arm_gdbarch_init): Update.
10020 * alpha-tdep.c (alpha_gdbarch_init): Update.
10021
10022 2003-03-01 Andrew Cagney <cagney@redhat.com>
10023
10024 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10025 option enum and switch. When no windows, set the interpreter to
10026 INTERP_CONSOLE.
10027
10028 2003-03-01 Andrew Cagney <cagney@redhat.com>
10029
10030 * main.c (captured_main): Replace magic option characters with an
10031 enum.
10032
10033 2003-03-01 Andrew Cagney <cagney@redhat.com>
10034
10035 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10036 INIT_EXTRA_FRAME_INFO.
10037 * gdbarch.h, gdbarch.c: Regenerate.
10038 * arm-tdep.c: Update comments.
10039 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10040 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10041 * frame.h, avr-tdep.c: Ditto.
10042 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10043 (create_new_frame, legacy_get_prev_frame): Ditto.
10044 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10045 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10046 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10047 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10048 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10049 * v850-tdep.c (v850_gdbarch_init): Ditto.
10050 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10051 * sh-tdep.c (sh_gdbarch_init): Ditto.
10052 * s390-tdep.c (s390_gdbarch_init): Ditto.
10053 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10054 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10055 * mips-tdep.c (mips_gdbarch_init): Ditto.
10056 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10057 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10058 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10059 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10060 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10061 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10062 * frv-tdep.c (frv_gdbarch_init): Ditto.
10063 * cris-tdep.c (cris_gdbarch_init): Ditto.
10064 * avr-tdep.c (avr_gdbarch_init): Ditto.
10065 * arm-tdep.c (arm_gdbarch_init): Ditto.
10066 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10067 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10068
10069 2003-03-01 Andrew Cagney <cagney@redhat.com>
10070
10071 * gdbarch.sh (register_type): New function with predicate.
10072 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10073 * gdbarch.h, gdbarch.c: Re-generate.
10074 * arch-utils.c (generic_register_byte): Use generic_register_size.
10075 (generic_register_size): When available, use
10076 gdbarch_register_type.
10077 * regcache.c (init_regcache_descr): When available, initialize the
10078 register type array using gdbarch_register_type. If the
10079 architecture supplies gdbarch_register_type, do not use the legacy
10080 regcache layout.
10081 * d10v-tdep.c (d10v_register_type): Replace
10082 d10v_register_virtual_type.
10083 (d10v_gdbarch_init): Set register_type instead of
10084 register_virtual_type.
10085
10086 2003-03-01 Andrew Cagney <cagney@redhat.com>
10087
10088 * Makefile.in (ax-gdb.o): Update dependencies.
10089 * ax-gdb.c: Include "regcache.h".
10090 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10091 * findvar.c (value_of_register): Ditto.
10092 * infcmd.c (default_print_registers_info): Ditto.
10093
10094 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10095
10096 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10097 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10098
10099 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10100
10101 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10102 of STREQ.
10103
10104 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10105
10106 * Makefile.in (dwarf2loc.o): Update dependencies.
10107 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10108 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10109 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10110 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10111 (locexpr_tracepoint_var_ref): New function.
10112 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10113
10114 2003-02-28 Andrew Cagney <cagney@redhat.com>
10115
10116 * regcache.c (register_size): New function.
10117 * regcache.h (register_size): Declare
10118 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10119 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10120
10121 2003-02-28 David Carlton <carlton@math.stanford.edu>
10122
10123 * linespec.c (decode_compound): Extract code into find_method.
10124 (find_method): New.
10125
10126 2003-02-28 J. Brobecker <brobecker@gnat.com>
10127
10128 * Makefile.in: Add rules to build and link in observer.o.
10129
10130 2003-02-27 J. Brobecker <brobecker@gnat.com>
10131
10132 * observer.c: Minor comments edits.
10133
10134 2003-02-27 J. Brobecker <brobecker@gnat.com>
10135
10136 * observer.h, observer.c: New file.
10137
10138 2003-02-27 Andrew Cagney <cagney@redhat.com>
10139
10140 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10141
10142 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10143
10144 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10145 (M6812_OP_STS_EXT): Likewise.
10146 (m6811_prologue): Use the above to recognize prologue.
10147 (m6812_prologue): Likewise.
10148
10149 2003-02-27 David Carlton <carlton@math.stanford.edu>
10150
10151 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10152 SYMBOL_PRINT_NAME.
10153 (compare_psymbols): Ditto.
10154 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10155
10156 2003-02-27 Michael Snyder <msnyder@redhat.com>
10157
10158 * f-lang.c (build_fortran_types): New function.
10159 (_initialize_f_language): Gdbarch-register built-in fortran types.
10160 * doublest.c (extract_floating): Fix warning text.
10161
10162 2003-02-27 Andrew Cagney <cagney@redhat.com>
10163
10164 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10165 predicate. Replaces PUSH_DUMMY_FRAME.
10166 * gdbarch.h, gdbarch.c: Regnerate.
10167 * valops.c (hand_function_call): Update. Call
10168 generic_push_dummy_frame directly.
10169 * vax-tdep.c (vax_gdbarch_init): Update.
10170 * sparc-tdep.c (sparc_gdbarch_init): Update.
10171 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10172 * m68k-tdep.c (m68k_gdbarch_init): Update.
10173 * hppa-tdep.c (hppa_gdbarch_init): Update.
10174 * alpha-tdep.c (alpha_gdbarch_init): Update.
10175 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10176 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10177 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10178 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10179 push_dummy_frame to generic_push_dummy_frame.
10180 * v850-tdep.c (v850_gdbarch_init): Ditto.
10181 * sh-tdep.c (sh_gdbarch_init): Ditto.
10182 * s390-tdep.c (s390_gdbarch_init): Ditto.
10183 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10184 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10185 * mips-tdep.c (mips_gdbarch_init): Ditto.
10186 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10187 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10188 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10189 * i386-tdep.c (i386_gdbarch_init): Ditto.
10190 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10191 * frv-tdep.c (frv_gdbarch_init): Ditto.
10192 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10193 * cris-tdep.c (cris_gdbarch_init): Ditto.
10194 * avr-tdep.c (avr_gdbarch_init): Ditto.
10195 * arm-tdep.c (arm_gdbarch_init): Ditto.
10196
10197 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10198
10199 * mips-tdep.c (show_mips_abi): New function.
10200 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10201 command ``show mips abi''.
10202
10203 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10204
10205 From Elena Zannoni <ezannoni@redhat.com>
10206 * dbxread.c (process_one_symbol): Only record line 0 if one or
10207 more sline entries have been seen for the function.
10208
10209 2003-02-26 Michael Chastain <mec@shout.net>
10210
10211 * configure: Regenerate with autoconf 000227.
10212
10213 2003-02-26 Michael Chastain <mec@shout.net>
10214
10215 Close PR build/660.
10216 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10217 for old libc5/glibc.
10218 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10219
10220 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10221
10222 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10223 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10224
10225 2003-02-26 Michael Chastain <mec@shout.net>
10226
10227 * configure.in: New variable HAVE_UINTPTR_T.
10228 * configure, config.in: Regenerated.
10229
10230 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10231
10232 Fix PR build/1097.
10233 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10234
10235 2003-02-25 Andrew Cagney <cagney@redhat.com>
10236
10237 * frame.c (get_prev_frame): Add comment on check for
10238 inside_entry_func. Only check for inside_entry_file when not a
10239 dummy and not a sentinel. Check that the new frame is not inner
10240 to the old frame.
10241
10242 2003-02-25 Andrew Cagney <cagney@redhat.com>
10243
10244 * frame.c (frame_debug): New variable.
10245 (_initialize_frame): Add "set/show debug frame" command.
10246 (get_prev_frame): When frame_debug, print reason why unwind
10247 failed.
10248
10249 2003-02-25 Michael Chastain <mec@shout.net>
10250
10251 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10252 to avoid uintptr_t definition problems.
10253
10254 2003-02-25 David Carlton <carlton@math.stanford.edu>
10255
10256 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10257 (SYMBOL_LINKAGE_NAME): Ditto.
10258 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10259 SYMBOL_LINKAGE_NAME.
10260 (struct general_symbol_info): Expand comment.
10261 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10262 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10263 (SYMBOL_MATCHES_REGEXP): Ditto.
10264 * symtab.c (symbol_natural_name): New function.
10265 * objfiles.h: Replace all uses of SYMBOL_NAME by
10266 DEPRECATED_SYMBOL_NAME.
10267 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10268 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10269 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10270 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10271 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10272 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10273 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10274 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10275 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10276 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10277 * ada-exp.y: Ditto.
10278 * ada-exp.y: Update copyright.
10279 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10280 * cp-valprint.c: Ditto.
10281
10282 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10283
10284 * infptrace.c (detach): Do not flag error if ptrace detach fails
10285 and errno is set to ESRCH.
10286
10287 2003-02-24 Andrew Cagney <cagney@redhat.com>
10288
10289 * infptrace.c (udot_info): Change type of udot_off to long. Use
10290 paddr when printing udot_off's value.
10291
10292 2003-02-24 David Carlton <carlton@math.stanford.edu>
10293
10294 * symtab.c (make_symbol_overload_list): Only read in partial
10295 symtabs containing a matching partial symbol.
10296
10297 2003-02-24 David Carlton <carlton@math.stanford.edu>
10298
10299 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10300 do the comparison, not strcmp.
10301 * symfile.c (compare_psymbols): Ditto.
10302 * defs.h: Declare strcmp_iw_ordered.
10303 * utils.c (strcmp_iw_ordered): New function.
10304
10305 2003-02-24 Jim Blandy <jimb@redhat.com>
10306
10307 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10308 support, shared libs): Remove my name from here, to better reflect
10309 reality.
10310
10311 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10312
10313 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10314 (target_ops): Add to_have_continuable_watchpoint.
10315 * target.c (update_current_target): Add INHERIT line for
10316 to_have_continuable_watchpoint.
10317 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10318 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10319 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10320 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10321
10322 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10323
10324 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10325 maintainership.
10326
10327 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10328
10329 * solib.c (solib_open): Call target defined search function after
10330 failing with solib-search-path.
10331 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10332 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10333
10334 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10335
10336 * MAINTAINERS: Add myself to Write After section.
10337
10338 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10339
10340 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10341
10342 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10343
10344 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10345 (m68hc11_add_reggroups): New function.
10346 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10347 (m68hc11_gdbarch_init): Install the reggroups.
10348 (_initialize_m68hc11_tdep): Initialize them.
10349
10350 2003-02-21 James E Wilson <wilson@tuliptree.org>
10351
10352 * MAINTAINERS: Update my email address.
10353
10354 2003-02-21 David Carlton <carlton@math.stanford.edu>
10355
10356 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10357
10358 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10359
10360 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10361 * symtab.h: Add opaque declarations of struct axs_value and
10362 struct agent_expr.
10363 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10364 (struct location_funcs): New type.
10365 (struct symbol): Add "loc" to aux_value.
10366 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10367 * dwarf2read.c: Include "dwarf2expr.h".
10368 (dwarf2_symbol_mark_computed): New function.
10369 (read_func_scope): Use it.
10370 (var_decode_location): New function.
10371 (new_symbol): Use it.
10372 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10373
10374 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10375 (dwarf2expr_h, dwarf2loc_h): New variables.
10376 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10377 (dwarf2expr.o, dwarf2loc.o): New rules.
10378 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10379 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10380 LOC_COMPUTED_ARG.
10381 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10382 * m2-exp.y (yylex): Likewise.
10383 * printcmd.c (address_info, print_frame_args): Likewise.
10384 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10385 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10386 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10387 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10388 * symtab.c (lookup_block_symbol): Likewise.
10389
10390 2003-02-20 Adam Fedor <fedor@gnu.org>
10391
10392 * symtab.h: Remove objc_specific struct
10393 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10394 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10395 Have language_objc use cplus_specific struct.
10396
10397 2003-02-20 Tom Tromey <tromey@redhat.com>
10398
10399 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10400 TYPE_NAME, when printing a String value. PR java/1075.
10401
10402 2003-02-20 Adam Fedor <fedor@gnu.org>
10403
10404 * objc-lang.h (find_methods): Remove declaration.
10405 * objc-lang.c (find_methods): Make static.
10406
10407 2003-02-20 Christopher Faylor <cgf@redhat.com>
10408
10409 * win32-nat.c (get_image_name): Check return value from
10410 ReadProcessMemory.
10411 (child_xfer_memory): Ditto.
10412
10413 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10414
10415 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10416 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10417 '${exec_prefix}' (in addition to the expansion thereof) as
10418 relocatable.
10419 * configure: Rebuilt.
10420
10421 2003-02-20 David Carlton <carlton@math.stanford.edu>
10422
10423 * symtab.c (search_symbols): Revert the search_symbols part of my
10424 2002-12-23 patch. Add comment.
10425
10426 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10427
10428 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10429 * dbxread.c (elfstab_build_psymtabs): Don't call
10430 install_minimal_symbols.
10431 (stabsect_build_psymtabs): Likewise.
10432 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10433 earlier.
10434 * somread.c (som_symfile_read): Call install_minimal_symbols
10435 and do_cleanups earlier.
10436 * nlmread.c (nlm_symfile_read): Likewise.
10437 * mdebugread.c (elfmdebug_build_psymtabs): Call
10438 install_minimal_symbols and make appropriate cleanups.
10439
10440 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10441
10442 * solib.c (reload_shared_libraries): New function.
10443 (_initialize_solib): Add callbacks for ``set solib-search-path''
10444 and ``set solib-absolute-prefix''.
10445
10446 2003-02-20 David Carlton <carlton@math.stanford.edu>
10447
10448 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10449 expand comment.
10450 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10451 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10452 * ada-typeprint.c (ada_typedef_print): Ditto.
10453 * ax-gdb.c (gen_var_ref): Ditto.
10454 * breakpoint.c (print_one_breakpoint): Ditto.
10455 * buildsym.c (finish_block): Ditto.
10456 * c-valprint.c (c_val_print): Ditto.
10457 * expprint.c (print_subexp): Ditto.
10458 * findvar.c (locate_var_value): Ditto.
10459 * infcmd.c (jump_command): Ditto.
10460 * linespec.c (decode_line_2, decode_compound): Ditto.
10461 * maint.c (maintenance_translate_address): Ditto.
10462 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10463 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10464 Ditto.
10465 * p-valprint.c (pascal_val_print): Ditto.
10466 * stabsread.c (define_symbol): Ditto.
10467 * stack.c (print_frame, frame_info, print_block_frame_locals)
10468 (print_frame_arg_vars, return_command): Ditto.
10469 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10470 * symmisc.c (print_symbol): Ditto.
10471 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10472 (compare_search_syms, print_symbol_info, print_msymbol_info)
10473 (rbreak_command): Ditto.
10474 * tracepoint.c (tracepoints_info): Ditto.
10475 * typeprint.c (typedef_print): Ditto.
10476 * valops.c (value_of_variable, hand_function_call): Ditto.
10477 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10478 * ada-typeprint.c: Update Copyright.
10479 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10480 * tracepoint.c, cli/cli-cmds.c: Ditto.
10481
10482 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10483
10484 * frame.c (generic_unwind_get_saved_register): Make non-static.
10485 * frame.h (generic_unwind_get_saved_register): Declare.
10486 * mips-tdep.c (read_next_frame_reg): Fetch register from
10487 current regcache when frame is NULL.
10488 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10489 that must be NULL.
10490 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10491 instead of frame_register_unwind().
10492
10493 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10494
10495 * remote-sim.c (gdbsim_insert_breakpoint)
10496 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10497 code.
10498
10499 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10500
10501 * remote.c (_initialize_remote): Add commands "set/show remote
10502 hardware-watchpoint-limit" and "set/show remote
10503 hardware-breakpoint-limit".
10504 (remote_hw_watchpoint_limit): Initialize to -1.
10505 (remote_hw_breakpoint_limit): Ditto.
10506 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10507
10508 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10509
10510 * coff-pe-read.c: New file - support reading of minimal symbols from a
10511 portable executable using the export table.
10512 * coff-pe-read.h: New file.
10513 * coffread.c: Include coff-pe-read.h.
10514 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10515 debugging symbols found.
10516 * Makefile.in (SFILES): Add coff-pe-read.o.
10517 (coff_pe_read_h): Define.
10518 (COMMON_OBS): Add coff-pe-read.o.
10519 (coffread.o): Add coff_pe_read_h dependency.
10520 (coff-pe-read.o): New target.
10521
10522 2003-02-19 David Carlton <carlton@math.stanford.edu>
10523
10524 * Makefile.in (SFILES): Add block.c.
10525 (block_h): New.
10526 (COMMON_OBS): Add block.o.
10527 (block.o): New.
10528 (x86-64-tdep.o): Add $(block_h).
10529 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10530 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10531 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10532 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10533 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10534 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10535 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10536 * value.h: Add opaque declaration for struct block.
10537 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10538 * ada-lang.h: Ditto.
10539 * x86-64-tdep.c: #include "block.h"
10540 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10541 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10542 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10543 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10544 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10545 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10546 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10547 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10548 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10549 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10550 * symtab.c (block_function): Ditto.
10551 (contained_in): Ditto.
10552 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10553 block.h. Add opaque declaration for struct block.
10554 * symtab.h: Move block_function and contained_in declarations to
10555 block.h. Add opaque declarations for struct block, struct
10556 blockvector.
10557 (struct block): Move to block.h.
10558 (struct blockvector): Ditto.
10559 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10560 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10561 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10562 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10563 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10564 Ditto.
10565 * block.c: New file.
10566 * block.h: New file.
10567
10568 2003-02-19 Theodore A. Roth <troth@openavr.org>
10569
10570 * avr-tdep.c (avr_extract_return_value): Remove function.
10571 (avr_store_return_value): Remove function.
10572 (avr_extract_struct_value_address): Remove function.
10573 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10574
10575 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10576
10577 * rs6000-tdep.c: Include "gdb_assert.h".
10578 (registers_e500): Add "acc" and "spefscr".
10579 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10580 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10581 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10582 really is "r0".
10583 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10584
10585 2003-02-18 Keith Seitz <keiths@redhat.com>
10586
10587 * Makefile.in: Add gdbtk-interps.c.
10588
10589 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10590
10591 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10592 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10593
10594 2003-02-18 Andrew Cagney <cagney@redhat.com>
10595
10596 * symtab.h (struct objfile): Add opaque declaration.
10597
10598 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10599
10600 From Jim Ingham <jingham@apple.com>:
10601 * dbxread.c (process_one_symbol): Use last_function_start rather
10602 than function_start_offset to find the real beginning of the
10603 current function. The latter is just the text section offset on
10604 some systems, the former is always the real function start.
10605
10606 2003-02-17 Andrew Cagney <cagney@redhat.com>
10607
10608 * configure.in: Revert ${target} != ${host}.
10609
10610 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10611
10612 * configure.in (Makefile): Use the test ${target} != ${host},
10613 instead of the absence of the "nm.h" file, to determine of the
10614 configuration non-native.
10615 * configure: Regenerate.
10616
10617 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10618
10619 From Brian Ford <ford@vss.fsi.com>
10620
10621 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10622 conditionalize tui_active test.
10623 (lookup_cmd_1): Ditto.
10624
10625 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10626
10627 * configure.in: Add check for _etext.
10628 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10629 available.
10630 * config.in, configure: regenerated.
10631
10632 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10633
10634 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10635
10636 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10637
10638 * main.c (tui_version): Delete variable.
10639 (captured_main): When --tui, set interpreter_p to "tui" instead of
10640 enabling tui_version.
10641 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10642 tui_version.
10643 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10644 * cli/cli-cmds.c (disassemble_command): Ditto.
10645 * defs.h (tui_version): Delete declaration.
10646 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10647 (tui-interp.o): Add rules.
10648 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10649
10650 2003-02-14 Christopher Faylor <cgf@redhat.com>
10651
10652 * win32-nat.c (register_loaded_dll): Correctly set address range for
10653 just-loaded dll.
10654
10655 2003-02-12 Jason Molenda (jmolenda@apple.com)
10656
10657 * symmisc.c (print_objfile_statistics): Include information about
10658 the number of psymtabs and symtabs in each object file.
10659
10660 2003-02-13 Keith R Seitz <keiths@redhat.com>
10661
10662 * main.h (struct captured_main_args): Add interpreter_p.
10663 * main.c (captured_main): Initialize interpreter_p from context.
10664 * gdb.c (main): Set interpreter_p argument.
10665 * Makefile.in (gdb.o): Add dependency for interps.h.
10666
10667 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10668
10669 * event-top.c (cli_command_loop): Delete declaration.
10670 (_initialize_event_loop): Delete function setting event_loop_hook.
10671 * event-top.h (cli_command_loop): Declare. Update copyright.
10672 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10673 * interps.c (current_interp_command_loop): When event_loop_p, call
10674 cli_command_loop.
10675
10676 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10677
10678 * interps.h (interp_command_loop_ftype): Change return type to
10679 void.
10680
10681 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10682
10683 * x86-64-tdep.c (x86_64_extract_return_value)
10684 (x86_64_store_return_value): Use regcache instead of regbuf.
10685 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10686 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10687
10688 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10689
10690 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10691 * aclocal.m4: Regenerate.
10692 * configure: Regenerate.
10693
10694 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10695 TCL_LD_SEARCH_FLAGS.
10696
10697 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10698
10699 * dwarf2cfi.c: Reindented.
10700
10701 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10702
10703 * interps.c (clear_interpreter_hooks): Convert function definition
10704 to ISO C.
10705
10706 2003-02-07 David Carlton <carlton@math.stanford.edu>
10707
10708 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10709
10710 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10711
10712 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10713 (struct type): ...to here.
10714 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10715 field.
10716 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10717 (replace_type): Set length on all type variants for a given type.
10718
10719 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10720
10721 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10722 <sys/stat.h>.
10723 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10724
10725 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10726
10727 * Makefile.in (symm-nat.o): Update dependencies.
10728 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10729 (lynx-nat.o, ia64-linux-nat.): Ditto.
10730 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10731 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10732 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10733
10734 * Makefile.in (inflow_h): Define.
10735 (procfs.o, inflow.o, procfs.o): Update dependencies.
10736 * inftarg.c (child_stop): Delete extern declaration of
10737 inferior_process_group. Include "inflow.h".
10738 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10739 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10740 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10741 (our_process_group, inferior_process_group): Extern declarations.
10742
10743 * procfs.c: Include "gdb_assert.h".
10744
10745 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10746 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10747 * jv-typeprint.c (java_type_print_base): Ditto.
10748 * typeprint.c (typedef_print): Eliminate STREQ.
10749 * cli/cli-script.c (define_command, define_command): Ditto.
10750 * main.c (captured_main): Ditto.
10751 * values.c (lookup_internalvar): Ditto.
10752 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10753 within `if' conditional.
10754 * linespec.c (decode_line_2): Ditto.
10755 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10756 (bfd_openw_with_cleanup): Ditto.
10757
10758 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10759
10760 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10761 legacy_extract_return_value and store_return_value to
10762 legacy_return_value.
10763
10764 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10765
10766 * win32-nat.c (get_relocated_section_addrs): New function. Find
10767 section load addresses for symbol handling in relocated DLLs.
10768 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10769
10770 2003-02-05 Fred Fish <fnf@intrinsity.com>
10771
10772 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10773 '=' and '!='.
10774 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10775 with '&' and '=='.
10776 (angel_RDI_info): Ditto.
10777 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10778 with '&' and '!='.
10779 (threads_continue_all_with_signals): Ditto.
10780
10781 2003-02-05 Jim Ingham <jingham@apple.com>
10782 Keith Seitz <keiths@redhat.com>
10783 Elena Zannoni <ezannoni@redhat.com>
10784 Andrew Cagney <ac131313@redhat.com>
10785
10786 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10787 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10788 (SUBDIR_MI_OBS): Add "mi-interp.o".
10789 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10790 (SFILES): Add "interps.c".
10791 (COMMON_OBS): Add "interps.o".
10792 (interps_h, mi_main_h): Define.
10793 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10794 (mi-main.o, main.o, event-top.o): Update dependencies.
10795 * cli/cli-interp.c: New file.
10796 * interps.h, interps.c: New files.
10797 * top.c: (gdb_init): Don't install the default interpreter, handed
10798 by captured_main.
10799 * main.c: Include "interps.h".
10800 (interpreter_p): Note that it should malloc'ed.
10801 (captured_command_loop): Call current_interp_command_loop.
10802 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10803 xfree and xstrdup when updating interpreter_p. Install the
10804 default interpreter. Add hack to stop mi1's copyright notice
10805 being encoded.
10806 * event-top.h (gdb_setup_readline): Declare.
10807 (gdb_disable_readline): Declare.
10808 * event-top.c: Include "interps.h".
10809 (display_gdb_prompt): Call current_interp_display_prompt_p.
10810 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10811 gdb_stdlog, and gdb_stdtarg.
10812 (_initialize_event_loop): Don't call gdb_setup_readline.
10813 * cli-out.c (cli_out_set_stream): New function.
10814 * cli-out.h (cli_out_set_stream): Declare.
10815
10816 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10817
10818 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10819 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10820 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10821 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10822 config/i386/i386v42mp.mt: Removed.
10823
10824 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10825
10826 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10827 GDB_OSABI_SOLARIS.
10828
10829 2003-02-05 Michael Chastain <mec@shout.net>
10830
10831 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10832 2.12.1 and earlier versions.
10833
10834 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10835
10836 Remove orphaned hosts, targets and files.
10837 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10838 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10839 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10840 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10841 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10842 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10843 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10844 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10845 * config/sparc/tm-sp64sim.h: Delete.
10846 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10847 hosts.
10848 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10849 mips*-dec-mach3* targets.
10850
10851 2003-02-04 Michael Chastain <mec@shout.net>
10852
10853 * NEWS: Fix typo: sepcifying -> specifying.
10854
10855 2003-02-04 Michael Chastain <mec@shout.net>
10856
10857 * dwarfread.c: Add documentation on the state of dwarf-1,
10858 looking towards obsoletion.
10859
10860 2003-02-03 Michael Chastain <mec@shout.net>
10861
10862 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10863 gdb/testsuite/gdb.c++/pr-1023.exp.
10864
10865 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10866
10867 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10868 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10869
10870 * utils.c (init_page_info): Delete reference to MPW in comments.
10871 * main.c (captured_main): Delete #ifdef MPW.
10872
10873 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10874
10875 * NEWS: Note that the m32r-*-elf* is obsolete.
10876 * monitor.c (monitor_expect): Obsolete reference to m32r.
10877 * configure.tgt: Mark m32r-*-elf* as obsolete.
10878 * MAINTAINERS: Mark m32k as obsolete.
10879 * m32r-rom.c: Obsolete file.
10880 * config/m32r/m32r.mt: Obsolete file.
10881 * config/m32r/tm-m32r.h: Obsolete file.
10882 * m32r-stub.c: Obsolete file.
10883 * m32r-tdep.c: Obsolete file.
10884
10885 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10886
10887 * NEWS: Mention that the z8k-zilog-none is obsolete.
10888 * MAINTAINERS: Mark z8k as obsolete.
10889 * configure.tgt: Obsolete the z8k-*-coff* target.
10890 * config/z8k/z8k.mt: Obsolete file.
10891 * config/z8k/tm-z8k.h: Obsolete file.
10892 * z8k-tdep.c: Obsolete file.
10893
10894 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10895
10896 * NEWS: Mention that the mn10200-elf is obsolete.
10897 * configure.tgt: Obsolete mn10200-*-* target.
10898 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10899 mention that the mn10200 is obsolete.
10900 * breakpoint.h: Ditto.
10901 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10902 * config/mn10200/mn10200.mt: Obsolete file.
10903 * config/mn10200/tm-mn10200.h: Obsolete file.
10904 * mn10200-tdep.c: Obsolete file.
10905
10906 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10907
10908 * MAINTAINERS: Mark h8500 as obsolete.
10909 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10910 * findvar.c (value_from_register): Ditto.
10911 * h8500-tdep.c: Mark file as obsolete.
10912 * config/h8500/h8500.mt: Ditto.
10913 * config/h8500/tm-h8500.h: Ditto.
10914 * NEWS: Mention that h8500 is obsolete.
10915
10916 2003-02-04 David Carlton <carlton@math.stanford.edu>
10917
10918 * objfiles.c (allocate_objfile): Always set name. Add comment at
10919 start of function.
10920 * jv-lang.c (get_dynamics_objfile): Add comment.
10921
10922 2003-02-04 David Carlton <carlton@math.stanford.edu>
10923
10924 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10925 * printcmd.c (build_address_symbolic): Replace uses of
10926 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10927 SYMBOL_NAME, and asm_demangle.
10928 Update copyright.
10929
10930 2003-02-04 David Carlton <carlton@math.stanford.edu>
10931
10932 * linespec.c (decode_compound): Extract code into
10933 lookup_prefix_sym.
10934 (lookup_prefix_sym): New function.
10935
10936 2003-02-04 David Carlton <carlton@math.stanford.edu>
10937
10938 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10939 FLOAT_COERCION_BADNESS.
10940 * gdbtypes.c (rank_one_type): Replace all uses of
10941 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10942
10943 2003-02-04 Jim Blandy <jimb@redhat.com>
10944
10945 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10946 section, let dwarf_macinfo_section point to it, not
10947 dwarf_loc_section.
10948
10949 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10950
10951 Pointed out by Anton Blanchard <anton@samba.org>.
10952 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10953 (ppc_linux_at_sigtramp_return_path): Use it.
10954
10955 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10956
10957 * defs.h (streq): Add prototype.
10958 * utils.c (streq): New function.
10959
10960 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10961 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10962 * mdebugread.c (new_symbol): Likewise.
10963 * stabsread.c (define_symbol): Likewise.
10964 * coffread.c (process_coff_symbol): Likewise.
10965 * dwarfread.c (new_symbol): Likewise.
10966
10967 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10968 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10969 here.
10970 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10971 SYMBOL_INIT_DEMANGLED_NAME.
10972 * objfiles.c: Include "hashtab.h".
10973 (allocate_objfile): Call htab_set_functions_ex for the
10974 demangled_names_hash.
10975 (free_objfile): Call htab_delete for the demangled_names_hash.
10976 * objfiles.h (struct htab): Add declaration.
10977 (struct objfile): Add demangled_names_hash.
10978 * symfile.c: Include "hashtab.h".
10979 (reread_symbols): Call htab_delete for the demangled_names_hash.
10980 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10981 SYMBOL_NAME in the bcache.
10982 * symtab.c: Include "hashtab.h". Update comments.
10983 (create_demangled_names_hash, symbol_set_names): New functions.
10984 (symbol_find_demangled_name): New function, broken out from
10985 symbol_init_demangled_names.
10986 (symbol_init_demangled_names): Use it.
10987 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10988 (SYMBOL_SET_NAMES): New macro.
10989 (symbol_set_names): Add prototype.
10990
10991 2003-02-03 Jim Blandy <jimb@redhat.com>
10992
10993 Use a single, consistent representation for an empty minimal
10994 symbol table in an objfile.
10995 * objfiles.c (terminate_minimal_symbol_table): New function.
10996 (allocate_objfile): Call it.
10997 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10998 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10999 non-NULL.
11000 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11001 objfile has minimal symbols, compare minimal_symbol_count to zero,
11002 instead of comparing msymbols with NULL.
11003 * objfiles.c (have_minimal_symbols): Same.
11004 * solib-sunos.c (solib_add_common_symbols): Call
11005 terminate_minimal_symbol_table.
11006 * symfile.c (reread_symbols): Same.
11007
11008 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11009
11010 * s390-tdep.c (s390_address_class_type_flags)
11011 (s390_address_class_type_flags_to_name)
11012 (s390_address_class_name_to_type_flags): New functions.
11013 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11014 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11015
11016 2003-02-03 Michael Snyder <msnyder@redhat.com>
11017
11018 * arm-tdep.c: Fix spell-o in comment.
11019
11020 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11021
11022 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11023 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11024 error messages to contain BFD filename.
11025
11026 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11027
11028 Fix PR gdb/742 gdb/743 gdb/877
11029 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11030 (do_mixed_source_and_assembly): Use
11031 make_cleanup_ui_out_tuple_begin_end and
11032 make_cleanup_ui_out_tuple_begin_end.
11033 (do_mixed_source_and_assembly): Ditto.
11034 * thread.c (do_captured_list_thread_ids): Ditto.
11035 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11036 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11037 ui_out_tuple_end): Delete prototypes.
11038 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11039 ui_out_list_end, ui_out_tuple_end): Delete.
11040
11041 From Kevin Buettner <kevinb@redhat.com>:
11042 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11043 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11044 (do_cleanup_table_end): New functions.
11045 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11046 Use cleanups to invoke_ui_out_tuple_end().
11047 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11048 * cli/cli-setshow.c (cmd_show_list): Use
11049 make_cleanup_ui_out_tuple_begin_end.
11050
11051 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11052
11053 * frame.c (frame_unwind_register): New function.
11054 (frame_unwind_unsigned_register): Use.
11055 (frame_unwind_signed_register): Use.
11056 (frame_read_register): New function.
11057 * frame.h (frame_unwind_register): Declare.
11058 (frame_read_register): Declare.
11059
11060 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11061 and frame_unwind_register instead of read_memory, write_register
11062 and deprecated_write_register_bytes.
11063
11064 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11065
11066 * frame.h: Note that namelen can be negative.
11067 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11068 NAME's length.
11069
11070 * NEWS: Mention that the d10v's `regs' command is deprecated.
11071 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11072 (d10v_print_registers_info): New function.
11073 (show_regs): Call d10v_print_registers_info.
11074 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11075
11076 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11077
11078 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11079 lost in the previous patch.
11080
11081 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11082
11083 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11084 * stack.c (print_frame_info_base): Output complete FRAME tuple
11085 for synthesized frames.
11086
11087 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11088
11089 * mips-nat.c (zerobuf): Delete.
11090 (fetch_inferior_registers): Alloc local zerobuf.
11091 (fetch_core_registers): Alloc local zerobuf.
11092 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11093 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11094 * thread-db.c (thread_db_store_registers): Ditto.
11095 * sh-tdep.c (sh_do_register): Ditto.
11096 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11097 * remote-sim.c (gdbsim_store_register): Ditto.
11098 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11099 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11100 * monitor.c (monitor_supply_register): Ditto.
11101 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11102 * mips-nat.c (fetch_inferior_registers): Ditto.
11103 * m68klinux-nat.c (fetch_register): Ditto.
11104 * lynx-nat.c (fetch_inferior_registers): Ditto.
11105 (fetch_inferior_registers): Ditto.
11106 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11107 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11108 (hpux_thread_store_registers): Ditto.
11109 * hppah-nat.c (fetch_register): Ditto.
11110 * hppab-nat.c (fetch_register): Ditto.
11111 * hppa-tdep.c (pa_register_look_aside): Ditto.
11112 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11113 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11114
11115 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11116
11117 * gdbarch.sh: Explictly specify all method levels. When a
11118 variable with an empty level, provide a non-multi-arch default.
11119 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11120 * gdbarch.h: Re-generate.
11121 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11122 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11123
11124 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11125
11126 * defs.h (host_pointer_to_address): Delete declaration.
11127 (address_to_host_pointer): Delete declaration.
11128 * utils.c (host_pointer_to_address): Delete function.
11129 (address_to_host_pointer): Delete function.
11130 * procfs.c (procfs_address_to_host_pointer): New function.
11131 * procfs.c (proc_set_watchpoint): Use.
11132 (procfs_can_use_hw_breakpoint): Update comments.
11133 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11134 (som_solib_add): Use.
11135 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11136 * hppa-tdep.c (unwind_command): Use.
11137
11138 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11139
11140 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11141 strlen d_name.
11142
11143 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11144 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11145 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11146 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11147 (define_symbol): Update.
11148 * symfile.c (generic_load): Remove references to nindy.
11149 * symtab.c: Remove references to nindy.
11150
11151 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11152
11153 * infcmd.c (print_float_info): Delete code conditional on
11154 FLOAT_INFO.
11155 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11156 * config/m68k/nm-apollo68b.h: Ditto.
11157 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11158 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11159 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11160
11161 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11162
11163 * config/i386/tm-i386os9k.h: Removed.
11164
11165 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11166 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11167 they're identical to i[3456]86-*-sysv* now.
11168 * config/i386/i386v32.mh: Removed.
11169 * config/i386/xm-i386v32.h: Removed.
11170 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11171
11172 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11173
11174 * config/i386/i386dgux.mh: Removed.
11175 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11176
11177 * configure.in: Fix typo.
11178 * configure: Regenerated.
11179
11180 2003-01-31 David Carlton <carlton@math.stanford.edu>
11181
11182 * dwarf2read.c (dwarf2_locate_sections): Set
11183 dwarf_ranges_section.
11184
11185 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11186
11187 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11188 * utils.c: Update comments documenting legitimate uses of PTR.
11189
11190 * utils.c: Re-indent.
11191
11192 * config/djgpp/fnchange.lst: Delete nindy files.
11193 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11194 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11195 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11196 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11197 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11198 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11199 * Makefile.in (init.c): Remove nindy references.
11200 (saber_gdb): Delete rule.
11201 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11202 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11203 and a68v-nat.c.
11204 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11205 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11206 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11207 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11208 nindy-share/stop.h.
11209 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11210 * saber.suppress: Delete file.
11211
11212 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11213
11214 * dbxread.c (stabs_data): New static variable.
11215 (fill_symbuf): Support an in-memory buffer for stabs data.
11216 (stabs_seek): New function.
11217 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11218 (read_ofile_symtab): Use stabs_seek.
11219 (elfstab_build_psymtabs): Take an asection* instead of
11220 an offset and size. Relocate the stabs data if necessary.
11221 Save the section* for dbx_psymtab_to_symtab.
11222 * dwarf2read.c: Add section variables for each debug section.
11223 (dwarf2_locate_sections): Fill them in.
11224 (dwarf2_read_section): Take an asection* argument.
11225 Relocate the section contents if necessary.
11226 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11227 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11228 it to dwarf2_read_section.
11229 (dwarf2_build_frame_info): Update callers.
11230 * elfread.c (elf_symfile_read): Update call to
11231 elfstab_build_psymtabs.
11232 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11233 (DBX_STAB_SECTION): New macro.
11234 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11235 * symfile.c (symfile_dummy_outputs): New function.
11236 (symfile_relocate_debug_section): New function.
11237 * symfile.h (symfile_relocate_debug_section): Add prototype.
11238
11239 2003-01-31 Richard Henderson <rth@redhat.com>
11240
11241 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11242 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11243 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11244 * alpha-tdep.c (alpha_register_name): Add "unique".
11245 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11246 (ALPHA_UNIQUE_REGNUM): New.
11247 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11248
11249 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11250
11251 * README: Remove reference to Ericsson 1800 monitor.
11252 * Makefile.in (remote-es.o): Delete rule.
11253 (ALLDEPFILES): Delete remote-es.c.
11254 * remote-es.c: Delete file.
11255 * config/m68k/es1800.mt: Delete file.
11256 * config/djgpp/fnchange.lst: Update.
11257 * configure.tgt: Delete m68*-ericsson-* target.
11258
11259 2003-01-31 Adam Fedor <fedor@gnu.org>
11260
11261 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11262 Remove duplicate/shadowing variable of same name.
11263
11264 2003-01-30 Jim Blandy <jimb@redhat.com>
11265
11266 * symfile.c (find_separate_debug_file): Assert that the objfile's
11267 directory name we compute ends with a slash, and then assume that
11268 that's so everywhere we use it.
11269
11270 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11271
11272 * valops.c (value_assign): Flush frame cache after stores to memory
11273 also.
11274
11275 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11276
11277 * Makefile.in (mon960-rom.o): Delete rule.
11278 * mon960-rom.c: Delete file.
11279
11280 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11281
11282 * d10v-tdep.c: Include "frame-unwind.h".
11283 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11284 list.
11285 (next_addr, uses_frame): Delete.
11286 (struct d10v_unwind_cache): Define.
11287 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11288 Use info instead of next_addr and uses_frame globals.
11289 (d10v_frame_init_saved_regs): Delete function.
11290 (d10v_init_extra_frame_info): Delete function.
11291 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11292 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11293 init_frame_pc or frame_saved_pc.
11294 (d10v_pop_frame): Delete function.
11295 (do_d10v_pop_frame): Delete function.
11296 (d10v_frame_chain): Delete function.
11297 (d10v_frame_chain_valid): Delete function.
11298 (d10v_frame_pc_unwind): New function.
11299 (d10v_frame_id_unwind): New function.
11300 (saved_regs_unwinder): New function.
11301 (d10v_frame_register_unwind): New function.
11302 (d10v_frame_pop): New function.
11303 (d10v_frame_unwind): New variable.
11304 (d10v_frame_p): New function.
11305 (d10v_frame_saved_pc): Delete function.
11306 * Makefile.in (d10v-tdep.o): Update dependencies.
11307
11308 2003-01-30 J. Brobecker <brobecker@gnat.com>
11309
11310 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11311 causing some regressions due to a change in the default value
11312 for this macro.
11313
11314 2003-01-29 Richard Henderson <rth@redhat.com>
11315 Elena Zannoni <ezannoni@redhat.com>
11316 Daniel Jacobowitz <drow@mvista.com>
11317
11318 Fix PR gdb/961.
11319 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11320 variables.
11321 (RANGES_SECTION): New.
11322 (dwarf_ranges_buffer): New variable.
11323 (struct comp_unit_head): Add member "die".
11324 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11325 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11326 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11327 (dwarf2_locate_sections): Likewise.
11328 (dwarf2_build_psymtabs): Read .debug_ranges.
11329 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11330 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11331 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11332 Look for DW_AT_ranges and return the bounding box.
11333
11334 2003-01-29 Brian Ford <ford@vss.fsi.com>
11335
11336 * win32-nat.c (cygwin_pid): Removed as unused.
11337 (child_attach): Try fall back to Cygwin pid.
11338
11339 2003-01-29 Jim Blandy <jimb@redhat.com>
11340
11341 * objfiles.h (struct objfile): Doc fix.
11342
11343 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11344
11345 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11346 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11347 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11348 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11349 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11350 (FRAME_SAVED_PC): Change to a function with predicate.
11351 * gdbarch.h, gdbarch.c: Re-generate.
11352
11353 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11354
11355 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11356
11357 * complaints.c (complain): Delete function.
11358 * complaints.h (struct deprecated_complaint): Delete definition.
11359 (complain): Delete declaration.
11360
11361 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11362
11363 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11364 dummy frames.
11365
11366 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11367
11368 * sentinel-frame.h, sentinel-frame.c: New files.
11369 * Makefile.in (frame.o): Update dependencies.
11370 (SFILES): Add sentinel-frame.c.
11371 (sentinel_frame_h): Define.
11372 (COMMON_OBS): Add sentinel-frame.o.
11373 (sentinel-frame.o): Specify dependencies.
11374 * frame.c: Include "sentinel-frame.h".
11375 (frame_register_unwind): Rewrite assuming that there is always a a
11376 ->next frame.
11377 (frame_register, generic_unwind_get_saved_register): Ditto.
11378 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11379 (create_sentinel_frame, unwind_to_current_frame): New functions.
11380 (get_current_frame): Rewrite using create_sentinel_frame and
11381 unwind_to_current_frame. When possible, always create a frame.
11382 (create_new_frame): Set next to the sentinel frame.
11383 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11384 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11385 ID cache when necessary.
11386 (frame_saved_regs_id_unwind): Use frame_relative_level.
11387 (deprecated_generic_get_saved_register): Use frame_relative_level,
11388 get_frame_saved_regs, get_frame_pc, get_frame_base and
11389 get_next_frame.
11390 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11391 frame_register.
11392
11393 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11394
11395 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11396
11397 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11398
11399 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11400 (maintenance_set_profile_cmd): Use error () instead of warning ().
11401
11402 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11403
11404 * configure.in: Check that -pg works if using --enable-profiling.
11405 Check for monstartup and _mcleanup regardless of --enable-profiling.
11406 * maint.c: Check for monstartup and _mcleanup before using them.
11407 * config.in: Regenerated.
11408 * configure: Regenerated.
11409
11410 2003-01-24 Nick Clifton <nickc@redhat.com>
11411
11412 * Add sh2e support:
11413
11414 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11415
11416 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11417 (sh2e_show_regs): New.
11418 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11419 * config/sh/tm-sh.h: Added sh2e to comments.
11420
11421 2003-01-23 Jim Blandy <jimb@redhat.com>
11422
11423 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11424 symbols found)" message here; we haven't checked for a separate
11425 debug info file yet, so we don't know yet.
11426 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11427 we've looked everywhere. Also, there's no need to print a special
11428 message when we're loading the separate debug info file: the one
11429 symbol_file_add prints is fine.
11430
11431 2003-01-23 Alexander Larsson <alexl@redhat.com>
11432 Jim Blandy <jimb@redhat.com>
11433
11434 Add support for executables whose debug info has been separated
11435 out into a separate file, leaving only a link behind.
11436 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11437 and separate_debug_objfile_backlink.
11438 (put_objfile_before): New declaration.
11439 * symfile.c: #include "filenames.h".
11440 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11441 debug info in a separate file, read that, too. Save the addrs
11442 argument, so we can use it again to read the separated debug info;
11443 syms_from_objfile modifies the table we pass it.
11444 (reread_symbols): After re-reading an objfile, call
11445 reread_separate_symbols to refresh its separate debug info
11446 objfile, if it has one.
11447 (reread_separate_symbols, find_separate_debug_file,
11448 get_debug_link_info, separate_debug_file_exists): New functions.
11449 (debug_file_directory): New global var.
11450 (_initialize_symfile): Initialize debug_file_directory, and
11451 provide the new `set debug-file-directory' command to let the user
11452 change it.
11453 * objfiles.c (free_objfile): If this objfile has its debug info in
11454 a separate objfile, free that one too. If this is itself a
11455 separate debug info objfile, clear our parent's backlink.
11456 (put_objfile_before): New function.
11457 * utils.c (gnu_debuglink_crc32): New function.
11458 * defs.h (gnu_debuglink_crc32): New declaration.
11459 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11460 * configure.in: Handle --with-separate-debug-dir config option.
11461 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11462 * acconfig.h (DEBUGDIR): New macro.
11463 * configure, aclocal.m4, config.in: Regenerated.
11464
11465 2003-01-22 Jim Blandy <jimb@redhat.com>
11466
11467 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11468 like the old symbol_file_add, but taking new arguments: you can
11469 now pass in either a `struct section_addr_info' list to say where
11470 each section is loaded, or a `struct section_offsets' table. Pass
11471 these new arguments through to syms_from_objfile as appropriate.
11472 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11473 with the appropriate quiescent values for the new arguments.
11474
11475 * symfile.c: #include "gdb_assert.h".
11476 (syms_from_objfile): Add the ability to pass in a section offset
11477 table directly, as an alternative to the section_addr_info table.
11478 Document arguments better.
11479 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11480 * symfile.h (syms_from_objfile): Update declaration.
11481 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11482 syms_from_objfile.
11483 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11484
11485 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11486
11487 Original patch by Tom Tromey <tromey@cygnus.com> and
11488 Jason Molenda <jmolenda@apple.com>.
11489 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11490 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11491 * NEWS: Mention profiling.
11492 * configure.in (--enable-gdbtk): Fix typo.
11493 (--enable-profiling): New. Set PROFILE_CFLAGS.
11494 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11495 Fill in function.
11496 (profiling_state): New variable.
11497 (mcleanup_wrapper): New function.
11498 (_initialize_maint): Remove NOTYET, fix call to
11499 add_setshow_boolean_cmd for "maint set profile".
11500 * configure: Regenerated.
11501
11502 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11503
11504 * Makefile.in (install-gdbtk): Install PNG images too.
11505
11506 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11507
11508 * exec.c (text_start): Delete global variable.
11509 (exec_file_attach): Make text_start local to the function.
11510 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11511 * valops.c (hand_function_call): Delete code that handles
11512 BEFORE_TEXT_END and AFTER_TEXT_END.
11513 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11514 of CALL_DUMMY_LOCATION.
11515 * gdbarch.c: Regenerate.
11516 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11517 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11518 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11519 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11520 (text_end): Delete extern declaration.
11521
11522 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11523
11524 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11525 * blockframe.c (backtrace_below_main): Move to "frame.c".
11526 (frame_chain_valid): Delete check for backtrace_below_main.
11527 (_initialize_blockframe): Delete initialization, move ``set
11528 backtrace-below-main'' command to "frame.c".
11529 (do_flush_frames_sfunc): Delete function.
11530 * frame.c: Include "command.h" and "gdbcmd.h".
11531 (frame_type_from_pc): New function.
11532 (create_new_frame): Use frame_type_from_pc.
11533 (legacy_get_prev_frame): New function.
11534 (get_prev_frame): Rewrite. When an old style frame, call
11535 legacy_get_prev_frame. Otherwize, unwind the PC first.
11536 (_initialize_frame): Add ``set backtrace-below-main'' command.
11537 * Makefile.in (frame.o): Update dependencies.
11538
11539 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11540
11541 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11542 DEPRECATED_REGISTERS_INFO.
11543
11544 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11545
11546 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11547 Maintainers'. Update `Various Maintainers'.
11548
11549 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11550
11551 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11552 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11553 Suppress actual parameters when `-'.
11554 * gdbarch.h, gdbarch.c: Regenerate.
11555
11556 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11557
11558 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11559 code handling dummy frames.
11560
11561 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11562
11563 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11564 (struct frame_unwind): Add field pop.
11565 * frame.h (frame_pop): Declare.
11566 * frame.c (frame_saved_regs_pop): New function.
11567 (trad_frame_unwinder): Add frame_saved_regs_pop.
11568 (frame_pop): New function.
11569 * dummy-frame.c (dummy_frame_pop): New function.
11570 (discard_innermost_dummy): New function.
11571 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11572 (dummy_frame_unwind): Add dummy_frame_pop.
11573 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11574 * valops.c (hand_function_call): Ditto.
11575 * stack.c (return_command): Ditto.
11576
11577 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11578
11579 * cris-tdep.c: Fix function declaration indentation.
11580 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11581 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11582 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11583 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11584 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11585 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11586
11587 2003-01-18 Michael Chastain <mec@shout.net>
11588
11589 * README (Unpacking and Installation -- quick overview):
11590 Warn against ".../gdb-5.3/gdb/configure".
11591
11592 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11593
11594 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11595 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11596 (struct frame_unwind): Declare opaque.
11597 (dummy_frame_p): Declare function.
11598 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11599 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11600 * dummy-frame.c: Include "frame-unwind.h".
11601 (dummy_frame_p): New function.
11602 (dummy_frame_unwind): New variable.
11603 * frame.c: Include "frame-unwind.h".
11604 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11605 to use the new unwind field.
11606 (set_unwind_by_pc): Delete function.
11607 (create_new_frame, get_prev_frame): Set unwind field using
11608 frame_unwind_find_by_pc.
11609 (trad_frame_unwind, trad_frame_unwinder): New variables.
11610 * frame.h (trad_frame_unwind): Declare variable.
11611 (frame_id_unwind_ftype): Delete declaration.
11612 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11613 (struct frame_unwind): Declare opaque.
11614 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11615 register_unwind with a single unwind pointer.
11616 * frame-unwind.h, frame-unwind.c: New files.
11617 * Makefile.in (SFILES): Add frame-unwind.c.
11618 (frame_unwind_h): Define.
11619 (COMMON_OBS): Add frame-unwind.o.
11620 (frame-unwind.o): Specify dependencies.
11621 (frame.o, dummy-frame.o): Update dependencies.
11622
11623 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11624
11625 * ada-valprint.c: Eliminate PTR.
11626 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11627 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11628 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11629 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11630 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11631 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11632 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11633
11634 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11635
11636 * main.c (captured_main): Don't use PTR.
11637 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11638 * gdbtypes.c (lookup_primitive_typename): Ditto.
11639 (lookup_struct_elt_type): Ditto.
11640 * f-valprint.c (info_common_command): Ditto.
11641 (list_all_visible_commons): Ditto.
11642 * jv-typeprint.c (java_type_print_base): Ditto.
11643
11644 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11645 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11646 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11647 i386-interix-nat.c and i386-interix-tdep.c. Rename
11648 m68klinux-nat.c and m68klinux-tdep.c. Rename
11649 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11650 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11651 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11652 * main.c (captured_main): Use xfree, not free.
11653
11654 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11655
11656 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11657 ID back using a parameter.
11658 * frame.c (frame_id_unwind): Update call.
11659 (frame_saved_regs_id_unwind): Update.
11660 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11661 * dummy-frame.h (struct frame_id): Add opaque declaration.
11662 (dummy_frame_id_unwind): Update declaration.
11663
11664 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11665
11666 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11667
11668 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11669
11670 * MAINTAINERS (Stephen P. Smith): Updated email address.
11671
11672 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11673
11674 Fix PR gdb/898
11675 * breakpoint.c (until_break_command): Add new argument. Use it to
11676 decide whether to stop only at the current frame or not.
11677 * breakpoint.h (until_break_command): Update prototype.
11678 * infcmd.c (until_command): Add new argument to until_break_command
11679 call.
11680 (advance_command): New function.
11681 (_initialize_infcmd): Update help string for 'until' command.
11682 Add new 'advance' command.
11683
11684 2003-01-14 David Carlton <carlton@math.stanford.edu>
11685
11686 * linespec.c (decode_line_1): Normalize comments.
11687 (set_flags): Ditto.
11688 (locate_first_half): Ditto.
11689 (decode_compound): Ditto.
11690 (symtab_from_filename): Ditto.
11691 (decode_all_digits): Ditto.
11692 (decode_dollar): Ditto.
11693 (find_methods): Ditto.
11694 (find_toplevel_char): Ditto.
11695
11696 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11697
11698 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11699 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11700 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11701 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11702 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11703 * language.c, language.h, m32r-tdep.c: Update copyright.
11704 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11705 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11706 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11707 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11708 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11709 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11710
11711 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11712
11713 * stabsread.h (process_later, resolve_cfront_continuation):
11714 Obsolete.
11715 Update copyright years.
11716 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11717 Update copyright year.
11718 * dbxread.c(struct cont_elem): Obsolete.
11719 (process_later, process_now): Obsolete functions.
11720 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11721 Update copyright year.
11722 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11723 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11724 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11725 (parse_partial_symbols): Obsolete cfront support.
11726 * stabsread.c
11727 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11728 macros.
11729 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11730 read_cfront_baseclasses, read_cfront_member_functions,
11731 resolve_cfront_continuation,read_cfront_static_fields,
11732 copy_cfront_struct_fields): Obsolete functions.
11733 (define_symbol, read_one_struct_field): Obsolete cfront support.
11734 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11735 Update Copyright year.
11736
11737 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11738
11739 * stack.c (print_frame_info, print_stack_frame_base_stub,
11740 print_stack_frame_base, show_and_print_stack_frame_stub,
11741 show_and_print_stack_frame, print_only_stack_frame_stub,
11742 print_only_stack_frame): Delete functions.
11743 (print_stack_frame_stub): Call print_frame_info instead of
11744 print_frame_info_base.
11745 (print_frame_info_base): Rename to print_frame_info.
11746 (backtrace_command_1): Call print_frame_info, instead of
11747 print_frame_info_base.
11748 (current_frame_command): Call print_stack_frame, instead of
11749 print_only_stack_frame.
11750 (frame_command): Call print_stack_frame, instead of
11751 show_and_print_stack_frame.
11752 (up_command): Ditto.
11753 (down_command): Ditto.
11754 * frame.h (print_only_stack_frame): Delete prototype.
11755 * infrun.c (normal_stop): Call print_stack_frame, instead of
11756 show_and_print_stack_frame.
11757 * thread.c (info_threads_command): Call print_stack_frame, instead
11758 of print_only_stack_frame.
11759
11760 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11761
11762 * README (Graphical interface to GDB): Update URL. Point at
11763 gdb/links/.
11764
11765 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11766 version match.
11767
11768 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11769
11770 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11771 lines.
11772
11773 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11774
11775 * thread-db.c (attach_thread): Prototype.
11776 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11777 thread information (ti), and valid flags (th_valid, ti_valid).
11778 (attach_thread): Move target_pid_to_str call to after the thread
11779 is added to GDB's list. Initialize the cache.
11780 (thread_get_info_callback, thread_db_map_id2thr)
11781 (thread_db_get_info): New functions.
11782 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11783 (thread_db_store_registers, thread_db_thread_alive)
11784 (thread_db_get_thread_local_address): Use them.
11785 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11786 of calling error() for threads in unknown state.
11787
11788 (clear_lwpid_callback): New function.
11789 (thread_db_resume): Use it to clear the cache.
11790
11791 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11792
11793 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11794 (resume_callback): Remove dead code.
11795
11796 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11797
11798 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11799 predicate.
11800 * gdbarch.h, gdbarch.c: Regenerate.
11801 * stack.c (frame_info): Only initialize the saved registers when
11802 FRAME_INIT_SAVED_REGS_P.
11803 * frame.c (frame_saved_regs_register_unwind): Assert
11804 FRAME_INIT_SAVED_REGS_P.
11805 (deprecated_generic_get_saved_register): Ditto.
11806
11807 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11808
11809 * source.c (openp): Squelch warning about "filename".
11810
11811 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11812
11813 * source.c (openp): If the file does not exist don't necessarily
11814 search the path.
11815
11816 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11817
11818 Fix PR gdb/872.
11819 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11820 (integer_types_same_name_p): New function.
11821 (rank_one_type): Use it.
11822 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11823
11824 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11825
11826 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11827 variables.
11828 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11829 * configure.in: Add --with-sysroot.
11830 * configure: Regenerated.
11831 * main.c (gdb_sysroot): New variable.
11832 (captured_main): Initialize gdb_sysroot.
11833 * defs.h (gdb_sysroot): New extern declaration.
11834 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11835
11836 2003-01-12 Michael Chastain <mec@shout.net>
11837
11838 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11839
11840 2003-01-12 Michael Chastain <mec@shout.net>
11841
11842 * top.c (print_gdb_version): Bump copyright year to 2003.
11843
11844 2003-01-12 David Carlton <carlton@bactrian.org>
11845
11846 * linespec.c (symtab_from_filename): Rename variable 's' to
11847 'file_symtab'.
11848
11849 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11850
11851 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11852 dummy frame.
11853 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11854
11855 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11856
11857 * d10v-tdep.c: Include "gdb_assert.h".
11858 (d10v_store_return_value): Rewrite to match current interface.
11859 (d10v_extract_struct_value_address): Ditto.
11860 (d10v_extract_return_value): Ditto.
11861 (d10v_gdbarch_init): Set store_restore_value,
11862 extract_struct_value_address and extract_return_value.
11863
11864 2003-01-12 J. Brobecker <brobecker@gnat.com>
11865
11866 * hpread.c (set_namestring): New procedure replacing the
11867 SET_NAMESTRING macro.
11868 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11869 by calls to set_namestring.
11870
11871 2003-01-11 J. Brobecker <brobecker@gnat.com>
11872
11873 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11874 a compilation warning.
11875 (hpread_process_one_debug_symbol): Likewise.
11876
11877 2003-01-10 David Carlton <carlton@math.stanford.edu>
11878
11879 * linespec.c (decode_line_1): Rename variable 's' to
11880 'file_symtab'.
11881 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11882 (decode_dollar): Ditto.
11883 (decode_variable): Ditto.
11884 (symbol_found): Ditto.
11885
11886 2003-01-09 Michael Chastain <mec@shout.net>
11887
11888 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11889
11890 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11891
11892 * win32-nat.c (set_process_privilege): New function.
11893 (child_attach): Call set_process_privilege() to enable the
11894 SE_DEBUG_NAME user privilege if available in process token.
11895
11896 2003-01-10 J. Brobecker <brobecker@gnat.com>
11897
11898 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11899 compilation error in the previous revision.
11900
11901 2003-01-09 David Carlton <carlton@math.stanford.edu>
11902
11903 * linespec.c: Update copyright.
11904
11905 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11906
11907 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11908 than inferior_ptid.
11909 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11910
11911 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11912
11913 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11914 Update comments.
11915 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11916 (frame_saved_regs_zalloc): Update.
11917 (frame_saved_regs_register_unwind): Update.
11918 (create_new_frame): Update.
11919 (get_prev_frame): Update.
11920 (frame_extra_info_zalloc): Update.
11921 (deprecated_get_frame_saved_regs): Update.
11922 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11923 * cris-tdep.c: Update comment.
11924
11925 * somsolib.h: Fix function indentation.
11926 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11927 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11928 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11929 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11930 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11931
11932 * infrun.c (follow_fork): Use ISO C definition.
11933 * expprint.c (print_subexp): Use xfree instead of free.
11934 * charset.c: Include "gdb_string.h" instead of <string.h>.
11935 (register_iconv_charsets): Use ISO C definition.
11936 (host_charset, target_charset): Ditto.
11937 * Makefile.in (charset.o): Update dependencies.
11938 (mi-cmd-env.o): Update dependencies.
11939
11940 2003-01-08 Andrew Cagney <cagney@redhat.com>
11941
11942 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11943 get_frame_base.
11944
11945 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11946
11947 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11948 build directories. Save edited gdb output in Mbuild.log. If a
11949 build fails, remove any final GDB executable.
11950
11951 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11952
11953 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11954 replacing hex constants with function names and stripping leading
11955 file name directory prefixes.
11956
11957 2003-01-08 Andrew Cagney <cagney@redhat.com>
11958
11959 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11960 get_frame_base.
11961
11962 2003-01-08 David Carlton <carlton@math.stanford.edu>
11963
11964 * linespec.c (decode_line_1): Move code into decode_variable.
11965 (decode_variable): New function.
11966
11967 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11968
11969 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11970
11971 2003-01-08 Andrew Cagney <cagney@redhat.com>
11972
11973 * cris-tdep.c (cris_frame_init_saved_regs): Use
11974 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11975 saved_regs buffer.
11976 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11977 (sh64_nofp_frame_init_saved_regs): Ditto.
11978 (sh_fp_frame_init_saved_regs): Ditto.
11979 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11980 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11981 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11982 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11983
11984 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11985
11986 * minsyms.c (lookup_minimal_symbol): Update comment.
11987 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11988 (lookup_minimal_symbol_solib_trampoline): Likewise.
11989
11990 2003-01-08 Andrew Cagney <cagney@redhat.com>
11991
11992 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11993 frame_relative_level.
11994
11995 * alpha-tdep.c: Use get_frame_extra_info.
11996 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11997 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11998 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11999 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12000
12001 * alpha-tdep.c: Use get_next_frame.
12002 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12003 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12004 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12005 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12006 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12007 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12008 * xstormy16-tdep.c: Ditto.
12009
12010 2003-01-07 Andrew Cagney <cagney@redhat.com>
12011
12012 * alpha-tdep.c: Use get_frame_base.
12013 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12014 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12015 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12016 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12017 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12018 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12019 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12020 * config/sparc/tm-sparc.h: Ditto.
12021
12022 2003-01-07 Andrew Cagney <cagney@redhat.com>
12023
12024 * frame.c (deprecated_get_frame_context): New function.
12025 (deprecated_set_frame_context): New function.
12026 * frame.h (deprecated_get_frame_context): Declare.
12027 (deprecated_set_frame_context): Declare.
12028 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12029 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12030
12031 2003-01-07 Andrew Cagney <cagney@redhat.com>
12032
12033 * frame.c (deprecated_set_frame_next_hack): New function.
12034 (deprecated_set_frame_prev_hack): New function.
12035 * frame.h (deprecated_set_frame_next_hack): Declare.
12036 (deprecated_set_frame_prev_hack): Declare.
12037 * mcore-tdep.c (analyze_dummy_frame): Use
12038 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12039 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12040
12041 2003-01-07 David Carlton <carlton@math.stanford.edu>
12042
12043 * linespec.c (decode_line_1): Move code into decode_dollar.
12044 (decode_dollar): New function.
12045
12046 2003-01-07 Andrew Cagney <cagney@redhat.com>
12047
12048 * arm-tdep.c (arm_init_extra_frame_info): Use
12049 deprecated_update_frame_base_hack.
12050 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12051 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12052 (fix_frame_pointer): Ditto.
12053 (mn10300_analyze_prologue): Ditto.
12054
12055 2003-01-07 Andrew Cagney <cagney@redhat.com>
12056
12057 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12058 extra_info using frame_extra_info_zalloc.
12059 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12060 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12061 (sh64_init_extra_frame_info): Ditto.
12062 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12063 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12064 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12065 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12066 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12067 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12068 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12069 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12070 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12071 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12072 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12073 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12074
12075 * mn10300-tdep.c (analyze_dummy_frame): Use
12076 deprecated_set_frame_extra_info_hack.
12077 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12078
12079 2003-01-07 J. Brobecker <brobecker@gnat.com>
12080
12081 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12082 class is not scText. These do not define "real" procedures.
12083 (parse_partial_symbols): Likewise.
12084
12085 2003-01-06 Michael Snyder <msnyder@redhat.com>
12086
12087 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12088
12089 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12090
12091 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12092 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12093 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12094 deprecated_frame_xmalloc_with_cleanup.
12095 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12096 deprecated_frame_xmalloc.
12097 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12098 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12099
12100 2003-01-06 Andrew Cagney <cagney@redhat.com>
12101
12102 * x86-64-linux-tdep.c: Include "osabi.h".
12103 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12104
12105 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12106
12107 2003-01-06 Andrew Cagney <cagney@redhat.com>
12108
12109 * MAINTAINERS (Target Instruction Set Architectures): Update
12110 arm-elf. Can be built with -Werror, has been multiarched.
12111
12112 * value.h (unpack_long): Make buffer parameter constant.
12113 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12114 * scm-lang.h (scm_parse): Ditto.
12115 * defs.h (extract_typed_address, extract_address): Ditto.
12116 (extract_long_unsigned_integer): Ditto.
12117 * inferior.h (unsigned_pointer_to_address): Ditto.
12118 (signed_pointer_to_address): Ditto.
12119 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12120 * gdbarch.h, gdbarch.c: Regenerate.
12121 * findvar.c (extract_long_unsigned_integer): Update.
12122 (extract_address): Update.
12123 (extract_typed_address): Update.
12124 (unsigned_pointer_to_address): Update.
12125 * values.c (unpack_long): Update.
12126 (unpack_double): Update.
12127 (unpack_pointer): Update.
12128 (unpack_field_as_long): Update.
12129 * d10v-tdep.c (d10v_pointer_to_address): Update.
12130 * avr-tdep.c (avr_pointer_to_address): Update.
12131 * scm-lang.c (scm_unpack): Update.
12132 * findvar.c (signed_pointer_to_address): Update.
12133
12134 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12135
12136 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12137 since it is in i386-tdep.c.
12138
12139 2003-01-06 J. Brobecker <brobecker@gnat.com>
12140
12141 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12142 failure introduced in the previous change.
12143
12144 2003-01-05 Michael Chastain <mec@shout.net>
12145
12146 * README: Remove references to deleted remote-*.c files:
12147 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12148 remote-nrom.c, remote-os9k.c, remote-udi.c.
12149
12150 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12151
12152 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12153 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12154 i386_get_longjmp_target.
12155
12156 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12157
12158 * arm-tdep.c (prologue_cache): Change to a pointer.
12159 (_initialize_arm_tdep): Allocate prologue_cache.
12160 (check_prologue_cache): Update.
12161 (save_prologue_cache): Update.
12162 (arm_gdbarch_init): Update.
12163
12164 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12165
12166 * stabsread.c (update_method_name_from_physname): Call complaint()
12167 instead of error.
12168
12169 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12170
12171 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12172 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12173 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12174
12175 * blockframe.c: Include "gdbcmd.h" and "command.h".
12176 (backtrace_below_main): New variable.
12177 (file_frame_chain_valid, func_frame_chain_valid)
12178 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12179 (generic_func_frame_chain_valid): Remove functions.
12180 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12181 (_initialize_blockframe): New function.
12182 * Makefile.in (blockframe.o): Update dependencies.
12183 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12184 comment. Call frame_chain_valid ().
12185 * frame.h: Remove old prototypes. Add prototype for
12186 frame_chain_valid and update comments to match.
12187 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12188 Remove old comment.
12189 * gdbarch.h: Regenerated.
12190 * gdbarch.c: Regenerated.
12191
12192 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12193 set_gdbarch_frame_chain_valid.
12194 * avr-tdep.c (avr_gdbarch_init): Likewise.
12195 * cris-tdep.c (cris_gdbarch_init): Likewise.
12196 * frv-tdep.c (frv_gdbarch_init): Likewise.
12197 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12198 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12199 (i386_nw_init_abi): Likewise.
12200 (i386_gdbarch_init): Likewise.
12201 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12203 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12204 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12205 * mips-tdep.c (mips_gdbarch_init): Likewise.
12206 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12207 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12208 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12209 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12210 * s390-tdep.c (s390_gdbarch_init): Likewise.
12211 * sh-tdep.c (sh_gdbarch_init): Likewise.
12212 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12213 * v850-tdep.c (v850_gdbarch_init): Likewise.
12214 * vax-tdep.c (vax_gdbarch_init): Likewise.
12215 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12216
12217 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12218 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12219 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12220 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12221 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12222 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12223 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12224 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12225
12226 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12227
12228 * Makefile.in (acconfig_h): Remove incorrect macro.
12229 (config_h): Define.
12230 (osabi.o): Update dependencies.
12231 * configure.tgt: Set gdb_osabi based on target triplet.
12232 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12233 * configure: Regenerated.
12234 * config.in: Regenerated.
12235 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12236 (GDB_OSABI_DEFAULT): Define if not already defined.
12237 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12238 (set_osabi_string): New variables.
12239 (gdbarch_register_osabi): Add new OS ABI to
12240 gdb_osabi_available_names.
12241 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12242 (set_osabi, show_osabi): New functions.
12243 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12244
12245 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12246
12247 * arch-utils.c (gdbarch_info_init): Set osabi to
12248 GDB_OSABI_UNINITIALIZED.
12249 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12250 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12251 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12252 * gdbarch.c: Regenerated.
12253 * gdbarch.h: Regenerated.
12254 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12255 there's no BFD.
12256 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12257 * osabi.h (enum gdb_osabi): Move to defs.h.
12258 (gdbarch_init_osabi): Update prototype.
12259 * defs.h (enum gdb_osabi): Moved here.
12260 * Makefile.in: Update dependencies.
12261
12262 * alpha-tdep.h: Don't include "osabi.h".
12263 (struct gdbarch_tdep): Remove osabi member.
12264 * alpha-tdep.c: Include "osabi.h".
12265 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12266 iterate over arches. Update call to gdbarch_init_osabi.
12267 (alpha_dump_tdep): Don't dump osabi.
12268 * alpha-linux-tdep.c: Include "osabi.h".
12269 * alpha-osf1-tdep.c: Include "osabi.h".
12270 * alphafbsd-tdep.c: Include "osabi.h".
12271 * alphanbsd-tdep.c: Include "osabi.h".
12272
12273 * arm-tdep.h: Don't include "osabi.h".
12274 (struct gdbarch_tdep): Remove osabi member.
12275 * arm-tdep.c: Include "osabi.h".
12276 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12277 iterate over arches. Update call to gdbarch_init_osabi.
12278 (arm_dump_tdep): Don't dump osabi.
12279 * arm-linux-tdep.c: Include "osabi.h".
12280 * armnbsd-tdep.c: Include "osabi.h".
12281
12282 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12283 Update call to gdbarch_init_osabi.
12284
12285 * i386-tdep.h: Don't include "osabi.h".
12286 (struct gdbarch_tdep): Remove osabi member.
12287 * i386-tdep.c: Include "osabi.h".
12288 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12289 iterate over arches. Update call to gdbarch_init_osabi.
12290 (i386_dump_tdep): Don't dump osabi.
12291 * i386-linux-tdep.c: Include "osabi.h".
12292 * i386-sol2-tdep.c: Include "osabi.h".
12293 * i386bsd-tdep.c: Include "osabi.h".
12294 * i386gnu-tdep.c: Include "osabi.h".
12295 * i386ly-tdep.c: Include "osabi.h".
12296 * i386nbsd-tdep.c: Include "osabi.h".
12297 * i386obsd-tdep.c: Include "osabi.h".
12298
12299 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12300 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12301 check osabi when iterating over arches. Update call to
12302 gdbarch_init_osabi.
12303 (mips_dump_tdep): Don't dump osabi.
12304
12305 * ns32k-tdep.h: Don't include "osabi.h".
12306 (struct gdbarch_tdep): Remove.
12307 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12308 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12309 allocate tdep. Update call to gdbarch_init_osabi.
12310 (ns32k_dump_tdep): Remove.
12311 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12312 * ns32knbsd-tdep.c: Include "osabi.h".
12313
12314 * ppc-tdep.h: Don't include "osabi.h".
12315 (struct gdbarch_tdep): Remove osabi member.
12316 * rs6000-tdep.c: Include "osabi.h".
12317 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12318 osabi when iterating over arches. Update call to
12319 gdbarch_init_osabi.
12320 (rs6000_dump_tdep): Don't dump osabi.
12321 * ppc-linux-tdep.c: Include "osabi.h".
12322 * ppcnbsd-tdep.c: Include "osabi.h".
12323
12324 * sh-tdep.h: Don't include "osabi.h".
12325 (struct gdbarch_tdep): Remove osabi member.
12326 * sh-tdep.c: Include "osabi.h".
12327 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12328 iterate over arches. Update call to gdbarch_init_osabi.
12329 (sh_dump_tdep): Don't dump osabi.
12330 * shnbsd-tdep.c: Include "osabi.h".
12331
12332 * sparc-tdep.c: Include "osabi.h".
12333 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12334 iterate over arches. Update call to gdbarch_init_osabi.
12335 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12336 tdep structure.
12337
12338 * vax-tdep.h: Don't include "osabi.h".
12339 (struct gdbarch_tdep): Remove.
12340 * vax-tdep.c: Include "osabi.h".
12341 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12342 iterate over arches. Don't allocate tdep. Update call
12343 to gdbarch_init_osabi.
12344 (vax_dump_tdep): Remove.
12345 (_initialize_vax_tdep): Update call to gdbarch_register.
12346
12347 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12348
12349 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12350 entirely.
12351 (breakpoint_re_set_one): Don't fetch the value for a disabled
12352 watchpoint.
12353
12354 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12355
12356 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12357 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12358 (COERCE_FLOAT_TO_DOUBLE): Remove.
12359 * gdbarch.c: Regenerate.
12360 * gdbarch.h: Regenerate.
12361 * Makefile.in: Remove value_h from gdbarch_h.
12362 * valops.c (coerce_float_to_double): New variable.
12363 (default_coerce_float_to_double): Remove.
12364 (standard_coerce_float_to_double): Remove.
12365 (value_arg_coerce): Use coerce_float_to_double.
12366 (_initialize_valops): Add "set coerce-float-to-double".
12367 * value.h (default_coerce_float_to_double): Remove prototype.
12368 (standard_coerce_float_to_double): Remove prototype.
12369
12370 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12371 prototyped.
12372 * mdebugread.c (parse_symbol): Likewise.
12373 * stabsread.c (define_symbol): Mark all functions as prototyped.
12374
12375 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12376 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12377 set_gdbarch_coerce_float_to_double.
12378 * arm-tdep.c (arm_gdbarch_init): Likewise.
12379 * frv-tdep.c (frv_gdbarch_init): Likewise.
12380 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12381 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12382 * mips-tdep.c (mips_gdbarch_init): Likewise.
12383 (mips_coerce_float_to_double): Remove.
12384 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12385 (rs6000_coerce_float_to_double): Remove.
12386 * s390-tdep.c (s390_gdbarch_init): Likewise.
12387 * sh-tdep.c (sh_gdbarch_init): Likewise.
12388 (sh_coerce_float_to_double): Remove.
12389 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12390 (sparc_coerce_float_to_double): Remove.
12391 * v850-tdep.c (v850_gdbarch_init): Likewise.
12392 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12393 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12394 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12395 (hppa_coerce_float_to_double): Remove prototype.
12396 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12397
12398 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12399
12400 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12401
12402 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12403
12404 Suggested by Stewart Brown <sb24@avaya.com>:
12405 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12406 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12407 (c_type_print_varspec_suffix): Likewise.
12408
12409 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12410
12411 * configure.in: Don't set and AC_SUBST SUBDIRS.
12412 * configure: Regenerated.
12413
12414 * configure.in: Remove code dealing with shared libraries.
12415 * Makefile.in: Remove HLDFLAGS and HLDENV.
12416 * configure: Regenerated.
12417
12418 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12419
12420 * frame.c (deprecated_frame_xmalloc): New function.
12421 (deprecated_set_frame_saved_regs_hack): New function.
12422 (deprecated_set_frame_extra_info_hack): New function.
12423 * frame.h (deprecated_frame_xmalloc): Declare.
12424 (deprecated_set_frame_saved_regs_hack): Declare.
12425 (deprecated_set_frame_extra_info_hack): Declare.
12426
12427 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12428
12429 * configure.in: Move code that provides the --enable-gdbtk option
12430 right after the code that handles the --enable-tui option, and
12431 polish it somewhat.
12432 * configure: Regenerated.
12433
12434 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12435 AC_CHECK_FUNCS and remove the old check for pread64.
12436 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12437 * acconfig.h (_GNU_SOURCE): Add.
12438 (HAVE_PREAD64): Remove.
12439 * configure, aclocal.m4, config.in: Regenerated.
12440
12441 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12442
12443 * alpha-tdep.c: Use get_frame_saved_regs.
12444 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12445 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12446 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12447 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12448 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12449
12450 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12451
12452 * configure.in: Remove all use of the SUBDIRS variable; add
12453 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12454 code providing the --enable-multi-ice option, and move it right in
12455 front of the code that checks whether gdbserver is supported.
12456 Polish that too.
12457 * configure: Regenerated.
12458 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12459 @SUBDIRS@.
12460
12461 2003-01-03 Andrew Cagney <cagney@redhat.com>
12462
12463 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12464 * avr-tdep.c, cris-tdep.c: Ditto.
12465 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12466 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12467
12468 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12469
12470 * configure.in: Remove --enable-netrom option.
12471 * configure: Regenerated.
12472
12473 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12474
12475 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12476 declaration for `struct re_pattern_buffer' instead.
12477 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12478
12479 2003-01-03 J. Brobecker <brobecker@gnat.com>
12480
12481 * mdebugread.c (parse_symbol): Count until the stEnd matching
12482 the structure name.
12483
12484 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12485
12486 * configure.in: Remove --with-cpu option.
12487 subscripts. Remove evil changequotes here.
12488 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12489 * config.in, configure: Regenerated.
12490
12491 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12492 * configure.in: Cleanup section that sources GDB and BFD configure
12493 subscripts. Remove evil changequotes here.
12494 * config.in, configure: Regenerated.
12495
12496 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12497
12498 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12499 frame accessor methods.
12500 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12501 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12502 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12503 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12504 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12505 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12506 * z8k-tdep.c: Ditto.
12507
12508 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12509
12510 * configure.in: Remove UI_OUT configuration code.
12511 * ada-lang.c: Update assuming UI_OUT is always true.
12512 * Makefile.in (UIOUT_CFLAGS): Remove.
12513 * configure: Regenerated.
12514 * TODO: Remove blurb about elimination of -DUI_OUT.
12515
12516 * configure.in: Move code that provides the --enable-gdbcli,
12517 --enable-gdbmi options right before the code that handles the
12518 --enable-tui option. Polish a bit.
12519 * configure: Regenerated.
12520
12521 * configure.in: Rewrite check for GNU regex and the
12522 --without-included regex option, and move it into the "Checks for
12523 library functions" section. This makes us use the system regex
12524 again by default on systems with version 2 of the GNU C library.
12525 This was apparently broken.
12526 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12527 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12528 * config.in, configure: Regenerated.
12529
12530 * configure.in: Move code that provides the --enable-tui option
12531 before the "Checks for libraries" section. Polish the code
12532 somewhat and set need_curses to yes if we build the TUI. Rewrite
12533 code that looks for a library providing termcap functionality to
12534 match more closely what's done in the Readline library, and move
12535 it into to the "Checks for libraries" section.
12536 * configure: Regenerated.
12537 * Makefile.in (TERMCAP): Remove variable.
12538 * config/i386/go32.mh (TERMCAP): Remove variable.
12539
12540 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12541
12542 * MAINTAINERS: Mention gdb_mbuild.sh.
12543 * gdb_mbuild.sh: Rewrite.
12544
12545 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12546
12547 * configure.in: Fix typo in last change.
12548 * config.in, configure: Regenerated.
12549
12550 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12551
12552 * valarith.c (value_binop): Delete obsolete code and comments.
12553 * configure.host: Ditto.
12554 * buildsym.h (make_blockvector): Ditto.
12555 * buildsym.c (make_blockvector): Ditto.
12556 * defs.h (enum language): Ditto.
12557 (chill_demangle): Ditto.
12558 * elfread.c (elf_symtab_read): Ditto.
12559 * dwarfread.c (CHILL_PRODUCER): Ditto.
12560 (set_cu_language): Ditto.
12561 (handle_producer): Ditto.
12562 * expprint.c (print_subexp): Ditto.
12563 * gdbtypes.c (chill_varying_type): Ditto.
12564 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12565 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12566 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12567 (chill_varying_type): Ditto.
12568 * language.h (_LANG_chill): Ditto.
12569 * language.c (binop_result_type, integral_type): Ditto.
12570 (character_type, string_type, structured_type): Ditto.
12571 (lang_bool_type, binop_type_check): Ditto.
12572 * stabsread.h (os9k_stabs): Ditto.
12573 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12574 (define_symbol, read_type, read_struct_fields): Ditto.
12575 (read_array_type, read_enum_type, read_huge_number): Ditto.
12576 (read_range_type, start_stabs): Ditto.
12577 * symfile.c (init_filename_language_table): Ditto.
12578 (add_psymbol_with_dem_name_to_list): Ditto.
12579 * symtab.c (symbol_init_language_specific): Ditto.
12580 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12581 * symtab.h (struct general_symbol_info): Ditto.
12582 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12583 * typeprint.c (typedef_print): Ditto.
12584 * utils.c (fprintf_symbol_filtered): Ditto.
12585 * valops.c (value_cast, search_struct_field, value_slice): Delete
12586 obsolete code.
12587 (varying_to_slice): Delete function.
12588 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12589 (varying_to_slice): Delete declaration.
12590 * MAINTAINERS: Update.
12591
12592 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12593
12594 * configure.in: Reorganize "Checks for library functions section"
12595 a bit. Remove check for `btowc' and `isascii' functions.
12596 * configure: Regenerated.
12597
12598 * acconfig.h (_MSE_INT_H): Remove.
12599 * configure.in: Create "Checks for header files" section, and move
12600 appropriate tests there. Don't check for objlist.h, wchar.h,
12601 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12602 misdetection fix. Also add "Checks for types", "Checks for
12603 compiler characteristics" and "Checks for library functions"
12604 sections.
12605 * config.in, configure: Regenerated.
12606
12607 * configure.in: Create "Checks for programs" section, and move
12608 appropriate tests there.
12609
12610 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12611
12612 * configure.in: Create "Checks for libraries" section, and move
12613 appropriate tests there. Cleanup check for wctype in libw. Use
12614 AC_SEARCH_LIBS to see whether we need libsocket.
12615 * configure: Regenerated.
12616
12617 For older changes see ChangeLog-2002
12618 \f
12619 Local Variables:
12620 mode: change-log
12621 left-margin: 8
12622 fill-column: 74
12623 version-control: never
12624 End: