2003-09-29 Andrew Cagney <cagney@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2003-09-29 Andrew Cagney <cagney@redhat.com>
2
3 * NEWS: Mention Objective-C.
4
5 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
6
7 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
8 test if the register has been saved on the stack.
9 (arm_scan_prologue_cache): When analysing the instruction
10 "str lr, [sp, #-4]", save the address where lr has been stored.
11
12 2003-09-28 Andrew Cagney <cagney@redhat.com>
13
14 * frame.c (frame_read_unsigned_register): Delete function.
15 * frame.h (frame_read_unsigned_register): Delete declaration.
16 * sparc-tdep.c (sparc_init_extra_frame_info): Use
17 get_frame_register_unsigned.
18 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
19 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
20 * d10v-tdep.c (d10v_print_registers_info): Ditto.
21
22 * frame.h (frame_read_register): Delete declaration.
23 * frame.c (frame_read_register): Delete function.
24 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
25 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
26 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
27 * mips-tdep.c (mips_register_to_value): Ditto.
28 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
29 * d10v-tdep.c (d10v_print_registers_info): Ditto.
30
31 * frame.c (frame_read_signed_register): Delete function.
32 (frame_read_unsigned_register): Update comments.
33 * frame.h (frame_read_signed_register): Delete declaration.
34 * h8300-tdep.c (h8300_print_register): Use
35 get_frame_register_signed.
36 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
37
38 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
39 Rename VALUE_RETURNED_FROM_STACK.
40 * infcmd.c (print_return_value): Update.
41 * infcall.c (call_function_by_hand): Update.
42
43 2003-09-28 Mark Kettenis <kettenis@gnu.org>
44
45 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
46 regcache argument and reverse the order of the other two
47 arguments. Remove local regcache variable. Determine
48 architecture from REGCACHE. Update comments.
49 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
50 reverse the order of the other two arguments. Remove local
51 regcache variable. Determine architecture from REGCACHE. Update
52 comments.
53 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
54 prototypes. Update comments.
55 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
56 comment.
57 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
58 Update.
59 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
60 * i386-interix-nat.c (supply_fpregset): Update.
61 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
62 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
63 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
64 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
65 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
66 Update.
67 * i386obsd-tdep.c (fetch_core_registers): Update.
68 * i386v4-nat.c (supply_fpregset): Update.
69 * x86-64-linux-nat.c (supply_fpregset): Update.
70 * x86-64-linux-tdep.c (fetch_core_registers): Update.
71
72 2003-09-27 Mark Kettenis <kettenis@gnu.org>
73
74 * i386-tdep.h: Put opaque declarations in alphabetical
75 order. Remove spurious whitespace.
76 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
77 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
78 * i386-tdep.c (MM0_REGNUM): Remove define.
79 (i386_mmx_regnum_p): Add gdbarch argument.
80 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
81 Rewrite using new macro definitions for FPU/SSE registers.
82 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
83 definitions from i387-tdep.h.
84 (i386_register_name): Update.
85 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
86 new macro definitions for FPU/SSE registers.
87 (i386_extract_return_value): Determine whether floating-point
88 registers are present by examining REGCACHE's architecture.
89 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
90 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
91 FPU/SSE registers.
92 (i386_register_type): Update.
93 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
94 definitions for FPU registers. Use REGCACHE's architecture to
95 determine the appropriate register numbers.
96 (i386_pseudo_register_read, i386_pseudo_register_write,
97 i386_register_reggroup_p): Update.
98 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
99 TDEP->mm0_regnum.
100 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
101 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
102 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
103 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
104 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
105 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
106 *' to `void *'.
107 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
108 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
109 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
110 definitions for FPU/SSE registers.
111 (FXSAVE_MXCSR_ADDR): New define.
112 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
113 TDEP->mm0_regnum.
114 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
115 (I387_ST0_REGNUM): Define.
116
117 * regcache.h (get_regcache_arch): New prototype.
118 * regcache.c (get_regcache_arch): New function.
119
120 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
121 whitespace.
122
123 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
124 Initialize using ARRAY_SIZE.
125
126 2003-09-27 Andrew Cagney <cagney@redhat.com>
127
128 * arch-utils.c (deprecated_init_frame_pc_default): Rename
129 "init_frame_pc_default".
130 * arch-utils.h (deprecated_init_frame_pc_default): Update.
131 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
132 * vax-tdep.c (vax_gdbarch_init): Update.
133 * v850-tdep.c (v850_gdbarch_init): Update.
134 * sh64-tdep.c (sh64_gdbarch_init): Update.
135 * s390-tdep.c (s390_gdbarch_init): Update.
136 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
137 * mcore-tdep.c (mcore_gdbarch_init): Update.
138 * h8300-tdep.c (h8300_gdbarch_init): Update.
139 * cris-tdep.c (cris_gdbarch_init): Update.
140 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
141
142 2003-09-26 Mark Kettenis <kettenis@gnu.org>
143
144 * regset.h: New file.
145 * Makefile.in (regset_h): Add.
146
147 2003-09-25 Andrew Cagney <cagney@redhat.com>
148
149 * frame.h (deprecated_frame_saved_regs): Rename
150 get_frame_saved_regs.
151 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
152 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
153 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
154 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
155 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
156
157 2003-09-25 Andrew Cagney <cagney@redhat.com>
158
159 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
160 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
161 and Java.
162 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
163 arm*-*-* do not use the new frame code.
164
165 2003-09-25 David Carlton <carlton@kealia.com>
166
167 * c-exp.y: Remove 'register' declarations.
168 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
169
170 2003-09-25 David Carlton <carlton@kealia.com>
171
172 * c-exp.y: Include cp-support.h. Add qualified_type.
173 (yylex): Delete nested type hack; add comments.
174 * cp-namespace.c (cp_lookup_nested_type): New function.
175 * cp-support.h: Declare cp_lookup_nested_type.
176 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
177 instead of value_struct_elt_for_reference.
178 * valops.c: Include cp-support.h.
179 (value_aggregate_elt): New function.
180 (value_namespace_elt): Ditto.
181 (value_struct_elt_for_reference): Make static.
182 * value.h: Delete declaration of value_struct_elt_for_reference;
183 add declaration for value_aggregate_elt.
184 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
185 (valops.o): Ditto.
186
187 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
188
189 * stack.c: Include "reggroups.h".
190 (frame_info): Only display registers in all_reggroup.
191 * Makefile.in (stack.o): Update dependencies.
192
193 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
194
195 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
196 "add ip, sp #n" in the prologue.
197 (arm_scan_prologue): Ditto.
198
199 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
200
201 * MAINTAINERS (write after approval): Add myself.
202
203 2003-09-25 Andreas Schwab <schwab@suse.de>
204
205 * m68k-tdep.c: Include "dwarf2-frame.h".
206 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
207 * Makefile.in (m68k-tdep.o): Update dependencies.
208
209 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
210
211 * sh-tdep.c (struct frame_extra_info): Remove.
212 (struct sh_frame_cache): New structure.
213 (GET_SOURCE_REG): New macro extracting source register of an opcode.
214 (GET_TARGET_REG): Ditto but target register.
215 (GET_PUSHED_REG): Remove.
216 (IS_MOV_ARG_TO_REG): New macro.
217 (IS_MOV_ARG_TO_IND_R14): New macro.
218 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
219 (IS_MOVW_PCREL_TO_REG): New macro.
220 (IS_MOVL_PCREL_TO_REG): New macro.
221 (IS_SUB_REG_FROM_SP): New macro.
222 (IS_ARG_MOV): Remove.
223 (IS_MOV_TO_R14): Remove.
224 (IS_RESTORE_FP): New macro.
225 (IS_RTS): New macro.
226 (IS_LDS): New macro.
227 (IS_MOV_FP_SP): New macro.
228 (IS_ADD_REG_TO_FP): New macro.
229 (IS_ADD_IMM_FP): New macro.
230 (sh_skip_prologue_hard_way): Remove.
231 (sh_saved_pc_after_call): Remove.
232 (sh_frame_chain): Remove.
233 (sh_find_callers_reg): Remove.
234 (sh_nofp_frame_init_saved_regs): Remove.
235 (sh_fp_frame_init_saved_regs): Remove.
236 (sh_init_extra_frame_info): Remove.
237 (sh_analyze_prologue): New function.
238 (sh_skip_prologue): Remove deprecated code. Rely on new function
239 sh_analyze_prologue when after_prologue fails.
240 (sh_frame_saved_pc): Remove.
241 (sh_alloc_frame_cache): New function.
242 (sh_frame_cache): Ditto.
243 (sh_frame_prev_register): Ditto.
244 (sh_frame_this_id): Ditto.
245 (sh_frame_unwind): New structure defining the heuristic frame
246 sniffer interface.
247 (sh_frame_sniffer): New function.
248 (sh_unwind_sp): Ditto.
249 (sh_unwind_pc): Ditto.
250 (sh_unwind_dummy_id): Ditto.
251 (sh_frame_base_address): Ditto.
252 (sh_frame_base): New structure defining new frame base code.
253 (sh_in_function_epilogue_p): New function.
254 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
255 code and to call all new code instead. Initialize dwarf2 and
256 heuristic frame sniffer.
257
258 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
259
260 * parser-defs.h (struct exp_descriptor): New definition, containing
261 language-specific info for printing, prefixifying, dumping, and
262 evaluating expressions.
263 (exp_descriptor_standard): Declare new variable.
264 (print_subexp): Make global and declare here (from expprint.c).
265 (dump_subexp): Ditto.
266 (dump_subexp_body_standard): Declare.
267 (operator_length_standard): Declare.
268 (op_name_standard): Declare.
269 (print_subexp): Declare.
270 (print_subexp_standard): Declare.
271
272 * language.h (struct language_defn): Add la_exp_desc field to hold
273 pointer to table for language-specific operators.
274 Remove evaluate_exp field, which is now in struct exp_descriptor.
275
276 * parse.c (operator_length): Move most code to new
277 operator_length_standard function. Use language-specific information.
278 (operator_length_standard): New function taking most code from
279 operator_length.
280 (exp_descriptor_standard): New constant.
281
282 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
283 and OP_EXTENDED_LAST.
284
285 * expprint.c (print_subexp): Use language-specific print_subexp.
286 Make global; remove static declaration.
287 Move most code to print_subexp_standard.
288 (print_subexp_standard): New function, containing code formerly in
289 print_subexp.
290 (op_name): Add expression to argument signature.
291 Use langauge-specific op_name.
292 Move most code to op_name_standard.
293 (op_name_standard): New function, containing code formerly in op_name.
294 (dump_subexp): Use new version of op_name function.
295 Use language-specific dump_subexp_body, and move most existing code to
296 dump_subexp_body_standard.
297 (dump_raw_expression): Use new op_name interface.
298 (dump_subexp_body): Move most code to dump_subexp_body_standard.
299 (dump_subexp_body_standard): New function, containing code formerly
300 in dump_subexp_body.
301
302 * language.c (unknown_language): Add default la_exp_desc field and
303 remove evaluate_exp field.
304 (auto_language): Ditto.
305 (local_language): Ditto.
306 * f-lang.c (f_language_defn): Ditto.
307 * c-lang.c (c_language_defn): Ditto.
308 (cplus_language_defn): Ditto.
309 (asm_language_defn): Ditto.
310 (minimal_language_defn): Ditto.
311 * p-lang.c (pascal_language_defn): Ditto.
312 * m2-lang.c (m2_language_defn): Ditto.
313 * objc-lang.c (objc_language_defn): Ditto.
314
315 * jv-lang.c (exp_descriptor_java): New variable, containing
316 Java-specific expression evaluator.
317 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
318 field.
319 * scm-lang.c (exp_descriptor_scm): New variable, containing
320 Scheme-specific expression evaluator.
321 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
322 field.
323 * objc-lang.c (print_object_command): Take evaluate_exp from the
324 la_exp_desc field.
325
326 * Makefile.in (eval.o): Add dependency on parser-defs.h.
327
328 * eval.c: Include parser-defs.h for the full declaration of
329 la_exp_desc's type.
330 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
331
332 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
333
334 * parser-defs.h (operator_length): Declare.
335
336 * parse.c (length_of_subexp): Use operator_length to get operator
337 lengths and arities for operators.
338 Move most code to new operator_length function.
339 (operator_length): New function absorbing most code from
340 length_of_subexp.
341 (prefixify_subexp): Remove large case and use operator_length instead.
342 (parse_exp_1): Use renamings:
343 dump_prefix_expression => dump_raw_expression and
344 dump_postfix_expression => dump_prefix_expression.
345
346 * expression.h (dump_prefix_expression): Rename to ...
347 (dump_raw_expression): New name.
348 (dump_postfix_expression): Rename to ...
349 (dump_prefix_expression): New name.
350
351 * expprint.c (dump_subexp): Make global. Add comment.
352 Move most existing code to dump_subexp_body.
353 (dump_subexp_body): New function.
354 (dump_prefix_expression): Rename to dump_raw_expression.
355 Remove attempt to print the expression via print_expression: it can't
356 work before the expression is prefixified.
357 (dump_raw_expression): Renamed from dump_prefix_expression.
358 (dump_postfix_expression): Rename to dump_prefix_expression, since
359 that's what it does.
360 Remove 'note' parameter, since this routine must be used on
361 prefixified expression.
362 (dump_prefix_expression): Renamed from dump_postfix_expression.
363
364 2003-09-22 Jim Blandy <jimb@redhat.com>
365
366 * dwarf2read.c (read_array_type): When building the type for an
367 array of unspecified length, make sure to choose the upper bound
368 so that the array's total length comes out to be zero --- that's
369 how we represent such arrays.
370
371 2003-09-22 Michael Chastain <mec@shout.net>
372
373 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
374
375 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
376
377 * top.c (quit_force): Fix indirect call to quit_target so
378 a struct qt_args pointer is passed.
379
380 2003-09-22 Andrew Cagney <cagney@redhat.com>
381
382 * arch-utils.h (init_frame_pc_noop): Delete declaration.
383 * arch-utils.c (init_frame_pc_noop): Delete function.
384 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
385 "init_frame_pc".
386 * mips-tdep.c (mips_gdbarch_init): Ditto.
387 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
388 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
389 declaration.
390 (DEPRECATED_INIT_FRAME_PC): Delete macro.
391 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
392 declaration.
393 (DEPRECATED_INIT_FRAME_PC): Delete macro.
394
395 2003-09-22 Anthony Green <green@redhat.com>
396
397 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
398 declaration.
399
400 2003-09-20 Andrew Cagney <cagney@redhat.com>
401
402 * breakpoint.c: Eliminate ARGSUSED.
403 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
404 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
405 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
406 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
407 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
408 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
409 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
410 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
411 * wince.c, remote-vx.c: Ditto.
412
413 * cli/cli-script.c: Remove "register" attributes.
414 * config/pa/tm-hppa.h: Ditto.
415 * cli/cli-decode.c: Ditto.
416 * cli/cli-cmds.c: Ditto.
417
418 2003-09-19 Andrew Cagney <cagney@redhat.com>
419
420 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
421 DEPRECATED_NPC_REGNUM.
422 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
423
424 2003-09-19 Christopher Faylor <cgf@redhat.com>
425
426 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
427
428 2003-09-19 Jim Blandy <jimb@redhat.com>
429
430 * macrotab.c (macro_include): Use the correct comparison to find
431 the appropriate place for this inclusion in the list.
432
433 2003-09-19 Andrew Cagney <cagney@redhat.com>
434
435 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
436 (DEPRECATED_HPUX_TEXT_END): Define.
437 (deprecated_hpux_text_end): Declare.
438 (struct target_ops): Declare opaque.
439 * hppah-nat.c (text_end): Make static.
440 (deprecated_hpux_text_end): New function.
441 * exec.c (text_end): Delete global variable.
442 (NEED_TEXT_START_END): Do not define.
443 (exec_file_attach): Replace code computing "text_end" code with
444 call to DEPRECATED_HPUX_TEXT_END.
445
446 2003-09-19 Andrew Cagney <cagney@redhat.com>
447
448 * utils.c (align_up, align_down): New functions.
449 * defs.h (align_up, align_down): Declare.
450 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
451 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
452 and "align_down".
453 (round_up, round_down): Delete functions.
454 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
455 "align_down".
456 (ROUND_DOWN, ROUND_UP): Delete macros.
457 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
458 * h8300-tdep.c: Replace "round_up" and "round_down" with
459 "align_up" and "align_down".
460 (round_up, round_down): Delete macros.
461 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
462 "align_down".
463 (ROUND_UP, ROUND_DOWN): Delete macros.
464
465 2003-09-18 J. Brobecker <brobecker@gnat.com>
466
467 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
468 hard-coded constant. Use the proper machine name instead.
469
470 2003-09-17 Andrew Cagney <cagney@redhat.com>
471
472 * sparc-tdep.c (legacy_register_name): Delete function.
473 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
474 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
475 * infcmd.c (gdb_register_name): Delete variable.
476 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
477 REGISTER_NAME and "tm.h".
478 * gdbarch.h, gdbarch.c: Regenerate.
479 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
480 REGISTER_NAMES in comments.
481 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
482 * m68klinux-nat.c (regmap): Ditto.
483
484 2003-09-17 Jim Blandy <jimb@redhat.com>
485
486 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
487
488 2003-09-17 Andrew Cagney <cagney@redhat.com>
489
490 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
491 (ppcnbsd_init_abi): Set "use_struct_convention" to
492 "ppcnbsd_use_struct_convention".
493
494 2003-09-17 Mark Kettenis <kettenis@gnu.org>
495
496 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
497 * gdbarch.h, gdbarch.c: Regenerate.
498 (stabs_argument_has_addr): New architecture method.
499 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
500 * arch-utils.c: Include "buildsym.h".
501 (default_stabs_argument_has_addr): New function.
502 * stabsread.c (define_symbol): Use stabs_argument_has_addr
503 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
504
505 2003-09-17 Andrew Cagney <cagney@redhat.com>
506
507 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
508 * gdbarch.h, gdbarch.c: Regenerate.
509 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
510 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
511 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
512 * sparcnbsd-tdep.c: Update.
513
514 2003-09-17 Andrew Cagney <cagney@redhat.com>
515
516 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
517 * gdbarch.h, gdbarch.c: Regenerate.
518 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
519 * d10v-tdep.c, frame.c: Update.
520 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
521 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
522 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
523 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
524 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
525 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
526 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
527 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
528 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
529 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
530 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
531 * config/pa/nm-hppah.h: Update.
532
533 2003-09-16 Andrew Cagney <cagney@redhat.com>
534
535 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
536 "use_struct_convention" to "ppc_linux_use_struct_convention".
537 (ppc_linux_use_struct_convention): New function.
538 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
539 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
540 "rs6000_use_struct_convention".
541 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
542 declaration.
543 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
544 Delete function.
545
546 2003-09-16 Andrew Cagney <cagney@redhat.com>
547
548 * buildsym.c: Remove more occurances of "register".
549 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
550 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
551 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
552 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
553 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
554 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
555 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
556 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
557
558 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
559
560 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
561 numbers to enumeration values.
562 * sh-tdep.c: Accomodate above change.
563 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
564 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
565 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
566 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
567 (IS_FPUSH): Rename from IS_FMOV.
568 (sh_extract_struct_value_address): Remove useless comment.
569 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
570 instead of own local values.
571 (sh_dump_tdep): Remove.
572 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
573 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
574
575 2003-09-15 Andrew Cagney <cagney@redhat.com>
576
577 * doublest.c (convert_floatformat_to_doublest): No longer need to
578 cast "exp_bias" to an int. Reverts 2002-12-04 change.
579
580 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
581
582 * values.c (unpack_double): Call floatformat_is_valid.
583
584 2003-09-15 Mark Kettenis <kettenis@gnu.org>
585
586 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
587 ps_strings into a long.
588
589 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
590 _initialize_am64fbsd_nat.
591
592 2003-09-15 Kevin Buettner <kevinb@redhat.com>
593
594 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
595 associated with DW_AT_ranges attribute is out of bounds.
596
597 2003-09-15 David Lecomber <dsl@sources.redhat.com>
598
599 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
600
601 2003-09-14 Michael Chastain <mec@shout.net>
602
603 * config/m68k/nm-apollo68v.h: Delete.
604 * config/m68k/xm-apollo68v.h: Delete.
605
606 2003-09-14 Andrew Cagney <cagney@redhat.com>
607
608 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
609 * dcache.c: Update copyrights and descriptions.
610 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
611
612 2003-09-14 Andrew Cagney <cagney@redhat.com>
613
614 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
615 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
616
617 2003-09-14 Andrew Cagney <cagney@redhat.com>
618
619 * alpha-nat.c: Remove some occurances of "register".
620 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
621 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
622 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
623 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
624 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
625 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
626 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
627 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
628 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
629 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
630 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
631 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
632 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
633 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
634 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
635 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
636 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
637 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
638 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
639 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
640 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
641 * values.c, vax-tdep.c, xcoffread.c: Ditto.
642
643 2003-09-13 Andrew Cagney <cagney@redhat.com>
644
645 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
646 * ppc-tdep.h (struct regcache): Declare opaque.
647 * objfiles.h (struct objfile_data): Declare opaque.
648 * cp-support.h (struct objfile): Declare opaque.
649 * linux-nat.h (target_waitstatus): Declare opaque.
650
651 2003-09-14 Mark Kettenis <kettenis@gnu.org>
652
653 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
654 (stabs_argument_has_addr): New architecture method.
655 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
656 * arch-utils.c: Include "buildsym.h".
657 (default_stabs_argument_has_addr): New function.
658 * stabsread.c (define_symbol): Use stabs_argument_has_addr
659 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
660
661 * cris-tdep.c (cris_gdbarch_init): Set
662 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
663 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
664 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
665 * mips-tdep.c (mips_gdbarch_init): Likewise.
666 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
667 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
668
669 2003-09-13 Andrew Cagney <cagney@redhat.com>
670
671 * values.c (using_struct_return): Delete "function" and "funcaddr"
672 parameters.
673 * value.h (using_struct_return): Update declaration.
674 * infcmd.c (finish_command_continuation): Update.
675 (finish_command): Update.
676 * infcall.c (call_function_by_hand): Update.
677 * eval.c (evaluate_subexp_standard): Update.
678
679 2003-09-13 Christopher Faylor <cgf@redhat.com>
680
681 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
682 SSE registers since gdb will not operate correctly without this.
683 Restore include file ordering munged in previous change.
684 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
685
686 2003-09-13 Mark Kettenis <kettenis@gnu.org>
687
688 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
689 REG_STRUCT_HAS_ADDR.
690 * gdbarch.c, gdbarch.h: Updated.
691 * infcall.c (call_function_by_hand): Update.
692 * stabsread.c (define_symbol): Updated.
693
694 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
695
696 2003-09-12 Christopher Faylor <cgf@redhat.com>
697
698 * win32-nat.c: Reorganize so that defines used by target headers are
699 actually defined by the system headers.
700 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
701 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
702
703 2003-09-12 Jim Blandy <jimb@redhat.com>
704
705 * dbxread.c (read_dbx_symtab): Don't report an internal error if
706 the file has no .data, .bss, or .rodata sections. Instead wait
707 until we see a variable alleged to live in one of those sections.
708
709 * dbxread.c (read_dbx_symtab): If we have no .data section and no
710 .bss section, presume that any variables we find live in the
711 .rodata section.
712
713 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
714 offsets for global and static variables.
715
716 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
717 symbol types are, by definition, in the .data section, so it is
718 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
719 If there is no .data section, there should be no N_DATA or N_DATA
720 | N_EXT symbols.
721
722 2003-09-12 Mark Kettenis <kettenis@gnu.org>
723
724 * amd64fbsd-tdep.c: Fix sigtramp recognition.
725 (amd64fbsd_sigcontext_addr): Rewrite.
726 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
727 with correct values.
728 (amd64fbsd_sc_reg_offset): Initialize with correct values.
729 (amd64fbsd_init_abi): Fix typo.
730
731 2003-09-12 Andrew Cagney <cagney@redhat.com>
732
733 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
734 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
735
736 2003-09-12 Andrew Cagney <cagney@redhat.com>
737
738 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
739 "entry_file_highpc". Update comments.
740 * defs.h (deprecated_inside_entry_file): Rename
741 "inside_entry_file".
742 * blockframe.c (deprecated_inside_entry_file): Rename
743 "inside_entry_file".
744 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
745 * vax-tdep.c (vax_frame_chain): Update.
746 * sh64-tdep.c (sh64_frame_chain): Update.
747 * sh-tdep.c (sh_frame_chain): Update.
748 * rs6000-tdep.c (rs6000_frame_chain): Update.
749 * ns32k-tdep.c (ns32k_frame_chain): Update.
750 * mips-tdep.c (mips_frame_chain): Update.
751 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
752 * m32r-tdep.c (m32r_frame_this_id): Update.
753 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
754 * frv-tdep.c (frv_frame_this_id): Update.
755 * d10v-tdep.c (d10v_frame_this_id): Update.
756 * cris-tdep.c (cris_frame_chain): Update.
757 * blockframe.c (legacy_frame_chain_valid): Update.
758 * avr-tdep.c (avr_frame_this_id): Update.
759 * arm-tdep.c (arm_prologue_this_id): Update.
760 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
761 * objfiles.c (objfile_relocate): Update.
762 * mipsread.c (mipscoff_symfile_read): Update.
763 (mipscoff_symfile_read): Update.
764 * mdebugread.c (parse_partial_symbols): Update.
765 * dwarfread.c (read_file_scope): Update.
766 * dwarf2read.c (read_file_scope): Update.
767 * dbxread.c (read_dbx_symtab): Update.
768 (read_dbx_symtab): Update.
769 * coffread.c (complete_symtab): Update.
770
771 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
772
773 * top.c (quit_target): New static helper function.
774 (quit_force): Moved code to quit_target(). Call quit_target()
775 via catch_errors() to catch errors during quit.
776
777 2003-09-11 David Carlton <carlton@kealia.com>
778
779 * buildsym.c (finish_block): Use allocate_block to allocate the
780 block.
781 * mdebugread.c (new_block): Add FIXME.
782
783 2003-09-11 David Carlton <carlton@kealia.com>
784
785 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
786 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
787 (recursive_dump_type): Ditto.
788 * printcmd.c (print_formatted): Ditto.
789 * typeprint.c (print_type_scalar): Ditto.
790 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
791 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
792 * cp-support.h: Declare cp_check_possible_namespace_symbols,
793 maint_cplus_cmd_list.
794 * cp-support.c: Make maint_cplus_cmd_list extern.
795 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
796 command.h.
797 (lookup_symbol_file): Look in possible namespace blocks when
798 appropriate.
799 (initialize_namespace_symtab): New.
800 (get_possible_namespace_block, free_namespace_block)
801 (check_possible_namespace_symbols)
802 (check_possible_namespace_symbols_loop)
803 (check_one_possible_namespace_symbol)
804 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
805 (_initialize_cp_namespace): Ditto.
806 * block.h: Declare allocate_block.
807 * block.c (allocate_block): New.
808 * jv-lang.c (get_java_class_symtab): Allocate blocks via
809 allocate_block.
810 * symfile.h: Update declaration of add_psymbol_to_list.
811 * symfile.c (add_psymbol_to_list): Return the partial symbol in
812 question.
813 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
814 scan_partial_symbols_call.
815 (scan_partial_symbols): Add NAMESPACE argument; update calls to
816 helper functions.
817 (add_partial_symbol): If necessary, scan mangled names for names
818 of namespaces.
819 (add_partial_namespace): Add NAMESPACE argument; generate partial
820 symbols associated to namespaces.
821 (add_partial_enumeration): Add NAMESPACE argument.
822 (new_symbol): Allow namespace syms.
823 (read_namespace): Generate namespace syms.
824 * objfiles.h: Add opaque declaration of struct symtab.
825 (struct objfile): Add cp_namespace_symtab member.
826 * objfiles.c (allocate_objfile): Set
827 objfile->cp_namespace_symtab.
828 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
829 dictionary_h, command_h.
830
831 2003-09-11 Andrew Cagney <cagney@redhat.com>
832
833 * rs6000-tdep.c (rs6000_push_dummy_call): Use
834 regcache_raw_write_signed to set SP_REGNUM, move the operation to
835 near the function's end.
836 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
837 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
838 regcache_raw_write_signed to set SP_REGNUM.
839
840 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
841
842 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
843 orig_addrs is set up properly.
844
845 2003-09-11 Andrew Cagney <cagney@redhat.com>
846
847 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
848 * gdbarch.h, gdbarch.c: Re-generate.
849 * infcall.c (call_function_by_hand): Update.
850 * hppa-tdep.c (hppa_push_arguments): Update.
851 * ada-lang.c (place_on_stack): Update.
852 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
853 * sparc-tdep.c (sparc_gdbarch_init): Update.
854 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
855 * hppa-tdep.c (hppa_gdbarch_init): Update.
856 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
857 stack_align.
858
859 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
860
861 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
862 register do need a frame.
863
864 2003-09-11 Andrew Cagney <cagney@redhat.com>
865
866 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
867 buildable since GDB 5.0.
868 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
869 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
870 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
871 * irix4-nat.c: Delete file.
872 * config/mips/irix4.mh: Delete file.
873 * config/mips/irix3.mh: Delete file.
874 * config/mips/irix3.mt: Delete file.
875 * config/mips/tm-irix3.h: Delete file.
876 * config/mips/nm-irix3.h: Delete file.
877 * config/mips/xm-irix3.h: Delete file.
878 * config/mips/nm-irix4.h: Delete file.
879 * config/mips/xm-irix4.h: Delete file.
880 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
881
882 2003-09-10 J. Brobecker <brobecker@gnat.com>
883
884 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
885 * Makefile.in (hppa-tdep.o): Update dependencies.
886
887 2003-09-10 James E Wilson <wilson@specifixinc.com>
888
889 * MAINTAINERS: Change my e-mail address. Move to paper trail
890 section.
891
892 2003-09-10 Kevin Buettner <kevinb@redhat.com>
893
894 * MAINTAINERS (frv): New ISA entry.
895
896 2003-09-10 Kevin Buettner <kevinb@redhat.com>
897
898 * frv-tdep.c (dis-asm.h): Include.
899 * Makefile.in (frv-tdep.o): Update dependencies.
900
901 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
902
903 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
904 Fix typo for high range of floating registers.
905
906 2003-09-09 David Carlton <carlton@kealia.com>
907
908 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
909 highpc initialization here out of scan_partial_symbols.
910 (scan_partial_symbols): Restructure into a recursive version,
911 calling add_partial_namespace and add_partial_enumeration when
912 appropriate.
913 (add_partial_namespace): New.
914 (add_partial_enumeration, locate_pdi_sibling): Ditto.
915
916 2003-09-09 Andrew Cagney <cagney@redhat.com>
917
918 * rs6000-tdep.c (ppc_push_return_address): Delete function.
919 (rs6000_push_dummy_call): Set LR to BP_ADDR.
920 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
921 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
922
923 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
924 (rs6000_push_dummy_call): Set the "TOC" register.
925
926 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
927 methods "max_register_raw_size", "max_register_virtual_size" or
928 "register_virtual_size".
929
930 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
931
932 * MAINTAINERS: Update my e-mail address.
933
934 2003-09-09 Andrew Cagney <cagney@redhat.com>
935
936 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
937 (rs6000_push_dummy_call): Store the struct return address.
938 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
939
940 2003-09-09 Andrew Cagney <cagney@redhat.com>
941
942 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
943 "ppc_sysv_abi_push_arguments".
944 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
945 "ppc_sysv_abi_push_arguments".
946 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
947 instead of "push_arguments".
948 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
949
950 2003-09-09 Andrew Cagney <cagney@redhat.com>
951
952 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
953 instead of CALL_DUMMY_ADDRESS.
954
955 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
956
957 * p-lang.c: Eliminate "register".
958 * c-lang.c: Ditto.
959 * expprint.c: Ditto.
960 * f-lang.c: Ditto.
961 * jv-lang.c: Ditto.
962 * language.c: Ditto.
963 * m2-lang.c: Ditto.
964 * parse.c: Ditto.
965 * scm-lang.c: Ditto.
966 * objc-lang.c: Ditto.
967
968 2003-09-09 Nick Clifton <nickc@redhat.com>
969
970 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
971
972 2003-09-04 Andrew Cagney <cagney@redhat.com>
973
974 * avr-tdep.c: Include "dis-asm.h".
975 * cris-tdep.c: Include "dis-asm.h".
976 (cris_delayed_get_disassembler): Use "struct disassemble_info"
977 instead of corresponding typedef.
978 * h8300-tdep.c: Include "dis-asm.h".
979 * ia64-tdep.c: Include "dis-asm.h".
980 * i386-tdep.c: Include "dis-asm.h".
981 (i386_print_insn): Use "struct disassemble_info" instead of
982 corresponding typedef.
983 * m68k-tdep.c: Include "dis-asm.h".
984 * mcore-tdep.c: Include "dis-asm.h".
985 * mips-tdep.c: Include "dis-asm.h".
986 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
987 instead of corresponding typedef.
988 * ns32k-tdep.c: Include "dis-asm.h".
989 * s390-tdep.c: Include "dis-asm.h".
990 * sparc-tdep.c: Include "dis-asm.h".
991 * vax-tdep.c: Include "dis-asm.h".
992 * v850-tdep.c: Include "dis-asm.h".
993 * mn10300-tdep.c: Include "dis-asm.h".
994 * rs6000-tdep.c: Include "dis-asm.h".
995 * xstormy16-tdep.c: Include "dis-asm.h".
996 (_initialize_xstormy16_tdep): Delete "extern" declaration of
997 print_insn_xstormy16.
998 * Makefile.in (v850-tdep.o): Update dependencies.
999 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1000 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1001 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1002 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1003 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1004 (gdbarch_h): Remove $(dis_asm_h).
1005 * disasm.c: Include "dis-asm.h".
1006 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1007 corresponding typedef.
1008 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1009 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1010 * gdbarch.sh: Do not include "dis-asm.h".
1011 (struct disassemble_info): Declare opaque.
1012 (TARGET_PRINT_INSN): Update declaration.
1013 * gdbarch.h, gdbarch.c: Re-generate.
1014
1015 2003-09-08 Andrew Cagney <cagney@redhat.com>
1016
1017 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1018 CALL_DUMMY_ADDRESS, change to a predicate.
1019 * gdbarch.h, gdbarch.c: Re-generate.
1020 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1021 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1022 * infcall.c (call_function_by_hand): Ditto.
1023 * sparc-tdep.c (sparc_push_return_address): Ditto.
1024 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1025 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1026 CALL_DUMMY_ADDRESS with entry_point_address.
1027 * v850-tdep.c (v850_push_return_address): Ditto.
1028 * s390-tdep.c (s390_push_return_address): Ditto.
1029 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1030 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1031 * mcore-tdep.c (mcore_push_return_address): Ditto.
1032 * cris-tdep.c (cris_push_return_address): Ditto.
1033 * arm-tdep.c (arm_push_return_address): Ditto.
1034
1035 2003-09-08 Andrew Cagney <cagney@redhat.com>
1036
1037 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1038 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1039 and REG_UNMODIFIED to REG_SAME_VALUE.
1040 (execute_cfa_program): Update.
1041 (dwarf2_frame_cache): Update. Initialize table to
1042 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1043 location.
1044 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1045
1046 2003-09-08 Andrew Cagney <cagney@redhat.com>
1047
1048 * gnu-nat.c: Remove "inline" function attribute.
1049 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1050
1051 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1052
1053 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1054 target.
1055
1056 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1057
1058 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1059 (frame_extra_info): Rename this struct to frv_unwind_cache.
1060 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1061 Add fields ``prev_sp'' and ``base''.
1062 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1063 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1064 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1065 Delete.
1066 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1067 Revise all callers. Fill in the unwind cache argument and make
1068 other adjustments to account for new frame mechanisms.
1069 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1070 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1071 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1072 (frv_frame_unwind, frv_frame_base): New structs.
1073 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1074 additional arguments expected by this method and adjust function
1075 body accordingly.
1076 (frv_gdbarch_init): Remove calls to the following functions:
1077 set_gdbarch_deprecated_init_frame_pc(),
1078 set_gdbarch_deprecated_saved_pc_after_call(),
1079 set_gdbarch_deprecated_frame_chain(),
1080 set_gdbarch_deprecated_frame_saved_pc(),
1081 set_gdbarch_deprecated_frame_init_saved_regs(),
1082 set_gdbarch_deprecated_push_arguments(),
1083 set_gdbarch_deprecated_push_return_address(),
1084 set_gdbarch_deprecated_pop_frame(),
1085 set_gdbarch_deprecated_call_dummy_words(),
1086 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1087 set_gdbarch_deprecated_init_extra_frame_info(),
1088 set_gdbarch_deprecated_dummy_write_sp(), and
1089 set_gdbarch_deprecated_pc_in_call_dummy().
1090 Add calls to the following functions:
1091 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1092 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1093 frame_base_set_default().
1094 * Makefile.in (frv-tdep.o): Update dependencies.
1095
1096 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1097
1098 * dwarf2-frame.c (read_encoded_value): Add support for
1099 DW_EH_PE_aligned encoding.
1100
1101 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1102
1103 * infrun.c (normal_stop): Don't print a message if the inferior
1104 has exited.
1105
1106 2003-09-08 Jim Blandy <jimb@redhat.com>
1107
1108 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1109 * dbxread.c: #include "gdb_assert.h".
1110 (read_dbx_symtab): If the objfile has no .data section, use the
1111 section index for the .bss section instead.
1112
1113 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1114
1115 * frame.c (deprecated_safe_get_selected_frame): New function.
1116 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1117 * findvar.c (read_var_value): Call it.
1118
1119 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1120
1121 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1122 (sh64-tdep.o): Add dependencies.
1123 * configure.tgt: Add FIXME to sh-*-linux*.
1124 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1125 (sh_gdbarch_init): Always set correct sh_show_regs function
1126 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1127 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1128 * sh64-tdep.c: New file, containing all sh64 related code from
1129 sh-tdep.c.
1130 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1131 * config/sh/linux.mt (TDEPFILES): Ditto.
1132 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1133 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1134 * config/sh/wince.mt (TDEPFILES): Ditto.
1135
1136 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1137
1138 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1139 (stop_wait_callback): Handle !lp->signalled also.
1140 (lin_lwp_has_pending, flush_callback): New functions.
1141 (lin_lwp_wait): Call flush_callback.
1142 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1143 (linux_proc_pending_signals): New function.
1144 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1145
1146 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1147
1148 From Nick Kelsey <nickk@ubicom.com>:
1149 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1150 when the stop PC is at the beginning of a function also.
1151
1152 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1153
1154 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1155 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1156
1157 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1158
1159 * sol-thread.c: Include "gdb_string.h".
1160
1161 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1162
1163 * gcore.c: Reorder include files in alphabetical order. Include
1164 "gdb_assert.h". Various coding style fixes.
1165 (derive_stack_segment, derive_heap_segment): Replace check for
1166 non-null BOTTOM and TOP with gdb_assert.
1167 (derive_heap_segment): Replace check for successful creation of
1168 ZERO with gdb_assert.
1169 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1170
1171 2003-09-04 Andrew Cagney <cagney@redhat.com>
1172
1173 * thread-db.c (verbose_dlsym): New function.
1174 (thread_db_load): Use verbose_dlsym
1175 (thread_db_new_objfile): Print that libthread_db was loaded, and
1176 that thread debugging was enabled.
1177
1178 2003-09-04 Andrew Cagney <cagney@redhat.com>
1179
1180 * configure.tgt: Add "mips64*-*-*" target. Delete
1181 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1182 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1183 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1184 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1185 mips*-sony-*, and mips64*-*-elf* targets.
1186 * config/mips/embedl.mt: Delete file.
1187 * config/mips/embedl64.mt: Delete file.
1188 * config/mips/mips.mt: Delete file.
1189 * config/mips/mips64.mt: Delete file.
1190 * config/mips/tm-embed.h: Delete file.
1191 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1192 * config/mips/embed64.mt: Delete out-of-date comment.
1193
1194 2003-09-04 Andrew Cagney <cagney@redhat.com>
1195
1196 * hppa-tdep.c (hppa_gdbarch_init): Set
1197 "have_nonsteppable_watchpoint".
1198 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1199 * mips-tdep.c (mips_dump_tdep): Do not print
1200 HAVE_NONSTEPPABLE_WATCHPOINT.
1201 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1202 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1203 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1204 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1205
1206 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1207
1208 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1209 unused code. Add comment.
1210
1211 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1212
1213 * breakpoint.c (watchpoint_check): Check for pc being in an
1214 epilogue if watchpoint frame couldn't be found.
1215
1216 2003-09-04 Andrew Cagney <cagney@redhat.com>
1217
1218 * Makefile.in: Re-generate all dependencies.
1219
1220 2003-09-03 Andrew Cagney <cagney@redhat.com>
1221
1222 * arch-utils.h (legacy_print_insn): Delete declaration.
1223 * arch-utils.c (legacy_print_insn): Delete function.
1224 * disasm.c (deprecated_tm_print_insn_info): Delete.
1225 (_initialize_disasm): Delete function, contained code initializing
1226 deprecated_tm_print_insn_info.
1227 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1228 (deprecated_tm_print_insn_info): Delete.
1229 (TARGET_PRINT_INSN): Do not provide a default.
1230 * gdbarch.h, gdbarch.c: Re-generate.
1231
1232 2003-09-03 Andrew Cagney <cagney@redhat.com>
1233
1234 * disasm.c (fprintf_disasm): New function.
1235 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1236 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1237 reverts 2003-08-14 change.
1238 (_initialize_disasm): Call "init_disassemble_info", instead of
1239 INIT_DISASSEMBLE_INFO_NO_ARCH.
1240
1241 2003-09-03 Michael Snyder <msnyder@redhat.com>
1242
1243 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1244
1245 2003-09-03 Andrew Cagney <cagney@redhat.com>
1246
1247 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1248 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1249 * symfile.c (syms_from_objfile): Update.
1250 (reread_symbols): `Update
1251 * exec.c (exec_file_attach): Update.
1252 (exec_file_attach): Update.
1253 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1254 2003-08-29 change.
1255 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1256
1257 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1258
1259 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1260 trad-frame.h.
1261 (arm_get_cache): Delete macro.
1262 (struct arm_prologue_cache): Update comments. Make saved_regs into
1263 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1264 to prev_sp.
1265 (thumb_scan_prologue): Update for cache changes. Don't call
1266 DEPRECATED_PC_IN_CALL_DUMMY.
1267 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1268 argument and use it in desperation search for our prologue. Do not
1269 search past the specified PC.
1270 (arm_make_prologue_cache): Simplify.
1271
1272 (arm_prologue_this_id, arm_prologue_prev_register)
1273 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1274 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1275 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1276 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1277 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1278
1279 (arm_frame_chain_valid, arm_find_callers_reg)
1280 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1281 (arm_pop_frame): Delete obsolete methods.
1282 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1283
1284 (arm_gdbarch_init): Update for new frame methods. Register prologue
1285 and sigtramp unwinders. Set the default frame base method.
1286
1287 * Makefile.in (arm-tdep.o): Update dependencies.
1288 * varobj.c (find_frame_addr_in_frame_chain): Call
1289 get_frame_base_address.
1290 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1291
1292 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1293
1294 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1295 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1296 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1297 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1298 Take NEXT_FRAME and CACHE arguments. Call
1299 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1300 Set unwound_pc in CACHE instead of modifying the frame argument.
1301 Don't bother checking the frame type when looking for sigtramp
1302 frames.
1303 (arm_make_prologue_cache, arm_frame_chain)
1304 (arm_init_extra_frame_info): New functions.
1305
1306 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1307
1308 * arm-tdep.c (arm_get_cache): Define.
1309 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1310 unwound_sp, unwound_pc, and saved_regs.
1311 (thumb_scan_prologue): Take a cache instead of the frame.
1312 (arm_scan_prologue): Likewise.
1313 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1314 instead of a temporary frame.
1315 (arm_init_extra_frame_info): Allocate and use a cache.
1316 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1317
1318 2003-09-03 Andrew Cagney <cagney@redhat.com>
1319
1320 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1321 * config/mips/wince.mt (TM_CLIBS): Ditto.
1322 * config/sh/wince.mt (TM_CLIBS): Ditto.
1323 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1324 * config/sparc/sp64.mt (CC): Delete.
1325
1326 2003-09-03 Andrew Cagney <cagney@redhat.com>
1327
1328 * defs.h: Do not include "arch-utils.h".
1329 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1330 GDB_MULTI_ARCH_PURE.
1331 * configure.in (GDB_MULTI_ARCH): Do not define.
1332 * configure, config.in: Regenerate.
1333 * configure.tgt: Do not set variable "gdb_multi_arch".
1334 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1335 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1336 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1337 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1338 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1339 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1340 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1341 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1342 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1343 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1344 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1345 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1346 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1347 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1348 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1349 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1350 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1351 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1352
1353 2003-08-30 Michael Chastain <mec@shout.net>
1354
1355 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1356 * config/m68k/nm-hp300hpux.h: Delete.
1357 * config/m68k/tm-hp300hpux.h: Delete.
1358 * config/m68k/xm-hp300hpux.h: Delete.
1359 * config/m68k/xm-hp300bsd.h: Delete.
1360 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1361 tm-hp300hpux.h, xm-hp300hpux.h.
1362 * somsolib.c: Remove comment about hp300 shared libraries.
1363
1364 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1365
1366 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1367 Only define PTRACE_GET_THREAD_AREA is not already defined.
1368 Various style fixes in code and comments and some additional
1369 spelling fixes in comments. Move after functions dealing with
1370 debug registers.
1371 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1372 Fix coding-style.
1373
1374 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1375 frame_unwind_register_unsigned instead of
1376 frame_unwind_unsigned_register.
1377
1378 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1379
1380 * configure.in: Search for gethostbyname in libnsl.
1381 * configure: Regenerated.
1382
1383 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1384
1385 * configure.in: Remove redundant AC_MSG_RESULT in check for
1386 uintptr_t in stdint.h.
1387 * configure: Regenerated.
1388
1389 * amd64-nat.h (struct regcache): Add opaque declaration.
1390
1391 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1392 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1393 Change "register array" to "register cache" in comments.
1394 (x86_64_linux_gregset64_reg_offset): New variable.
1395 (GETREGS_SUPPLIES): Remove macro.
1396 (supply_gregset): Call amd64_supply_native_gregset instead of
1397 x86_64_linux_supply_gregset.
1398 (fill_gregset): Rename `regno' to `regnum'. Call
1399 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1400 (store_regs): Rename `regno' to `regnum'.
1401 (store_fpregs): Rename `regno' to `regnum'.
1402 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1403 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1404 Reorganize function a bit.
1405 (store_inferior_registers): Rename `regno' to `regnum'. Use
1406 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1407 Reorganize function a bit.
1408 (_initialize_x86_64_linux_nat): New function.
1409 * config/i386/x86-64linux.mh.
1410
1411 2003-08-29 Andrew Cagney <cagney@redhat.com>
1412
1413 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1414 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1415 (target_remove_watchpoint): Delete macro.
1416 (target_insert_watchpoint): Delete macro.
1417 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1418 (remote_mips_stopped_by_watchpoint): Delete declaration.
1419 (remote_mips_remove_watchpoint): Delete declaration.
1420 (remote_mips_set_watchpoint): Delete declaration.
1421 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1422 * remote-mips.c (_initialize_remote_mips): Set
1423 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1424 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1425 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1426 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1427 (mips_stopped_by_watchpoint): Rename
1428 remote_mips_stopped_by_watchpoint.
1429 (mips_can_hardware_watchpoint): Rename
1430 remote_mips_can_use_hardware_watchpoint, update function
1431 signature.
1432
1433 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1434
1435 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1436 USER_DS. We haven't given them a register number yet.
1437
1438 * amd64-nat.h: New file.
1439 * amd64-nat.c: New file.
1440 * amd64fbsd-nat.c: Include "amd64-nat.h".
1441 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1442 (amd64fbsd32_r_reg_offset): New variable.
1443 (supply_gregset): Simply call amd64_supply_native_gregset.
1444 (fill_gregset): Rename `regno' to `regnum'. Simply call
1445 amd64_collect_native_gregset.
1446 (fill_fpregset): Rename `regno' to `regnum'.
1447 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1448 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1449 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1450 `fpregset_t'. Call amd64_supply_native_gregset instead of
1451 supply_gregset. Call x86_64_supply_fxsave instead of
1452 supply_fpregset.
1453 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1454 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1455 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1456 `fpregset_t'. Call amd64_collect_native_gregset instead of
1457 fill_gregset. Call x86_64_collect_fxsave instead of
1458 fill_fpregset.
1459 (_initialize_am64fbsd_nat): Initialize
1460 amd64_native_gregset32_reg_offset and
1461 amd64_native_gregset64_reg_offset.
1462 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1463
1464 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1465 null pointer. Fix typo in comment.
1466
1467 * regcache.c (supply_register): Reimplement to call
1468 regcache_raw_supply.
1469 (regcache_collect): Reimplement by calling regcache_raw_collect.
1470
1471 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1472
1473 * regcache.c (register_buffer): Consitify first argument.
1474 (regcache_raw_supply, regcache_raw_collect): New
1475 functions.
1476
1477 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1478
1479 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1480 by Nathan J. Williams.
1481
1482 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1483
1484 * lin-lwp.c (wait_lwp): New function, copied from
1485 stop_wait_callback. Clean up.
1486 (stop_wait_callback): Use wait_lwp.
1487
1488 2003-08-28 Andrew Cagney <cagney@redhat.com>
1489
1490 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1491 flavour and disassembler options.
1492 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1493 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1494 deprecated_tm_print_insn_info.
1495
1496 2003-08-27 Andrew Cagney <cagney@redhat.com>
1497
1498 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1499 Use target_read_memory.
1500 (s390_get_frame_info): Update. Do not reference
1501 deprecated_tm_print_insn_info.
1502 (s390_check_function_end, s390_is_sigreturn): Ditto.
1503
1504 2003-08-27 Andrew Cagney <cagney@redhat.com>
1505
1506 * Makefile.in (cris-tdep.o): Update dependencies.
1507 * cris-tdep.c: Include "gdb_assert.h".
1508 (cris_gdbarch_init): Set print_insn.
1509 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1510 (cris_delayed_get_disassembler): Simplify, directly call the
1511 disassembler returned by cris_get_disassembler.
1512 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1513 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1514 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1515 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1516 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1517 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1518 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1519 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1520 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1521 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1522 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1523 (gdb_print_insn_sparc): Delete function.
1524 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1525 deprecated_tm_print_insn_info.
1526 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1527 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1528 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1529 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1530 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1531 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1532 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1533 (s390_gdbarch_init): Set print_insn.
1534
1535 2003-08-27 Andrew Cagney <cagney@redhat.com>
1536
1537 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1538 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1539 * infcall.c (call_function_by_hand): Convert the entry point
1540 address into a code address.
1541
1542 2003-08-27 Andrew Cagney <cagney@redhat.com>
1543
1544 * dsrec.c: Include "gdb_string.h".
1545 * Makefile.in (dsrec.o): Update dependencies.
1546
1547 2003-08-27 Michael Chastain <mec@shout.net>
1548
1549 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1550
1551 2003-08-27 Andrew Cagney <cagney@redhat.com>
1552
1553 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1554 (alpha_osf1_init_abi): Do not set call_dummy_address.
1555
1556 2003-08-27 David Carlton <carlton@kealia.com>
1557
1558 From Randolph Chung <tausq@debian.org>:
1559 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1560 compiles with -Wformat-nonliteral -Werror.
1561
1562 2003-08-26 Jim Blandy <jimb@redhat.com>
1563
1564 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1565 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1566 bfd_lookup_symbol, since we only want symbols in code sections.
1567 (look_for_base): Pass zero as the SECT_FLAGS argument to
1568 bfd_lookup_symbol, since we're not concerned about which section
1569 the symbol is in.
1570
1571 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1572
1573 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1574 we are frameless or the return address register is already known.
1575
1576 2003-08-26 Andrew Cagney <cagney@redhat.com>
1577
1578 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1579 in size. Add comments.
1580
1581 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1582
1583 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1584 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1585
1586 2003-08-26 Jason Merrill <jason@redhat.com>
1587
1588 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1589 case out of #ifdef MIPS block.
1590
1591 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1592
1593 PR java/1322
1594 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1595 available before calling SECT_OFF_TEXT.
1596 * PROBLEMS: Remove description of java/1322.
1597
1598 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1599
1600 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1601 bof, and nat0-nat127 as pseudo-registers.
1602 (ia64_frame_cache): New struct used to cache frame info.
1603 (ia64_register_reggroup_p): New routine used to override default
1604 register grouping so registers without names are still saved and
1605 restored.
1606 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1607 pseudo values.
1608 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1609 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1610 (ia64_alloc_frame_cache): New routine to create a new
1611 ia64_frame_cache.
1612 (examine_prologue): Change prototype to add next_frame pointer.
1613 Assume frameless until otherwise proven. Verify that the cfm for
1614 current frame matches the cfm that should occur for the prologues
1615 alloc insn and if equal, mark as not frameless. At end of routine,
1616 if not frameless, calculate registers for the previous frame and store
1617 in the cache, if a cache is provided.
1618 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1619 and pass 0 for next_frame.
1620 (ia64_store_return_value): Change to use convert_typed_floating()
1621 instead of calling ia64_convert_to_raw().
1622 (ia64_extract_return_value): Change to use convert_typed_floating()
1623 instead of calling ia64_convert_to_virtual().
1624 (ia64_frame_cache): New routine to support new frame model.
1625 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1626 (ia64_frame_sniffer): Ditto.
1627 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1628 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1629 (ia64_sigtramp_frame_prev_register): Ditto.
1630 (ia64_sigtramp_frame_sniffer): Ditto.
1631 (ia64_frame_base_address): Ditto.
1632 (ia64_extract_struct_value_address): Change to issue error message.
1633 (ia64_frame_align): New routine to align sp.
1634 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1635 (ia64_push_arguments): Removed. Logic moved to
1636 ia64_push_dummy_call().
1637 (ia64_push_return_address): Ditto.
1638 (ia64_unwind_dummy_id): New function.
1639 (ia64_unwind_pc): Ditto.
1640 (ia64_convert_register_p): Ditto.
1641 (ia64_register_to_value): Ditto.
1642 (ia64_value_to_register): Ditto.
1643 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1644 (ia64_register_byte, ia64_register_raw_size): Ditto.
1645 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1646 (ia64_saved_pc_after_call): Ditto.
1647 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1648 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1649 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1650 (ia64_register_convert_to_raw): Ditto.
1651 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1652 (ia64_init_extra_frame_info): Ditto.
1653 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1654 (ia64_gdbarch_init): Remove registering of deprecated functions that
1655 are no longer used. Add registration of new gdbarch functions.
1656 Remove registering deprecated_write_sp. Replace
1657 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1658 Delete set_gdbarch_deprecated_register_convertible(),
1659 set_gdbarch_deprecated_register_convert_to_virtual(), and
1660 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1661 set_gdbarch_deprecated_register_size(),
1662 set_gdbarch_deprecated_register_bytes(),
1663 set_gdbarch_pcregnum(),
1664 set_gdbarch_deprecated_register_byte(),
1665 set_gdbarch_deprecated_register_raw_size(),
1666 set_gdbarch_deprecated_max_register_raw_size(),
1667 set_gdbarch_deprecated_register_virtual_size(),
1668 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1669 Replace set_gdbarch_deprecated_extract_return_value() with
1670 set_gdbarch_extract_return_value(). Remove calls to:
1671 set_gdbarch_deprecated_saved_pc_after_call();
1672 set_gdbarch_deprecated_frame_chain(),
1673 set_gdbarch_deprecated_frame_saved_pc(),
1674 set_gdbarch_deprecated_frame_init_saved_regs(),
1675 set_gdbarch_deprecated_get_saved_register(),
1676 set_gdbarch_deprecated_call_dummy_words(),
1677 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1678 set_gdbarch_deprecated_init_extra_frame_info(),
1679 set_gdbarch_deprecated_frame_args_address(),
1680 set_gdbarch_deprecated_frame_locals_address(),
1681 and set_gdbarch_deprecated_dummy_write_sp().
1682 Add set_gdbarch_convert_register_p(),
1683 set_gdbarch_register_to_value(),
1684 set_gdbarch_value_to_register(),
1685 set_gdbarch_push_dummy_call(),
1686 set_gdbarch_frame_align(),
1687 set_gdbarch_unwind_dummy_id(),
1688 set_gdbarch_unwind_pc(),
1689 frame_unwind_append_sniffer(),
1690 frame_unwind_append_sniffer(),
1691 and frame_base_set_default().
1692
1693 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1694
1695 * configure.tgt: Document need for special "mipsisa64" handling.
1696 (mipsisa64*-*-linux64): Handle as target linux64.
1697 (mipsisa64*-*-*): Handle as target embed64.
1698
1699 2003-08-18 Michael Chastain <mec@shout.net>
1700
1701 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1702 objfile bug.
1703
1704 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1705
1706 * i387-tdep.h: Update copyright date.
1707 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1708
1709 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1710 CFLAGS games to reflect reality.
1711
1712 2003-08-24 Andrew Cagney <cagney@redhat.com>
1713
1714 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1715 GDB_MULTI_ARCH is always non-zero.
1716 * osabi.c (_initialize_gdb_osabi): Ditto.
1717 (gdbarch_init_osabi): Ditto.
1718 * sparc-tdep.c: Ditto for #if code.
1719
1720 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1721
1722 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1723 Update comments.
1724 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1725 comments.
1726 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1727 x86_64_supply_fxsave.
1728 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1729 x86_64_supply_fxsave.
1730 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1731 x86_64_supply_fxsave.
1732
1733 2003-08-23 Andreas Jaeger <aj@suse.de>
1734
1735 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1736 i387_supply_fxsave.
1737
1738 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1739
1740 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1741 i387_supply_register.
1742 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1743 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1744 i387_supply_fsave.
1745 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1746 i387_supply_fxsave.
1747 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1748 i387_supply_fsave.
1749 * i386bsd-nat.c (supply_fpregset): Adjust call to
1750 i387_supply_fsave.
1751 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1752 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1753 supply_fpregset.
1754 (store_inferior_registers): Remove extraneous whitespace. Call
1755 i387_fill_fsave instead of fill_fpregset.
1756 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1757 (supply_fpregset): Likewise.
1758 * i386v4-nat.c (supply_fpregset): Adjust call to
1759 i387_supply_fsave.
1760 * i386-interix-nat.c (supply_fpregset): Adjust call to
1761 i387_supply_fsave.
1762 * i386-linux-nat.c (supply_fpregset): Adjust call to
1763 i387_supply_fsave.
1764 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1765 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1766 i387supply_fsave and i387_supply_fxsave.
1767 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1768 Incorporate code from `i387_supply_register.
1769 (i387_supply_register): Remove.
1770 (i387_supply_fxsave): Add `regnum' argument.
1771 Update comments.
1772 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1773 prototype.
1774 (i387_supply_register): remove prototype.
1775 Update comments.
1776
1777 2003-08-22 Michael Chastain <mec@shout.net>
1778
1779 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1780 Add lines for files in gdb/testsuite/gdb.cp/* that are
1781 still not 8.3 unique.
1782
1783 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1784
1785 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1786 TYPE_VPTR_FIELDNO is valid.
1787
1788 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1789
1790 * utils.c (set_width_command): Remove prototypes.
1791 (set_screen_size): New prototype.
1792 (init_page_info): Simplify by fetching the screen size from
1793 Readline. Call set_screen_size.
1794 (set_screen_size): New function.
1795 (set_width): Add missing whitespace in comment.
1796 (set_width_command): Call set_screen_size.
1797 (set_height_command): New function.
1798 (initialize_utils): Fix formatting. Make "set height" command
1799 call set_height_command. Remove redundant code that turns off
1800 pagination if output isn't a terminal. Remove redundant call to
1801 set_width_command.
1802
1803 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1804
1805 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1806 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1807 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1808 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1809 `case' keyword.
1810 (sparc64_register_info): Give the reister with number
1811 SPARC64_STATE_REGNUM a name.
1812 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1813 %asi and %ccr.
1814 (sparc64_push_dummy_call): Take BIAS into account when checking
1815 stcak alignment.
1816 (sparc_software_single_step): Remove assertions that check whether
1817 NPC and NNPC were zero.
1818 (sparc_supply_rwindow): Make public. Merge functionality with
1819 sparc64_supply_rwindow.
1820 (sparc_fill_rwindow): Make public. Merge functionality with
1821 sparc64_fill_rwindow.
1822 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1823 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1824 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1825 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1826 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1827
1828 * reggroups.c: Add whitespace after declarations of local
1829 variables in functions.
1830
1831 2003-08-21 Michael Chastain <mec@shout.net>
1832
1833 * gdbtypes.h: Change array bound type from an int to enum.
1834
1835 2003-08-21 Andrew Cagney <cagney@redhat.com>
1836
1837 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1838 * config/sparc/tm-sparc.h: Ditto.
1839 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1840 unconditionally.
1841 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1842
1843 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1844
1845 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1846 (register_objfile_data, set_objfile_data, objfile_data): New
1847 prototypes.
1848 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1849 prototypes.
1850 (allocate_objfile): Call objfile_alloc_data.
1851 (free_objfile): Call objfile_free_data.
1852 (struct objfile_data): New.
1853 (struct objfile_data_registration): New.
1854 (struct objfile_data_registry): New.
1855 (objfile_data_registry): New variable.
1856 (register_objfile_data): New function.
1857 (objfile_alloc_data, objfile_free_data): New functions.
1858 (set_objfile_data, objfile_data): New functions.
1859 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1860 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1861 (_initialize_dwarf2_frame): New function and prototype.
1862
1863 2003-08-21 Andrew Cagney <cagney@redhat.com>
1864
1865 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1866 a specific architecture.
1867 * arch-utils.h (set_architecture_from_arch_mach): Delete
1868 declaration.
1869 (target_architecture_hook): Delete declaration.
1870 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1871 (default_float_format): Assume GDB_MULTI_ARCH.
1872 (default_double_format): Assume GDB_MULTI_ARCH.
1873 (set_endian_from_file): Delete function.
1874 (arch_ok): Delete function.
1875 (set_arch): Delete function.
1876 (set_architecture_from_arch_mach): Delete function.
1877 (set_architecture_from_file): Delete function.
1878 (set_architecture): Assume GDB_MULTI_ARCH.
1879 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1880
1881 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1882
1883 Rewrite FreeBSD/sparc64 native configuration.
1884 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1885 * sparc64fbsd-nat.c: New file.
1886 * sparc64fbsd-tdep.c: New file.
1887 * sparc64-tdep.c sparc64-tdep.h: New files.
1888 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1889 sparc64fbsd-tdep.o): New dependencies.
1890 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1891 and sparc64fbsd-tdep.c.
1892 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1893 * config/sparc/fbsd.mh: Remove copyright notice.
1894 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1895 sparcbsd-nat.o.
1896 * config/sparc/fbsd.mt: Remove copyright notice.
1897 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1898 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1899 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1900 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1901 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1902 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1903 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1904 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1905 "sparc/tm-sp64.h".
1906 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1907 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1908
1909 2003-08-21 Michael Chastain <mec@shout.net>
1910
1911 * symtab.h: Add doco on the space critical structures and
1912 some measurements of space usage.
1913
1914 2003-08-21 Michael Snyder <msnyder@redhat.com>
1915
1916 * tracepoint.c (trace_dump_command): Trace break address
1917 is subject to DECR_PC_AFTER_BREAK.
1918 (set_traceframe_context): Make "trace_line" an int.
1919 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1920
1921 2003-08-20 Michael Snyder <msnyder@redhat.com>
1922
1923 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1924 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1925 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1926 argument passing.
1927 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1928 functions, replace sh_push_dummy_call.
1929 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1930
1931 2003-08-20 Michael Chastain <mec@shout.net>
1932
1933 * gdbtypes.h (struct main_type): Rearrange to save space.
1934
1935 2003-08-20 Michael Snyder <msnyder@redhat.com>
1936
1937 * trad-frame.c: Comment typo fix.
1938
1939 2003-08-20 Michael Snyder <msnyder@redhat.com>
1940 Kevin Buettner <kevinb@redhat.com>
1941
1942 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1943 (frv_frame_init_saved_regs): Add declaration.
1944 (frame_extra_info): Add new field ``saved_regs''.
1945 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1946 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1947 Update frame related code.
1948 (frv_extract_struct_value_address): Adjust formatting.
1949 * Makefile.in (frv-tdep.o): Update dependencies.
1950 * config/frv/tm-frv.h (target_insert_watchpoint)
1951 (target_remove_watchpoint, target_insert_hw_breakpoint)
1952 (target_remove_hw_breakpoint): Delete these macros.
1953 (remote_insert_watchpoint, remote_remove_watchpoint)
1954 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1955 these declarations.
1956
1957 2003-08-20 Michael Chastain <mec@shout.net>
1958
1959 * defs.h (ENUM_BITFIELD): New macro.
1960 * symtab.h (ENUM_BITFIELD): Use it.
1961 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1962
1963 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1964
1965 * MAINTAINERS (write after approval): Add myself.
1966
1967 2003-08-18 Andrew Cagney <cagney@redhat.com>
1968
1969 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1970 * gdbarch.h, gdbarch.c: Re-generate.
1971 * infcall.c (call_function_by_hand): Adjust the SP by
1972 frame_red_zone_size before allocating any stack space.
1973 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1974 * x86-64-tdep.c (x86_64_frame_align): New function.
1975 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1976
1977 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1978 Remove code adjusting SP so that it skips over the Red Zone.
1979
1980 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1981
1982 * NEWS (New native configurations): Mention FreeBSD/amd64.
1983
1984 2003-08-18 Andrew Cagney <cagney@redhat.com>
1985
1986 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1987 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1988 "m68k_frame_p".
1989 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1990
1991 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1992
1993 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1994
1995 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1996
1997 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1998 Define.
1999 * i386-linux-nat.c: Include "linux-nat.h".
2000 (child_post_startup_inferior): New function.
2001
2002 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2003
2004 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2005 at the start of a frameless function. This probably fixes PR
2006 backtrace/1338.
2007
2008 2003-08-17 Michael Chastain <mec@shout.net>
2009
2010 * symfile.c (find_sym_fns): Remove special case for apollo target.
2011
2012 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2013
2014 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2015 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2016 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2017 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2018 (linux_supports_tracevforkdone): New function.
2019 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2020 TRACEVFORKDONE.
2021 (child_follow_fork): Handle vfork.
2022 (linux_handle_extended_wait): Likewise. Also handle exec.
2023 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2024 * NEWS: Mention fork tracing.
2025
2026 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2027
2028 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2029
2030 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2031
2032 * Makefile.in (i386-linux-nat.o): Update dependencies.
2033 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2034 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2035 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2036 * i386-linux-nat.c: Include "linux-nat.h".
2037 (child_post_startup_inferior): New function.
2038 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2039 * infptrace.c (kill_inferior): Wrap in #ifdef.
2040 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2041 attaching to each LWP.
2042 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2043 (init_lin_lwp_ops): Fill in some more operations.
2044 * linux-nat.h (linux_enable_event_reporting)
2045 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2046 prototypes.
2047 * linux-nat.c (linux_enable_event_reporting): New function.
2048 (child_post_attach, linux_child_post_startup_inferior)
2049 (child_post_startup_inferior, child_follow_fork)
2050 (linux_handle_extended_wait, kill_inferior): New functions.
2051
2052 2003-08-16 Andrew Cagney <cagney@redhat.com>
2053
2054 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2055 * gdbarch.h, gdbarch.c: Re-generate.
2056
2057 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2058
2059 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2060
2061 2003-08-16 Andrew Cagney <cagney@redhat.com>
2062
2063 * NEWS: Mention that "set prompt-escape-char" was deleted.
2064 * top.c (get_prompt_1): Delete function.
2065 (gdb_prompt_escape):
2066 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2067 prompt-escape-char" command.
2068 (MAX_PROMPT_SIZE): Delete macro.
2069 (get_prompt): Simplify, do not call get_prompt_1.
2070
2071 2003-08-16 Andrew Cagney <cagney@redhat.com>
2072
2073 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2074 -Werror. -Wformat-nonliteral problems.
2075
2076 2003-08-15 J. Brobecker <brobecker@gnat.com>
2077
2078 Further multiarching work mostly for hppa64-*-hpux11:
2079 * hppa-tdep.h: New file.
2080 * hppa-tdep.c: #include hppa-tdep.c.
2081 (hppa32_num_regs): Renamed from hppa_num_regs.
2082 (hppa64_num_regs): New constant.
2083 (hppa64_call_dummy_breakpoint_offset): New constant.
2084 (hppa32_call_dummy_length): New constant.
2085 (hppa64_call_dummy_length): New constant.
2086 (hppa32_stack_align): Make name 32bit explicit.
2087 (hppa32_register_virtual_type): Likewise.
2088 (hppa32_extract_return_value): Likewise.
2089 (hppa32_use_struct_convention): Likewise.
2090 (hppa32_store_return_value): Likewise.
2091 (hppa64_register_virtual_type): New function.
2092 (hppa64_extract_return_value): New function.
2093 (hppa64_use_struct_convention): New function.
2094 (hppa64_store_return_value): New function.
2095 (hppa_frame_locals_address): Remove declaration, function does
2096 not exist anymore.
2097 (hppa_register_byte): Add support for PA64 ABI.
2098 (hppa_gdbarch_init): Add support for PA64 ABI.
2099 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2100 Make name 32bit explicit.
2101 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2102 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2103 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2104 (hppa64_hpux_frame_base_before_sigtramp): New function.
2105 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2106 * config/pa/tm-hppa64.h: Remove macros that are no longer
2107 necessary now that the gdbarch vector is properly setup.
2108 Transform some macros into function calls. Some minor cleanup.
2109 * config/pa/tm-hppah.h: Update function calls in macros
2110 following the function renaming in hppa-hpux-tdep.c.
2111 * Makefile.in (hppa_tdep_h): New variable.
2112 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2113
2114 2003-08-14 Michael Snyder <msnyder@redhat.com>
2115
2116 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2117
2118 2003-08-13 J. Brobecker <brobecker@gnat.com>
2119
2120 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2121 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2122 routine.
2123
2124 2003-08-13 Michael Snyder <msnyder@redhat.com>
2125
2126 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2127 (frv_saved_pc_after_call): Use deprecated ftype.
2128 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2129 (frv_remote_translate_xfer_address): Remove.
2130 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2131
2132 2003-08-13 J. Brobecker <brobecker@gnat.com>
2133
2134 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2135 initialization after the common gdbarch initialization, not before.
2136
2137 2003-08-13 J. Brobecker <brobecker@gnat.com>
2138
2139 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2140 (ADDR_BITS_REMOVE): Remove, redundant.
2141
2142 2003-08-13 J. Brobecker <brobecker@gnat.com>
2143
2144 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2145 gdbarch method to clear the 2 low bits of text addresses.
2146
2147 2003-08-12 Andrew Cagney <cagney@redhat.com>
2148
2149 * Makefile.in (dsrec.o): Update dependencies.
2150 * dsrec.c: Include "gdb_assert.h".
2151 (make_srec): Use snprintf instead of sprintf, use a literal format
2152 string.
2153
2154 2003-08-12 Andrew Cagney <cagney@redhat.com>
2155
2156 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2157 FRAME_OBSTACK_ZALLOC.
2158
2159 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2160
2161 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2162 SSE registers.
2163
2164 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2165
2166 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2167 amd64fbsd_sc_reg_offset): Add extern declarations.
2168 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2169 declarations.
2170
2171 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2172
2173 * MAINTAINERS (write after approval): Update my mail address.
2174
2175 2003-08-10 Andrew Cagney <cagney@redhat.com>
2176
2177 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2178
2179 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2180
2181 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2182 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2183 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2184 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2185 i386bsd_sc_reg_offset): Add extern declarations.
2186 * i386obsd-nat.c: Include "i386-tdep.h"
2187 (_initialize_i386obsd_nat): Remove extern declarations.
2188 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2189 declarations.
2190 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2191 declarations.
2192
2193 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2194 instead of frame_read_register.
2195 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2196 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2197 SP_REGNUM.
2198 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2199 instead of frame_unwind_unsigned_register. Use
2200 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2201 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2202 instead of read_register. Use builtin_type_void_data_ptr instead
2203 of builtin_type_void_func_ptr when extracting the address of the
2204 jmp_buf.
2205 (i386_extract_return_value, i386_store_return_value,
2206 i386_pseudo_register_read, i386_pseudo_register_write): Use
2207 register_size instead REGISTER_RAW_SIZE.
2208
2209 2003-08-10 Andrew Cagney <cagney@redhat.com>
2210
2211 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2212 sprintf. Make "name" constant.
2213
2214 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2215
2216 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2217 instead of frame_read_register.
2218 (i387_print_float_info): Use get_frame_register and
2219 get_frame_register_unsigned instead of frame_register_read.
2220
2221 * i386fbsd-nat.c: Include "i386-tdep.h".
2222 (child_resume): Make `eflags' an ULONGEST. Use
2223 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2224 instead of register_read and register_write.
2225
2226 * i386bsd-nat.c (fetch_inferior_registers,
2227 store_inferior_registers): Don't use && at the end of a line.
2228 (_initialize_i386bsd_nat): Fix typo.
2229
2230 * frame.c (_initialize_frame): Add missing backslash.
2231
2232 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2233 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2234 and supply_register instead of manipulating the register buffer
2235 directly.
2236
2237 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2238 * config/i386/nm-i386sol2.h
2239 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2240
2241 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2242 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2243 instructions that GCC likes to mingle into the prologue. Fixes
2244 gdb/1253 and gdb/1255.
2245
2246 2003-08-09 Andrew Cagney <cagney@redhat.com>
2247
2248 Fix GDB PR cli/926.
2249 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2250 * command.h (add_setshow_uinteger_cmd): Declare.
2251 * frame.c (set_backtrace_cmd): New function.
2252 (show_backtrace_cmd): New function.
2253 * frame.c (_initialize_frame): Replace "set/show
2254 backtrace-below-main" with "set/show backtrace past-main". Add
2255 command "set/show backtrace limit".
2256 (backtrace_past_main): Rename "backtrace_below_main".
2257 (backtrace_limit): New variable.
2258 (get_prev_frame): Update. Check the backtrace_limit.
2259
2260 2003-08-09 Andrew Cagney <cagney@redhat.com>
2261
2262 * defs.h (xstrprintf): Declare.
2263 * utils.c (xstrprintf): New function.
2264 * breakpoint.c (insert_breakpoints): Replace sprintf and
2265 non-literal format strings, with xstrprintf and cleanups.
2266 (delete_breakpoint,breakpoint_re_set): Ditto.
2267 (commands_command, insert_breakpoints): Ditto.
2268 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2269 (break_at_finish_command_1): Ditto.
2270
2271 2003-08-09 Andrew Cagney <cagney@redhat.com>
2272
2273 * MAINTAINERS (language support): List Adam Fedor as Objective C
2274 maintainer.
2275
2276 2003-08-08 J. Brobecker <brobecker@gnat.com>
2277
2278 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2279 are now multiarched.
2280
2281 2003-08-08 J. Brobecker <brobecker@gnat.com>
2282
2283 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2284 longer necessary now that hppa64 is partially multiarch'ed.
2285
2286 2003-08-08 Andrew Cagney <cagney@redhat.com>
2287
2288 * interps.c (interp_set): Check for a NULL "old_interp".
2289
2290 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2291
2292 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2293 (install-only): Support DESTDIR.
2294 (uninstall): Likewise.
2295 (install-gdbtk): Likewise.
2296
2297 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2298
2299 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2300 contains something meaningful at all times.
2301
2302 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2303
2304 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2305
2306 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2307
2308 * MAINTAINERS (write after approval): Added self.
2309
2310 2003-08-07 Andrew Cagney <cagney@redhat.com>
2311
2312 * inferior.h (AT_SYMBOL): Define.
2313 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2314 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2315 * mips-tdep.c (mips_call_dummy_address): Delete function.
2316 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2317 set call_dummy_address.
2318
2319 2003-08-07 Andrew Cagney <cagney@redhat.com>
2320
2321 * language.c (op_error): Delete function.
2322 (binop_type_check): Delete function.
2323 * language.h (type_op_error, range_op_error): Delete macros.
2324 (op_error): Delete declaration.
2325
2326 2003-08-07 Andrew Cagney <cagney@redhat.com>
2327
2328 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2329
2330 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2331
2332 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2333 (x86_64_push_arguments): Skip the red zone.
2334
2335 2003-08-05 Andrew Cagney <cagney@redhat.com>
2336
2337 * reggroups.c (reggroup_next): Check for the final entry.
2338
2339 2003-08-04 Andrew Cagney <cagney@redhat.com>
2340
2341 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2342 * cli/cli-script.c (define_command): Call query directly, instead
2343 of passing it a buffer.
2344 * ocd.c (ocd_error): Pass error a constant format string.
2345 * remote-mips.c (mips_error): Use fputs_filtered.
2346
2347 * solib-svr4.c (_initialize_svr4_solib): Update
2348 register_gdbarch_data call.
2349 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2350
2351 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2352 (register_gdbarch_data): Delete "free" parameter. Update
2353 comments.
2354 * gdbarch.h, gdbarch.c: Re-generate.
2355 * reggroups.c (_initialize_reggroup): Update.
2356 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2357 * frame-base.c (_initialize_frame_base): Update.
2358 * frame-unwind.c (_initialize_frame_unwind): Update.
2359 * user-regs.c (_initialize_user_regs): Update.
2360 * remote.c (_initialize_remote): Update.
2361 * regcache.c (_initialize_regcache): Update.
2362
2363 * regcache.c (xfree_regcache_descr): Delete function.
2364 (_initialize_regcache): Update call to register_gdbarch_data.
2365 (init_regcache_descr, init_legacy_regcache_descr): Use
2366 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2367
2368 * remote.c (free_remote_state): Delete function.
2369 (_initialize_remote): Update register_gdbarch_data.
2370 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2371 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2372
2373 2003-08-04 Andrew Cagney <cagney@redhat.com>
2374
2375 * reggroups.c (struct reggroup_el): Define.
2376 (struct reggroups): Delete field "nr_group". Replace array
2377 "group" with a "first" to "last" linked list.
2378 (reggroups_init): Update. Allocate using gdbarch's obstack.
2379 (reggroups_free): Delete function.
2380 (add_group): Update. Add "el" parameter.
2381 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2382 (default_groups): Update.
2383 (reggroup_next): Replace reggroups.
2384 (reggroups_dump): Update.
2385 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2386 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2387 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2388
2389 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2390
2391 * Makefile.in (tui-interp.o): Update dependencies.
2392
2393 2003-08-04 David Carlton <carlton@kealia.com>
2394
2395 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2396 to internal_error call.
2397 * source.c (forward_search_command): Add "%s" format argument.
2398 (reverse_search_command): Ditto.
2399 * top.c (quit_confirm): Ditto.
2400 * cli/cli-setshow.c (do_setshow_command): Ditto.
2401 * cp-valprint.c (cp_print_class_method): Replace
2402 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2403 (cp_print_class_member): Ditto.
2404 * event-top.c (command_line_handler): Ditto.
2405 * linux-proc.c (linux_info_proc_cmd): Ditto.
2406 * p-typeprint.c (pascal_type_print_base): Ditto.
2407 * p-valprint.c (pascal_object_print_class_method): Ditto.
2408 (pascal_object_print_class_member): Ditto.
2409 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2410 * remote.c (remote_cisco_section_offsets): Ditto.
2411 * top.c (command_line_input): Ditto.
2412 * utils.c (vwarning,error_stream,quit): Ditto.
2413 * valprint.c (print_floating,print_binary_chars)
2414 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2415
2416 2003-08-04 Andrew Cagney <cagney@redhat.com>
2417
2418 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2419
2420 2003-08-02 Andrew Cagney <cagney@redhat.com>
2421
2422 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2423 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2424 amd64fbsd-nat.c.
2425
2426 2003-08-02 Andrew Cagney <cagney@redhat.com>
2427
2428 * Makefile.in: Update all dependencies and definitions.
2429
2430 2003-08-02 Adam Fedor <fedor@gnu.org>
2431
2432 * linespec.c (is_objc_method_format): New function
2433 (decode_line_1, locate_first_half): Use it.
2434 Fixes PR objc/1298
2435
2436 2003-08-01 Andrew Cagney <cagney@redhat.com>
2437
2438 * NEWS: Mention that m32r is multi-arch.
2439 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2440 * configure.tgt: Recognize m32r-*-*.
2441 * config/m32r/tm-m32r.h: Delete file.
2442 * config/m32r/m32r.mt: New file.
2443 * m32r-rom.c (m32r_upload_command): Use hostent only when
2444 gethostname succeeds, in order to avoid a compilation
2445 warning.
2446 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2447 compiler warning.
2448
2449 2003-08-01 Michael Snyder <msnyder@redhat.com>
2450
2451 * sh-tdep.c (sh_frame_align): New gdbarch method.
2452 (sh_gdbarch_init): Set up frame_align method.
2453
2454 2003-07-31 Michael Snyder <msnyder@redhat.com>
2455
2456 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2457 which is already covered by the new frames infrastructure.
2458
2459 2003-07-31 Andrew Cagney <cagney@redhat.com>
2460
2461 * user-regs.c (struct user_reg): Add "next" link.
2462 (struct user_regs): Replace "user" with "first" and "last" links.
2463 (append_user_reg): Add pre-allocated "reg" parameter.
2464 (builtin_user_regs): Provide initial value for "last".
2465 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2466 (user_regs_init): Allocate memory from the gdbarch obstack.
2467 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2468 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2469 linked list.
2470 (usernum_to_user_reg): New function.
2471 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2472 (value_of_user_reg): Use usernum_to_user_reg.
2473 (user_regs_free): Delete function.
2474 (_initialize_user_regs): Update register_gdbarch_data call.
2475
2476 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2477
2478 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2479
2480 2003-07-30 Michael Snyder <msnyder@redhat.com>
2481
2482 * value.h (value_being_returned): Add a struct_addr argument.
2483 * infcall.c (call_function_by_hand): Pass struct_addr to
2484 value_being_returned.
2485 * infcmd.c (print_return_value): Pass zero as struct_addr.
2486 * values.c (value_being_returned): If struct_addr is passed,
2487 use it instead of trying to recover it from the inferior.
2488
2489 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2490
2491 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2492 the prologue analyzer won't need to attempt to extract the pc
2493 value from the woefully incomplete dummy frame.
2494 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2495 possible. Disable code which modifies the frame.
2496
2497 2003-07-28 Andrew Cagney <cagney@redhat.com>
2498
2499 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2500 to level 2.
2501 (annotate_breakpoints_table, annotate_record): Ditto.
2502 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2503 (annotate_field_name_end, annotate_field_value): Ditto.
2504 (annotate_field_end, annotate_frame_source_begin): Ditto.
2505 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2506 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2507 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2508 (annotate_frame_address_end, annotate_frame_address): Ditto.
2509 (annotate_frame_args, annotate_frame_end): Ditto.
2510 (annotate_frame_where, annotate_arg_begin): Ditto.
2511 (annotate_arg_name_end, annotate_arg_value): Ditto.
2512 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2513 (annotate_function_call, annotate_signal_name): Ditto.
2514 (annotate_signal_string, annotate_signal_name_end): Ditto.
2515 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2516 (annotate_value_begin, annotate_value_history_value): Ditto.
2517 (annotate_value_history_end, annotate_value_end): Ditto.
2518 (annotate_display_begin, annotate_display_number_end): Ditto.
2519 (annotate_display_format, annotate_display_expression): Ditto.
2520 (annotate_display_expression_end, annotate_display_value): Ditto.
2521 (annotate_display_end, annotate_array_section_begin): Ditto.
2522 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2523 (annotate_elt, annotate_array_section_end): Ditto.
2524
2525 2003-07-28 Andrew Cagney <cagney@redhat.com>
2526
2527 * regcache.c (struct regcache_descr): Update comments on
2528 nr_raw_registers.
2529 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2530 sizeof_raw_register_valid_p.
2531 (init_regcache_descr): Set nr_raw_registers and
2532 sizeof_raw_register_valid_p before calling
2533 init_legacy_regcache_descr.
2534
2535 2003-07-28 Andrew Cagney <cagney@redhat.com>
2536
2537 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2538 MOD NUM_REGS.
2539
2540 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2541
2542 * thread.c (info_threads_command): Use get_selected_frame ().
2543 Check that there is at least one non-sentinel frame.
2544
2545 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2546
2547 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2548 (m68hc11_pop_frame): Remove.
2549 (m68hc11_frame_saved_pc): Remove.
2550 (m68hc11_frame_chain): Remove.
2551 (m68hc11_frame_init_saved_regs): Remove.
2552 (m68hc11_init_extra_frame_info): Remove.
2553 (m68hc11_store_struct_return): Remove.
2554 (m68hc11_saved_pc_after_call): Remove.
2555
2556 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2557
2558 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2559 frame unwind information.
2560 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2561 and adapted for frame unwinding.
2562 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2563 (m68hc11_unwind_pc): New function.
2564 (m68hc11_frame_unwind_cache): New function to analyze frames.
2565 (m68hc11_frame_this_id): New function to create new frame struct.
2566 (m68hc11_frame_prev_register): New function to unwind a register from
2567 the frame.
2568 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2569 (m68hc11_frame_p): New function for the above.
2570 (m68hc11_frame_base_address): New function to return fp of frame.
2571 (m68hc11_frame_args_address): Update for frame.
2572 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2573 (m68hc11_unwind_sp): New function.
2574 (m68hc11_unwind_dummy_id): New function.
2575 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2576 calls.
2577
2578 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2579
2580 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2581 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2582 when we are beyond the current pc.
2583
2584 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2585
2586 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2587 from m68hc11_push_arguments.
2588 (m68hc11_push_arguments): Remove.
2589 (m68hc11_push_return_address): Remove.
2590 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2591 handlers; remove deprecated_extra_stack_alignment_needed.
2592
2593 2003-07-27 Andrew Cagney <cagney@redhat.com>
2594
2595 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2596 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2597 REAL_PC and not the pointer.
2598 * hppa-hpux-tdep.c: Include frame.h
2599
2600 2003-07-27 Andrew Cagney <cagney@redhat.com>
2601
2602 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2603 GDB_MULTI_ACH_PARTIAL.
2604
2605 2003-07-27 Andrew Cagney <cagney@redhat.com>
2606
2607 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2608 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2609 operator at start and not end of line.
2610 (decode_prologue): Ditto.
2611 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2612 frame_unwind_register_unsigned instead of
2613 frame_unwind_unsigned_register.
2614 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2615 read_register.
2616 (m32r_push_dummy_call): Use register_size instead of
2617 REGISTER_RAW_SIZE.
2618 (m32r_frame_sniffer): Replace m32r_frame_p.
2619 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2620 * m32r-rom.c (report_transfer_performance): Delete extern
2621 declaration.
2622 (m32r_load, m32r_upload_command): Use print_transfer_performance
2623 instead of report_transfer_performance.
2624 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2625 / add_show_from_set.
2626
2627 2003-07-26 Andrew Cagney <cagney@redhat.com>
2628
2629 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2630 store_return_value and extract_struct_value_address.
2631
2632 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2633
2634 PR c++/1267
2635 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2636 NULL, default to the section containing PC.
2637
2638 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2639
2640 * NEWS: Mention "regs" deprecated for m68hc11 too.
2641
2642 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2643 (m68hc11_print_register): New function to print out one register.
2644 (m68hc11_print_registers_info): New function to print registers.
2645 (show_regs): Deprecate and use the above.
2646 (m68hc11_gdbarch_init): Install the print_registers_info.
2647
2648 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2649
2650 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2651 that we have a SIGTRAP before returning non-zero.
2652
2653 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2654 Elena Zannoni <ezannoni@redhat.com>
2655
2656 * linespec.c (decode_line_2): Avoid crash if
2657 find_function_start_sal() returns empty record.
2658
2659 2003-07-23 Andreas Schwab <schwab@suse.de>
2660
2661 * ia64-tdep.c (ia64_print_insn): New function.
2662 (ia64_gdbarch_init): Set print_insn to it.
2663 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2664 deprecated_tm_print_insn_info.
2665
2666 2003-07-22 Michael Snyder <msnyder@redhat.com>
2667
2668 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2669 handle 8-bit returns (long long).
2670 (h8300h_extract_return_value): Ditto.
2671 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2672
2673 2003-07-22 Andrew Cagney <cagney@redhat.com>
2674
2675 * gdbarch.c Include "gdb_obstack.h".
2676 (struct gdbarch): Add an "obstack".
2677 (alloc_gdbarch_data): Allocate the gdbarch data using
2678 GDBARCH_OBSTACK_CALLOC.
2679 (free_gdbarch_data): Delete function.
2680 (gdbarch_obstack_zalloc): New function.
2681 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2682 Assert that the architecture is not initialized.
2683 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2684 vector from the obstack.
2685 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2686 architecture obstack.
2687 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2688 (set_gdbarch_data): Assert that the data is not initialized.
2689 (struct gdbarch_data): Delete member "free".
2690 (register_gdbarch_data): Do not initialize "free".
2691 * gdbarch.h, gdbarch.c: Re-generate.
2692
2693 2003-07-22 Andrew Cagney <cagney@redhat.com>
2694
2695 * configure.in (build_warnings): Add -Wformat-nonliteral.
2696 * configure: Re-generate.
2697
2698 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2699
2700 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2701
2702 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2703
2704 * findvar.c (read_var_value): Remove case for thread local storage
2705 variables. It is now entirely handled by the dwarf2 location
2706 expression code.
2707 * printcmd.c (address_info): Ditto.
2708 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2709 enumeration value.
2710 (struct symbol): Remove objfile field, which was used by
2711 LOC_THREAD_LOCAL_STATIC only.
2712 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2713 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2714 usage of objfile pointer.
2715 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2716 thread local variables.
2717 Add include of objfiles.h.
2718 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2719 storage variables.
2720 * Makefile.in (dwarf2loc.o): Update dependencies.
2721
2722 2003-07-22 Andrew Cagney <cagney@redhat.com>
2723
2724 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2725 get_frame_base.
2726 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2727 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2728 (struct value): Add opaque declaration.
2729 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2730
2731 2003-07-21 Andrew Cagney <cagney@redhat.com>
2732
2733 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2734 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2735
2736 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2737
2738 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2739 regcache_cooked_read_unsigned instead of read_register.
2740 (m68hc11_saved_pc_after_call): Likewise.
2741 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2742 instead of write_register.
2743 (m68hc11_register_type): New function.
2744 (m68hc11_register_virtual_type): Remove.
2745 (m68hc11_store_return_value): Convert to use the regcache.
2746 (m68hc11_extract_struct_value_address): Likewise.
2747 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2748 m68hc11_register_type; undeprecate store_return_value and
2749 extract_struct_value_address.
2750
2751 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2752
2753 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2754 and translate to use regcache.
2755 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2756
2757 2003-07-18 Andrew Cagney <cagney@redhat.com>
2758
2759 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2760 * gdbarch.h, gdbarch.c: Re-generate.
2761 * i386-tdep.c (i386_gdbarch_init): Do not set
2762 DWARF2_BUILD_FRAME_INFO.
2763 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2764 unconditionally.
2765 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2766 DWARF2_BUILD_FRAME_INFO.
2767
2768 2003-07-18 Andrew Cagney <cagney@redhat.com>
2769
2770 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2771 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2772
2773 2003-07-18 Andrew Cagney <cagney@redhat.com>
2774
2775 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2776 frame_unwind_address_in_block, instead of frame_pc_unwind.
2777 (dwarf2_frame_cache): Ditto.
2778
2779 2003-07-18 Andrew Cagney <cagney@redhat.com>
2780
2781 * user-regs.h (struct gdbarch): Declare opaque.
2782 * ui-out.h (struct ui_file): Declare opaque.
2783 * dwarf2-frame.h (struct frame_info): Declare opaque.
2784
2785 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2786
2787 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2788 #include "...".
2789 (procfs_meminfo): Change strerror to safe_strerror.
2790 (procfs_can_run): Remove K&R badness.
2791
2792 2003-07-17 Michael Snyder <msnyder@redhat.com>
2793
2794 * remote-sim.c: Comment typo fix.
2795
2796 2003-07-17 Andrew Cagney <cagney@redhat.com>
2797
2798 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2799 configure.
2800 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2801 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2802 GDB_MULTI_ARCH_PARTIAL.
2803
2804 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2805
2806 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2807 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2808 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2809
2810 2003-07-16 Theodore A. Roth <troth@openavr.org>
2811
2812 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2813 found.
2814 (avr_frame_unwind_cache): Don't unwind FP for main.
2815 Update a comment.
2816 Save the computed prev_sp.
2817 (avr_saved_regs_unwinder): Remove function.
2818 (avr_frame_prev_register): Use PC unwind logic from
2819 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2820
2821 2003-07-16 Andrew Cagney <cagney@redhat.com>
2822
2823 * frame-base.h (frame_base_p_ftype): Delete definition.
2824 (frame_base_append_predicate): Delete declaration.
2825 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2826 (frame_unwind_append_predicate): Delete declaration.
2827 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2828 (append_predicate): Delete parameter "p".
2829 (frame_unwind_append_predicate): Delete function.
2830 (frame_unwind_append_sniffer): Update call to append_predicate.
2831 (frame_unwind_free): Delete function.
2832 (_initialize_frame_unwind): Pass NULL as "free" to
2833 register_gdbarch_data.
2834 (frame_unwind_init): Append the dummy_frame_sniffer.
2835 (frame_unwind_find_by_frame): Simplify.
2836 * frame-base.c (struct frame_base_table): Delete field "p".
2837 (append_predicate): Delete parameter "p".
2838 (frame_base_append_predicate): Delete function.
2839 (frame_base_append_sniffer): Update call to append_predicate.
2840 (frame_base_free): Delete function.
2841 (frame_base_find_by_frame): Simplify.
2842 (_initialize_frame_base): Pass NULL as "free" to
2843 register_gdbarch_data.
2844 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2845 (x86_64_sigtramp_frame_sniffer): Replace
2846 "x86_64_sigtramp_frame_p".
2847 (x86_64_init_abi): Set the frame unwind sniffers.
2848 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2849 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2850 (m68k_gdbarch_init): Set the frame unwind sniffers.
2851 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2852 "i386_sigtramp_frame_p".
2853 (i386_frame_sniffer): Replace "i386_frame_p".
2854 (i386_gdbarch_init): Set the frame unwind sniffers.
2855 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2856 (avr_gdbarch_init): Set the frame unwind sniffers.
2857 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2858 "alpha_sigtramp_frame_p"
2859 (alpha_heuristic_frame_sniffer): Replace
2860 "alpha_heuristic_frame_p".
2861 (alpha_gdbarch_init): Set the frame unwind sniffers.
2862 (alpha_dwarf2_init_abi): Ditto.
2863 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2864 "alpha_debug_frame_p".
2865 (alpha_mdebug_frame_base_sniffer): Replace
2866 "alpha_mdebug_frame_base_p".
2867 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2868 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2869 (d10v_gdbarch_init): Set the frame unwind sniffer.
2870 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2871 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2872 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2873 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2874 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2875 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2876
2877 2003-07-16 Michael Snyder <msnyder@redhat.com>
2878
2879 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2880 should go thru sh_dsp_register_sim_regno, else the dsp regs
2881 will not get the right values.
2882
2883 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2884
2885 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2886 deprecated_store_floating by call to store_typed_floating.
2887 (sh_sh4_register_convert_to_raw): Substitute call to
2888 deprecated_extract_floating by call to extract_typed_floating.
2889
2890 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2891
2892 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2893
2894 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2895
2896 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2897 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2898 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2899 as possible.
2900 (do_pseudo_register): Remove.
2901 (sh_push_dummy_code): New function.
2902 (sh64_store_struct_return): Rename from sh_store_struct_return.
2903 Only called for sh64 now.
2904 (sh_extract_struct_value_address): Regcache'ify.
2905 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2906 and accomodate new tasks.
2907 (sh64_push_return_address): Rename from sh_push_return_address.
2908 Only called for sh64 now.
2909 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2910 Regcache'ify.
2911 (sh3e_sh4_extract_return_value): Regcache'ify.
2912 (sh_default_store_return_value): Ditto.
2913 (sh3e_sh4_store_return_value): Ditto.
2914 (sh_default_register_byte): Remove.
2915 (sh_sh4_register_byte): Remove.
2916 (sh_default_register_raw_size): Remove.
2917 (sh_sh4_register_raw_size): Remove.
2918 (sh_register_virtual_size): Remove.
2919 (sh_sh3e_register_virtual_type): Remove.
2920 (sh_sh3e_register_type): New function.
2921 (sh_sh4_register_virtual_type): Remove.
2922 (sh_sh4_register_type): New function.
2923 (sh_default_register_virtual_type): Remove.
2924 (sh_default_register_type): New function.
2925 (do_fv_register_info): Add parameters to accomodate call from
2926 sh_print_registers_info.
2927 (do_dr_register_info): Ditto.
2928 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2929 Add parameters to accomodate call from sh_print_registers_info.
2930 (sh_do_fp_register): Ditto.
2931 (sh64_do_pseudo_register): Call do_dr_register_info,
2932 do_fv_register_info and sh_do_fp_register with default parameters.
2933 (sh_do_register): Add parameters to accomodate call from
2934 sh_print_registers_info.
2935 (sh_print_register): Ditto.
2936 (sh_print_registers_info): Rename from sh_do_registers_info.
2937 Add parameters to be used as gdbarch_print_registers_info
2938 implementation. Accomodate removed do_pseudo_register function
2939 pointer.
2940 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2941 function pointer. Call sh_print_register with default parameters.
2942 (sh64_do_registers_info): Call sh_print_registers_info instead of
2943 sh_do_registers_info.
2944 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2945 detection of deprecated vs. non-deprecated functionality.
2946 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2947 function pointer assignments by direct function calls.
2948
2949 2003-07-15 Andrew Cagney <cagney@redhat.com>
2950
2951 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2952 (frame_register_unwind, create_new_frame): Ditto.
2953 (legacy_get_prev_frame, get_frame_type): Ditto.
2954 (get_frame_base_address): Use frame_base_find_by_frame.
2955 (get_frame_locals_address): Use frame_base_find_by_frame.
2956 (get_frame_args_address): Use frame_base_find_by_frame.
2957 * frame-base.h (frame_base_sniffer_ftype): Declare.
2958 (frame_base_append_sniffer): Declare.
2959 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2960 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2961 (frame_base_append_sniffer): New function.
2962 (frame_base_append_predicate): Add a NULL sniffer.
2963 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2964 (struct frame_base_table): Add "sniffer".
2965 (frame_base_free): Free the "sniffer" table.
2966 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2967 (frame_unwind_append_sniffer): Declare.
2968 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2969 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2970 (struct frame_unwind_table): Add "sniffer", delete "middle".
2971 (append_predicate): Add "sniffer" parameter, append the sniffer.
2972 (frame_unwind_init): Update append_predicate call.
2973 (frame_unwind_append_sniffer): New function.
2974 (frame_unwind_append_predicate): Update append_predicate call.
2975 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2976
2977 2003-07-15 Andrew Cagney <cagney@redhat.com>
2978
2979 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2980 before code inhibiting repeated unwind attempts. Add to
2981 commentary on that test's problems.
2982 * blockframe.c (inside_main_func): Look for "main" in the minimal
2983 symbol table.
2984 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2985 identical.
2986
2987 2003-07-15 Andrew Cagney <cagney@redhat.com>
2988
2989 * complaints.c (struct explanation): Define.
2990 (struct complaints): Change type of "explanation" to "struct
2991 explanation".
2992 (symfile_explanations): Convert to a "struct explanation" table.
2993 (vcomplaint): Update.
2994
2995 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2996
2997 * x86-64-linux-nat.c (regmap): Removed.
2998 (supply_gregset, fill_gregset): Call
2999 x86_64_linux_(fill,supply)_gregset functions.
3000 * x86-64-linux-tdep.c (USER_*): New defines.
3001 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3002 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3003 New functions.
3004 (fetch_core_registers): Ditto.
3005 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3006 * x86-64-linux-tdep.h: New file.
3007 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3008 and core-regset.o.
3009 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3010
3011 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3012
3013 * x86-64-tdep.c (x86_64_store_return_value): Use
3014 regcache_cooked_write_part instead of regcache_cooked_write.
3015
3016 * configure.host: Add x86_64-*-freebsd*.
3017 * configure.tgt: Add x86_64-*-freebsd*.
3018 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3019 * amd64fbsd-nat.c: New file.
3020 * amd64fbsd-tdep.c: New file.
3021 * config/i386/nm-fbsd64.h: New file.
3022 * config/i386/fbsd64.mh: New file.
3023 * config/i386/fbsd64.mt: New file.
3024
3025 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3026
3027 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3028 `sc_regs_offset' and `sc_fpregs_offset'.
3029 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3030 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3031 (alpha_sigtramp_register_address): Rewrite to use new members of
3032 `struct gdbarch_tdep'.
3033 (alpha_gdbarch_init): Initialize new members of struct
3034 gdbarch_tdep'.
3035 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3036 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3037 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3038 (alphafbsd_pc_in_sigtramp): Implement.
3039 (alphafbsd_sigtramp_offset): New function.
3040 (alphafbsd_sigcontext_addr): New function.
3041 (alphafbsd_init_abi): Initialize signal trampoline related members
3042 of `struct gdbarch_tdep'.
3043 (_initialize_alphafbsd_tdep): Add prototype.
3044
3045 2003-07-11 Theodore A. Roth <troth@openavr.org>
3046
3047 * Makefile.in (install-only): Quote sed expression when generating
3048 transformed_name.
3049
3050 2003-07-11 Richard Henderson <rth@redhat.com>
3051
3052 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3053 * dwarf2-frame.c: Include complaints.h.
3054 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3055 variable initialization; return NULL on error.
3056 (decode_frame_entry): New.
3057
3058 2003-07-11 Andrew Cagney <cagney@redhat.com>
3059
3060 * frame.h (frame_address_in_block): Delete declaration.
3061 * blockframe.c (frame_address_in_block): Delete function.
3062 (get_frame_block): Use get_frame_address_in_block.
3063 (block_innermost_frame): Ditto.
3064 * stack.c (print_frame, backtrace_command_1): Ditto.
3065
3066 * frame.h (get_frame_address_in_block): Declare.
3067 (frame_unwind_address_in_block): Declare.
3068 * frame.c (frame_unwind_address_in_block): New function.
3069 (get_frame_address_in_block): New function.
3070
3071 2003-07-10 Andrew Cagney <cagney@redhat.com>
3072
3073 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3074 pre-default. Note: re-generate has no effect.
3075
3076 2003-07-10 Andrew Cagney <cagney@redhat.com>
3077
3078 * gdbarch.sh: When a variable, but not a function, compare against
3079 0. Fix problem in previous patch.
3080 * gdbarch.c: Re-generate.
3081
3082 2003-07-10 Andrew Cagney <cagney@redhat.com>
3083
3084 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3085 functions against NULL, not 0.
3086 * gdbarch.c: Re-generate.
3087
3088 2003-07-10 Fred Fish <fnf@ninemoons.com>
3089
3090 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3091 null string instead of a null pointer.
3092 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3093
3094 2003-07-09 Michael Snyder <msnyder@redhat.com>
3095
3096 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3097
3098 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3099
3100 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3101 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3102 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3103 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3104 * x86-64-tdep.c: ... from here.
3105
3106 2003-07-09 Andreas Schwab <schwab@suse.de>
3107
3108 * m68k-tdep.h (enum struct_return): Define.
3109 (struct gdbarch_tdep): Add struct_return.
3110 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3111 bytes are padded to the right, not to the left. Pass struct value
3112 address in register %a1, not on stack.
3113 (m68k_use_struct_convention): New function.
3114 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3115 struct_return in tdep to pcc_struct_return.
3116 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3117 reg_struct_return.
3118
3119 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3120
3121 * somread.c (som_symfile_offsets): Fix compilation error.
3122
3123 2003-07-09 Andrew Cagney <cagney@redhat.com>
3124
3125 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3126 Add comments about the checks.
3127
3128 2003-07-08 Andrew Cagney <cagney@redhat.com>
3129
3130 * Makefile.in: Make dependency section headers consistent.
3131 (config_h): Move to $BUILD headers section.
3132 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3133 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3134 (ada-exp.tab.c): Move to YACC/LEX section.
3135 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3136 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3137
3138 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3139
3140 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3141 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3142 of strerror with safe_strerror, use ISO C function definitions,
3143 and replace instances of sprintf with snprintf.
3144
3145 2003-07-07 Andrew Cagney <cagney@redhat.com>
3146
3147 * frame.c (get_prev_frame): Enable check for identical frames.
3148 Update comments. Update error messages.
3149
3150 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3151
3152 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3153
3154 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3155
3156 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3157 sort_symtab_syms, no longer necessary.
3158
3159 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3160
3161 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3162
3163 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3164
3165 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3166 (mips_register_byte): Likewise.
3167
3168 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3169
3170 * Makefile.in (sparc_tdep_h): New.
3171 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3172 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3173 * sparc-linux-nat.c: Include "sparc-tdep.h".
3174 * sparc-nat.c: Likewise.
3175 * sparc-tdep.c: Likewise.
3176 * sparc64nbsd-nat.c: Likewise.
3177 * sparcnbsd-nat.c: Likewise.
3178 * sparcnbsd-tdep.c: Likewise.
3179 * sparc-tdep.h: New file.
3180 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3181 and sparc_npc_regnum.
3182
3183 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3184
3185 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3186 (mips_linux_cannot_store_register): List supported instead of
3187 unsupported registers.
3188
3189 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3190
3191 * disasm.c (dump_insns): Separate instructions from addresses.
3192
3193 2003-07-07 Andreas Schwab <schwab@suse.de>
3194
3195 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3196 dependencies.
3197 * m68k-tdep.c (NUM_FREGS): Delete.
3198 (SIG_PC_FP_OFFSET): Delete.
3199 (TARGET_M68K): Delete.
3200 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3201 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3202 P_MOVEL_SP, P_MOVEML_SP): Define.
3203 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3204 P_TRAP): Delete.
3205 (m68k_register_raw_size): Delete.
3206 (m68k_register_virtual_size): Delete.
3207 (m68k_register_type): Renamed from m68k_register_virtual_type and
3208 add gdbarch argument.
3209 (m68k_store_struct_return): Delete.
3210 (m68k_deprecated_extract_return_value): Delete.
3211 (m68k_deprecated_extract_struct_value_address): Delete.
3212 (m68k_frame_chain): Delete.
3213 (m68k_frame_saved_pc): Delete.
3214 (m68k_fix_call_dummy): Delete.
3215 (m68k_push_dummy_frame): Delete.
3216 (m68k_pop_frame): Delete.
3217 (m68k_extract_return_value): New function.
3218 (m68k_store_return_value): Rewrite using regcache.
3219 (m68k_extract_struct_value_address): Rewrite using regcache.
3220 (m68k_push_dummy_call): New function.
3221 (struct m68k_frame_cache): Define.
3222 (m68k_alloc_frame_cache): New function.
3223 (m68k_analyze_frame_setup): New function.
3224 (m68k_analyze_register_saves): New function.
3225 (m68k_analyze_prologue): New function.
3226 (m68k_skip_prologue): Rewrite using above functions.
3227 (m68k_unwind_pc): New function.
3228 (m68k_frame_cache): New function.
3229 (m68k_frame_this_id): New function.
3230 (m68k_frame_prev_register): New function.
3231 (m68k_frame_unwind): New variable.
3232 (m68k_frame_p): New function.
3233 (m68k_sigtramp_frame_cache): New function.
3234 (m68k_sigtramp_frame_this_id): New function.
3235 (m68k_sigtramp_frame_prev_register): New function.
3236 (m68k_sigtramp_frame_unwind): New variable.
3237 (m68k_sigtramp_frame_p): New function.
3238 (m68k_frame_base_address): New function.
3239 (m68k_frame_base): New function.
3240 (m68k_unwind_dummy_id): New function.
3241 (fill_gregset): Use regcache_collect.
3242 (fill_fpregset): Likewise.
3243 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3244 defined.
3245 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3246 deprecated_init_frame_pc, deprecated_store_struct_return,
3247 deprecated_extract_return_value, deprecated_store_return_value,
3248 deprecated_frame_chain, deprecated_frame_saved_pc,
3249 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3250 deprecated_register_virtual_size,
3251 deprecated_max_register_raw_size,
3252 deprecated_max_register_virtual_size,
3253 deprecated_register_virtual_type, deprecated_register_size,
3254 deprecated_register_byte, deprecated_register_bytes,
3255 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3256 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3257 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3258 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3259 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3260 deprecated_push_dummy_frame, deprecated_pop_frame,
3261 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3262 only if SYSCALL_TRAP is defined. Set extract_return_value,
3263 store_return_value, extract_struct_value_address, register_type,
3264 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3265 predicates.
3266 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3267 M68K_MAX_REGISTER_SIZE): Define.
3268 (struct m68k_sigtramp_info): Define.
3269 (struct gdbarch_tdep): Add get_sigtramp_info.
3270 * m68klinux-nat.c (fetch_register): Use register_size instead of
3271 REGISTER_RAW_SIZE. Don't put assignment in if.
3272 (store_register): Likewise.
3273 (fetch_inferior_registers): Likewise.
3274 (store_inferior_registers): Likewise.
3275 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3276 (m68k_linux_frame_saved_pc): Delete.
3277 (m68k_linux_sigcontext_reg_offset,
3278 m68k_linux_ucontext_reg_offset): Define.
3279 (m68k_linux_get_sigtramp_info): New function.
3280 (m68k_linux_extract_return_value): Rewrite using regcache.
3281 (m68k_linux_store_return_value): Likewise.
3282 (m68k_linux_extract_struct_value_address): Likewise.
3283 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3284 Don't set deprecated_frame_saved_pc,
3285 deprecated_extract_return_value, deprecated_store_return_value,
3286 deprecated_extract_struct_value_address. Set
3287 extract_return_value, store_return_value,
3288 extract_struct_value_address.
3289
3290 2003-07-07 Andrew Cagney <cagney@redhat.com>
3291
3292 * expprint.c: Include "user-regs.h" instead of "frame.h".
3293 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3294 frame_map_regnum_to_name.
3295 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3296 (frame_map_name_to_regnum): Simplify, call
3297 user_reg_map_name_to_regnum.
3298 (frame_map_regnum_to_name): Simplify, call
3299 user_reg_map_regnum_to_name.
3300 (frame_register_unwind): Update.
3301 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3302 (_initialize_frame_reg): Call user_reg_add_builtin.
3303 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3304 (value_of_register): Use value_of_user_reg.
3305 * eval.c (evaluate_subexp_standard): Update.
3306 * parse.c (write_dollar_variable): Update.
3307 * d10v-tdep.c (d10v_print_registers_info): Update.
3308 * infcmd.c (registers_info): Update.
3309 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3310 (builtin_regs_h): Delete macro.
3311 (user_regs_h): Define.
3312 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3313 (builtin-regs.o): Delete target.
3314 (user-regs.o): Specify dependencies.
3315 (expprint.o): Update dependencies.
3316 (findvar.o): Update dependencies.
3317 (frame.o): Update dependencies.
3318 (std-regs.o): Update dependencies.
3319
3320 2003-07-06 Christopher Faylor <cgf@redhat.com>
3321
3322 * win32-nat.c (solib_symbols_add): Use one variable for all section
3323 address stuff. Pass variable rather than address of variable to
3324 safe_symbol_file_add.
3325
3326 2003-07-06 Andreas Schwab <schwab@suse.de>
3327
3328 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3329
3330 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3331
3332 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3333
3334 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3335
3336 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3337
3338 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3339
3340 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3341 * config/i386/nto.mh: New file.
3342 * config/i386/nm-nto.h: New file.
3343 * configure.host: Add i[3456]86-*-nto*.
3344
3345 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3346
3347 * remote-vx.c (vx_add_symbols): Fix compilation error.
3348
3349 2003-07-03 Andrew Cagney <cagney@redhat.com>
3350
3351 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3352 * gdbarch.h, gdbarch.c: Re-generate.
3353 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3354 (legacy_register_name): Declare.
3355 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3356 (REGISTER_NAME): Define.
3357 * sparc-tdep.c (legacy_register_name): New function.
3358 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3359 (REGISTER_NAME): Define.
3360 (hppa64_register_name): Declare.
3361 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3362 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3363 (hppa64_register_name): New function.
3364 (hppa_register_name): New function.
3365 * arch-utils.c (legacy_register_name): Delete.
3366 * arch-utils.h (legacy_register_name): Delete.
3367
3368 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3369
3370 * cli/cli-interp.c (cli_interpreter_resume): Update the
3371 cli_uiout's stream to gdb_stdout.
3372
3373 2003-07-03 Andrew Cagney <cagney@redhat.com>
3374
3375 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3376 predicate.
3377 * gdbarch.h, gdbarch.c: Re-generate.
3378 * regcache.c (init_regcache_descr): Use legacy code when either
3379 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3380
3381 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3382
3383 * NEWS: Move "set logging" entry into GDB 6.0 section.
3384
3385 2003-07-02 Jim Blandy <jimb@redhat.com>
3386
3387 * s390-tdep.c (struct frame_extra_info): new member:
3388 'stack_bought_valid'.
3389 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3390 initialize fextra_info->stack_bought.
3391 (s390_frameless_function_invocation): Don't trust the value of
3392 fextra_info_ptr->stack_bought unless
3393 fextra_info->stack_bought_valid is set.
3394
3395 New S390 prologue analyzer.
3396 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3397 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3398 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3399 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3400 compute_x_addr, s390_on_stack, s390_store,
3401 s390_get_signal_frame_info): New functions.
3402 (S390_NUM_SPILL_SLOTS): New macro.
3403 (s390_get_frame_info): Rewritten.
3404 (is_arg_reg): Deleted.
3405
3406 Break out the decoding of S/390 instructions into separate
3407 functions, to make it more legible, and easier to check
3408 against the spec.
3409 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3410 is_rx, is_rxe): New functions.
3411 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3412 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3413 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3414 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3415 enums for opcode values. (Is this an improvement?)
3416
3417 2003-07-02 Andrew Cagney <cagney@redhat.com>
3418
3419 * i386-tdep.c: Revert change committed as part of trad-frame code
3420 below.
3421
3422 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3423
3424 * breakpoint.c (insert_catchpoint): Make static.
3425
3426 2003-07-02 Andreas Schwab <schwab@suse.de>
3427
3428 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3429 former ia64_push_arguments and ia64_push_return_address, and use
3430 regcache functions instead of read/write_register.
3431 (ia64_gdbarch_init): Set push_dummy_call instead of
3432 deprecated_push_arguments and deprecated_push_return_address.
3433
3434 2003-07-01 Andreas Jaeger <aj@suse.de>
3435
3436 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3437 before the call.
3438 Set %rax only to number of SSE registers used.
3439
3440 2003-07-01 Andrew Cagney <cagney@redhat.com>
3441
3442 * trad-frame.h: Update comments, a -1 .addr is reserved.
3443 (trad_frame_value_p, trad_frame_addr_p): Declare.
3444 (trad_frame_reg_p): Declare.
3445 (trad_frame_set_value): Rename trad_frame_register_value.
3446 (trad_frame_set_unknown): Declare.
3447 * trad-frame.c (trad_frame_realreg_p): New function.
3448 (trad_frame_addr_p, trad_frame_value_p): New function.
3449 (trad_frame_set_unknown): New function.
3450 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3451 (trad_frame_prev_register): Use trad_frame_realreg_p,
3452 trad_frame_addr_p and trad_frame_value_p.
3453 (trad_frame_set_value): Rename trad_frame_register_value.
3454 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3455 and trad_frame_set_value.
3456
3457 2003-06-30 Jim Blandy <jimb@redhat.com>
3458
3459 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3460 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3461 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3462 for 16 registers, and then 32 more bytes.
3463 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3464 New macros.
3465 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3466 Move up in the file, since it's now used by is_simple_arg.
3467 (is_simple_arg): Don't assume registers are four bytes long.
3468 Exclude all double arguments. Extended floats are not simple
3469 args.
3470 (is_power_of_two): New function.
3471 (pass_by_copy_ref): Call is_power_of_two, and check that the
3472 length fits in a register, rather than listing all the acceptable
3473 sizes. Extended floats are not passed by reference.
3474 (s390_push_arguments): Don't assume registers are four bytes long.
3475 Reserve an argument register to point to the buffer for structures
3476 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3477 S390_STACK_FRAME_OVERHEAD.
3478
3479 2003-06-30 Andreas Schwab <schwab@suse.de>
3480
3481 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3482 format error message.
3483
3484 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3485
3486 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3487
3488 2003-06-30 David Carlton <carlton@kealia.com>
3489
3490 Band-aid for PR c++/1245.
3491 * Makefile.in (cp-support.o): Depend on complaints_h.
3492 * cp-support.c: Include complaints.h. Add declaration for
3493 find_last_component.
3494 (cp_find_first_component): Separate code into
3495 cp_find_first_component_aux.
3496 (cp_find_first_component_aux): Call demangled_name_complaint.
3497 (demangled_name_complaint): New.
3498
3499 2003-06-30 Andrew Cagney <cagney@redhat.com>
3500
3501 * remote.c (remote_write_bytes): Explicitly compute and then use
3502 the payload size. Update comments to reflect. Fixes problem of
3503 GDB not sending small packets as found by Fred Fish.
3504
3505 2003-06-30 Andrew Cagney <cagney@redhat.com>
3506
3507 * remote.c (remote_async_wait): Fix -Wformat problem.
3508
3509 2003-06-29 Andrew Cagney <cagney@redhat.com>
3510
3511 * remote.c (remote_wait): Call error, and not warning, when the
3512 packet is corrupt.
3513 (remote_async_wait): Ditto.
3514
3515 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3516
3517 * sparc-tdep.c (sparc_y_regnum): Make external again.
3518
3519 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3520
3521 * cli/cli-logging.c (pop_output_files): Add void to function
3522 definition.
3523
3524 2003-06-29 Andrew Cagney <cagney@redhat.com>
3525
3526 * frame.c (frame_register_unwind): Use unsigned char when dumping
3527 the buffer contents.
3528
3529 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3530
3531 * cli/cli-logging.c: New file.
3532 * cli-out.c (struct ui_out_data): Add original_stream.
3533 (cli_redirect): New function.
3534 (cli_ui_out_impl): Add cli_redirect.
3535 (cli_out_new): Initialize original_stream.
3536 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3537 (uo_redirect, ui_out_redirect): New.
3538 * ui-out.h (struct ui_out_impl): Add redirect member.
3539 (redirect_ftype): New.
3540 (ui_out_redirect): Add prototype.
3541 * Makefile.in: Add rules for cli-logging.c.
3542 * NEWS: Mention "set logging".
3543
3544 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3545
3546 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3547
3548 2003-06-27 Andrew Cagney <cagney@redhat.com>
3549
3550 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3551 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3552 * avr-tdep.c (avr_call_dummy_address): Delete function.
3553 (avr_gdbarch_init): Do not set call_dummy_address.
3554
3555 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3556
3557 * symfile.c (syms_from_objfile): Move variables to inner block.
3558 Move the checks for the non-mainline case a bit earlier to avoid
3559 doing some useless computations.
3560
3561 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3562
3563 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3564
3565 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3566
3567 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3568 sections.
3569
3570 2003-06-26 Michael Chastain <mec@shout.net>
3571
3572 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3573 gdb/testsuite/gdb.c++/pr-1210.exp.
3574
3575 2003-06-26 Andrew Cagney <cagney@redhat.com>
3576
3577 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3578 altivec_expression.h and altivec_registers.h.
3579
3580 2003-06-26 Andrew Cagney <cagney@redhat.com>
3581
3582 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3583 info->mach when MIPS16. Patch suggested by Fred Fish.
3584
3585 2003-06-26 Andrew Cagney <cagney@redhat.com>
3586
3587 * utils.c (internal_vproblem): Print the problem to a reason
3588 buffer and then pass to query. Make the msg variable more local.
3589
3590 2003-06-26 Andrew Cagney <cagney@redhat.com>
3591
3592 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3593 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3594 * gdbarch.h, gdbarch.c: Re-generate.
3595 * frame-base.c (default_frame_args_address): Update. Use
3596 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3597 not available.
3598 (default_frame_locals_address): Ditto for
3599 DEPRECATED_FRAME_LOCALS_ADDRESS.
3600 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3601 (vax_frame_num_args): Update.
3602 (vax_gdbarch_init): Update.
3603 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3604 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3605 * mcore-tdep.c (mcore_gdbarch_init): Update.
3606 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3607 * ia64-tdep.c (ia64_gdbarch_init): Update.
3608 * symtab.h (address_class): Update comments.
3609 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3610 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3611 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3612 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3613 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3614 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3615 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3616 * alpha-mdebug-tdep.c: Update.
3617 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3618
3619 2003-06-26 Andreas Jaeger <aj@suse.de>
3620
3621 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3622 of SSE registers so that varargs functions work. Rework handling
3623 of passing arguments on the stack.
3624 (x86_64_store_return_value): Return double and float values in SSE
3625 register.
3626
3627 2003-06-24 Michael Chastain <mec@shout.net>
3628
3629 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3630 the "constructor breakpoints ignored" bug.
3631
3632 2003-06-25 David Carlton <carlton@kealia.com>
3633
3634 * MAINTAINERS: Update e-mail address.
3635
3636 2003-06-24 Jim Blandy <jimb@redhat.com>
3637
3638 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3639
3640 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3641 function.
3642 (ppc_linux_init_abi): Register it as the
3643 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3644
3645 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3646 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3647 method.
3648
3649 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3650 (ppc64_standard_linkage_target): Use it.
3651
3652 2003-06-23 Andrew Cagney <cagney@redhat.com>
3653
3654 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3655 for 0 "int0" and 4 "int32" sized registers.
3656 * gdbtypes.c (builtin_type_int0): Define.
3657 (build_gdbtypes): Initialize builtin_type_int0.
3658 * gdbtypes.h (builtin_type_int0): Declare.
3659
3660 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3661
3662 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3663 as characters are unsigned.
3664
3665 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3666
3667 PR gdb/1179
3668 * dwarfread.c (struct_type): Skip static fields without crashing.
3669
3670 2003-06-22 Andrew Cagney <cagney@redhat.com>
3671
3672 GDB 6.0 branch created.
3673 * README: Update.
3674 * PROBLEMS: Update. Empty.
3675 * NEWS: Update.
3676
3677 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3678
3679 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3680 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3681
3682 2003-06-22 Andrew Cagney <cagney@redhat.com>
3683
3684 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3685 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3686 Velikov.
3687
3688 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3689
3690 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3691 compilers.
3692
3693 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3694
3695 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3696 argument of val_print.
3697 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3698 to the address argument of baseclass_offset or target_read_memory.
3699 Do add it to the argument of cp_print_value_fields.
3700
3701 2003-06-21 Andrew Cagney <cagney@redhat.com>
3702
3703 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3704 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3705 instead of 0..NUM_REGS.
3706 (mips_register_reggroup_p): New function.
3707 (mips_pseudo_register_write): New function.
3708 (mips_pseudo_register_read): New function.
3709 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3710 based on the register's type.
3711 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3712 cooked.
3713 (mips_get_saved_register): Simplify. Assert that REGNO is a
3714 pseudo / cooked.
3715 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3716 (mips_register_type): Replace mips_register_virtual_type. Map
3717 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3718 when available.
3719 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3720 that the register is cooked / virtual.
3721 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3722 Only get the extra info when needed.
3723 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3724 (mips32_heuristic_proc_desc): Fetch the cooked register.
3725 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3726 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3727 (mips_print_register): Use gdbarch_register_type, instead of
3728 REGISTER_VIRTUAL_TYPE.
3729 (print_gp_register_row): Use gdbarch_register_type, instead of
3730 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3731 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3732 Print the pseudo / cooked registers.
3733 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3734 Print the pseudo / cooked registers.
3735 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3736 REG_NUM is pseudo / cooked.
3737 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3738 (mips_n32n64_xfer_return_value): Ditto.
3739 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3740 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3741 (mips_register_sim_regno): New function.
3742 (mips_gdbarch_init): Set deprecated_register_byte,
3743 register_group_p, pseudo_register_write, pseudo_register_read,
3744 register_sim_regno, and num_pseudo_regs. Set register_type,
3745 instead of register_virtual_type.
3746 * Makefile.in (mips-tdep.o): Update dependencies.
3747 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3748 REGISTER_VIRTUAL_TYPE.
3749 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3750 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3751 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3752 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3753 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3754
3755 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3756
3757 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3758 * cli/cli-cmds.c: Include "gdb_vfork.h".
3759 (shell_escape): Use vfork.
3760
3761 2003-06-21 Andrew Cagney <cagney@redhat.com>
3762
3763 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3764 32 bit floating-point register saves.
3765
3766 * frame.h (deprecated_unwind_get_saved_register): Delete.
3767 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3768 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3769 and deprecated_get_next_frame_hack instead of
3770 deprecated_unwind_get_saved_register.
3771
3772 * mips-tdep.c (mips_dump_tdep): Do not print
3773 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3774
3775 * frame.c (get_frame_register): New function.
3776 (frame_unwind_register_signed): New function.
3777 (get_frame_register_signed): New function.
3778 (frame_unwind_register_unsigned): New function.
3779 (get_frame_register_unsigned): New function.
3780 * frame.h: Add comments on naming schema.
3781 (get_frame_register, frame_unwind_register_signed): Declare.
3782 (get_frame_register_signed, get_frame_register_signed): Declare.
3783 (frame_unwind_register_unsigned): Declare.
3784 (get_frame_register_unsigned): Declare.
3785
3786 2003-06-20 Theodore A. Roth <troth@openavr.org>
3787
3788 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3789
3790 2003-06-20 Theodore A. Roth <troth@openavr.org>
3791
3792 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3793 (avr_read_sp): Ditto.
3794
3795 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3796
3797 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3798 * config/arm/nm-linux.h: Likewise.
3799 * config/arm/tm-linux.h: Likewise.
3800 * config/ia64/nm-linux.h: Likewise.
3801 * config/ia64/tm-ia64.h: Likewise.
3802 * config/s390/tm-linux.h: Likewise.
3803 * config/s390/tm-s390.h: Likewise.
3804 * s390-nat.c: Likewise.
3805 * s390-tdep.c: Likewise.
3806
3807 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3808 * config/ia64/linux.mt: Likewise.
3809 * config/m68k/linux.mh: Likewise.
3810 * config/mips/linux.mt: Likewise.
3811 * config/powerpc/linux.mh: Likewise.
3812 * config/sh/linux.mt: Likewise.
3813
3814 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3815
3816 * solib.c (solib_open): Change tests for whether to search
3817 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3818 comments.
3819
3820 2003-06-19 Theodore A. Roth <troth@openavr.org>
3821
3822 * avr-tdep.c (avr_frame_address): Delete function.
3823 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3824 set_gdbarch_frame_args_address.
3825
3826 2003-06-19 Andrew Cagney <cagney@redhat.com>
3827
3828 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3829 (REGISTER_CONVERT_FROM_TYPE): Delete.
3830 (mips_register_convert_to_type): Delete declaration.
3831 (mips_register_convert_from_type): Delete declaration.
3832 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3833 kernel/.
3834
3835 2003-06-19 Michael Snyder <msnyder@redhat.com>
3836
3837 * linux-nat.h: New file.
3838 * linux-nat.c: Include linux-nat.h.
3839 * lin-lwp.c: Include linux-nat.h.
3840 Move struct lwp_info def to linux-nat.h.
3841 * linux-proc.c: Include linux-nat.h.
3842 (linux_make_note_section): Iterate over lwps instead of threads.
3843 (linux_do_thread_registers): Use lwp instead of merged pid.
3844 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3845 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3846 Add dependency on linux_nat_h.
3847
3848 2003-06-19 Theodore A. Roth <troth@openavr.org>
3849
3850 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3851
3852 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3853
3854 * varobj.c (get_type, get_target_type): Use check_typedef.
3855
3856 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3857
3858 * breakpoint.c (insert_catchpoint): Call internal_error.
3859
3860 2003-06-19 Theodore A. Roth <troth@openavr.org>
3861
3862 * avr-tdep.c (avr_push_dummy_code): Delete function.
3863 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3864
3865 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3866
3867 * arch-utils.c (default_prepare_to_proceed): Remove.
3868 (generic_prepare_to_proceed): Remove.
3869 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3870 (generic_prepare_to_proceed): Remove prototype.
3871 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3872 * gdbarch.c: Regenerate.
3873 * gdbarch.h: Regenerate.
3874 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3875 * hppah-nat.c (hppa_switched_threads): Remove.
3876 * infrun.c (prepare_to_proceed): New static function, copied from
3877 generic_prepare_to_proceed. Remove select_it argument.
3878 (proceed): Call prepare_to_proceed.
3879 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3880 variables.
3881 (ptrace_wait): Don't set the removed variables.
3882 (hppa_switched_threads): Remove.
3883 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3884 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3885 (lin_lwp_prepare_to_proceed): Remove prototype.
3886 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3887 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3888
3889 2003-06-18 Theodore A. Roth <troth@openavr.org>
3890
3891 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3892 trad-frame.h.
3893 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3894 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3895 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3896 (AVR_PROLOGUE_*): Enumerate prologue types.
3897 (struct frame_extra_info): Remove.
3898 (struct avr_unwind_cache): Define.
3899 (avr_write_sp): Delete function.
3900 (avr_read_fp): Ditto.
3901 (avr_init_extra_frame_info): Ditto.
3902 (avr_pop_frame): Ditto.
3903 (avr_frame_saved_pc): Ditto.
3904 (avr_saved_pc_after_call): Ditto.
3905 (avr_push_return_address): Ditto.
3906 (avr_frame_chain): Ditto.
3907 (avr_store_struct_return): Ditto.
3908 (avr_push_arguments): Ditto.
3909 (avr_scan_prologue): Update comments. Changed to set up the info for
3910 cache unwinding. Now returns end of prologue PC.
3911 (avr_skip_prologue): Better handling of functions lacking a prologue
3912 by using avr_scan_prologue.
3913 (avr_scan_arg_moves): New function.
3914 (avr_saved_regs_unwinder): Ditto.
3915 (avr_frame_unwind_cache): Ditto.
3916 (avr_unwind_pc): Ditto.
3917 (avr_frame_this_id): Ditto.
3918 (avr_frame_prev_register): Ditto.
3919 (avr_frame_p): Ditto.
3920 (avr_frame_base_address ): Ditto.
3921 (avr_unwind_dummy_id): Ditto.
3922 (avr_push_dummy_code): Ditto.
3923 (push_stack_item): Ditto.
3924 (pop_stack_item): Ditto.
3925 (avr_push_dummy_call): Ditto.
3926 (struct stack_item): Define.
3927 (avr_frame_unwind): Declare structure.
3928 (avr_frame_base): Ditto.
3929 (avr_gdbarch_init): Remove calls to
3930 set_gdbarch_deprecated_init_frame_pc,
3931 set_gdbarch_deprecated_target_read_fp,
3932 set_gdbarch_deprecated_dummy_write_sp,
3933 set_gdbarch_deprecated_fp_regnum,
3934 set_gdbarch_deprecated_push_arguments,
3935 set_gdbarch_deprecated_push_return_address,
3936 set_gdbarch_deprecated_pop_frame,
3937 set_gdbarch_deprecated_store_struct_return,
3938 set_gdbarch_deprecated_frame_init_saved_regs,
3939 set_gdbarch_deprecated_init_extra_frame_info,
3940 set_gdbarch_deprecated_frame_chain,
3941 set_gdbarch_deprecated_frame_saved_pc,
3942 set_gdbarch_deprecated_saved_pc_after_call.
3943 Add calls to set_gdbarch_push_dummy_call,
3944 set_gdbarch_push_dummy_code,
3945 frame_unwind_append_predicate,
3946 frame_base_set_default,
3947 set_gdbarch_unwind_dummy_id,
3948 set_gdbarch_unwind_pc.
3949 Wrap a long line.
3950
3951 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3952
3953 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3954 registers for H8/300S.
3955 (h8300_print_registers_info): Ditto.
3956 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3957
3958 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3959
3960 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3961 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3962 (lin_lwp_wait): Likewise. Update comments.
3963 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3964 (pull_pid_from_list, linux_record_stopped_pid): New.
3965
3966 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3967
3968 * ada-lang.c (scan_discrim_bound): Name first argument.
3969 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3970 declared by ALL_BLOCK_SYMBOLS.
3971
3972 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3973
3974 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3975 ("regcache.h"): Include it.
3976 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3977
3978 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3979
3980 * NEWS: Mention gdbserver detach change and "disconnect" command.
3981 * infcmd.c (disconnect_command): New function.
3982 (_initialize_infcmd): Add ``disconnect'' command.
3983 * remote.c (remote_async_detach): Delete.
3984 (remote_detach): Merge remote_async_detach.
3985 (remote_disconnect): New.
3986 (init_remote_ops): Set to_disconnect.
3987 (init_remote_cisco_ops): Likewise.
3988 (init_remote_async_ops): Likewise. Use remote_detach.
3989 * target.c (cleanup_target): Default to_disconnect.
3990 (update_current_target): Inherit to_disconnect.
3991 (target_disconnect, debug_to_disconnect): New functions.
3992 (setup_target_debug): Set to_disconnect.
3993 * target.h (struct target_ops): Add to_disconnect.
3994 (target_disconnect): Add prototype.
3995
3996 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3997
3998 * breakpoint.c (insert_catchpoint): New function.
3999 (insert_breakpoints): Use catch_exceptions to call
4000 insert_catchpoint. Disable catchpoints if they fail to insert.
4001
4002 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4003
4004 * symfile.c (reread_symbols): Clear sym_private.
4005
4006 2003-06-17 Andrew Cagney <cagney@redhat.com>
4007
4008 * trad-frame.h (struct frame_info): Add opaque declaration.
4009 * remote-fileio.h (struct cmd_list_element): Add opaque
4010 declaration.
4011 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4012 comments.
4013
4014 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4015
4016 * remote.c (remote_prepare_to_store): Replace call to
4017 deprecated_read_register_bytes with multiple regcache_raw_read
4018 calls.
4019
4020 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4021
4022 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4023 (nto_find_and_open_solib): Likewise.
4024 (nto_init_solib_absolute_prefix): Likewise.
4025 (_initialize_nto_tdep): Fix indentation.
4026
4027 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4028
4029 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4030
4031 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4032
4033 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4034
4035 2003-06-17 Jim Blandy <jimb@redhat.com>
4036
4037 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4038
4039 2003-06-16 Theodore A. Roth <troth@openavr.org>
4040
4041 * avr-tdep.c (avr_extract_return_value): New function.
4042 (avr_gdbarch_init): Set extract_return_value method.
4043
4044 2003-06-16 Andrew Cagney <cagney@redhat.com>
4045
4046 * frame.h (deprecated_get_next_frame_hack): Declare.
4047 * frame.c (legacy_saved_regs_prev_register): Only require
4048 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4049 there are always saved regs.
4050 (deprecated_generic_get_saved_register): Do not require
4051 DEPRECATED_FRAME_INIT_SAVED_REGS.
4052 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4053 use frame ID unwind instead.
4054 (deprecated_get_next_frame_hack): New function.
4055
4056 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4057
4058 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4059 (h8300_push_dummy_call): ...this function. Some minor optimization.
4060 (h8300_push_return_address): Remove.
4061 (h8300_gdbarch_init): Remove calls to
4062 set_gdbarch_deprecated_dummy_write_sp,
4063 set_gdbarch_deprecated_push_arguments and
4064 set_gdbarch_deprecated_push_return_address.
4065 Add call to set_gdbarch_push_dummy_call.
4066
4067 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4068
4069 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4070 (E_PSEUDO_EXR_REGNUM): Ditto.
4071 (h8300_is_argument_spill): Check for instructions moving argument
4072 registers into safe registers.
4073 (h8300_skip_prologue): Check for stm instruction to push registers
4074 used for register variables onto stack.
4075 (gdb_print_insn_h8300): Remove.
4076 (h8300_examine_prologue): Add a comment.
4077 (h8300_register_name): Take pseudo registers into account.
4078 (h8300s_register_name): Ditto.
4079 (h8300sx_register_name): Ditto.
4080 (h8300_print_register): Ditto.
4081 (h8300_print_registers_info): Define "nice" printing order.
4082 (h8300_saved_pc_after_call): Take pseudo registers into account.
4083 (h8300_register_type): Ditto. Return type used for remote connection
4084 when requesting real CCR or EXR register, return actual type when
4085 requesting pseudo CCR or EXR.
4086 (h8300_pseudo_register_read): New function.
4087 (h8300_pseudo_register_write): Ditto.
4088 (h8300_dbg_reg_to_regnum): Ditto.
4089 (h8300s_dbg_reg_to_regnum): Ditto.
4090 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4091 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4092 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4093 set_gdbarch_print_insn architecture dependent.
4094 Call set_gdbarch_pseudo_register_read and
4095 set_gdbarch_pseudo_register_write.
4096 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4097
4098 2003-06-16 Andrew Cagney <cagney@redhat.com>
4099
4100 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4101 * gdbarch.h, gdbarch.c: Re-generate.
4102 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4103 * s390-tdep.c (s390_gdbarch_init): Update.
4104 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4105 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4106 * mips-tdep.c (mips_gdbarch_init): Update.
4107 * mcore-tdep.c (mcore_gdbarch_init): Update.
4108 * cris-tdep.c (cris_gdbarch_init): Update.
4109 * infcall.c (call_function_by_hand): Update.
4110 * ia64-tdep.c (ia64_push_arguments): Update comment.
4111 * frame.c (legacy_get_prev_frame): Do not assume
4112 SAVE_DUMMY_FRAME_TOS_P.
4113 * dummy-frame.c (find_dummy_frame): Update comment.
4114
4115 2003-06-16 Andrew Cagney <cagney@redhat.com>
4116
4117 * regcache.c (do_cooked_read): Do not use register_valid_p.
4118
4119 2003-06-15 Theodore A. Roth <troth@openavr.org>
4120
4121 * avr-tdep.c (avr_register_type): Remove a blank line.
4122 (avr_scan_prologue): Correct some comments.
4123
4124 2003-06-15 Theodore A. Roth <troth@openavr.org>
4125
4126 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4127 prologue types.
4128 Properly scan prologues generated by gcc with the -mcall-prologues
4129 option.
4130 Add code to scan -mcall-prologues for mega devices.
4131
4132 2003-06-15 Theodore A. Roth <troth@openavr.org>
4133
4134 * avr-tdep.c (avr_register_byte): Delete function.
4135 (avr_register_raw_size): Delete function.
4136 (avr_register_virtual_size): Delete function.
4137 (avr_register_virtual_type): Delete function.
4138 (avr_register_type): New function.
4139 (avr_address_to_pointer): Remove unused code.
4140 (avr_read_fp): Need to read FP as two separate bytes due to change to
4141 avr_register_type() usage.
4142 (avr_gdbarch_init): Don't set deprecated_register_size.
4143 Don't set deprecated_register_bytes.
4144 Don't set deprecated_register_byte.
4145 Don't set deprecated_register_raw_size.
4146 Don't set deprecated_max_register_raw_size.
4147 Don't set deprecated_register_virtual_size.
4148 Don't set deprecated_max_register_virtual_size.
4149 Don't set deprecated_register_virtual_type.
4150 Set register_type method.
4151
4152 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4153
4154 * Makefile.in (linux-nat.o): Add rule.
4155 * linux-nat.c: New file.
4156 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4157 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4158 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4159 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4160 * config/arm/linux.mh (NATDEPFILES): Likewise.
4161 * config/i386/linux.mh (NATDEPFILES): Likewise.
4162 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4163 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4164 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4165 * config/mips/linux.mh (NATDEPFILES): Likewise.
4166 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4167 * config/s390/s390.mh (NATDEPFILES): Likewise.
4168 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4169
4170 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4171
4172 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4173 replace out-of-date comment.
4174
4175 2003-06-15 Andrew Cagney <cagney@redhat.com>
4176
4177 * rdi-share/host.h (Fail): Change to a varargs function.
4178 * remote-rdi.c (Fail): Update.
4179
4180 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4181
4182 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4183 (i386_convert_register_p, i386_register_to_value,
4184 i386_register_from_value): Handle types longer than 8 bytes.
4185
4186 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4187
4188 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4189 Move floating-point code to new function in i387-tdep.c.
4190 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4191 New functions containing code moved here from i386-tdep.c.
4192 * i387-tdep.h: Add opaque declaration for `struct type'.
4193 (i387_register_to_value, i387_value_to_register): New prototypes.
4194 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4195 (x86_64_init_abi): Set convert_register_p, register_to_value and
4196 value_to_register here.
4197
4198 2003-06-14 Andrew Cagney <cagney@redhat.com>
4199
4200 * mips-tdep.c (mips_register_to_value): Make static.
4201 (mips_value_to_register): Make static.
4202 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4203 * ia64-tdep.c (ia64_register_raw_size): Make static.
4204 (ia64_register_virtual_size): Make static.
4205 (ia64_register_byte): Make static.
4206 * i387-tdep.c: Include "i387-tdep.h".
4207 (print_387_control_word): Delete function.
4208 (print_387_status_word): Delete function.
4209 (print_387_status_bits): Delete function.
4210 (print_387_control_bits): Delete function.
4211 * Makefile.in (i387-tdep.o): Update dependencies.
4212 * rdi-share/host.h (Fail): Declare.
4213 * remote-rdi.c (Fail): Update to match declaration.
4214
4215 2003-06-14 Andrew Cagney <cagney@redhat.com>
4216
4217 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4218 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4219 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4220 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4221 * README: Delete reference to remote-array.
4222 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4223 (remote-array.o): Delete target.
4224 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4225 * remote-array.c: Delete file.
4226
4227 2003-06-14 Andrew Cagney <cagney@redhat.com>
4228 Mark Kettenis <kettenis@gnu.org>
4229
4230 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4231 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4232 parameter with "frame".
4233 * gdbarch.h, gdbarch.c: Re-generate.
4234 * frame.h (put_frame_register): Declare.
4235 * frame.c (put_frame_register): New function.
4236 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4237 (legacy_register_to_value): Rewrite, use "frame" to get the
4238 register value.
4239 (legacy_value_to_register): Rewrite, use "frame" to find the
4240 register's location before storing.
4241 * arch-utils.h (legacy_convert_register_p): Update.
4242 (legacy_register_to_value, legacy_value_to_register): Update.
4243 * findvar.c (value_from_register): Rewrite, eliminate use of
4244 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4245 "frame" to REGISTER_TO_VALUE.
4246 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4247 lval_reg_frame_relative + lval_register branch of the switch. Do
4248 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4249 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4250 I386_EDI_REGNUM): New defines.
4251 (i386_next_regnum, i386_convert_register_p,
4252 i386_register_to_value, i386_value_to_register): New functions.
4253 (i386_register_convertible, i386_register_convert_to_virtual,
4254 i386_convert_to_raw): Remove functions.
4255 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4256 value_to_register instead of register_convertible,
4257 register_convert_to_virtual and register_convert_to_raw.
4258 * mips-tdep.c (mips_convert_register_p): New function.
4259 (mips_value_to_register): Replace mips_register_convert_from_type.
4260 (mips_register_to_value): Replace mips_register_convert_to_type.
4261 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4262 register_to_value.
4263 * alpha-tdep.c (alpha_convert_register_p): Update.
4264 (alpha_value_to_register): Update, store the register.
4265 (alpha_register_to_value): Update, fetch the register.
4266
4267 2003-06-14 Theodore A. Roth <troth@openavr.org>
4268
4269 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4270 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4271 Don't set deprecated_call_dummy_words.
4272 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4273 Don't set remote_translate_xfer_address.
4274 (avr_io_reg_read_command): Remove commented out debug printf.
4275 Wrap a long line.
4276
4277 2003-06-14 Theodore A. Roth <troth@openavr.org>
4278
4279 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4280 causes gdb to seg fault.
4281
4282 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4283
4284 * sparc-nat.c (fetch_inferior_registers): Correct
4285 a reference to "registers".
4286
4287 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4288
4289 * Makefile.in (exc_request_U_h): Define
4290 (exc_request_S_h): Likewise.
4291 (msg_reply_S_h): Likewise.
4292 (msg_U_h): Likewise.
4293 (notify_S_h): Likewise.
4294 (process_reply_S_h): Likewise.
4295 (gnu-nat.o): Depend on gdb_obstack_h
4296 * gnu-nat.c: Include "gdb_obstack.h".
4297
4298 2003-06-13 Andrew Cagney <cagney@redhat.com>
4299
4300 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4301 * gdbarch.h, gdbarch.c: Re-generate.
4302
4303 2003-06-13 Andrew Cagney <cagney@redhat.com>
4304
4305 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4306 when deprecated REGISTER macros can be deleted.
4307 * gdbarch.h, gdbarch.c: Re-generate.
4308
4309 2003-06-13 Jim Blandy <jimb@redhat.com>
4310
4311 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4312 Linux entry point symbols for _dl_debug_state, too.
4313
4314 2003-06-13 Andrew Cagney <cagney@redhat.com>
4315
4316 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4317 available, do not use the FP register, and always save the TOS.
4318 * dummy-frame.c (dummy_frame_this_id): Do not assert
4319 SAVE_DUMMY_FRAME_TOS.
4320 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4321 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4322 (i386_push_dummy_call): Add 8 to the returned SP.
4323 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4324 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4325 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4326 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4327 (x86_64_push_dummy_call): Return "sp + 16".
4328 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4329 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4330 save_dummy_frame_tos.
4331
4332 2003-06-13 Jim Blandy <jimb@redhat.com>
4333
4334 * frv-tdep.c (frv_use_struct_convention): Delete static
4335 declaration for function deleted in my change of 2003-06-12.
4336
4337 2003-06-13 Theodore A. Roth <troth@openavr.org>
4338
4339 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4340 (avr_pointer_to_address): Shift code addrs left 1 bit.
4341 (avr_convert_from_func_ptr_addr): Delete function since operation is
4342 better handled by avr_address_to_pointer and avr_pointer_to_address.
4343 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4344
4345 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4346
4347 From Kelley Cook <kelleycook@wideopenwest.com>:
4348 * configure.host: Accept i[34567]86 variants.
4349 * configure.tgt: Likewise.
4350 * nlm/configure.in: Likewise.
4351 * nlm/configure: Regenerated.
4352
4353 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4354
4355 * arm-tdep.c (solib-svr4.h): Dont' include it.
4356 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4357 * arm-linux-tdep.c: ... here. Make static.
4358 (arm_linux_init_abi): Register it.
4359 (solib-svr4.h): Include it.
4360 * Makefile.in: Update dependencies.
4361 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4362 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4363
4364 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4365
4366 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4367 indicate registers used for return values.
4368 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4369 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4370 members.
4371 (h8300_init_extra_frame_info): Ditto.
4372 (h8300_frame_locals_address): Removed.
4373 (h8300_frame_args_address): Removed.
4374 (h8300_extract_return_value): Use new regcache structure. Only care
4375 for 16 bit CPUs.
4376 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4377 (h8300_store_return_value): Use new regcache structure. Only care
4378 for 16 bit CPUs.
4379 (h8300h_store_return_value): Same function for 32 bit CPUs.
4380 (h8300_store_struct_return): Removed.
4381 (h8300_extract_struct_value_address): Use new regcache structure.
4382 (h8300h_extract_struct_value_address): Removed.
4383 (h8300_push_dummy_code): New function.
4384 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4385 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4386 set_gdbarch_store_return_value architecture dependent.
4387 Call set_gdbarch_push_dummy_code and
4388 set_gdbarch_extract_struct_value_address.
4389 Remove calls to set_gdbarch_frame_args_address,
4390 set_gdbarch_frame_locals_address,
4391 set_gdbarch_deprecated_store_struct_return,
4392 set_gdbarch_deprecated_extract_return_value,
4393 set_gdbarch_deprecated_extract_struct_value_address,
4394 set_gdbarch_deprecated_call_dummy_words and
4395 set_gdbarch_deprecated_sizeof_call_dummy_words.
4396
4397 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4398
4399 * h8300-tdep.c (h8300_register_byte): Remove.
4400 (h8300h_register_byte): Remove.
4401 (h8300_register_virtual_type): Remove. Substitute by...
4402 (h8300_register_type): New function.
4403 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4404 (h8300h_extract_struct_value_address): Ditto.
4405 (h8300_gdbarch_init): Drop calls to
4406 set_gdbarch_deprecated_register_byte and
4407 set_gdbarch_deprecated_register_virtual_type.
4408 Add call to set_gdbarch_register_type.
4409
4410 2003-06-13 Andrew Cagney <cagney@redhat.com>
4411
4412 * gdbarch.sh: Update comments on registers.
4413 (deprecated_register_byte): Rename register_byte.
4414 (deprecated_register_raw_size): Rename register_raw_size.
4415 (deprecated_register_virtual_size): Rename register_virtual_size.
4416 (deprecated_register_virtual_type): Rename register_virtual_type.
4417 * gdbarch.h, gdbarch.c: Re-generate.
4418 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4419 * vax-tdep.c (vax_gdbarch_init): Update.
4420 * v850-tdep.c (v850_gdbarch_init): Update.
4421 * sparc-tdep.c (sparc_gdbarch_init): Update.
4422 * sh-tdep.c (sh_gdbarch_init): Update.
4423 * s390-tdep.c (s390_gdbarch_init): Update.
4424 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4425 * ns32k-tdep.c: Update.
4426 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4427 * mips-tdep.c (mips_gdbarch_init): Update.
4428 * mcore-tdep.c (mcore_gdbarch_init): Update.
4429 * m68k-tdep.c (m68k_gdbarch_init): Update.
4430 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4431 * ia64-tdep.c (ia64_gdbarch_init): Update.
4432 * hppa-tdep.c (hppa_gdbarch_init): Update.
4433 * h8300-tdep.c (h8300_gdbarch_init): Update.
4434 * frv-tdep.c (frv_gdbarch_init): Update.
4435 * cris-tdep.c (cris_gdbarch_init): Update.
4436 * avr-tdep.c (avr_gdbarch_init): Update.
4437 * alpha-tdep.c (alpha_gdbarch_init): Update.
4438 * arm-tdep.c (arm_gdbarch_init): Update.
4439
4440 2003-06-13 Andrew Cagney <cagney@redhat.com>
4441
4442 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4443 mips_o32_use_struct_convention with always_use_struct_convention.
4444
4445 2003-06-12 David Carlton <carlton@kealia.com>
4446
4447 * cp-namespace.c (cp_set_block_scope): Comment out
4448 processing_has_namespace_info branch.
4449
4450 2003-06-12 Jim Blandy <jimb@redhat.com>
4451
4452 Recognize and skip 64-bit PowerPC Linux linkage functions.
4453 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4454 insn_pattern, insns_match_pattern, d_field, ds_field): New
4455 functions, macros, and types for working with PPC instructions.
4456 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4457 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4458 ppc64_skip_trampoline_code): New functions, variables, and macros
4459 for recognizing and skipping linkage functions.
4460 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4461 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4462
4463 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4464 register offsets for both the 32- and 64-bit interfaces.
4465
4466 Actually finish the job started by my change of 2003-05-29.
4467 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4468 other #definition of this.
4469 (ppc_linux_skip_trampoline_code): Remove declaration.
4470 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4471 static.
4472 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4473 method for GDBARCH.
4474
4475 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4476 'long' on ppc64-*-linux*.
4477
4478 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4479 isn't #defined, assume the register doesn't exist: act as if
4480 tdep->ppc_mq_regnum were -1.
4481
4482 * configure.host, configure.tgt: Add entries for
4483 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4484 powerpc/linux.mt.
4485 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4486 New files.
4487
4488 * arch-utils.c (always_use_struct_convention): New function.
4489 * arch-utils.h (always_use_struct_convention): New prototype.
4490 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4491 (alpha_gdbarch_init): Register always_use_struct_convention,
4492 instead of alpha_use_struct_convention.
4493 * cris-tdep.c (cris_use_struct_convention): Delete.
4494 (cris_gdbarch_init): Register always_use_struct_convention,
4495 instead of cris_use_struct_convention.
4496 * frv-tdep.c (frv_use_struct_convention): Delete.
4497 (frv_gdbarch_init): Register always_use_struct_convention,
4498 instead of frv_use_struct_convention.
4499 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4500 (h8300_gdbarch_init): Register always_use_struct_convention,
4501 instead of h8300_use_struct_convention.
4502 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4503 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4504 instead of mips_o32_use_struct_convention.
4505
4506 2003-06-12 Andrew Cagney <cagney@redhat.com>
4507
4508 * wince.c: Include "mips-tdep.h".
4509 * mips-tdep.h (mips_next_pc): Declare.
4510 * mcore-tdep.c: Make more local functions static.
4511 * Makefile.in (wince.o): Update dependencies.
4512
4513 2003-06-12 David Carlton <carlton@kealia.com>
4514
4515 * symtab.c (lookup_symbol_aux_minsyms): Replace
4516 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4517 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4518 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4519 SYMBOL_NATURAL_NAME.
4520
4521 2003-06-12 Andreas Schwab <schwab@suse.de>
4522
4523 * Makefile.in (tuiDisassem.o): Update dependencies.
4524
4525 2003-06-12 David Carlton <carlton@bactrian.org>
4526
4527 * symtab.h: Delete declaration of make_symbol_overload_list.
4528 Add declaration of lookup_partial_symbol.
4529 * symtab.c (remove_params): Move to cp-support.c.
4530 (overload_list_add_symbol, make_symbol_overload_list)
4531 (sym_return_val_size, sym_return_val_index): Ditto.
4532 (lookup_partial_symbol): Make extern.
4533 * cp-support.h: Add declaration of make_symbol_overload_list.
4534 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4535 symtab.h, and block.h.
4536 (remove_params): Move here from symtab.c.
4537 (overload_list_add_symbol, make_symbol_overload_list)
4538 (sym_return_val_size, sym_return_val_index): Ditto.
4539 * valops.c: Include cp-support.h.
4540 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4541 frame_h, and block_h.
4542 (valops.o): Depend on cp_support_h.
4543
4544 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4545
4546 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4547 substitute by NUM_REGS throughout.
4548 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4549 (h8300s_register_name): New function for H8S registers.
4550 (h8300sx_register_name): Ditto for H8SX registers.
4551 (h8300_print_register): Revise register printing, avoid depending
4552 on 32 bit long.
4553 (h8300_register_byte): Only care for H8/300 registers.
4554 (h8300h_register_byte): New function for any other architecture.
4555 (h8300_register_raw_size): Remove.
4556 (h8300_register_virtual_type): Revise to return actually useful
4557 type.
4558 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4559 (h8300h_extract_struct_value_address): New function for any other
4560 architecture.
4561 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4562 set_gdbarch_register_name, set_gdbarch_register_byte,
4563 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4564 Remove calls to set_gdbarch_deprecated_register_size,
4565 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4566 set_gdbarch_deprecated_max_register_raw_size,
4567 set_gdbarch_register_virtual_size and
4568 set_gdbarch_deprecated_max_register_virtual_size entirely.
4569 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4570 set_gdbarch_long_double_bit.
4571
4572 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4573
4574 * doublest.c (convert_doublest_to_floatformat): When dealing
4575 with the implied integer bit, only alter mant_bits if we are
4576 processing a full 32 bits of mantissa.
4577
4578 2003-06-11 David Carlton <carlton@bactrian.org>
4579
4580 * dictionary.h: New.
4581 * dictionary.c: New.
4582 * block.h: Add opaque declaration for struct dictionary.
4583 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4584 'sym' members.
4585 (BLOCK_DICT): New macro.
4586 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4587 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4588 BLOCK_SHOULD_SORT.
4589 (ALL_BLOCK_SYMBOLS): Update definition.
4590 * Makefile.in (SFILES): Add dictionary.c.
4591 (dictionary_h): New.
4592 (COMMON_OBS): Add dictionary.o.
4593 (dictionary.o): New.
4594 (ada-lang.o): Depend on dictionary_h.
4595 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4596 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4597 (mi-cmd-stack.o): Ditto.
4598 (gdbtk-cmds.o): Update dependencies.
4599 (gdbtk-stack.o): Ditto.
4600 * ada-lang.c: Include dictionary.h.
4601 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4602 (fill_in_ada_prototype, debug_print_block): Ditto.
4603 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4604 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4605 'is_sorted'.
4606 * mdebugread.c: Include dictionary.h.
4607 (struct parse_stack): Delete 'maxsyms' member.
4608 (parse_symbol): Update calls to new_block. Delete calls to
4609 shrink_block. Use dictionary methods.
4610 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4611 Update calls to new_symtab. Don't maintain maxsyms data.
4612 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4613 (add_symbol): Just call dict_add_symbol.
4614 (new_symtab): Delete 'maxsyms' argument.
4615 (new_symtab): Update calls to new_block.
4616 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4617 (shrink_block): Delete function.
4618 (fixup_sigtramp): Update call to new_block. Add symbol via
4619 dict_add_symbol.
4620 * jv-lang.c: Include dictionary.h.
4621 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4622 appropriately. Set class_symtab->free_func. Make sure the
4623 blockvector is big enough to hold two blocks.
4624 (add_class_symtab_symbol): Use dictionary methods.
4625 (free_class_block): New function.
4626 (type_from_class): Replace explicit iteration by
4627 ALL_BLOCK_SYMBOLS.
4628 * symtab.h (struct symtab): Replace 'free_ptr' method by
4629 'free_func'.
4630 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4631 sort_symtab_syms.
4632 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4633 sort_symtab_syms.
4634 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4635 Include dictionary.h.
4636 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4637 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4638 sort_symtab_syms.
4639 * objfiles.c: Include dictionary.h.
4640 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4641 * buildsym.c: Include dictionary.h.
4642 (finish_block): Use dictionary methods.
4643 (end_symtab): Set free_func to NULL, not free_ptr.
4644 * tracepoint.c: Include dictionary.h.
4645 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4646 (scope_info): Ditto.
4647 * stack.c: Include dictionary.h.
4648 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4649 (print_block_frame_labels, print_frame_arg_vars)
4650 (print_frame_args): Ditto.
4651 * symmisc.c (free_symtab_block): Use dictionary methods.
4652 (dump_symtab): Ditto.
4653 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4654 Include dictionary.h.
4655 * symfile.h: Delete declarations of sort_block_syms,
4656 sort_symtab_syms.
4657 * symfile.c (sort_block_syms): Delete.
4658 (sort_symtab_syms): Delete.
4659 * symtab.c: Include dictionary.h.
4660 (lookup_block_symbol): Use dictionary iterators.
4661 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4662 (search_symbols, make_symbol_completion_list): Ditto.
4663 (make_symbol_overload_list): Ditto.
4664 * valops.c (value_of_local): Use dict_empty.
4665 Include dictionary.h.
4666
4667 2003-06-11 J. Brobecker <brobecker@gnat.com>
4668
4669 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4670
4671 2003-06-11 David Carlton <carlton@bactrian.org>
4672
4673 * block.h (BLOCK_SHOULD_SORT): Delete.
4674 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4675 blocks.
4676 * ada-lang.c (ada_add_block_symbols): Ditto.
4677 * symfile.c (sort_block_syms): Delete.
4678 (sort_symtab_syms): Ditto.
4679 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4680 declarations.
4681 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4682 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4683 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4684 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4685 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4686 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4687 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4688
4689 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4690
4691 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4692 bits to 128.
4693
4694 2003-06-11 Andrew Cagney <cagney@redhat.com>
4695
4696 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4697 REGISTER_CONVERTIBLE.
4698 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4699 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4700 * gdbarch.h, gdbarch.c: Re-generate.
4701 * arch-utils.h (deprecated_register_convertible_not): Rename
4702 generic_register_convertible_not.
4703 * arch-utils.c (deprecated_register_convertible_not): Rename
4704 generic_register_convertible.
4705 (legacy_convert_register_p, legacy_register_to_value): Update.
4706 * sh-tdep.c (sh64_push_arguments): Update.
4707 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4708 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4709 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4710 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4711 * arch-utils.c (legacy_value_to_register): Update.
4712 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4713 (rs6000_register_convert_to_raw): Make parameter "from" const.
4714 * mips-tdep.c (mips_gdbarch_init): Update.
4715 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4716 * infcmd.c (default_print_registers_info): Update.
4717 * ia64-tdep.c (ia64_gdbarch_init): Update.
4718 (ia64_register_convert_to_raw): Make parameter "from" const.
4719 * i386-tdep.c (i386_gdbarch_init): Update.
4720 (i386_register_convert_to_raw): Update.
4721
4722 2003-06-11 Andrew Cagney <cagney@redhat.com>
4723
4724 * remote-fileio.c: Include "remote-fileio.h".
4725 * Makefile.in (remote-fileio.o): Update dependencies.
4726 (remote_fileio_h): Fix typo.
4727
4728 2003-06-11 Andrew Cagney <cagney@redhat.com>
4729
4730 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4731 (xstormy16_save_dummy_frame_tos): Make static.
4732 (_initialize_xstormy16_tdep): Add declaration.
4733 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4734 * v850-tdep.c: Make local functions static.
4735 (_initialize_v850_tdep): Add declaration.
4736 * sparc-tdep.c: Make local functions static.
4737 (_initialize_sparc_tdep): Add declaration.
4738 * sh-tdep.c: Make local functions static.
4739 (_initialize_sh_tdep): Add declaration.
4740 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4741 * s390-tdep.c: Make local functions static.
4742 (_initialize_s390_tdep): Add declaration.
4743 * dbxread.c (find_stab_function_addr): Make static.
4744 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4745 * ocd.c (_initialize_remote_ocd): Add declaration.
4746 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4747 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4748 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4749 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4750 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4751 * remote-array.c (_initialize_array): Add declaration.
4752 (_initialize_remote_monitors): Add declaration.
4753 * remote-mips.c: Make local functions static.
4754 (_initialize_remote_mips): Add declaration.
4755 * mcore-tdep.c: Make all local functions static.
4756 (_initialize_mcore_tdep): Add declaration.
4757 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4758 * abug-rom.c (_initialize_abug_rom): Add declaration.
4759 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4760 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4761 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4762 * remote-est.c (_initialize_est): Add declaration.
4763 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4764 (m68hc11_call_dummy_address): Make static.
4765 * ia64-tdep.c: Make local functions static.
4766 (_initialize_ia64_tdep): Add declaration.
4767 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4768 * monitor.c (monitor_wait_filter): Make static.
4769 (_initialize_remote_monitors): Add declaration.
4770 * remote-hms.c (_initialize_remote_hms): Add declaration.
4771 * remote-e7000.c (fetch_regs_from_dump): Make static.
4772 (expect_n): Make static.
4773 (_initialize_remote_e7000): Add declaration.
4774 * ser-e7kpc.c: Always include "defs.h".
4775 (_initialize_ser_e7000pc): Add declaration.
4776 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4777 * cris-tdep.c: Make all but one function static.
4778 (_initialize_cris_tdep): Add declaration.
4779 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4780 * solib.c (update_solib_list): Make static.
4781 (_initialize_solib): Add declaration.
4782 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4783 (_initialize_avr_tdep): Add declaration.
4784 * remote-rdi.c (voiddummy): Make static.
4785 (_initialize_remote_rdi): Add declaration.
4786 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4787 * remote-rdp.c (send_rdp): Make static.
4788 (_initialize_remote_rdp): Add declaration.
4789 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4790
4791 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4792
4793 * remote-fileio.c: Make ari happy.
4794
4795 2003-06-10 J. Brobecker <brobecker@gnat.com>
4796
4797 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4798 fetching the trailing bytes of the buffer we are about to write.
4799
4800 2003-06-10 Andrew Cagney <cagney@redhat.com>
4801
4802 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4803 * Makefile.in (remote-fileio.o): Update dependencies.
4804 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4805 include <setjmp.h>, or <sys/types.h> conditional on USG.
4806 (remote_fio_jmp_buf): Delete global variable.
4807
4808 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4809 Martin M. Hunt <hunt@redhat.com>
4810
4811 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4812 (SFILES): Add remote-fileio.c.
4813 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4814 dependencies for building remote.o.
4815 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4816 * remote-fileio.h: New header file defining remote File-I/O interface.
4817 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4818 static storage class.
4819 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4820 'F' packet.
4821 (_initialize_remote): Call initialize_remote_fileio().
4822 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4823 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4824 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4825 (captured_main): Initialize new ui_files.
4826 * ui-file.c: Add read and fgets input functions.
4827 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4828 (null_file_read): New function.
4829 (ui_file_read): New function.
4830 (set_ui_file_read): New function.
4831 (stdio_file_read): New function.
4832 * ui-file.h: New type ui_file_read_ftype.
4833 (set_ui_file_read): Declare.
4834 (ui_file_read): Declare.
4835
4836 2003-06-09 Andrew Cagney <cagney@redhat.com>
4837
4838 * frame.h (deprecated_unwind_get_saved_register): Rename
4839 generic_unwind_get_saved_register, update comments.
4840 * mips-tdep.c (mips_get_saved_register): Update.
4841 * frame.c (deprecated_unwind_get_saved_register): Update.
4842
4843 2003-06-09 Andrew Cagney <cagney@redhat.com>
4844
4845 * vax-tdep.c (vax_frame_locals_address): Delete function.
4846 (vax_gdbarch_init): Do not set frame_locals_address.
4847 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4848 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4849 * s390-tdep.c (s390_frame_args_address): Delete function.
4850 (s390_gdbarch_init): Do not set frame_args_address or
4851 frame_locals_address.
4852 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4853 (ns32k_gdbarch_init): Do not set frame_locals_address.
4854 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4855 (hppa_frame_locals_address): Delete function.
4856 (hppa_gdbarch_init): Do not set frame_args_address, or
4857 frame_locals_address.
4858 * arm-tdep.c (arm_frame_args_address): Delete.
4859 (arm_frame_locals_address): Delete.
4860 (arm_gdbarch_init): Do not set frame_args_address, or
4861 frame_locals_address.
4862
4863 2003-06-09 Andrew Cagney <cagney@redhat.com>
4864
4865 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4866 * gdbarch.h, gdbarch.c: Re-generate.
4867 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4868 * arch-utils.c (frame_num_args_unknown): Delete function.
4869 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4870 (frame_info): Use FRAME_NUM_ARGS_P.
4871 * arm-tdep.c (arm_frame_num_args): Delete function.
4872 (arm_gdbarch_init): Do not set frame_num_args.
4873 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4874 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4875 (hppa_gdbarch_init): Do not set frame_num_args.
4876 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4877 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4878 frame_num_args to default frame_num_args_unknown.
4879 * v850-tdep.c (v850_gdbarch_init): Ditto.
4880 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4881 * sh-tdep.c (sh_gdbarch_init): Ditto.
4882 * s390-tdep.c (s390_gdbarch_init): Ditto.
4883 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4884 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4885 * mips-tdep.c (mips_gdbarch_init): Ditto.
4886 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4887 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4888 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4889 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4890 * i386-tdep.c (i386_gdbarch_init): Ditto.
4891 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4892 * frv-tdep.c (frv_gdbarch_init): Ditto.
4893 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4894 * cris-tdep.c (cris_gdbarch_init): Ditto.
4895 * avr-tdep.c (avr_gdbarch_init): Ditto.
4896 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4897
4898 2003-06-09 Andrew Cagney <cagney@redhat.com>
4899
4900 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4901 (print_frame_args): Moved to "stack.c".
4902 * stack.c: Include "gdb_assert.h".
4903 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4904 (print_frame_args): Moved from "printcmd.c".
4905 * frame.h (print_frame_args): Delete declaration.
4906 * Makefile.in (stack.o): Update dependencies.
4907
4908 2003-06-08 Andrew Cagney <cagney@redhat.com>
4909
4910 * frame.c (get_prev_frame): Remove reference to
4911 frame_args_address_correct in comments.
4912 * frame-base.c (default_frame_args_address): Delete code
4913 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4914 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4915 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4916 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4917 (vax_frame_args_address_correct): Delete declaration.
4918
4919 2003-06-08 Andrew Cagney <cagney@redhat.com>
4920
4921 * gdbarch.sh (UNWIND_SP): Add.
4922 * gdbarch.h, gdbarch.c: Re-generate.
4923 * frame.c (frame_sp_unwind): New function.
4924 (get_frame_sp): New function.
4925 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4926 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4927 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4928 value.
4929 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4930 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4931
4932 2003-06-08 Andrew Cagney <cagney@redhat.com>
4933
4934 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4935 REMOTE_BREAKPOINT.
4936 * remote.c: Update.
4937 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4938 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4939 * config/m68k/tm-sun3.h: Update.
4940 * config/m68k/tm-m68klynx.h: Update.
4941 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4942
4943 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4944 trad_frame". Update comments.
4945 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4946 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4947 (trad_frame_register_value, trad_frame_prev_register): Update.
4948
4949 2003-06-08 Andrew Cagney <cagney@redhat.com>
4950
4951 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4952 from GCC's acinclude.m4.
4953 * configure.in: Check for getopt's delcaration.
4954 * aclocal.m4, config.in, configure: Re-generate.
4955 * main.c (error_init): Delete declaration.
4956 * defs.h (error_init): Declare.
4957 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4958 (rs6000_convert_from_func_ptr_addr): Make static.
4959 (_initialize_rs6000_tdep): Add declaration.
4960 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4961 (show_commands, set_verbose, show_history): Delete declaration.
4962 * top.h (set_verbose): Add declaration.
4963 (show_history, set_history, show_commands): Add declaration.
4964 (do_restore_instream_cleanup): Add declaration.
4965 * objc-lang.c (specialcmp): Make static.
4966 (print_object_command): Make static.
4967 (find_objc_msgsend): Make static.
4968 (find_objc_msgcall_submethod_helper): Make static.
4969 (find_objc_msgcall_submethod): Make static.
4970 (_initialize_objc_language): Add declaration.
4971 (find_implementation_from_class): Make static.
4972 (find_implementation): Make static.
4973 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4974 * objc-lang.h (lookup_struct_typedef): Add declaration.
4975 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4976 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4977 (do_restore_user_call_depth): Make static.
4978 (do_restore_instream_cleanup): Delete declaration.
4979 (dont_repeat): Delete declaration.
4980 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4981 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4982 * reggroups.c (_initialize_reggroup): Add declaration.
4983 * cp-support.c (_initialize_cp_support): Add declaration.
4984 * cp-abi.c (_initialize_cp_abi): Add declaration.
4985 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4986 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4987 (_initialize_gnu_v3_abi): Add declaration.
4988 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4989 (_initialize_gnu_v2_abi): Add declaration.
4990 * frame-base.c (_initialize_frame_base): Add declaration.
4991 * doublest.c (floatformat_from_length): Make static.
4992 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4993 * frame.c (create_sentinel_frame): Make static.
4994 (_initialize_frame): Add declaration.
4995 * top.c (do_catch_errors): Make static.
4996 (gdb_rl_operate_and_get_next_completion): Make static.
4997 * typeprint.c: Include "typeprint.h".
4998 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4999 (sentinel_frame_this_id): Make static.
5000 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5001 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5002 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5003 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5004 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5005 * maint.c (maintenance_print_architecture): Make static.
5006 * signals/signals.c (_initialize_signals): Add declaration.
5007 * std-regs.c (_initialize_frame_reg): Add declaration.
5008 * jv-exp.y (push_variable): ISO C definition.
5009 (push_qualified_expression_name): Ditto.
5010 * memattr.c (_initialize_mem): Add declaration.
5011 * remote.c (remote_check_watch_resources): Make static.
5012 (remote_stopped_by_watchpoint): Make static.
5013 (remote_stopped_data_address): Make static.
5014 * d10v-tdep.c (nr_dmap_regs): Make static.
5015 (a0_regnum): Make static.
5016 (d10v_frame_unwind_cache): Make static.
5017 (d10v_frame_p): Make static.
5018 * osabi.c (show_osabi): Make static.
5019 (_initialize_gdb_osabi): Add extern declaration.
5020 * gdbtypes.c (make_qualified_type): Make static.
5021 (safe_parse_type): Make static.
5022 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5023 * macrotab.c (macro_bcache_free): Make static.
5024 * interps.c (interp_set_quiet): Make static.
5025 (interpreter_exec_cmd): Make static.
5026 * stack.h (select_frame_command): New file.
5027 * stack.c: Include "stack.h".
5028 (select_frame_command_wrapper): Delete function.
5029 (select_frame_command): Make global.
5030 * infcall.c: Include "infcall.h".
5031 * linespec.c: Include "linespec.h".
5032 * symfile.c (sections_overlap): Make static.
5033 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5034 * charset.c (_initialize_charset): Add missing prototype.
5035 * regcache.c (init_legacy_regcache_descr): Make static.
5036 (do_regcache_xfree): Make static.
5037 (regcache_xfer_part): Make static.
5038 (_initialize_regcache): Add missing prototype.
5039 * breakpoint.c (parse_breakpoint_sals): Make static.
5040 (breakpoint_sals_to_pc): Make static.
5041 * interps.h (clear_interpreter_hooks): ISO C declaration.
5042 * Makefile.in (stack_h): Define.
5043 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5044 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5045
5046 2003-06-08 Andrew Cagney <cagney@redhat.com>
5047
5048 * Makefile.in (d10v-tdep.o): Update dependencies.
5049 (SFILES): Add trad-frame.c.
5050 (trad_frame_h): Define.
5051 (COMMON_OBS): Add trad-frame.o.
5052 (trad-frame.o): Specify dependencies.
5053 * d10v-tdep.c: Include "trad-frame.h".
5054 (saved_regs_unwinder): Delete function.
5055 (d10v_frame_prev_register): Use trad_frame_prev_register.
5056 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5057 trad_frame", delete "regs" and "prev_sp".
5058 (prologue_find_regs): Use trad-frame.
5059 * trad-frame.h, trad-frame.c: New files.
5060
5061 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5062
5063 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5064
5065 2003-06-07 Adam Fedor <fedor@gnu.org>
5066
5067 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5068 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5069 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5070 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5071 resolve_msgsend_super, resolve_msgsend_super_stret):
5072 Use it.
5073
5074 2003-06-07 Andrew Cagney <cagney@redhat.com>
5075
5076 * symfile.h: Re-indent, clean up comments.
5077
5078 2003-06-07 Andrew Cagney <cagney@redhat.com>
5079
5080 * inferior.h (deprecated_write_sp): Replace
5081 generic_target_write_sp.
5082 * regcache.c (deprecated_write_sp): Replace
5083 generic_target_write_sp.
5084 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5085 * vax-tdep.c (vax_gdbarch_init): Update.
5086 * v850-tdep.c (v850_gdbarch_init): Update.
5087 * sparc-tdep.c (sparc_gdbarch_init): Update.
5088 * sh-tdep.c (sh_gdbarch_init): Update.
5089 * s390-tdep.c (s390_gdbarch_init): Update.
5090 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5091 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5092 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5093 * mcore-tdep.c (mcore_gdbarch_init): Update.
5094 * m68k-tdep.c (m68k_gdbarch_init): Update.
5095 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5096 * ia64-tdep.c (ia64_gdbarch_init): Update.
5097 * h8300-tdep.c (h8300_gdbarch_init): Update.
5098 * frv-tdep.c (frv_gdbarch_init): Update.
5099 * cris-tdep.c (cris_gdbarch_init): Update.
5100 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5101
5102 2003-06-07 Andrew Cagney <cagney@redhat.com>
5103
5104 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5105 Assert that PC_REGNUM is valid.
5106 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5107
5108 2003-06-07 Andrew Cagney <cagney@redhat.com>
5109
5110 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5111 * gdbarch.h, gdbarch.c: Regenerate.
5112 * mn10300-tdep.c: Include "gdb_assert.h".
5113 (mn10300_read_fp): New function.
5114 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5115 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5116 * ia64-tdep.c: Include "gdb_assert.h".
5117 (ia64_read_fp): New function.
5118 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5119 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5120 * regcache.c (generic_target_read_sp): Delete function.
5121 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5122 * inferior.h (generic_target_read_sp): Delete declaration.
5123 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5124 generic_target_read_sp.
5125 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5126 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5127 * sh-tdep.c (sh_gdbarch_init): Ditto.
5128 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5129 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5130
5131 2003-06-07 Andrew Cagney <cagney@redhat.com>
5132
5133 * gdbarch.sh: Comment each field of startup_gdbarch.
5134 * gdbarch.h, gdbarch.c: Re-generate.
5135
5136 2003-06-07 Andrew Cagney <cagney@redhat.com>
5137
5138 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5139 * gdbarch.h, gdbarch.c: Re-generate.
5140 * regcache.c: Update comments on read_pc et.al.
5141 (generic_target_read_pc): Delete function.
5142 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5143 * inferior.h (generic_target_read_pc): Delete declaration.
5144 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5145 generic_target_read_pc.
5146 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5147 * sh-tdep.c (sh_gdbarch_init): Ditto.
5148 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5149 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5150
5151 2003-06-07 Andrew Cagney <cagney@redhat.com>
5152
5153 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5154 "index" with "special_local_sect". Use strcmp instead of STREQ.
5155 Append period to coments.
5156
5157 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5158
5159 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5160 (elfstab_offset_sections): Likewise.
5161 * gdb-stabs.h (stab_section_info): Likewise.
5162 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5163 * objfiles.c (objfile_relocate): Likewise.
5164 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5165 * remote.c (get_offsets): Likewise.
5166 (remote_cisco_objfile_relocate): Likewise.
5167 * somread.c (som_symfile_offsets): Likewise.
5168 * symfile.c (alloc_section_addr_info): New function.
5169 (build_section_addr_info_from_section_tab): Use it.
5170 (free_section_addr_info): Adjust.
5171 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5172 (syms_from_objfile): Allocate local_addr dynamically.
5173 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5174 dynamically.
5175 (add_symbol_file_command): Allocate sect_opts dynamically.
5176 (reread_symbols): Avoid use of SECT_OFF_MAX.
5177 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5178 (alloc_section_addr_info): Declare it.
5179 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5180 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5181 dynamically.
5182 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5183
5184 2003-06-06 Andrew Cagney <cagney@redhat.com>
5185
5186 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5187 (d10v_frame_unwind_cache): Do not set "return_pc".
5188
5189 2003-06-06 Michael Snyder <msnyder@redhat.com>
5190
5191 * h8300-tdep.c: Make tidy (long lines).
5192
5193 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5194
5195 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5196 to regcache_collect().
5197
5198 2003-06-05 J. Brobecker <brobecker@gnat.com>
5199
5200 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5201 pc_in_sigtramp multiarch method.
5202 (hppa_hpux_som_init_abi): Use it.
5203 (hppa_hpux_elf_init_abi): Likewise.
5204 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5205 macro has been multiarched.
5206 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5207 macro here, as hppa64 isn't multiarched yet.
5208
5209 2003-06-05 Andrew Cagney <cagney@redhat.com>
5210
5211 * Makefile.in (value_h): Add $(frame_h).
5212 * value.h: Include "frame.h".
5213 (struct value): Replace "frame_addr" with "frame_id".
5214 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5215 * values.c (allocate_value): Use VALUE_FRAME_ID.
5216 (value_copy): Use VALUE_FRAME_ID.
5217 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5218 * valops.c (value_assign): Update. Use frame_find_by_id.
5219
5220 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5221
5222 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5223 in each pass.
5224
5225 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5226
5227 * thread-db.c (check_event): For create/death event breakpoints,
5228 loop through all messages to ensure that we read the message
5229 corresponding to the breakpoint we are at.
5230
5231 2003-06-04 Michael Snyder <msnyder@redhat.com>
5232
5233 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5234
5235 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5236
5237 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5238 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5239 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5240 when handling .eh_frame sections.
5241
5242 2003-06-04 J. Brobecker <brobecker@gnat.com>
5243
5244 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5245 prepare_to_proceed procedure instead of the hppa-specific one.
5246 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5247
5248 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5249
5250 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5251 * config.in: Regenerated.
5252 * configure.in: Add test for syscall function and check for
5253 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5254 * configure: Regenerated.
5255 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5256 <sys/syscall.h>.
5257 (kill_lwp): New function that uses tkill syscall or
5258 uses kill, depending on whether threading model is nptl or not.
5259 All callers of kill() changed to use kill_lwp().
5260 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5261 see if all threads have already exited in the nptl model.
5262 (stop_and_resume_callback): New callback function used by the
5263 lin_lwp_wait thread exit handling code.
5264 (stop_wait_callback): Check for threads already having exited and
5265 delete such threads fromt the lwp list when discovered.
5266 (stop_callback): Don't assert retcode of kill call.
5267
5268 Roland McGrath <roland@redhat.com>
5269 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5270 nptl libthread_db.
5271
5272 2003-06-03 Richard Henderson <rth@redhat.com>
5273
5274 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5275 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5276 (alpha_sigtramp_frame_prev_register): Likewise.
5277 (alpha_heuristic_frame_prev_register): Likewise.
5278 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5279
5280 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5281 alpha-specific register id names.
5282 (alpha_mdebug_frame_unwind_cache): Likewise.
5283 (alpha_mdebug_frame_prev_register): Likewise.
5284
5285 2003-06-03 Richard Henderson <rth@redhat.com>
5286
5287 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5288 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5289 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5290 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5291 unwind routines.
5292 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5293 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5294 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5295
5296 * alpha-linux-tdep.c: Remove unnecessary includes.
5297 * Makefile.in (alpha-linux-tdep.o): Update.
5298
5299 2003-06-03 Richard Henderson <rth@redhat.com>
5300
5301 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5302 (alphabsd_fill_fpreg): Likewise.
5303
5304 2003-06-03 J. Brobecker <brobecker@gnat.com>
5305
5306 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5307 references to struct frame_info fields by calls to the equivalent
5308 accessors. Necessary now that frame_info is opaque.
5309
5310 2003-06-03 J. Brobecker <brobecker@gnat.com>
5311
5312 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5313 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5314 structure, field no longer exists.
5315
5316 2003-06-03 J. Brobecker <brobecker@gnat.com>
5317
5318 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5319 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5320
5321 2003-06-03 J. Brobecker <brobecker@gnat.com>
5322
5323 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5324 references to struct frame_info fields by calls to the equivalent
5325 accessors. Necessary now that frame_info is opaque.
5326
5327 2003-06-03 J. Brobecker <brobecker@gnat.com>
5328
5329 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5330 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5331 structure, field no longer exists.
5332
5333 2003-06-03 Theodore A. Roth <troth@openavr.org>
5334
5335 * remote.c (init_remote_state): Compute sizeof_g_packet by
5336 accumulation of the size of all registers instead of blindly using
5337 DEPRECATED_REGISTER_BYTES.
5338
5339 2003-06-03 Michael Snyder <msnyder@redhat.com>
5340
5341 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5342 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5343 for h8300sx.
5344
5345 2003-06-03 J. Brobecker <brobecker@gnat.com>
5346
5347 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5348 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5349
5350 2003-06-03 Andrew Cagney <cagney@redhat.com>
5351
5352 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5353 (sparc_convert_to_raw): Delete function.
5354 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5355 register_convert_to_virtual.
5356
5357 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5358
5359 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5360 layer if not dealing with a statically-linked threaded program.
5361
5362 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5363
5364 * solib.c (solib_open): Update comment to reflect actual search order.
5365
5366 2003-06-03 Andrew Cagney <cagney@redhat.com>
5367
5368 * frame.c (get_frame_memory_signed): New function.
5369 (get_frame_memory, get_frame_memory_unsigned): New function.
5370 (get_frame_arch): New function.
5371 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5372 (get_frame_memory, get_frame_unsigned_memory): Declare.
5373 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5374 get_frame_memory_unsigned and get_frame_arch.
5375 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5376
5377 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5378
5379 * MAINTAINERS (write after approval): Add myself.
5380
5381 2003-06-03 Jim Blandy <jimb@redhat.com>
5382
5383 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5384 elements of gregset_t are 64 bits each, but access registers
5385 are still 32 bits, so they're packed two per gregset_t
5386 element. Unpack/pack them properly.
5387
5388 2003-06-02 David Carlton <carlton@bactrian.org>
5389
5390 * linespec.c (find_methods): Break out code into
5391 add_matching_methods and add_constructors.
5392 (add_matching_methods): New.
5393 (add_constructors): Ditto.
5394
5395 2003-06-02 Andrew Cagney <cagney@redhat.com>
5396
5397 * sparc-tdep.c (sparc_print_registers): Delete call to
5398 REGISTER_CONVERTIBLE.
5399 (sparc_gdbarch_init): Do not set register_convertible.
5400 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5401 * frv-tdep.c (frv_gdbarch_init): Ditto.
5402 * cris-tdep.c (cris_gdbarch_init): Ditto.
5403
5404 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5405
5406 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5407 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5408 (syms_from_objfile): Ditto.
5409
5410 2003-06-03 Andreas Schwab <schwab@suse.de>
5411
5412 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5413 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5414
5415 2003-06-02 Richard Henderson <rth@redhat.com>
5416
5417 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5418 a member of all_reggroup.
5419
5420 2003-06-02 Richard Henderson <rth@redhat.com>
5421
5422 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5423 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5424 (alpha_lds, alpha_sts): New.
5425 (alpha_convert_register_p): Change from _register_convertible.
5426 (alpha_register_to_value): Change from _convert_to_virtual;
5427 restructure and fail for type sizes other than 4 or 8.
5428 (alpha_value_to_register): Similarly.
5429 (alpha_extract_return_value): Use alpha_sts.
5430 (alpha_store_return_value): Use alpha_lds.
5431 (alpha_gdbarch_init): Update hooks.
5432
5433 2003-06-02 Richard Henderson <rth@redhat.com>
5434
5435 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5436 regnum identifiers.
5437 (alpha_sigtramp_register_address): Likewise.
5438
5439 2003-06-02 Richard Henderson <rth@redhat.com>
5440
5441 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5442 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5443 * alpha-tdep.h: Declare them.
5444
5445 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5446 Remove zerobuf. Don't error on UNIQUE.
5447 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5448 (ALPHA_REGSET_UNIQUE): Provide default.
5449 (supply_gregset): Use alpha_supply_int_regs.
5450 (fill_gregset): Use alpha_fill_int_regs.
5451 (supply_fpregset): Use alpha_supply_fp_regs.
5452 (fill_fpregset): Use alpha_fill_fp_regs.
5453 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5454 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5455 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5456 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5457 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5458 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5459
5460 2003-06-02 Richard Henderson <rth@redhat.com>
5461
5462 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5463
5464 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5465 (alpha_store_return_value): Likewise.
5466
5467 2003-06-02 David Carlton <carlton@math.stanford.edu>
5468
5469 * block.c (contained_in): Add 'const' to arguments.
5470 (block_function): Ditto.
5471 * block.h: Update declarations for block_function and
5472 contained_in.
5473
5474 2003-06-02 David Carlton <carlton@math.stanford.edu>
5475
5476 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5477 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5478 * p-valprint.c (pascal_val_print): Ditto.
5479 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5480
5481 2003-06-02 Richard Henderson <rth@redhat.com>
5482
5483 * alpha-tdep.c (alpha_push_dummy_call): Use
5484 builtin_type_ieee_double_little instead of builtin_type_double.
5485
5486 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5487 sign-extension of 32-bit values.
5488 (alpha_store_return_value): Similarly.
5489
5490 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5491 (alpha_extract_return_value): Likewise.
5492 (alpha_store_return_value): Likewise.
5493
5494 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5495 (alpha_store_return_value): Error on IEEE Quad floats.
5496
5497 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5498 (alpha_extract_struct_value_address): Likewise.
5499 (alpha_store_return_value): Likewise.
5500 (alpha_store_struct_return): Remove.
5501 (alpha_gdbarch_init): Update hook registration to match.
5502
5503 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5504 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5505 macros where appropriate.
5506 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5507 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5508
5509 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5510 for SP, GP; void_func_ptr for PC; non-language-specific types
5511 for all others.
5512 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5513
5514 2003-06-02 Richard Henderson <rth@redhat.com>
5515
5516 * top.h (lim_at_start): Declare.
5517 * main.c (captured_main): Set it.
5518 * top.c (lim_at_start): Define.
5519 (command_loop): Use it instead of &environ.
5520 * event-top.c (command_handler): Likewise.
5521
5522 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5523
5524 * mipsnbsd-tdep.c: Update copyright years.
5525 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5526
5527 2003-06-01 Richard Henderson <rth@redhat.com>
5528
5529 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5530 (alpha-linux-tdep.o): Update dependencies.
5531 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5532 * alpha-mdebug-tdep.c: Remove unneeded includes.
5533
5534 2003-06-01 Richard Henderson <rth@redhat.com>
5535
5536 * alpha-tdep.c (alpha_register_reggroup_p): New.
5537 (alpha_gdbarch_init): Register it.
5538
5539 2003-06-02 Andrew Cagney <cagney@redhat.com>
5540
5541 * dwarfread.c: Eliminate "register"
5542 (decode_die_type): Eliminate assignment within "if".
5543 (struct_type, decode_array_element_type): Ditto.
5544 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5545 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5546 (decode_modified_type, completedieinfo): Ditto.
5547 * block.c: Eliminate "register".
5548 (blockvector_for_pc_sect): Eliminate assignment within "if".
5549 * cp-support.h (struct symbol): Opaque declaration.
5550 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5551
5552 2003-06-01 Richard Henderson <rth@redhat.com>
5553
5554 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5555 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5556
5557 2003-06-01 Adam Fedor <fedor@gnu.org>
5558
5559 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5560 * gdbarch.[ch]: Regenerate.
5561 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5562 (hppa_gdbarch_init): Set it in the gdbarch vector.
5563 * i386-tdep.c (i386_fetch_pointer_argument): New
5564 (i386_gdbarch_init): Set it into gdbarch.
5565 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5566 (rs6000_gdbarch_init): Set it in gdbarch.
5567 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5568 (sparc_gdbarch_init): Set it in gdbarch.
5569
5570 2003-06-01 Andrew Cagney <cagney@redhat.com>
5571
5572 * defs.h (extract_address): Delete declaration.
5573 * findvar.c (extract_address): Delete function.
5574 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5575 extract_address with the inline equivalent,
5576 extract_unsigned_integer.
5577 (xstormy16_extract_struct_value_address): Ditto.
5578 (xstormy16_pointer_to_address): Ditto.
5579 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5580 * v850-tdep.c (v850_push_arguments): Ditto.
5581 (v850_extract_return_value): Ditto.
5582 (v850_extract_struct_value_address): Ditto.
5583 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5584 (sparcnbsd_get_longjmp_target_64): Ditto.
5585 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5586 (get_longjmp_target): Ditto.
5587 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5588 (sh64_extract_struct_value_address): Ditto.
5589 (sh_push_arguments): Ditto.
5590 (sh64_push_arguments): Ditto.
5591 * remote-vxsparc.c (vx_read_register): Ditto.
5592 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5593 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5594 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5595 * mipsv4-nat.c (get_longjmp_target): Ditto.
5596 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5597 * mips-nat.c (get_longjmp_target): Ditto.
5598 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5599 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5600 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5601 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5602 * irix5-nat.c (get_longjmp_target): Ditto.
5603 * irix4-nat.c (get_longjmp_target): Ditto.
5604 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5605 (ia64_push_arguments): Ditto.
5606 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5607 * h8300-tdep.c (h8300_push_arguments): Ditto.
5608 (h8300_store_return_value): Ditto.
5609 (h8300_extract_struct_value_address): Ditto.
5610 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5611 (frv_push_arguments): Ditto.
5612 * avr-tdep.c (avr_pointer_to_address): Ditto.
5613 (avr_push_arguments): Ditto.
5614 * arm-tdep.c (arm_push_dummy_call): Ditto.
5615 (arm_get_longjmp_target): Ditto.
5616 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5617 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5618 (alpha_get_longjmp_target): Ditto.
5619
5620 * solib-irix.c (extract_mips_address): Inline extract_address,
5621 replacing it with extract_signed_integer.
5622 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5623 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5624 (first_link_map_member, open_symbol_file_object): Ditto.
5625 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5626 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5627 (LM_NEXT, LM_NAME): Ditto.
5628
5629 2003-06-01 Richard Henderson <rth@redhat.com>
5630
5631 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5632 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5633 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5634 (alpha_cannot_store_register): Likewise.
5635 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5636 * alpha-nat.c (supply_gregset): Likewise.
5637 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5638
5639 2003-06-01 Andrew Cagney <cagney@redhat.com>
5640
5641 * infcall.c (call_function_by_hand): Update comment on
5642 DEPRECATED_DUMMY_WRITE_SP.
5643
5644 * mips-tdep.c (mips_gdbarch_init): Do not set
5645 deprecated_dummy_write_sp.
5646 (mips_eabi_push_dummy_call): Set the SP register.
5647 (mips_o64_push_dummy_call): Set the SP register.
5648 (mips_o32_push_dummy_call): Set the SP register.
5649 (mips_n32n64_push_dummy_call): Set the SP register.
5650
5651 2003-06-01 Richard Henderson <rth@redhat.com>
5652
5653 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5654 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5655 (supply_gregset): Likewise.
5656 * alpha-tdep.c (alpha_store_return_value): Likewise.
5657 (alpha_get_longjmp_target): Likewise.
5658 (alpha_register_name): Constify array.
5659 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5660 deprecated_register_size, deprecated_register_bytes,
5661 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5662 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5663 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5664
5665 2003-06-01 Richard Henderson <rth@redhat.com>
5666
5667 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5668 from arg_reg_buffer to regcache to avoid double conversion.
5669
5670 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5671
5672 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5673 SP_REGNUM.
5674 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5675 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5676
5677 2003-06-01 Richard Henderson <rth@redhat.com>
5678
5679 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5680 (decode_frame_entry): Set it. Skip FDE augmentation.
5681
5682 2003-06-01 Richard Henderson <rth@redhat.com>
5683
5684 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5685 not overlapping PC_REGNUM.
5686
5687 2003-06-01 Richard Henderson <rth@redhat.com>
5688
5689 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5690 alpha_push_arguments. Don't dump argument register data to
5691 the target stack. Fix float and 128-bit long double semantics.
5692 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5693 (alpha_fix_call_dummy): Remove.
5694 (alpha_call_dummy_words): Remove.
5695 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5696
5697 2003-06-01 Richard Henderson <rth@redhat.com>
5698
5699 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5700
5701 2003-06-01 Andrew Cagney <cagney@redhat.com>
5702
5703 * mips-tdep.c (is_mips16_addr): New function.
5704 (make_mips16_addr, unmake_mips16_addr): New functions.
5705 (pc_is_mips16, mips_fetch_instruction): Use.
5706 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5707 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5708 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5709 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5710 TARGET_MIPS.
5711 * config/mips/tm-mips.h: Update copyright.
5712 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5713 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5714 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5715 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5716 (TM_PRINT_INSN_MACH): Delete.
5717 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5718
5719 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5720 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5721 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5722 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5723 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5724 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5725 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5726 mips*-*-riscos* and mips*-*-sysv* onto mips.
5727 * config/mips/mips64.mt: New file.
5728 * config/mips/mips.mt: New file.
5729 * config/mips/littlemips.mt: Delete file.
5730 * config/mips/decstation.mt: Delete file.
5731 * config/mips/vr4300el.mt: Delete file.
5732 * config/mips/vr5000el.mt: Delete file.
5733 * config/mips/vr5000.mt: Delete file.
5734 * config/mips/vr4100.mt: Delete file.
5735 * config/mips/vr4xxxel.mt: Delete file.
5736 * config/mips/vr4300.mt: Delete file.
5737 * config/mips/vr4xxx.mt: Delete file.
5738 * config/mips/bigmips.mt: Delete file.
5739 * config/mips/bigmips64.mt: Delete file.
5740 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5741 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5742 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5743 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5744 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5745 "tm-bigmips.h".
5746 * config/mips/tm-irix3.h: Ditto.
5747 * config/mips/tm-mipsv4.h: Ditto.
5748 * config/mips/tm-embed.h: Ditto.
5749 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5750 "tm-bigmips64.h".
5751 * config/mips/tm-vr5000el.h: Delete file.
5752 * config/mips/tm-tx39l.h: Delete file.
5753 * config/mips/tm-vr4300el.h: Delete file.
5754 * config/mips/tm-vr4xxxel.h: Delete file.
5755 * config/mips/tm-vr4300.h: Delete file.
5756 * config/mips/tm-vr4100.h: Delete file.
5757 * config/mips/tm-vr4xxx.h: Delete file.
5758 * config/mips/tm-vr5000.h: Delete file.
5759 * config/mips/tm-embedl64.h: Delete file.
5760 * config/mips/tm-embedl.h: Delete file.
5761 * config/mips/tm-embed64.h: Delete file.
5762 * config/mips/tm-bigmips64.h: Delete file.
5763 * config/mips/tm-bigmips.h: Delete file.
5764
5765 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5766
5767 Fix gdb/1216.
5768 * shnbsd-nat.c: Include "sh-tdep.h".
5769
5770 From Richard Henderson <rth@redhat.com>:
5771 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5772
5773 2003-05-31 Andrew Cagney <cagney@redhat.com>
5774
5775 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5776 forward declaration.
5777 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5778 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5779 (mips_find_saved_regs): Use set_reg_offset.
5780 (mips_frame_init_saved_regs): Delete function.
5781 (mips_pop_frame): Call mips_find_saved_regs instead of
5782 DEPRECATED_FRAME_INIT_SAVED_REGS.
5783
5784 2003-05-31 Andrew Cagney <cagney@redhat.com>
5785
5786 * mips-tdep.c (mips_gdbarch_init): Do not set
5787 deprecated_max_register_raw_size, register_virtual_size, and
5788 deprecated_max_register_virtual_size.
5789
5790 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5791
5792 * i386-tdep.c: Include "dwarf2-frame.h".
5793 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5794 * Makefile.in (i386-tdep.o): Update dependencies.
5795
5796 * dwarf2-frame.c, dwarf2-frame.h: New files.
5797 * Makefile.in (SFILES): Add dwarf2-frame.c.
5798 (dwarf2_frame_h): Define.
5799 (COMMON_OBS): Add dwarf2-frame.o.
5800 (dwarf2-frame.o): Add dependencies.
5801
5802 2003-05-31 Andreas Jaeger <aj@suse.de>
5803
5804 * x86-64-linux-nat.c: Fix comment.
5805
5806 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5807
5808 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5809 function signature.
5810
5811 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5812 have a sigcontext_addr handler.
5813 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5814 sigcontext_addr handler.
5815
5816 2003-05-31 Andrew Cagney <cagney@redhat.com>
5817
5818 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5819 (print_fp_register_row): Replace do_fp_register_row.
5820 (mips_print_fp_register): Add "file" and "frame" parameters.
5821 (mips_print_register): Add "file" and "frame" parameters.
5822 (mips_print_registers_info): Replace mips_do_registers_info.
5823 (mips_gdbarch_init): Set print_registers_info instead of
5824 deprecated_do_registers_info.
5825 (mips_read_fp_register_single): Add "frame" parameter.
5826 (mips_read_fp_register_double): Add "frame" parameter.
5827
5828 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5829
5830 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5831 Fixes a bug where GDB would print the wrong register names for
5832 targets without SSE.
5833
5834 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5835 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5836 registers.
5837
5838 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5839 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5840 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5841 TDEP->sc_sp_offset.
5842
5843 From Michal Ludvig <mludvig@suse.cz>:
5844 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5845 and `sc_num_regs'.
5846 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5847 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5848 I386_ST0_REGNUM): Move here from...
5849 * i386-tdep.c: ... here.
5850 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5851 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5852 registers if possible.
5853 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5854 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5855 Remove variables.
5856 (i386bsd_sc_reg_offset): New variable.
5857 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5858 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5859 TDEP->sc_sp_offset.
5860 (i386fbsd_sc_reg_offset): New variable.
5861 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5862 TDEP->sc_num_regs.
5863 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5864 variables.
5865 (i386fbsd4_sc_reg_offset): New variable.
5866 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5867 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5868 TDEP->sc_sp_offset.
5869 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5870 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5871 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5872 Remove variables.
5873 (i386nbsd_sc_reg_offset): New variable.
5874 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5875 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5876 TDEP->sc_sp_offset.
5877 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5878 Remove variables.
5879 (i386obsd_sc_reg_offset): New variable.
5880 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5881 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5882 TDEP->sc_sp_offset.
5883 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5884 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5885 for frame pointer offset in `struct sigcontext'.
5886
5887 2003-05-31 Andrew Cagney <cagney@redhat.com>
5888
5889 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5890 architecture methods call_dummy_words, sizeof_call_dummy_words,
5891 push_return_address, store_struct_return, and fix_call_dummy. Set
5892 push_dummy_call instead of deprecated_push_arguments.
5893 (mips_store_struct_return): Delete function.
5894 (mips_fix_call_dummy): Delete function.
5895 (mips_push_return_address): Delete function.
5896 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5897 RA_REGNUM and T9_REGNUM.
5898 (mips_n32n64_push_dummy_call): Ditto for
5899 mips_n32n64_push_arguments.
5900 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5901 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5902
5903 2003-05-31 Andrew Cagney <cagney@redhat.com>
5904
5905 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5906 "dummy_addr" to "bp_addr".
5907 * infcall.c (call_function_by_hand): Pass "funaddr" to
5908 gdbarch_push_dummy_call.
5909 * gdbarch.h, gdbarch.c: Re-generate.
5910 * i386-tdep.c (i386_push_dummy_call): Update.
5911 * arm-tdep.c (arm_push_dummy_call): Update.
5912 * d10v-tdep.c (d10v_push_dummy_call): Update.
5913
5914 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5915
5916 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5917 variable declarations.
5918 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5919 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5920 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5921 x86_64_init_frame_pc, x86_64_init_frame_pc,
5922 x86_64_function_has_prologue): Remove prototypes.
5923 (X86_64_NUM_GREGS): New define.
5924 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5925 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5926 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5927 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5928 XMM1_REGNUM): Remove defines.
5929 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5930 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5931 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5932 X86_64_XMM1_REGNUM): New defines.
5933 (struct x86_64_register_info): Renamed from `struct
5934 register_info'. Remove `size' member.
5935 (x86_64_register_info_table): Remove variable.
5936 (x86_64_register_info): New variable.
5937 (X86_64_NUM_REGS): New define.
5938 (X86_64_NUM_GREGS): Remove define.
5939 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5940 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5941 Remove variables.
5942 (x86_54_dwarf2_reg_to_regnum): Remove function.
5943 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5944 (x86_64_dwarf_reg_to_regnum): New function.
5945 (x86_64_register_name): Rewrite.
5946 (x86_64_register_raw_size): Remove function.
5947 (x86_64_register_byte_table): Remove variable.
5948 (x86_64_register_byte): Remove function.
5949 (x86_64_register_virtual_type): Remove function.
5950 (x86_64_register_type): New function.
5951 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5952 x86_64_register_convert_to_raw): Remove functions.
5953 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5954 (x86_64_use_struct_convention): Make static. Adjust for renamed
5955 defines.
5956 (x86_64_frame_init_saved_regs): Remove function.
5957 (x86_64_push_arguments): Make static. Change to accept a regcache
5958 as argument.
5959 (x86_64_store_return_value, x86_64_extract_return_value): Make
5960 static. Rewrite based on i386 counterparts.
5961 (x86_64_push_dummy_call): New function.
5962 (X86_64_NUM_SAVED_REGS): New define.
5963 (x86_64_register_number): Remove function.
5964 (x86_64_store_struct_return): Remove function.
5965 (x86_64_frameless_function_invocation,
5966 x86_64_function_has_prologue): Remove functions.
5967 (PROLOG_BUFSIZE): Remove define.
5968 (struct x86_64_frame_cache): New structure.
5969 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5970 x86_64_frame_cache, x86_64_frame_this_id,
5971 x86_64_frame_prev_register, x86_64_frame_p,
5972 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5973 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5974 functions.
5975 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5976 variables.
5977 (x86_64_skip_prologue): Rewrite in terms of
5978 x86_64_analyze_prologue.
5979 (x86_64_frame_base_address): New function.
5980 (x86_64_frame_base): New variable.
5981 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5982 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5983 set deprecated_fp_regnum, deprecated_register_size,
5984 deprecated_register_bytes, register_raw_size, register_byte,
5985 register_virtual_type, register_convertiable,
5986 register_convert_to_virtual, convert_to_raw,
5987 deprecated_get_saved_register, deprecated_target_read_fp,
5988 deprecated_push_arguments, deprecated_push_return_address,
5989 deprecated_pop_frame, deprecated_store_struct_return,
5990 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5991 frameless_function_invocation, deprecated_frame_saved_pc,
5992 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5993 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5994 deprecated_init_frame_pc and virtual_frame_pointer. Call
5995 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5996 and x86_64_frame_p. Call frame_base_set_default to register
5997 x86_64_frame_base.
5998 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5999 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6000 (_initialize_x86_64_tdep): Remove function.
6001 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6002 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6003 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6004 define.
6005 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6006 (x86_64_linux_sigcontext_addr): Rewrite.
6007 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6008 x86_64_linux_frame_saved_pc): Remove functions.
6009 (x86_64_linux_pc_in_sigtramp): Renamed from
6010 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6011 trampoline.
6012 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6013 Remove_functions.
6014 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6015 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6016 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6017 (x86_64_regmap): Rename to regmap.
6018 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6019 x86_64_num_gregs.
6020 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6021 x86_64_regmap.
6022 (x86_64_fxsave_offset): Remove function.
6023 (supply_fpregset): Simply call x86_64_supply_fxsave.
6024 (fill_fpregset): Simply call x86_64_fill_fxsave.
6025 (fetch_inferior_registers, store_inferior_registers): Avoid
6026 asignment in if-statement.
6027 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6028 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6029 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6030 (fetch_core_registers): Remove function.
6031 (linux_elf_core_fns): Remove.
6032 (offsetoff): Don't define.
6033 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6034 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6035 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6036 add core-regset.o.
6037 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6038 protection against multiple includes instead of NM_X86_64_h. Add
6039 various comments. Include "config/nm-linux.h". Don't include
6040 <signal.h>.
6041 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6042 GET_THREAD_SIGNALS): Remove defines.
6043 (x86_64_register_u_addr, kernel_u_size,
6044 lin_thread_get_thread_signals): Remove prototypes.
6045 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6046 [HAVE_LINK_H]: Don't include "solib.h".
6047 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6048 * config/i386/tm-x86-64linux.h: Fix comments.
6049 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6050 x86-64-tdep.o): Update dependencies.
6051
6052 2003-05-30 Andrew Cagney <cagney@redhat.com>
6053
6054 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6055 Change parameter type to a "struct regcache *".
6056
6057 * gdbarch.sh: Regardless of the multi-arch level, always define
6058 the macro when not already defined.
6059 * gdbarch.h, gdbarch.c: Re-generate.
6060
6061 2003-05-30 Richard Henderson <rth@redhat.com>
6062
6063 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6064 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6065 (alpha_mdebug_frame_this_id): Likewise.
6066 (alpha_mdebug_frame_prev_register): Likewise.
6067 (alpha_mdebug_frame_base_address): Likewise.
6068 (alpha_mdebug_frame_locals_address): Likewise.
6069 (alpha_mdebug_frame_args_address): Likewise.
6070 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6071 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6072 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6073 loop increment.
6074 (alpha_heuristic_frame_this_id): Make static.
6075 (alpha_heuristic_frame_prev_register): Likewise.
6076 (alpha_heuristic_frame_base_address): Likewise.
6077 * alpha-tdep.h: Update.
6078
6079 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6080
6081 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6082 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6083 defenitions.
6084 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6085 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6086 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6087 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6088 I386_ST0_REGNUM): New defines.
6089 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6090 codestream_get): Remove define.
6091 (codestream_next_addr, condestream_addr, condestream_buf,
6092 codestream_off, codestream_cnt): Remove variables.
6093 (codestream_fill, codestream_seek, codestream_read): Remove
6094 functions.
6095 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6096 functionality.
6097 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6098 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6099 i386_frame_saved_pc, i386_saved_pc_after_call,
6100 i386_frame_num_args, i386_frame_init_saved_regs,
6101 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6102 i386_push_arguments): Remove functions.
6103 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6104 functionality. Use i386_analyze_prologue instead of
6105 i386_get_frame_setup.
6106 (I386_NUM_SAVED_REGS): New define.
6107 (struct i386_frame_cache): New structure.
6108 (i386_alloc_frame_cache, i386_analyze_struct_return,
6109 i386_skip_probe, i386_analyze_frame_setup,
6110 i386_analyze_register_saves, i386_analyze_prologue,
6111 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6112 i386_frame_prev_register, i386_sigtramp_frame_cache,
6113 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6114 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6115 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6116 New functions.
6117 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6118 New variables.
6119 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6120 I386_EAX_REGNUM and I386_EDX_REGNUM.
6121 (i386_extract_return_value, i386_store_return_value): Use
6122 I386_ST0_REGNUM where appropriate.
6123 (i386_extract_struct_value_address): Rewrite to use extract_address.
6124 (i386_svr4_pc_in_sigtramp): Add comment.
6125 (i386_svr4_sigcontext_addr): Rewrite.
6126 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6127 TDEP->sc_sp_offset.
6128 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6129 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6130 of new defines. Set push_dummy_call, don't set
6131 deprecated_push_arguments, deprecated_push_return_address,
6132 deprecated_pop_frame. Don't set parm_boundary. Don't set
6133 deprecated_frame_chain, deprecated_frame_saved_pc,
6134 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6135 save_dummy_frame_tos, unwind_pc. Call
6136 frame_unwind_append_predicate and frame_base_set_default. Don't
6137 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6138 Don't set frameless_function_invocation. Don't set
6139 deprecated_register_bytes, deprecated_register_size,
6140 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6141 * i386-linux-tdep.c: Fix formatting in some comments.
6142 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6143 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6144 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6145 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6146 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6147 redundant parentheses.
6148 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6149 (i386_linux_sigcontext_addr): Use it. Rewrite.
6150 (find_minsym_and_objfile): Change name of second argument.
6151 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6152 changed. Use frame_pc_unwind instead of
6153 DEPRECATED_SAVED_PC_AFTER_CALL.
6154 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6155 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6156 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6157 unwinder.
6158 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6159 "dummy-frame.h".
6160 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6161 (_initialize_i386_cygwin_tdep): New prototype.
6162 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6163 deprecated_frame_chain_valid.
6164 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6165 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6166 Rely on the SVR4 defaults.
6167 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6168 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6169
6170 2003-05-30 Andrew Cagney <cagney@redhat.com>
6171
6172 * infcall.c (call_function_by_hand): Always call
6173 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6174
6175 2003-05-30 Richard Henderson <rth@redhat.com>
6176
6177 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6178 increment.
6179
6180 2003-05-29 Jim Blandy <jimb@redhat.com>
6181
6182 Use gdbarch methods for solib stuff on PowerPC Linux.
6183 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6184 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6185 show through.
6186 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6187 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6188 giving the same effect as the #definitions above.
6189
6190 2003-05-29 Adam Fedor <fedor@gnu.org>
6191
6192 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6193 (find_implementation_from_class): Replace it with the standard
6194 case i.e. do nothing.
6195
6196 2003-05-29 Richard Henderson <rth@redhat.com>
6197
6198 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6199 (alpha_linux_sigtramp_offset): Use it. Make static.
6200 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6201 update for new frame model.
6202 * alpha-mdebug-tdep.c: New file.
6203 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6204 (alpha_osf1_init_abi): Install it.
6205 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6206 (linked_proc_desc_table): Remove.
6207 (alpha_frame_past_sigtramp_frame): Remove.
6208 (alpha_dynamic_sigtramp_offset): Remove.
6209 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6210 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6211 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6212 (push_sigtramp_desc): Remove.
6213 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6214 (alpha_cannot_store_register): Likewise.
6215 (alpha_sigcontext_addr): Remove.
6216 (alpha_find_saved_regs): Remove.
6217 (alpha_frame_init_saved_regs): Remove.
6218 (alpha_init_frame_pc_first): Remove.
6219 (read_next_frame_reg): Remove.
6220 (alpha_frame_saved_pc): Remove.
6221 (alpha_saved_pc_after_call): Remove.
6222 (temp_proc_desc, temp_saved_regs): Remove.
6223 (alpha_about_to_return): Remove.
6224 (cached_proc_desc): Remove.
6225 (alpha_frame_chain): Remove.
6226 (alpha_print_extra_frame_info): Remove.
6227 (alpha_init_extra_frame_info): Remove.
6228 (alpha_frame_locals_address): Remove.
6229 (alpha_frame_args_address): Remove.
6230 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6231 (alpha_push_dummy_frame): Remove.
6232 (alpha_pop_frame): Remove.
6233 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6234 (alpha_read_insn): New.
6235 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6236 for different insn encodings.
6237 (alpha_in_lenient_prologue): Remove.
6238 (struct alpha_sigtramp_unwind_cache): New.
6239 (alpha_sigtramp_frame_unwind_cache): New.
6240 (alpha_sigtramp_register_address): New.
6241 (alpha_sigtramp_frame_this_id): New.
6242 (alpha_sigtramp_frame_prev_register): New.
6243 (alpha_sigtramp_frame_unwind): New.
6244 (alpha_sigtramp_frame_p): New.
6245 (struct alpha_heuristic_unwind_cache): New.
6246 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6247 don't count nop insns that occur between functions.
6248 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6249 heuristic_proc_desc, but without the mdebug wrapping.
6250 (alpha_heuristic_frame_this_id): New.
6251 (alpha_heuristic_frame_prev_register): New.
6252 (alpha_heuristic_frame_unwind): New.
6253 (alpha_heuristic_frame_p): New.
6254 (alpha_heuristic_frame_base_address): New.
6255 (alpha_heuristic_frame_base): New.
6256 (alpha_unwind_dummy_id): New.
6257 (alpha_unwind_pc): New.
6258 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6259 frame related deprecated initializations; install replacements.
6260 (alpha_dump_tdep): Remove.
6261 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6262 (alpha_read_insn, alpha_after_prologue,
6263 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6264 alpha_heuristic_frame_prev_register,
6265 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6266 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6267 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6268 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6269
6270 2003-05-29 Andrew Cagney <cagney@redhat.com>
6271
6272 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6273 dependant on the availability of ASSERT_FUNCTION.
6274 (ASSERT_FUNCTION): Do not define when there is no function name.
6275
6276 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6277
6278 From Jimi X <jimix@watson.ibm.com>:
6279 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6280
6281 2003-05-28 Jim Blandy <jimb@redhat.com>
6282
6283 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6284 argument to ptrace to int; the system headers should give it the
6285 right type, and pointers don't fit in ints on powerpc64-*-*.
6286
6287 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6288
6289 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6290 DW_TAG_catch_block.
6291
6292 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6293
6294 * stabsread.c (dbx_lookup_type): Make static.
6295 (read_type): Ditto.
6296 (add_undefined_type): Ditto.
6297 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6298 not export.
6299
6300 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6301
6302 * hpread.c (hpread_has_name): Make static.
6303 (hpread_psymtab_to_symtab): Ditto.
6304 (file_exists): Ditto.
6305 (hpread_call_pxdb): Ditto.
6306 (hpread_pxdb_needed): Ditto.
6307 (hpread_quick_traverse): Ditto.
6308 (hpread_get_header): Ditto.
6309 (hpread_get_lntt): Ditto.
6310 (hpread_get_slt): Ditto.
6311 (class_of): Ditto.
6312
6313 2003-05-25 Andreas Schwab <schwab@suse.de>
6314
6315 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6316 stack_align and deprecated_extra_stack_alignment_needed.
6317 (m68k_stack_align): Delete.
6318
6319 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6320 (m68k_register_virtual_size): Likewise.
6321 (altos_skip_prologue): Remove obsolete function.
6322 (isi_frame_num_args): Likewise.
6323 (news_frame_num_args): Likewise.
6324 (m68k_fix_call_dummy): Make static.
6325 (m68k_push_dummy_frame): Likewise.
6326 (m68k_pop_frame): Likewise.
6327 (m68k_skip_prologue): Likewise.
6328 (m68k_frame_init_saved_regs): Likewise.
6329 (m68k_saved_pc_after_call): Likewise.
6330 (m68k_get_longjmp_target): Make multi-arch.
6331 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6332 structure. Register m68k_get_longjmp_target if enabled.
6333 * m68k-tdep.h (struct gdbarch_tdep): Define.
6334 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6335
6336 * Makefile.in (config.status): Also depend on configure.tgt
6337 and configure.host.
6338 (m68klinux-tdep.o): Update dependencies.
6339 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6340 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6341 (M68K_LINUX_JB_PC): Define.
6342 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6343 and take additional parameter.
6344 (m68k_linux_sigtramp_saved_pc): Update.
6345 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6346 m68k_linux_pc_in_sigtramp, in_plt_section,
6347 find_solib_trampoline_target.
6348 * config/m68k/tm-linux.h: Don't include any tm headers.
6349 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6350 (JB_ELEMENT_SIZE): Likewise.
6351 (JB_PC): Likewise.
6352 (GET_LONGJMP_TARGET): Likewise.
6353 (IN_SIGTRAMP): Likewise.
6354 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6355
6356 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6357
6358 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6359 (sparc32_push_arguments): Re-implement by calling
6360 sparc32_do_push_arguments.
6361
6362 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6363
6364 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6365 SPARC_O1_REGNUM): New defines.
6366 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6367 (sparc32_store_return_value): New function.
6368 (sparc_extract_struct_value_address): Rewrite to operate on a
6369 regcache.
6370 (sparc_gdbarch_init): Don't set
6371 deprecated_extract_struct_value_address. Set
6372 extract_struct_value_address instead. Don't set
6373 deprecated_extract_return_value and deprecated_store_return_value
6374 for 32-bit targets. Set extract_return_value and
6375 store_return_value instead.
6376 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6377 DEPRECTAED_EXTRACT_RETURN_VALUE,
6378 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6379 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6380 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6381 (sparc_store_return_value): Remove prototype.
6382 (sparc32_store_return_value): New prototype.
6383 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6384 Adjust prototypes.
6385
6386 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6387
6388 * sparcnbsd-tdep.c: Include "gdb_string.h".
6389
6390 2003-05-23 Andrew Cagney <cagney@redhat.com>
6391
6392 * p-valprint.c (pascal_val_print): Replace extract_address with
6393 the inline equivalent extract_unsigned_integer.
6394 * jv-valprint.c (java_value_print): Ditto.
6395 * ada-valprint.c (ada_val_print_1): Ditto.
6396 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6397
6398 2003-05-23 Theodore A. Roth <troth@openavr.org>
6399
6400 * blockframe.c (frameless_look_for_prologue): Remove unused
6401 after_prologue variable.
6402
6403 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6404
6405 * blockframe.c (get_pc_function_start): Rewrite to avoid
6406 asignments in if-statements.
6407
6408 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6409
6410 Committed by Elena Zannoni <ezannoni@redhat.com>.
6411 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6412 files, don't relocate absolute symbols (and do use mst_abs).
6413
6414 2003-05-23 Andrew Cagney <cagney@redhat.com>
6415
6416 * objc-lang.c: Include "gdb_assert.h".
6417 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6418 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6419 (gdb_check, gdb_check_fatal): Delete functions.
6420 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6421 gdb_assert.
6422 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6423 * Makefile.in (objc-lang.o): Update dependencies.
6424
6425 2003-05-22 Ian Lance Taylor <ian@airs.com>
6426
6427 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6428 with fprintf_filtered, not fprintf_unfiltered.
6429
6430 2003-05-22 Andrew Cagney <cagney@redhat.com>
6431
6432 * stack.c (frame_info): Inline extract_address, replacing it with
6433 extract_unsigned_integer.
6434 * findvar.c (unsigned_pointer_to_address): Ditto.
6435 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6436 * dwarf2expr.c (dwarf2_read_address): Ditto.
6437 * frame.c (frame_pc_unwind): Update comment.
6438 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6439
6440 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6441
6442 * infptrace.c (detach): Call print_sys_errmsg rather than
6443 perror_with_name to issue warning message when errno is non-zero
6444 after calling ptrace detach.
6445
6446 2003-05-21 J. Brobecker <brobecker@gnat.com>
6447
6448 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6449 macro definitions from here...
6450 * hppa-tdep.c: ...to there.
6451
6452 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6453
6454 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6455 register_ptrace_addr(). Fix all callers.
6456
6457 2003-05-21 Andreas Schwab <schwab@suse.de>
6458
6459 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6460 dependencies.
6461 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6462 end.
6463 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6464 (_initialize_m68k_linux_tdep): New function.
6465 (m68k_linux_frame_saved_pc): Make static.
6466 (m68k_linux_extract_return_value): Likewise.
6467 (m68k_linux_store_return_value): Likewise.
6468 (m68k_linux_extract_struct_value_address): Likewise.
6469 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6470 Remove.
6471 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6472 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6473 (DEPRECATED_FRAME_SAVED_PC): Remove.
6474
6475 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6476
6477 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6478 regset numbering rather than our own.
6479
6480 2003-05-19 David Carlton <carlton@bactrian.org>
6481
6482 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6483
6484 2003-05-19 David Carlton <carlton@bactrian.org>
6485
6486 Partial fix for PR c++/827.
6487 * cp-support.h: Include symtab.h.
6488 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6489 * cp-namespace.c: Update contributors.
6490 (cp_lookup_symbol_nonlocal): New.
6491 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6492 (lookup_symbol_file): Ditto.
6493 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6494 * block.h: Declare block_scope, block_using, block_global_block.
6495 * block.c (block_scope): New.
6496 (block_using, block_global_block): Ditto.
6497 * Makefile.in (cp_support_h): Depend on symtab_h.
6498 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6499
6500 2003-05-19 David Carlton <carlton@bactrian.org>
6501
6502 * language.h (struct language_defn): Add 'la_value_of_this'
6503 and 'la_lookup_symbol_nonlocal' members.
6504 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6505 lookup_symbol_static, lookup_symbol_global,
6506 lookup_symbol_aux_block.
6507 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6508 if we should search fields of this and how to do static/global
6509 lookup.
6510 (lookup_symbol_aux_block): Make extern.
6511 (basic_lookup_symbol_nonlocal): New.
6512 (lookup_symbol_static, lookup_symbol_global): Ditto.
6513 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6514 'la_lookup_symbol_nonlocal' members.
6515 * c-lang.c (c_language_defn, cplus_language_defn)
6516 (asm_language_defn, minimal_language_defn): Ditto.
6517 * jv-lang.c (java_language_defn): Ditto.
6518 * language.c (unknown_language_defn, auto_language_defn)
6519 (local_language_defn): Ditto.
6520 * m2-lang.c (m2_language_defn): Ditto.
6521 * objc-lang.c (objc_language_defn): Ditto.
6522 * scm-lang.c (scm_language_defn): Ditto.
6523 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6524 * p-lang.c (pascal_language_defn): Ditto for both.
6525 * Makefile.in (f-lang.o): Depend on value_h.
6526 (p-lang.o): Ditto.
6527
6528 2003-05-19 David Carlton <carlton@bactrian.org>
6529
6530 * block.h: Declare block_static_block.
6531 * block.c (block_static_block): New.
6532 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6533 lookup_symbol_aux_local, calling block_static_block instead.
6534 (lookup_symbol_aux_local): Delete 'static_block' argument.
6535
6536 2003-05-19 David Carlton <carlton@bactrian.org>
6537
6538 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6539
6540 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6541
6542 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6543 register numbers mapping.
6544
6545 2003-05-18 Adam Fedor <fedor@gnu.org>
6546
6547 * symtab.c (completion_list_objc_symbol): New function.
6548 (make_symbol_completion_list): Use it to add ObjC symbols
6549 when looking though the list.
6550 (language_search_unquoted_string): New function.
6551 (make_file_symbol_completion_list): Use it.
6552
6553 2003-05-18 Andreas Schwab <schwab@suse.de>
6554
6555 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6556 dependencies.
6557 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6558 as m68k_linux_extract_return_value.
6559 (DEPRECATED_STORE_RETURN_VALUE): Define as
6560 m68k_linux_store_return_value.
6561 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6562 m68k_linux_extract_struct_value_address.
6563 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6564 get_next_frame, get_frame_base, get_frame_pc.
6565 (m68k_linux_frame_saved_pc): Use get_frame_base.
6566 (m68k_linux_extract_return_value): New function.
6567 (m68k_linux_store_return_value): New function.
6568 (m68k_linux_extract_struct_value_address): New function.
6569 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6570
6571 * c-exp.y (typebase): Remove duplicate occurence of
6572 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6573 of lookup_signed_typename.
6574
6575 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6576
6577 * dwarf2loc.c (find_location_expression): Change type of second
6578 argument to `size_t *'.
6579 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6580 for size variable.
6581
6582 2003-05-18 David Carlton <carlton@bactrian.org>
6583
6584 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6585 'linkage_name'. Add comment.
6586 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6587 'linkage_name'.
6588 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6589 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6590 (lookup_block_symbol): Ditto.
6591
6592 2003-05-16 Andrew Cagney <cagney@redhat.com>
6593
6594 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6595 * gdbarch.h, gdbarch.c: Re-generate.
6596 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6597 * TODO (REGISTER_BYTES): Delete reference.
6598 * alpha-tdep.c (alpha_gdbarch_init): Update.
6599 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6600 * x86-64-tdep.c (x86_64_init_abi): Update.
6601 * vax-tdep.c (vax_gdbarch_init): Update.
6602 * v850-tdep.c (v850_gdbarch_init): Update.
6603 * sparc-tdep.c (sparc_gdbarch_init): Update.
6604 * sh-tdep.c (sh_gdbarch_init): Update.
6605 * s390-tdep.c (s390_gdbarch_init): Update.
6606 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6607 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6608 (ns32k_gdbarch_init_32382): Update.
6609 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6610 * mcore-tdep.c (mcore_gdbarch_init): Update.
6611 * m68k-tdep.c (m68k_gdbarch_init): Update.
6612 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6613 * ia64-tdep.c (ia64_gdbarch_init): Update.
6614 * i386-tdep.c (i386_gdbarch_init): Update.
6615 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6616 * hppa-tdep.c (hppa_gdbarch_init): Update.
6617 * h8300-tdep.c (h8300_gdbarch_init): Update.
6618 * frv-tdep.c (frv_gdbarch_init): Update.
6619 * cris-tdep.c (cris_gdbarch_init): Update.
6620 * avr-tdep.c (avr_gdbarch_init): Update.
6621 * arm-tdep.c (arm_gdbarch_init): Update.
6622 * sparc-tdep.c (sparc_pop_frame): Update.
6623 * rs6000-tdep.c (rs6000_pop_frame): Update.
6624 * remote.c (init_remote_state): Update.
6625 (remote_prepare_to_store): Update.
6626 * remote-vx.c (vx_prepare_to_store): Update.
6627 * remote-sds.c (sds_fetch_registers): Update.
6628 (sds_prepare_to_store): Update.
6629 * remote-array.c: Update.
6630 * regcache.c (init_legacy_regcache_descr): Update.
6631 (init_regcache_descr): Update.
6632 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6633 (mips_o64_extract_return_value): Update.
6634 * irix5-nat.c (fetch_core_registers): Update.
6635 * irix4-nat.c (fetch_core_registers): Update.
6636 * i386-tdep.h: Update.
6637 * hppa-tdep.c (pa_do_registers_info): Update.
6638 (pa_do_strcat_registers_info): Update.
6639 * cris-tdep.c (cris_register_bytes_ok): Update.
6640 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6641 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6642 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6643 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6644 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6645 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6646 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6647 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6648 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6649 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6650 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6651 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6652 (REGISTER_BYTES_OK): Update.
6653 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6654 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6655
6656 2003-05-16 Ian Lance Taylor <ian@airs.com>
6657
6658 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6659 (vax_print_insn, print_insn_arg): Remove static functions.
6660 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6661 print_insn_vax from opcodes library.
6662 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6663
6664 2003-05-15 Andrew Cagney <cagney@redhat.com>
6665
6666 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6667 * target.h (memory_breakpoint_from_pc): Delete declaration.
6668 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6669 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6670 * monitor.c (monitor_insert_breakpoint): Use
6671 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6672 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6673 * gdbarch.h, gdbarch.c: Re-generate.
6674 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6675 (sparc_gdbarch_init): Set breakpoint_from_pc to
6676 sparc_breakpoint_from_pc.
6677 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6678 (BREAKPOINT_FROM_PC): Define.
6679 (sparc_breakpoint_from_pc): Declare.
6680 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6681 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6682 (BREAKPOINT_FROM_PC): Define.
6683 (BREAKPOINT): Delete macro.
6684 * target.h: Update comment.
6685 * s390-tdep.c (s390_gdbarch_init): Update comments.
6686 * remote.c: Update comments.
6687 * remote-mips.c: Update comments.
6688 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6689 * mem-break.c: Update comment.
6690 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6691 (ia64_memory_insert_breakpoint): Update.
6692 * config/sparc/tm-sparc.h: Update comment.
6693 * config/pa/tm-hppa64.h: Update comment.
6694 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6695 (rs6000_breakpoint_from_pc): Update.
6696 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6697 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6698 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6699 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6700 (mips_breakpoint_from_pc): Update.
6701 (mips_dump_tdep): Update.
6702
6703 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6704 * minsyms.c (lookup_minimal_symbol): Inline
6705 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6706
6707 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6708 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6709 * p-lang.c (pascal_printstr): Ditto.
6710 * objc-lang.c (objc_printstr): Ditto.
6711 * m2-lang.c (m2_printstr): Ditto.
6712 * jv-valprint.c (java_print_value_fields): Ditto.
6713 * f-lang.c (f_printstr): Ditto.
6714 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6715 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6716 for repeat_count_threshold.
6717 * Makefile.in (cp-valprint.o): Update dependencies.
6718
6719 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6720
6721 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6722 (examine_prologue): Support looking through leaf functions, knowing
6723 they start with mov r2,r12. Support skipping over indirect stores
6724 of the input registers. Upon hitting a non-nop branch instruction
6725 or predicated instruction, bail out by setting lim_pc to the current
6726 pc value in the loop. At the end, if the lim_pc value is still
6727 beyond our calculated value and we have trust_limit set,
6728 use the lim_pc value.
6729
6730 2003-05-15 Andrew Cagney <cagney@redhat.com>
6731
6732 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6733 generic_find_dummy_frame.
6734 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6735 (deprecated_generic_find_dummy_frame): Update.
6736 (deprecated_read_register_dummy): Update.
6737 * frame.c (deprecated_generic_get_saved_register): Update.
6738
6739 2003-05-15 Theodore A. Roth <troth@openavr.org>
6740
6741 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6742 (avr_gdbarch_init): Set breakpoint_from_pc method.
6743
6744 2003-05-15 Andrew Cagney <cagney@redhat.com>
6745
6746 * regcache.c (build_regcache): Set deprecated_register_valid
6747 directly.
6748 (deprecated_grub_regcache_for_register_valid): Delete function.
6749 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6750 declaration.
6751
6752 2003-05-15 David Carlton <carlton@bactrian.org>
6753
6754 Committed by Elena Zannoni <ezannoni@redhat.com>
6755 * symtab.c (lookup_symbol_aux): Delete calls to
6756 lookup_symbol_aux_minsyms.
6757 (lookup_symbol_aux_minsyms): Comment out function and
6758 prototype. Delete lookup by mangled name.
6759
6760 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6761
6762 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6763 correctly indicate an empty stack and ``stack_allocated'' to the
6764 indicate the number of elements initially allocated.
6765 (dwarf_expr_grow_stack): Simplify method for computing new
6766 stack size. Don't loop infinitely if ``stack_len'' is zero.
6767 (execute_stack_op): Move ``ctx->in_reg'' initialization
6768 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6769 be used in conjuction with DW_OP_piece. Revise error message
6770 accordingly.
6771
6772 2003-05-14 Theodore A. Roth <troth@openavr.org>
6773
6774 * MAINTAINERS: Update my email address.
6775 * avr-tdep.c: Ditto.
6776
6777 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6778
6779 * symtab.h (enum domain_enum): Rename from namespace_enum.
6780 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6781 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6782 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6783 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6784 TYPES_NAMESPACE, METHODS_NAMESPACE.
6785 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6786 (struct symbol, struct partial_symbol): Rename field
6787 'namespace_enum namespace' to 'domain_enum domain'.
6788 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6789 Delete old define kludge for namespace.
6790
6791 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6792 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6793 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6794 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6795 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6796 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6797 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6798 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6799 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6800 occurrences of the above.
6801
6802 2003-05-14 Ian Lance Taylor <ian@airs.com>
6803
6804 * Makefile.in (install-only): Use $(SHELL) when running
6805 mkinstalldirs.
6806
6807 2003-05-13 Ian Lance Taylor <ian@airs.com>
6808
6809 * MAINTAINERS (write after approval): Add myself.
6810
6811 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6812 second and third arguments.
6813 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6814 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6815
6816 2003-05-13 Andrew Cagney <cagney@redhat.com>
6817
6818 * defs.h (store_address): Delete declaration.
6819 findvar.c (store_address): Delete function.
6820 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6821 store_unsigned_integer.
6822 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6823 * v850-tdep.c (v850_push_arguments): Ditto.
6824 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6825 * sh-tdep.c (sh64_get_saved_register): Ditto.
6826 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6827 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6828 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6829 (mips_get_saved_register): Ditto.
6830 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6831 (find_func_descr, ia64_push_arguments): Ditto.
6832 * i386-tdep.c (i386_push_arguments): Ditto.
6833 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6834 * frv-tdep.c (frv_push_arguments): Ditto.
6835 * frame.c (legacy_saved_regs_prev_register): Ditto.
6836 (deprecated_generic_get_saved_register): Ditto.
6837 * findvar.c (unsigned_address_to_pointer): Ditto.
6838 * dwarf2read.c (dwarf2_const_value): Ditto.
6839 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6840 * alpha-tdep.c (alpha_push_arguments): Ditto.
6841
6842 2003-05-12 J. Brobecker <brobecker@gnat.com>
6843
6844 * NEWS: Mention that the hppa-hpux port has been partially
6845 multiarched (32bit ABIT only, so far).
6846
6847 2003-05-11 Andrew Cagney <cagney@redhat.com>
6848
6849 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6850 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6851 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6852 sim/testsuite/sim/arm/misaligned2.ms, and
6853 sim/testsuite/sim/arm/misaligned3.ms.
6854 * disasm.h (struct ui_file): Add opaque struct declaration.
6855 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6856 * frame.h (struct ui_file): Ditto.
6857
6858 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6859
6860 * value.h: Pretty print.
6861
6862 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6863
6864 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6865
6866 2003-05-08 Andrew Cagney <cagney@redhat.com>
6867
6868 * regcache.h (max_register_size): Delete declaration.
6869 * regcache.c (max_register_size): Delete function.
6870 (struct regcache_descr): Delete field "max_register_size".
6871 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6872 registers fit in MAX_REGISTER_SIZE.
6873 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6874 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6875 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6876 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6877 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6878 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6879 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6880 * dve3900-rom.c, hppa-tdep.c: Ditto.
6881
6882 2003-05-08 David Carlton <carlton@math.stanford.edu>
6883
6884 * valops.c (push_word): Fix typo.
6885
6886 2003-05-08 Andrew Cagney <cagney@redhat.com>
6887
6888 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6889 * gdbarch.h: Re-generate.
6890 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6891 (legacy_max_register_raw_size): Delete declaration.
6892 * regcache.c (legacy_max_register_raw_size): Delete function.
6893 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6894 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6895 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6896 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6897 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6898 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6899 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6900 * findvar.c, dwarf2cfi.c: Ditto.
6901
6902 2003-05-08 Andrew Cagney <cagney@redhat.com>
6903
6904 * mips-tdep.c (read_signed_register): New function, moved to here
6905 from "regcache.c".
6906 (read_signed_register_pid): Ditto.
6907 * regcache.c (read_signed_register_pid): Delete function, moved to
6908 "mips-tdep.c".
6909 (read_signed_register): Ditto.
6910 * regcache.h (read_signed_register): Delete declaration.
6911 (read_signed_register_pid): Delete declaration.
6912
6913 2003-05-08 Andrew Cagney <cagney@redhat.com>
6914
6915 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6916 * gdbarch.h: Re-generate.
6917 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6918 (legacy_max_register_virtual_size): Delete declaration.
6919 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6920 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6921 * tracepoint.c (memrange_sortmerge): Ditto.
6922 * sparc-tdep.c (sparc_print_registers): Ditto.
6923 * regcache.c (legacy_max_register_virtual_size): Delete function.
6924
6925 2002-05-08 J. Brobecker <brobecker@gnat.com>
6926
6927 * fork-child.c (escape_bang_in_quoted_argument): New function.
6928 (fork_inferior): Escape '!' characters in quoted arguments
6929 only when needed.
6930
6931 2003-05-08 J. Brobecker <brobecker@gnat.com>
6932
6933 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6934 the language of the CU is not currently supported by GDB.
6935
6936 2003-05-08 J. Brobecker <brobecker@gnat.com>
6937
6938 * defs.h (language): Add language_minimal enum value.
6939 * c-lang.c (minimal_language_defn): New language definition.
6940 (_initialize_c_language): Add the new minimal language to the list
6941 of languages known to GDB.
6942
6943 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6944
6945 * frame.c (get_frame_type): Don't attempt to lazily initialize
6946 frame's unwinder for legacy frames.
6947
6948 2003-05-07 Andrew Cagney <cagney@redhat.com>
6949
6950 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6951 and "regcache" parameters.
6952 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6953
6954 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6955
6956 * dwarf2read.c (dwarf_decode_lines): Only use output of
6957 check_cu_functions() when calling record_line(). Do not update
6958 the current address.
6959
6960 2003-05-07 Andrew Cagney <cagney@redhat.com>
6961
6962 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6963 code.
6964
6965 2003-05-07 Jim Blandy <jimb@redhat.com>
6966
6967 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6968 'maint info symtabs' and 'maint info psymtabs'.
6969 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6970 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6971 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6972 Declarations updated.
6973 * maint.c (maintenance_list_command): Delete.
6974 (_initialize_maint_cmds): Update calls to add_cmd.
6975 * gdbcmd.h (maintenancelistlist): Delete declaration.
6976 * cli/cli-cmds.c (maintenancelistlist): Delete.
6977 (init_cmd_lists): Don't initialize it.
6978 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6979
6980 2003-05-07 Andrew Cagney <cagney@redhat.com>
6981
6982 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6983 "regcache".
6984 (d10v_print_registers_info): Update.
6985 (d10v_dmap_register, d10v_imap_register): Delete functions.
6986 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6987 and "imap_register".
6988 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6989 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6990 * arch-utils.c (generic_remote_translate_xfer_address): Add
6991 "regcache" and "gdbarch" parameters.
6992 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6993 parameter. Change class to multi-arch.
6994 * gdbarch.h, gdbarch.c: Re-generate.
6995 * remote.c (remote_xfer_memory): Use
6996 gdbarch_remote_translate_xfer_address.
6997
6998 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6999
7000 * infrun.c (prev_pc): Move declaration ahead of proceed().
7001 (proceed): Refresh prev_pc value before resuming.
7002 (stop_stepping): Remove code to refresh prev_pc.
7003
7004 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7005
7006 * nto-tdep.c: Removed stray comment.
7007
7008 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7009
7010 * i386-nto-tdep.c: Fix old K&R function definitions.
7011 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7012 Also change add_show_from_set() call to add_setshow_cmd().
7013 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7014
7015 2003-05-05 Andrew Cagney <cagney@redhat.com>
7016
7017 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7018 (fprint_dummy_frames): New function.
7019 (maintenance_print_dummy_frames): New function.
7020 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7021 * frame.c (fprint_frame_id): Make global.
7022 * frame.h (fprint_frame_id): Declare.
7023 * Makefile.in (dummy-frame.o): Update dependencies.
7024
7025 2003-05-05 Andrew Cagney <cagney@redhat.com>
7026
7027 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7028 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7029 SIZEOF_CALL_DUMMY_WORDS.
7030 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7031 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7032 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7033 CALL_DUMMY_BREAKPOINT_OFFSET.
7034 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7035 CALL_DUMMY_START_OFFSET.
7036 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7037 * gdbarch.h, gdbarch.c: Re-generate.
7038 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7039 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7040 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7041 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7042 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7043 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7044 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7045 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7046 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7047 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7048 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7049 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7050 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7051 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7052 * config/sparc/tm-sparc.h: Update.
7053
7054 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7055
7056 * configure.tgt: Add i[3456]86-*-nto*.
7057 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7058 * nto-tdep.c: New file. Neutrino target support routines.
7059 * nto-tdep.h: New file. Neutrino target header.
7060 * config/tm-qnxnto.h: New file.
7061 * config/i386/i386nto.mt: New file.
7062 * config/i386/tm-i386nto.h: New file.
7063
7064 2003-05-04 Andrew Cagney <cagney@redhat.com>
7065
7066 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7067 (load_infrun_state): Ditto.
7068 (struct thread_info): Drop "prev_func_name" field.
7069 * thread.c (load_infrun_state): Update.
7070 (save_infrun_state): Update.
7071 * infrun.c (prev_func_name): Delete variable.
7072 (init_wait_for_inferior): Do not clear prev_func_name.
7073 (stop_stepping, keep_going, context_switch): Do not swap
7074 prev_func_name.
7075 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7076 instead of PC_IN_SIGTRAMP.
7077
7078 2003-05-04 Andrew Cagney <cagney@redhat.com>
7079
7080 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7081 REGISTER_BYTE with register_offset_hack.
7082 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7083 that REGISTER_BYTE is consistent with the regcache.
7084 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7085 * gdbarch.h, gdbarch.c: Regenerate.
7086
7087 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7088
7089 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7090 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7091
7092 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7093
7094 2003-05-03 J. Brobecker <brobecker@gnat.com>
7095
7096 From Thierry Schneider <tpschneider1@yahoo.com>
7097 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7098 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7099 (mi-cmd-symbol.o): Add rule.
7100
7101 2003-05-03 Andrew Cagney <cagney@redhat.com>
7102
7103 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7104 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7105 * gdbarch.h, gdbarch.c: Re-generate.
7106 * d10v-tdep.c (d10v_push_dummy_code): New function.
7107 (d10v_gdbarch_init): Set push_dummy_code.
7108 * infcall.c (legacy_push_dummy_code): New function.
7109 (generic_push_dummy_code): New function.
7110 (push_dummy_code): New function.
7111 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7112 instead of dummy_addr, to push_dummy_call. Move call to
7113 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7114 switch.
7115 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7116
7117 2003-05-03 Andrew Cagney <cagney@redhat.com>
7118
7119 * disasm.h (print_insn): Declare.
7120 * disasm.c (init_gdb_disassemble_info): New function.
7121 (gdb_disassembly): Call init_gdb_disassemble_info.
7122 (gdb_print_insn): New function.
7123 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7124 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7125 * mcore-tdep.c: Include "disasm.h"
7126 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7127 * d10v-tdep.c: Include "disasm.h".
7128 (display_trace): Call gdb_print_insn, instead of print_insn.
7129 (print_insn): Delete function.
7130 * printcmd.c: Include "disasm.h".
7131 (print_insn): Delete function.
7132 (print_formatted): Call gdb_print_insn, instead of print_insn.
7133 * Makefile.in (printcmd.o): Update dependencies.
7134 (mcore-tdep.o, d10v-tdep.o): Ditto.
7135
7136 2003-05-02 Andrew Cagney <cagney@redhat.com>
7137
7138 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7139 PC_REGNUM, re-indent.
7140 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7141 PC_REGNUM isn't set.
7142
7143 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7144 * gdbarch.h, gdbarch.c: Re-generate.
7145 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7146 register_virtual_size, pc_regnum, or register_bytes.
7147 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7148 (d10v_register_type): Use D10V_PC_REGNUM.
7149 (d10v_print_registers_info, d10v_read_pc): Ditto.
7150 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7151 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7152
7153 2003-05-02 David Carlton <carlton@bactrian.org>
7154
7155 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7156 the name with mstrsave.
7157
7158 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7159
7160 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7161 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7162 (host_charset_name, target_charset_name): New vars for use by
7163 set/show commands.
7164 (host_charset_enum, target_charset_enum): New enums for set/show
7165 commands.
7166 (set_charset_sfunc, set_host_charset_sfunc,
7167 set_target_charset_sfunc): New functions.
7168 (set_host_charset, set_target_charset): Make static.
7169 (list_charsets, set_host_charset_command,
7170 set_target_charset_command): Delete functions.
7171 (show_charset_command): Rewrite as....
7172 (show_charset): Hook this up with the set/show command mechanism.
7173 (_initialize_charset): Change names of charsets to match the
7174 set/show enums. Use host_charset_name and target_charset_name.
7175 Use set/show mechanism for charset, host-charset, target-charset
7176 commands. Do not make 'show host-charset' and 'show
7177 target-charset' be aliases of 'show charset'.
7178
7179 * charset.h (set_host_charset, set_target_charset): Don't export,
7180 they are not used outside the file.
7181
7182 2003-05-01 Andrew Cagney <cagney@redhat.com>
7183
7184 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7185 (gdb_disassembly): Make "di" non static, always initialize and
7186 cleanup. Always use dis_asm_read_memory.
7187 (gdb_dis_asm_read_memory): Delete function.
7188
7189 2003-05-01 Andrew Cagney <cagney@redhat.com>
7190
7191 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7192 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7193
7194 2003-04-30 Andrew Cagney <cagney@redhat.com>
7195
7196 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7197 "tm_print_insn_info".
7198 (TARGET_PRINT_INSN_INFO): Delete macro.
7199 (dis_asm_read_memory): Delete function declaration.
7200 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7201 (tm_print_insn_info): Delete variable definition.
7202 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7203 * gdbarch.h, gdbarch.c: Re-generate.
7204 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7205 "deprecated_tm_print_insn_info".
7206 * mcore-tdep.c (mcore_dump_insn): Ditto.
7207 * mips-tdep.c (mips_gdbarch_init): Ditto.
7208 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7209 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7210 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7211 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7212 instead of TARGET_PRINT_INSN_INFO, add comment.
7213 * s390-tdep.c (s390_get_frame_info): Instead of
7214 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7215 (s390_check_function_end, s390_is_sigreturn): Ditto.
7216 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7217 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7218 * disasm.c: Include "gdbcore.h".
7219 (_initialize_disasm): New function, initialize
7220 "deprecated_tm_print_insn_info".
7221 (deprecated_tm_print_insn_info): New variable.
7222 (dis_asm_read_memory): Moved from "corefile.c", made static.
7223 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7224 * Makefile.in (disasm.o): Update dependencies.
7225
7226 2003-04-30 Andrew Cagney <cagney@redhat.com>
7227
7228 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7229
7230 2003-04-29 Adam Fedor <fedor@gnu.org>
7231
7232 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7233 * infcall.c (find_function_addr): Make non-static.
7234 * infcall.h (find_function_addr): Declare.
7235 * Makefile.in (eval.o): Update dependencies.
7236
7237 2003-04-28 Adam Fedor <fedor@gnu.org>
7238
7239 * symtab.c (symbol_find_demangled_name): Check for and demangle
7240 ObjC symbols.
7241 (symbol_init_demangled_name): Init for language_objc as well.
7242
7243 2003-04-28 Andrew Cagney <cagney@redhat.com>
7244
7245 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7246 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7247 * gdbarch.h, gdbarch.c: Re-generate.
7248 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7249 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7250 * inferior.h (deprecated_read_fp): Rename read_fp.
7251 (generic_target_read_fp): Delete declaration.
7252 * regcache.c (generic_target_read_fp): Delete function.
7253 (deprecated_read_fp): Replace read_fp, use
7254 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7255 * d10v-tdep.c (d10v_read_fp): Delete function.
7256 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7257
7258 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7259 deprecated_target_read_fp to generic_target_read_fp.
7260 * sh-tdep.c (sh_gdbarch_init): Ditto.
7261 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7262 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7263 * frv-tdep.c (frv_gdbarch_init): Ditto.
7264
7265 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7266 deprecated_fp_regnum.
7267 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7268 * vax-tdep.c (vax_gdbarch_init): Ditto.
7269 * v850-tdep.c (v850_gdbarch_init): Ditto.
7270 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7271 * sh-tdep.c (sh_gdbarch_init): Ditto.
7272 * s390-tdep.c (s390_gdbarch_init): Ditto.
7273 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7274 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7275 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7276 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7278 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7279 * i386-tdep.c (i386_gdbarch_init): Ditto.
7280 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7281 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7282 * frv-tdep.c (frv_gdbarch_init): Ditto.
7283 * cris-tdep.c (cris_gdbarch_init): Ditto.
7284 * avr-tdep.c (avr_gdbarch_init): Ditto.
7285 * arm-tdep.c (arm_gdbarch_init): Ditto.
7286 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7287
7288 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7289 * v850-tdep.c (v850_gdbarch_init): Ditto.
7290 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7291 * sh-tdep.c (sh_gdbarch_init): Ditto.
7292 * s390-tdep.c (s390_gdbarch_init): Ditto.
7293 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7294 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7295 * mips-tdep.c (mips_gdbarch_init): Ditto.
7296 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7297 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7298 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7299 * frv-tdep.c (frv_gdbarch_init): Ditto.
7300 * avr-tdep.c (avr_gdbarch_init): Ditto.
7301 * arm-tdep.c (arm_gdbarch_init): Ditto.
7302
7303 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7304 DEPRECATED_FP_REGNUM.
7305 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7306 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7307 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7308 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7309 (sparc32_register_virtual_type): Ditto.
7310 * sh-tdep.c (sh64_frame_chain): Ditto.
7311 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7312 (sh_nofp_frame_init_saved_regs): Ditto.
7313 (sh64_nofp_frame_init_saved_regs): Ditto.
7314 (sh_fp_frame_init_saved_regs): Ditto.
7315 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7316 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7317 * procfs.c (procfs_fetch_registers): Ditto.
7318 (procfs_store_registers): Ditto.
7319 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7320 (store_inferior_registers, fetch_core_registers): Ditto.
7321 (fetch_kcore_registers, clear_regs): Ditto.
7322 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7323 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7324 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7325 * nlm/i386.c (do_status): Ditto.
7326 * mipsv4-nat.c (supply_gregset): Ditto.
7327 * mips-tdep.c: Ditto for comments.
7328 * mips-nat.c (fetch_inferior_registers): Ditto.
7329 (store_inferior_registers, fetch_core_registers): Ditto.
7330 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7331 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7332 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7333 (i386_do_pop_frame, i386_register_type): Ditto.
7334 * hppa-tdep.c (hppa_frame_chain): Ditto.
7335 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7336 (hppa_pop_frame, hppa_read_fp): Ditto.
7337 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7338 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7339 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7340 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7341 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7342 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7343 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7344 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7345 * blockframe.c: Ditto for comments.
7346 * arch-utils.h: Ditto for comments.
7347 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7348 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7349 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7350 * alpha-tdep.h: Ditto for comments.
7351 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7352 (alpha_cannot_store_register): Ditto.
7353 (alpha_push_dummy_frame): Ditto.
7354 * alpha-nat.c (supply_gregset): Ditto.
7355
7356 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7357 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7358 * config/sparc/tm-sparc.h: Update comment.
7359
7360 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7361 deprecated_read_fp instead of TARGET_READ_FP.
7362 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7363 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7364 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7365 deprecated_read_fp instead of read_fp.
7366 * s390-tdep.c (s390_push_arguments): Ditto.
7367 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7368 * frame.h: Ditto in comments.
7369 * frame.c (legacy_get_prev_frame): Ditto.
7370 * dummy-frame.c (dummy_frame_this_id): Ditto.
7371 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7372
7373 2003-04-28 Andrew Cagney <cagney@redhat.com>
7374
7375 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7376 * gdbarch.h, gdbarch.c: Re-generate.
7377 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7378 * vax-tdep.c (_initialize_vax_tdep): Update.
7379 * v850-tdep.c (_initialize_v850_tdep): Update.
7380 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7381 * s390-tdep.c (_initialize_s390_tdep): Update.
7382 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7383 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7384 * mips-tdep.c (_initialize_mips_tdep): Update.
7385 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7386 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7387 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7388 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7389 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7390 * frv-tdep.c (_initialize_frv_tdep): Update.
7391 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7392 (_initialize_cris_tdep): Update.
7393 * arch-utils.c (legacy_print_insn): Update.
7394 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7395
7396 2003-04-26 Adam Fedor <fedor@gnu.org>
7397
7398 * linespec.c (decode_objc): New function to decode ObjC calls
7399 (decode_line_1): Check for ObjC calls (using decode_objc)
7400 * Makefile (linespec.o): Update dependencies.
7401
7402 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7403
7404 * breakpoint.h (struct breakpoint_ops): New.
7405 (struct breakpoint): Add ops member.
7406
7407 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7408 (mention): Use new breakpoint ops member.
7409 (set_raw_breakpoint): Initialize ops field to NULL.
7410 (print_exception_catchpoint, print_one_exception_catchpoint)
7411 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7412 (gnu_v3_exception_catchpoint_ops): New.
7413 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7414
7415 2003-04-25 Adam Fedor <fedor@gnu.org>
7416
7417 * Makefile.in (COMMON_OBS): Add objc-lang.o
7418
7419 2003-04-25 Andrew Cagney <cagney@redhat.com>
7420
7421 * d10v-tdep.c (print_insn): Delete function.
7422 (display_trace): Use TARGET_PRINT_INSN.
7423 (_initialize_d10v_tdep): Do not set tm_print_insn.
7424 (d10v_gdbarch_init): Set print_insn.
7425
7426 2003-04-25 Andrew Cagney <cagney@redhat.com>
7427
7428 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7429 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7430 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7431 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7432 (nr_dmap_regs, a0_regnum): ... new functions.
7433 (d10v_print_registers_info): Use a0_regnum, use register_size.
7434 (d10v_register_byte): Delete function.
7435 (d10v_register_raw_size): Delete function.
7436 (d10v_register_type): Use a0_regnum.
7437 (d10v_print_registers_info): Use a0_regnum.
7438 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7439 (d10v_gdbarch_init): Do not set register_byte or
7440 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7441 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7442 extract_address.
7443 (trace_command): Use XCALLOC.
7444 (print_insn): Delete reference to tm_print_insn.
7445 (saved_regs_unwinder): Use store_unsigned_integer instead of
7446 store_address.
7447 * frame.h (FRAME_OBSTACK_CALLOC): Define
7448
7449 2003-04-25 David Carlton <carlton@bactrian.org>
7450
7451 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7452
7453 2003-04-24 Adam Fedor <fedor@gnu.org>
7454
7455 * objc-lang.c: Include "valprint.h"
7456 * Makefile.in (objc-lang.o): Update dependencies.
7457
7458 2003-04-24 Adam Fedor <fedor@gnu.org>
7459
7460 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7461 architecture dependant compilation and mark as unimplemented
7462 (until they get put in the gdbarch vector).
7463
7464 2003-04-23 David Carlton <carlton@bactrian.org>
7465
7466 * cp-support.c (cp_find_first_component): Accept 'operator' in
7467 more locations.
7468
7469 2003-04-23 Andrew Cagney <cagney@redhat.com>
7470
7471 * infcall.c (call_function_by_hand): Eliminate redundant
7472 indentation. Move "saved_async" and "old_cleanups" to where they
7473 are needed.
7474
7475 2003-04-23 Andrew Cagney <cagney@redhat.com>
7476
7477 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7478 and "buffer". Move the "name" code to where it is needed.
7479
7480 2003-04-23 Andrew Cagney <cagney@redhat.com>
7481
7482 * infcall.c (call_function_by_hand): Move variables "start_sp",
7483 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7484 code to ON_STACK switch branch.
7485
7486 2003-04-23 Andrew Cagney <cagney@redhat.com>
7487
7488 * infcall.c (call_function_by_hand): Make declaration of "i",
7489 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7490 lint.
7491
7492 2003-04-23 Andrew Cagney <cagney@redhat.com>
7493
7494 * infcall.c (call_function_by_hand): Delete variable
7495 "n_method_args". Localize "param_type"'s declaration to the loop
7496 that it is used. Reinstate code assigning to said variable -
7497 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7498 Rationalize code using "param_type".
7499
7500 2003-04-22 Andrew Cagney <cagney@redhat.com>
7501
7502 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7503 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7504 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7505 to DEPRECATED_PUSH_RETURN_ADDRESS.
7506
7507 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7508
7509 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7510 on the DWARF2 register number prior to fetching a register.
7511
7512 2003-04-22 J. Brobecker <brobecker@gnat.com>
7513
7514 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7515 Update all the tests using SOFT_FLOAT considering the fact that
7516 this macro was always set to 0.
7517 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7518 considering the fact that this macro was always set to 0.
7519 * hppa-tdep.h (hppa_store_return_value): Likewise.
7520 (hppa_extract_return_value): Likewise.
7521
7522 2003-04-22 J. Brobecker <brobecker@gnat.com>
7523
7524 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7525 the hppa-pro target only.
7526
7527 2003-04-21 J. Brobecker <brobecker@gnat.com>
7528
7529 Ongoing multi-arch conversion effort for HP/UX:
7530 * config/pa/tm-hppa.h: Move all macro that are no longer
7531 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7532 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7533
7534 2003-04-21 J. Brobecker <brobecker@gnat.com>
7535
7536 * config/pa/tm-hppa.h: Obsolete a section that was only used
7537 for hppa-pro.
7538
7539 2003-04-21 J. Brobecker <brobecker@gnat.com>
7540
7541 Ongoing multi-arch conversion for HP/UX.
7542 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7543 if already defined (allows hppa64 to stay non-multiarched for now).
7544 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7545
7546 2003-04-21 Andrew Cagney <cagney@redhat.com>
7547
7548 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7549
7550 2003-04-21 Andrew Cagney <cagney@redhat.com>
7551
7552 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7553 "i386_num_mmx_regs".
7554
7555 2003-04-21 Andrew Cagney <cagney@redhat.com>
7556
7557 * infcall.c: New file.
7558 * infcall.h: New file.
7559 * valarith.c: Include "infcall.h".
7560 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7561 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7562 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7563 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7564 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7565 (SFILES): Add "infcall.c"
7566 (COMMON_OBS): Add "infcall.o".
7567 (infcall.o): Specify dependencies.
7568 * value.h (call_function_by_hand): Delete declaration.
7569 * inferior.h (run_stack_dummy): Delete declaration.
7570 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7571 (run_stack_dummy): Move to "infcall.c", merged into
7572 call_function_by_hand.
7573 * valops.c (call_function_by_hand): Moved to "infcall.c".
7574 (find_function_addr, value_arg_coerce): Ditto.
7575 (unwindonsignal_p, coerce_float_to_double): Ditto.
7576 (_initialize_valops): Move "set/show coerce-float-to-double", and
7577 "set/show unwindonsignal" commands to "infcall.c".
7578 * v850-tdep.c, target.h: Update comments.
7579 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7580 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7581 (sh64_init_extra_frame_info): Update comments.
7582 * mn10300-tdep.c: Update comments.
7583 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7584 * config/sparc/tm-sparc.h: Update comments.
7585 * breakpoint.h: Update comments.
7586 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7587 * arm-tdep.c: Update comment.
7588
7589 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7590
7591 * i386-tdep.c (i386_num_register_names): New variable.
7592 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7593 (MM0_REGNUM): Remove redundant parentheses in define.
7594 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7595 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7596 i386_mxcsr_regnum_p): Remove redundant parentheses.
7597 (i386_register_name): Use i386_num_register_names.
7598
7599 * i386-tdep.c (i386_extract_return_value,
7600 i386_store_return_value): Correct check for availability of
7601 floating-point registers.
7602
7603 * i386-tdep.c (i386_frame_num_args): Remove function.
7604 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7605
7606 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7607 mmx_regnum_to_fp_regnum. Adjust all callers.
7608
7609 * i386-tdep.c (i386_get_longjmp_target): Use
7610 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7611 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7612 extract_address.
7613
7614 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7615
7616 * core-regset.c: Update comments to reflect reality. Re-order
7617 includes.
7618 (fetch_core_registers): Use switch instead of if. Remove
7619 redundant prototype.
7620
7621 2003-04-18 Jim Blandy <jimb@redhat.com>
7622
7623 * s390-tdep.c (s390_frame_align): New function.
7624 (s390_gdbarch_init): Register it with the gdbarch object.
7625
7626 2003-04-17 Richard Henderson <rth@redhat.com>
7627
7628 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7629
7630 2003-04-17 Michael Snyder <msnyder@redhat.com>
7631 Karen Bennet <bennet@redhat.com>
7632
7633 Committed by Elena Zannoni <ezannoni@redhat.com>
7634 * gdb_gcore.sh: New script to create a core dump of a process.
7635
7636 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7637
7638 * values.c (value_being_returned): Don't fetch the return
7639 value if the return type is void.
7640
7641 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7642
7643 * thread-db.c: Reindented.
7644
7645 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7646
7647 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7648 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7649 as types.
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7676
7677 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7678 the size of ``long double'' to 16, instead of 8.
7679
7680 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7681
7682 * i386-linux-nat.c: Add some whitespace to make things more
7683 readable.
7684 (fetch_register, store_register, fetch_inferior_registers,
7685 store_inferior_registers): Get rid of assignment in if-statement.
7686 (store_register): Fix typo in error message.
7687
7688 2003-04-16 Andrew Cagney <cagney@redhat.com>
7689
7690 * utils.c (xmmalloc): Always allocate something, matches
7691 libiberty/xmalloc's semantics.
7692 (xmrealloc, xmcalloc): Ditto.
7693
7694 2003-04-16 Andrew Cagney <cagney@redhat.com>
7695
7696 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7697 update comments.
7698 (get_frame_type): Initialize unwind and type when needed.
7699 (get_frame_id, frame_register_unwind): Ditto.
7700
7701 2003-04-16 Andrew Cagney <cagney@redhat.com>
7702
7703 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7704 obsolete.
7705 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7706 * sparcl-stub.c: Obsolete file.
7707 * config/sparc/tm-sparclet.h: Obsolete file.
7708 * sparclet-stub.c: Obsolete file.
7709 * sparclet-rom.c: Obsolete file.
7710 * sparcl-tdep.c: Obsolete file.
7711 * config/sparc/tm-sparclite.h: Obsolete file.
7712 * config/sparc/sparclite.mt: Obsolete file.
7713 * config/sparc/sparclet.mt: Obsolete file.
7714 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7715 sparc86x-*-* obsolete.
7716
7717 2003-04-15 David Carlton <carlton@math.stanford.edu>
7718
7719 * Makefile.in (SFILES): Add cp-namespace.c.
7720 (COMMON_OBS): Add cp-namespace.o.
7721 (block.o): Depend on gdb_obstack_h and cp_support_h.
7722 (buildsym.o): Depend on cp_support_h.
7723 (cp-namespace.o): New.
7724 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7725 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7726 (dwarf2read.o): Depend on cp_support_h.
7727 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7728 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7729 processing_current_namespace.
7730 (read_namespace): Update processing_current_namespace; check for
7731 anonymous namespaces.
7732 (dwarf2_name): New function.
7733 (dwarf2_extension): Ditto.
7734 * cp-support.h: Update copyright, contributors.
7735 Add inclusion guards.
7736 Add opaque declaration for structs obstack, block, symbol.
7737 (struct using_direct): New struct.
7738 Add declarations for cp_find_first_component,
7739 cp_entire_prefix_len, processing_has_namespace_info,
7740 processing_current_namespace, cp_is_anonymous,
7741 cp_add_using_directive, cp_initialize_namespace,
7742 cp_finalize_namespace, cp_set_block_scope,
7743 cp_scan_for_anonymous_namespaces.
7744 * cp-namespace.c: New file.
7745 * cp-support.c: Update copyright.
7746 Include ctype.h, gdb_assert.h, gdbcmd.h.
7747 New variable maint_cplus_cmd_list.
7748 (cp_find_first_component): New function.
7749 (cp_entire_prefix_len, maint_cplus_command)
7750 (first_component_command, _initialize_cp_support): Ditto.
7751 * buildsym.c: Include cp-support.h.
7752 New variable using_list.
7753 (add_symbol_to_list): Check for anonymous namespaces.
7754 (finish_block): Set block's scope.
7755 (start_symtab): Initialize C++ namespace support.
7756 (end_symtab): Finalize C++ namespace support.
7757 * block.h: Add opaque declarations for structs
7758 block_namespace_info, using_direct, and obstack.
7759 Add declarations for block_set_scope and block_set_using.
7760 (struct block): Add 'language_specific' member.
7761 (BLOCK_NAMESPACE): New macro.
7762 * block.c: Include gdb_obstack.h and cp-support.h.
7763 (struct block_namespace_info): New struct.
7764 (block_set_scope): New function.
7765 (block_set_using, block_initialize_namespace): Ditto.
7766
7767 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7768
7769 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7770 (locate_base): Return early if there aren't any link map offsets.
7771 (svr4_solib_create_inferior_hook): Warn if shared library support
7772 is unavailable.
7773
7774 2003-04-14 David Carlton <carlton@math.stanford.edu>
7775
7776 * symtab.c (symbol_set_names): Add prefix when storing Java names
7777 in hash table. Fix for PR java/1039.
7778
7779 2003-04-14 David Carlton <carlton@math.stanford.edu>
7780
7781 * symtab.c (symbol_set_names): Rename 'name' arg to
7782 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7783 * symtab.h: Change 'name' argument in declaration of
7784 symbol_set_names to 'linkage_name'.
7785 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7786
7787 2003-04-14 Andrew Cagney <cagney@redhat.com>
7788
7789 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7790 return the fully sign-extended register value.
7791 (get_frame_pointer): Ditto.
7792 (mips_pop_frame): Initialize "proc_desc" after checking for a
7793 dummy frame.
7794
7795 2003-04-14 Andrew Cagney <cagney@redhat.com>
7796
7797 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7798 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7799 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7800 (mips_push_register): Delete function.
7801 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7802 PUSH_FP_REGNUM.
7803
7804 2003-04-14 Jim Blandy <jimb@redhat.com>
7805
7806 * symmisc.c: #include "gdb_regex.h".
7807 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7808 functions.
7809 * maint.c (maintenance_list_command): New function.
7810 (_initialize_maint_cmds): Register the above as commands.
7811 * symtab.h (maintenance_list_symtabs,
7812 maintenance_list_psymtabs): New declarations.
7813 * cli/cli-cmds.c (maintenancelistlist): New variable.
7814 (init_cmd_lists): Initialize it.
7815 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7816 * gdbcmd.h (maintenancelistlist): New declaration.
7817 * Makefile.in (symmisc.o): Update dependencies.
7818
7819 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7820
7821 * s390-nat.c: Include asm/types.h for addr_t.
7822
7823 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7824
7825 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7826 actually incoming type.
7827
7828 2003-04-13 Andrew Cagney <cagney@redhat.com>
7829
7830 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7831 get_next_frame and get_frame_saved_regs.
7832
7833 2003-04-13 Andrew Cagney <cagney@redhat.com>
7834
7835 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7836 of gdbarch_num_regs.
7837
7838 2003-04-13 Andrew Cagney <cagney@redhat.com>
7839
7840 * frame.h: Mention what replaced what in "struct frame_info".
7841 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7842 deprecated_update_frame_base_hack and
7843 deprecated_update_frame_pc_hack.
7844 * hppa-tdep.c: Ditto.
7845
7846 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7847
7848 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7849 to read_reg and update its comment. Remove regnum member.
7850 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7851 Don't call read_reg when setting in_reg. Call read_reg to get
7852 the frame base if it's in a register. Return the register number
7853 on the stack instead of in the context. Remove extra arguments
7854 to read_reg.
7855 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7856 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7857 the register number on the expression stack.
7858 (needs_frame_read_reg): Remove extra arguments.
7859
7860 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7861
7862 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7863 made non-static.
7864 (execute_stack_op): All callers updated.
7865 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7866 * dwarf2loc.c (find_location_expression): New function.
7867 (dwarf_expr_frame_base): Call it.
7868 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7869 (dwarf2_tracepoint_var_ref): New function, broken out from
7870 locexpr_tracepoint_var_ref.
7871 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7872 Make static.
7873 (loclist_read_variable, loclist_read_needs_frame): New functions.
7874 (loclist_describe_location, loclist_tracepoint_var_ref): New
7875 functions.
7876 (dwarf2_loclist_funcs): New struct location_funcs.
7877 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7878 (struct dwarf2_locexpr_baton): Add comments.
7879 (dwarf2_loclist_funcs): New extern.
7880 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7881 base_address and base_known.
7882 (dwarf_loc_buffer): New variable.
7883 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7884 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7885 (dwarf2_has_info): Initialize dwarf_loc_offset.
7886 (dwarf2_build_psymtabs): Read in .debug_loc.
7887 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7888 DWARF_LOC_SIZE.
7889 (psymtab_to_symtab_1): Likewise. Move base address calculation
7890 here, from...
7891 (dwarf2_get_pc_bounds): ... here. Use the base address from
7892 cu_header.
7893 (dwarf2_symbol_mark_computed): Handle location lists.
7894
7895 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7896
7897 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7898 if the linkage name demangled successfully.
7899
7900 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7901
7902 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7903 disassmbly_flavour): Removed.
7904
7905 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7906
7907 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7908
7909 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7910
7911 2003-04-12 Andrew Cagney <cagney@redhat.com>
7912
7913 * frame.h (struct frame_info): Move definition from here ...
7914 * frame.c (struct frame_info): ... to here.
7915
7916 2003-04-12 Andrew Cagney <cagney@redhat.com>
7917
7918 * gdbthread.h (save_infrun_state): Delete parameter
7919 "prev_func_start".
7920 (struct thread_info): Delete field "prev_func_start".
7921 (load_infrun_state): Ditto.
7922 * thread.c (load_infrun_state, save_infrun_state): Update.
7923 * infrun.c (prev_func_start): Delete variable.
7924 (context_switch, init_wait_for_inferior): Update.
7925 (stop_stepping, keep_going): Update.
7926
7927 2003-04-12 Andrew Cagney <cagney@redhat.com>
7928
7929 * gdbarch.sh: Add missing opaque declarations.
7930 * gdbarch.h: Regnerate.
7931 * symtab.h: Add missing opaque declarations.
7932 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7933 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7934 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7935 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7936 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7937 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7938 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7939 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7940 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7941 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7942 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7943 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7944 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7945
7946 2003-04-11 Andrew Cagney <cagney@redhat.com>
7947
7948 * frame.c (get_frame_id): Return this frame's "id".
7949 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7950 function start.
7951 (legacy_saved_regs_this_id): Replace function body with
7952 internal-error.
7953 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7954 FRAME_OBSTACK_ZALLOC.
7955 (create_new_frame): Mark the frame ID as valid.
7956
7957 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7958
7959 * Makefile.in (libbfd_h): Added missing setting.
7960 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7961 according to the selected ABI.
7962
7963 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7964
7965 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7966
7967 2003-04-11 Andrew Cagney <cagney@redhat.com>
7968
7969 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7970 SAVED_PC_AFTER_CALL.
7971 * gdbarch.h, gdbarch.c: Regenerate.
7972 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7973 * x86-64-tdep.c (x86_64_init_abi): Update.
7974 * vax-tdep.c (vax_gdbarch_init): Update.
7975 * v850-tdep.c (v850_gdbarch_init): Update.
7976 * sparc-tdep.c (sparc_gdbarch_init): Update.
7977 * sh-tdep.c (sh_gdbarch_init): Update.
7978 * s390-tdep.c (s390_gdbarch_init): Update.
7979 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7980 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7981 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7982 * mips-tdep.c (mips_gdbarch_init): Update.
7983 * mcore-tdep.c (mcore_gdbarch_init): Update.
7984 * m68k-tdep.c (m68k_gdbarch_init): Update.
7985 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7986 * ia64-tdep.c (ia64_gdbarch_init): Update.
7987 (ia64_saved_pc_after_call): Update declaration.
7988 * i386ly-tdep.c (i386lynx_init_abi): Update.
7989 * i386-tdep.c (i386_gdbarch_init): Update.
7990 * hppa-tdep.c (hppa_gdbarch_init): Update.
7991 * h8300-tdep.c (h8300_gdbarch_init): Update.
7992 * frv-tdep.c (frv_gdbarch_init): Update.
7993 * cris-tdep.c (cris_gdbarch_init): Update.
7994 * avr-tdep.c (avr_gdbarch_init): Update.
7995 * arm-tdep.c (arm_gdbarch_init): Update.
7996 * alpha-tdep.c (alpha_gdbarch_init): Update.
7997 * ns32knbsd-nat.c (frame_num_args): Update.
7998 * ns32k-tdep.c (umax_frame_num_args): Update.
7999 * mips-tdep.c (mips_init_frame_pc_first): Update.
8000 * infrun.c (step_over_function): Update.
8001 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8002 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8003 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8004 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8005 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8006 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8007 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8008 * arch-utils.c (init_frame_pc_default): Update.
8009 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8010 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8011 declaration.
8012
8013 2003-04-11 Andrew Cagney <cagney@redhat.com>
8014
8015 * i387-tdep.c: Update copyright.
8016 (i387_to_double): Delete function.
8017 (double_to_i387): Delete function.
8018
8019 2003-04-10 Andrew Cagney <cagney@redhat.com>
8020
8021 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8022 frame's function's address. Simplify.
8023 (d10v_frame_unwind_cache): Check that the frame's function is
8024 non-zero.
8025
8026 2003-04-10 Jim Blandy <jimb@redhat.com>
8027
8028 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8029 call to set_gdbarch_deprecated_push_arguments.
8030
8031 2003-04-10 Andrew Cagney <cagney@redhat.com>
8032
8033 * frame.c (fprint_frame_id): New function.
8034 (fprint_frame_type, fprint_frame): New function.
8035 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8036 (create_sentinel_frame, get_frame_id): Ditto.
8037 (frame_id_p, frame_id_eq): Ditto.
8038 (frame_id_inner, create_new_frame): Ditto.
8039 (legacy_get_prev_frame, get_prev_frame): Ditto.
8040 (deprecated_update_frame_pc_hack): Ditto.
8041 (frame_register_unwind): Ditto.
8042 (deprecated_update_frame_base_hack): Ditto.
8043
8044 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8045
8046 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8047 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8048 frame_chain function.
8049 * Makefile.in: Add dependencies due to above change.
8050
8051 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8052
8053 * blockframe.c (legacy_frame_chain_valid): Move call to
8054 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8055 inside_entry_file.
8056
8057 2003-04-09 Andrew Cagney <cagney@redhat.com>
8058
8059 * frame.h (struct frame_id): Replace "pc" and "base" with
8060 "stack_addr" and "code_addr". Update comments.
8061 (frame_id_build): Update parameter names and comment.
8062 (struct frame_info): Replace "id_p" and "id" with "this_id".
8063 * dummy-frame.c (dummy_frame_this_id): Update.
8064 * breakpoint.c (print_one_breakpoint): Update.
8065 * frame.c (get_frame_id): Update.
8066 (get_frame_base, frame_id_build): Update.
8067 (create_sentinel_frame, legacy_get_prev_frame): Update.
8068 (deprecated_update_frame_base_hack): Update.
8069 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8070 (frame_id_inner): Ditto.
8071
8072 2003-04-09 Andrew Cagney <cagney@redhat.com>
8073
8074 * defs.h (gdb_print_host_address): Make "addr" parameter a
8075 pointer constant.
8076 * utils.c (gdb_print_host_address): Update.
8077
8078 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8079
8080 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8081 register number for R0 is 0.
8082
8083 2003-04-09 J. Brobecker <brobecker@gnat.com>
8084
8085 * frame.h (struct gdbarch): Add opaque structure definition
8086 to avoid a compilation warning on LynxOS 4.0.
8087
8088 2003-04-09 Andrew Cagney <cagney@redhat.com>
8089
8090 * frame.h (struct frame_info): Delete field "pc". Replace
8091 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8092 structure.
8093 * frame.c (frame_pc_unwind): Update.
8094 (create_sentinel_frame): Do not set "pc".
8095 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8096 (get_frame_pc): Call frame_pc_unwind.
8097 (deprecated_update_frame_pc_hack): Update.
8098 (create_new_frame): Use "pc" not "->pc".
8099
8100 2003-04-09 Andrew Cagney <cagney@redhat.com>
8101
8102 * frame.c (get_frame_id): Eliminate code updating "frame".
8103 (legacy_get_prev_frame): Ditto.
8104 (get_frame_base): Return id.base directly.
8105 (deprecated_update_frame_base_hack): Update "id.base".
8106 * frame.h (struct frame_info): Delete field "frame".
8107
8108 2003-04-09 Andrew Cagney <cagney@redhat.com>
8109
8110 * NEWS: Mention that the "Sequent family" is obsolete.
8111 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8112 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8113 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8114 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8115 * config/i386/tm-ptx4.h: Obsolete file.
8116 * config/i386/tm-ptx.h: Obsolete file.
8117 * symm-tdep.c: Obsolete file.
8118 * config/i386/symmetry.mt: Obsolete file.
8119 * config/i386/tm-symmetry.h: Obsolete file.
8120 * symm-nat.c: Obsolete file.
8121 * config/i386/nm-symmetry.h: Obsolete file.
8122 * config/i386/xm-symmetry.h: Obsolete file.
8123 * config/i386/symmetry.mh: Obsolete file.
8124 * config/i386/nm-ptx4.h: Obsolete file.
8125 * config/i386/ptx4.mh: Obsolete file.
8126 * config/i386/ptx.mt: Obsolete file.
8127 * config/i386/ptx.mh: Obsolete file.
8128 * config/i386/xm-ptx4.h: Obsolete file.
8129 * config/i386/xm-ptx.h: Obsolete file.
8130
8131 2003-04-09 Andrew Cagney <cagney@redhat.com>
8132
8133 Obsolete mips*-*-mach3*.
8134 * NEWS: Mention that mips*-*-mach3* is obsolete.
8135 * m3-nat.c: Obsolete file.
8136 * config/nm-m3.h: Obsolete file.
8137 * config/mips/tm-mipsm3.h: Obsolete file.
8138 * config/mips/mipsm3.mt: Obsolete file.
8139 * config/mips/mipsm3.mh: Obsolete file.
8140 * config/mips/xm-mipsm3.h: Obsolete file.
8141 * mipsm3-nat.c: Obsolete file.
8142 * configure.host: Obsolete mips-dec-mach3*.
8143 * configure.tgt: Obsolete mips*-*-mach3*.
8144
8145 2003-04-09 Andrew Cagney <cagney@redhat.com>
8146
8147 * doublest.h: Update copyright.
8148 (deprecated_store_floating, deprecated_extract_floating): Rename
8149 store_floating and extract_floating. Update comments.
8150 * doublest.c: Update copyright.
8151 (extract_floating_by_length): Replace extract_floating.
8152 (store_floating_by_length): Replace store_floating.
8153 (deprecated_extract_floating): New function.
8154 (deprecated_store_floating): New function.
8155 (extract_typed_floating): Call extract_floating_by_length.
8156 (store_typed_floating): Call store_floating_by_length.
8157 * x86-64-tdep.c (x86_64_store_return_value): Update.
8158 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8159 (sh64_extract_return_value): Update.
8160 (sh_sh4_register_convert_to_virtual): Update.
8161 (sh_sh64_register_convert_to_virtual): Update.
8162 (sh_sh4_register_convert_to_raw): Update.
8163 (sh_sh64_register_convert_to_raw): Update.
8164 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8165 (rs6000_register_convert_to_raw): Update.
8166 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8167 (ia64_register_convert_to_raw): Update.
8168 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8169 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8170 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8171 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8172 (alpha_register_convert_to_raw): Update.
8173
8174 2003-04-08 Andrew Cagney <cagney@redhat.com>
8175
8176 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8177 * gdbarch.h, gdbarch.c: Re-generate.
8178 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8179 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8180 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8181 conditionally, use frame_pc_unwind as an alternative. Add
8182 comments.
8183 * arch-utils.c (init_frame_pc_default): Only call
8184 SAVED_PC_AFTER_CALL when available.
8185
8186 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8187
8188 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8189 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8190 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8191 (start_remote): Ditto.
8192 (handle_inferior_event): Ditto.
8193 (save_inferior_status): Ditto.
8194 (restore_inferior_status): Ditto.
8195 * infcmd.c (attach_command): Ditto.
8196 * fork-child.c (startup_inferior): Ditto.
8197 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8198 * alpha-tdep.c (heuristic_proc_start): Ditto.
8199 * mips-tdep.c (heuristic_proc_start): Ditto.
8200 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8201 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8202 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8203 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8204 * remote-vx.c (vx_create_inferior): Ditto.
8205
8206 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8207
8208 * infrun.c (stop_soon_quietly): Make it an enum, to better
8209 override the default behavior of handle_inferior_event.
8210 (clear_proceed_status): Update uses of stop_soon_quietly to
8211 reflect that it is now an enum.
8212 (start_remote): Ditto.
8213 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8214 is set to handle the new GNU/Linux kernel behavior for
8215 attach/sigstop. Update uses of stop_soon_quietly.
8216 * inferior.h (enum stop_kind): New enum.
8217 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8218 Reset normal handle_inferior_event behavior, afterwards.
8219 * fork-child.c (startup_inferior): Update.
8220 * alpha-tdep.c (heuristic_proc_start): Update.
8221 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8222 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8223 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8224 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8225 * remote-vx.c (vx_create_inferior): Update.
8226 * mips-tdep.c (heuristic_proc_start): Update.
8227
8228 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8229
8230 * disasm.c (dump_insns): Move variables inside loop, or they will
8231 be freed more than once, causing wild memory corruptions.
8232 (gdb_disassembly): Look for the substring "-thread",
8233 instead of "-threads" in the target name, to make sure to find
8234 the 'multi-thread' target. Also, make sure we do the right thing
8235 with the "core" target.
8236
8237 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8238
8239 * mips-tdep.c (mips_print_fp_register): New function, created from
8240 do_fp_register_row(). Registers are now (also) printed as hex.
8241 Only one register is printed per row.
8242 (mips_print_register, do_fp_register_row): Print floating point
8243 registers with mips_print_fp_register().
8244
8245 2003-04-06 Andrew Cagney <cagney@redhat.com>
8246
8247 * valprint.h (inspect_it): Add extern declaration.
8248 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8249 (selectors_info, classes_info): Ditto.
8250 (find_objc_msgcall): Fix indentation.
8251 (objc_printstr): Delete extern declarations.
8252
8253 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8254
8255 2003-04-06 Andrew Cagney <cagney@redhat.com>
8256
8257 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8258 Update comment.
8259 * frame.c (legacy_saved_regs_this_id): Update.
8260 (legacy_get_prev_frame): Update.
8261 * xstormy16-tdep.c: Update comment.
8262 * sparc-tdep.c (sparc_frame_chain): Update comment.
8263 * blockframe.c (legacy_frame_chain_valid): Update.
8264
8265 2003-04-06 Andrew Cagney <cagney@redhat.com>
8266
8267 * valprint.c (val_print_type_code_int): Delete #ifdef
8268 PRINT_TYPELESS_INTEGER code.
8269
8270 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8271 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8272 multi-arch definition.
8273 * gdbarch.h: Re-generate.
8274
8275 2003-04-05 Andrew Cagney <cagney@redhat.com>
8276
8277 Eliminate FRAME_FIND_SAVED_REGS.
8278 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8279 Change FSR parameter to a pointer.
8280 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8281 Assume FSR parameter is a pointer.
8282 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8283 Make fsr a pointer.
8284 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8285 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8286 saved_regs a pointer.
8287 (hppa_frame_saved_pc): Ditto.
8288 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8289 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8290 pointer.
8291 (restore_pc_queue): Make fsr a pointer.
8292 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8293 (hppa_frame_chain): Make saved_regs a pointer, call
8294 hppa_frame_init_saved_regs.
8295 * sparc-tdep.c: Include "gdb_assert.h".
8296 (sparc_frame_find_saved_regs): Replace internal_error with
8297 gdb_assert.
8298 * remote-vxsparc.c (vx_read_register): Delete reference to
8299 FRAME_FIND_SAVED_REGS.
8300 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8301 * gdbarch.h: Regenerate.
8302 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8303 (deprecated_get_frame_saved_regs): Delete declaration.
8304 (struct frame_saved_regs): Delete definition.
8305 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8306 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8307 (hppa_frame_find_saved_regs): Delete declaration.
8308 (FRAME_FIND_SAVED_REGS): Delete macro.
8309 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8310 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8311 FRAME_FIND_SAVED_REGS in comment.
8312
8313 2003-04-05 Andrew Cagney <cagney@redhat.com>
8314
8315 * frame.c (frame_func_unwind, get_frame_func): New functions.
8316 * frame.h (get_frame_func, frame_func_unwind): Declare.
8317 (struct frame_info): Add field "prev_func" for caching the
8318 previous frame's function address.
8319 * arm-tdep.c (arm_frameless_function_invocation): Combine
8320 get_pc_function_start and get_frame_pc into get_frame_func.
8321 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8322 (sh64_nofp_frame_init_saved_regs): Ditto.
8323 * s390-tdep.c (s390_function_start): Ditto.
8324 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8325 (rs6000_frameless_function_invocation): Ditto.
8326 (rs6000_frame_saved_pc): Ditto.
8327 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8328 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8329 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8330 (i386_frame_init_saved_regs): Ditto.
8331 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8332 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8333 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8334 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8335 * blockframe.c (frameless_look_for_prologue): Ditto.
8336
8337 2003-04-05 Andrew Cagney <cagney@redhat.com>
8338
8339 * frame.c (legacy_get_prev_frame): Link prev to next at the
8340 function start. Update comments.
8341
8342 2003-04-05 Andrew Cagney <cagney@redhat.com>
8343
8344 * frame.c (get_frame_id): Update comment.
8345 (legacy_get_prev_frame): Update comment.
8346 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8347 * gdbarch.h: Regenerate.
8348 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8349 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8350
8351 2003-04-05 Andrew Cagney <cagney@redhat.com>
8352
8353 * stack.c (print_frame_info): Use get_frame_pc.
8354
8355 2003-04-04 Andrew Cagney <cagney@redhat.com>
8356
8357 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8358 the frame's type from the unwinder.
8359 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8360 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8361 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8362 (get_frame_base_address): Use get_frame_type.
8363 (get_frame_locals_address, get_frame_args_address): Ditto.
8364 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8365 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8366 (struct frame_info): Add comment explaining why the frame contains
8367 a "type" field.
8368 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8369 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8370 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8371 NORMAL_FRAME.
8372 * frame-unwind.h: Include "frame.h".
8373 (struct frame_unwind): Add "type" field.
8374 * Makefile.in (frame_unwind_h): Add $(frame_h).
8375
8376 2003-04-04 Andrew Cagney <cagney@redhat.com>
8377
8378 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8379 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8380 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8381 get_frame_base.
8382 (d10v_unwind_dummy_id): Use frame_id_build.
8383 * frame.c (find_frame_sal): Use get_frame_pc.
8384 (create_new_frame): Use deprecated_update_frame_pc_hack and
8385 deprecated_update_frame_base_hack.
8386 (create_sentinel_frame): Add comment about ->pc going away.
8387 (get_prev_frame): Add comment about ->pc going away.
8388 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8389 frame_id_build, deprecated_update_frame_pc_hack and
8390 deprecated_update_frame_base_hack.
8391 (select_frame): Use get_frame_pc.
8392 (legacy_saved_regs_this_id): Use frame_id_build.
8393
8394 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8395
8396 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8397 signed integer case.
8398 (classify_argument): Handle enumerations and references.
8399
8400 2003-04-04 Andrew Cagney <cagney@redhat.com>
8401
8402 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8403 ID to NULL.
8404
8405 2003-04-01 Adam Fedor <fedor@gnu.org>
8406
8407 * gdb/objc-lang.c (selectors_info): Replace calls to
8408 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8409 SYMBOL_NATURAL_NAME.
8410 (classes_info, find_methods): Likewise.
8411
8412 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8413
8414 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8415 ``mach'' to the value determined by bfd_default_set_arch_mach().
8416
8417 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8418
8419 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8420 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8421 (mi-cmd-file.o): Update dependencies.
8422
8423 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8424
8425 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8426 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8427
8428 2003-04-01 Adam Fedor <fedor@gnu.org>
8429
8430 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8431 * language.h (struct language_defn): Add la_demangle.
8432 (language_demangle): Declare.
8433 * language.c (language_demangle): New function.
8434 (unk_lang_demangle): Likewise.
8435 (unknown_language_defn, auto_language_defn, local_language_defn):
8436 Add ukn_lang_demangle.
8437 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8438 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8439 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8440 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8441 * jv-lang.c (java_demangle): New function
8442 (java_language_defn): Use it for la_demangle element.
8443 * objc-lang.c (objc_demangle): Add options argument
8444 (objc_language_defn): Use objc_demangle for la_demangle element.
8445 * maint.c (maintenance_demangle): Replace switch with
8446 call to language_demangle.
8447 * utils.c (fprintf_symbol_filtered): Likewise.
8448
8449 2003-04-01 Andrew Cagney <cagney@redhat.com>
8450
8451 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8452 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8453 PRINT_TYPELESS_INTEGER.
8454 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8455 PUSH_RETURN_ADDRESS.
8456
8457 2003-04-01 Andrew Cagney <cagney@redhat.com>
8458
8459 * Makefile.in (d10v-tdep.o): Update dependencies.
8460 * d10v-tdep.c: Include "frame-base.h".
8461 (d10v_frame_unwind): Make constant.
8462 (d10v_frame_base_address): New function.
8463 (d10v_frame_base): New variable.
8464 (d10v_gdbarch_init): Set frame_base default.
8465 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8466 comment for base.
8467 (d10v_frame_unwind_cache): Set and use "prev_sp".
8468 (d10v_frame_this_id): Use the previous frame's inner most stack
8469 address and this frame's func address for the frame ID. Use
8470 frame_id_build. Don't analyze beyond the current instruction.
8471
8472 2003-04-01 Andrew Cagney <cagney@redhat.com>
8473
8474 * frame.h (get_frame_locals_address, get_frame_args_address):
8475 Refer to the base address, instead of the address of the first
8476 local or parameter.
8477
8478 2003-04-01 Andrew Cagney <cagney@redhat.com>
8479
8480 Add frame debug info addresses:
8481 * frame-base.c: New file.
8482 * frame-base.h: New file.
8483 * frame.h (struct frame_base): Add opaque declaration.
8484 (get_frame_base): Update comment.
8485 (get_frame_base_address): Declare.
8486 (get_frame_locals_address): Declare.
8487 (get_frame_args_address): Declare.
8488 (struct frame_info): Add "base" and "base_cache". Update
8489 comments on the unwinder.
8490 * frame.c: Include "frame-base.h".
8491 (get_frame_locals_address): New function.
8492 (get_frame_base_address): New function.
8493 (get_frame_args_address): New function.
8494 * findvar.c (read_var_value): Use get_frame_locals_address and
8495 get_frame_args_address.
8496 * stack.c (frame_info): Use get_frame_locals_address and
8497 get_frame_args_address.
8498 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8499 moved to "frame-base.c".
8500 * printcmd.c (print_frame_nameless_args): Ditto.
8501 * symtab.h (address_class): Update comments.
8502 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8503 get_frame_base_address.
8504 * dwarf2expr.c (execute_stack_op): Ditto.
8505 * Makefile.in (frame_base_h): Define.
8506 (frame.o): Update dependencies.
8507 (frame-base.o): Add dependencies.
8508 (SFILES): Add frame-base.c.
8509 (COMMON_OBS): Add frame-base.o.
8510
8511 2003-04-01 Andrew Cagney <cagney@redhat.com>
8512
8513 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8514 CALL_DUMMY_LENGTH): Ditto.
8515 * gdbarch.c: Re-generate.
8516 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8517 (CALL_DUMMY_LENGTH): Delete macro.
8518 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8519 * arm-tdep.c (arm_gdbarch_init): Ditto.
8520 * avr-tdep.c (avr_gdbarch_init): Ditto.
8521 * cris-tdep.c (cris_gdbarch_init): Ditto.
8522 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8523 * frv-tdep.c (frv_gdbarch_init): Ditto.
8524 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8525 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8526 * i386-tdep.c (i386_gdbarch_init): Ditto.
8527 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8528 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8529 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8530 * mips-tdep.c (mips_gdbarch_init): Ditto.
8531 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8532 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8533 * s390-tdep.c (s390_gdbarch_init): Ditto.
8534 * sh-tdep.c (sh_gdbarch_init): Ditto.
8535 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8536 * v850-tdep.c (v850_gdbarch_init): Ditto.
8537 * vax-tdep.c (vax_gdbarch_init): Ditto.
8538 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8539
8540 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8541
8542 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8543
8544 2003-04-01 Andrew Cagney <cagney@redhat.com>
8545
8546 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8547 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8548 * gdbarch.h, gdbarch.c: Re-generate.
8549 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8550 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8551 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8552 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8553 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8554 * infcmd.c (run_stack_dummy): Simplify assuming
8555 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8556 * infrun.c (handle_inferior_event): Ditto.
8557 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8558 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8559 * arm-tdep.c (arm_gdbarch_init): Ditto.
8560 * avr-tdep.c (avr_gdbarch_init): Ditto.
8561 * cris-tdep.c (cris_gdbarch_init): Ditto.
8562 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8563 * frv-tdep.c (frv_gdbarch_init): Ditto.
8564 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8565 * i386-tdep.c (i386_gdbarch_init): Ditto.
8566 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8567 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8568 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8569 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8570 * mips-tdep.c (mips_gdbarch_init): Ditto.
8571 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8572 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8573 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8574 * s390-tdep.c (s390_gdbarch_init): Ditto.
8575 * sh-tdep.c (sh_gdbarch_init): Ditto.
8576 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8577 * v850-tdep.c (v850_gdbarch_init): Ditto.
8578 * vax-tdep.c (vax_gdbarch_init): Ditto.
8579 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8580
8581 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8582
8583 * symfile.c (symfile_relocate_debug_section): Update call to
8584 bfd_simple_get_relocated_section_contents.
8585
8586 2003-03-31 Andrew Cagney <cagney@redhat.com>
8587
8588 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8589 * gdbarch.h, gdbarch.c: Regenerate.
8590 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8591 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8592 available.
8593 * frame.h (generic_fix_call_dummy): Delete declaration.
8594 * dummy-frame.h: Update comment.
8595 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8596 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8597 fix_call_dummy.
8598 * sh-tdep.c (sh_gdbarch_init): Ditto.
8599 * s390-tdep.c (s390_gdbarch_init): Ditto.
8600 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8601 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8602 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8603 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8604 * i386-tdep.c (i386_gdbarch_init): Ditto.
8605 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8606 * frv-tdep.c (frv_gdbarch_init): Ditto.
8607 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8608 * cris-tdep.c (cris_gdbarch_init): Ditto.
8609 * avr-tdep.c (avr_gdbarch_init): Ditto.
8610 * arm-tdep.c (arm_gdbarch_init): Ditto.
8611
8612 2003-03-31 J. Brobecker <brobecker@gnat.com>
8613
8614 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8615 (INIT_FRAME_AP): Likewise.
8616 (EXTRA_FRAME_INFO): Likewise.
8617
8618 2003-03-31 Andrew Cagney <cagney@redhat.com>
8619
8620 * gdbarch.sh: Include "symfile.h".
8621 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8622 * gdbarch.h, gdbarch.c: Re-generate.
8623 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8624 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8625 call_dummy_address, the default is at entry_point_address.
8626 * v850-tdep.c (v850_gdbarch_init): Ditto.
8627 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8628 * sh-tdep.c (sh_gdbarch_init): Ditto.
8629 * s390-tdep.c (s390_gdbarch_init): Ditto.
8630 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8631 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8632 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8633 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8634 * i386-tdep.c (i386_gdbarch_init): Ditto.
8635 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8636 * frv-tdep.c (frv_gdbarch_init): Ditto.
8637 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8638 * cris-tdep.c (cris_gdbarch_init): Ditto.
8639 * arm-tdep.c (arm_gdbarch_init): Ditto.
8640
8641 2003-03-31 Andrew Cagney <cagney@redhat.com>
8642
8643 * gdbarch.sh (CALL_DUMMY_P): Delete.
8644 * gdbarch.h, gdbarch.c: Re-generate.
8645 * inferior.h (CALL_DUMMY_P): Delete macro.
8646 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8647 * vax-tdep.c (vax_gdbarch_init): Update.
8648 * v850-tdep.c (v850_gdbarch_init): Update.
8649 * sparc-tdep.c (sparc_gdbarch_init): Update.
8650 * sh-tdep.c (sh_gdbarch_init): Update.
8651 * s390-tdep.c (s390_gdbarch_init): Update.
8652 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8653 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8654 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8655 * mips-tdep.c (mips_gdbarch_init): Update.
8656 * mcore-tdep.c (mcore_gdbarch_init): Update.
8657 * m68k-tdep.c (m68k_gdbarch_init): Update.
8658 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8659 * ia64-tdep.c (ia64_gdbarch_init): Update.
8660 * i386-tdep.c (i386_gdbarch_init): Update.
8661 * h8300-tdep.c (h8300_gdbarch_init): Update.
8662 * frv-tdep.c (frv_gdbarch_init): Update.
8663 * d10v-tdep.c (d10v_gdbarch_init): Update.
8664 * cris-tdep.c (cris_gdbarch_init): Update.
8665 * breakpoint.c (deprecated_frame_in_dummy): Update.
8666 * avr-tdep.c (avr_gdbarch_init): Update.
8667 * alpha-tdep.c (alpha_gdbarch_init): Update.
8668 * arm-tdep.c (arm_gdbarch_init): Update.
8669 * dummy-frame.c (dummy_frame_this_id): Update comments.
8670 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8671 * frame.c (legacy_get_prev_frame): Ditto.
8672 * valops.c (call_function_by_hand): Delete function.
8673 (hand_function_call): Rename to call_function_by_hand
8674
8675 2003-03-30 Andrew Cagney <cagney@redhat.com>
8676
8677 2002-11-10 Klee Dienes <kdienes@apple.com>
8678 * value.h (struct value): Update comment.
8679
8680 2003-03-30 Andrew Cagney <cagney@redhat.com>
8681
8682 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8683 D10V_FP_REGNUM.
8684 (d10v_gdbarch_init): Do not set fp_regnum.
8685
8686 * frame.c (get_frame_base): Force ID initialization.
8687 (get_prev_frame): Move computation of the frame ID from here ...
8688 (get_frame_id): ... to here.
8689 (legacy_get_prev_frame): Mark the frame ID as valid.
8690 * frame.h (struct frame_info): Add field "id_p".
8691
8692 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8693
8694 * i386-tdep.c (i386_store_struct_return): Removed.
8695 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8696
8697 2003-03-30 Andrew Cagney <cagney@redhat.com>
8698
8699 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8700 * gdbarch.h, gdbarch.c: Regenerate.
8701 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8702 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8703 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8704 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8705 * i386-tdep.c (i386_gdbarch_init): Ditto.
8706 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8707 * cris-tdep.c (cris_gdbarch_init): Ditto.
8708 * vax-tdep.c (vax_gdbarch_init): Ditto.
8709 * s390-tdep.c (s390_gdbarch_init): Ditto.
8710 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8711 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8712 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8713 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8714 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8715 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8716 * sparc-tdep.c (sparc_gdbarch_init): Update.
8717 * sh-tdep.c (sh_gdbarch_init): Update.
8718 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8719 * mips-tdep.c (mips_gdbarch_init): Update.
8720 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8721 * ia64-tdep.c (ia64_gdbarch_init): Update.
8722 * frv-tdep.c (frv_gdbarch_init): Update.
8723 * avr-tdep.c (avr_gdbarch_init): Update.
8724 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8725 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8726 instead of when push_dummy_call is not available.
8727
8728 2003-03-30 Andrew Cagney <cagney@redhat.com>
8729
8730 * infttrace.c: Include "gdbthread.h".
8731 (parent_attach_all): Fix function signature.
8732 (call_ptrace): Update call.
8733 * Makefile.in (infttrace.o): Update dependencies.
8734
8735 2003-03-30 Andrew Cagney <cagney@redhat.com>
8736
8737 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8738 PUSH_RETURN_ADDRESS.
8739 * gdbarch.h, gdbarch.c: Regenerate.
8740 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8741 * x86-64-tdep.c (x86_64_init_abi): Update.
8742 * v850-tdep.c (v850_gdbarch_init): Update.
8743 * sparc-tdep.c (sparc_gdbarch_init): Update.
8744 * sh-tdep.c (sh_gdbarch_init): Update.
8745 * s390-tdep.c (s390_gdbarch_init): Update.
8746 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8747 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8748 * mips-tdep.c (mips_gdbarch_init): Update.
8749 * mcore-tdep.c (mcore_gdbarch_init): Update.
8750 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8751 * ia64-tdep.c (ia64_gdbarch_init): Update.
8752 * i386-tdep.c (i386_gdbarch_init): Update.
8753 * h8300-tdep.c (h8300_gdbarch_init): Update.
8754 * frv-tdep.c (frv_gdbarch_init): Update.
8755 * cris-tdep.c (cris_gdbarch_init): Update.
8756 * avr-tdep.c (avr_gdbarch_init): Update.
8757 * arm-tdep.c (arm_gdbarch_init): Update.
8758 * valops.c (hand_function_call): Update.
8759
8760 2003-03-29 Andrew Cagney <cagney@redhat.com>
8761
8762 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8763 sizeof_call_dummy_words.
8764 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8765 define.
8766 * gdbarch.h: Regenerate.
8767
8768 2003-03-29 Andrew Cagney <cagney@redhat.com>
8769
8770 * infttrace.h: New file.
8771 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8772 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8773 (hpread_read_doc_function_type): Detect an initialized type1.
8774 (hpread_quick_traverse): Initialize mod_name_string.
8775 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8776 (som_solib_get_solib_by_pc): Declare.
8777 (so_lib_thread_start_addr): Declare.
8778 (no_shared_libraries): Declare.
8779 * somread.c (init_import_symbols): Make static. Add forward
8780 declaration.
8781 * config/pa/nm-hppah.h: Include "infttrace.h" for
8782 parent_attach_all.
8783 (hppa_insert_hw_watchpoint): Declare.
8784 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8785 * hppah-nat.c: Include "gdb_string.h".
8786 (parent_attach_all): Delete extern declaration, moved to
8787 "infttrace.h".
8788 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8789 int.
8790 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8791 * Makefile.in (infttrace_h): Define.
8792 (hpread.o): Update dependencies.
8793 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8794 * hppa-hpux-tdep.c: Include "gdb_string.h".
8795 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8796 * infrun.c (handle_inferior_event): Always initialize
8797 stepped_after_stopped_by_watchpoint. Add default and remove
8798 fallthrough in switch statement.
8799 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8800 parameter to int.
8801 (hppa_remove_hw_watchpoint): Ditto.
8802
8803 2003-03-29 Andrew Cagney <cagney@redhat.com>
8804
8805 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8806 offset.
8807
8808 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8809
8810 * arm-tdep.c (arm_push_arguments): Delete.
8811 (struct stack_item): New type.
8812 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8813 (arm_store_struct_return): Delte.
8814 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8815 arm_push_arguments or arm_store_struct_return.
8816
8817 2003-03-28 Andrew Cagney <cagney@redhat.com>
8818
8819 * Makefile.in (d10v-tdep.o): Update dependencies.
8820 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8821 * d10v-tdep.c: Include "remote.h".
8822 (target_resume_hook): Delete extern declaration.
8823 (target_wait_loop_hook): Ditto.
8824 (tdisassemble_command): Eliminate assignment in "if" conditional.
8825 (d10v_ts2_register_sim_regno): Eliminate call to
8826 legacy_register_sim_regno.
8827 (d10v_ts3_register_sim_regno): Ditto.
8828
8829 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8830
8831 * thread.c: Reindented.
8832 * lin-lwp.c: Ditto.
8833 * linux-proc.c: Ditto.
8834
8835 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8836
8837 * MAINTAINERS (write after approval): Add myself.
8838
8839 2003-03-27 Theodore A. Roth <troth@openavr.org>
8840
8841 * objc-exp.y: Add missing semi-colons.
8842
8843 2003-03-27 Andrew Cagney <cagney@redhat.com>
8844
8845 * regcache.c (write_sp): Delete function and references.
8846 * inferior.h (write_sp): Delete declaration.
8847 * valops.c (hand_function_call): Replace write_sp with
8848 TARGET_WRITE_SP.
8849 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8850 (sparc_pop_frame): Ditto.
8851
8852 2003-03-27 Andrew Cagney <cagney@redhat.com>
8853
8854 * NEWS: Mention removal of support for hppa*-*-bsd* and
8855 hppa*-*-osf* natives, and hppa*-*-pro* target.
8856 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8857 * config/pa/xm-pa.h: Obsolete file.
8858 * config/pa/xm-hppab.h: Obsolete file.
8859 * config/pa/nm-hppab.h: Obsolete file.
8860 * config/pa/tm-hppab.h: Obsolete file.
8861 * config/pa/tm-hppao.h: Obsolete file.
8862 * config/pa/nm-hppao.h: Obsolete file.
8863 * config/pa/tm-pro.h: Obsolete file.
8864 * config/pa/hppaosf.mt: Obsolete file.
8865 * config/pa/hppaosf.mh: Obsolete file.
8866 * config/pa/hppapro.mt: Obsolete file.
8867 * config/pa/hppabsd.mt: Obsolete file.
8868 * config/pa/hppabsd.mh: Obsolete file.
8869 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8870 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8871 hppa*-*-osf*.
8872
8873 2003-03-27 Andrew Cagney <cagney@redhat.com>
8874
8875 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8876 push_arguments. Don't set push_return_address or write_sp.
8877 (d10v_push_dummy_call): Replace d10v_push_arguments.
8878 (d10v_push_return_address, d10v_write_sp): Delete function,
8879 handled by push_dummy_call.
8880
8881 2003-03-26 Andrew Cagney <cagney@redhat.com>
8882
8883 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8884 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8885 regcache and dummy_addr parameters.
8886 * gdbarch.h, gdbarch.c: Re-generate.
8887 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8888 available; assume it will handle stack alignment and return
8889 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8890 legacy_push_arguments.
8891 (legacy_push_arguments): Rename default_push_arguments.
8892 * value.h (legacy_push_arguments): Rename default_push_arguments.
8893 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8894 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8895 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8896 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8897 * config/i386/tm-symmetry.h: Update.
8898 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8899 * x86-64-tdep.c (x86_64_init_abi): Update.
8900 * v850-tdep.c (v850_gdbarch_init): Update.
8901 * sparc-tdep.c (sparc_gdbarch_init): Update.
8902 * sh-tdep.c (sh_gdbarch_init): Update.
8903 * s390-tdep.c (s390_gdbarch_init): Update.
8904 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8905 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8906 * mips-tdep.c (mips_gdbarch_init): Update.
8907 * mcore-tdep.c (mcore_gdbarch_init): Update.
8908 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8909 * ia64-tdep.c (ia64_gdbarch_init): Update.
8910 * i386-tdep.c (i386_gdbarch_init): Update.
8911 * hppa-tdep.c (hppa_gdbarch_init): Update.
8912 * h8300-tdep.c (h8300_gdbarch_init): Update.
8913 * frv-tdep.c (frv_gdbarch_init): Update.
8914 * d10v-tdep.c (d10v_gdbarch_init): Update.
8915 * cris-tdep.c (cris_gdbarch_init): Update.
8916 * avr-tdep.c (avr_gdbarch_init): Update.
8917 * arm-tdep.c (arm_gdbarch_init): Update.
8918 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8919 * alpha-tdep.c (alpha_gdbarch_init): Update.
8920
8921 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8922
8923 * signals/signals.c (do_target_signal_to_host): Correct realtime
8924 signal range test.
8925
8926 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8927
8928 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8929 (struct sal_chain, map_catch_names): Remove.
8930 (catch_exception_command_1): Don't call
8931 handle_gnu_4_16_catch_command.
8932
8933 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8934
8935 From Mark Dettinger <dettinge@de.ibm.com>:
8936 * dwarf2cfi.c (read_2u): Increment pointer by two.
8937
8938 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8939
8940 * signals/signals.c: Fix typos in last change.
8941
8942 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8943
8944 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8945 not already defined. Use __SIGRTMIN if available.
8946 (target_signal_from_host): Remove SIGRTMIN block.
8947 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8948 the signal is within the realtime range.
8949
8950 2003-03-25 Adam Fedor <fedor@gnu.org>
8951
8952 * Makefile.in (infrun.o): Add $(language_h)
8953 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8954 for language specific trampolines.
8955 * language.h (struct language_defn): Add skip_trampoline.
8956 (skip_language_trampoline): Declare.
8957 * language.c (unk_lang_trampoline, skip_language_trampoline):
8958 New functions.
8959 (unknown_language_defn, auto_language_defn, local_language_defn):
8960 Add ukn_lang_trampoline.
8961 * ada-lang.c (ada_language_defn): Add NULL for language
8962 specific skip_trampoline.
8963 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8964 scm-lang.c: Likewise.
8965 * objc-lang.c (objc_skip_trampoline): New function.
8966 (objc_language_defn): Add objc_skip_trampoline.
8967
8968 2003-03-25 Andrew Cagney <cagney@redhat.com>
8969
8970 * frame.c (get_prev_frame): Delay validating a frame's ID -
8971 non-NULL, didn't go backwards - until an attempt to unwind it to
8972 the previous frame.
8973
8974 2003-03-25 Andrew Cagney <cagney@redhat.com>
8975
8976 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8977 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8978 * gdbarch.h, gdbarch.c: Re-generate.
8979 * config/sparc/tm-sparc.h
8980 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8981 * sparc-tdep.c (sparc_gdbarch_init): Set
8982 deprecated_extra_stack_alignment_needed.
8983 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8984 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8985 extra_stack_alignment_needed.
8986 * v850-tdep.c (v850_gdbarch_init): Ditto.
8987 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8988 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8989 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8990 * cris-tdep.c (cris_gdbarch_init): Ditto.
8991 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8992 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8993
8994 2003-03-25 Andrew Cagney <cagney@redhat.com>
8995
8996 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8997 STORE_STRUCT_RETURN.
8998 * gdbarch.h, gdbarch.c: Regenerate.
8999 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9000 (d10v_push_arguments): Set the struct return register.
9001 (d10v_gdbarch_init): Update.
9002 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9003 * x86-64-tdep.c (x86_64_init_abi): Update.
9004 * vax-tdep.c (vax_gdbarch_init): Update.
9005 * v850-tdep.c (v850_gdbarch_init): Update.
9006 * sparc-tdep.c (sparc_gdbarch_init): Update.
9007 * sh-tdep.c (sh_gdbarch_init): Update.
9008 * s390-tdep.c (s390_gdbarch_init): Update.
9009 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9010 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9011 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9012 * mips-tdep.c (mips_gdbarch_init): Update.
9013 * mcore-tdep.c (mcore_gdbarch_init): Update.
9014 * m68k-tdep.c (m68k_gdbarch_init): Update.
9015 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9016 * ia64-tdep.c (ia64_gdbarch_init): Update.
9017 * i386-tdep.c (i386_gdbarch_init): Update.
9018 * hppa-tdep.c (hppa_gdbarch_init): Update.
9019 * h8300-tdep.c (h8300_gdbarch_init): Update.
9020 * frv-tdep.c (frv_gdbarch_init): Update.
9021 * cris-tdep.c (cris_gdbarch_init): Update.
9022 * avr-tdep.c (avr_gdbarch_init): Update.
9023 * arm-tdep.c (arm_gdbarch_init): Update.
9024 * alpha-tdep.c (alpha_gdbarch_init): Update.
9025
9026 2003-03-25 Andrew Cagney <cagney@redhat.com>
9027
9028 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9029 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9030 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9031 * gdbarch.h, gdbarch.c: Regenerate.
9032 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9033 call_dummy_stack_adjust_p.
9034 * vax-tdep.c (vax_gdbarch_init): Ditto.
9035 * v850-tdep.c (v850_gdbarch_init): Ditto.
9036 * sh-tdep.c (sh_gdbarch_init): Ditto.
9037 * s390-tdep.c (s390_gdbarch_init): Ditto.
9038 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9039 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9040 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9041 * mips-tdep.c (mips_gdbarch_init): Ditto.
9042 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9043 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9044 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9045 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9046 * i386-tdep.c (i386_gdbarch_init): Ditto.
9047 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9048 * frv-tdep.c (frv_gdbarch_init): Ditto.
9049 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9050 * cris-tdep.c (cris_gdbarch_init): Ditto.
9051 * avr-tdep.c (avr_gdbarch_init): Ditto.
9052 * arm-tdep.c (arm_gdbarch_init): Ditto.
9053 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9054 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9055 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9056 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9057 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9058 call_dummy_stack_adjust_p.
9059 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9060 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9061 * sparc-tdep.c (sparc32_push_arguments): Update.
9062 * valops.c (hand_function_call): Update.
9063
9064 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9065
9066 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9067 set_gdbarch_char_signed.
9068
9069 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9070
9071 PR cli/548
9072 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9073
9074 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9075
9076 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9077 (_initialize_arm_tdep): Don't set tm_print_insn.
9078
9079 2003-03-24 Adam Fedor <fedor@gnu.org>
9080
9081 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9082 * objc-lang.h: Add multiple inclusion protection.
9083 (start_msglist, add_msglist, end_msglist): Additional declarations.
9084
9085 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9086
9087 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9088 value was renamed to ARM_FLOAT_SOFT_FPA.
9089
9090 2003-03-23 Andrew Cagney <cagney@redhat.com>
9091
9092 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9093 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9094 * gdbarch.h, gdbarch.c: Regenerate.
9095 * valops.c (hand_function_call): Update.
9096 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9097 * frame.c (legacy_saved_regs_this_id): Update.
9098 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9099 * dummy-frame.h: Update.
9100 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9101 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9102 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9103 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9104 * config/m68k/tm-sun3.h: Update.
9105 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9106 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9107 * x86-64-tdep.c (x86_64_init_abi): Update.
9108 * vax-tdep.c (vax_gdbarch_init): Update.
9109 * v850-tdep.c (v850_gdbarch_init): Update.
9110 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9111 * sh-tdep.c (sh_gdbarch_init): Update.
9112 * s390-tdep.c (s390_gdbarch_init): Update.
9113 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9114 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9115 (frame_get_saved_regs): Update.
9116 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9117 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9118 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9119 * mips-tdep.c (mips_gdbarch_init): Update.
9120 * mcore-tdep.c (mcore_gdbarch_init): Update.
9121 * m68k-tdep.c (m68k_gdbarch_init): Update.
9122 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9123 * ia64-tdep.c (ia64_gdbarch_init): Update.
9124 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9125 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9126 (i386_interix_back_one_frame): Update.
9127 * hppa-tdep.c (hppa_gdbarch_init): Update.
9128 (hppa_init_extra_frame_info): Update.
9129 * h8300-tdep.c (h8300_gdbarch_init): Update.
9130 * frv-tdep.c (frv_gdbarch_init): Update.
9131 * cris-tdep.c (cris_gdbarch_init): Update.
9132 * avr-tdep.c (avr_gdbarch_init): Update.
9133 * arm-tdep.c (arm_gdbarch_init): Update.
9134 * alpha-tdep.c (alpha_gdbarch_init): Update.
9135
9136 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9137
9138 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9139 (arm_get_fp_model): Declare.
9140 * arm-tdep.c (fp_model_strings): New string array.
9141 (arm_fp_model, current_fp_model): New variables.
9142 (arm_get_fp_model): New function.
9143 (arm_set_fp): New function.
9144 (set_fp_model_sfunc): New function.
9145 (show_fp_model): New function.
9146 (_initialize_arm_tdep): Add new command to set/show the FPU.
9147 (arm_extract_return_value): Use arm_get_fp_model.
9148 (arm_store_return_value): Likewise.
9149 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9150 to initialize the floating-point data types.
9151 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9152 model is FPA.
9153
9154 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9155
9156 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9157 the current setting of each value.
9158 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9159 new_set and new_show. Use add_setshow_cmd_full and
9160 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9161 commands and add new version as subcommands of "set/show arm".
9162
9163 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9164
9165 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9166 (set_arm_command, show_arm_command): New functions.
9167 (_initialize_arm_tdep): Add them.
9168 (num_disassembly_options): Renamed from num_flavor_options.
9169 (valid_disassembly_styles): Renamed from valid_flavors.
9170 (disassembly_style): Renamed from disassembly_flavor.
9171 (set_disassembly_style_sfunc): Renamed from
9172 set_disassembly_flavor_sfunc.
9173 (set_disassembly_style): Renamed from set_disassembly_flavor.
9174 (arm_othernames): Updated.
9175 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9176 command. Add "set/show arm disassembly" commands. Deprecate
9177 "othernames" command.
9178
9179 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9180
9181 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9182 (arm-tdep.o): Depend on elf_arm_h.
9183
9184 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9185
9186 * Makefile.in (coff_internal_h): Define.
9187 (arm-tdep.o): Update dependencies.
9188
9189 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9190
9191 * arm-tdep.c (prologue_cache): Delete.
9192 (check_prologue_cache, save_prologue_cache): Delete.
9193 (arm_scan_prologue): Don't check or update the prologue_cache.
9194 (arm_gdb_arch_init): Don't initialize it.
9195 (_initialize_arm_tdep): Likewise.
9196
9197 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9198
9199 * MAINTAINERS (tui): Maintainer of tui code.
9200
9201 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9202
9203 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9204 (i386-cygwin-tdep.o): Add dependencies.
9205 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9206 * i386-cygwin-tdep.c: New file.
9207 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9208 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9209
9210 2003-03-20 Andrew Cagney <cagney@redhat.com>
9211
9212 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9213 (handle_inferior_event): Remove code calling
9214 DYNAMIC_TRAMPOLINE_NEXTPC.
9215
9216 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9217 already has a full path.
9218
9219 * main.c (gdb_main): Return 1.
9220 (captured_main): Call error to report an invalid interpreter.
9221
9222 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9223 * alpha-osf1-tdep.c: Include "gdb_string.h".
9224
9225 2003-03-19 J. Brobecker <brobecker@gnat.com>
9226
9227 Continuing work to convert the hppa targets to multiarch partial.
9228
9229 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9230 method, now that hppa_push_dummy_frame has a conformant prototype.
9231 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9232 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9233 for the switch to multiarch partial.
9234
9235 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9236
9237 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9238 when iss is issNull.
9239
9240 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9241
9242 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9243 NUM_REGS bounds check.
9244
9245 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9246
9247 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9248 * mips-tdep.c (gdb_assert.h): Include.
9249 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9250 (mips_register_name): Handle integer registers explicitly. Add
9251 bounds checking.
9252 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9253 (mips_lsi33k_reg_names): Don't list integer registers; they're
9254 handled by mips_register_name() now.
9255 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9256 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9257 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9258 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9259 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9260
9261 2003-03-18 Andrew Cagney <cagney@redhat.com>
9262
9263 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9264 a void pointer.
9265 * gdbtypes.h (print_scalar_formatted): Update declaration.
9266 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9267
9268 2003-03-18 J. Brobecker <brobecker@gnat.com>
9269
9270 * infrun.c (observer.h): Add #include.
9271 (normal_stop): Add call to observer_notify_normal_stop.
9272 * Makefile.in (infrun.o): Add dependency on observer.h.
9273
9274 2003-03-18 J. Brobecker <brobecker@gnat.com>
9275
9276 Continuing work to convert the hppa targets to multiarch partial.
9277 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9278 parameter. Reformat comment.
9279 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9280 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9281 to match new profile.
9282
9283 2003-03-18 J. Brobecker <brobecker@gnat.com>
9284
9285 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9286 appear to be working in any case.
9287
9288 2003-03-18 J. Brobecker <brobecker@gnat.com>
9289
9290 * observer.c (observer_test_first_observer): New static variable.
9291 (observer_test_second_observer): Likewise.
9292 (observer_test_third_observer): Likewise.
9293 (observer_test_first_notification_function): New static function.
9294 (observer_test_second_notification_function): Likewise.
9295 (observer_test_third_notification_function): Likewise.
9296
9297 2003-03-17 J. Brobecker <brobecker@gnat.com>
9298
9299 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9300 * somsolib.c (gdb_assert.h): Likewise.
9301 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9302 (somsolib.o): Likewise.
9303
9304 2003-03-17 Andrew Cagney <cagney@redhat.com>
9305
9306 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9307 BFD. Simplify setting of di.endian.
9308
9309 2003-03-17 Andrew Cagney <cagney@redhat.com>
9310
9311 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9312 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9313
9314 From Elena Zannoni <ezannoni@redhat.com>
9315 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9316 vector and floating-point parameters.
9317 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9318 convention.
9319 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9320
9321 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9322
9323 * MAINTAINERS: Remove my name from several maintainership roles.
9324
9325 2003-03-17 Andrew Cagney <cagney@redhat.com>
9326
9327 Fix frame off-by-one bug.
9328 * frame-unwind.h (frame_this_id_ftype): Replace
9329 frame_unwind_id_ftype.
9330 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9331 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9332 with "prev_register".
9333 * frame-unwind.c (frame_unwind_find_by_pc): Return
9334 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9335 comment.
9336 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9337 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9338 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9339 (dummy_frame_unwind): Update.
9340 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9341 sentinel_frame_register_unwind.
9342 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9343 (sentinel_frame_unwinder): Update.
9344 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9345 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9346 * frame.c (create_sentinel_frame): Update. Initialize
9347 "prologue_cache" instead of "unwind_cache".
9348 (frame_register_unwind): Call this frame's prev_register with the
9349 next frame and this frame's prologue cache.
9350 (get_prev_frame): Simplify. Always call prev frame's this_id with
9351 this frame and prev frame's prologue cache. Document that this
9352 call is shifted one to the left when compared to the
9353 frame_register_unwind call.
9354 (legacy_saved_regs_prev_register): Replace
9355 frame_saved_regs_register_unwind.
9356 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9357 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9358 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9359 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9360 (d10v_frame_unwind): Update.
9361 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9362 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9363 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9364 "saved_regs" with "this_saved_regs".
9365
9366 2003-03-16 Andrew Cagney <cagney@redhat.com>
9367
9368 * frame.c (frame_pop): Don't call target_store_registers. Fix
9369 problem reported by Mark Kettenis.
9370
9371 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9372
9373 * i386-tdep.c (i386_register_type): Renamed from
9374 i386_register_virtual_type. Adjust function signature.
9375 (i386_gdbarch_init): Set register_type instead of
9376 deprecated_max_register_raw_size,
9377 deprecated_max_register_virtual_size and register_virtual_type.
9378
9379 2003-03-14 Andrew Cagney <cagney@redhat.com>
9380
9381 * frame.c (get_prev_frame): When a legacy frame, always call
9382 legacy_get_prev_frame. Simplify unwind code using assumption that
9383 the unwinder is new.
9384 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9385 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9386 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9387
9388 2003-03-14 Andrew Cagney <cagney@redhat.com>
9389
9390 * frame.c (get_saved_register): Delete function.
9391 * frame.h (get_saved_register): Delete declaration.
9392 * xstormy16-tdep.c: Update comment.
9393 * regcache.h: Update comments.
9394 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9395 get_saved_register and extract_address, use
9396 frame_read_unsigned_register.
9397 (sparc_frame_saved_pc): Ditto.
9398 (sparc_get_saved_register): Instead of get_saved_register, use
9399 frame_register.
9400 (sparc_pop_frame): Ditto.
9401 * findvar.c: Update comments.
9402 (value_of_register): Call frame_register instead of
9403 get_saved_register.
9404 (value_from_register): Ditto.
9405 * config/sparc/tm-sparc.h: Update comment.
9406 * breakpoint.c: Update comment.
9407
9408 2003-03-14 Andrew Cagney <cagney@redhat.com>
9409
9410 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9411 GET_SAVED_REGISTER.
9412 * gdbarch.h, gdbarch.c: Re-generate.
9413 * frame.h: Update comments.
9414 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9415 * x86-64-tdep.c (x86_64_init_abi): Update.
9416 * sparc-tdep.c (sparc_gdbarch_init): Update.
9417 * sh-tdep.c (sh_gdbarch_init): Update.
9418 * mips-tdep.c (mips_gdbarch_init): Update.
9419 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9420 * cris-tdep.c (cris_gdbarch_init): Update.
9421 * ia64-tdep.c (ia64_gdbarch_init): Update.
9422 * frame.c (frame_register): Update.
9423 (get_saved_register): Update.
9424 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9425
9426 2003-03-13 Andrew Cagney <cagney@redhat.com>
9427
9428 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9429 * gdbarch.h, gdbarch.c: Regenerate.
9430 * valops.c (hand_function_call): Update comment.
9431 * stack.c (return_command): Update comment.
9432 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9433 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9434 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9435 * x86-64-tdep.c (x86_64_init_abi): Update.
9436 * vax-tdep.c (vax_gdbarch_init): Update.
9437 * v850-tdep.c (v850_gdbarch_init): Update.
9438 * sparc-tdep.c (sparc_gdbarch_init): Update.
9439 * sh-tdep.c (sh_gdbarch_init): Update.
9440 * s390-tdep.c (s390_gdbarch_init): Update.
9441 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9442 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9443 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9444 * mips-tdep.c (mips_gdbarch_init): Update.
9445 * mcore-tdep.c (mcore_gdbarch_init): Update.
9446 * m68k-tdep.c (m68k_gdbarch_init): Update.
9447 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9448 * ia64-tdep.c (ia64_gdbarch_init): Update.
9449 * i386-tdep.c (i386_gdbarch_init): Update.
9450 * hppa-tdep.c (hppa_gdbarch_init): Update.
9451 * h8300-tdep.c (h8300_gdbarch_init): Update.
9452 * frv-tdep.c (frv_gdbarch_init): Update.
9453 * cris-tdep.c (cris_gdbarch_init): Update.
9454 * avr-tdep.c (avr_gdbarch_init): Update.
9455 * arm-tdep.c (arm_gdbarch_init): Update.
9456 * alpha-tdep.c (alpha_gdbarch_init): Update.
9457
9458 2003-03-13 Andrew Cagney <cagney@redhat.com>
9459
9460 * frame.c (legacy_frame_p): New function.
9461 (get_prev_frame): Use legacy_frame_p.
9462 * frame.h (legacy_frame_p): Declare.
9463
9464 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9465
9466 * MAINTAINERS (write after approval): Alphabetically
9467 listing corrected.
9468
9469 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9470
9471 * MAINTAINERS (write after approval): Add myself.
9472
9473 2003-03-12 Andrew Cagney <cagney@redhat.com>
9474
9475 * frame.c (get_prev_frame): Rename the frame parameter to
9476 "this_frame".
9477 (get_next_frame, legacy_get_prev_frame): Ditto.
9478
9479 2003-03-12 Andrew Cagney <cagney@redhat.com>
9480
9481 * frame.c (get_current_frame): Check target_has_registers before
9482 checking target_has_stack.
9483 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9484 instead of deprecated_selected_frame.
9485 * findvar.c (value_of_register): Pass "frame", not
9486 deprecated_selected_frame, to value_of_builtin_reg.
9487
9488 2003-03-12 Andrew Cagney <cagney@redhat.com>
9489
9490 * regcache.c (regcache_cooked_write_signed): New function.
9491 (regcache_cooked_write_unsigned): New function.
9492 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9493 (regcache_cooked_read_signed): Fix regnum in range assertion.
9494 * regcache.h (regcache_cooked_write_signed): Declare.
9495 (regcache_cooked_write_unsigned): Declare.
9496
9497 2003-03-12 Andrew Cagney <cagney@redhat.com>
9498
9499 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9500 * gdbarch.h, gdbarch.c: Re-generate.
9501 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9502 * x86-64-tdep.h: Update.
9503 * x86-64-tdep.c (x86_64_init_abi): Update.
9504 * v850-tdep.c (v850_gdbarch_init): Update.
9505 * sparc-tdep.c (sparc_gdbarch_init): Update.
9506 * sh-tdep.c (sh_gdbarch_init): Update.
9507 * s390-tdep.c (s390_gdbarch_init): Update.
9508 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9509 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9510 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9511 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9512 * mips-tdep.c (mips_gdbarch_init): Update.
9513 * mcore-tdep.c (mcore_gdbarch_init): Update.
9514 * m68k-tdep.c (m68k_gdbarch_init): Update.
9515 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9516 * ia64-tdep.c (ia64_gdbarch_init): Update.
9517 * i386-tdep.c (i386_gdbarch_init): Update.
9518 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9519 * hppa-tdep.c (hppa_gdbarch_init): Update.
9520 * h8300-tdep.c (h8300_gdbarch_init): Update.
9521 * frv-tdep.c (frv_gdbarch_init): Update.
9522 * cris-tdep.c (cris_gdbarch_init): Update.
9523 * avr-tdep.c (avr_gdbarch_init): Update.
9524 * arm-tdep.c (arm_gdbarch_init): Update.
9525 * alpha-tdep.c (alpha_gdbarch_init): Update.
9526 * sh-tdep.c (sh_init_extra_frame_info): Update.
9527 (sh64_init_extra_frame_info): Update.
9528 * ns32knbsd-nat.c (frame_num_args): Update.
9529 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9530 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9531 (xstormy16_frame_chain_valid): Update.
9532 * vax-tdep.c (vax_saved_pc_after_call): Update.
9533 * v850-tdep.c (v850_frame_chain): Update.
9534 (v850_pop_frame): Update.
9535 (v850_init_extra_frame_info): Update.
9536 * sparc-tdep.c (setup_arbitrary_frame): Update.
9537 * ns32k-tdep.c (umax_frame_num_args): Update.
9538 * s390-tdep.c (s390_pop_frame_regular): Update.
9539 * mn10300-tdep.c (mn10300_frame_chain): Update.
9540 (mn10300_pop_frame_regular): Update.
9541 (mn10300_init_extra_frame_info): Update.
9542 * mips-tdep.c (mips_init_frame_pc_first): Update.
9543 (mips_frame_chain): Update.
9544 (mips_pop_frame): Update.
9545 * mcore-tdep.c (mcore_frame_chain): Update.
9546 (mcore_pop_frame): Update.
9547 (mcore_init_extra_frame_info): Update.
9548 * arch-utils.c (init_frame_pc_default): Update.
9549 * m68k-tdep.c (isi_frame_num_args): Update.
9550 (delta68_frame_num_args): Update.
9551 (news_frame_num_args): Update.
9552 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9553 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9554 (alpha_frame_chain): Update.
9555 (alpha_pop_frame): Update.
9556 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9557 (hppa_init_extra_frame_info): Update.
9558 (hppa_frame_chain): Update.
9559 (hppa_frame_chain_valid): Update.
9560 * cris-tdep.c (cris_init_extra_frame_info): Update.
9561 * avr-tdep.c (avr_init_extra_frame_info): Update.
9562 * arm-tdep.c (arm_frame_chain_valid): Update.
9563 (arm_init_extra_frame_info): Update.
9564 (arm_pop_frame): Update.
9565 * frame.c (frame_pc_unwind): Update.
9566 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9567 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9568 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9569 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9570 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9571 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9572
9573 2003-03-12 Andrew Cagney <cagney@redhat.com>
9574
9575 Eliminate the need for POP_FRAME.
9576 * frame.c (do_frame_unwind_register): New function.
9577 (frame_pop): When no POP_FRAME, pop the frame using register
9578 unwind and a scratch regcache.
9579 (frame_saved_regs_pop): Delete function.
9580 (trad_frame_unwinder): Update.
9581 * d10v-tdep.c (d10v_frame_pop): Delete function.
9582 (d10v_frame_unwind): Update.
9583 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9584 (sentinel_frame_unwinder): Update.
9585 * dummy-frame.c (dummy_frame_pop): Delete function.
9586 (dummy_frame_unwind): Update.
9587 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9588 (struct frame_unwind): Update.
9589
9590 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9591
9592 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9593 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9594 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9595 Do range checks on register number obtained from debugging info.
9596 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9597 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9598 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9599 mapping function.
9600 (do_fp_register_row): Fix typo which caused double type to be
9601 used when attempting to unpack a float.
9602
9603 2003-03-11 J. Brobecker <brobecker@gnat.com>
9604
9605 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9606
9607 2003-03-11 Andrew Cagney <cagney@redhat.com>
9608
9609 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9610 frame. Problem found by Corinna Vinschen.
9611
9612 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9613
9614 * doublest.c (floatformat_from_length): Accept also
9615 the real size of 'long double' type.
9616
9617 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9618
9619 From Klee Dienes <kdienes@apple.com>:
9620 * breakpoint.c (bpstat_copy): Copy the command lines as well
9621 as the old value, to match what is freed in bpstat_clear.
9622
9623 2003-03-10 David Carlton <carlton@math.stanford.edu>
9624
9625 * minsyms.c (add_minsym_to_hash_table): Replace
9626 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9627 (compare_minimal_symbols, compact_minimal_symbols)
9628 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9629 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9630 of DEPRECATED_SYMBOL_MATCHES_NAME.
9631 (lookup_minimal_symbol_solib_trampoline): Ditto.
9632
9633 2003-03-10 Andrew Cagney <cagney@redhat.com>
9634
9635 * regcache.h (regcache_cooked_read_ftype): Define.
9636 (regcache_save, regcache_restore): Add a cooked_read parameter.
9637 * regcache.c (regcache_save, regcache_restore): Update.
9638 (do_cooked_read): New function.
9639 (regcache_cpy): Pass do_cooked_read to regcache_save and
9640 regcache_restore.
9641
9642 2003-03-10 Andrew Cagney <cagney@redhat.com>
9643
9644 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9645 * gdbarch.h, gdbarch.c: Re-generate.
9646 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9647 * x86-64-tdep.h: Update.
9648 * x86-64-tdep.c (x86_64_init_abi): Update.
9649 * v850-tdep.c (v850_gdbarch_init): Update.
9650 * sparc-tdep.c (sparc_gdbarch_init): Update.
9651 * sh-tdep.c (sh_gdbarch_init): Update.
9652 * s390-tdep.c (s390_gdbarch_init): Update.
9653 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9654 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9655 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9656 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9657 * mips-tdep.c (mips_gdbarch_init): Update.
9658 * mcore-tdep.c (mcore_gdbarch_init): Update.
9659 * m68k-tdep.c (m68k_gdbarch_init): Update.
9660 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9661 * ia64-tdep.c (ia64_gdbarch_init): Update.
9662 * i386-tdep.c (i386_gdbarch_init): Update.
9663 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9664 * hppa-tdep.c (hppa_gdbarch_init): Update.
9665 * h8300-tdep.c (h8300_gdbarch_init): Update.
9666 * frv-tdep.c (frv_gdbarch_init): Update.
9667 * cris-tdep.c (cris_gdbarch_init): Update.
9668 * avr-tdep.c (avr_gdbarch_init): Update.
9669 * arm-tdep.c (arm_gdbarch_init): Update.
9670 * alpha-tdep.c (alpha_gdbarch_init): Update.
9671 * sh-tdep.c (sh_init_extra_frame_info): Update.
9672 (sh64_init_extra_frame_info): Update.
9673 * ns32knbsd-nat.c (frame_num_args): Update.
9674 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9675 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9676 (xstormy16_frame_chain_valid): Update.
9677 * vax-tdep.c (vax_saved_pc_after_call): Update.
9678 * v850-tdep.c (v850_frame_chain): Update.
9679 (v850_pop_frame): Update.
9680 (v850_init_extra_frame_info): Update.
9681 * sparc-tdep.c (setup_arbitrary_frame): Update.
9682 * ns32k-tdep.c (umax_frame_num_args): Update.
9683 * s390-tdep.c (s390_pop_frame_regular): Update.
9684 * mn10300-tdep.c (mn10300_frame_chain): Update.
9685 (mn10300_pop_frame_regular): Update.
9686 (mn10300_init_extra_frame_info): Update.
9687 * mips-tdep.c (mips_init_frame_pc_first): Update.
9688 (mips_frame_chain): Update.
9689 (mips_pop_frame): Update.
9690 * mcore-tdep.c (mcore_frame_chain): Update.
9691 (mcore_pop_frame): Update.
9692 (mcore_init_extra_frame_info): Update.
9693 * arch-utils.c (init_frame_pc_default): Update.
9694 * m68k-tdep.c (isi_frame_num_args): Update.
9695 (delta68_frame_num_args): Update.
9696 (news_frame_num_args): Update.
9697 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9698 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9699 (alpha_frame_chain): Update.
9700 (alpha_pop_frame): Update.
9701 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9702 (hppa_init_extra_frame_info): Update.
9703 (hppa_frame_chain): Update.
9704 (hppa_frame_chain_valid): Update.
9705 * cris-tdep.c (cris_init_extra_frame_info): Update.
9706 * avr-tdep.c (avr_init_extra_frame_info): Update.
9707 * arm-tdep.c (arm_frame_chain_valid): Update.
9708 (arm_init_extra_frame_info): Update.
9709 (arm_pop_frame): Update.
9710 * frame.c (frame_pc_unwind): Update.
9711 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9712 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9713 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9714 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9715 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9716 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9717
9718 2003-03-10 Andrew Cagney <cagney@redhat.com>
9719
9720 * gdbarch.sh (gdbarch_unwind_pc): New method.
9721 * gdbarch.h, gdbarch.c: Regenerate.
9722 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9723 but use read_pc and FRAME_SAVED_PC as fall backs.
9724 (frame_saved_regs_pc_unwind): Delete function.
9725 (trad_frame_unwinder): Update.
9726 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9727 (struct frame_unwind): Update.
9728 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9729 (dummy_frame_unwind): Update.
9730 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9731 (sentinel_frame_unwinder): Update.
9732 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9733 (d10v_frame_unwind): Update.
9734 (d10v_unwind_pc): New function.
9735 (d10v_gdbarch_init): Set unwind_pc.
9736
9737 2003-03-10 Andrew Cagney <cagney@redhat.com>
9738
9739 * gdbarch.h: Re-generate.
9740
9741 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9742 PC.
9743 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9744 the PC register.
9745
9746 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9747
9748 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9749
9750 2003-03-08 Andrew Cagney <cagney@redhat.com>
9751
9752 * cli-out.c: Update copyright.
9753 (cli_out_data): Define typedef. Use instead of ui_out_data.
9754
9755 2003-03-08 Andrew Cagney <cagney@redhat.com>
9756
9757 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9758 the result.
9759
9760 2003-03-07 Andrew Cagney <cagney@redhat.com>
9761
9762 * gdbarch.sh: Don't generate two macro definitions when an
9763 undefined macro taking no arguments.
9764 * gdbarch.h: Regenerate.
9765
9766 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9767
9768 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9769 (x86_64_unwind_dummy_id): New functions.
9770 (x86_64_init_abi): Register these two new functions.
9771
9772 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9773
9774 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9775 (x86_64_skip_prologue): Move prologue detection to
9776 separate function.
9777 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9778
9779 2003-03-05 Andrew Cagney <cagney@redhat.com>
9780
9781 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9782 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9783 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9784 to use unwind_dummy_id when a dummy frame.
9785 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9786 predicate.
9787 * gdbarch.h, gdbarch.c: Regneerate.
9788
9789 2003-03-05 Andrew Cagney <cagney@redhat.com>
9790
9791 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9792 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9793 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9794 values.
9795
9796 2003-03-05 Andrew Cagney <cagney@redhat.com>
9797
9798 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9799 (struct d10v_unwind_cache): Delete field "frameless". Replace
9800 "next_addr" with "sp_offset". Add "r11_offset".
9801 (d10v_frame_unwind_cache): Update.
9802 (prologue_find_regs): Update. When "mv r11, sp", save the
9803 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9804 RN was saved in r11_offset.
9805
9806 2003-03-05 Andrew Cagney <cagney@redhat.com>
9807
9808 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9809 cached PC value in the next frame.
9810
9811 2003-03-05 Andrew Cagney <cagney@redhat.com>
9812
9813 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9814 "id_unwind_cache" with "id".
9815 (frame_id_unwind): Delete declaration.
9816 * frame.c (frame_id_unwind): Delete function.
9817 (get_prev_frame): Call the frame id unwind method directly. Store
9818 the returned next frame's ID value in NEXT_FRAME. Note that there
9819 is a problem with the wrong unwind ID being called with the wrong
9820 unwind cache.
9821
9822 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9823
9824 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9825
9826 2003-03-05 James Ingham <jingham@apple.com>
9827 Daniel Jacobowitz <drow@mvista.com>
9828
9829 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9830 (auto_cp_abi): New variable.
9831 (current_cp_abi, num_cp_abis): Make static.
9832 (CP_ABI_MAX): Define.
9833 (cp_abis): Turn into an array.
9834 (value_virtual_fn_field): Fix formatting.
9835 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9836 takes a pointer.
9837 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9838 (list_cp_abis, _initialize_cp_abi): New functions.
9839 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9840 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9841 switch_to_cp_abi. Update prototype for register_cp_abi.
9842 * Makefile.in (cp-abi.o): Update dependencies.
9843 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9844 instead of switch_to_cp_abi.
9845 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9846 register_cp_abi.
9847 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9848 register_cp_abi.
9849 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9850
9851 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9852
9853 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9854 * dwarf2loc.c: Include "regcache.h".
9855 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9856 register_size.
9857 * Makefile.in (dwarf2loc.o): Update dependencies.
9858
9859 2003-03-04 Theodore A. Roth <troth@openavr.org>
9860
9861 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9862 number of io registers reported by remote target is not a multiple of
9863 step.
9864
9865 2003-03-04 David Carlton <carlton@math.stanford.edu>
9866
9867 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9868 (lookup_symbol_aux_psymtabs): Update call to
9869 lookup_partial_symbol.
9870 (lookup_transparent_type, find_main_psymtab)
9871 (make_symbol_overload_list): Ditto.
9872
9873 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9874
9875 * MAINTAINERS (Write after approval): Update my email address.
9876
9877 2003-03-03 Andrew Cagney <cagney@redhat.com>
9878
9879 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9880 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9881 predicate. Replace MAX_REGISTER_RAW_SIZE.
9882 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9883 MAX_REGISTER_VIRTUAL_SIZE.
9884 * regcache.c (legacy_max_register_raw_size): New function.
9885 (legacy_max_register_virtual_size): New function.
9886 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9887 (MAX_REGISTER_RAW_SIZE): Define.
9888 (legacy_max_register_raw_size): Declare.
9889 (legacy_max_register_virtual_size): Declare.
9890 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9891 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9892 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9893 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9894 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9895 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9896 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9897 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9898 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9899 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9900 * vax-tdep.c (vax_gdbarch_init): Update.
9901 * v850-tdep.c (v850_gdbarch_init): Update.
9902 * sparc-tdep.c (sparc_gdbarch_init): Update.
9903 * sh-tdep.c (sh_gdbarch_init): Update.
9904 * s390-tdep.c (s390_gdbarch_init): Update.
9905 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9906 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9907 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9908 * mips-tdep.c (mips_gdbarch_init): Update.
9909 * mcore-tdep.c (mcore_gdbarch_init): Update.
9910 * m68k-tdep.c (m68k_gdbarch_init): Update.
9911 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9912 * ia64-tdep.c (ia64_gdbarch_init): Update.
9913 * i386-tdep.c (i386_gdbarch_init): Update.
9914 * hppa-tdep.c (hppa_gdbarch_init): Update.
9915 * h8300-tdep.c (h8300_gdbarch_init): Update.
9916 * frv-tdep.c (frv_gdbarch_init): Update.
9917 * cris-tdep.c (cris_gdbarch_init): Update.
9918 * avr-tdep.c (avr_gdbarch_init): Update.
9919 * arm-tdep.c (arm_gdbarch_init): Update.
9920 * alpha-tdep.c (alpha_gdbarch_init): Update.
9921 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9922 max_register_raw_size or max_register_virtual_size.
9923
9924 2003-03-03 David Carlton <carlton@math.stanford.edu>
9925
9926 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9927 SYMBOL_MATCHES_NAME, add comment.
9928 (SYMBOL_MATCHES_NATURAL_NAME): New.
9929 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9930 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9931 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9932 * symtab.c (lookup_partial_symbol): Use
9933 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9934 unhelpful comment.
9935 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9936 SYMBOL_MATCHES_NAME.
9937 Fix for PR c++/33.
9938
9939 2003-03-03 David Carlton <carlton@math.stanford.edu>
9940
9941 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9942 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9943 by regexp matching against SYMBOL_NATURAL_NAME.
9944
9945 2003-03-03 David Carlton <carlton@math.stanford.edu>
9946
9947 * linespec.c (find_method): Extract code into collect_methods.
9948 (collect_methods): New.
9949
9950 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9951
9952 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9953 get_frame_base.
9954
9955 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9956 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9957
9958 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9959
9960 * arch-utils.c (generic_register_byte): Fix to use the loop index
9961 and not regnum when summing the size of all registers up to regnum.
9962
9963 2003-03-01 Andrew Cagney <cagney@redhat.com>
9964
9965 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9966 FRAME_INIT_SAVED_REGS.
9967 * gdbarch.h, gdbarch.c: Regenerate.
9968 * stack.c (frame_info): Update.
9969 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9970 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9971 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9972 * ns32k-tdep.c (ns32k_pop_frame): Update.
9973 * mips-tdep.c (mips_pop_frame): Update.
9974 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9975 * ia64-tdep.c (ia64_frame_chain): Update.
9976 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9977 (ia64_frameless_function_invocation): Update.
9978 (ia64_init_extra_frame_info): Update.
9979 (ia64_pop_frame_regular): Update.
9980 * frame.h (struct frame_info): Update comment.
9981 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9982 * frame.c (frame_saved_regs_register_unwind): Update.
9983 (frame_saved_regs_register_unwind): Update.
9984 (deprecated_generic_get_saved_register): Update.
9985 * cris-tdep.c: Update comment.
9986 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9987 Rename macro.
9988 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9989 * x86-64-tdep.c (x86_64_init_abi): Update.
9990 * vax-tdep.c (vax_gdbarch_init): Update.
9991 * v850-tdep.c (v850_gdbarch_init): Update.
9992 * sparc-tdep.c (sparc_gdbarch_init): Update.
9993 * sh-tdep.c (sh_gdbarch_init): Update.
9994 * s390-tdep.c (s390_gdbarch_init): Update.
9995 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9996 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9997 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9998 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9999 * mips-tdep.c (mips_gdbarch_init): Update.
10000 * mcore-tdep.c (mcore_gdbarch_init): Update.
10001 * m68k-tdep.c (m68k_gdbarch_init): Update.
10002 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10003 * ia64-tdep.c (ia64_gdbarch_init): Update.
10004 * i386-tdep.c (i386_gdbarch_init): Update.
10005 * frv-tdep.c (frv_gdbarch_init): Update.
10006 * avr-tdep.c (avr_gdbarch_init): Update.
10007 * arm-tdep.c (arm_gdbarch_init): Update.
10008 * alpha-tdep.c (alpha_gdbarch_init): Update.
10009
10010 2003-03-01 Andrew Cagney <cagney@redhat.com>
10011
10012 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10013 option enum and switch. When no windows, set the interpreter to
10014 INTERP_CONSOLE.
10015
10016 2003-03-01 Andrew Cagney <cagney@redhat.com>
10017
10018 * main.c (captured_main): Replace magic option characters with an
10019 enum.
10020
10021 2003-03-01 Andrew Cagney <cagney@redhat.com>
10022
10023 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10024 INIT_EXTRA_FRAME_INFO.
10025 * gdbarch.h, gdbarch.c: Regenerate.
10026 * arm-tdep.c: Update comments.
10027 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10028 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10029 * frame.h, avr-tdep.c: Ditto.
10030 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10031 (create_new_frame, legacy_get_prev_frame): Ditto.
10032 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10033 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10034 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10035 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10036 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10037 * v850-tdep.c (v850_gdbarch_init): Ditto.
10038 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10039 * sh-tdep.c (sh_gdbarch_init): Ditto.
10040 * s390-tdep.c (s390_gdbarch_init): Ditto.
10041 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10042 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10043 * mips-tdep.c (mips_gdbarch_init): Ditto.
10044 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10045 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10046 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10047 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10048 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10049 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10050 * frv-tdep.c (frv_gdbarch_init): Ditto.
10051 * cris-tdep.c (cris_gdbarch_init): Ditto.
10052 * avr-tdep.c (avr_gdbarch_init): Ditto.
10053 * arm-tdep.c (arm_gdbarch_init): Ditto.
10054 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10055 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10056
10057 2003-03-01 Andrew Cagney <cagney@redhat.com>
10058
10059 * gdbarch.sh (register_type): New function with predicate.
10060 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10061 * gdbarch.h, gdbarch.c: Re-generate.
10062 * arch-utils.c (generic_register_byte): Use generic_register_size.
10063 (generic_register_size): When available, use
10064 gdbarch_register_type.
10065 * regcache.c (init_regcache_descr): When available, initialize the
10066 register type array using gdbarch_register_type. If the
10067 architecture supplies gdbarch_register_type, do not use the legacy
10068 regcache layout.
10069 * d10v-tdep.c (d10v_register_type): Replace
10070 d10v_register_virtual_type.
10071 (d10v_gdbarch_init): Set register_type instead of
10072 register_virtual_type.
10073
10074 2003-03-01 Andrew Cagney <cagney@redhat.com>
10075
10076 * Makefile.in (ax-gdb.o): Update dependencies.
10077 * ax-gdb.c: Include "regcache.h".
10078 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10079 * findvar.c (value_of_register): Ditto.
10080 * infcmd.c (default_print_registers_info): Ditto.
10081
10082 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10083
10084 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10085 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10086
10087 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10088
10089 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10090 of STREQ.
10091
10092 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10093
10094 * Makefile.in (dwarf2loc.o): Update dependencies.
10095 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10096 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10097 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10098 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10099 (locexpr_tracepoint_var_ref): New function.
10100 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10101
10102 2003-02-28 Andrew Cagney <cagney@redhat.com>
10103
10104 * regcache.c (register_size): New function.
10105 * regcache.h (register_size): Declare
10106 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10107 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10108
10109 2003-02-28 David Carlton <carlton@math.stanford.edu>
10110
10111 * linespec.c (decode_compound): Extract code into find_method.
10112 (find_method): New.
10113
10114 2003-02-28 J. Brobecker <brobecker@gnat.com>
10115
10116 * Makefile.in: Add rules to build and link in observer.o.
10117
10118 2003-02-27 J. Brobecker <brobecker@gnat.com>
10119
10120 * observer.c: Minor comments edits.
10121
10122 2003-02-27 J. Brobecker <brobecker@gnat.com>
10123
10124 * observer.h, observer.c: New file.
10125
10126 2003-02-27 Andrew Cagney <cagney@redhat.com>
10127
10128 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10129
10130 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10131
10132 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10133 (M6812_OP_STS_EXT): Likewise.
10134 (m6811_prologue): Use the above to recognize prologue.
10135 (m6812_prologue): Likewise.
10136
10137 2003-02-27 David Carlton <carlton@math.stanford.edu>
10138
10139 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10140 SYMBOL_PRINT_NAME.
10141 (compare_psymbols): Ditto.
10142 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10143
10144 2003-02-27 Michael Snyder <msnyder@redhat.com>
10145
10146 * f-lang.c (build_fortran_types): New function.
10147 (_initialize_f_language): Gdbarch-register built-in fortran types.
10148 * doublest.c (extract_floating): Fix warning text.
10149
10150 2003-02-27 Andrew Cagney <cagney@redhat.com>
10151
10152 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10153 predicate. Replaces PUSH_DUMMY_FRAME.
10154 * gdbarch.h, gdbarch.c: Regnerate.
10155 * valops.c (hand_function_call): Update. Call
10156 generic_push_dummy_frame directly.
10157 * vax-tdep.c (vax_gdbarch_init): Update.
10158 * sparc-tdep.c (sparc_gdbarch_init): Update.
10159 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10160 * m68k-tdep.c (m68k_gdbarch_init): Update.
10161 * hppa-tdep.c (hppa_gdbarch_init): Update.
10162 * alpha-tdep.c (alpha_gdbarch_init): Update.
10163 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10164 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10165 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10166 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10167 push_dummy_frame to generic_push_dummy_frame.
10168 * v850-tdep.c (v850_gdbarch_init): Ditto.
10169 * sh-tdep.c (sh_gdbarch_init): Ditto.
10170 * s390-tdep.c (s390_gdbarch_init): Ditto.
10171 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10172 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10173 * mips-tdep.c (mips_gdbarch_init): Ditto.
10174 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10175 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10176 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10177 * i386-tdep.c (i386_gdbarch_init): Ditto.
10178 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10179 * frv-tdep.c (frv_gdbarch_init): Ditto.
10180 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10181 * cris-tdep.c (cris_gdbarch_init): Ditto.
10182 * avr-tdep.c (avr_gdbarch_init): Ditto.
10183 * arm-tdep.c (arm_gdbarch_init): Ditto.
10184
10185 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10186
10187 * mips-tdep.c (show_mips_abi): New function.
10188 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10189 command ``show mips abi''.
10190
10191 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10192
10193 From Elena Zannoni <ezannoni@redhat.com>
10194 * dbxread.c (process_one_symbol): Only record line 0 if one or
10195 more sline entries have been seen for the function.
10196
10197 2003-02-26 Michael Chastain <mec@shout.net>
10198
10199 * configure: Regenerate with autoconf 000227.
10200
10201 2003-02-26 Michael Chastain <mec@shout.net>
10202
10203 Close PR build/660.
10204 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10205 for old libc5/glibc.
10206 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10207
10208 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10209
10210 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10211 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10212
10213 2003-02-26 Michael Chastain <mec@shout.net>
10214
10215 * configure.in: New variable HAVE_UINTPTR_T.
10216 * configure, config.in: Regenerated.
10217
10218 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10219
10220 Fix PR build/1097.
10221 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10222
10223 2003-02-25 Andrew Cagney <cagney@redhat.com>
10224
10225 * frame.c (get_prev_frame): Add comment on check for
10226 inside_entry_func. Only check for inside_entry_file when not a
10227 dummy and not a sentinel. Check that the new frame is not inner
10228 to the old frame.
10229
10230 2003-02-25 Andrew Cagney <cagney@redhat.com>
10231
10232 * frame.c (frame_debug): New variable.
10233 (_initialize_frame): Add "set/show debug frame" command.
10234 (get_prev_frame): When frame_debug, print reason why unwind
10235 failed.
10236
10237 2003-02-25 Michael Chastain <mec@shout.net>
10238
10239 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10240 to avoid uintptr_t definition problems.
10241
10242 2003-02-25 David Carlton <carlton@math.stanford.edu>
10243
10244 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10245 (SYMBOL_LINKAGE_NAME): Ditto.
10246 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10247 SYMBOL_LINKAGE_NAME.
10248 (struct general_symbol_info): Expand comment.
10249 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10250 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10251 (SYMBOL_MATCHES_REGEXP): Ditto.
10252 * symtab.c (symbol_natural_name): New function.
10253 * objfiles.h: Replace all uses of SYMBOL_NAME by
10254 DEPRECATED_SYMBOL_NAME.
10255 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10256 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10257 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10258 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10259 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10260 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10261 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10262 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10263 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10264 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10265 * ada-exp.y: Ditto.
10266 * ada-exp.y: Update copyright.
10267 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10268 * cp-valprint.c: Ditto.
10269
10270 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10271
10272 * infptrace.c (detach): Do not flag error if ptrace detach fails
10273 and errno is set to ESRCH.
10274
10275 2003-02-24 Andrew Cagney <cagney@redhat.com>
10276
10277 * infptrace.c (udot_info): Change type of udot_off to long. Use
10278 paddr when printing udot_off's value.
10279
10280 2003-02-24 David Carlton <carlton@math.stanford.edu>
10281
10282 * symtab.c (make_symbol_overload_list): Only read in partial
10283 symtabs containing a matching partial symbol.
10284
10285 2003-02-24 David Carlton <carlton@math.stanford.edu>
10286
10287 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10288 do the comparison, not strcmp.
10289 * symfile.c (compare_psymbols): Ditto.
10290 * defs.h: Declare strcmp_iw_ordered.
10291 * utils.c (strcmp_iw_ordered): New function.
10292
10293 2003-02-24 Jim Blandy <jimb@redhat.com>
10294
10295 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10296 support, shared libs): Remove my name from here, to better reflect
10297 reality.
10298
10299 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10300
10301 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10302 (target_ops): Add to_have_continuable_watchpoint.
10303 * target.c (update_current_target): Add INHERIT line for
10304 to_have_continuable_watchpoint.
10305 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10306 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10307 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10308 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10309
10310 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10311
10312 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10313 maintainership.
10314
10315 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10316
10317 * solib.c (solib_open): Call target defined search function after
10318 failing with solib-search-path.
10319 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10320 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10321
10322 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10323
10324 * MAINTAINERS: Add myself to Write After section.
10325
10326 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10327
10328 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10329
10330 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10331
10332 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10333 (m68hc11_add_reggroups): New function.
10334 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10335 (m68hc11_gdbarch_init): Install the reggroups.
10336 (_initialize_m68hc11_tdep): Initialize them.
10337
10338 2003-02-21 James E Wilson <wilson@tuliptree.org>
10339
10340 * MAINTAINERS: Update my email address.
10341
10342 2003-02-21 David Carlton <carlton@math.stanford.edu>
10343
10344 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10345
10346 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10347
10348 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10349 * symtab.h: Add opaque declarations of struct axs_value and
10350 struct agent_expr.
10351 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10352 (struct location_funcs): New type.
10353 (struct symbol): Add "loc" to aux_value.
10354 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10355 * dwarf2read.c: Include "dwarf2expr.h".
10356 (dwarf2_symbol_mark_computed): New function.
10357 (read_func_scope): Use it.
10358 (var_decode_location): New function.
10359 (new_symbol): Use it.
10360 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10361
10362 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10363 (dwarf2expr_h, dwarf2loc_h): New variables.
10364 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10365 (dwarf2expr.o, dwarf2loc.o): New rules.
10366 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10367 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10368 LOC_COMPUTED_ARG.
10369 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10370 * m2-exp.y (yylex): Likewise.
10371 * printcmd.c (address_info, print_frame_args): Likewise.
10372 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10373 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10374 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10375 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10376 * symtab.c (lookup_block_symbol): Likewise.
10377
10378 2003-02-20 Adam Fedor <fedor@gnu.org>
10379
10380 * symtab.h: Remove objc_specific struct
10381 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10382 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10383 Have language_objc use cplus_specific struct.
10384
10385 2003-02-20 Tom Tromey <tromey@redhat.com>
10386
10387 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10388 TYPE_NAME, when printing a String value. PR java/1075.
10389
10390 2003-02-20 Adam Fedor <fedor@gnu.org>
10391
10392 * objc-lang.h (find_methods): Remove declaration.
10393 * objc-lang.c (find_methods): Make static.
10394
10395 2003-02-20 Christopher Faylor <cgf@redhat.com>
10396
10397 * win32-nat.c (get_image_name): Check return value from
10398 ReadProcessMemory.
10399 (child_xfer_memory): Ditto.
10400
10401 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10402
10403 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10404 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10405 '${exec_prefix}' (in addition to the expansion thereof) as
10406 relocatable.
10407 * configure: Rebuilt.
10408
10409 2003-02-20 David Carlton <carlton@math.stanford.edu>
10410
10411 * symtab.c (search_symbols): Revert the search_symbols part of my
10412 2002-12-23 patch. Add comment.
10413
10414 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10415
10416 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10417 * dbxread.c (elfstab_build_psymtabs): Don't call
10418 install_minimal_symbols.
10419 (stabsect_build_psymtabs): Likewise.
10420 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10421 earlier.
10422 * somread.c (som_symfile_read): Call install_minimal_symbols
10423 and do_cleanups earlier.
10424 * nlmread.c (nlm_symfile_read): Likewise.
10425 * mdebugread.c (elfmdebug_build_psymtabs): Call
10426 install_minimal_symbols and make appropriate cleanups.
10427
10428 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10429
10430 * solib.c (reload_shared_libraries): New function.
10431 (_initialize_solib): Add callbacks for ``set solib-search-path''
10432 and ``set solib-absolute-prefix''.
10433
10434 2003-02-20 David Carlton <carlton@math.stanford.edu>
10435
10436 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10437 expand comment.
10438 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10439 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10440 * ada-typeprint.c (ada_typedef_print): Ditto.
10441 * ax-gdb.c (gen_var_ref): Ditto.
10442 * breakpoint.c (print_one_breakpoint): Ditto.
10443 * buildsym.c (finish_block): Ditto.
10444 * c-valprint.c (c_val_print): Ditto.
10445 * expprint.c (print_subexp): Ditto.
10446 * findvar.c (locate_var_value): Ditto.
10447 * infcmd.c (jump_command): Ditto.
10448 * linespec.c (decode_line_2, decode_compound): Ditto.
10449 * maint.c (maintenance_translate_address): Ditto.
10450 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10451 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10452 Ditto.
10453 * p-valprint.c (pascal_val_print): Ditto.
10454 * stabsread.c (define_symbol): Ditto.
10455 * stack.c (print_frame, frame_info, print_block_frame_locals)
10456 (print_frame_arg_vars, return_command): Ditto.
10457 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10458 * symmisc.c (print_symbol): Ditto.
10459 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10460 (compare_search_syms, print_symbol_info, print_msymbol_info)
10461 (rbreak_command): Ditto.
10462 * tracepoint.c (tracepoints_info): Ditto.
10463 * typeprint.c (typedef_print): Ditto.
10464 * valops.c (value_of_variable, hand_function_call): Ditto.
10465 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10466 * ada-typeprint.c: Update Copyright.
10467 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10468 * tracepoint.c, cli/cli-cmds.c: Ditto.
10469
10470 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10471
10472 * frame.c (generic_unwind_get_saved_register): Make non-static.
10473 * frame.h (generic_unwind_get_saved_register): Declare.
10474 * mips-tdep.c (read_next_frame_reg): Fetch register from
10475 current regcache when frame is NULL.
10476 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10477 that must be NULL.
10478 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10479 instead of frame_register_unwind().
10480
10481 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10482
10483 * remote-sim.c (gdbsim_insert_breakpoint)
10484 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10485 code.
10486
10487 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10488
10489 * remote.c (_initialize_remote): Add commands "set/show remote
10490 hardware-watchpoint-limit" and "set/show remote
10491 hardware-breakpoint-limit".
10492 (remote_hw_watchpoint_limit): Initialize to -1.
10493 (remote_hw_breakpoint_limit): Ditto.
10494 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10495
10496 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10497
10498 * coff-pe-read.c: New file - support reading of minimal symbols from a
10499 portable executable using the export table.
10500 * coff-pe-read.h: New file.
10501 * coffread.c: Include coff-pe-read.h.
10502 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10503 debugging symbols found.
10504 * Makefile.in (SFILES): Add coff-pe-read.o.
10505 (coff_pe_read_h): Define.
10506 (COMMON_OBS): Add coff-pe-read.o.
10507 (coffread.o): Add coff_pe_read_h dependency.
10508 (coff-pe-read.o): New target.
10509
10510 2003-02-19 David Carlton <carlton@math.stanford.edu>
10511
10512 * Makefile.in (SFILES): Add block.c.
10513 (block_h): New.
10514 (COMMON_OBS): Add block.o.
10515 (block.o): New.
10516 (x86-64-tdep.o): Add $(block_h).
10517 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10518 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10519 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10520 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10521 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10522 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10523 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10524 * value.h: Add opaque declaration for struct block.
10525 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10526 * ada-lang.h: Ditto.
10527 * x86-64-tdep.c: #include "block.h"
10528 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10529 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10530 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10531 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10532 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10533 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10534 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10535 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10536 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10537 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10538 * symtab.c (block_function): Ditto.
10539 (contained_in): Ditto.
10540 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10541 block.h. Add opaque declaration for struct block.
10542 * symtab.h: Move block_function and contained_in declarations to
10543 block.h. Add opaque declarations for struct block, struct
10544 blockvector.
10545 (struct block): Move to block.h.
10546 (struct blockvector): Ditto.
10547 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10548 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10549 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10550 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10551 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10552 Ditto.
10553 * block.c: New file.
10554 * block.h: New file.
10555
10556 2003-02-19 Theodore A. Roth <troth@openavr.org>
10557
10558 * avr-tdep.c (avr_extract_return_value): Remove function.
10559 (avr_store_return_value): Remove function.
10560 (avr_extract_struct_value_address): Remove function.
10561 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10562
10563 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10564
10565 * rs6000-tdep.c: Include "gdb_assert.h".
10566 (registers_e500): Add "acc" and "spefscr".
10567 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10568 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10569 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10570 really is "r0".
10571 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10572
10573 2003-02-18 Keith Seitz <keiths@redhat.com>
10574
10575 * Makefile.in: Add gdbtk-interps.c.
10576
10577 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10578
10579 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10580 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10581
10582 2003-02-18 Andrew Cagney <cagney@redhat.com>
10583
10584 * symtab.h (struct objfile): Add opaque declaration.
10585
10586 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10587
10588 From Jim Ingham <jingham@apple.com>:
10589 * dbxread.c (process_one_symbol): Use last_function_start rather
10590 than function_start_offset to find the real beginning of the
10591 current function. The latter is just the text section offset on
10592 some systems, the former is always the real function start.
10593
10594 2003-02-17 Andrew Cagney <cagney@redhat.com>
10595
10596 * configure.in: Revert ${target} != ${host}.
10597
10598 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10599
10600 * configure.in (Makefile): Use the test ${target} != ${host},
10601 instead of the absence of the "nm.h" file, to determine of the
10602 configuration non-native.
10603 * configure: Regenerate.
10604
10605 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10606
10607 From Brian Ford <ford@vss.fsi.com>
10608
10609 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10610 conditionalize tui_active test.
10611 (lookup_cmd_1): Ditto.
10612
10613 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10614
10615 * configure.in: Add check for _etext.
10616 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10617 available.
10618 * config.in, configure: regenerated.
10619
10620 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10621
10622 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10623
10624 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10625
10626 * main.c (tui_version): Delete variable.
10627 (captured_main): When --tui, set interpreter_p to "tui" instead of
10628 enabling tui_version.
10629 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10630 tui_version.
10631 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10632 * cli/cli-cmds.c (disassemble_command): Ditto.
10633 * defs.h (tui_version): Delete declaration.
10634 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10635 (tui-interp.o): Add rules.
10636 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10637
10638 2003-02-14 Christopher Faylor <cgf@redhat.com>
10639
10640 * win32-nat.c (register_loaded_dll): Correctly set address range for
10641 just-loaded dll.
10642
10643 2003-02-12 Jason Molenda (jmolenda@apple.com)
10644
10645 * symmisc.c (print_objfile_statistics): Include information about
10646 the number of psymtabs and symtabs in each object file.
10647
10648 2003-02-13 Keith R Seitz <keiths@redhat.com>
10649
10650 * main.h (struct captured_main_args): Add interpreter_p.
10651 * main.c (captured_main): Initialize interpreter_p from context.
10652 * gdb.c (main): Set interpreter_p argument.
10653 * Makefile.in (gdb.o): Add dependency for interps.h.
10654
10655 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10656
10657 * event-top.c (cli_command_loop): Delete declaration.
10658 (_initialize_event_loop): Delete function setting event_loop_hook.
10659 * event-top.h (cli_command_loop): Declare. Update copyright.
10660 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10661 * interps.c (current_interp_command_loop): When event_loop_p, call
10662 cli_command_loop.
10663
10664 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10665
10666 * interps.h (interp_command_loop_ftype): Change return type to
10667 void.
10668
10669 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10670
10671 * x86-64-tdep.c (x86_64_extract_return_value)
10672 (x86_64_store_return_value): Use regcache instead of regbuf.
10673 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10674 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10675
10676 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10677
10678 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10679 * aclocal.m4: Regenerate.
10680 * configure: Regenerate.
10681
10682 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10683 TCL_LD_SEARCH_FLAGS.
10684
10685 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10686
10687 * dwarf2cfi.c: Reindented.
10688
10689 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10690
10691 * interps.c (clear_interpreter_hooks): Convert function definition
10692 to ISO C.
10693
10694 2003-02-07 David Carlton <carlton@math.stanford.edu>
10695
10696 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10697
10698 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10699
10700 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10701 (struct type): ...to here.
10702 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10703 field.
10704 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10705 (replace_type): Set length on all type variants for a given type.
10706
10707 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10708
10709 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10710 <sys/stat.h>.
10711 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10712
10713 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10714
10715 * Makefile.in (symm-nat.o): Update dependencies.
10716 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10717 (lynx-nat.o, ia64-linux-nat.): Ditto.
10718 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10719 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10720 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10721
10722 * Makefile.in (inflow_h): Define.
10723 (procfs.o, inflow.o, procfs.o): Update dependencies.
10724 * inftarg.c (child_stop): Delete extern declaration of
10725 inferior_process_group. Include "inflow.h".
10726 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10727 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10728 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10729 (our_process_group, inferior_process_group): Extern declarations.
10730
10731 * procfs.c: Include "gdb_assert.h".
10732
10733 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10734 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10735 * jv-typeprint.c (java_type_print_base): Ditto.
10736 * typeprint.c (typedef_print): Eliminate STREQ.
10737 * cli/cli-script.c (define_command, define_command): Ditto.
10738 * main.c (captured_main): Ditto.
10739 * values.c (lookup_internalvar): Ditto.
10740 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10741 within `if' conditional.
10742 * linespec.c (decode_line_2): Ditto.
10743 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10744 (bfd_openw_with_cleanup): Ditto.
10745
10746 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10747
10748 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10749 legacy_extract_return_value and store_return_value to
10750 legacy_return_value.
10751
10752 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10753
10754 * win32-nat.c (get_relocated_section_addrs): New function. Find
10755 section load addresses for symbol handling in relocated DLLs.
10756 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10757
10758 2003-02-05 Fred Fish <fnf@intrinsity.com>
10759
10760 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10761 '=' and '!='.
10762 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10763 with '&' and '=='.
10764 (angel_RDI_info): Ditto.
10765 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10766 with '&' and '!='.
10767 (threads_continue_all_with_signals): Ditto.
10768
10769 2003-02-05 Jim Ingham <jingham@apple.com>
10770 Keith Seitz <keiths@redhat.com>
10771 Elena Zannoni <ezannoni@redhat.com>
10772 Andrew Cagney <ac131313@redhat.com>
10773
10774 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10775 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10776 (SUBDIR_MI_OBS): Add "mi-interp.o".
10777 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10778 (SFILES): Add "interps.c".
10779 (COMMON_OBS): Add "interps.o".
10780 (interps_h, mi_main_h): Define.
10781 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10782 (mi-main.o, main.o, event-top.o): Update dependencies.
10783 * cli/cli-interp.c: New file.
10784 * interps.h, interps.c: New files.
10785 * top.c: (gdb_init): Don't install the default interpreter, handed
10786 by captured_main.
10787 * main.c: Include "interps.h".
10788 (interpreter_p): Note that it should malloc'ed.
10789 (captured_command_loop): Call current_interp_command_loop.
10790 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10791 xfree and xstrdup when updating interpreter_p. Install the
10792 default interpreter. Add hack to stop mi1's copyright notice
10793 being encoded.
10794 * event-top.h (gdb_setup_readline): Declare.
10795 (gdb_disable_readline): Declare.
10796 * event-top.c: Include "interps.h".
10797 (display_gdb_prompt): Call current_interp_display_prompt_p.
10798 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10799 gdb_stdlog, and gdb_stdtarg.
10800 (_initialize_event_loop): Don't call gdb_setup_readline.
10801 * cli-out.c (cli_out_set_stream): New function.
10802 * cli-out.h (cli_out_set_stream): Declare.
10803
10804 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10805
10806 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10807 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10808 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10809 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10810 config/i386/i386v42mp.mt: Removed.
10811
10812 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10813
10814 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10815 GDB_OSABI_SOLARIS.
10816
10817 2003-02-05 Michael Chastain <mec@shout.net>
10818
10819 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10820 2.12.1 and earlier versions.
10821
10822 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10823
10824 Remove orphaned hosts, targets and files.
10825 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10826 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10827 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10828 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10829 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10830 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10831 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10832 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10833 * config/sparc/tm-sp64sim.h: Delete.
10834 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10835 hosts.
10836 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10837 mips*-dec-mach3* targets.
10838
10839 2003-02-04 Michael Chastain <mec@shout.net>
10840
10841 * NEWS: Fix typo: sepcifying -> specifying.
10842
10843 2003-02-04 Michael Chastain <mec@shout.net>
10844
10845 * dwarfread.c: Add documentation on the state of dwarf-1,
10846 looking towards obsoletion.
10847
10848 2003-02-03 Michael Chastain <mec@shout.net>
10849
10850 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10851 gdb/testsuite/gdb.c++/pr-1023.exp.
10852
10853 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10854
10855 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10856 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10857
10858 * utils.c (init_page_info): Delete reference to MPW in comments.
10859 * main.c (captured_main): Delete #ifdef MPW.
10860
10861 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10862
10863 * NEWS: Note that the m32r-*-elf* is obsolete.
10864 * monitor.c (monitor_expect): Obsolete reference to m32r.
10865 * configure.tgt: Mark m32r-*-elf* as obsolete.
10866 * MAINTAINERS: Mark m32k as obsolete.
10867 * m32r-rom.c: Obsolete file.
10868 * config/m32r/m32r.mt: Obsolete file.
10869 * config/m32r/tm-m32r.h: Obsolete file.
10870 * m32r-stub.c: Obsolete file.
10871 * m32r-tdep.c: Obsolete file.
10872
10873 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10874
10875 * NEWS: Mention that the z8k-zilog-none is obsolete.
10876 * MAINTAINERS: Mark z8k as obsolete.
10877 * configure.tgt: Obsolete the z8k-*-coff* target.
10878 * config/z8k/z8k.mt: Obsolete file.
10879 * config/z8k/tm-z8k.h: Obsolete file.
10880 * z8k-tdep.c: Obsolete file.
10881
10882 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10883
10884 * NEWS: Mention that the mn10200-elf is obsolete.
10885 * configure.tgt: Obsolete mn10200-*-* target.
10886 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10887 mention that the mn10200 is obsolete.
10888 * breakpoint.h: Ditto.
10889 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10890 * config/mn10200/mn10200.mt: Obsolete file.
10891 * config/mn10200/tm-mn10200.h: Obsolete file.
10892 * mn10200-tdep.c: Obsolete file.
10893
10894 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10895
10896 * MAINTAINERS: Mark h8500 as obsolete.
10897 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10898 * findvar.c (value_from_register): Ditto.
10899 * h8500-tdep.c: Mark file as obsolete.
10900 * config/h8500/h8500.mt: Ditto.
10901 * config/h8500/tm-h8500.h: Ditto.
10902 * NEWS: Mention that h8500 is obsolete.
10903
10904 2003-02-04 David Carlton <carlton@math.stanford.edu>
10905
10906 * objfiles.c (allocate_objfile): Always set name. Add comment at
10907 start of function.
10908 * jv-lang.c (get_dynamics_objfile): Add comment.
10909
10910 2003-02-04 David Carlton <carlton@math.stanford.edu>
10911
10912 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10913 * printcmd.c (build_address_symbolic): Replace uses of
10914 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10915 SYMBOL_NAME, and asm_demangle.
10916 Update copyright.
10917
10918 2003-02-04 David Carlton <carlton@math.stanford.edu>
10919
10920 * linespec.c (decode_compound): Extract code into
10921 lookup_prefix_sym.
10922 (lookup_prefix_sym): New function.
10923
10924 2003-02-04 David Carlton <carlton@math.stanford.edu>
10925
10926 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10927 FLOAT_COERCION_BADNESS.
10928 * gdbtypes.c (rank_one_type): Replace all uses of
10929 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10930
10931 2003-02-04 Jim Blandy <jimb@redhat.com>
10932
10933 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10934 section, let dwarf_macinfo_section point to it, not
10935 dwarf_loc_section.
10936
10937 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10938
10939 Pointed out by Anton Blanchard <anton@samba.org>.
10940 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10941 (ppc_linux_at_sigtramp_return_path): Use it.
10942
10943 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10944
10945 * defs.h (streq): Add prototype.
10946 * utils.c (streq): New function.
10947
10948 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10949 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10950 * mdebugread.c (new_symbol): Likewise.
10951 * stabsread.c (define_symbol): Likewise.
10952 * coffread.c (process_coff_symbol): Likewise.
10953 * dwarfread.c (new_symbol): Likewise.
10954
10955 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10956 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10957 here.
10958 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10959 SYMBOL_INIT_DEMANGLED_NAME.
10960 * objfiles.c: Include "hashtab.h".
10961 (allocate_objfile): Call htab_set_functions_ex for the
10962 demangled_names_hash.
10963 (free_objfile): Call htab_delete for the demangled_names_hash.
10964 * objfiles.h (struct htab): Add declaration.
10965 (struct objfile): Add demangled_names_hash.
10966 * symfile.c: Include "hashtab.h".
10967 (reread_symbols): Call htab_delete for the demangled_names_hash.
10968 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10969 SYMBOL_NAME in the bcache.
10970 * symtab.c: Include "hashtab.h". Update comments.
10971 (create_demangled_names_hash, symbol_set_names): New functions.
10972 (symbol_find_demangled_name): New function, broken out from
10973 symbol_init_demangled_names.
10974 (symbol_init_demangled_names): Use it.
10975 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10976 (SYMBOL_SET_NAMES): New macro.
10977 (symbol_set_names): Add prototype.
10978
10979 2003-02-03 Jim Blandy <jimb@redhat.com>
10980
10981 Use a single, consistent representation for an empty minimal
10982 symbol table in an objfile.
10983 * objfiles.c (terminate_minimal_symbol_table): New function.
10984 (allocate_objfile): Call it.
10985 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10986 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10987 non-NULL.
10988 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10989 objfile has minimal symbols, compare minimal_symbol_count to zero,
10990 instead of comparing msymbols with NULL.
10991 * objfiles.c (have_minimal_symbols): Same.
10992 * solib-sunos.c (solib_add_common_symbols): Call
10993 terminate_minimal_symbol_table.
10994 * symfile.c (reread_symbols): Same.
10995
10996 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10997
10998 * s390-tdep.c (s390_address_class_type_flags)
10999 (s390_address_class_type_flags_to_name)
11000 (s390_address_class_name_to_type_flags): New functions.
11001 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11002 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11003
11004 2003-02-03 Michael Snyder <msnyder@redhat.com>
11005
11006 * arm-tdep.c: Fix spell-o in comment.
11007
11008 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11009
11010 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11011 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11012 error messages to contain BFD filename.
11013
11014 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11015
11016 Fix PR gdb/742 gdb/743 gdb/877
11017 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11018 (do_mixed_source_and_assembly): Use
11019 make_cleanup_ui_out_tuple_begin_end and
11020 make_cleanup_ui_out_tuple_begin_end.
11021 (do_mixed_source_and_assembly): Ditto.
11022 * thread.c (do_captured_list_thread_ids): Ditto.
11023 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11024 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11025 ui_out_tuple_end): Delete prototypes.
11026 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11027 ui_out_list_end, ui_out_tuple_end): Delete.
11028
11029 From Kevin Buettner <kevinb@redhat.com>:
11030 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11031 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11032 (do_cleanup_table_end): New functions.
11033 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11034 Use cleanups to invoke_ui_out_tuple_end().
11035 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11036 * cli/cli-setshow.c (cmd_show_list): Use
11037 make_cleanup_ui_out_tuple_begin_end.
11038
11039 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11040
11041 * frame.c (frame_unwind_register): New function.
11042 (frame_unwind_unsigned_register): Use.
11043 (frame_unwind_signed_register): Use.
11044 (frame_read_register): New function.
11045 * frame.h (frame_unwind_register): Declare.
11046 (frame_read_register): Declare.
11047
11048 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11049 and frame_unwind_register instead of read_memory, write_register
11050 and deprecated_write_register_bytes.
11051
11052 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11053
11054 * frame.h: Note that namelen can be negative.
11055 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11056 NAME's length.
11057
11058 * NEWS: Mention that the d10v's `regs' command is deprecated.
11059 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11060 (d10v_print_registers_info): New function.
11061 (show_regs): Call d10v_print_registers_info.
11062 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11063
11064 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11065
11066 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11067 lost in the previous patch.
11068
11069 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11070
11071 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11072 * stack.c (print_frame_info_base): Output complete FRAME tuple
11073 for synthesized frames.
11074
11075 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11076
11077 * mips-nat.c (zerobuf): Delete.
11078 (fetch_inferior_registers): Alloc local zerobuf.
11079 (fetch_core_registers): Alloc local zerobuf.
11080 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11081 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11082 * thread-db.c (thread_db_store_registers): Ditto.
11083 * sh-tdep.c (sh_do_register): Ditto.
11084 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11085 * remote-sim.c (gdbsim_store_register): Ditto.
11086 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11087 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11088 * monitor.c (monitor_supply_register): Ditto.
11089 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11090 * mips-nat.c (fetch_inferior_registers): Ditto.
11091 * m68klinux-nat.c (fetch_register): Ditto.
11092 * lynx-nat.c (fetch_inferior_registers): Ditto.
11093 (fetch_inferior_registers): Ditto.
11094 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11095 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11096 (hpux_thread_store_registers): Ditto.
11097 * hppah-nat.c (fetch_register): Ditto.
11098 * hppab-nat.c (fetch_register): Ditto.
11099 * hppa-tdep.c (pa_register_look_aside): Ditto.
11100 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11101 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11102
11103 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11104
11105 * gdbarch.sh: Explictly specify all method levels. When a
11106 variable with an empty level, provide a non-multi-arch default.
11107 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11108 * gdbarch.h: Re-generate.
11109 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11110 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11111
11112 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11113
11114 * defs.h (host_pointer_to_address): Delete declaration.
11115 (address_to_host_pointer): Delete declaration.
11116 * utils.c (host_pointer_to_address): Delete function.
11117 (address_to_host_pointer): Delete function.
11118 * procfs.c (procfs_address_to_host_pointer): New function.
11119 * procfs.c (proc_set_watchpoint): Use.
11120 (procfs_can_use_hw_breakpoint): Update comments.
11121 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11122 (som_solib_add): Use.
11123 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11124 * hppa-tdep.c (unwind_command): Use.
11125
11126 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11127
11128 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11129 strlen d_name.
11130
11131 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11132 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11133 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11134 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11135 (define_symbol): Update.
11136 * symfile.c (generic_load): Remove references to nindy.
11137 * symtab.c: Remove references to nindy.
11138
11139 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11140
11141 * infcmd.c (print_float_info): Delete code conditional on
11142 FLOAT_INFO.
11143 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11144 * config/m68k/nm-apollo68b.h: Ditto.
11145 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11146 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11147 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11148
11149 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11150
11151 * config/i386/tm-i386os9k.h: Removed.
11152
11153 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11154 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11155 they're identical to i[3456]86-*-sysv* now.
11156 * config/i386/i386v32.mh: Removed.
11157 * config/i386/xm-i386v32.h: Removed.
11158 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11159
11160 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11161
11162 * config/i386/i386dgux.mh: Removed.
11163 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11164
11165 * configure.in: Fix typo.
11166 * configure: Regenerated.
11167
11168 2003-01-31 David Carlton <carlton@math.stanford.edu>
11169
11170 * dwarf2read.c (dwarf2_locate_sections): Set
11171 dwarf_ranges_section.
11172
11173 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11174
11175 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11176 * utils.c: Update comments documenting legitimate uses of PTR.
11177
11178 * utils.c: Re-indent.
11179
11180 * config/djgpp/fnchange.lst: Delete nindy files.
11181 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11182 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11183 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11184 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11185 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11186 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11187 * Makefile.in (init.c): Remove nindy references.
11188 (saber_gdb): Delete rule.
11189 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11190 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11191 and a68v-nat.c.
11192 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11193 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11194 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11195 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11196 nindy-share/stop.h.
11197 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11198 * saber.suppress: Delete file.
11199
11200 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11201
11202 * dbxread.c (stabs_data): New static variable.
11203 (fill_symbuf): Support an in-memory buffer for stabs data.
11204 (stabs_seek): New function.
11205 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11206 (read_ofile_symtab): Use stabs_seek.
11207 (elfstab_build_psymtabs): Take an asection* instead of
11208 an offset and size. Relocate the stabs data if necessary.
11209 Save the section* for dbx_psymtab_to_symtab.
11210 * dwarf2read.c: Add section variables for each debug section.
11211 (dwarf2_locate_sections): Fill them in.
11212 (dwarf2_read_section): Take an asection* argument.
11213 Relocate the section contents if necessary.
11214 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11215 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11216 it to dwarf2_read_section.
11217 (dwarf2_build_frame_info): Update callers.
11218 * elfread.c (elf_symfile_read): Update call to
11219 elfstab_build_psymtabs.
11220 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11221 (DBX_STAB_SECTION): New macro.
11222 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11223 * symfile.c (symfile_dummy_outputs): New function.
11224 (symfile_relocate_debug_section): New function.
11225 * symfile.h (symfile_relocate_debug_section): Add prototype.
11226
11227 2003-01-31 Richard Henderson <rth@redhat.com>
11228
11229 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11230 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11231 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11232 * alpha-tdep.c (alpha_register_name): Add "unique".
11233 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11234 (ALPHA_UNIQUE_REGNUM): New.
11235 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11236
11237 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11238
11239 * README: Remove reference to Ericsson 1800 monitor.
11240 * Makefile.in (remote-es.o): Delete rule.
11241 (ALLDEPFILES): Delete remote-es.c.
11242 * remote-es.c: Delete file.
11243 * config/m68k/es1800.mt: Delete file.
11244 * config/djgpp/fnchange.lst: Update.
11245 * configure.tgt: Delete m68*-ericsson-* target.
11246
11247 2003-01-31 Adam Fedor <fedor@gnu.org>
11248
11249 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11250 Remove duplicate/shadowing variable of same name.
11251
11252 2003-01-30 Jim Blandy <jimb@redhat.com>
11253
11254 * symfile.c (find_separate_debug_file): Assert that the objfile's
11255 directory name we compute ends with a slash, and then assume that
11256 that's so everywhere we use it.
11257
11258 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11259
11260 * valops.c (value_assign): Flush frame cache after stores to memory
11261 also.
11262
11263 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11264
11265 * Makefile.in (mon960-rom.o): Delete rule.
11266 * mon960-rom.c: Delete file.
11267
11268 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11269
11270 * d10v-tdep.c: Include "frame-unwind.h".
11271 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11272 list.
11273 (next_addr, uses_frame): Delete.
11274 (struct d10v_unwind_cache): Define.
11275 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11276 Use info instead of next_addr and uses_frame globals.
11277 (d10v_frame_init_saved_regs): Delete function.
11278 (d10v_init_extra_frame_info): Delete function.
11279 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11280 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11281 init_frame_pc or frame_saved_pc.
11282 (d10v_pop_frame): Delete function.
11283 (do_d10v_pop_frame): Delete function.
11284 (d10v_frame_chain): Delete function.
11285 (d10v_frame_chain_valid): Delete function.
11286 (d10v_frame_pc_unwind): New function.
11287 (d10v_frame_id_unwind): New function.
11288 (saved_regs_unwinder): New function.
11289 (d10v_frame_register_unwind): New function.
11290 (d10v_frame_pop): New function.
11291 (d10v_frame_unwind): New variable.
11292 (d10v_frame_p): New function.
11293 (d10v_frame_saved_pc): Delete function.
11294 * Makefile.in (d10v-tdep.o): Update dependencies.
11295
11296 2003-01-30 J. Brobecker <brobecker@gnat.com>
11297
11298 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11299 causing some regressions due to a change in the default value
11300 for this macro.
11301
11302 2003-01-29 Richard Henderson <rth@redhat.com>
11303 Elena Zannoni <ezannoni@redhat.com>
11304 Daniel Jacobowitz <drow@mvista.com>
11305
11306 Fix PR gdb/961.
11307 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11308 variables.
11309 (RANGES_SECTION): New.
11310 (dwarf_ranges_buffer): New variable.
11311 (struct comp_unit_head): Add member "die".
11312 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11313 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11314 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11315 (dwarf2_locate_sections): Likewise.
11316 (dwarf2_build_psymtabs): Read .debug_ranges.
11317 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11318 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11319 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11320 Look for DW_AT_ranges and return the bounding box.
11321
11322 2003-01-29 Brian Ford <ford@vss.fsi.com>
11323
11324 * win32-nat.c (cygwin_pid): Removed as unused.
11325 (child_attach): Try fall back to Cygwin pid.
11326
11327 2003-01-29 Jim Blandy <jimb@redhat.com>
11328
11329 * objfiles.h (struct objfile): Doc fix.
11330
11331 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11332
11333 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11334 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11335 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11336 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11337 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11338 (FRAME_SAVED_PC): Change to a function with predicate.
11339 * gdbarch.h, gdbarch.c: Re-generate.
11340
11341 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11342
11343 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11344
11345 * complaints.c (complain): Delete function.
11346 * complaints.h (struct deprecated_complaint): Delete definition.
11347 (complain): Delete declaration.
11348
11349 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11350
11351 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11352 dummy frames.
11353
11354 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11355
11356 * sentinel-frame.h, sentinel-frame.c: New files.
11357 * Makefile.in (frame.o): Update dependencies.
11358 (SFILES): Add sentinel-frame.c.
11359 (sentinel_frame_h): Define.
11360 (COMMON_OBS): Add sentinel-frame.o.
11361 (sentinel-frame.o): Specify dependencies.
11362 * frame.c: Include "sentinel-frame.h".
11363 (frame_register_unwind): Rewrite assuming that there is always a a
11364 ->next frame.
11365 (frame_register, generic_unwind_get_saved_register): Ditto.
11366 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11367 (create_sentinel_frame, unwind_to_current_frame): New functions.
11368 (get_current_frame): Rewrite using create_sentinel_frame and
11369 unwind_to_current_frame. When possible, always create a frame.
11370 (create_new_frame): Set next to the sentinel frame.
11371 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11372 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11373 ID cache when necessary.
11374 (frame_saved_regs_id_unwind): Use frame_relative_level.
11375 (deprecated_generic_get_saved_register): Use frame_relative_level,
11376 get_frame_saved_regs, get_frame_pc, get_frame_base and
11377 get_next_frame.
11378 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11379 frame_register.
11380
11381 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11382
11383 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11384
11385 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11386
11387 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11388 (maintenance_set_profile_cmd): Use error () instead of warning ().
11389
11390 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11391
11392 * configure.in: Check that -pg works if using --enable-profiling.
11393 Check for monstartup and _mcleanup regardless of --enable-profiling.
11394 * maint.c: Check for monstartup and _mcleanup before using them.
11395 * config.in: Regenerated.
11396 * configure: Regenerated.
11397
11398 2003-01-24 Nick Clifton <nickc@redhat.com>
11399
11400 * Add sh2e support:
11401
11402 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11403
11404 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11405 (sh2e_show_regs): New.
11406 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11407 * config/sh/tm-sh.h: Added sh2e to comments.
11408
11409 2003-01-23 Jim Blandy <jimb@redhat.com>
11410
11411 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11412 symbols found)" message here; we haven't checked for a separate
11413 debug info file yet, so we don't know yet.
11414 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11415 we've looked everywhere. Also, there's no need to print a special
11416 message when we're loading the separate debug info file: the one
11417 symbol_file_add prints is fine.
11418
11419 2003-01-23 Alexander Larsson <alexl@redhat.com>
11420 Jim Blandy <jimb@redhat.com>
11421
11422 Add support for executables whose debug info has been separated
11423 out into a separate file, leaving only a link behind.
11424 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11425 and separate_debug_objfile_backlink.
11426 (put_objfile_before): New declaration.
11427 * symfile.c: #include "filenames.h".
11428 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11429 debug info in a separate file, read that, too. Save the addrs
11430 argument, so we can use it again to read the separated debug info;
11431 syms_from_objfile modifies the table we pass it.
11432 (reread_symbols): After re-reading an objfile, call
11433 reread_separate_symbols to refresh its separate debug info
11434 objfile, if it has one.
11435 (reread_separate_symbols, find_separate_debug_file,
11436 get_debug_link_info, separate_debug_file_exists): New functions.
11437 (debug_file_directory): New global var.
11438 (_initialize_symfile): Initialize debug_file_directory, and
11439 provide the new `set debug-file-directory' command to let the user
11440 change it.
11441 * objfiles.c (free_objfile): If this objfile has its debug info in
11442 a separate objfile, free that one too. If this is itself a
11443 separate debug info objfile, clear our parent's backlink.
11444 (put_objfile_before): New function.
11445 * utils.c (gnu_debuglink_crc32): New function.
11446 * defs.h (gnu_debuglink_crc32): New declaration.
11447 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11448 * configure.in: Handle --with-separate-debug-dir config option.
11449 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11450 * acconfig.h (DEBUGDIR): New macro.
11451 * configure, aclocal.m4, config.in: Regenerated.
11452
11453 2003-01-22 Jim Blandy <jimb@redhat.com>
11454
11455 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11456 like the old symbol_file_add, but taking new arguments: you can
11457 now pass in either a `struct section_addr_info' list to say where
11458 each section is loaded, or a `struct section_offsets' table. Pass
11459 these new arguments through to syms_from_objfile as appropriate.
11460 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11461 with the appropriate quiescent values for the new arguments.
11462
11463 * symfile.c: #include "gdb_assert.h".
11464 (syms_from_objfile): Add the ability to pass in a section offset
11465 table directly, as an alternative to the section_addr_info table.
11466 Document arguments better.
11467 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11468 * symfile.h (syms_from_objfile): Update declaration.
11469 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11470 syms_from_objfile.
11471 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11472
11473 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11474
11475 Original patch by Tom Tromey <tromey@cygnus.com> and
11476 Jason Molenda <jmolenda@apple.com>.
11477 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11478 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11479 * NEWS: Mention profiling.
11480 * configure.in (--enable-gdbtk): Fix typo.
11481 (--enable-profiling): New. Set PROFILE_CFLAGS.
11482 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11483 Fill in function.
11484 (profiling_state): New variable.
11485 (mcleanup_wrapper): New function.
11486 (_initialize_maint): Remove NOTYET, fix call to
11487 add_setshow_boolean_cmd for "maint set profile".
11488 * configure: Regenerated.
11489
11490 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11491
11492 * Makefile.in (install-gdbtk): Install PNG images too.
11493
11494 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11495
11496 * exec.c (text_start): Delete global variable.
11497 (exec_file_attach): Make text_start local to the function.
11498 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11499 * valops.c (hand_function_call): Delete code that handles
11500 BEFORE_TEXT_END and AFTER_TEXT_END.
11501 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11502 of CALL_DUMMY_LOCATION.
11503 * gdbarch.c: Regenerate.
11504 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11505 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11506 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11507 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11508 (text_end): Delete extern declaration.
11509
11510 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11511
11512 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11513 * blockframe.c (backtrace_below_main): Move to "frame.c".
11514 (frame_chain_valid): Delete check for backtrace_below_main.
11515 (_initialize_blockframe): Delete initialization, move ``set
11516 backtrace-below-main'' command to "frame.c".
11517 (do_flush_frames_sfunc): Delete function.
11518 * frame.c: Include "command.h" and "gdbcmd.h".
11519 (frame_type_from_pc): New function.
11520 (create_new_frame): Use frame_type_from_pc.
11521 (legacy_get_prev_frame): New function.
11522 (get_prev_frame): Rewrite. When an old style frame, call
11523 legacy_get_prev_frame. Otherwize, unwind the PC first.
11524 (_initialize_frame): Add ``set backtrace-below-main'' command.
11525 * Makefile.in (frame.o): Update dependencies.
11526
11527 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11528
11529 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11530 DEPRECATED_REGISTERS_INFO.
11531
11532 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11533
11534 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11535 Maintainers'. Update `Various Maintainers'.
11536
11537 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11538
11539 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11540 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11541 Suppress actual parameters when `-'.
11542 * gdbarch.h, gdbarch.c: Regenerate.
11543
11544 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11545
11546 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11547 code handling dummy frames.
11548
11549 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11550
11551 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11552 (struct frame_unwind): Add field pop.
11553 * frame.h (frame_pop): Declare.
11554 * frame.c (frame_saved_regs_pop): New function.
11555 (trad_frame_unwinder): Add frame_saved_regs_pop.
11556 (frame_pop): New function.
11557 * dummy-frame.c (dummy_frame_pop): New function.
11558 (discard_innermost_dummy): New function.
11559 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11560 (dummy_frame_unwind): Add dummy_frame_pop.
11561 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11562 * valops.c (hand_function_call): Ditto.
11563 * stack.c (return_command): Ditto.
11564
11565 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11566
11567 * cris-tdep.c: Fix function declaration indentation.
11568 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11569 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11570 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11571 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11572 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11573 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11574
11575 2003-01-18 Michael Chastain <mec@shout.net>
11576
11577 * README (Unpacking and Installation -- quick overview):
11578 Warn against ".../gdb-5.3/gdb/configure".
11579
11580 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11581
11582 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11583 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11584 (struct frame_unwind): Declare opaque.
11585 (dummy_frame_p): Declare function.
11586 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11587 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11588 * dummy-frame.c: Include "frame-unwind.h".
11589 (dummy_frame_p): New function.
11590 (dummy_frame_unwind): New variable.
11591 * frame.c: Include "frame-unwind.h".
11592 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11593 to use the new unwind field.
11594 (set_unwind_by_pc): Delete function.
11595 (create_new_frame, get_prev_frame): Set unwind field using
11596 frame_unwind_find_by_pc.
11597 (trad_frame_unwind, trad_frame_unwinder): New variables.
11598 * frame.h (trad_frame_unwind): Declare variable.
11599 (frame_id_unwind_ftype): Delete declaration.
11600 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11601 (struct frame_unwind): Declare opaque.
11602 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11603 register_unwind with a single unwind pointer.
11604 * frame-unwind.h, frame-unwind.c: New files.
11605 * Makefile.in (SFILES): Add frame-unwind.c.
11606 (frame_unwind_h): Define.
11607 (COMMON_OBS): Add frame-unwind.o.
11608 (frame-unwind.o): Specify dependencies.
11609 (frame.o, dummy-frame.o): Update dependencies.
11610
11611 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11612
11613 * ada-valprint.c: Eliminate PTR.
11614 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11615 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11616 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11617 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11618 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11619 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11620 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11621
11622 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11623
11624 * main.c (captured_main): Don't use PTR.
11625 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11626 * gdbtypes.c (lookup_primitive_typename): Ditto.
11627 (lookup_struct_elt_type): Ditto.
11628 * f-valprint.c (info_common_command): Ditto.
11629 (list_all_visible_commons): Ditto.
11630 * jv-typeprint.c (java_type_print_base): Ditto.
11631
11632 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11633 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11634 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11635 i386-interix-nat.c and i386-interix-tdep.c. Rename
11636 m68klinux-nat.c and m68klinux-tdep.c. Rename
11637 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11638 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11639 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11640 * main.c (captured_main): Use xfree, not free.
11641
11642 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11643
11644 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11645 ID back using a parameter.
11646 * frame.c (frame_id_unwind): Update call.
11647 (frame_saved_regs_id_unwind): Update.
11648 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11649 * dummy-frame.h (struct frame_id): Add opaque declaration.
11650 (dummy_frame_id_unwind): Update declaration.
11651
11652 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11653
11654 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11655
11656 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11657
11658 * MAINTAINERS (Stephen P. Smith): Updated email address.
11659
11660 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11661
11662 Fix PR gdb/898
11663 * breakpoint.c (until_break_command): Add new argument. Use it to
11664 decide whether to stop only at the current frame or not.
11665 * breakpoint.h (until_break_command): Update prototype.
11666 * infcmd.c (until_command): Add new argument to until_break_command
11667 call.
11668 (advance_command): New function.
11669 (_initialize_infcmd): Update help string for 'until' command.
11670 Add new 'advance' command.
11671
11672 2003-01-14 David Carlton <carlton@math.stanford.edu>
11673
11674 * linespec.c (decode_line_1): Normalize comments.
11675 (set_flags): Ditto.
11676 (locate_first_half): Ditto.
11677 (decode_compound): Ditto.
11678 (symtab_from_filename): Ditto.
11679 (decode_all_digits): Ditto.
11680 (decode_dollar): Ditto.
11681 (find_methods): Ditto.
11682 (find_toplevel_char): Ditto.
11683
11684 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11685
11686 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11687 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11688 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11689 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11690 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11691 * language.c, language.h, m32r-tdep.c: Update copyright.
11692 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11693 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11694 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11695 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11696 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11697 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11698
11699 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11700
11701 * stabsread.h (process_later, resolve_cfront_continuation):
11702 Obsolete.
11703 Update copyright years.
11704 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11705 Update copyright year.
11706 * dbxread.c(struct cont_elem): Obsolete.
11707 (process_later, process_now): Obsolete functions.
11708 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11709 Update copyright year.
11710 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11711 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11712 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11713 (parse_partial_symbols): Obsolete cfront support.
11714 * stabsread.c
11715 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11716 macros.
11717 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11718 read_cfront_baseclasses, read_cfront_member_functions,
11719 resolve_cfront_continuation,read_cfront_static_fields,
11720 copy_cfront_struct_fields): Obsolete functions.
11721 (define_symbol, read_one_struct_field): Obsolete cfront support.
11722 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11723 Update Copyright year.
11724
11725 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11726
11727 * stack.c (print_frame_info, print_stack_frame_base_stub,
11728 print_stack_frame_base, show_and_print_stack_frame_stub,
11729 show_and_print_stack_frame, print_only_stack_frame_stub,
11730 print_only_stack_frame): Delete functions.
11731 (print_stack_frame_stub): Call print_frame_info instead of
11732 print_frame_info_base.
11733 (print_frame_info_base): Rename to print_frame_info.
11734 (backtrace_command_1): Call print_frame_info, instead of
11735 print_frame_info_base.
11736 (current_frame_command): Call print_stack_frame, instead of
11737 print_only_stack_frame.
11738 (frame_command): Call print_stack_frame, instead of
11739 show_and_print_stack_frame.
11740 (up_command): Ditto.
11741 (down_command): Ditto.
11742 * frame.h (print_only_stack_frame): Delete prototype.
11743 * infrun.c (normal_stop): Call print_stack_frame, instead of
11744 show_and_print_stack_frame.
11745 * thread.c (info_threads_command): Call print_stack_frame, instead
11746 of print_only_stack_frame.
11747
11748 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11749
11750 * README (Graphical interface to GDB): Update URL. Point at
11751 gdb/links/.
11752
11753 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11754 version match.
11755
11756 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11757
11758 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11759 lines.
11760
11761 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11762
11763 * thread-db.c (attach_thread): Prototype.
11764 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11765 thread information (ti), and valid flags (th_valid, ti_valid).
11766 (attach_thread): Move target_pid_to_str call to after the thread
11767 is added to GDB's list. Initialize the cache.
11768 (thread_get_info_callback, thread_db_map_id2thr)
11769 (thread_db_get_info): New functions.
11770 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11771 (thread_db_store_registers, thread_db_thread_alive)
11772 (thread_db_get_thread_local_address): Use them.
11773 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11774 of calling error() for threads in unknown state.
11775
11776 (clear_lwpid_callback): New function.
11777 (thread_db_resume): Use it to clear the cache.
11778
11779 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11780
11781 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11782 (resume_callback): Remove dead code.
11783
11784 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11785
11786 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11787 predicate.
11788 * gdbarch.h, gdbarch.c: Regenerate.
11789 * stack.c (frame_info): Only initialize the saved registers when
11790 FRAME_INIT_SAVED_REGS_P.
11791 * frame.c (frame_saved_regs_register_unwind): Assert
11792 FRAME_INIT_SAVED_REGS_P.
11793 (deprecated_generic_get_saved_register): Ditto.
11794
11795 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11796
11797 * source.c (openp): Squelch warning about "filename".
11798
11799 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11800
11801 * source.c (openp): If the file does not exist don't necessarily
11802 search the path.
11803
11804 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11805
11806 Fix PR gdb/872.
11807 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11808 (integer_types_same_name_p): New function.
11809 (rank_one_type): Use it.
11810 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11811
11812 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11813
11814 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11815 variables.
11816 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11817 * configure.in: Add --with-sysroot.
11818 * configure: Regenerated.
11819 * main.c (gdb_sysroot): New variable.
11820 (captured_main): Initialize gdb_sysroot.
11821 * defs.h (gdb_sysroot): New extern declaration.
11822 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11823
11824 2003-01-12 Michael Chastain <mec@shout.net>
11825
11826 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11827
11828 2003-01-12 Michael Chastain <mec@shout.net>
11829
11830 * top.c (print_gdb_version): Bump copyright year to 2003.
11831
11832 2003-01-12 David Carlton <carlton@bactrian.org>
11833
11834 * linespec.c (symtab_from_filename): Rename variable 's' to
11835 'file_symtab'.
11836
11837 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11838
11839 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11840 dummy frame.
11841 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11842
11843 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11844
11845 * d10v-tdep.c: Include "gdb_assert.h".
11846 (d10v_store_return_value): Rewrite to match current interface.
11847 (d10v_extract_struct_value_address): Ditto.
11848 (d10v_extract_return_value): Ditto.
11849 (d10v_gdbarch_init): Set store_restore_value,
11850 extract_struct_value_address and extract_return_value.
11851
11852 2003-01-12 J. Brobecker <brobecker@gnat.com>
11853
11854 * hpread.c (set_namestring): New procedure replacing the
11855 SET_NAMESTRING macro.
11856 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11857 by calls to set_namestring.
11858
11859 2003-01-11 J. Brobecker <brobecker@gnat.com>
11860
11861 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11862 a compilation warning.
11863 (hpread_process_one_debug_symbol): Likewise.
11864
11865 2003-01-10 David Carlton <carlton@math.stanford.edu>
11866
11867 * linespec.c (decode_line_1): Rename variable 's' to
11868 'file_symtab'.
11869 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11870 (decode_dollar): Ditto.
11871 (decode_variable): Ditto.
11872 (symbol_found): Ditto.
11873
11874 2003-01-09 Michael Chastain <mec@shout.net>
11875
11876 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11877
11878 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11879
11880 * win32-nat.c (set_process_privilege): New function.
11881 (child_attach): Call set_process_privilege() to enable the
11882 SE_DEBUG_NAME user privilege if available in process token.
11883
11884 2003-01-10 J. Brobecker <brobecker@gnat.com>
11885
11886 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11887 compilation error in the previous revision.
11888
11889 2003-01-09 David Carlton <carlton@math.stanford.edu>
11890
11891 * linespec.c: Update copyright.
11892
11893 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11894
11895 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11896 than inferior_ptid.
11897 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11898
11899 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11900
11901 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11902 Update comments.
11903 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11904 (frame_saved_regs_zalloc): Update.
11905 (frame_saved_regs_register_unwind): Update.
11906 (create_new_frame): Update.
11907 (get_prev_frame): Update.
11908 (frame_extra_info_zalloc): Update.
11909 (deprecated_get_frame_saved_regs): Update.
11910 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11911 * cris-tdep.c: Update comment.
11912
11913 * somsolib.h: Fix function indentation.
11914 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11915 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11916 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11917 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11918 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11919
11920 * infrun.c (follow_fork): Use ISO C definition.
11921 * expprint.c (print_subexp): Use xfree instead of free.
11922 * charset.c: Include "gdb_string.h" instead of <string.h>.
11923 (register_iconv_charsets): Use ISO C definition.
11924 (host_charset, target_charset): Ditto.
11925 * Makefile.in (charset.o): Update dependencies.
11926 (mi-cmd-env.o): Update dependencies.
11927
11928 2003-01-08 Andrew Cagney <cagney@redhat.com>
11929
11930 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11931 get_frame_base.
11932
11933 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11934
11935 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11936 build directories. Save edited gdb output in Mbuild.log. If a
11937 build fails, remove any final GDB executable.
11938
11939 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11940
11941 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11942 replacing hex constants with function names and stripping leading
11943 file name directory prefixes.
11944
11945 2003-01-08 Andrew Cagney <cagney@redhat.com>
11946
11947 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11948 get_frame_base.
11949
11950 2003-01-08 David Carlton <carlton@math.stanford.edu>
11951
11952 * linespec.c (decode_line_1): Move code into decode_variable.
11953 (decode_variable): New function.
11954
11955 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11956
11957 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11958
11959 2003-01-08 Andrew Cagney <cagney@redhat.com>
11960
11961 * cris-tdep.c (cris_frame_init_saved_regs): Use
11962 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11963 saved_regs buffer.
11964 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11965 (sh64_nofp_frame_init_saved_regs): Ditto.
11966 (sh_fp_frame_init_saved_regs): Ditto.
11967 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11968 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11969 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11970 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11971
11972 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11973
11974 * minsyms.c (lookup_minimal_symbol): Update comment.
11975 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11976 (lookup_minimal_symbol_solib_trampoline): Likewise.
11977
11978 2003-01-08 Andrew Cagney <cagney@redhat.com>
11979
11980 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11981 frame_relative_level.
11982
11983 * alpha-tdep.c: Use get_frame_extra_info.
11984 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11985 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11986 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11987 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11988
11989 * alpha-tdep.c: Use get_next_frame.
11990 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11991 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11992 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11993 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11994 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11995 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11996 * xstormy16-tdep.c: Ditto.
11997
11998 2003-01-07 Andrew Cagney <cagney@redhat.com>
11999
12000 * alpha-tdep.c: Use get_frame_base.
12001 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12002 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12003 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12004 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12005 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12006 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12007 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12008 * config/sparc/tm-sparc.h: Ditto.
12009
12010 2003-01-07 Andrew Cagney <cagney@redhat.com>
12011
12012 * frame.c (deprecated_get_frame_context): New function.
12013 (deprecated_set_frame_context): New function.
12014 * frame.h (deprecated_get_frame_context): Declare.
12015 (deprecated_set_frame_context): Declare.
12016 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12017 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12018
12019 2003-01-07 Andrew Cagney <cagney@redhat.com>
12020
12021 * frame.c (deprecated_set_frame_next_hack): New function.
12022 (deprecated_set_frame_prev_hack): New function.
12023 * frame.h (deprecated_set_frame_next_hack): Declare.
12024 (deprecated_set_frame_prev_hack): Declare.
12025 * mcore-tdep.c (analyze_dummy_frame): Use
12026 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12027 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12028
12029 2003-01-07 David Carlton <carlton@math.stanford.edu>
12030
12031 * linespec.c (decode_line_1): Move code into decode_dollar.
12032 (decode_dollar): New function.
12033
12034 2003-01-07 Andrew Cagney <cagney@redhat.com>
12035
12036 * arm-tdep.c (arm_init_extra_frame_info): Use
12037 deprecated_update_frame_base_hack.
12038 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12039 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12040 (fix_frame_pointer): Ditto.
12041 (mn10300_analyze_prologue): Ditto.
12042
12043 2003-01-07 Andrew Cagney <cagney@redhat.com>
12044
12045 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12046 extra_info using frame_extra_info_zalloc.
12047 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12048 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12049 (sh64_init_extra_frame_info): Ditto.
12050 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12051 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12052 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12053 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12054 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12055 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12056 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12057 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12058 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12059 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12060 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12061 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12062
12063 * mn10300-tdep.c (analyze_dummy_frame): Use
12064 deprecated_set_frame_extra_info_hack.
12065 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12066
12067 2003-01-07 J. Brobecker <brobecker@gnat.com>
12068
12069 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12070 class is not scText. These do not define "real" procedures.
12071 (parse_partial_symbols): Likewise.
12072
12073 2003-01-06 Michael Snyder <msnyder@redhat.com>
12074
12075 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12076
12077 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12078
12079 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12080 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12081 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12082 deprecated_frame_xmalloc_with_cleanup.
12083 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12084 deprecated_frame_xmalloc.
12085 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12086 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12087
12088 2003-01-06 Andrew Cagney <cagney@redhat.com>
12089
12090 * x86-64-linux-tdep.c: Include "osabi.h".
12091 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12092
12093 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12094
12095 2003-01-06 Andrew Cagney <cagney@redhat.com>
12096
12097 * MAINTAINERS (Target Instruction Set Architectures): Update
12098 arm-elf. Can be built with -Werror, has been multiarched.
12099
12100 * value.h (unpack_long): Make buffer parameter constant.
12101 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12102 * scm-lang.h (scm_parse): Ditto.
12103 * defs.h (extract_typed_address, extract_address): Ditto.
12104 (extract_long_unsigned_integer): Ditto.
12105 * inferior.h (unsigned_pointer_to_address): Ditto.
12106 (signed_pointer_to_address): Ditto.
12107 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12108 * gdbarch.h, gdbarch.c: Regenerate.
12109 * findvar.c (extract_long_unsigned_integer): Update.
12110 (extract_address): Update.
12111 (extract_typed_address): Update.
12112 (unsigned_pointer_to_address): Update.
12113 * values.c (unpack_long): Update.
12114 (unpack_double): Update.
12115 (unpack_pointer): Update.
12116 (unpack_field_as_long): Update.
12117 * d10v-tdep.c (d10v_pointer_to_address): Update.
12118 * avr-tdep.c (avr_pointer_to_address): Update.
12119 * scm-lang.c (scm_unpack): Update.
12120 * findvar.c (signed_pointer_to_address): Update.
12121
12122 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12123
12124 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12125 since it is in i386-tdep.c.
12126
12127 2003-01-06 J. Brobecker <brobecker@gnat.com>
12128
12129 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12130 failure introduced in the previous change.
12131
12132 2003-01-05 Michael Chastain <mec@shout.net>
12133
12134 * README: Remove references to deleted remote-*.c files:
12135 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12136 remote-nrom.c, remote-os9k.c, remote-udi.c.
12137
12138 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12139
12140 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12141 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12142 i386_get_longjmp_target.
12143
12144 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12145
12146 * arm-tdep.c (prologue_cache): Change to a pointer.
12147 (_initialize_arm_tdep): Allocate prologue_cache.
12148 (check_prologue_cache): Update.
12149 (save_prologue_cache): Update.
12150 (arm_gdbarch_init): Update.
12151
12152 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12153
12154 * stabsread.c (update_method_name_from_physname): Call complaint()
12155 instead of error.
12156
12157 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12158
12159 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12160 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12161 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12162
12163 * blockframe.c: Include "gdbcmd.h" and "command.h".
12164 (backtrace_below_main): New variable.
12165 (file_frame_chain_valid, func_frame_chain_valid)
12166 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12167 (generic_func_frame_chain_valid): Remove functions.
12168 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12169 (_initialize_blockframe): New function.
12170 * Makefile.in (blockframe.o): Update dependencies.
12171 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12172 comment. Call frame_chain_valid ().
12173 * frame.h: Remove old prototypes. Add prototype for
12174 frame_chain_valid and update comments to match.
12175 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12176 Remove old comment.
12177 * gdbarch.h: Regenerated.
12178 * gdbarch.c: Regenerated.
12179
12180 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12181 set_gdbarch_frame_chain_valid.
12182 * avr-tdep.c (avr_gdbarch_init): Likewise.
12183 * cris-tdep.c (cris_gdbarch_init): Likewise.
12184 * frv-tdep.c (frv_gdbarch_init): Likewise.
12185 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12186 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12187 (i386_nw_init_abi): Likewise.
12188 (i386_gdbarch_init): Likewise.
12189 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12191 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12192 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12193 * mips-tdep.c (mips_gdbarch_init): Likewise.
12194 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12195 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12196 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12197 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12198 * s390-tdep.c (s390_gdbarch_init): Likewise.
12199 * sh-tdep.c (sh_gdbarch_init): Likewise.
12200 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12201 * v850-tdep.c (v850_gdbarch_init): Likewise.
12202 * vax-tdep.c (vax_gdbarch_init): Likewise.
12203 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12204
12205 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12206 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12207 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12208 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12209 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12210 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12211 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12212 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12213
12214 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12215
12216 * Makefile.in (acconfig_h): Remove incorrect macro.
12217 (config_h): Define.
12218 (osabi.o): Update dependencies.
12219 * configure.tgt: Set gdb_osabi based on target triplet.
12220 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12221 * configure: Regenerated.
12222 * config.in: Regenerated.
12223 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12224 (GDB_OSABI_DEFAULT): Define if not already defined.
12225 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12226 (set_osabi_string): New variables.
12227 (gdbarch_register_osabi): Add new OS ABI to
12228 gdb_osabi_available_names.
12229 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12230 (set_osabi, show_osabi): New functions.
12231 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12232
12233 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12234
12235 * arch-utils.c (gdbarch_info_init): Set osabi to
12236 GDB_OSABI_UNINITIALIZED.
12237 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12238 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12239 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12240 * gdbarch.c: Regenerated.
12241 * gdbarch.h: Regenerated.
12242 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12243 there's no BFD.
12244 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12245 * osabi.h (enum gdb_osabi): Move to defs.h.
12246 (gdbarch_init_osabi): Update prototype.
12247 * defs.h (enum gdb_osabi): Moved here.
12248 * Makefile.in: Update dependencies.
12249
12250 * alpha-tdep.h: Don't include "osabi.h".
12251 (struct gdbarch_tdep): Remove osabi member.
12252 * alpha-tdep.c: Include "osabi.h".
12253 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12254 iterate over arches. Update call to gdbarch_init_osabi.
12255 (alpha_dump_tdep): Don't dump osabi.
12256 * alpha-linux-tdep.c: Include "osabi.h".
12257 * alpha-osf1-tdep.c: Include "osabi.h".
12258 * alphafbsd-tdep.c: Include "osabi.h".
12259 * alphanbsd-tdep.c: Include "osabi.h".
12260
12261 * arm-tdep.h: Don't include "osabi.h".
12262 (struct gdbarch_tdep): Remove osabi member.
12263 * arm-tdep.c: Include "osabi.h".
12264 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12265 iterate over arches. Update call to gdbarch_init_osabi.
12266 (arm_dump_tdep): Don't dump osabi.
12267 * arm-linux-tdep.c: Include "osabi.h".
12268 * armnbsd-tdep.c: Include "osabi.h".
12269
12270 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12271 Update call to gdbarch_init_osabi.
12272
12273 * i386-tdep.h: Don't include "osabi.h".
12274 (struct gdbarch_tdep): Remove osabi member.
12275 * i386-tdep.c: Include "osabi.h".
12276 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12277 iterate over arches. Update call to gdbarch_init_osabi.
12278 (i386_dump_tdep): Don't dump osabi.
12279 * i386-linux-tdep.c: Include "osabi.h".
12280 * i386-sol2-tdep.c: Include "osabi.h".
12281 * i386bsd-tdep.c: Include "osabi.h".
12282 * i386gnu-tdep.c: Include "osabi.h".
12283 * i386ly-tdep.c: Include "osabi.h".
12284 * i386nbsd-tdep.c: Include "osabi.h".
12285 * i386obsd-tdep.c: Include "osabi.h".
12286
12287 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12288 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12289 check osabi when iterating over arches. Update call to
12290 gdbarch_init_osabi.
12291 (mips_dump_tdep): Don't dump osabi.
12292
12293 * ns32k-tdep.h: Don't include "osabi.h".
12294 (struct gdbarch_tdep): Remove.
12295 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12296 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12297 allocate tdep. Update call to gdbarch_init_osabi.
12298 (ns32k_dump_tdep): Remove.
12299 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12300 * ns32knbsd-tdep.c: Include "osabi.h".
12301
12302 * ppc-tdep.h: Don't include "osabi.h".
12303 (struct gdbarch_tdep): Remove osabi member.
12304 * rs6000-tdep.c: Include "osabi.h".
12305 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12306 osabi when iterating over arches. Update call to
12307 gdbarch_init_osabi.
12308 (rs6000_dump_tdep): Don't dump osabi.
12309 * ppc-linux-tdep.c: Include "osabi.h".
12310 * ppcnbsd-tdep.c: Include "osabi.h".
12311
12312 * sh-tdep.h: Don't include "osabi.h".
12313 (struct gdbarch_tdep): Remove osabi member.
12314 * sh-tdep.c: Include "osabi.h".
12315 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12316 iterate over arches. Update call to gdbarch_init_osabi.
12317 (sh_dump_tdep): Don't dump osabi.
12318 * shnbsd-tdep.c: Include "osabi.h".
12319
12320 * sparc-tdep.c: Include "osabi.h".
12321 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12322 iterate over arches. Update call to gdbarch_init_osabi.
12323 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12324 tdep structure.
12325
12326 * vax-tdep.h: Don't include "osabi.h".
12327 (struct gdbarch_tdep): Remove.
12328 * vax-tdep.c: Include "osabi.h".
12329 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12330 iterate over arches. Don't allocate tdep. Update call
12331 to gdbarch_init_osabi.
12332 (vax_dump_tdep): Remove.
12333 (_initialize_vax_tdep): Update call to gdbarch_register.
12334
12335 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12336
12337 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12338 entirely.
12339 (breakpoint_re_set_one): Don't fetch the value for a disabled
12340 watchpoint.
12341
12342 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12343
12344 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12345 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12346 (COERCE_FLOAT_TO_DOUBLE): Remove.
12347 * gdbarch.c: Regenerate.
12348 * gdbarch.h: Regenerate.
12349 * Makefile.in: Remove value_h from gdbarch_h.
12350 * valops.c (coerce_float_to_double): New variable.
12351 (default_coerce_float_to_double): Remove.
12352 (standard_coerce_float_to_double): Remove.
12353 (value_arg_coerce): Use coerce_float_to_double.
12354 (_initialize_valops): Add "set coerce-float-to-double".
12355 * value.h (default_coerce_float_to_double): Remove prototype.
12356 (standard_coerce_float_to_double): Remove prototype.
12357
12358 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12359 prototyped.
12360 * mdebugread.c (parse_symbol): Likewise.
12361 * stabsread.c (define_symbol): Mark all functions as prototyped.
12362
12363 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12364 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12365 set_gdbarch_coerce_float_to_double.
12366 * arm-tdep.c (arm_gdbarch_init): Likewise.
12367 * frv-tdep.c (frv_gdbarch_init): Likewise.
12368 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12369 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12370 * mips-tdep.c (mips_gdbarch_init): Likewise.
12371 (mips_coerce_float_to_double): Remove.
12372 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12373 (rs6000_coerce_float_to_double): Remove.
12374 * s390-tdep.c (s390_gdbarch_init): Likewise.
12375 * sh-tdep.c (sh_gdbarch_init): Likewise.
12376 (sh_coerce_float_to_double): Remove.
12377 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12378 (sparc_coerce_float_to_double): Remove.
12379 * v850-tdep.c (v850_gdbarch_init): Likewise.
12380 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12381 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12382 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12383 (hppa_coerce_float_to_double): Remove prototype.
12384 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12385
12386 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12387
12388 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12389
12390 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12391
12392 Suggested by Stewart Brown <sb24@avaya.com>:
12393 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12394 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12395 (c_type_print_varspec_suffix): Likewise.
12396
12397 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12398
12399 * configure.in: Don't set and AC_SUBST SUBDIRS.
12400 * configure: Regenerated.
12401
12402 * configure.in: Remove code dealing with shared libraries.
12403 * Makefile.in: Remove HLDFLAGS and HLDENV.
12404 * configure: Regenerated.
12405
12406 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12407
12408 * frame.c (deprecated_frame_xmalloc): New function.
12409 (deprecated_set_frame_saved_regs_hack): New function.
12410 (deprecated_set_frame_extra_info_hack): New function.
12411 * frame.h (deprecated_frame_xmalloc): Declare.
12412 (deprecated_set_frame_saved_regs_hack): Declare.
12413 (deprecated_set_frame_extra_info_hack): Declare.
12414
12415 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12416
12417 * configure.in: Move code that provides the --enable-gdbtk option
12418 right after the code that handles the --enable-tui option, and
12419 polish it somewhat.
12420 * configure: Regenerated.
12421
12422 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12423 AC_CHECK_FUNCS and remove the old check for pread64.
12424 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12425 * acconfig.h (_GNU_SOURCE): Add.
12426 (HAVE_PREAD64): Remove.
12427 * configure, aclocal.m4, config.in: Regenerated.
12428
12429 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12430
12431 * alpha-tdep.c: Use get_frame_saved_regs.
12432 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12433 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12434 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12435 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12436 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12437
12438 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12439
12440 * configure.in: Remove all use of the SUBDIRS variable; add
12441 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12442 code providing the --enable-multi-ice option, and move it right in
12443 front of the code that checks whether gdbserver is supported.
12444 Polish that too.
12445 * configure: Regenerated.
12446 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12447 @SUBDIRS@.
12448
12449 2003-01-03 Andrew Cagney <cagney@redhat.com>
12450
12451 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12452 * avr-tdep.c, cris-tdep.c: Ditto.
12453 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12454 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12455
12456 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12457
12458 * configure.in: Remove --enable-netrom option.
12459 * configure: Regenerated.
12460
12461 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12462
12463 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12464 declaration for `struct re_pattern_buffer' instead.
12465 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12466
12467 2003-01-03 J. Brobecker <brobecker@gnat.com>
12468
12469 * mdebugread.c (parse_symbol): Count until the stEnd matching
12470 the structure name.
12471
12472 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12473
12474 * configure.in: Remove --with-cpu option.
12475 subscripts. Remove evil changequotes here.
12476 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12477 * config.in, configure: Regenerated.
12478
12479 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12480 * configure.in: Cleanup section that sources GDB and BFD configure
12481 subscripts. Remove evil changequotes here.
12482 * config.in, configure: Regenerated.
12483
12484 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12485
12486 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12487 frame accessor methods.
12488 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12489 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12490 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12491 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12492 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12493 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12494 * z8k-tdep.c: Ditto.
12495
12496 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12497
12498 * configure.in: Remove UI_OUT configuration code.
12499 * ada-lang.c: Update assuming UI_OUT is always true.
12500 * Makefile.in (UIOUT_CFLAGS): Remove.
12501 * configure: Regenerated.
12502 * TODO: Remove blurb about elimination of -DUI_OUT.
12503
12504 * configure.in: Move code that provides the --enable-gdbcli,
12505 --enable-gdbmi options right before the code that handles the
12506 --enable-tui option. Polish a bit.
12507 * configure: Regenerated.
12508
12509 * configure.in: Rewrite check for GNU regex and the
12510 --without-included regex option, and move it into the "Checks for
12511 library functions" section. This makes us use the system regex
12512 again by default on systems with version 2 of the GNU C library.
12513 This was apparently broken.
12514 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12515 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12516 * config.in, configure: Regenerated.
12517
12518 * configure.in: Move code that provides the --enable-tui option
12519 before the "Checks for libraries" section. Polish the code
12520 somewhat and set need_curses to yes if we build the TUI. Rewrite
12521 code that looks for a library providing termcap functionality to
12522 match more closely what's done in the Readline library, and move
12523 it into to the "Checks for libraries" section.
12524 * configure: Regenerated.
12525 * Makefile.in (TERMCAP): Remove variable.
12526 * config/i386/go32.mh (TERMCAP): Remove variable.
12527
12528 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12529
12530 * MAINTAINERS: Mention gdb_mbuild.sh.
12531 * gdb_mbuild.sh: Rewrite.
12532
12533 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12534
12535 * configure.in: Fix typo in last change.
12536 * config.in, configure: Regenerated.
12537
12538 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12539
12540 * valarith.c (value_binop): Delete obsolete code and comments.
12541 * configure.host: Ditto.
12542 * buildsym.h (make_blockvector): Ditto.
12543 * buildsym.c (make_blockvector): Ditto.
12544 * defs.h (enum language): Ditto.
12545 (chill_demangle): Ditto.
12546 * elfread.c (elf_symtab_read): Ditto.
12547 * dwarfread.c (CHILL_PRODUCER): Ditto.
12548 (set_cu_language): Ditto.
12549 (handle_producer): Ditto.
12550 * expprint.c (print_subexp): Ditto.
12551 * gdbtypes.c (chill_varying_type): Ditto.
12552 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12553 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12554 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12555 (chill_varying_type): Ditto.
12556 * language.h (_LANG_chill): Ditto.
12557 * language.c (binop_result_type, integral_type): Ditto.
12558 (character_type, string_type, structured_type): Ditto.
12559 (lang_bool_type, binop_type_check): Ditto.
12560 * stabsread.h (os9k_stabs): Ditto.
12561 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12562 (define_symbol, read_type, read_struct_fields): Ditto.
12563 (read_array_type, read_enum_type, read_huge_number): Ditto.
12564 (read_range_type, start_stabs): Ditto.
12565 * symfile.c (init_filename_language_table): Ditto.
12566 (add_psymbol_with_dem_name_to_list): Ditto.
12567 * symtab.c (symbol_init_language_specific): Ditto.
12568 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12569 * symtab.h (struct general_symbol_info): Ditto.
12570 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12571 * typeprint.c (typedef_print): Ditto.
12572 * utils.c (fprintf_symbol_filtered): Ditto.
12573 * valops.c (value_cast, search_struct_field, value_slice): Delete
12574 obsolete code.
12575 (varying_to_slice): Delete function.
12576 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12577 (varying_to_slice): Delete declaration.
12578 * MAINTAINERS: Update.
12579
12580 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12581
12582 * configure.in: Reorganize "Checks for library functions section"
12583 a bit. Remove check for `btowc' and `isascii' functions.
12584 * configure: Regenerated.
12585
12586 * acconfig.h (_MSE_INT_H): Remove.
12587 * configure.in: Create "Checks for header files" section, and move
12588 appropriate tests there. Don't check for objlist.h, wchar.h,
12589 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12590 misdetection fix. Also add "Checks for types", "Checks for
12591 compiler characteristics" and "Checks for library functions"
12592 sections.
12593 * config.in, configure: Regenerated.
12594
12595 * configure.in: Create "Checks for programs" section, and move
12596 appropriate tests there.
12597
12598 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12599
12600 * configure.in: Create "Checks for libraries" section, and move
12601 appropriate tests there. Cleanup check for wctype in libw. Use
12602 AC_SEARCH_LIBS to see whether we need libsocket.
12603 * configure: Regenerated.
12604
12605 For older changes see ChangeLog-2002
12606 \f
12607 Local Variables:
12608 mode: change-log
12609 left-margin: 8
12610 fill-column: 74
12611 version-control: never
12612 End: