* x86-64-tdep.c (x86_64_store_return_value): Remove spurious
[binutils-gdb.git] / gdb / ChangeLog
1 2003-09-27 Mark Kettenis <kettenis@gnu.org>
2
3 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
4 whitespace.
5
6 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
7 Initialize using ARRAY_SIZE.
8
9 2003-09-27 Andrew Cagney <cagney@redhat.com>
10
11 * arch-utils.c (deprecated_init_frame_pc_default): Rename
12 "init_frame_pc_default".
13 * arch-utils.h (deprecated_init_frame_pc_default): Update.
14 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
15 * vax-tdep.c (vax_gdbarch_init): Update.
16 * v850-tdep.c (v850_gdbarch_init): Update.
17 * sh64-tdep.c (sh64_gdbarch_init): Update.
18 * s390-tdep.c (s390_gdbarch_init): Update.
19 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
20 * mcore-tdep.c (mcore_gdbarch_init): Update.
21 * h8300-tdep.c (h8300_gdbarch_init): Update.
22 * cris-tdep.c (cris_gdbarch_init): Update.
23 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
24
25 2003-09-26 Mark Kettenis <kettenis@gnu.org>
26
27 * regset.h: New file.
28 * Makefile.in (regset_h): Add.
29
30 2003-09-25 Andrew Cagney <cagney@redhat.com>
31
32 * frame.h (deprecated_frame_saved_regs): Rename
33 get_frame_saved_regs.
34 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
35 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
36 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
37 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
38 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
39
40 2003-09-25 Andrew Cagney <cagney@redhat.com>
41
42 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
43 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
44 and Java.
45 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
46 arm*-*-* do not use the new frame code.
47
48 2003-09-25 David Carlton <carlton@kealia.com>
49
50 * c-exp.y: Remove 'register' declarations.
51 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
52
53 2003-09-25 David Carlton <carlton@kealia.com>
54
55 * c-exp.y: Include cp-support.h. Add qualified_type.
56 (yylex): Delete nested type hack; add comments.
57 * cp-namespace.c (cp_lookup_nested_type): New function.
58 * cp-support.h: Declare cp_lookup_nested_type.
59 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
60 instead of value_struct_elt_for_reference.
61 * valops.c: Include cp-support.h.
62 (value_aggregate_elt): New function.
63 (value_namespace_elt): Ditto.
64 (value_struct_elt_for_reference): Make static.
65 * value.h: Delete declaration of value_struct_elt_for_reference;
66 add declaration for value_aggregate_elt.
67 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
68 (valops.o): Ditto.
69
70 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
71
72 * stack.c: Include "reggroups.h".
73 (frame_info): Only display registers in all_reggroup.
74 * Makefile.in (stack.o): Update dependencies.
75
76 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
77
78 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
79 "add ip, sp #n" in the prologue.
80 (arm_scan_prologue): Ditto.
81
82 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
83
84 * MAINTAINERS (write after approval): Add myself.
85
86 2003-09-25 Andreas Schwab <schwab@suse.de>
87
88 * m68k-tdep.c: Include "dwarf2-frame.h".
89 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
90 * Makefile.in (m68k-tdep.o): Update dependencies.
91
92 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
93
94 * sh-tdep.c (struct frame_extra_info): Remove.
95 (struct sh_frame_cache): New structure.
96 (GET_SOURCE_REG): New macro extracting source register of an opcode.
97 (GET_TARGET_REG): Ditto but target register.
98 (GET_PUSHED_REG): Remove.
99 (IS_MOV_ARG_TO_REG): New macro.
100 (IS_MOV_ARG_TO_IND_R14): New macro.
101 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
102 (IS_MOVW_PCREL_TO_REG): New macro.
103 (IS_MOVL_PCREL_TO_REG): New macro.
104 (IS_SUB_REG_FROM_SP): New macro.
105 (IS_ARG_MOV): Remove.
106 (IS_MOV_TO_R14): Remove.
107 (IS_RESTORE_FP): New macro.
108 (IS_RTS): New macro.
109 (IS_LDS): New macro.
110 (IS_MOV_FP_SP): New macro.
111 (IS_ADD_REG_TO_FP): New macro.
112 (IS_ADD_IMM_FP): New macro.
113 (sh_skip_prologue_hard_way): Remove.
114 (sh_saved_pc_after_call): Remove.
115 (sh_frame_chain): Remove.
116 (sh_find_callers_reg): Remove.
117 (sh_nofp_frame_init_saved_regs): Remove.
118 (sh_fp_frame_init_saved_regs): Remove.
119 (sh_init_extra_frame_info): Remove.
120 (sh_analyze_prologue): New function.
121 (sh_skip_prologue): Remove deprecated code. Rely on new function
122 sh_analyze_prologue when after_prologue fails.
123 (sh_frame_saved_pc): Remove.
124 (sh_alloc_frame_cache): New function.
125 (sh_frame_cache): Ditto.
126 (sh_frame_prev_register): Ditto.
127 (sh_frame_this_id): Ditto.
128 (sh_frame_unwind): New structure defining the heuristic frame
129 sniffer interface.
130 (sh_frame_sniffer): New function.
131 (sh_unwind_sp): Ditto.
132 (sh_unwind_pc): Ditto.
133 (sh_unwind_dummy_id): Ditto.
134 (sh_frame_base_address): Ditto.
135 (sh_frame_base): New structure defining new frame base code.
136 (sh_in_function_epilogue_p): New function.
137 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
138 code and to call all new code instead. Initialize dwarf2 and
139 heuristic frame sniffer.
140
141 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
142
143 * parser-defs.h (struct exp_descriptor): New definition, containing
144 language-specific info for printing, prefixifying, dumping, and
145 evaluating expressions.
146 (exp_descriptor_standard): Declare new variable.
147 (print_subexp): Make global and declare here (from expprint.c).
148 (dump_subexp): Ditto.
149 (dump_subexp_body_standard): Declare.
150 (operator_length_standard): Declare.
151 (op_name_standard): Declare.
152 (print_subexp): Declare.
153 (print_subexp_standard): Declare.
154
155 * language.h (struct language_defn): Add la_exp_desc field to hold
156 pointer to table for language-specific operators.
157 Remove evaluate_exp field, which is now in struct exp_descriptor.
158
159 * parse.c (operator_length): Move most code to new
160 operator_length_standard function. Use language-specific information.
161 (operator_length_standard): New function taking most code from
162 operator_length.
163 (exp_descriptor_standard): New constant.
164
165 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
166 and OP_EXTENDED_LAST.
167
168 * expprint.c (print_subexp): Use language-specific print_subexp.
169 Make global; remove static declaration.
170 Move most code to print_subexp_standard.
171 (print_subexp_standard): New function, containing code formerly in
172 print_subexp.
173 (op_name): Add expression to argument signature.
174 Use langauge-specific op_name.
175 Move most code to op_name_standard.
176 (op_name_standard): New function, containing code formerly in op_name.
177 (dump_subexp): Use new version of op_name function.
178 Use language-specific dump_subexp_body, and move most existing code to
179 dump_subexp_body_standard.
180 (dump_raw_expression): Use new op_name interface.
181 (dump_subexp_body): Move most code to dump_subexp_body_standard.
182 (dump_subexp_body_standard): New function, containing code formerly
183 in dump_subexp_body.
184
185 * language.c (unknown_language): Add default la_exp_desc field and
186 remove evaluate_exp field.
187 (auto_language): Ditto.
188 (local_language): Ditto.
189 * f-lang.c (f_language_defn): Ditto.
190 * c-lang.c (c_language_defn): Ditto.
191 (cplus_language_defn): Ditto.
192 (asm_language_defn): Ditto.
193 (minimal_language_defn): Ditto.
194 * p-lang.c (pascal_language_defn): Ditto.
195 * m2-lang.c (m2_language_defn): Ditto.
196 * objc-lang.c (objc_language_defn): Ditto.
197
198 * jv-lang.c (exp_descriptor_java): New variable, containing
199 Java-specific expression evaluator.
200 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
201 field.
202 * scm-lang.c (exp_descriptor_scm): New variable, containing
203 Scheme-specific expression evaluator.
204 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
205 field.
206 * objc-lang.c (print_object_command): Take evaluate_exp from the
207 la_exp_desc field.
208
209 * Makefile.in (eval.o): Add dependency on parser-defs.h.
210
211 * eval.c: Include parser-defs.h for the full declaration of
212 la_exp_desc's type.
213 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
214
215 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
216
217 * parser-defs.h (operator_length): Declare.
218
219 * parse.c (length_of_subexp): Use operator_length to get operator
220 lengths and arities for operators.
221 Move most code to new operator_length function.
222 (operator_length): New function absorbing most code from
223 length_of_subexp.
224 (prefixify_subexp): Remove large case and use operator_length instead.
225 (parse_exp_1): Use renamings:
226 dump_prefix_expression => dump_raw_expression and
227 dump_postfix_expression => dump_prefix_expression.
228
229 * expression.h (dump_prefix_expression): Rename to ...
230 (dump_raw_expression): New name.
231 (dump_postfix_expression): Rename to ...
232 (dump_prefix_expression): New name.
233
234 * expprint.c (dump_subexp): Make global. Add comment.
235 Move most existing code to dump_subexp_body.
236 (dump_subexp_body): New function.
237 (dump_prefix_expression): Rename to dump_raw_expression.
238 Remove attempt to print the expression via print_expression: it can't
239 work before the expression is prefixified.
240 (dump_raw_expression): Renamed from dump_prefix_expression.
241 (dump_postfix_expression): Rename to dump_prefix_expression, since
242 that's what it does.
243 Remove 'note' parameter, since this routine must be used on
244 prefixified expression.
245 (dump_prefix_expression): Renamed from dump_postfix_expression.
246
247 2003-09-22 Jim Blandy <jimb@redhat.com>
248
249 * dwarf2read.c (read_array_type): When building the type for an
250 array of unspecified length, make sure to choose the upper bound
251 so that the array's total length comes out to be zero --- that's
252 how we represent such arrays.
253
254 2003-09-22 Michael Chastain <mec@shout.net>
255
256 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
257
258 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
259
260 * top.c (quit_force): Fix indirect call to quit_target so
261 a struct qt_args pointer is passed.
262
263 2003-09-22 Andrew Cagney <cagney@redhat.com>
264
265 * arch-utils.h (init_frame_pc_noop): Delete declaration.
266 * arch-utils.c (init_frame_pc_noop): Delete function.
267 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
268 "init_frame_pc".
269 * mips-tdep.c (mips_gdbarch_init): Ditto.
270 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
271 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
272 declaration.
273 (DEPRECATED_INIT_FRAME_PC): Delete macro.
274 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
275 declaration.
276 (DEPRECATED_INIT_FRAME_PC): Delete macro.
277
278 2003-09-22 Anthony Green <green@redhat.com>
279
280 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
281 declaration.
282
283 2003-09-20 Andrew Cagney <cagney@redhat.com>
284
285 * breakpoint.c: Eliminate ARGSUSED.
286 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
287 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
288 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
289 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
290 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
291 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
292 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
293 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
294 * wince.c, remote-vx.c: Ditto.
295
296 * cli/cli-script.c: Remove "register" attributes.
297 * config/pa/tm-hppa.h: Ditto.
298 * cli/cli-decode.c: Ditto.
299 * cli/cli-cmds.c: Ditto.
300
301 2003-09-19 Andrew Cagney <cagney@redhat.com>
302
303 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
304 DEPRECATED_NPC_REGNUM.
305 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
306
307 2003-09-19 Christopher Faylor <cgf@redhat.com>
308
309 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
310
311 2003-09-19 Jim Blandy <jimb@redhat.com>
312
313 * macrotab.c (macro_include): Use the correct comparison to find
314 the appropriate place for this inclusion in the list.
315
316 2003-09-19 Andrew Cagney <cagney@redhat.com>
317
318 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
319 (DEPRECATED_HPUX_TEXT_END): Define.
320 (deprecated_hpux_text_end): Declare.
321 (struct target_ops): Declare opaque.
322 * hppah-nat.c (text_end): Make static.
323 (deprecated_hpux_text_end): New function.
324 * exec.c (text_end): Delete global variable.
325 (NEED_TEXT_START_END): Do not define.
326 (exec_file_attach): Replace code computing "text_end" code with
327 call to DEPRECATED_HPUX_TEXT_END.
328
329 2003-09-19 Andrew Cagney <cagney@redhat.com>
330
331 * utils.c (align_up, align_down): New functions.
332 * defs.h (align_up, align_down): Declare.
333 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
334 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
335 and "align_down".
336 (round_up, round_down): Delete functions.
337 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
338 "align_down".
339 (ROUND_DOWN, ROUND_UP): Delete macros.
340 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
341 * h8300-tdep.c: Replace "round_up" and "round_down" with
342 "align_up" and "align_down".
343 (round_up, round_down): Delete macros.
344 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
345 "align_down".
346 (ROUND_UP, ROUND_DOWN): Delete macros.
347
348 2003-09-18 J. Brobecker <brobecker@gnat.com>
349
350 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
351 hard-coded constant. Use the proper machine name instead.
352
353 2003-09-17 Andrew Cagney <cagney@redhat.com>
354
355 * sparc-tdep.c (legacy_register_name): Delete function.
356 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
357 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
358 * infcmd.c (gdb_register_name): Delete variable.
359 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
360 REGISTER_NAME and "tm.h".
361 * gdbarch.h, gdbarch.c: Regenerate.
362 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
363 REGISTER_NAMES in comments.
364 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
365 * m68klinux-nat.c (regmap): Ditto.
366
367 2003-09-17 Jim Blandy <jimb@redhat.com>
368
369 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
370
371 2003-09-17 Andrew Cagney <cagney@redhat.com>
372
373 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
374 (ppcnbsd_init_abi): Set "use_struct_convention" to
375 "ppcnbsd_use_struct_convention".
376
377 2003-09-17 Mark Kettenis <kettenis@gnu.org>
378
379 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
380 * gdbarch.h, gdbarch.c: Regenerate.
381 (stabs_argument_has_addr): New architecture method.
382 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
383 * arch-utils.c: Include "buildsym.h".
384 (default_stabs_argument_has_addr): New function.
385 * stabsread.c (define_symbol): Use stabs_argument_has_addr
386 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
387
388 2003-09-17 Andrew Cagney <cagney@redhat.com>
389
390 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
391 * gdbarch.h, gdbarch.c: Regenerate.
392 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
393 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
394 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
395 * sparcnbsd-tdep.c: Update.
396
397 2003-09-17 Andrew Cagney <cagney@redhat.com>
398
399 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
400 * gdbarch.h, gdbarch.c: Regenerate.
401 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
402 * d10v-tdep.c, frame.c: Update.
403 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
404 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
405 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
406 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
407 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
408 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
409 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
410 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
411 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
412 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
413 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
414 * config/pa/nm-hppah.h: Update.
415
416 2003-09-16 Andrew Cagney <cagney@redhat.com>
417
418 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
419 "use_struct_convention" to "ppc_linux_use_struct_convention".
420 (ppc_linux_use_struct_convention): New function.
421 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
422 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
423 "rs6000_use_struct_convention".
424 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
425 declaration.
426 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
427 Delete function.
428
429 2003-09-16 Andrew Cagney <cagney@redhat.com>
430
431 * buildsym.c: Remove more occurances of "register".
432 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
433 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
434 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
435 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
436 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
437 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
438 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
439 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
440
441 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
442
443 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
444 numbers to enumeration values.
445 * sh-tdep.c: Accomodate above change.
446 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
447 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
448 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
449 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
450 (IS_FPUSH): Rename from IS_FMOV.
451 (sh_extract_struct_value_address): Remove useless comment.
452 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
453 instead of own local values.
454 (sh_dump_tdep): Remove.
455 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
456 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
457
458 2003-09-15 Andrew Cagney <cagney@redhat.com>
459
460 * doublest.c (convert_floatformat_to_doublest): No longer need to
461 cast "exp_bias" to an int. Reverts 2002-12-04 change.
462
463 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
464
465 * values.c (unpack_double): Call floatformat_is_valid.
466
467 2003-09-15 Mark Kettenis <kettenis@gnu.org>
468
469 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
470 ps_strings into a long.
471
472 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
473 _initialize_am64fbsd_nat.
474
475 2003-09-15 Kevin Buettner <kevinb@redhat.com>
476
477 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
478 associated with DW_AT_ranges attribute is out of bounds.
479
480 2003-09-15 David Lecomber <dsl@sources.redhat.com>
481
482 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
483
484 2003-09-14 Michael Chastain <mec@shout.net>
485
486 * config/m68k/nm-apollo68v.h: Delete.
487 * config/m68k/xm-apollo68v.h: Delete.
488
489 2003-09-14 Andrew Cagney <cagney@redhat.com>
490
491 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
492 * dcache.c: Update copyrights and descriptions.
493 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
494
495 2003-09-14 Andrew Cagney <cagney@redhat.com>
496
497 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
498 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
499
500 2003-09-14 Andrew Cagney <cagney@redhat.com>
501
502 * alpha-nat.c: Remove some occurances of "register".
503 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
504 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
505 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
506 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
507 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
508 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
509 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
510 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
511 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
512 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
513 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
514 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
515 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
516 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
517 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
518 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
519 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
520 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
521 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
522 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
523 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
524 * values.c, vax-tdep.c, xcoffread.c: Ditto.
525
526 2003-09-13 Andrew Cagney <cagney@redhat.com>
527
528 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
529 * ppc-tdep.h (struct regcache): Declare opaque.
530 * objfiles.h (struct objfile_data): Declare opaque.
531 * cp-support.h (struct objfile): Declare opaque.
532 * linux-nat.h (target_waitstatus): Declare opaque.
533
534 2003-09-14 Mark Kettenis <kettenis@gnu.org>
535
536 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
537 (stabs_argument_has_addr): New architecture method.
538 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
539 * arch-utils.c: Include "buildsym.h".
540 (default_stabs_argument_has_addr): New function.
541 * stabsread.c (define_symbol): Use stabs_argument_has_addr
542 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
543
544 * cris-tdep.c (cris_gdbarch_init): Set
545 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
546 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
547 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
548 * mips-tdep.c (mips_gdbarch_init): Likewise.
549 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
550 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
551
552 2003-09-13 Andrew Cagney <cagney@redhat.com>
553
554 * values.c (using_struct_return): Delete "function" and "funcaddr"
555 parameters.
556 * value.h (using_struct_return): Update declaration.
557 * infcmd.c (finish_command_continuation): Update.
558 (finish_command): Update.
559 * infcall.c (call_function_by_hand): Update.
560 * eval.c (evaluate_subexp_standard): Update.
561
562 2003-09-13 Christopher Faylor <cgf@redhat.com>
563
564 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
565 SSE registers since gdb will not operate correctly without this.
566 Restore include file ordering munged in previous change.
567 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
568
569 2003-09-13 Mark Kettenis <kettenis@gnu.org>
570
571 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
572 REG_STRUCT_HAS_ADDR.
573 * gdbarch.c, gdbarch.h: Updated.
574 * infcall.c (call_function_by_hand): Update.
575 * stabsread.c (define_symbol): Updated.
576
577 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
578
579 2003-09-12 Christopher Faylor <cgf@redhat.com>
580
581 * win32-nat.c: Reorganize so that defines used by target headers are
582 actually defined by the system headers.
583 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
584 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
585
586 2003-09-12 Jim Blandy <jimb@redhat.com>
587
588 * dbxread.c (read_dbx_symtab): Don't report an internal error if
589 the file has no .data, .bss, or .rodata sections. Instead wait
590 until we see a variable alleged to live in one of those sections.
591
592 * dbxread.c (read_dbx_symtab): If we have no .data section and no
593 .bss section, presume that any variables we find live in the
594 .rodata section.
595
596 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
597 offsets for global and static variables.
598
599 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
600 symbol types are, by definition, in the .data section, so it is
601 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
602 If there is no .data section, there should be no N_DATA or N_DATA
603 | N_EXT symbols.
604
605 2003-09-12 Mark Kettenis <kettenis@gnu.org>
606
607 * amd64fbsd-tdep.c: Fix sigtramp recognition.
608 (amd64fbsd_sigcontext_addr): Rewrite.
609 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
610 with correct values.
611 (amd64fbsd_sc_reg_offset): Initialize with correct values.
612 (amd64fbsd_init_abi): Fix typo.
613
614 2003-09-12 Andrew Cagney <cagney@redhat.com>
615
616 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
617 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
618
619 2003-09-12 Andrew Cagney <cagney@redhat.com>
620
621 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
622 "entry_file_highpc". Update comments.
623 * defs.h (deprecated_inside_entry_file): Rename
624 "inside_entry_file".
625 * blockframe.c (deprecated_inside_entry_file): Rename
626 "inside_entry_file".
627 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
628 * vax-tdep.c (vax_frame_chain): Update.
629 * sh64-tdep.c (sh64_frame_chain): Update.
630 * sh-tdep.c (sh_frame_chain): Update.
631 * rs6000-tdep.c (rs6000_frame_chain): Update.
632 * ns32k-tdep.c (ns32k_frame_chain): Update.
633 * mips-tdep.c (mips_frame_chain): Update.
634 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
635 * m32r-tdep.c (m32r_frame_this_id): Update.
636 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
637 * frv-tdep.c (frv_frame_this_id): Update.
638 * d10v-tdep.c (d10v_frame_this_id): Update.
639 * cris-tdep.c (cris_frame_chain): Update.
640 * blockframe.c (legacy_frame_chain_valid): Update.
641 * avr-tdep.c (avr_frame_this_id): Update.
642 * arm-tdep.c (arm_prologue_this_id): Update.
643 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
644 * objfiles.c (objfile_relocate): Update.
645 * mipsread.c (mipscoff_symfile_read): Update.
646 (mipscoff_symfile_read): Update.
647 * mdebugread.c (parse_partial_symbols): Update.
648 * dwarfread.c (read_file_scope): Update.
649 * dwarf2read.c (read_file_scope): Update.
650 * dbxread.c (read_dbx_symtab): Update.
651 (read_dbx_symtab): Update.
652 * coffread.c (complete_symtab): Update.
653
654 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
655
656 * top.c (quit_target): New static helper function.
657 (quit_force): Moved code to quit_target(). Call quit_target()
658 via catch_errors() to catch errors during quit.
659
660 2003-09-11 David Carlton <carlton@kealia.com>
661
662 * buildsym.c (finish_block): Use allocate_block to allocate the
663 block.
664 * mdebugread.c (new_block): Add FIXME.
665
666 2003-09-11 David Carlton <carlton@kealia.com>
667
668 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
669 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
670 (recursive_dump_type): Ditto.
671 * printcmd.c (print_formatted): Ditto.
672 * typeprint.c (print_type_scalar): Ditto.
673 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
674 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
675 * cp-support.h: Declare cp_check_possible_namespace_symbols,
676 maint_cplus_cmd_list.
677 * cp-support.c: Make maint_cplus_cmd_list extern.
678 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
679 command.h.
680 (lookup_symbol_file): Look in possible namespace blocks when
681 appropriate.
682 (initialize_namespace_symtab): New.
683 (get_possible_namespace_block, free_namespace_block)
684 (check_possible_namespace_symbols)
685 (check_possible_namespace_symbols_loop)
686 (check_one_possible_namespace_symbol)
687 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
688 (_initialize_cp_namespace): Ditto.
689 * block.h: Declare allocate_block.
690 * block.c (allocate_block): New.
691 * jv-lang.c (get_java_class_symtab): Allocate blocks via
692 allocate_block.
693 * symfile.h: Update declaration of add_psymbol_to_list.
694 * symfile.c (add_psymbol_to_list): Return the partial symbol in
695 question.
696 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
697 scan_partial_symbols_call.
698 (scan_partial_symbols): Add NAMESPACE argument; update calls to
699 helper functions.
700 (add_partial_symbol): If necessary, scan mangled names for names
701 of namespaces.
702 (add_partial_namespace): Add NAMESPACE argument; generate partial
703 symbols associated to namespaces.
704 (add_partial_enumeration): Add NAMESPACE argument.
705 (new_symbol): Allow namespace syms.
706 (read_namespace): Generate namespace syms.
707 * objfiles.h: Add opaque declaration of struct symtab.
708 (struct objfile): Add cp_namespace_symtab member.
709 * objfiles.c (allocate_objfile): Set
710 objfile->cp_namespace_symtab.
711 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
712 dictionary_h, command_h.
713
714 2003-09-11 Andrew Cagney <cagney@redhat.com>
715
716 * rs6000-tdep.c (rs6000_push_dummy_call): Use
717 regcache_raw_write_signed to set SP_REGNUM, move the operation to
718 near the function's end.
719 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
720 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
721 regcache_raw_write_signed to set SP_REGNUM.
722
723 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
724
725 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
726 orig_addrs is set up properly.
727
728 2003-09-11 Andrew Cagney <cagney@redhat.com>
729
730 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
731 * gdbarch.h, gdbarch.c: Re-generate.
732 * infcall.c (call_function_by_hand): Update.
733 * hppa-tdep.c (hppa_push_arguments): Update.
734 * ada-lang.c (place_on_stack): Update.
735 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
736 * sparc-tdep.c (sparc_gdbarch_init): Update.
737 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
738 * hppa-tdep.c (hppa_gdbarch_init): Update.
739 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
740 stack_align.
741
742 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
743
744 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
745 register do need a frame.
746
747 2003-09-11 Andrew Cagney <cagney@redhat.com>
748
749 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
750 buildable since GDB 5.0.
751 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
752 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
753 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
754 * irix4-nat.c: Delete file.
755 * config/mips/irix4.mh: Delete file.
756 * config/mips/irix3.mh: Delete file.
757 * config/mips/irix3.mt: Delete file.
758 * config/mips/tm-irix3.h: Delete file.
759 * config/mips/nm-irix3.h: Delete file.
760 * config/mips/xm-irix3.h: Delete file.
761 * config/mips/nm-irix4.h: Delete file.
762 * config/mips/xm-irix4.h: Delete file.
763 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
764
765 2003-09-10 J. Brobecker <brobecker@gnat.com>
766
767 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
768 * Makefile.in (hppa-tdep.o): Update dependencies.
769
770 2003-09-10 James E Wilson <wilson@specifixinc.com>
771
772 * MAINTAINERS: Change my e-mail address. Move to paper trail
773 section.
774
775 2003-09-10 Kevin Buettner <kevinb@redhat.com>
776
777 * MAINTAINERS (frv): New ISA entry.
778
779 2003-09-10 Kevin Buettner <kevinb@redhat.com>
780
781 * frv-tdep.c (dis-asm.h): Include.
782 * Makefile.in (frv-tdep.o): Update dependencies.
783
784 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
785
786 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
787 Fix typo for high range of floating registers.
788
789 2003-09-09 David Carlton <carlton@kealia.com>
790
791 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
792 highpc initialization here out of scan_partial_symbols.
793 (scan_partial_symbols): Restructure into a recursive version,
794 calling add_partial_namespace and add_partial_enumeration when
795 appropriate.
796 (add_partial_namespace): New.
797 (add_partial_enumeration, locate_pdi_sibling): Ditto.
798
799 2003-09-09 Andrew Cagney <cagney@redhat.com>
800
801 * rs6000-tdep.c (ppc_push_return_address): Delete function.
802 (rs6000_push_dummy_call): Set LR to BP_ADDR.
803 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
804 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
805
806 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
807 (rs6000_push_dummy_call): Set the "TOC" register.
808
809 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
810 methods "max_register_raw_size", "max_register_virtual_size" or
811 "register_virtual_size".
812
813 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
814
815 * MAINTAINERS: Update my e-mail address.
816
817 2003-09-09 Andrew Cagney <cagney@redhat.com>
818
819 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
820 (rs6000_push_dummy_call): Store the struct return address.
821 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
822
823 2003-09-09 Andrew Cagney <cagney@redhat.com>
824
825 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
826 "ppc_sysv_abi_push_arguments".
827 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
828 "ppc_sysv_abi_push_arguments".
829 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
830 instead of "push_arguments".
831 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
832
833 2003-09-09 Andrew Cagney <cagney@redhat.com>
834
835 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
836 instead of CALL_DUMMY_ADDRESS.
837
838 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
839
840 * p-lang.c: Eliminate "register".
841 * c-lang.c: Ditto.
842 * expprint.c: Ditto.
843 * f-lang.c: Ditto.
844 * jv-lang.c: Ditto.
845 * language.c: Ditto.
846 * m2-lang.c: Ditto.
847 * parse.c: Ditto.
848 * scm-lang.c: Ditto.
849 * objc-lang.c: Ditto.
850
851 2003-09-09 Nick Clifton <nickc@redhat.com>
852
853 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
854
855 2003-09-04 Andrew Cagney <cagney@redhat.com>
856
857 * avr-tdep.c: Include "dis-asm.h".
858 * cris-tdep.c: Include "dis-asm.h".
859 (cris_delayed_get_disassembler): Use "struct disassemble_info"
860 instead of corresponding typedef.
861 * h8300-tdep.c: Include "dis-asm.h".
862 * ia64-tdep.c: Include "dis-asm.h".
863 * i386-tdep.c: Include "dis-asm.h".
864 (i386_print_insn): Use "struct disassemble_info" instead of
865 corresponding typedef.
866 * m68k-tdep.c: Include "dis-asm.h".
867 * mcore-tdep.c: Include "dis-asm.h".
868 * mips-tdep.c: Include "dis-asm.h".
869 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
870 instead of corresponding typedef.
871 * ns32k-tdep.c: Include "dis-asm.h".
872 * s390-tdep.c: Include "dis-asm.h".
873 * sparc-tdep.c: Include "dis-asm.h".
874 * vax-tdep.c: Include "dis-asm.h".
875 * v850-tdep.c: Include "dis-asm.h".
876 * mn10300-tdep.c: Include "dis-asm.h".
877 * rs6000-tdep.c: Include "dis-asm.h".
878 * xstormy16-tdep.c: Include "dis-asm.h".
879 (_initialize_xstormy16_tdep): Delete "extern" declaration of
880 print_insn_xstormy16.
881 * Makefile.in (v850-tdep.o): Update dependencies.
882 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
883 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
884 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
885 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
886 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
887 (gdbarch_h): Remove $(dis_asm_h).
888 * disasm.c: Include "dis-asm.h".
889 (dis_asm_read_memory): Use "struct disassemble_info" instead of
890 corresponding typedef.
891 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
892 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
893 * gdbarch.sh: Do not include "dis-asm.h".
894 (struct disassemble_info): Declare opaque.
895 (TARGET_PRINT_INSN): Update declaration.
896 * gdbarch.h, gdbarch.c: Re-generate.
897
898 2003-09-08 Andrew Cagney <cagney@redhat.com>
899
900 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
901 CALL_DUMMY_ADDRESS, change to a predicate.
902 * gdbarch.h, gdbarch.c: Re-generate.
903 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
904 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
905 * infcall.c (call_function_by_hand): Ditto.
906 * sparc-tdep.c (sparc_push_return_address): Ditto.
907 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
908 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
909 CALL_DUMMY_ADDRESS with entry_point_address.
910 * v850-tdep.c (v850_push_return_address): Ditto.
911 * s390-tdep.c (s390_push_return_address): Ditto.
912 * rs6000-tdep.c (ppc_push_return_address): Ditto.
913 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
914 * mcore-tdep.c (mcore_push_return_address): Ditto.
915 * cris-tdep.c (cris_push_return_address): Ditto.
916 * arm-tdep.c (arm_push_return_address): Ditto.
917
918 2003-09-08 Andrew Cagney <cagney@redhat.com>
919
920 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
921 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
922 and REG_UNMODIFIED to REG_SAME_VALUE.
923 (execute_cfa_program): Update.
924 (dwarf2_frame_cache): Update. Initialize table to
925 REG_UNSPECIFIED, complain if CFI fails to specify a register's
926 location.
927 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
928
929 2003-09-08 Andrew Cagney <cagney@redhat.com>
930
931 * gnu-nat.c: Remove "inline" function attribute.
932 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
933
934 2003-09-08 Kevin Buettner <kevinb@redhat.com>
935
936 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
937 target.
938
939 2003-09-08 Kevin Buettner <kevinb@redhat.com>
940
941 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
942 (frame_extra_info): Rename this struct to frv_unwind_cache.
943 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
944 Add fields ``prev_sp'' and ``base''.
945 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
946 (frv_saved_pc_after_call, frv_init_extra_frame_info)
947 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
948 Delete.
949 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
950 Revise all callers. Fill in the unwind cache argument and make
951 other adjustments to account for new frame mechanisms.
952 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
953 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
954 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
955 (frv_frame_unwind, frv_frame_base): New structs.
956 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
957 additional arguments expected by this method and adjust function
958 body accordingly.
959 (frv_gdbarch_init): Remove calls to the following functions:
960 set_gdbarch_deprecated_init_frame_pc(),
961 set_gdbarch_deprecated_saved_pc_after_call(),
962 set_gdbarch_deprecated_frame_chain(),
963 set_gdbarch_deprecated_frame_saved_pc(),
964 set_gdbarch_deprecated_frame_init_saved_regs(),
965 set_gdbarch_deprecated_push_arguments(),
966 set_gdbarch_deprecated_push_return_address(),
967 set_gdbarch_deprecated_pop_frame(),
968 set_gdbarch_deprecated_call_dummy_words(),
969 set_gdbarch_deprecated_sizeof_call_dummy_words(),
970 set_gdbarch_deprecated_init_extra_frame_info(),
971 set_gdbarch_deprecated_dummy_write_sp(), and
972 set_gdbarch_deprecated_pc_in_call_dummy().
973 Add calls to the following functions:
974 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
975 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
976 frame_base_set_default().
977 * Makefile.in (frv-tdep.o): Update dependencies.
978
979 2003-09-09 Mark Kettenis <kettenis@gnu.org>
980
981 * dwarf2-frame.c (read_encoded_value): Add support for
982 DW_EH_PE_aligned encoding.
983
984 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
985
986 * infrun.c (normal_stop): Don't print a message if the inferior
987 has exited.
988
989 2003-09-08 Jim Blandy <jimb@redhat.com>
990
991 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
992 * dbxread.c: #include "gdb_assert.h".
993 (read_dbx_symtab): If the objfile has no .data section, use the
994 section index for the .bss section instead.
995
996 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
997
998 * frame.c (deprecated_safe_get_selected_frame): New function.
999 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1000 * findvar.c (read_var_value): Call it.
1001
1002 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1003
1004 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1005 (sh64-tdep.o): Add dependencies.
1006 * configure.tgt: Add FIXME to sh-*-linux*.
1007 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1008 (sh_gdbarch_init): Always set correct sh_show_regs function
1009 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1010 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1011 * sh64-tdep.c: New file, containing all sh64 related code from
1012 sh-tdep.c.
1013 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1014 * config/sh/linux.mt (TDEPFILES): Ditto.
1015 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1016 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1017 * config/sh/wince.mt (TDEPFILES): Ditto.
1018
1019 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1020
1021 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1022 (stop_wait_callback): Handle !lp->signalled also.
1023 (lin_lwp_has_pending, flush_callback): New functions.
1024 (lin_lwp_wait): Call flush_callback.
1025 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1026 (linux_proc_pending_signals): New function.
1027 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1028
1029 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1030
1031 From Nick Kelsey <nickk@ubicom.com>:
1032 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1033 when the stop PC is at the beginning of a function also.
1034
1035 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1036
1037 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1038 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1039
1040 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1041
1042 * sol-thread.c: Include "gdb_string.h".
1043
1044 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1045
1046 * gcore.c: Reorder include files in alphabetical order. Include
1047 "gdb_assert.h". Various coding style fixes.
1048 (derive_stack_segment, derive_heap_segment): Replace check for
1049 non-null BOTTOM and TOP with gdb_assert.
1050 (derive_heap_segment): Replace check for successful creation of
1051 ZERO with gdb_assert.
1052 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1053
1054 2003-09-04 Andrew Cagney <cagney@redhat.com>
1055
1056 * thread-db.c (verbose_dlsym): New function.
1057 (thread_db_load): Use verbose_dlsym
1058 (thread_db_new_objfile): Print that libthread_db was loaded, and
1059 that thread debugging was enabled.
1060
1061 2003-09-04 Andrew Cagney <cagney@redhat.com>
1062
1063 * configure.tgt: Add "mips64*-*-*" target. Delete
1064 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1065 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1066 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1067 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1068 mips*-sony-*, and mips64*-*-elf* targets.
1069 * config/mips/embedl.mt: Delete file.
1070 * config/mips/embedl64.mt: Delete file.
1071 * config/mips/mips.mt: Delete file.
1072 * config/mips/mips64.mt: Delete file.
1073 * config/mips/tm-embed.h: Delete file.
1074 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1075 * config/mips/embed64.mt: Delete out-of-date comment.
1076
1077 2003-09-04 Andrew Cagney <cagney@redhat.com>
1078
1079 * hppa-tdep.c (hppa_gdbarch_init): Set
1080 "have_nonsteppable_watchpoint".
1081 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1082 * mips-tdep.c (mips_dump_tdep): Do not print
1083 HAVE_NONSTEPPABLE_WATCHPOINT.
1084 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1085 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1086 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1087 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1088
1089 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1090
1091 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1092 unused code. Add comment.
1093
1094 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1095
1096 * breakpoint.c (watchpoint_check): Check for pc being in an
1097 epilogue if watchpoint frame couldn't be found.
1098
1099 2003-09-04 Andrew Cagney <cagney@redhat.com>
1100
1101 * Makefile.in: Re-generate all dependencies.
1102
1103 2003-09-03 Andrew Cagney <cagney@redhat.com>
1104
1105 * arch-utils.h (legacy_print_insn): Delete declaration.
1106 * arch-utils.c (legacy_print_insn): Delete function.
1107 * disasm.c (deprecated_tm_print_insn_info): Delete.
1108 (_initialize_disasm): Delete function, contained code initializing
1109 deprecated_tm_print_insn_info.
1110 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1111 (deprecated_tm_print_insn_info): Delete.
1112 (TARGET_PRINT_INSN): Do not provide a default.
1113 * gdbarch.h, gdbarch.c: Re-generate.
1114
1115 2003-09-03 Andrew Cagney <cagney@redhat.com>
1116
1117 * disasm.c (fprintf_disasm): New function.
1118 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1119 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1120 reverts 2003-08-14 change.
1121 (_initialize_disasm): Call "init_disassemble_info", instead of
1122 INIT_DISASSEMBLE_INFO_NO_ARCH.
1123
1124 2003-09-03 Michael Snyder <msnyder@redhat.com>
1125
1126 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1127
1128 2003-09-03 Andrew Cagney <cagney@redhat.com>
1129
1130 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1131 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1132 * symfile.c (syms_from_objfile): Update.
1133 (reread_symbols): `Update
1134 * exec.c (exec_file_attach): Update.
1135 (exec_file_attach): Update.
1136 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1137 2003-08-29 change.
1138 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1139
1140 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1141
1142 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1143 trad-frame.h.
1144 (arm_get_cache): Delete macro.
1145 (struct arm_prologue_cache): Update comments. Make saved_regs into
1146 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1147 to prev_sp.
1148 (thumb_scan_prologue): Update for cache changes. Don't call
1149 DEPRECATED_PC_IN_CALL_DUMMY.
1150 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1151 argument and use it in desperation search for our prologue. Do not
1152 search past the specified PC.
1153 (arm_make_prologue_cache): Simplify.
1154
1155 (arm_prologue_this_id, arm_prologue_prev_register)
1156 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1157 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1158 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1159 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1160 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1161
1162 (arm_frame_chain_valid, arm_find_callers_reg)
1163 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1164 (arm_pop_frame): Delete obsolete methods.
1165 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1166
1167 (arm_gdbarch_init): Update for new frame methods. Register prologue
1168 and sigtramp unwinders. Set the default frame base method.
1169
1170 * Makefile.in (arm-tdep.o): Update dependencies.
1171 * varobj.c (find_frame_addr_in_frame_chain): Call
1172 get_frame_base_address.
1173 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1174
1175 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1176
1177 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1178 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1179 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1180 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1181 Take NEXT_FRAME and CACHE arguments. Call
1182 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1183 Set unwound_pc in CACHE instead of modifying the frame argument.
1184 Don't bother checking the frame type when looking for sigtramp
1185 frames.
1186 (arm_make_prologue_cache, arm_frame_chain)
1187 (arm_init_extra_frame_info): New functions.
1188
1189 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1190
1191 * arm-tdep.c (arm_get_cache): Define.
1192 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1193 unwound_sp, unwound_pc, and saved_regs.
1194 (thumb_scan_prologue): Take a cache instead of the frame.
1195 (arm_scan_prologue): Likewise.
1196 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1197 instead of a temporary frame.
1198 (arm_init_extra_frame_info): Allocate and use a cache.
1199 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1200
1201 2003-09-03 Andrew Cagney <cagney@redhat.com>
1202
1203 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1204 * config/mips/wince.mt (TM_CLIBS): Ditto.
1205 * config/sh/wince.mt (TM_CLIBS): Ditto.
1206 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1207 * config/sparc/sp64.mt (CC): Delete.
1208
1209 2003-09-03 Andrew Cagney <cagney@redhat.com>
1210
1211 * defs.h: Do not include "arch-utils.h".
1212 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1213 GDB_MULTI_ARCH_PURE.
1214 * configure.in (GDB_MULTI_ARCH): Do not define.
1215 * configure, config.in: Regenerate.
1216 * configure.tgt: Do not set variable "gdb_multi_arch".
1217 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1218 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1219 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1220 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1221 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1222 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1223 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1224 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1225 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1226 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1227 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1228 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1229 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1230 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1231 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1232 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1233 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1234 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1235
1236 2003-08-30 Michael Chastain <mec@shout.net>
1237
1238 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1239 * config/m68k/nm-hp300hpux.h: Delete.
1240 * config/m68k/tm-hp300hpux.h: Delete.
1241 * config/m68k/xm-hp300hpux.h: Delete.
1242 * config/m68k/xm-hp300bsd.h: Delete.
1243 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1244 tm-hp300hpux.h, xm-hp300hpux.h.
1245 * somsolib.c: Remove comment about hp300 shared libraries.
1246
1247 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1248
1249 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1250 Only define PTRACE_GET_THREAD_AREA is not already defined.
1251 Various style fixes in code and comments and some additional
1252 spelling fixes in comments. Move after functions dealing with
1253 debug registers.
1254 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1255 Fix coding-style.
1256
1257 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1258 frame_unwind_register_unsigned instead of
1259 frame_unwind_unsigned_register.
1260
1261 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1262
1263 * configure.in: Search for gethostbyname in libnsl.
1264 * configure: Regenerated.
1265
1266 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1267
1268 * configure.in: Remove redundant AC_MSG_RESULT in check for
1269 uintptr_t in stdint.h.
1270 * configure: Regenerated.
1271
1272 * amd64-nat.h (struct regcache): Add opaque declaration.
1273
1274 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1275 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1276 Change "register array" to "register cache" in comments.
1277 (x86_64_linux_gregset64_reg_offset): New variable.
1278 (GETREGS_SUPPLIES): Remove macro.
1279 (supply_gregset): Call amd64_supply_native_gregset instead of
1280 x86_64_linux_supply_gregset.
1281 (fill_gregset): Rename `regno' to `regnum'. Call
1282 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1283 (store_regs): Rename `regno' to `regnum'.
1284 (store_fpregs): Rename `regno' to `regnum'.
1285 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1286 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1287 Reorganize function a bit.
1288 (store_inferior_registers): Rename `regno' to `regnum'. Use
1289 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1290 Reorganize function a bit.
1291 (_initialize_x86_64_linux_nat): New function.
1292 * config/i386/x86-64linux.mh.
1293
1294 2003-08-29 Andrew Cagney <cagney@redhat.com>
1295
1296 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1297 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1298 (target_remove_watchpoint): Delete macro.
1299 (target_insert_watchpoint): Delete macro.
1300 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1301 (remote_mips_stopped_by_watchpoint): Delete declaration.
1302 (remote_mips_remove_watchpoint): Delete declaration.
1303 (remote_mips_set_watchpoint): Delete declaration.
1304 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1305 * remote-mips.c (_initialize_remote_mips): Set
1306 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1307 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1308 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1309 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1310 (mips_stopped_by_watchpoint): Rename
1311 remote_mips_stopped_by_watchpoint.
1312 (mips_can_hardware_watchpoint): Rename
1313 remote_mips_can_use_hardware_watchpoint, update function
1314 signature.
1315
1316 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1317
1318 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1319 USER_DS. We haven't given them a register number yet.
1320
1321 * amd64-nat.h: New file.
1322 * amd64-nat.c: New file.
1323 * amd64fbsd-nat.c: Include "amd64-nat.h".
1324 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1325 (amd64fbsd32_r_reg_offset): New variable.
1326 (supply_gregset): Simply call amd64_supply_native_gregset.
1327 (fill_gregset): Rename `regno' to `regnum'. Simply call
1328 amd64_collect_native_gregset.
1329 (fill_fpregset): Rename `regno' to `regnum'.
1330 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1331 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1332 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1333 `fpregset_t'. Call amd64_supply_native_gregset instead of
1334 supply_gregset. Call x86_64_supply_fxsave instead of
1335 supply_fpregset.
1336 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1337 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1338 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1339 `fpregset_t'. Call amd64_collect_native_gregset instead of
1340 fill_gregset. Call x86_64_collect_fxsave instead of
1341 fill_fpregset.
1342 (_initialize_am64fbsd_nat): Initialize
1343 amd64_native_gregset32_reg_offset and
1344 amd64_native_gregset64_reg_offset.
1345 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1346
1347 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1348 null pointer. Fix typo in comment.
1349
1350 * regcache.c (supply_register): Reimplement to call
1351 regcache_raw_supply.
1352 (regcache_collect): Reimplement by calling regcache_raw_collect.
1353
1354 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1355
1356 * regcache.c (register_buffer): Consitify first argument.
1357 (regcache_raw_supply, regcache_raw_collect): New
1358 functions.
1359
1360 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1361
1362 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1363 by Nathan J. Williams.
1364
1365 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1366
1367 * lin-lwp.c (wait_lwp): New function, copied from
1368 stop_wait_callback. Clean up.
1369 (stop_wait_callback): Use wait_lwp.
1370
1371 2003-08-28 Andrew Cagney <cagney@redhat.com>
1372
1373 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1374 flavour and disassembler options.
1375 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1376 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1377 deprecated_tm_print_insn_info.
1378
1379 2003-08-27 Andrew Cagney <cagney@redhat.com>
1380
1381 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1382 Use target_read_memory.
1383 (s390_get_frame_info): Update. Do not reference
1384 deprecated_tm_print_insn_info.
1385 (s390_check_function_end, s390_is_sigreturn): Ditto.
1386
1387 2003-08-27 Andrew Cagney <cagney@redhat.com>
1388
1389 * Makefile.in (cris-tdep.o): Update dependencies.
1390 * cris-tdep.c: Include "gdb_assert.h".
1391 (cris_gdbarch_init): Set print_insn.
1392 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1393 (cris_delayed_get_disassembler): Simplify, directly call the
1394 disassembler returned by cris_get_disassembler.
1395 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1396 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1397 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1398 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1399 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1400 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1401 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1402 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1403 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1404 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1405 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1406 (gdb_print_insn_sparc): Delete function.
1407 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1408 deprecated_tm_print_insn_info.
1409 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1410 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1411 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1412 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1413 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1414 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1415 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1416 (s390_gdbarch_init): Set print_insn.
1417
1418 2003-08-27 Andrew Cagney <cagney@redhat.com>
1419
1420 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1421 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1422 * infcall.c (call_function_by_hand): Convert the entry point
1423 address into a code address.
1424
1425 2003-08-27 Andrew Cagney <cagney@redhat.com>
1426
1427 * dsrec.c: Include "gdb_string.h".
1428 * Makefile.in (dsrec.o): Update dependencies.
1429
1430 2003-08-27 Michael Chastain <mec@shout.net>
1431
1432 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1433
1434 2003-08-27 Andrew Cagney <cagney@redhat.com>
1435
1436 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1437 (alpha_osf1_init_abi): Do not set call_dummy_address.
1438
1439 2003-08-27 David Carlton <carlton@kealia.com>
1440
1441 From Randolph Chung <tausq@debian.org>:
1442 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1443 compiles with -Wformat-nonliteral -Werror.
1444
1445 2003-08-26 Jim Blandy <jimb@redhat.com>
1446
1447 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1448 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1449 bfd_lookup_symbol, since we only want symbols in code sections.
1450 (look_for_base): Pass zero as the SECT_FLAGS argument to
1451 bfd_lookup_symbol, since we're not concerned about which section
1452 the symbol is in.
1453
1454 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1455
1456 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1457 we are frameless or the return address register is already known.
1458
1459 2003-08-26 Andrew Cagney <cagney@redhat.com>
1460
1461 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1462 in size. Add comments.
1463
1464 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1465
1466 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1467 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1468
1469 2003-08-26 Jason Merrill <jason@redhat.com>
1470
1471 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1472 case out of #ifdef MIPS block.
1473
1474 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1475
1476 PR java/1322
1477 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1478 available before calling SECT_OFF_TEXT.
1479 * PROBLEMS: Remove description of java/1322.
1480
1481 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1482
1483 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1484 bof, and nat0-nat127 as pseudo-registers.
1485 (ia64_frame_cache): New struct used to cache frame info.
1486 (ia64_register_reggroup_p): New routine used to override default
1487 register grouping so registers without names are still saved and
1488 restored.
1489 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1490 pseudo values.
1491 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1492 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1493 (ia64_alloc_frame_cache): New routine to create a new
1494 ia64_frame_cache.
1495 (examine_prologue): Change prototype to add next_frame pointer.
1496 Assume frameless until otherwise proven. Verify that the cfm for
1497 current frame matches the cfm that should occur for the prologues
1498 alloc insn and if equal, mark as not frameless. At end of routine,
1499 if not frameless, calculate registers for the previous frame and store
1500 in the cache, if a cache is provided.
1501 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1502 and pass 0 for next_frame.
1503 (ia64_store_return_value): Change to use convert_typed_floating()
1504 instead of calling ia64_convert_to_raw().
1505 (ia64_extract_return_value): Change to use convert_typed_floating()
1506 instead of calling ia64_convert_to_virtual().
1507 (ia64_frame_cache): New routine to support new frame model.
1508 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1509 (ia64_frame_sniffer): Ditto.
1510 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1511 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1512 (ia64_sigtramp_frame_prev_register): Ditto.
1513 (ia64_sigtramp_frame_sniffer): Ditto.
1514 (ia64_frame_base_address): Ditto.
1515 (ia64_extract_struct_value_address): Change to issue error message.
1516 (ia64_frame_align): New routine to align sp.
1517 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1518 (ia64_push_arguments): Removed. Logic moved to
1519 ia64_push_dummy_call().
1520 (ia64_push_return_address): Ditto.
1521 (ia64_unwind_dummy_id): New function.
1522 (ia64_unwind_pc): Ditto.
1523 (ia64_convert_register_p): Ditto.
1524 (ia64_register_to_value): Ditto.
1525 (ia64_value_to_register): Ditto.
1526 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1527 (ia64_register_byte, ia64_register_raw_size): Ditto.
1528 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1529 (ia64_saved_pc_after_call): Ditto.
1530 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1531 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1532 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1533 (ia64_register_convert_to_raw): Ditto.
1534 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1535 (ia64_init_extra_frame_info): Ditto.
1536 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1537 (ia64_gdbarch_init): Remove registering of deprecated functions that
1538 are no longer used. Add registration of new gdbarch functions.
1539 Remove registering deprecated_write_sp. Replace
1540 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1541 Delete set_gdbarch_deprecated_register_convertible(),
1542 set_gdbarch_deprecated_register_convert_to_virtual(), and
1543 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1544 set_gdbarch_deprecated_register_size(),
1545 set_gdbarch_deprecated_register_bytes(),
1546 set_gdbarch_pcregnum(),
1547 set_gdbarch_deprecated_register_byte(),
1548 set_gdbarch_deprecated_register_raw_size(),
1549 set_gdbarch_deprecated_max_register_raw_size(),
1550 set_gdbarch_deprecated_register_virtual_size(),
1551 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1552 Replace set_gdbarch_deprecated_extract_return_value() with
1553 set_gdbarch_extract_return_value(). Remove calls to:
1554 set_gdbarch_deprecated_saved_pc_after_call();
1555 set_gdbarch_deprecated_frame_chain(),
1556 set_gdbarch_deprecated_frame_saved_pc(),
1557 set_gdbarch_deprecated_frame_init_saved_regs(),
1558 set_gdbarch_deprecated_get_saved_register(),
1559 set_gdbarch_deprecated_call_dummy_words(),
1560 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1561 set_gdbarch_deprecated_init_extra_frame_info(),
1562 set_gdbarch_deprecated_frame_args_address(),
1563 set_gdbarch_deprecated_frame_locals_address(),
1564 and set_gdbarch_deprecated_dummy_write_sp().
1565 Add set_gdbarch_convert_register_p(),
1566 set_gdbarch_register_to_value(),
1567 set_gdbarch_value_to_register(),
1568 set_gdbarch_push_dummy_call(),
1569 set_gdbarch_frame_align(),
1570 set_gdbarch_unwind_dummy_id(),
1571 set_gdbarch_unwind_pc(),
1572 frame_unwind_append_sniffer(),
1573 frame_unwind_append_sniffer(),
1574 and frame_base_set_default().
1575
1576 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1577
1578 * configure.tgt: Document need for special "mipsisa64" handling.
1579 (mipsisa64*-*-linux64): Handle as target linux64.
1580 (mipsisa64*-*-*): Handle as target embed64.
1581
1582 2003-08-18 Michael Chastain <mec@shout.net>
1583
1584 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1585 objfile bug.
1586
1587 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1588
1589 * i387-tdep.h: Update copyright date.
1590 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1591
1592 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1593 CFLAGS games to reflect reality.
1594
1595 2003-08-24 Andrew Cagney <cagney@redhat.com>
1596
1597 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1598 GDB_MULTI_ARCH is always non-zero.
1599 * osabi.c (_initialize_gdb_osabi): Ditto.
1600 (gdbarch_init_osabi): Ditto.
1601 * sparc-tdep.c: Ditto for #if code.
1602
1603 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1604
1605 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1606 Update comments.
1607 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1608 comments.
1609 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1610 x86_64_supply_fxsave.
1611 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1612 x86_64_supply_fxsave.
1613 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1614 x86_64_supply_fxsave.
1615
1616 2003-08-23 Andreas Jaeger <aj@suse.de>
1617
1618 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1619 i387_supply_fxsave.
1620
1621 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1622
1623 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1624 i387_supply_register.
1625 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1626 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1627 i387_supply_fsave.
1628 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1629 i387_supply_fxsave.
1630 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1631 i387_supply_fsave.
1632 * i386bsd-nat.c (supply_fpregset): Adjust call to
1633 i387_supply_fsave.
1634 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1635 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1636 supply_fpregset.
1637 (store_inferior_registers): Remove extraneous whitespace. Call
1638 i387_fill_fsave instead of fill_fpregset.
1639 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1640 (supply_fpregset): Likewise.
1641 * i386v4-nat.c (supply_fpregset): Adjust call to
1642 i387_supply_fsave.
1643 * i386-interix-nat.c (supply_fpregset): Adjust call to
1644 i387_supply_fsave.
1645 * i386-linux-nat.c (supply_fpregset): Adjust call to
1646 i387_supply_fsave.
1647 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1648 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1649 i387supply_fsave and i387_supply_fxsave.
1650 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1651 Incorporate code from `i387_supply_register.
1652 (i387_supply_register): Remove.
1653 (i387_supply_fxsave): Add `regnum' argument.
1654 Update comments.
1655 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1656 prototype.
1657 (i387_supply_register): remove prototype.
1658 Update comments.
1659
1660 2003-08-22 Michael Chastain <mec@shout.net>
1661
1662 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1663 Add lines for files in gdb/testsuite/gdb.cp/* that are
1664 still not 8.3 unique.
1665
1666 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1667
1668 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1669 TYPE_VPTR_FIELDNO is valid.
1670
1671 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1672
1673 * utils.c (set_width_command): Remove prototypes.
1674 (set_screen_size): New prototype.
1675 (init_page_info): Simplify by fetching the screen size from
1676 Readline. Call set_screen_size.
1677 (set_screen_size): New function.
1678 (set_width): Add missing whitespace in comment.
1679 (set_width_command): Call set_screen_size.
1680 (set_height_command): New function.
1681 (initialize_utils): Fix formatting. Make "set height" command
1682 call set_height_command. Remove redundant code that turns off
1683 pagination if output isn't a terminal. Remove redundant call to
1684 set_width_command.
1685
1686 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1687
1688 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1689 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1690 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1691 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1692 `case' keyword.
1693 (sparc64_register_info): Give the reister with number
1694 SPARC64_STATE_REGNUM a name.
1695 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1696 %asi and %ccr.
1697 (sparc64_push_dummy_call): Take BIAS into account when checking
1698 stcak alignment.
1699 (sparc_software_single_step): Remove assertions that check whether
1700 NPC and NNPC were zero.
1701 (sparc_supply_rwindow): Make public. Merge functionality with
1702 sparc64_supply_rwindow.
1703 (sparc_fill_rwindow): Make public. Merge functionality with
1704 sparc64_fill_rwindow.
1705 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1706 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1707 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1708 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1709 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1710
1711 * reggroups.c: Add whitespace after declarations of local
1712 variables in functions.
1713
1714 2003-08-21 Michael Chastain <mec@shout.net>
1715
1716 * gdbtypes.h: Change array bound type from an int to enum.
1717
1718 2003-08-21 Andrew Cagney <cagney@redhat.com>
1719
1720 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1721 * config/sparc/tm-sparc.h: Ditto.
1722 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1723 unconditionally.
1724 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1725
1726 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1727
1728 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1729 (register_objfile_data, set_objfile_data, objfile_data): New
1730 prototypes.
1731 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1732 prototypes.
1733 (allocate_objfile): Call objfile_alloc_data.
1734 (free_objfile): Call objfile_free_data.
1735 (struct objfile_data): New.
1736 (struct objfile_data_registration): New.
1737 (struct objfile_data_registry): New.
1738 (objfile_data_registry): New variable.
1739 (register_objfile_data): New function.
1740 (objfile_alloc_data, objfile_free_data): New functions.
1741 (set_objfile_data, objfile_data): New functions.
1742 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1743 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1744 (_initialize_dwarf2_frame): New function and prototype.
1745
1746 2003-08-21 Andrew Cagney <cagney@redhat.com>
1747
1748 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1749 a specific architecture.
1750 * arch-utils.h (set_architecture_from_arch_mach): Delete
1751 declaration.
1752 (target_architecture_hook): Delete declaration.
1753 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1754 (default_float_format): Assume GDB_MULTI_ARCH.
1755 (default_double_format): Assume GDB_MULTI_ARCH.
1756 (set_endian_from_file): Delete function.
1757 (arch_ok): Delete function.
1758 (set_arch): Delete function.
1759 (set_architecture_from_arch_mach): Delete function.
1760 (set_architecture_from_file): Delete function.
1761 (set_architecture): Assume GDB_MULTI_ARCH.
1762 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1763
1764 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1765
1766 Rewrite FreeBSD/sparc64 native configuration.
1767 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1768 * sparc64fbsd-nat.c: New file.
1769 * sparc64fbsd-tdep.c: New file.
1770 * sparc64-tdep.c sparc64-tdep.h: New files.
1771 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1772 sparc64fbsd-tdep.o): New dependencies.
1773 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1774 and sparc64fbsd-tdep.c.
1775 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1776 * config/sparc/fbsd.mh: Remove copyright notice.
1777 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1778 sparcbsd-nat.o.
1779 * config/sparc/fbsd.mt: Remove copyright notice.
1780 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1781 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1782 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1783 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1784 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1785 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1786 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1787 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1788 "sparc/tm-sp64.h".
1789 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1790 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1791
1792 2003-08-21 Michael Chastain <mec@shout.net>
1793
1794 * symtab.h: Add doco on the space critical structures and
1795 some measurements of space usage.
1796
1797 2003-08-21 Michael Snyder <msnyder@redhat.com>
1798
1799 * tracepoint.c (trace_dump_command): Trace break address
1800 is subject to DECR_PC_AFTER_BREAK.
1801 (set_traceframe_context): Make "trace_line" an int.
1802 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1803
1804 2003-08-20 Michael Snyder <msnyder@redhat.com>
1805
1806 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1807 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1808 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1809 argument passing.
1810 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1811 functions, replace sh_push_dummy_call.
1812 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1813
1814 2003-08-20 Michael Chastain <mec@shout.net>
1815
1816 * gdbtypes.h (struct main_type): Rearrange to save space.
1817
1818 2003-08-20 Michael Snyder <msnyder@redhat.com>
1819
1820 * trad-frame.c: Comment typo fix.
1821
1822 2003-08-20 Michael Snyder <msnyder@redhat.com>
1823 Kevin Buettner <kevinb@redhat.com>
1824
1825 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1826 (frv_frame_init_saved_regs): Add declaration.
1827 (frame_extra_info): Add new field ``saved_regs''.
1828 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1829 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1830 Update frame related code.
1831 (frv_extract_struct_value_address): Adjust formatting.
1832 * Makefile.in (frv-tdep.o): Update dependencies.
1833 * config/frv/tm-frv.h (target_insert_watchpoint)
1834 (target_remove_watchpoint, target_insert_hw_breakpoint)
1835 (target_remove_hw_breakpoint): Delete these macros.
1836 (remote_insert_watchpoint, remote_remove_watchpoint)
1837 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1838 these declarations.
1839
1840 2003-08-20 Michael Chastain <mec@shout.net>
1841
1842 * defs.h (ENUM_BITFIELD): New macro.
1843 * symtab.h (ENUM_BITFIELD): Use it.
1844 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1845
1846 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1847
1848 * MAINTAINERS (write after approval): Add myself.
1849
1850 2003-08-18 Andrew Cagney <cagney@redhat.com>
1851
1852 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1853 * gdbarch.h, gdbarch.c: Re-generate.
1854 * infcall.c (call_function_by_hand): Adjust the SP by
1855 frame_red_zone_size before allocating any stack space.
1856 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1857 * x86-64-tdep.c (x86_64_frame_align): New function.
1858 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1859
1860 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1861 Remove code adjusting SP so that it skips over the Red Zone.
1862
1863 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1864
1865 * NEWS (New native configurations): Mention FreeBSD/amd64.
1866
1867 2003-08-18 Andrew Cagney <cagney@redhat.com>
1868
1869 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1870 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1871 "m68k_frame_p".
1872 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1873
1874 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1875
1876 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1877
1878 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1879
1880 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1881 Define.
1882 * i386-linux-nat.c: Include "linux-nat.h".
1883 (child_post_startup_inferior): New function.
1884
1885 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1886
1887 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1888 at the start of a frameless function. This probably fixes PR
1889 backtrace/1338.
1890
1891 2003-08-17 Michael Chastain <mec@shout.net>
1892
1893 * symfile.c (find_sym_fns): Remove special case for apollo target.
1894
1895 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1896
1897 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1898 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1899 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1900 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1901 (linux_supports_tracevforkdone): New function.
1902 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1903 TRACEVFORKDONE.
1904 (child_follow_fork): Handle vfork.
1905 (linux_handle_extended_wait): Likewise. Also handle exec.
1906 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1907 * NEWS: Mention fork tracing.
1908
1909 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1910
1911 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1912
1913 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1914
1915 * Makefile.in (i386-linux-nat.o): Update dependencies.
1916 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1917 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1918 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1919 * i386-linux-nat.c: Include "linux-nat.h".
1920 (child_post_startup_inferior): New function.
1921 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1922 * infptrace.c (kill_inferior): Wrap in #ifdef.
1923 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1924 attaching to each LWP.
1925 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1926 (init_lin_lwp_ops): Fill in some more operations.
1927 * linux-nat.h (linux_enable_event_reporting)
1928 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1929 prototypes.
1930 * linux-nat.c (linux_enable_event_reporting): New function.
1931 (child_post_attach, linux_child_post_startup_inferior)
1932 (child_post_startup_inferior, child_follow_fork)
1933 (linux_handle_extended_wait, kill_inferior): New functions.
1934
1935 2003-08-16 Andrew Cagney <cagney@redhat.com>
1936
1937 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1938 * gdbarch.h, gdbarch.c: Re-generate.
1939
1940 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1941
1942 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1943
1944 2003-08-16 Andrew Cagney <cagney@redhat.com>
1945
1946 * NEWS: Mention that "set prompt-escape-char" was deleted.
1947 * top.c (get_prompt_1): Delete function.
1948 (gdb_prompt_escape):
1949 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1950 prompt-escape-char" command.
1951 (MAX_PROMPT_SIZE): Delete macro.
1952 (get_prompt): Simplify, do not call get_prompt_1.
1953
1954 2003-08-16 Andrew Cagney <cagney@redhat.com>
1955
1956 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1957 -Werror. -Wformat-nonliteral problems.
1958
1959 2003-08-15 J. Brobecker <brobecker@gnat.com>
1960
1961 Further multiarching work mostly for hppa64-*-hpux11:
1962 * hppa-tdep.h: New file.
1963 * hppa-tdep.c: #include hppa-tdep.c.
1964 (hppa32_num_regs): Renamed from hppa_num_regs.
1965 (hppa64_num_regs): New constant.
1966 (hppa64_call_dummy_breakpoint_offset): New constant.
1967 (hppa32_call_dummy_length): New constant.
1968 (hppa64_call_dummy_length): New constant.
1969 (hppa32_stack_align): Make name 32bit explicit.
1970 (hppa32_register_virtual_type): Likewise.
1971 (hppa32_extract_return_value): Likewise.
1972 (hppa32_use_struct_convention): Likewise.
1973 (hppa32_store_return_value): Likewise.
1974 (hppa64_register_virtual_type): New function.
1975 (hppa64_extract_return_value): New function.
1976 (hppa64_use_struct_convention): New function.
1977 (hppa64_store_return_value): New function.
1978 (hppa_frame_locals_address): Remove declaration, function does
1979 not exist anymore.
1980 (hppa_register_byte): Add support for PA64 ABI.
1981 (hppa_gdbarch_init): Add support for PA64 ABI.
1982 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1983 Make name 32bit explicit.
1984 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1985 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1986 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1987 (hppa64_hpux_frame_base_before_sigtramp): New function.
1988 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1989 * config/pa/tm-hppa64.h: Remove macros that are no longer
1990 necessary now that the gdbarch vector is properly setup.
1991 Transform some macros into function calls. Some minor cleanup.
1992 * config/pa/tm-hppah.h: Update function calls in macros
1993 following the function renaming in hppa-hpux-tdep.c.
1994 * Makefile.in (hppa_tdep_h): New variable.
1995 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1996
1997 2003-08-14 Michael Snyder <msnyder@redhat.com>
1998
1999 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2000
2001 2003-08-13 J. Brobecker <brobecker@gnat.com>
2002
2003 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2004 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2005 routine.
2006
2007 2003-08-13 Michael Snyder <msnyder@redhat.com>
2008
2009 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2010 (frv_saved_pc_after_call): Use deprecated ftype.
2011 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2012 (frv_remote_translate_xfer_address): Remove.
2013 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2014
2015 2003-08-13 J. Brobecker <brobecker@gnat.com>
2016
2017 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2018 initialization after the common gdbarch initialization, not before.
2019
2020 2003-08-13 J. Brobecker <brobecker@gnat.com>
2021
2022 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2023 (ADDR_BITS_REMOVE): Remove, redundant.
2024
2025 2003-08-13 J. Brobecker <brobecker@gnat.com>
2026
2027 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2028 gdbarch method to clear the 2 low bits of text addresses.
2029
2030 2003-08-12 Andrew Cagney <cagney@redhat.com>
2031
2032 * Makefile.in (dsrec.o): Update dependencies.
2033 * dsrec.c: Include "gdb_assert.h".
2034 (make_srec): Use snprintf instead of sprintf, use a literal format
2035 string.
2036
2037 2003-08-12 Andrew Cagney <cagney@redhat.com>
2038
2039 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2040 FRAME_OBSTACK_ZALLOC.
2041
2042 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2043
2044 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2045 SSE registers.
2046
2047 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2048
2049 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2050 amd64fbsd_sc_reg_offset): Add extern declarations.
2051 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2052 declarations.
2053
2054 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2055
2056 * MAINTAINERS (write after approval): Update my mail address.
2057
2058 2003-08-10 Andrew Cagney <cagney@redhat.com>
2059
2060 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2061
2062 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2063
2064 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2065 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2066 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2067 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2068 i386bsd_sc_reg_offset): Add extern declarations.
2069 * i386obsd-nat.c: Include "i386-tdep.h"
2070 (_initialize_i386obsd_nat): Remove extern declarations.
2071 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2072 declarations.
2073 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2074 declarations.
2075
2076 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2077 instead of frame_read_register.
2078 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2079 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2080 SP_REGNUM.
2081 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2082 instead of frame_unwind_unsigned_register. Use
2083 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2084 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2085 instead of read_register. Use builtin_type_void_data_ptr instead
2086 of builtin_type_void_func_ptr when extracting the address of the
2087 jmp_buf.
2088 (i386_extract_return_value, i386_store_return_value,
2089 i386_pseudo_register_read, i386_pseudo_register_write): Use
2090 register_size instead REGISTER_RAW_SIZE.
2091
2092 2003-08-10 Andrew Cagney <cagney@redhat.com>
2093
2094 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2095 sprintf. Make "name" constant.
2096
2097 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2098
2099 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2100 instead of frame_read_register.
2101 (i387_print_float_info): Use get_frame_register and
2102 get_frame_register_unsigned instead of frame_register_read.
2103
2104 * i386fbsd-nat.c: Include "i386-tdep.h".
2105 (child_resume): Make `eflags' an ULONGEST. Use
2106 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2107 instead of register_read and register_write.
2108
2109 * i386bsd-nat.c (fetch_inferior_registers,
2110 store_inferior_registers): Don't use && at the end of a line.
2111 (_initialize_i386bsd_nat): Fix typo.
2112
2113 * frame.c (_initialize_frame): Add missing backslash.
2114
2115 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2116 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2117 and supply_register instead of manipulating the register buffer
2118 directly.
2119
2120 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2121 * config/i386/nm-i386sol2.h
2122 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2123
2124 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2125 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2126 instructions that GCC likes to mingle into the prologue. Fixes
2127 gdb/1253 and gdb/1255.
2128
2129 2003-08-09 Andrew Cagney <cagney@redhat.com>
2130
2131 Fix GDB PR cli/926.
2132 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2133 * command.h (add_setshow_uinteger_cmd): Declare.
2134 * frame.c (set_backtrace_cmd): New function.
2135 (show_backtrace_cmd): New function.
2136 * frame.c (_initialize_frame): Replace "set/show
2137 backtrace-below-main" with "set/show backtrace past-main". Add
2138 command "set/show backtrace limit".
2139 (backtrace_past_main): Rename "backtrace_below_main".
2140 (backtrace_limit): New variable.
2141 (get_prev_frame): Update. Check the backtrace_limit.
2142
2143 2003-08-09 Andrew Cagney <cagney@redhat.com>
2144
2145 * defs.h (xstrprintf): Declare.
2146 * utils.c (xstrprintf): New function.
2147 * breakpoint.c (insert_breakpoints): Replace sprintf and
2148 non-literal format strings, with xstrprintf and cleanups.
2149 (delete_breakpoint,breakpoint_re_set): Ditto.
2150 (commands_command, insert_breakpoints): Ditto.
2151 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2152 (break_at_finish_command_1): Ditto.
2153
2154 2003-08-09 Andrew Cagney <cagney@redhat.com>
2155
2156 * MAINTAINERS (language support): List Adam Fedor as Objective C
2157 maintainer.
2158
2159 2003-08-08 J. Brobecker <brobecker@gnat.com>
2160
2161 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2162 are now multiarched.
2163
2164 2003-08-08 J. Brobecker <brobecker@gnat.com>
2165
2166 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2167 longer necessary now that hppa64 is partially multiarch'ed.
2168
2169 2003-08-08 Andrew Cagney <cagney@redhat.com>
2170
2171 * interps.c (interp_set): Check for a NULL "old_interp".
2172
2173 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2174
2175 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2176 (install-only): Support DESTDIR.
2177 (uninstall): Likewise.
2178 (install-gdbtk): Likewise.
2179
2180 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2181
2182 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2183 contains something meaningful at all times.
2184
2185 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2186
2187 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2188
2189 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2190
2191 * MAINTAINERS (write after approval): Added self.
2192
2193 2003-08-07 Andrew Cagney <cagney@redhat.com>
2194
2195 * inferior.h (AT_SYMBOL): Define.
2196 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2197 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2198 * mips-tdep.c (mips_call_dummy_address): Delete function.
2199 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2200 set call_dummy_address.
2201
2202 2003-08-07 Andrew Cagney <cagney@redhat.com>
2203
2204 * language.c (op_error): Delete function.
2205 (binop_type_check): Delete function.
2206 * language.h (type_op_error, range_op_error): Delete macros.
2207 (op_error): Delete declaration.
2208
2209 2003-08-07 Andrew Cagney <cagney@redhat.com>
2210
2211 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2212
2213 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2214
2215 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2216 (x86_64_push_arguments): Skip the red zone.
2217
2218 2003-08-05 Andrew Cagney <cagney@redhat.com>
2219
2220 * reggroups.c (reggroup_next): Check for the final entry.
2221
2222 2003-08-04 Andrew Cagney <cagney@redhat.com>
2223
2224 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2225 * cli/cli-script.c (define_command): Call query directly, instead
2226 of passing it a buffer.
2227 * ocd.c (ocd_error): Pass error a constant format string.
2228 * remote-mips.c (mips_error): Use fputs_filtered.
2229
2230 * solib-svr4.c (_initialize_svr4_solib): Update
2231 register_gdbarch_data call.
2232 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2233
2234 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2235 (register_gdbarch_data): Delete "free" parameter. Update
2236 comments.
2237 * gdbarch.h, gdbarch.c: Re-generate.
2238 * reggroups.c (_initialize_reggroup): Update.
2239 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2240 * frame-base.c (_initialize_frame_base): Update.
2241 * frame-unwind.c (_initialize_frame_unwind): Update.
2242 * user-regs.c (_initialize_user_regs): Update.
2243 * remote.c (_initialize_remote): Update.
2244 * regcache.c (_initialize_regcache): Update.
2245
2246 * regcache.c (xfree_regcache_descr): Delete function.
2247 (_initialize_regcache): Update call to register_gdbarch_data.
2248 (init_regcache_descr, init_legacy_regcache_descr): Use
2249 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2250
2251 * remote.c (free_remote_state): Delete function.
2252 (_initialize_remote): Update register_gdbarch_data.
2253 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2254 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2255
2256 2003-08-04 Andrew Cagney <cagney@redhat.com>
2257
2258 * reggroups.c (struct reggroup_el): Define.
2259 (struct reggroups): Delete field "nr_group". Replace array
2260 "group" with a "first" to "last" linked list.
2261 (reggroups_init): Update. Allocate using gdbarch's obstack.
2262 (reggroups_free): Delete function.
2263 (add_group): Update. Add "el" parameter.
2264 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2265 (default_groups): Update.
2266 (reggroup_next): Replace reggroups.
2267 (reggroups_dump): Update.
2268 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2269 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2270 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2271
2272 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2273
2274 * Makefile.in (tui-interp.o): Update dependencies.
2275
2276 2003-08-04 David Carlton <carlton@kealia.com>
2277
2278 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2279 to internal_error call.
2280 * source.c (forward_search_command): Add "%s" format argument.
2281 (reverse_search_command): Ditto.
2282 * top.c (quit_confirm): Ditto.
2283 * cli/cli-setshow.c (do_setshow_command): Ditto.
2284 * cp-valprint.c (cp_print_class_method): Replace
2285 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2286 (cp_print_class_member): Ditto.
2287 * event-top.c (command_line_handler): Ditto.
2288 * linux-proc.c (linux_info_proc_cmd): Ditto.
2289 * p-typeprint.c (pascal_type_print_base): Ditto.
2290 * p-valprint.c (pascal_object_print_class_method): Ditto.
2291 (pascal_object_print_class_member): Ditto.
2292 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2293 * remote.c (remote_cisco_section_offsets): Ditto.
2294 * top.c (command_line_input): Ditto.
2295 * utils.c (vwarning,error_stream,quit): Ditto.
2296 * valprint.c (print_floating,print_binary_chars)
2297 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2298
2299 2003-08-04 Andrew Cagney <cagney@redhat.com>
2300
2301 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2302
2303 2003-08-02 Andrew Cagney <cagney@redhat.com>
2304
2305 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2306 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2307 amd64fbsd-nat.c.
2308
2309 2003-08-02 Andrew Cagney <cagney@redhat.com>
2310
2311 * Makefile.in: Update all dependencies and definitions.
2312
2313 2003-08-02 Adam Fedor <fedor@gnu.org>
2314
2315 * linespec.c (is_objc_method_format): New function
2316 (decode_line_1, locate_first_half): Use it.
2317 Fixes PR objc/1298
2318
2319 2003-08-01 Andrew Cagney <cagney@redhat.com>
2320
2321 * NEWS: Mention that m32r is multi-arch.
2322 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2323 * configure.tgt: Recognize m32r-*-*.
2324 * config/m32r/tm-m32r.h: Delete file.
2325 * config/m32r/m32r.mt: New file.
2326 * m32r-rom.c (m32r_upload_command): Use hostent only when
2327 gethostname succeeds, in order to avoid a compilation
2328 warning.
2329 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2330 compiler warning.
2331
2332 2003-08-01 Michael Snyder <msnyder@redhat.com>
2333
2334 * sh-tdep.c (sh_frame_align): New gdbarch method.
2335 (sh_gdbarch_init): Set up frame_align method.
2336
2337 2003-07-31 Michael Snyder <msnyder@redhat.com>
2338
2339 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2340 which is already covered by the new frames infrastructure.
2341
2342 2003-07-31 Andrew Cagney <cagney@redhat.com>
2343
2344 * user-regs.c (struct user_reg): Add "next" link.
2345 (struct user_regs): Replace "user" with "first" and "last" links.
2346 (append_user_reg): Add pre-allocated "reg" parameter.
2347 (builtin_user_regs): Provide initial value for "last".
2348 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2349 (user_regs_init): Allocate memory from the gdbarch obstack.
2350 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2351 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2352 linked list.
2353 (usernum_to_user_reg): New function.
2354 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2355 (value_of_user_reg): Use usernum_to_user_reg.
2356 (user_regs_free): Delete function.
2357 (_initialize_user_regs): Update register_gdbarch_data call.
2358
2359 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2360
2361 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2362
2363 2003-07-30 Michael Snyder <msnyder@redhat.com>
2364
2365 * value.h (value_being_returned): Add a struct_addr argument.
2366 * infcall.c (call_function_by_hand): Pass struct_addr to
2367 value_being_returned.
2368 * infcmd.c (print_return_value): Pass zero as struct_addr.
2369 * values.c (value_being_returned): If struct_addr is passed,
2370 use it instead of trying to recover it from the inferior.
2371
2372 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2373
2374 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2375 the prologue analyzer won't need to attempt to extract the pc
2376 value from the woefully incomplete dummy frame.
2377 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2378 possible. Disable code which modifies the frame.
2379
2380 2003-07-28 Andrew Cagney <cagney@redhat.com>
2381
2382 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2383 to level 2.
2384 (annotate_breakpoints_table, annotate_record): Ditto.
2385 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2386 (annotate_field_name_end, annotate_field_value): Ditto.
2387 (annotate_field_end, annotate_frame_source_begin): Ditto.
2388 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2389 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2390 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2391 (annotate_frame_address_end, annotate_frame_address): Ditto.
2392 (annotate_frame_args, annotate_frame_end): Ditto.
2393 (annotate_frame_where, annotate_arg_begin): Ditto.
2394 (annotate_arg_name_end, annotate_arg_value): Ditto.
2395 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2396 (annotate_function_call, annotate_signal_name): Ditto.
2397 (annotate_signal_string, annotate_signal_name_end): Ditto.
2398 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2399 (annotate_value_begin, annotate_value_history_value): Ditto.
2400 (annotate_value_history_end, annotate_value_end): Ditto.
2401 (annotate_display_begin, annotate_display_number_end): Ditto.
2402 (annotate_display_format, annotate_display_expression): Ditto.
2403 (annotate_display_expression_end, annotate_display_value): Ditto.
2404 (annotate_display_end, annotate_array_section_begin): Ditto.
2405 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2406 (annotate_elt, annotate_array_section_end): Ditto.
2407
2408 2003-07-28 Andrew Cagney <cagney@redhat.com>
2409
2410 * regcache.c (struct regcache_descr): Update comments on
2411 nr_raw_registers.
2412 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2413 sizeof_raw_register_valid_p.
2414 (init_regcache_descr): Set nr_raw_registers and
2415 sizeof_raw_register_valid_p before calling
2416 init_legacy_regcache_descr.
2417
2418 2003-07-28 Andrew Cagney <cagney@redhat.com>
2419
2420 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2421 MOD NUM_REGS.
2422
2423 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2424
2425 * thread.c (info_threads_command): Use get_selected_frame ().
2426 Check that there is at least one non-sentinel frame.
2427
2428 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2429
2430 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2431 (m68hc11_pop_frame): Remove.
2432 (m68hc11_frame_saved_pc): Remove.
2433 (m68hc11_frame_chain): Remove.
2434 (m68hc11_frame_init_saved_regs): Remove.
2435 (m68hc11_init_extra_frame_info): Remove.
2436 (m68hc11_store_struct_return): Remove.
2437 (m68hc11_saved_pc_after_call): Remove.
2438
2439 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2440
2441 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2442 frame unwind information.
2443 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2444 and adapted for frame unwinding.
2445 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2446 (m68hc11_unwind_pc): New function.
2447 (m68hc11_frame_unwind_cache): New function to analyze frames.
2448 (m68hc11_frame_this_id): New function to create new frame struct.
2449 (m68hc11_frame_prev_register): New function to unwind a register from
2450 the frame.
2451 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2452 (m68hc11_frame_p): New function for the above.
2453 (m68hc11_frame_base_address): New function to return fp of frame.
2454 (m68hc11_frame_args_address): Update for frame.
2455 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2456 (m68hc11_unwind_sp): New function.
2457 (m68hc11_unwind_dummy_id): New function.
2458 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2459 calls.
2460
2461 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2462
2463 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2464 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2465 when we are beyond the current pc.
2466
2467 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2468
2469 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2470 from m68hc11_push_arguments.
2471 (m68hc11_push_arguments): Remove.
2472 (m68hc11_push_return_address): Remove.
2473 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2474 handlers; remove deprecated_extra_stack_alignment_needed.
2475
2476 2003-07-27 Andrew Cagney <cagney@redhat.com>
2477
2478 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2479 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2480 REAL_PC and not the pointer.
2481 * hppa-hpux-tdep.c: Include frame.h
2482
2483 2003-07-27 Andrew Cagney <cagney@redhat.com>
2484
2485 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2486 GDB_MULTI_ACH_PARTIAL.
2487
2488 2003-07-27 Andrew Cagney <cagney@redhat.com>
2489
2490 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2491 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2492 operator at start and not end of line.
2493 (decode_prologue): Ditto.
2494 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2495 frame_unwind_register_unsigned instead of
2496 frame_unwind_unsigned_register.
2497 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2498 read_register.
2499 (m32r_push_dummy_call): Use register_size instead of
2500 REGISTER_RAW_SIZE.
2501 (m32r_frame_sniffer): Replace m32r_frame_p.
2502 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2503 * m32r-rom.c (report_transfer_performance): Delete extern
2504 declaration.
2505 (m32r_load, m32r_upload_command): Use print_transfer_performance
2506 instead of report_transfer_performance.
2507 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2508 / add_show_from_set.
2509
2510 2003-07-26 Andrew Cagney <cagney@redhat.com>
2511
2512 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2513 store_return_value and extract_struct_value_address.
2514
2515 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2516
2517 PR c++/1267
2518 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2519 NULL, default to the section containing PC.
2520
2521 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2522
2523 * NEWS: Mention "regs" deprecated for m68hc11 too.
2524
2525 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2526 (m68hc11_print_register): New function to print out one register.
2527 (m68hc11_print_registers_info): New function to print registers.
2528 (show_regs): Deprecate and use the above.
2529 (m68hc11_gdbarch_init): Install the print_registers_info.
2530
2531 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2532
2533 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2534 that we have a SIGTRAP before returning non-zero.
2535
2536 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2537 Elena Zannoni <ezannoni@redhat.com>
2538
2539 * linespec.c (decode_line_2): Avoid crash if
2540 find_function_start_sal() returns empty record.
2541
2542 2003-07-23 Andreas Schwab <schwab@suse.de>
2543
2544 * ia64-tdep.c (ia64_print_insn): New function.
2545 (ia64_gdbarch_init): Set print_insn to it.
2546 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2547 deprecated_tm_print_insn_info.
2548
2549 2003-07-22 Michael Snyder <msnyder@redhat.com>
2550
2551 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2552 handle 8-bit returns (long long).
2553 (h8300h_extract_return_value): Ditto.
2554 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2555
2556 2003-07-22 Andrew Cagney <cagney@redhat.com>
2557
2558 * gdbarch.c Include "gdb_obstack.h".
2559 (struct gdbarch): Add an "obstack".
2560 (alloc_gdbarch_data): Allocate the gdbarch data using
2561 GDBARCH_OBSTACK_CALLOC.
2562 (free_gdbarch_data): Delete function.
2563 (gdbarch_obstack_zalloc): New function.
2564 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2565 Assert that the architecture is not initialized.
2566 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2567 vector from the obstack.
2568 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2569 architecture obstack.
2570 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2571 (set_gdbarch_data): Assert that the data is not initialized.
2572 (struct gdbarch_data): Delete member "free".
2573 (register_gdbarch_data): Do not initialize "free".
2574 * gdbarch.h, gdbarch.c: Re-generate.
2575
2576 2003-07-22 Andrew Cagney <cagney@redhat.com>
2577
2578 * configure.in (build_warnings): Add -Wformat-nonliteral.
2579 * configure: Re-generate.
2580
2581 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2582
2583 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2584
2585 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2586
2587 * findvar.c (read_var_value): Remove case for thread local storage
2588 variables. It is now entirely handled by the dwarf2 location
2589 expression code.
2590 * printcmd.c (address_info): Ditto.
2591 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2592 enumeration value.
2593 (struct symbol): Remove objfile field, which was used by
2594 LOC_THREAD_LOCAL_STATIC only.
2595 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2596 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2597 usage of objfile pointer.
2598 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2599 thread local variables.
2600 Add include of objfiles.h.
2601 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2602 storage variables.
2603 * Makefile.in (dwarf2loc.o): Update dependencies.
2604
2605 2003-07-22 Andrew Cagney <cagney@redhat.com>
2606
2607 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2608 get_frame_base.
2609 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2610 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2611 (struct value): Add opaque declaration.
2612 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2613
2614 2003-07-21 Andrew Cagney <cagney@redhat.com>
2615
2616 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2617 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2618
2619 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2620
2621 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2622 regcache_cooked_read_unsigned instead of read_register.
2623 (m68hc11_saved_pc_after_call): Likewise.
2624 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2625 instead of write_register.
2626 (m68hc11_register_type): New function.
2627 (m68hc11_register_virtual_type): Remove.
2628 (m68hc11_store_return_value): Convert to use the regcache.
2629 (m68hc11_extract_struct_value_address): Likewise.
2630 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2631 m68hc11_register_type; undeprecate store_return_value and
2632 extract_struct_value_address.
2633
2634 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2635
2636 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2637 and translate to use regcache.
2638 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2639
2640 2003-07-18 Andrew Cagney <cagney@redhat.com>
2641
2642 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2643 * gdbarch.h, gdbarch.c: Re-generate.
2644 * i386-tdep.c (i386_gdbarch_init): Do not set
2645 DWARF2_BUILD_FRAME_INFO.
2646 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2647 unconditionally.
2648 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2649 DWARF2_BUILD_FRAME_INFO.
2650
2651 2003-07-18 Andrew Cagney <cagney@redhat.com>
2652
2653 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2654 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2655
2656 2003-07-18 Andrew Cagney <cagney@redhat.com>
2657
2658 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2659 frame_unwind_address_in_block, instead of frame_pc_unwind.
2660 (dwarf2_frame_cache): Ditto.
2661
2662 2003-07-18 Andrew Cagney <cagney@redhat.com>
2663
2664 * user-regs.h (struct gdbarch): Declare opaque.
2665 * ui-out.h (struct ui_file): Declare opaque.
2666 * dwarf2-frame.h (struct frame_info): Declare opaque.
2667
2668 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2669
2670 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2671 #include "...".
2672 (procfs_meminfo): Change strerror to safe_strerror.
2673 (procfs_can_run): Remove K&R badness.
2674
2675 2003-07-17 Michael Snyder <msnyder@redhat.com>
2676
2677 * remote-sim.c: Comment typo fix.
2678
2679 2003-07-17 Andrew Cagney <cagney@redhat.com>
2680
2681 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2682 configure.
2683 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2684 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2685 GDB_MULTI_ARCH_PARTIAL.
2686
2687 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2688
2689 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2690 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2691 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2692
2693 2003-07-16 Theodore A. Roth <troth@openavr.org>
2694
2695 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2696 found.
2697 (avr_frame_unwind_cache): Don't unwind FP for main.
2698 Update a comment.
2699 Save the computed prev_sp.
2700 (avr_saved_regs_unwinder): Remove function.
2701 (avr_frame_prev_register): Use PC unwind logic from
2702 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2703
2704 2003-07-16 Andrew Cagney <cagney@redhat.com>
2705
2706 * frame-base.h (frame_base_p_ftype): Delete definition.
2707 (frame_base_append_predicate): Delete declaration.
2708 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2709 (frame_unwind_append_predicate): Delete declaration.
2710 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2711 (append_predicate): Delete parameter "p".
2712 (frame_unwind_append_predicate): Delete function.
2713 (frame_unwind_append_sniffer): Update call to append_predicate.
2714 (frame_unwind_free): Delete function.
2715 (_initialize_frame_unwind): Pass NULL as "free" to
2716 register_gdbarch_data.
2717 (frame_unwind_init): Append the dummy_frame_sniffer.
2718 (frame_unwind_find_by_frame): Simplify.
2719 * frame-base.c (struct frame_base_table): Delete field "p".
2720 (append_predicate): Delete parameter "p".
2721 (frame_base_append_predicate): Delete function.
2722 (frame_base_append_sniffer): Update call to append_predicate.
2723 (frame_base_free): Delete function.
2724 (frame_base_find_by_frame): Simplify.
2725 (_initialize_frame_base): Pass NULL as "free" to
2726 register_gdbarch_data.
2727 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2728 (x86_64_sigtramp_frame_sniffer): Replace
2729 "x86_64_sigtramp_frame_p".
2730 (x86_64_init_abi): Set the frame unwind sniffers.
2731 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2732 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2733 (m68k_gdbarch_init): Set the frame unwind sniffers.
2734 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2735 "i386_sigtramp_frame_p".
2736 (i386_frame_sniffer): Replace "i386_frame_p".
2737 (i386_gdbarch_init): Set the frame unwind sniffers.
2738 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2739 (avr_gdbarch_init): Set the frame unwind sniffers.
2740 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2741 "alpha_sigtramp_frame_p"
2742 (alpha_heuristic_frame_sniffer): Replace
2743 "alpha_heuristic_frame_p".
2744 (alpha_gdbarch_init): Set the frame unwind sniffers.
2745 (alpha_dwarf2_init_abi): Ditto.
2746 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2747 "alpha_debug_frame_p".
2748 (alpha_mdebug_frame_base_sniffer): Replace
2749 "alpha_mdebug_frame_base_p".
2750 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2751 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2752 (d10v_gdbarch_init): Set the frame unwind sniffer.
2753 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2754 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2755 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2756 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2757 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2758 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2759
2760 2003-07-16 Michael Snyder <msnyder@redhat.com>
2761
2762 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2763 should go thru sh_dsp_register_sim_regno, else the dsp regs
2764 will not get the right values.
2765
2766 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2767
2768 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2769 deprecated_store_floating by call to store_typed_floating.
2770 (sh_sh4_register_convert_to_raw): Substitute call to
2771 deprecated_extract_floating by call to extract_typed_floating.
2772
2773 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2774
2775 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2776
2777 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2778
2779 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2780 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2781 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2782 as possible.
2783 (do_pseudo_register): Remove.
2784 (sh_push_dummy_code): New function.
2785 (sh64_store_struct_return): Rename from sh_store_struct_return.
2786 Only called for sh64 now.
2787 (sh_extract_struct_value_address): Regcache'ify.
2788 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2789 and accomodate new tasks.
2790 (sh64_push_return_address): Rename from sh_push_return_address.
2791 Only called for sh64 now.
2792 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2793 Regcache'ify.
2794 (sh3e_sh4_extract_return_value): Regcache'ify.
2795 (sh_default_store_return_value): Ditto.
2796 (sh3e_sh4_store_return_value): Ditto.
2797 (sh_default_register_byte): Remove.
2798 (sh_sh4_register_byte): Remove.
2799 (sh_default_register_raw_size): Remove.
2800 (sh_sh4_register_raw_size): Remove.
2801 (sh_register_virtual_size): Remove.
2802 (sh_sh3e_register_virtual_type): Remove.
2803 (sh_sh3e_register_type): New function.
2804 (sh_sh4_register_virtual_type): Remove.
2805 (sh_sh4_register_type): New function.
2806 (sh_default_register_virtual_type): Remove.
2807 (sh_default_register_type): New function.
2808 (do_fv_register_info): Add parameters to accomodate call from
2809 sh_print_registers_info.
2810 (do_dr_register_info): Ditto.
2811 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2812 Add parameters to accomodate call from sh_print_registers_info.
2813 (sh_do_fp_register): Ditto.
2814 (sh64_do_pseudo_register): Call do_dr_register_info,
2815 do_fv_register_info and sh_do_fp_register with default parameters.
2816 (sh_do_register): Add parameters to accomodate call from
2817 sh_print_registers_info.
2818 (sh_print_register): Ditto.
2819 (sh_print_registers_info): Rename from sh_do_registers_info.
2820 Add parameters to be used as gdbarch_print_registers_info
2821 implementation. Accomodate removed do_pseudo_register function
2822 pointer.
2823 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2824 function pointer. Call sh_print_register with default parameters.
2825 (sh64_do_registers_info): Call sh_print_registers_info instead of
2826 sh_do_registers_info.
2827 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2828 detection of deprecated vs. non-deprecated functionality.
2829 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2830 function pointer assignments by direct function calls.
2831
2832 2003-07-15 Andrew Cagney <cagney@redhat.com>
2833
2834 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2835 (frame_register_unwind, create_new_frame): Ditto.
2836 (legacy_get_prev_frame, get_frame_type): Ditto.
2837 (get_frame_base_address): Use frame_base_find_by_frame.
2838 (get_frame_locals_address): Use frame_base_find_by_frame.
2839 (get_frame_args_address): Use frame_base_find_by_frame.
2840 * frame-base.h (frame_base_sniffer_ftype): Declare.
2841 (frame_base_append_sniffer): Declare.
2842 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2843 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2844 (frame_base_append_sniffer): New function.
2845 (frame_base_append_predicate): Add a NULL sniffer.
2846 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2847 (struct frame_base_table): Add "sniffer".
2848 (frame_base_free): Free the "sniffer" table.
2849 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2850 (frame_unwind_append_sniffer): Declare.
2851 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2852 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2853 (struct frame_unwind_table): Add "sniffer", delete "middle".
2854 (append_predicate): Add "sniffer" parameter, append the sniffer.
2855 (frame_unwind_init): Update append_predicate call.
2856 (frame_unwind_append_sniffer): New function.
2857 (frame_unwind_append_predicate): Update append_predicate call.
2858 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2859
2860 2003-07-15 Andrew Cagney <cagney@redhat.com>
2861
2862 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2863 before code inhibiting repeated unwind attempts. Add to
2864 commentary on that test's problems.
2865 * blockframe.c (inside_main_func): Look for "main" in the minimal
2866 symbol table.
2867 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2868 identical.
2869
2870 2003-07-15 Andrew Cagney <cagney@redhat.com>
2871
2872 * complaints.c (struct explanation): Define.
2873 (struct complaints): Change type of "explanation" to "struct
2874 explanation".
2875 (symfile_explanations): Convert to a "struct explanation" table.
2876 (vcomplaint): Update.
2877
2878 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2879
2880 * x86-64-linux-nat.c (regmap): Removed.
2881 (supply_gregset, fill_gregset): Call
2882 x86_64_linux_(fill,supply)_gregset functions.
2883 * x86-64-linux-tdep.c (USER_*): New defines.
2884 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2885 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2886 New functions.
2887 (fetch_core_registers): Ditto.
2888 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2889 * x86-64-linux-tdep.h: New file.
2890 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2891 and core-regset.o.
2892 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2893
2894 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2895
2896 * x86-64-tdep.c (x86_64_store_return_value): Use
2897 regcache_cooked_write_part instead of regcache_cooked_write.
2898
2899 * configure.host: Add x86_64-*-freebsd*.
2900 * configure.tgt: Add x86_64-*-freebsd*.
2901 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2902 * amd64fbsd-nat.c: New file.
2903 * amd64fbsd-tdep.c: New file.
2904 * config/i386/nm-fbsd64.h: New file.
2905 * config/i386/fbsd64.mh: New file.
2906 * config/i386/fbsd64.mt: New file.
2907
2908 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2909
2910 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2911 `sc_regs_offset' and `sc_fpregs_offset'.
2912 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2913 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2914 (alpha_sigtramp_register_address): Rewrite to use new members of
2915 `struct gdbarch_tdep'.
2916 (alpha_gdbarch_init): Initialize new members of struct
2917 gdbarch_tdep'.
2918 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2919 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2920 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2921 (alphafbsd_pc_in_sigtramp): Implement.
2922 (alphafbsd_sigtramp_offset): New function.
2923 (alphafbsd_sigcontext_addr): New function.
2924 (alphafbsd_init_abi): Initialize signal trampoline related members
2925 of `struct gdbarch_tdep'.
2926 (_initialize_alphafbsd_tdep): Add prototype.
2927
2928 2003-07-11 Theodore A. Roth <troth@openavr.org>
2929
2930 * Makefile.in (install-only): Quote sed expression when generating
2931 transformed_name.
2932
2933 2003-07-11 Richard Henderson <rth@redhat.com>
2934
2935 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2936 * dwarf2-frame.c: Include complaints.h.
2937 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2938 variable initialization; return NULL on error.
2939 (decode_frame_entry): New.
2940
2941 2003-07-11 Andrew Cagney <cagney@redhat.com>
2942
2943 * frame.h (frame_address_in_block): Delete declaration.
2944 * blockframe.c (frame_address_in_block): Delete function.
2945 (get_frame_block): Use get_frame_address_in_block.
2946 (block_innermost_frame): Ditto.
2947 * stack.c (print_frame, backtrace_command_1): Ditto.
2948
2949 * frame.h (get_frame_address_in_block): Declare.
2950 (frame_unwind_address_in_block): Declare.
2951 * frame.c (frame_unwind_address_in_block): New function.
2952 (get_frame_address_in_block): New function.
2953
2954 2003-07-10 Andrew Cagney <cagney@redhat.com>
2955
2956 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2957 pre-default. Note: re-generate has no effect.
2958
2959 2003-07-10 Andrew Cagney <cagney@redhat.com>
2960
2961 * gdbarch.sh: When a variable, but not a function, compare against
2962 0. Fix problem in previous patch.
2963 * gdbarch.c: Re-generate.
2964
2965 2003-07-10 Andrew Cagney <cagney@redhat.com>
2966
2967 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2968 functions against NULL, not 0.
2969 * gdbarch.c: Re-generate.
2970
2971 2003-07-10 Fred Fish <fnf@ninemoons.com>
2972
2973 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2974 null string instead of a null pointer.
2975 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2976
2977 2003-07-09 Michael Snyder <msnyder@redhat.com>
2978
2979 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2980
2981 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2982
2983 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2984 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2985 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2986 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2987 * x86-64-tdep.c: ... from here.
2988
2989 2003-07-09 Andreas Schwab <schwab@suse.de>
2990
2991 * m68k-tdep.h (enum struct_return): Define.
2992 (struct gdbarch_tdep): Add struct_return.
2993 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2994 bytes are padded to the right, not to the left. Pass struct value
2995 address in register %a1, not on stack.
2996 (m68k_use_struct_convention): New function.
2997 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2998 struct_return in tdep to pcc_struct_return.
2999 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3000 reg_struct_return.
3001
3002 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3003
3004 * somread.c (som_symfile_offsets): Fix compilation error.
3005
3006 2003-07-09 Andrew Cagney <cagney@redhat.com>
3007
3008 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3009 Add comments about the checks.
3010
3011 2003-07-08 Andrew Cagney <cagney@redhat.com>
3012
3013 * Makefile.in: Make dependency section headers consistent.
3014 (config_h): Move to $BUILD headers section.
3015 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3016 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3017 (ada-exp.tab.c): Move to YACC/LEX section.
3018 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3019 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3020
3021 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3022
3023 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3024 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3025 of strerror with safe_strerror, use ISO C function definitions,
3026 and replace instances of sprintf with snprintf.
3027
3028 2003-07-07 Andrew Cagney <cagney@redhat.com>
3029
3030 * frame.c (get_prev_frame): Enable check for identical frames.
3031 Update comments. Update error messages.
3032
3033 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3034
3035 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3036
3037 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3038
3039 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3040 sort_symtab_syms, no longer necessary.
3041
3042 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3043
3044 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3045
3046 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3047
3048 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3049 (mips_register_byte): Likewise.
3050
3051 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3052
3053 * Makefile.in (sparc_tdep_h): New.
3054 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3055 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3056 * sparc-linux-nat.c: Include "sparc-tdep.h".
3057 * sparc-nat.c: Likewise.
3058 * sparc-tdep.c: Likewise.
3059 * sparc64nbsd-nat.c: Likewise.
3060 * sparcnbsd-nat.c: Likewise.
3061 * sparcnbsd-tdep.c: Likewise.
3062 * sparc-tdep.h: New file.
3063 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3064 and sparc_npc_regnum.
3065
3066 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3067
3068 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3069 (mips_linux_cannot_store_register): List supported instead of
3070 unsupported registers.
3071
3072 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3073
3074 * disasm.c (dump_insns): Separate instructions from addresses.
3075
3076 2003-07-07 Andreas Schwab <schwab@suse.de>
3077
3078 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3079 dependencies.
3080 * m68k-tdep.c (NUM_FREGS): Delete.
3081 (SIG_PC_FP_OFFSET): Delete.
3082 (TARGET_M68K): Delete.
3083 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3084 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3085 P_MOVEL_SP, P_MOVEML_SP): Define.
3086 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3087 P_TRAP): Delete.
3088 (m68k_register_raw_size): Delete.
3089 (m68k_register_virtual_size): Delete.
3090 (m68k_register_type): Renamed from m68k_register_virtual_type and
3091 add gdbarch argument.
3092 (m68k_store_struct_return): Delete.
3093 (m68k_deprecated_extract_return_value): Delete.
3094 (m68k_deprecated_extract_struct_value_address): Delete.
3095 (m68k_frame_chain): Delete.
3096 (m68k_frame_saved_pc): Delete.
3097 (m68k_fix_call_dummy): Delete.
3098 (m68k_push_dummy_frame): Delete.
3099 (m68k_pop_frame): Delete.
3100 (m68k_extract_return_value): New function.
3101 (m68k_store_return_value): Rewrite using regcache.
3102 (m68k_extract_struct_value_address): Rewrite using regcache.
3103 (m68k_push_dummy_call): New function.
3104 (struct m68k_frame_cache): Define.
3105 (m68k_alloc_frame_cache): New function.
3106 (m68k_analyze_frame_setup): New function.
3107 (m68k_analyze_register_saves): New function.
3108 (m68k_analyze_prologue): New function.
3109 (m68k_skip_prologue): Rewrite using above functions.
3110 (m68k_unwind_pc): New function.
3111 (m68k_frame_cache): New function.
3112 (m68k_frame_this_id): New function.
3113 (m68k_frame_prev_register): New function.
3114 (m68k_frame_unwind): New variable.
3115 (m68k_frame_p): New function.
3116 (m68k_sigtramp_frame_cache): New function.
3117 (m68k_sigtramp_frame_this_id): New function.
3118 (m68k_sigtramp_frame_prev_register): New function.
3119 (m68k_sigtramp_frame_unwind): New variable.
3120 (m68k_sigtramp_frame_p): New function.
3121 (m68k_frame_base_address): New function.
3122 (m68k_frame_base): New function.
3123 (m68k_unwind_dummy_id): New function.
3124 (fill_gregset): Use regcache_collect.
3125 (fill_fpregset): Likewise.
3126 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3127 defined.
3128 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3129 deprecated_init_frame_pc, deprecated_store_struct_return,
3130 deprecated_extract_return_value, deprecated_store_return_value,
3131 deprecated_frame_chain, deprecated_frame_saved_pc,
3132 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3133 deprecated_register_virtual_size,
3134 deprecated_max_register_raw_size,
3135 deprecated_max_register_virtual_size,
3136 deprecated_register_virtual_type, deprecated_register_size,
3137 deprecated_register_byte, deprecated_register_bytes,
3138 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3139 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3140 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3141 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3142 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3143 deprecated_push_dummy_frame, deprecated_pop_frame,
3144 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3145 only if SYSCALL_TRAP is defined. Set extract_return_value,
3146 store_return_value, extract_struct_value_address, register_type,
3147 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3148 predicates.
3149 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3150 M68K_MAX_REGISTER_SIZE): Define.
3151 (struct m68k_sigtramp_info): Define.
3152 (struct gdbarch_tdep): Add get_sigtramp_info.
3153 * m68klinux-nat.c (fetch_register): Use register_size instead of
3154 REGISTER_RAW_SIZE. Don't put assignment in if.
3155 (store_register): Likewise.
3156 (fetch_inferior_registers): Likewise.
3157 (store_inferior_registers): Likewise.
3158 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3159 (m68k_linux_frame_saved_pc): Delete.
3160 (m68k_linux_sigcontext_reg_offset,
3161 m68k_linux_ucontext_reg_offset): Define.
3162 (m68k_linux_get_sigtramp_info): New function.
3163 (m68k_linux_extract_return_value): Rewrite using regcache.
3164 (m68k_linux_store_return_value): Likewise.
3165 (m68k_linux_extract_struct_value_address): Likewise.
3166 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3167 Don't set deprecated_frame_saved_pc,
3168 deprecated_extract_return_value, deprecated_store_return_value,
3169 deprecated_extract_struct_value_address. Set
3170 extract_return_value, store_return_value,
3171 extract_struct_value_address.
3172
3173 2003-07-07 Andrew Cagney <cagney@redhat.com>
3174
3175 * expprint.c: Include "user-regs.h" instead of "frame.h".
3176 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3177 frame_map_regnum_to_name.
3178 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3179 (frame_map_name_to_regnum): Simplify, call
3180 user_reg_map_name_to_regnum.
3181 (frame_map_regnum_to_name): Simplify, call
3182 user_reg_map_regnum_to_name.
3183 (frame_register_unwind): Update.
3184 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3185 (_initialize_frame_reg): Call user_reg_add_builtin.
3186 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3187 (value_of_register): Use value_of_user_reg.
3188 * eval.c (evaluate_subexp_standard): Update.
3189 * parse.c (write_dollar_variable): Update.
3190 * d10v-tdep.c (d10v_print_registers_info): Update.
3191 * infcmd.c (registers_info): Update.
3192 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3193 (builtin_regs_h): Delete macro.
3194 (user_regs_h): Define.
3195 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3196 (builtin-regs.o): Delete target.
3197 (user-regs.o): Specify dependencies.
3198 (expprint.o): Update dependencies.
3199 (findvar.o): Update dependencies.
3200 (frame.o): Update dependencies.
3201 (std-regs.o): Update dependencies.
3202
3203 2003-07-06 Christopher Faylor <cgf@redhat.com>
3204
3205 * win32-nat.c (solib_symbols_add): Use one variable for all section
3206 address stuff. Pass variable rather than address of variable to
3207 safe_symbol_file_add.
3208
3209 2003-07-06 Andreas Schwab <schwab@suse.de>
3210
3211 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3212
3213 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3214
3215 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3216
3217 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3218
3219 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3220
3221 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3222
3223 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3224 * config/i386/nto.mh: New file.
3225 * config/i386/nm-nto.h: New file.
3226 * configure.host: Add i[3456]86-*-nto*.
3227
3228 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3229
3230 * remote-vx.c (vx_add_symbols): Fix compilation error.
3231
3232 2003-07-03 Andrew Cagney <cagney@redhat.com>
3233
3234 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3235 * gdbarch.h, gdbarch.c: Re-generate.
3236 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3237 (legacy_register_name): Declare.
3238 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3239 (REGISTER_NAME): Define.
3240 * sparc-tdep.c (legacy_register_name): New function.
3241 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3242 (REGISTER_NAME): Define.
3243 (hppa64_register_name): Declare.
3244 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3245 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3246 (hppa64_register_name): New function.
3247 (hppa_register_name): New function.
3248 * arch-utils.c (legacy_register_name): Delete.
3249 * arch-utils.h (legacy_register_name): Delete.
3250
3251 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3252
3253 * cli/cli-interp.c (cli_interpreter_resume): Update the
3254 cli_uiout's stream to gdb_stdout.
3255
3256 2003-07-03 Andrew Cagney <cagney@redhat.com>
3257
3258 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3259 predicate.
3260 * gdbarch.h, gdbarch.c: Re-generate.
3261 * regcache.c (init_regcache_descr): Use legacy code when either
3262 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3263
3264 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3265
3266 * NEWS: Move "set logging" entry into GDB 6.0 section.
3267
3268 2003-07-02 Jim Blandy <jimb@redhat.com>
3269
3270 * s390-tdep.c (struct frame_extra_info): new member:
3271 'stack_bought_valid'.
3272 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3273 initialize fextra_info->stack_bought.
3274 (s390_frameless_function_invocation): Don't trust the value of
3275 fextra_info_ptr->stack_bought unless
3276 fextra_info->stack_bought_valid is set.
3277
3278 New S390 prologue analyzer.
3279 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3280 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3281 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3282 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3283 compute_x_addr, s390_on_stack, s390_store,
3284 s390_get_signal_frame_info): New functions.
3285 (S390_NUM_SPILL_SLOTS): New macro.
3286 (s390_get_frame_info): Rewritten.
3287 (is_arg_reg): Deleted.
3288
3289 Break out the decoding of S/390 instructions into separate
3290 functions, to make it more legible, and easier to check
3291 against the spec.
3292 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3293 is_rx, is_rxe): New functions.
3294 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3295 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3296 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3297 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3298 enums for opcode values. (Is this an improvement?)
3299
3300 2003-07-02 Andrew Cagney <cagney@redhat.com>
3301
3302 * i386-tdep.c: Revert change committed as part of trad-frame code
3303 below.
3304
3305 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3306
3307 * breakpoint.c (insert_catchpoint): Make static.
3308
3309 2003-07-02 Andreas Schwab <schwab@suse.de>
3310
3311 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3312 former ia64_push_arguments and ia64_push_return_address, and use
3313 regcache functions instead of read/write_register.
3314 (ia64_gdbarch_init): Set push_dummy_call instead of
3315 deprecated_push_arguments and deprecated_push_return_address.
3316
3317 2003-07-01 Andreas Jaeger <aj@suse.de>
3318
3319 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3320 before the call.
3321 Set %rax only to number of SSE registers used.
3322
3323 2003-07-01 Andrew Cagney <cagney@redhat.com>
3324
3325 * trad-frame.h: Update comments, a -1 .addr is reserved.
3326 (trad_frame_value_p, trad_frame_addr_p): Declare.
3327 (trad_frame_reg_p): Declare.
3328 (trad_frame_set_value): Rename trad_frame_register_value.
3329 (trad_frame_set_unknown): Declare.
3330 * trad-frame.c (trad_frame_realreg_p): New function.
3331 (trad_frame_addr_p, trad_frame_value_p): New function.
3332 (trad_frame_set_unknown): New function.
3333 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3334 (trad_frame_prev_register): Use trad_frame_realreg_p,
3335 trad_frame_addr_p and trad_frame_value_p.
3336 (trad_frame_set_value): Rename trad_frame_register_value.
3337 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3338 and trad_frame_set_value.
3339
3340 2003-06-30 Jim Blandy <jimb@redhat.com>
3341
3342 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3343 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3344 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3345 for 16 registers, and then 32 more bytes.
3346 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3347 New macros.
3348 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3349 Move up in the file, since it's now used by is_simple_arg.
3350 (is_simple_arg): Don't assume registers are four bytes long.
3351 Exclude all double arguments. Extended floats are not simple
3352 args.
3353 (is_power_of_two): New function.
3354 (pass_by_copy_ref): Call is_power_of_two, and check that the
3355 length fits in a register, rather than listing all the acceptable
3356 sizes. Extended floats are not passed by reference.
3357 (s390_push_arguments): Don't assume registers are four bytes long.
3358 Reserve an argument register to point to the buffer for structures
3359 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3360 S390_STACK_FRAME_OVERHEAD.
3361
3362 2003-06-30 Andreas Schwab <schwab@suse.de>
3363
3364 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3365 format error message.
3366
3367 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3368
3369 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3370
3371 2003-06-30 David Carlton <carlton@kealia.com>
3372
3373 Band-aid for PR c++/1245.
3374 * Makefile.in (cp-support.o): Depend on complaints_h.
3375 * cp-support.c: Include complaints.h. Add declaration for
3376 find_last_component.
3377 (cp_find_first_component): Separate code into
3378 cp_find_first_component_aux.
3379 (cp_find_first_component_aux): Call demangled_name_complaint.
3380 (demangled_name_complaint): New.
3381
3382 2003-06-30 Andrew Cagney <cagney@redhat.com>
3383
3384 * remote.c (remote_write_bytes): Explicitly compute and then use
3385 the payload size. Update comments to reflect. Fixes problem of
3386 GDB not sending small packets as found by Fred Fish.
3387
3388 2003-06-30 Andrew Cagney <cagney@redhat.com>
3389
3390 * remote.c (remote_async_wait): Fix -Wformat problem.
3391
3392 2003-06-29 Andrew Cagney <cagney@redhat.com>
3393
3394 * remote.c (remote_wait): Call error, and not warning, when the
3395 packet is corrupt.
3396 (remote_async_wait): Ditto.
3397
3398 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3399
3400 * sparc-tdep.c (sparc_y_regnum): Make external again.
3401
3402 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3403
3404 * cli/cli-logging.c (pop_output_files): Add void to function
3405 definition.
3406
3407 2003-06-29 Andrew Cagney <cagney@redhat.com>
3408
3409 * frame.c (frame_register_unwind): Use unsigned char when dumping
3410 the buffer contents.
3411
3412 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3413
3414 * cli/cli-logging.c: New file.
3415 * cli-out.c (struct ui_out_data): Add original_stream.
3416 (cli_redirect): New function.
3417 (cli_ui_out_impl): Add cli_redirect.
3418 (cli_out_new): Initialize original_stream.
3419 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3420 (uo_redirect, ui_out_redirect): New.
3421 * ui-out.h (struct ui_out_impl): Add redirect member.
3422 (redirect_ftype): New.
3423 (ui_out_redirect): Add prototype.
3424 * Makefile.in: Add rules for cli-logging.c.
3425 * NEWS: Mention "set logging".
3426
3427 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3428
3429 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3430
3431 2003-06-27 Andrew Cagney <cagney@redhat.com>
3432
3433 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3434 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3435 * avr-tdep.c (avr_call_dummy_address): Delete function.
3436 (avr_gdbarch_init): Do not set call_dummy_address.
3437
3438 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3439
3440 * symfile.c (syms_from_objfile): Move variables to inner block.
3441 Move the checks for the non-mainline case a bit earlier to avoid
3442 doing some useless computations.
3443
3444 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3445
3446 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3447
3448 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3449
3450 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3451 sections.
3452
3453 2003-06-26 Michael Chastain <mec@shout.net>
3454
3455 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3456 gdb/testsuite/gdb.c++/pr-1210.exp.
3457
3458 2003-06-26 Andrew Cagney <cagney@redhat.com>
3459
3460 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3461 altivec_expression.h and altivec_registers.h.
3462
3463 2003-06-26 Andrew Cagney <cagney@redhat.com>
3464
3465 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3466 info->mach when MIPS16. Patch suggested by Fred Fish.
3467
3468 2003-06-26 Andrew Cagney <cagney@redhat.com>
3469
3470 * utils.c (internal_vproblem): Print the problem to a reason
3471 buffer and then pass to query. Make the msg variable more local.
3472
3473 2003-06-26 Andrew Cagney <cagney@redhat.com>
3474
3475 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3476 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3477 * gdbarch.h, gdbarch.c: Re-generate.
3478 * frame-base.c (default_frame_args_address): Update. Use
3479 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3480 not available.
3481 (default_frame_locals_address): Ditto for
3482 DEPRECATED_FRAME_LOCALS_ADDRESS.
3483 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3484 (vax_frame_num_args): Update.
3485 (vax_gdbarch_init): Update.
3486 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3487 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3488 * mcore-tdep.c (mcore_gdbarch_init): Update.
3489 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3490 * ia64-tdep.c (ia64_gdbarch_init): Update.
3491 * symtab.h (address_class): Update comments.
3492 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3493 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3494 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3495 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3496 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3497 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3498 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3499 * alpha-mdebug-tdep.c: Update.
3500 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3501
3502 2003-06-26 Andreas Jaeger <aj@suse.de>
3503
3504 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3505 of SSE registers so that varargs functions work. Rework handling
3506 of passing arguments on the stack.
3507 (x86_64_store_return_value): Return double and float values in SSE
3508 register.
3509
3510 2003-06-24 Michael Chastain <mec@shout.net>
3511
3512 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3513 the "constructor breakpoints ignored" bug.
3514
3515 2003-06-25 David Carlton <carlton@kealia.com>
3516
3517 * MAINTAINERS: Update e-mail address.
3518
3519 2003-06-24 Jim Blandy <jimb@redhat.com>
3520
3521 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3522
3523 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3524 function.
3525 (ppc_linux_init_abi): Register it as the
3526 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3527
3528 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3529 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3530 method.
3531
3532 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3533 (ppc64_standard_linkage_target): Use it.
3534
3535 2003-06-23 Andrew Cagney <cagney@redhat.com>
3536
3537 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3538 for 0 "int0" and 4 "int32" sized registers.
3539 * gdbtypes.c (builtin_type_int0): Define.
3540 (build_gdbtypes): Initialize builtin_type_int0.
3541 * gdbtypes.h (builtin_type_int0): Declare.
3542
3543 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3544
3545 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3546 as characters are unsigned.
3547
3548 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3549
3550 PR gdb/1179
3551 * dwarfread.c (struct_type): Skip static fields without crashing.
3552
3553 2003-06-22 Andrew Cagney <cagney@redhat.com>
3554
3555 GDB 6.0 branch created.
3556 * README: Update.
3557 * PROBLEMS: Update. Empty.
3558 * NEWS: Update.
3559
3560 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3561
3562 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3563 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3564
3565 2003-06-22 Andrew Cagney <cagney@redhat.com>
3566
3567 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3568 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3569 Velikov.
3570
3571 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3572
3573 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3574 compilers.
3575
3576 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3577
3578 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3579 argument of val_print.
3580 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3581 to the address argument of baseclass_offset or target_read_memory.
3582 Do add it to the argument of cp_print_value_fields.
3583
3584 2003-06-21 Andrew Cagney <cagney@redhat.com>
3585
3586 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3587 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3588 instead of 0..NUM_REGS.
3589 (mips_register_reggroup_p): New function.
3590 (mips_pseudo_register_write): New function.
3591 (mips_pseudo_register_read): New function.
3592 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3593 based on the register's type.
3594 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3595 cooked.
3596 (mips_get_saved_register): Simplify. Assert that REGNO is a
3597 pseudo / cooked.
3598 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3599 (mips_register_type): Replace mips_register_virtual_type. Map
3600 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3601 when available.
3602 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3603 that the register is cooked / virtual.
3604 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3605 Only get the extra info when needed.
3606 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3607 (mips32_heuristic_proc_desc): Fetch the cooked register.
3608 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3609 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3610 (mips_print_register): Use gdbarch_register_type, instead of
3611 REGISTER_VIRTUAL_TYPE.
3612 (print_gp_register_row): Use gdbarch_register_type, instead of
3613 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3614 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3615 Print the pseudo / cooked registers.
3616 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3617 Print the pseudo / cooked registers.
3618 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3619 REG_NUM is pseudo / cooked.
3620 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3621 (mips_n32n64_xfer_return_value): Ditto.
3622 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3623 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3624 (mips_register_sim_regno): New function.
3625 (mips_gdbarch_init): Set deprecated_register_byte,
3626 register_group_p, pseudo_register_write, pseudo_register_read,
3627 register_sim_regno, and num_pseudo_regs. Set register_type,
3628 instead of register_virtual_type.
3629 * Makefile.in (mips-tdep.o): Update dependencies.
3630 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3631 REGISTER_VIRTUAL_TYPE.
3632 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3633 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3634 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3635 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3636 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3637
3638 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3639
3640 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3641 * cli/cli-cmds.c: Include "gdb_vfork.h".
3642 (shell_escape): Use vfork.
3643
3644 2003-06-21 Andrew Cagney <cagney@redhat.com>
3645
3646 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3647 32 bit floating-point register saves.
3648
3649 * frame.h (deprecated_unwind_get_saved_register): Delete.
3650 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3651 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3652 and deprecated_get_next_frame_hack instead of
3653 deprecated_unwind_get_saved_register.
3654
3655 * mips-tdep.c (mips_dump_tdep): Do not print
3656 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3657
3658 * frame.c (get_frame_register): New function.
3659 (frame_unwind_register_signed): New function.
3660 (get_frame_register_signed): New function.
3661 (frame_unwind_register_unsigned): New function.
3662 (get_frame_register_unsigned): New function.
3663 * frame.h: Add comments on naming schema.
3664 (get_frame_register, frame_unwind_register_signed): Declare.
3665 (get_frame_register_signed, get_frame_register_signed): Declare.
3666 (frame_unwind_register_unsigned): Declare.
3667 (get_frame_register_unsigned): Declare.
3668
3669 2003-06-20 Theodore A. Roth <troth@openavr.org>
3670
3671 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3672
3673 2003-06-20 Theodore A. Roth <troth@openavr.org>
3674
3675 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3676 (avr_read_sp): Ditto.
3677
3678 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3679
3680 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3681 * config/arm/nm-linux.h: Likewise.
3682 * config/arm/tm-linux.h: Likewise.
3683 * config/ia64/nm-linux.h: Likewise.
3684 * config/ia64/tm-ia64.h: Likewise.
3685 * config/s390/tm-linux.h: Likewise.
3686 * config/s390/tm-s390.h: Likewise.
3687 * s390-nat.c: Likewise.
3688 * s390-tdep.c: Likewise.
3689
3690 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3691 * config/ia64/linux.mt: Likewise.
3692 * config/m68k/linux.mh: Likewise.
3693 * config/mips/linux.mt: Likewise.
3694 * config/powerpc/linux.mh: Likewise.
3695 * config/sh/linux.mt: Likewise.
3696
3697 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3698
3699 * solib.c (solib_open): Change tests for whether to search
3700 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3701 comments.
3702
3703 2003-06-19 Theodore A. Roth <troth@openavr.org>
3704
3705 * avr-tdep.c (avr_frame_address): Delete function.
3706 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3707 set_gdbarch_frame_args_address.
3708
3709 2003-06-19 Andrew Cagney <cagney@redhat.com>
3710
3711 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3712 (REGISTER_CONVERT_FROM_TYPE): Delete.
3713 (mips_register_convert_to_type): Delete declaration.
3714 (mips_register_convert_from_type): Delete declaration.
3715 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3716 kernel/.
3717
3718 2003-06-19 Michael Snyder <msnyder@redhat.com>
3719
3720 * linux-nat.h: New file.
3721 * linux-nat.c: Include linux-nat.h.
3722 * lin-lwp.c: Include linux-nat.h.
3723 Move struct lwp_info def to linux-nat.h.
3724 * linux-proc.c: Include linux-nat.h.
3725 (linux_make_note_section): Iterate over lwps instead of threads.
3726 (linux_do_thread_registers): Use lwp instead of merged pid.
3727 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3728 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3729 Add dependency on linux_nat_h.
3730
3731 2003-06-19 Theodore A. Roth <troth@openavr.org>
3732
3733 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3734
3735 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3736
3737 * varobj.c (get_type, get_target_type): Use check_typedef.
3738
3739 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3740
3741 * breakpoint.c (insert_catchpoint): Call internal_error.
3742
3743 2003-06-19 Theodore A. Roth <troth@openavr.org>
3744
3745 * avr-tdep.c (avr_push_dummy_code): Delete function.
3746 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3747
3748 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3749
3750 * arch-utils.c (default_prepare_to_proceed): Remove.
3751 (generic_prepare_to_proceed): Remove.
3752 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3753 (generic_prepare_to_proceed): Remove prototype.
3754 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3755 * gdbarch.c: Regenerate.
3756 * gdbarch.h: Regenerate.
3757 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3758 * hppah-nat.c (hppa_switched_threads): Remove.
3759 * infrun.c (prepare_to_proceed): New static function, copied from
3760 generic_prepare_to_proceed. Remove select_it argument.
3761 (proceed): Call prepare_to_proceed.
3762 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3763 variables.
3764 (ptrace_wait): Don't set the removed variables.
3765 (hppa_switched_threads): Remove.
3766 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3767 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3768 (lin_lwp_prepare_to_proceed): Remove prototype.
3769 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3770 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3771
3772 2003-06-18 Theodore A. Roth <troth@openavr.org>
3773
3774 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3775 trad-frame.h.
3776 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3777 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3778 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3779 (AVR_PROLOGUE_*): Enumerate prologue types.
3780 (struct frame_extra_info): Remove.
3781 (struct avr_unwind_cache): Define.
3782 (avr_write_sp): Delete function.
3783 (avr_read_fp): Ditto.
3784 (avr_init_extra_frame_info): Ditto.
3785 (avr_pop_frame): Ditto.
3786 (avr_frame_saved_pc): Ditto.
3787 (avr_saved_pc_after_call): Ditto.
3788 (avr_push_return_address): Ditto.
3789 (avr_frame_chain): Ditto.
3790 (avr_store_struct_return): Ditto.
3791 (avr_push_arguments): Ditto.
3792 (avr_scan_prologue): Update comments. Changed to set up the info for
3793 cache unwinding. Now returns end of prologue PC.
3794 (avr_skip_prologue): Better handling of functions lacking a prologue
3795 by using avr_scan_prologue.
3796 (avr_scan_arg_moves): New function.
3797 (avr_saved_regs_unwinder): Ditto.
3798 (avr_frame_unwind_cache): Ditto.
3799 (avr_unwind_pc): Ditto.
3800 (avr_frame_this_id): Ditto.
3801 (avr_frame_prev_register): Ditto.
3802 (avr_frame_p): Ditto.
3803 (avr_frame_base_address ): Ditto.
3804 (avr_unwind_dummy_id): Ditto.
3805 (avr_push_dummy_code): Ditto.
3806 (push_stack_item): Ditto.
3807 (pop_stack_item): Ditto.
3808 (avr_push_dummy_call): Ditto.
3809 (struct stack_item): Define.
3810 (avr_frame_unwind): Declare structure.
3811 (avr_frame_base): Ditto.
3812 (avr_gdbarch_init): Remove calls to
3813 set_gdbarch_deprecated_init_frame_pc,
3814 set_gdbarch_deprecated_target_read_fp,
3815 set_gdbarch_deprecated_dummy_write_sp,
3816 set_gdbarch_deprecated_fp_regnum,
3817 set_gdbarch_deprecated_push_arguments,
3818 set_gdbarch_deprecated_push_return_address,
3819 set_gdbarch_deprecated_pop_frame,
3820 set_gdbarch_deprecated_store_struct_return,
3821 set_gdbarch_deprecated_frame_init_saved_regs,
3822 set_gdbarch_deprecated_init_extra_frame_info,
3823 set_gdbarch_deprecated_frame_chain,
3824 set_gdbarch_deprecated_frame_saved_pc,
3825 set_gdbarch_deprecated_saved_pc_after_call.
3826 Add calls to set_gdbarch_push_dummy_call,
3827 set_gdbarch_push_dummy_code,
3828 frame_unwind_append_predicate,
3829 frame_base_set_default,
3830 set_gdbarch_unwind_dummy_id,
3831 set_gdbarch_unwind_pc.
3832 Wrap a long line.
3833
3834 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3835
3836 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3837 registers for H8/300S.
3838 (h8300_print_registers_info): Ditto.
3839 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3840
3841 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3842
3843 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3844 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3845 (lin_lwp_wait): Likewise. Update comments.
3846 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3847 (pull_pid_from_list, linux_record_stopped_pid): New.
3848
3849 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3850
3851 * ada-lang.c (scan_discrim_bound): Name first argument.
3852 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3853 declared by ALL_BLOCK_SYMBOLS.
3854
3855 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3856
3857 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3858 ("regcache.h"): Include it.
3859 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3860
3861 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3862
3863 * NEWS: Mention gdbserver detach change and "disconnect" command.
3864 * infcmd.c (disconnect_command): New function.
3865 (_initialize_infcmd): Add ``disconnect'' command.
3866 * remote.c (remote_async_detach): Delete.
3867 (remote_detach): Merge remote_async_detach.
3868 (remote_disconnect): New.
3869 (init_remote_ops): Set to_disconnect.
3870 (init_remote_cisco_ops): Likewise.
3871 (init_remote_async_ops): Likewise. Use remote_detach.
3872 * target.c (cleanup_target): Default to_disconnect.
3873 (update_current_target): Inherit to_disconnect.
3874 (target_disconnect, debug_to_disconnect): New functions.
3875 (setup_target_debug): Set to_disconnect.
3876 * target.h (struct target_ops): Add to_disconnect.
3877 (target_disconnect): Add prototype.
3878
3879 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3880
3881 * breakpoint.c (insert_catchpoint): New function.
3882 (insert_breakpoints): Use catch_exceptions to call
3883 insert_catchpoint. Disable catchpoints if they fail to insert.
3884
3885 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3886
3887 * symfile.c (reread_symbols): Clear sym_private.
3888
3889 2003-06-17 Andrew Cagney <cagney@redhat.com>
3890
3891 * trad-frame.h (struct frame_info): Add opaque declaration.
3892 * remote-fileio.h (struct cmd_list_element): Add opaque
3893 declaration.
3894 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3895 comments.
3896
3897 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3898
3899 * remote.c (remote_prepare_to_store): Replace call to
3900 deprecated_read_register_bytes with multiple regcache_raw_read
3901 calls.
3902
3903 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3904
3905 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3906 (nto_find_and_open_solib): Likewise.
3907 (nto_init_solib_absolute_prefix): Likewise.
3908 (_initialize_nto_tdep): Fix indentation.
3909
3910 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3911
3912 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3913
3914 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3915
3916 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3917
3918 2003-06-17 Jim Blandy <jimb@redhat.com>
3919
3920 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3921
3922 2003-06-16 Theodore A. Roth <troth@openavr.org>
3923
3924 * avr-tdep.c (avr_extract_return_value): New function.
3925 (avr_gdbarch_init): Set extract_return_value method.
3926
3927 2003-06-16 Andrew Cagney <cagney@redhat.com>
3928
3929 * frame.h (deprecated_get_next_frame_hack): Declare.
3930 * frame.c (legacy_saved_regs_prev_register): Only require
3931 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3932 there are always saved regs.
3933 (deprecated_generic_get_saved_register): Do not require
3934 DEPRECATED_FRAME_INIT_SAVED_REGS.
3935 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3936 use frame ID unwind instead.
3937 (deprecated_get_next_frame_hack): New function.
3938
3939 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3940
3941 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3942 (h8300_push_dummy_call): ...this function. Some minor optimization.
3943 (h8300_push_return_address): Remove.
3944 (h8300_gdbarch_init): Remove calls to
3945 set_gdbarch_deprecated_dummy_write_sp,
3946 set_gdbarch_deprecated_push_arguments and
3947 set_gdbarch_deprecated_push_return_address.
3948 Add call to set_gdbarch_push_dummy_call.
3949
3950 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3951
3952 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3953 (E_PSEUDO_EXR_REGNUM): Ditto.
3954 (h8300_is_argument_spill): Check for instructions moving argument
3955 registers into safe registers.
3956 (h8300_skip_prologue): Check for stm instruction to push registers
3957 used for register variables onto stack.
3958 (gdb_print_insn_h8300): Remove.
3959 (h8300_examine_prologue): Add a comment.
3960 (h8300_register_name): Take pseudo registers into account.
3961 (h8300s_register_name): Ditto.
3962 (h8300sx_register_name): Ditto.
3963 (h8300_print_register): Ditto.
3964 (h8300_print_registers_info): Define "nice" printing order.
3965 (h8300_saved_pc_after_call): Take pseudo registers into account.
3966 (h8300_register_type): Ditto. Return type used for remote connection
3967 when requesting real CCR or EXR register, return actual type when
3968 requesting pseudo CCR or EXR.
3969 (h8300_pseudo_register_read): New function.
3970 (h8300_pseudo_register_write): Ditto.
3971 (h8300_dbg_reg_to_regnum): Ditto.
3972 (h8300s_dbg_reg_to_regnum): Ditto.
3973 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3974 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3975 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3976 set_gdbarch_print_insn architecture dependent.
3977 Call set_gdbarch_pseudo_register_read and
3978 set_gdbarch_pseudo_register_write.
3979 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3980
3981 2003-06-16 Andrew Cagney <cagney@redhat.com>
3982
3983 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3984 * gdbarch.h, gdbarch.c: Re-generate.
3985 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3986 * s390-tdep.c (s390_gdbarch_init): Update.
3987 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3988 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3989 * mips-tdep.c (mips_gdbarch_init): Update.
3990 * mcore-tdep.c (mcore_gdbarch_init): Update.
3991 * cris-tdep.c (cris_gdbarch_init): Update.
3992 * infcall.c (call_function_by_hand): Update.
3993 * ia64-tdep.c (ia64_push_arguments): Update comment.
3994 * frame.c (legacy_get_prev_frame): Do not assume
3995 SAVE_DUMMY_FRAME_TOS_P.
3996 * dummy-frame.c (find_dummy_frame): Update comment.
3997
3998 2003-06-16 Andrew Cagney <cagney@redhat.com>
3999
4000 * regcache.c (do_cooked_read): Do not use register_valid_p.
4001
4002 2003-06-15 Theodore A. Roth <troth@openavr.org>
4003
4004 * avr-tdep.c (avr_register_type): Remove a blank line.
4005 (avr_scan_prologue): Correct some comments.
4006
4007 2003-06-15 Theodore A. Roth <troth@openavr.org>
4008
4009 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4010 prologue types.
4011 Properly scan prologues generated by gcc with the -mcall-prologues
4012 option.
4013 Add code to scan -mcall-prologues for mega devices.
4014
4015 2003-06-15 Theodore A. Roth <troth@openavr.org>
4016
4017 * avr-tdep.c (avr_register_byte): Delete function.
4018 (avr_register_raw_size): Delete function.
4019 (avr_register_virtual_size): Delete function.
4020 (avr_register_virtual_type): Delete function.
4021 (avr_register_type): New function.
4022 (avr_address_to_pointer): Remove unused code.
4023 (avr_read_fp): Need to read FP as two separate bytes due to change to
4024 avr_register_type() usage.
4025 (avr_gdbarch_init): Don't set deprecated_register_size.
4026 Don't set deprecated_register_bytes.
4027 Don't set deprecated_register_byte.
4028 Don't set deprecated_register_raw_size.
4029 Don't set deprecated_max_register_raw_size.
4030 Don't set deprecated_register_virtual_size.
4031 Don't set deprecated_max_register_virtual_size.
4032 Don't set deprecated_register_virtual_type.
4033 Set register_type method.
4034
4035 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4036
4037 * Makefile.in (linux-nat.o): Add rule.
4038 * linux-nat.c: New file.
4039 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4040 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4041 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4042 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4043 * config/arm/linux.mh (NATDEPFILES): Likewise.
4044 * config/i386/linux.mh (NATDEPFILES): Likewise.
4045 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4046 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4047 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4048 * config/mips/linux.mh (NATDEPFILES): Likewise.
4049 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4050 * config/s390/s390.mh (NATDEPFILES): Likewise.
4051 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4052
4053 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4054
4055 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4056 replace out-of-date comment.
4057
4058 2003-06-15 Andrew Cagney <cagney@redhat.com>
4059
4060 * rdi-share/host.h (Fail): Change to a varargs function.
4061 * remote-rdi.c (Fail): Update.
4062
4063 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4064
4065 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4066 (i386_convert_register_p, i386_register_to_value,
4067 i386_register_from_value): Handle types longer than 8 bytes.
4068
4069 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4070
4071 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4072 Move floating-point code to new function in i387-tdep.c.
4073 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4074 New functions containing code moved here from i386-tdep.c.
4075 * i387-tdep.h: Add opaque declaration for `struct type'.
4076 (i387_register_to_value, i387_value_to_register): New prototypes.
4077 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4078 (x86_64_init_abi): Set convert_register_p, register_to_value and
4079 value_to_register here.
4080
4081 2003-06-14 Andrew Cagney <cagney@redhat.com>
4082
4083 * mips-tdep.c (mips_register_to_value): Make static.
4084 (mips_value_to_register): Make static.
4085 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4086 * ia64-tdep.c (ia64_register_raw_size): Make static.
4087 (ia64_register_virtual_size): Make static.
4088 (ia64_register_byte): Make static.
4089 * i387-tdep.c: Include "i387-tdep.h".
4090 (print_387_control_word): Delete function.
4091 (print_387_status_word): Delete function.
4092 (print_387_status_bits): Delete function.
4093 (print_387_control_bits): Delete function.
4094 * Makefile.in (i387-tdep.o): Update dependencies.
4095 * rdi-share/host.h (Fail): Declare.
4096 * remote-rdi.c (Fail): Update to match declaration.
4097
4098 2003-06-14 Andrew Cagney <cagney@redhat.com>
4099
4100 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4101 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4102 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4103 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4104 * README: Delete reference to remote-array.
4105 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4106 (remote-array.o): Delete target.
4107 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4108 * remote-array.c: Delete file.
4109
4110 2003-06-14 Andrew Cagney <cagney@redhat.com>
4111 Mark Kettenis <kettenis@gnu.org>
4112
4113 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4114 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4115 parameter with "frame".
4116 * gdbarch.h, gdbarch.c: Re-generate.
4117 * frame.h (put_frame_register): Declare.
4118 * frame.c (put_frame_register): New function.
4119 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4120 (legacy_register_to_value): Rewrite, use "frame" to get the
4121 register value.
4122 (legacy_value_to_register): Rewrite, use "frame" to find the
4123 register's location before storing.
4124 * arch-utils.h (legacy_convert_register_p): Update.
4125 (legacy_register_to_value, legacy_value_to_register): Update.
4126 * findvar.c (value_from_register): Rewrite, eliminate use of
4127 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4128 "frame" to REGISTER_TO_VALUE.
4129 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4130 lval_reg_frame_relative + lval_register branch of the switch. Do
4131 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4132 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4133 I386_EDI_REGNUM): New defines.
4134 (i386_next_regnum, i386_convert_register_p,
4135 i386_register_to_value, i386_value_to_register): New functions.
4136 (i386_register_convertible, i386_register_convert_to_virtual,
4137 i386_convert_to_raw): Remove functions.
4138 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4139 value_to_register instead of register_convertible,
4140 register_convert_to_virtual and register_convert_to_raw.
4141 * mips-tdep.c (mips_convert_register_p): New function.
4142 (mips_value_to_register): Replace mips_register_convert_from_type.
4143 (mips_register_to_value): Replace mips_register_convert_to_type.
4144 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4145 register_to_value.
4146 * alpha-tdep.c (alpha_convert_register_p): Update.
4147 (alpha_value_to_register): Update, store the register.
4148 (alpha_register_to_value): Update, fetch the register.
4149
4150 2003-06-14 Theodore A. Roth <troth@openavr.org>
4151
4152 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4153 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4154 Don't set deprecated_call_dummy_words.
4155 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4156 Don't set remote_translate_xfer_address.
4157 (avr_io_reg_read_command): Remove commented out debug printf.
4158 Wrap a long line.
4159
4160 2003-06-14 Theodore A. Roth <troth@openavr.org>
4161
4162 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4163 causes gdb to seg fault.
4164
4165 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4166
4167 * sparc-nat.c (fetch_inferior_registers): Correct
4168 a reference to "registers".
4169
4170 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4171
4172 * Makefile.in (exc_request_U_h): Define
4173 (exc_request_S_h): Likewise.
4174 (msg_reply_S_h): Likewise.
4175 (msg_U_h): Likewise.
4176 (notify_S_h): Likewise.
4177 (process_reply_S_h): Likewise.
4178 (gnu-nat.o): Depend on gdb_obstack_h
4179 * gnu-nat.c: Include "gdb_obstack.h".
4180
4181 2003-06-13 Andrew Cagney <cagney@redhat.com>
4182
4183 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4184 * gdbarch.h, gdbarch.c: Re-generate.
4185
4186 2003-06-13 Andrew Cagney <cagney@redhat.com>
4187
4188 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4189 when deprecated REGISTER macros can be deleted.
4190 * gdbarch.h, gdbarch.c: Re-generate.
4191
4192 2003-06-13 Jim Blandy <jimb@redhat.com>
4193
4194 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4195 Linux entry point symbols for _dl_debug_state, too.
4196
4197 2003-06-13 Andrew Cagney <cagney@redhat.com>
4198
4199 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4200 available, do not use the FP register, and always save the TOS.
4201 * dummy-frame.c (dummy_frame_this_id): Do not assert
4202 SAVE_DUMMY_FRAME_TOS.
4203 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4204 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4205 (i386_push_dummy_call): Add 8 to the returned SP.
4206 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4207 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4208 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4209 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4210 (x86_64_push_dummy_call): Return "sp + 16".
4211 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4212 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4213 save_dummy_frame_tos.
4214
4215 2003-06-13 Jim Blandy <jimb@redhat.com>
4216
4217 * frv-tdep.c (frv_use_struct_convention): Delete static
4218 declaration for function deleted in my change of 2003-06-12.
4219
4220 2003-06-13 Theodore A. Roth <troth@openavr.org>
4221
4222 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4223 (avr_pointer_to_address): Shift code addrs left 1 bit.
4224 (avr_convert_from_func_ptr_addr): Delete function since operation is
4225 better handled by avr_address_to_pointer and avr_pointer_to_address.
4226 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4227
4228 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4229
4230 From Kelley Cook <kelleycook@wideopenwest.com>:
4231 * configure.host: Accept i[34567]86 variants.
4232 * configure.tgt: Likewise.
4233 * nlm/configure.in: Likewise.
4234 * nlm/configure: Regenerated.
4235
4236 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4237
4238 * arm-tdep.c (solib-svr4.h): Dont' include it.
4239 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4240 * arm-linux-tdep.c: ... here. Make static.
4241 (arm_linux_init_abi): Register it.
4242 (solib-svr4.h): Include it.
4243 * Makefile.in: Update dependencies.
4244 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4245 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4246
4247 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4248
4249 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4250 indicate registers used for return values.
4251 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4252 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4253 members.
4254 (h8300_init_extra_frame_info): Ditto.
4255 (h8300_frame_locals_address): Removed.
4256 (h8300_frame_args_address): Removed.
4257 (h8300_extract_return_value): Use new regcache structure. Only care
4258 for 16 bit CPUs.
4259 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4260 (h8300_store_return_value): Use new regcache structure. Only care
4261 for 16 bit CPUs.
4262 (h8300h_store_return_value): Same function for 32 bit CPUs.
4263 (h8300_store_struct_return): Removed.
4264 (h8300_extract_struct_value_address): Use new regcache structure.
4265 (h8300h_extract_struct_value_address): Removed.
4266 (h8300_push_dummy_code): New function.
4267 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4268 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4269 set_gdbarch_store_return_value architecture dependent.
4270 Call set_gdbarch_push_dummy_code and
4271 set_gdbarch_extract_struct_value_address.
4272 Remove calls to set_gdbarch_frame_args_address,
4273 set_gdbarch_frame_locals_address,
4274 set_gdbarch_deprecated_store_struct_return,
4275 set_gdbarch_deprecated_extract_return_value,
4276 set_gdbarch_deprecated_extract_struct_value_address,
4277 set_gdbarch_deprecated_call_dummy_words and
4278 set_gdbarch_deprecated_sizeof_call_dummy_words.
4279
4280 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4281
4282 * h8300-tdep.c (h8300_register_byte): Remove.
4283 (h8300h_register_byte): Remove.
4284 (h8300_register_virtual_type): Remove. Substitute by...
4285 (h8300_register_type): New function.
4286 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4287 (h8300h_extract_struct_value_address): Ditto.
4288 (h8300_gdbarch_init): Drop calls to
4289 set_gdbarch_deprecated_register_byte and
4290 set_gdbarch_deprecated_register_virtual_type.
4291 Add call to set_gdbarch_register_type.
4292
4293 2003-06-13 Andrew Cagney <cagney@redhat.com>
4294
4295 * gdbarch.sh: Update comments on registers.
4296 (deprecated_register_byte): Rename register_byte.
4297 (deprecated_register_raw_size): Rename register_raw_size.
4298 (deprecated_register_virtual_size): Rename register_virtual_size.
4299 (deprecated_register_virtual_type): Rename register_virtual_type.
4300 * gdbarch.h, gdbarch.c: Re-generate.
4301 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4302 * vax-tdep.c (vax_gdbarch_init): Update.
4303 * v850-tdep.c (v850_gdbarch_init): Update.
4304 * sparc-tdep.c (sparc_gdbarch_init): Update.
4305 * sh-tdep.c (sh_gdbarch_init): Update.
4306 * s390-tdep.c (s390_gdbarch_init): Update.
4307 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4308 * ns32k-tdep.c: Update.
4309 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4310 * mips-tdep.c (mips_gdbarch_init): Update.
4311 * mcore-tdep.c (mcore_gdbarch_init): Update.
4312 * m68k-tdep.c (m68k_gdbarch_init): Update.
4313 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4314 * ia64-tdep.c (ia64_gdbarch_init): Update.
4315 * hppa-tdep.c (hppa_gdbarch_init): Update.
4316 * h8300-tdep.c (h8300_gdbarch_init): Update.
4317 * frv-tdep.c (frv_gdbarch_init): Update.
4318 * cris-tdep.c (cris_gdbarch_init): Update.
4319 * avr-tdep.c (avr_gdbarch_init): Update.
4320 * alpha-tdep.c (alpha_gdbarch_init): Update.
4321 * arm-tdep.c (arm_gdbarch_init): Update.
4322
4323 2003-06-13 Andrew Cagney <cagney@redhat.com>
4324
4325 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4326 mips_o32_use_struct_convention with always_use_struct_convention.
4327
4328 2003-06-12 David Carlton <carlton@kealia.com>
4329
4330 * cp-namespace.c (cp_set_block_scope): Comment out
4331 processing_has_namespace_info branch.
4332
4333 2003-06-12 Jim Blandy <jimb@redhat.com>
4334
4335 Recognize and skip 64-bit PowerPC Linux linkage functions.
4336 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4337 insn_pattern, insns_match_pattern, d_field, ds_field): New
4338 functions, macros, and types for working with PPC instructions.
4339 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4340 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4341 ppc64_skip_trampoline_code): New functions, variables, and macros
4342 for recognizing and skipping linkage functions.
4343 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4344 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4345
4346 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4347 register offsets for both the 32- and 64-bit interfaces.
4348
4349 Actually finish the job started by my change of 2003-05-29.
4350 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4351 other #definition of this.
4352 (ppc_linux_skip_trampoline_code): Remove declaration.
4353 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4354 static.
4355 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4356 method for GDBARCH.
4357
4358 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4359 'long' on ppc64-*-linux*.
4360
4361 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4362 isn't #defined, assume the register doesn't exist: act as if
4363 tdep->ppc_mq_regnum were -1.
4364
4365 * configure.host, configure.tgt: Add entries for
4366 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4367 powerpc/linux.mt.
4368 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4369 New files.
4370
4371 * arch-utils.c (always_use_struct_convention): New function.
4372 * arch-utils.h (always_use_struct_convention): New prototype.
4373 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4374 (alpha_gdbarch_init): Register always_use_struct_convention,
4375 instead of alpha_use_struct_convention.
4376 * cris-tdep.c (cris_use_struct_convention): Delete.
4377 (cris_gdbarch_init): Register always_use_struct_convention,
4378 instead of cris_use_struct_convention.
4379 * frv-tdep.c (frv_use_struct_convention): Delete.
4380 (frv_gdbarch_init): Register always_use_struct_convention,
4381 instead of frv_use_struct_convention.
4382 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4383 (h8300_gdbarch_init): Register always_use_struct_convention,
4384 instead of h8300_use_struct_convention.
4385 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4386 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4387 instead of mips_o32_use_struct_convention.
4388
4389 2003-06-12 Andrew Cagney <cagney@redhat.com>
4390
4391 * wince.c: Include "mips-tdep.h".
4392 * mips-tdep.h (mips_next_pc): Declare.
4393 * mcore-tdep.c: Make more local functions static.
4394 * Makefile.in (wince.o): Update dependencies.
4395
4396 2003-06-12 David Carlton <carlton@kealia.com>
4397
4398 * symtab.c (lookup_symbol_aux_minsyms): Replace
4399 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4400 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4401 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4402 SYMBOL_NATURAL_NAME.
4403
4404 2003-06-12 Andreas Schwab <schwab@suse.de>
4405
4406 * Makefile.in (tuiDisassem.o): Update dependencies.
4407
4408 2003-06-12 David Carlton <carlton@bactrian.org>
4409
4410 * symtab.h: Delete declaration of make_symbol_overload_list.
4411 Add declaration of lookup_partial_symbol.
4412 * symtab.c (remove_params): Move to cp-support.c.
4413 (overload_list_add_symbol, make_symbol_overload_list)
4414 (sym_return_val_size, sym_return_val_index): Ditto.
4415 (lookup_partial_symbol): Make extern.
4416 * cp-support.h: Add declaration of make_symbol_overload_list.
4417 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4418 symtab.h, and block.h.
4419 (remove_params): Move here from symtab.c.
4420 (overload_list_add_symbol, make_symbol_overload_list)
4421 (sym_return_val_size, sym_return_val_index): Ditto.
4422 * valops.c: Include cp-support.h.
4423 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4424 frame_h, and block_h.
4425 (valops.o): Depend on cp_support_h.
4426
4427 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4428
4429 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4430 substitute by NUM_REGS throughout.
4431 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4432 (h8300s_register_name): New function for H8S registers.
4433 (h8300sx_register_name): Ditto for H8SX registers.
4434 (h8300_print_register): Revise register printing, avoid depending
4435 on 32 bit long.
4436 (h8300_register_byte): Only care for H8/300 registers.
4437 (h8300h_register_byte): New function for any other architecture.
4438 (h8300_register_raw_size): Remove.
4439 (h8300_register_virtual_type): Revise to return actually useful
4440 type.
4441 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4442 (h8300h_extract_struct_value_address): New function for any other
4443 architecture.
4444 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4445 set_gdbarch_register_name, set_gdbarch_register_byte,
4446 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4447 Remove calls to set_gdbarch_deprecated_register_size,
4448 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4449 set_gdbarch_deprecated_max_register_raw_size,
4450 set_gdbarch_register_virtual_size and
4451 set_gdbarch_deprecated_max_register_virtual_size entirely.
4452 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4453 set_gdbarch_long_double_bit.
4454
4455 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4456
4457 * doublest.c (convert_doublest_to_floatformat): When dealing
4458 with the implied integer bit, only alter mant_bits if we are
4459 processing a full 32 bits of mantissa.
4460
4461 2003-06-11 David Carlton <carlton@bactrian.org>
4462
4463 * dictionary.h: New.
4464 * dictionary.c: New.
4465 * block.h: Add opaque declaration for struct dictionary.
4466 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4467 'sym' members.
4468 (BLOCK_DICT): New macro.
4469 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4470 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4471 BLOCK_SHOULD_SORT.
4472 (ALL_BLOCK_SYMBOLS): Update definition.
4473 * Makefile.in (SFILES): Add dictionary.c.
4474 (dictionary_h): New.
4475 (COMMON_OBS): Add dictionary.o.
4476 (dictionary.o): New.
4477 (ada-lang.o): Depend on dictionary_h.
4478 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4479 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4480 (mi-cmd-stack.o): Ditto.
4481 (gdbtk-cmds.o): Update dependencies.
4482 (gdbtk-stack.o): Ditto.
4483 * ada-lang.c: Include dictionary.h.
4484 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4485 (fill_in_ada_prototype, debug_print_block): Ditto.
4486 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4487 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4488 'is_sorted'.
4489 * mdebugread.c: Include dictionary.h.
4490 (struct parse_stack): Delete 'maxsyms' member.
4491 (parse_symbol): Update calls to new_block. Delete calls to
4492 shrink_block. Use dictionary methods.
4493 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4494 Update calls to new_symtab. Don't maintain maxsyms data.
4495 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4496 (add_symbol): Just call dict_add_symbol.
4497 (new_symtab): Delete 'maxsyms' argument.
4498 (new_symtab): Update calls to new_block.
4499 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4500 (shrink_block): Delete function.
4501 (fixup_sigtramp): Update call to new_block. Add symbol via
4502 dict_add_symbol.
4503 * jv-lang.c: Include dictionary.h.
4504 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4505 appropriately. Set class_symtab->free_func. Make sure the
4506 blockvector is big enough to hold two blocks.
4507 (add_class_symtab_symbol): Use dictionary methods.
4508 (free_class_block): New function.
4509 (type_from_class): Replace explicit iteration by
4510 ALL_BLOCK_SYMBOLS.
4511 * symtab.h (struct symtab): Replace 'free_ptr' method by
4512 'free_func'.
4513 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4514 sort_symtab_syms.
4515 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4516 sort_symtab_syms.
4517 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4518 Include dictionary.h.
4519 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4520 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4521 sort_symtab_syms.
4522 * objfiles.c: Include dictionary.h.
4523 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4524 * buildsym.c: Include dictionary.h.
4525 (finish_block): Use dictionary methods.
4526 (end_symtab): Set free_func to NULL, not free_ptr.
4527 * tracepoint.c: Include dictionary.h.
4528 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4529 (scope_info): Ditto.
4530 * stack.c: Include dictionary.h.
4531 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4532 (print_block_frame_labels, print_frame_arg_vars)
4533 (print_frame_args): Ditto.
4534 * symmisc.c (free_symtab_block): Use dictionary methods.
4535 (dump_symtab): Ditto.
4536 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4537 Include dictionary.h.
4538 * symfile.h: Delete declarations of sort_block_syms,
4539 sort_symtab_syms.
4540 * symfile.c (sort_block_syms): Delete.
4541 (sort_symtab_syms): Delete.
4542 * symtab.c: Include dictionary.h.
4543 (lookup_block_symbol): Use dictionary iterators.
4544 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4545 (search_symbols, make_symbol_completion_list): Ditto.
4546 (make_symbol_overload_list): Ditto.
4547 * valops.c (value_of_local): Use dict_empty.
4548 Include dictionary.h.
4549
4550 2003-06-11 J. Brobecker <brobecker@gnat.com>
4551
4552 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4553
4554 2003-06-11 David Carlton <carlton@bactrian.org>
4555
4556 * block.h (BLOCK_SHOULD_SORT): Delete.
4557 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4558 blocks.
4559 * ada-lang.c (ada_add_block_symbols): Ditto.
4560 * symfile.c (sort_block_syms): Delete.
4561 (sort_symtab_syms): Ditto.
4562 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4563 declarations.
4564 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4565 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4566 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4567 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4568 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4569 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4570 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4571
4572 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4573
4574 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4575 bits to 128.
4576
4577 2003-06-11 Andrew Cagney <cagney@redhat.com>
4578
4579 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4580 REGISTER_CONVERTIBLE.
4581 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4582 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4583 * gdbarch.h, gdbarch.c: Re-generate.
4584 * arch-utils.h (deprecated_register_convertible_not): Rename
4585 generic_register_convertible_not.
4586 * arch-utils.c (deprecated_register_convertible_not): Rename
4587 generic_register_convertible.
4588 (legacy_convert_register_p, legacy_register_to_value): Update.
4589 * sh-tdep.c (sh64_push_arguments): Update.
4590 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4591 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4592 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4593 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4594 * arch-utils.c (legacy_value_to_register): Update.
4595 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4596 (rs6000_register_convert_to_raw): Make parameter "from" const.
4597 * mips-tdep.c (mips_gdbarch_init): Update.
4598 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4599 * infcmd.c (default_print_registers_info): Update.
4600 * ia64-tdep.c (ia64_gdbarch_init): Update.
4601 (ia64_register_convert_to_raw): Make parameter "from" const.
4602 * i386-tdep.c (i386_gdbarch_init): Update.
4603 (i386_register_convert_to_raw): Update.
4604
4605 2003-06-11 Andrew Cagney <cagney@redhat.com>
4606
4607 * remote-fileio.c: Include "remote-fileio.h".
4608 * Makefile.in (remote-fileio.o): Update dependencies.
4609 (remote_fileio_h): Fix typo.
4610
4611 2003-06-11 Andrew Cagney <cagney@redhat.com>
4612
4613 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4614 (xstormy16_save_dummy_frame_tos): Make static.
4615 (_initialize_xstormy16_tdep): Add declaration.
4616 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4617 * v850-tdep.c: Make local functions static.
4618 (_initialize_v850_tdep): Add declaration.
4619 * sparc-tdep.c: Make local functions static.
4620 (_initialize_sparc_tdep): Add declaration.
4621 * sh-tdep.c: Make local functions static.
4622 (_initialize_sh_tdep): Add declaration.
4623 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4624 * s390-tdep.c: Make local functions static.
4625 (_initialize_s390_tdep): Add declaration.
4626 * dbxread.c (find_stab_function_addr): Make static.
4627 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4628 * ocd.c (_initialize_remote_ocd): Add declaration.
4629 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4630 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4631 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4632 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4633 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4634 * remote-array.c (_initialize_array): Add declaration.
4635 (_initialize_remote_monitors): Add declaration.
4636 * remote-mips.c: Make local functions static.
4637 (_initialize_remote_mips): Add declaration.
4638 * mcore-tdep.c: Make all local functions static.
4639 (_initialize_mcore_tdep): Add declaration.
4640 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4641 * abug-rom.c (_initialize_abug_rom): Add declaration.
4642 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4643 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4644 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4645 * remote-est.c (_initialize_est): Add declaration.
4646 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4647 (m68hc11_call_dummy_address): Make static.
4648 * ia64-tdep.c: Make local functions static.
4649 (_initialize_ia64_tdep): Add declaration.
4650 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4651 * monitor.c (monitor_wait_filter): Make static.
4652 (_initialize_remote_monitors): Add declaration.
4653 * remote-hms.c (_initialize_remote_hms): Add declaration.
4654 * remote-e7000.c (fetch_regs_from_dump): Make static.
4655 (expect_n): Make static.
4656 (_initialize_remote_e7000): Add declaration.
4657 * ser-e7kpc.c: Always include "defs.h".
4658 (_initialize_ser_e7000pc): Add declaration.
4659 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4660 * cris-tdep.c: Make all but one function static.
4661 (_initialize_cris_tdep): Add declaration.
4662 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4663 * solib.c (update_solib_list): Make static.
4664 (_initialize_solib): Add declaration.
4665 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4666 (_initialize_avr_tdep): Add declaration.
4667 * remote-rdi.c (voiddummy): Make static.
4668 (_initialize_remote_rdi): Add declaration.
4669 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4670 * remote-rdp.c (send_rdp): Make static.
4671 (_initialize_remote_rdp): Add declaration.
4672 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4673
4674 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4675
4676 * remote-fileio.c: Make ari happy.
4677
4678 2003-06-10 J. Brobecker <brobecker@gnat.com>
4679
4680 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4681 fetching the trailing bytes of the buffer we are about to write.
4682
4683 2003-06-10 Andrew Cagney <cagney@redhat.com>
4684
4685 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4686 * Makefile.in (remote-fileio.o): Update dependencies.
4687 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4688 include <setjmp.h>, or <sys/types.h> conditional on USG.
4689 (remote_fio_jmp_buf): Delete global variable.
4690
4691 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4692 Martin M. Hunt <hunt@redhat.com>
4693
4694 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4695 (SFILES): Add remote-fileio.c.
4696 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4697 dependencies for building remote.o.
4698 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4699 * remote-fileio.h: New header file defining remote File-I/O interface.
4700 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4701 static storage class.
4702 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4703 'F' packet.
4704 (_initialize_remote): Call initialize_remote_fileio().
4705 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4706 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4707 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4708 (captured_main): Initialize new ui_files.
4709 * ui-file.c: Add read and fgets input functions.
4710 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4711 (null_file_read): New function.
4712 (ui_file_read): New function.
4713 (set_ui_file_read): New function.
4714 (stdio_file_read): New function.
4715 * ui-file.h: New type ui_file_read_ftype.
4716 (set_ui_file_read): Declare.
4717 (ui_file_read): Declare.
4718
4719 2003-06-09 Andrew Cagney <cagney@redhat.com>
4720
4721 * frame.h (deprecated_unwind_get_saved_register): Rename
4722 generic_unwind_get_saved_register, update comments.
4723 * mips-tdep.c (mips_get_saved_register): Update.
4724 * frame.c (deprecated_unwind_get_saved_register): Update.
4725
4726 2003-06-09 Andrew Cagney <cagney@redhat.com>
4727
4728 * vax-tdep.c (vax_frame_locals_address): Delete function.
4729 (vax_gdbarch_init): Do not set frame_locals_address.
4730 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4731 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4732 * s390-tdep.c (s390_frame_args_address): Delete function.
4733 (s390_gdbarch_init): Do not set frame_args_address or
4734 frame_locals_address.
4735 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4736 (ns32k_gdbarch_init): Do not set frame_locals_address.
4737 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4738 (hppa_frame_locals_address): Delete function.
4739 (hppa_gdbarch_init): Do not set frame_args_address, or
4740 frame_locals_address.
4741 * arm-tdep.c (arm_frame_args_address): Delete.
4742 (arm_frame_locals_address): Delete.
4743 (arm_gdbarch_init): Do not set frame_args_address, or
4744 frame_locals_address.
4745
4746 2003-06-09 Andrew Cagney <cagney@redhat.com>
4747
4748 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4749 * gdbarch.h, gdbarch.c: Re-generate.
4750 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4751 * arch-utils.c (frame_num_args_unknown): Delete function.
4752 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4753 (frame_info): Use FRAME_NUM_ARGS_P.
4754 * arm-tdep.c (arm_frame_num_args): Delete function.
4755 (arm_gdbarch_init): Do not set frame_num_args.
4756 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4757 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4758 (hppa_gdbarch_init): Do not set frame_num_args.
4759 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4760 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4761 frame_num_args to default frame_num_args_unknown.
4762 * v850-tdep.c (v850_gdbarch_init): Ditto.
4763 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4764 * sh-tdep.c (sh_gdbarch_init): Ditto.
4765 * s390-tdep.c (s390_gdbarch_init): Ditto.
4766 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4767 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4768 * mips-tdep.c (mips_gdbarch_init): Ditto.
4769 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4770 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4771 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4772 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4773 * i386-tdep.c (i386_gdbarch_init): Ditto.
4774 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4775 * frv-tdep.c (frv_gdbarch_init): Ditto.
4776 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4777 * cris-tdep.c (cris_gdbarch_init): Ditto.
4778 * avr-tdep.c (avr_gdbarch_init): Ditto.
4779 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4780
4781 2003-06-09 Andrew Cagney <cagney@redhat.com>
4782
4783 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4784 (print_frame_args): Moved to "stack.c".
4785 * stack.c: Include "gdb_assert.h".
4786 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4787 (print_frame_args): Moved from "printcmd.c".
4788 * frame.h (print_frame_args): Delete declaration.
4789 * Makefile.in (stack.o): Update dependencies.
4790
4791 2003-06-08 Andrew Cagney <cagney@redhat.com>
4792
4793 * frame.c (get_prev_frame): Remove reference to
4794 frame_args_address_correct in comments.
4795 * frame-base.c (default_frame_args_address): Delete code
4796 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4797 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4798 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4799 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4800 (vax_frame_args_address_correct): Delete declaration.
4801
4802 2003-06-08 Andrew Cagney <cagney@redhat.com>
4803
4804 * gdbarch.sh (UNWIND_SP): Add.
4805 * gdbarch.h, gdbarch.c: Re-generate.
4806 * frame.c (frame_sp_unwind): New function.
4807 (get_frame_sp): New function.
4808 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4809 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4810 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4811 value.
4812 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4813 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4814
4815 2003-06-08 Andrew Cagney <cagney@redhat.com>
4816
4817 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4818 REMOTE_BREAKPOINT.
4819 * remote.c: Update.
4820 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4821 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4822 * config/m68k/tm-sun3.h: Update.
4823 * config/m68k/tm-m68klynx.h: Update.
4824 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4825
4826 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4827 trad_frame". Update comments.
4828 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4829 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4830 (trad_frame_register_value, trad_frame_prev_register): Update.
4831
4832 2003-06-08 Andrew Cagney <cagney@redhat.com>
4833
4834 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4835 from GCC's acinclude.m4.
4836 * configure.in: Check for getopt's delcaration.
4837 * aclocal.m4, config.in, configure: Re-generate.
4838 * main.c (error_init): Delete declaration.
4839 * defs.h (error_init): Declare.
4840 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4841 (rs6000_convert_from_func_ptr_addr): Make static.
4842 (_initialize_rs6000_tdep): Add declaration.
4843 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4844 (show_commands, set_verbose, show_history): Delete declaration.
4845 * top.h (set_verbose): Add declaration.
4846 (show_history, set_history, show_commands): Add declaration.
4847 (do_restore_instream_cleanup): Add declaration.
4848 * objc-lang.c (specialcmp): Make static.
4849 (print_object_command): Make static.
4850 (find_objc_msgsend): Make static.
4851 (find_objc_msgcall_submethod_helper): Make static.
4852 (find_objc_msgcall_submethod): Make static.
4853 (_initialize_objc_language): Add declaration.
4854 (find_implementation_from_class): Make static.
4855 (find_implementation): Make static.
4856 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4857 * objc-lang.h (lookup_struct_typedef): Add declaration.
4858 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4859 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4860 (do_restore_user_call_depth): Make static.
4861 (do_restore_instream_cleanup): Delete declaration.
4862 (dont_repeat): Delete declaration.
4863 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4864 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4865 * reggroups.c (_initialize_reggroup): Add declaration.
4866 * cp-support.c (_initialize_cp_support): Add declaration.
4867 * cp-abi.c (_initialize_cp_abi): Add declaration.
4868 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4869 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4870 (_initialize_gnu_v3_abi): Add declaration.
4871 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4872 (_initialize_gnu_v2_abi): Add declaration.
4873 * frame-base.c (_initialize_frame_base): Add declaration.
4874 * doublest.c (floatformat_from_length): Make static.
4875 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4876 * frame.c (create_sentinel_frame): Make static.
4877 (_initialize_frame): Add declaration.
4878 * top.c (do_catch_errors): Make static.
4879 (gdb_rl_operate_and_get_next_completion): Make static.
4880 * typeprint.c: Include "typeprint.h".
4881 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4882 (sentinel_frame_this_id): Make static.
4883 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4884 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4885 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4886 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4887 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4888 * maint.c (maintenance_print_architecture): Make static.
4889 * signals/signals.c (_initialize_signals): Add declaration.
4890 * std-regs.c (_initialize_frame_reg): Add declaration.
4891 * jv-exp.y (push_variable): ISO C definition.
4892 (push_qualified_expression_name): Ditto.
4893 * memattr.c (_initialize_mem): Add declaration.
4894 * remote.c (remote_check_watch_resources): Make static.
4895 (remote_stopped_by_watchpoint): Make static.
4896 (remote_stopped_data_address): Make static.
4897 * d10v-tdep.c (nr_dmap_regs): Make static.
4898 (a0_regnum): Make static.
4899 (d10v_frame_unwind_cache): Make static.
4900 (d10v_frame_p): Make static.
4901 * osabi.c (show_osabi): Make static.
4902 (_initialize_gdb_osabi): Add extern declaration.
4903 * gdbtypes.c (make_qualified_type): Make static.
4904 (safe_parse_type): Make static.
4905 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4906 * macrotab.c (macro_bcache_free): Make static.
4907 * interps.c (interp_set_quiet): Make static.
4908 (interpreter_exec_cmd): Make static.
4909 * stack.h (select_frame_command): New file.
4910 * stack.c: Include "stack.h".
4911 (select_frame_command_wrapper): Delete function.
4912 (select_frame_command): Make global.
4913 * infcall.c: Include "infcall.h".
4914 * linespec.c: Include "linespec.h".
4915 * symfile.c (sections_overlap): Make static.
4916 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4917 * charset.c (_initialize_charset): Add missing prototype.
4918 * regcache.c (init_legacy_regcache_descr): Make static.
4919 (do_regcache_xfree): Make static.
4920 (regcache_xfer_part): Make static.
4921 (_initialize_regcache): Add missing prototype.
4922 * breakpoint.c (parse_breakpoint_sals): Make static.
4923 (breakpoint_sals_to_pc): Make static.
4924 * interps.h (clear_interpreter_hooks): ISO C declaration.
4925 * Makefile.in (stack_h): Define.
4926 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4927 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4928
4929 2003-06-08 Andrew Cagney <cagney@redhat.com>
4930
4931 * Makefile.in (d10v-tdep.o): Update dependencies.
4932 (SFILES): Add trad-frame.c.
4933 (trad_frame_h): Define.
4934 (COMMON_OBS): Add trad-frame.o.
4935 (trad-frame.o): Specify dependencies.
4936 * d10v-tdep.c: Include "trad-frame.h".
4937 (saved_regs_unwinder): Delete function.
4938 (d10v_frame_prev_register): Use trad_frame_prev_register.
4939 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4940 trad_frame", delete "regs" and "prev_sp".
4941 (prologue_find_regs): Use trad-frame.
4942 * trad-frame.h, trad-frame.c: New files.
4943
4944 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4945
4946 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4947
4948 2003-06-07 Adam Fedor <fedor@gnu.org>
4949
4950 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4951 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4952 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4953 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4954 resolve_msgsend_super, resolve_msgsend_super_stret):
4955 Use it.
4956
4957 2003-06-07 Andrew Cagney <cagney@redhat.com>
4958
4959 * symfile.h: Re-indent, clean up comments.
4960
4961 2003-06-07 Andrew Cagney <cagney@redhat.com>
4962
4963 * inferior.h (deprecated_write_sp): Replace
4964 generic_target_write_sp.
4965 * regcache.c (deprecated_write_sp): Replace
4966 generic_target_write_sp.
4967 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4968 * vax-tdep.c (vax_gdbarch_init): Update.
4969 * v850-tdep.c (v850_gdbarch_init): Update.
4970 * sparc-tdep.c (sparc_gdbarch_init): Update.
4971 * sh-tdep.c (sh_gdbarch_init): Update.
4972 * s390-tdep.c (s390_gdbarch_init): Update.
4973 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4974 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4975 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4976 * mcore-tdep.c (mcore_gdbarch_init): Update.
4977 * m68k-tdep.c (m68k_gdbarch_init): Update.
4978 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4979 * ia64-tdep.c (ia64_gdbarch_init): Update.
4980 * h8300-tdep.c (h8300_gdbarch_init): Update.
4981 * frv-tdep.c (frv_gdbarch_init): Update.
4982 * cris-tdep.c (cris_gdbarch_init): Update.
4983 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4984
4985 2003-06-07 Andrew Cagney <cagney@redhat.com>
4986
4987 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4988 Assert that PC_REGNUM is valid.
4989 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4990
4991 2003-06-07 Andrew Cagney <cagney@redhat.com>
4992
4993 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4994 * gdbarch.h, gdbarch.c: Regenerate.
4995 * mn10300-tdep.c: Include "gdb_assert.h".
4996 (mn10300_read_fp): New function.
4997 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4998 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4999 * ia64-tdep.c: Include "gdb_assert.h".
5000 (ia64_read_fp): New function.
5001 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5002 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5003 * regcache.c (generic_target_read_sp): Delete function.
5004 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5005 * inferior.h (generic_target_read_sp): Delete declaration.
5006 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5007 generic_target_read_sp.
5008 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5009 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5010 * sh-tdep.c (sh_gdbarch_init): Ditto.
5011 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5012 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5013
5014 2003-06-07 Andrew Cagney <cagney@redhat.com>
5015
5016 * gdbarch.sh: Comment each field of startup_gdbarch.
5017 * gdbarch.h, gdbarch.c: Re-generate.
5018
5019 2003-06-07 Andrew Cagney <cagney@redhat.com>
5020
5021 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5022 * gdbarch.h, gdbarch.c: Re-generate.
5023 * regcache.c: Update comments on read_pc et.al.
5024 (generic_target_read_pc): Delete function.
5025 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5026 * inferior.h (generic_target_read_pc): Delete declaration.
5027 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5028 generic_target_read_pc.
5029 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5030 * sh-tdep.c (sh_gdbarch_init): Ditto.
5031 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5032 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5033
5034 2003-06-07 Andrew Cagney <cagney@redhat.com>
5035
5036 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5037 "index" with "special_local_sect". Use strcmp instead of STREQ.
5038 Append period to coments.
5039
5040 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5041
5042 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5043 (elfstab_offset_sections): Likewise.
5044 * gdb-stabs.h (stab_section_info): Likewise.
5045 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5046 * objfiles.c (objfile_relocate): Likewise.
5047 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5048 * remote.c (get_offsets): Likewise.
5049 (remote_cisco_objfile_relocate): Likewise.
5050 * somread.c (som_symfile_offsets): Likewise.
5051 * symfile.c (alloc_section_addr_info): New function.
5052 (build_section_addr_info_from_section_tab): Use it.
5053 (free_section_addr_info): Adjust.
5054 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5055 (syms_from_objfile): Allocate local_addr dynamically.
5056 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5057 dynamically.
5058 (add_symbol_file_command): Allocate sect_opts dynamically.
5059 (reread_symbols): Avoid use of SECT_OFF_MAX.
5060 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5061 (alloc_section_addr_info): Declare it.
5062 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5063 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5064 dynamically.
5065 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5066
5067 2003-06-06 Andrew Cagney <cagney@redhat.com>
5068
5069 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5070 (d10v_frame_unwind_cache): Do not set "return_pc".
5071
5072 2003-06-06 Michael Snyder <msnyder@redhat.com>
5073
5074 * h8300-tdep.c: Make tidy (long lines).
5075
5076 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5077
5078 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5079 to regcache_collect().
5080
5081 2003-06-05 J. Brobecker <brobecker@gnat.com>
5082
5083 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5084 pc_in_sigtramp multiarch method.
5085 (hppa_hpux_som_init_abi): Use it.
5086 (hppa_hpux_elf_init_abi): Likewise.
5087 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5088 macro has been multiarched.
5089 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5090 macro here, as hppa64 isn't multiarched yet.
5091
5092 2003-06-05 Andrew Cagney <cagney@redhat.com>
5093
5094 * Makefile.in (value_h): Add $(frame_h).
5095 * value.h: Include "frame.h".
5096 (struct value): Replace "frame_addr" with "frame_id".
5097 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5098 * values.c (allocate_value): Use VALUE_FRAME_ID.
5099 (value_copy): Use VALUE_FRAME_ID.
5100 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5101 * valops.c (value_assign): Update. Use frame_find_by_id.
5102
5103 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5104
5105 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5106 in each pass.
5107
5108 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5109
5110 * thread-db.c (check_event): For create/death event breakpoints,
5111 loop through all messages to ensure that we read the message
5112 corresponding to the breakpoint we are at.
5113
5114 2003-06-04 Michael Snyder <msnyder@redhat.com>
5115
5116 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5117
5118 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5119
5120 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5121 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5122 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5123 when handling .eh_frame sections.
5124
5125 2003-06-04 J. Brobecker <brobecker@gnat.com>
5126
5127 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5128 prepare_to_proceed procedure instead of the hppa-specific one.
5129 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5130
5131 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5132
5133 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5134 * config.in: Regenerated.
5135 * configure.in: Add test for syscall function and check for
5136 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5137 * configure: Regenerated.
5138 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5139 <sys/syscall.h>.
5140 (kill_lwp): New function that uses tkill syscall or
5141 uses kill, depending on whether threading model is nptl or not.
5142 All callers of kill() changed to use kill_lwp().
5143 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5144 see if all threads have already exited in the nptl model.
5145 (stop_and_resume_callback): New callback function used by the
5146 lin_lwp_wait thread exit handling code.
5147 (stop_wait_callback): Check for threads already having exited and
5148 delete such threads fromt the lwp list when discovered.
5149 (stop_callback): Don't assert retcode of kill call.
5150
5151 Roland McGrath <roland@redhat.com>
5152 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5153 nptl libthread_db.
5154
5155 2003-06-03 Richard Henderson <rth@redhat.com>
5156
5157 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5158 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5159 (alpha_sigtramp_frame_prev_register): Likewise.
5160 (alpha_heuristic_frame_prev_register): Likewise.
5161 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5162
5163 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5164 alpha-specific register id names.
5165 (alpha_mdebug_frame_unwind_cache): Likewise.
5166 (alpha_mdebug_frame_prev_register): Likewise.
5167
5168 2003-06-03 Richard Henderson <rth@redhat.com>
5169
5170 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5171 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5172 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5173 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5174 unwind routines.
5175 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5176 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5177 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5178
5179 * alpha-linux-tdep.c: Remove unnecessary includes.
5180 * Makefile.in (alpha-linux-tdep.o): Update.
5181
5182 2003-06-03 Richard Henderson <rth@redhat.com>
5183
5184 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5185 (alphabsd_fill_fpreg): Likewise.
5186
5187 2003-06-03 J. Brobecker <brobecker@gnat.com>
5188
5189 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5190 references to struct frame_info fields by calls to the equivalent
5191 accessors. Necessary now that frame_info is opaque.
5192
5193 2003-06-03 J. Brobecker <brobecker@gnat.com>
5194
5195 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5196 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5197 structure, field no longer exists.
5198
5199 2003-06-03 J. Brobecker <brobecker@gnat.com>
5200
5201 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5202 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5203
5204 2003-06-03 J. Brobecker <brobecker@gnat.com>
5205
5206 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5207 references to struct frame_info fields by calls to the equivalent
5208 accessors. Necessary now that frame_info is opaque.
5209
5210 2003-06-03 J. Brobecker <brobecker@gnat.com>
5211
5212 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5213 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5214 structure, field no longer exists.
5215
5216 2003-06-03 Theodore A. Roth <troth@openavr.org>
5217
5218 * remote.c (init_remote_state): Compute sizeof_g_packet by
5219 accumulation of the size of all registers instead of blindly using
5220 DEPRECATED_REGISTER_BYTES.
5221
5222 2003-06-03 Michael Snyder <msnyder@redhat.com>
5223
5224 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5225 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5226 for h8300sx.
5227
5228 2003-06-03 J. Brobecker <brobecker@gnat.com>
5229
5230 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5231 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5232
5233 2003-06-03 Andrew Cagney <cagney@redhat.com>
5234
5235 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5236 (sparc_convert_to_raw): Delete function.
5237 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5238 register_convert_to_virtual.
5239
5240 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5241
5242 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5243 layer if not dealing with a statically-linked threaded program.
5244
5245 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5246
5247 * solib.c (solib_open): Update comment to reflect actual search order.
5248
5249 2003-06-03 Andrew Cagney <cagney@redhat.com>
5250
5251 * frame.c (get_frame_memory_signed): New function.
5252 (get_frame_memory, get_frame_memory_unsigned): New function.
5253 (get_frame_arch): New function.
5254 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5255 (get_frame_memory, get_frame_unsigned_memory): Declare.
5256 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5257 get_frame_memory_unsigned and get_frame_arch.
5258 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5259
5260 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5261
5262 * MAINTAINERS (write after approval): Add myself.
5263
5264 2003-06-03 Jim Blandy <jimb@redhat.com>
5265
5266 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5267 elements of gregset_t are 64 bits each, but access registers
5268 are still 32 bits, so they're packed two per gregset_t
5269 element. Unpack/pack them properly.
5270
5271 2003-06-02 David Carlton <carlton@bactrian.org>
5272
5273 * linespec.c (find_methods): Break out code into
5274 add_matching_methods and add_constructors.
5275 (add_matching_methods): New.
5276 (add_constructors): Ditto.
5277
5278 2003-06-02 Andrew Cagney <cagney@redhat.com>
5279
5280 * sparc-tdep.c (sparc_print_registers): Delete call to
5281 REGISTER_CONVERTIBLE.
5282 (sparc_gdbarch_init): Do not set register_convertible.
5283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5284 * frv-tdep.c (frv_gdbarch_init): Ditto.
5285 * cris-tdep.c (cris_gdbarch_init): Ditto.
5286
5287 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5288
5289 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5290 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5291 (syms_from_objfile): Ditto.
5292
5293 2003-06-03 Andreas Schwab <schwab@suse.de>
5294
5295 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5296 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5297
5298 2003-06-02 Richard Henderson <rth@redhat.com>
5299
5300 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5301 a member of all_reggroup.
5302
5303 2003-06-02 Richard Henderson <rth@redhat.com>
5304
5305 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5306 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5307 (alpha_lds, alpha_sts): New.
5308 (alpha_convert_register_p): Change from _register_convertible.
5309 (alpha_register_to_value): Change from _convert_to_virtual;
5310 restructure and fail for type sizes other than 4 or 8.
5311 (alpha_value_to_register): Similarly.
5312 (alpha_extract_return_value): Use alpha_sts.
5313 (alpha_store_return_value): Use alpha_lds.
5314 (alpha_gdbarch_init): Update hooks.
5315
5316 2003-06-02 Richard Henderson <rth@redhat.com>
5317
5318 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5319 regnum identifiers.
5320 (alpha_sigtramp_register_address): Likewise.
5321
5322 2003-06-02 Richard Henderson <rth@redhat.com>
5323
5324 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5325 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5326 * alpha-tdep.h: Declare them.
5327
5328 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5329 Remove zerobuf. Don't error on UNIQUE.
5330 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5331 (ALPHA_REGSET_UNIQUE): Provide default.
5332 (supply_gregset): Use alpha_supply_int_regs.
5333 (fill_gregset): Use alpha_fill_int_regs.
5334 (supply_fpregset): Use alpha_supply_fp_regs.
5335 (fill_fpregset): Use alpha_fill_fp_regs.
5336 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5337 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5338 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5339 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5340 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5341 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5342
5343 2003-06-02 Richard Henderson <rth@redhat.com>
5344
5345 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5346
5347 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5348 (alpha_store_return_value): Likewise.
5349
5350 2003-06-02 David Carlton <carlton@math.stanford.edu>
5351
5352 * block.c (contained_in): Add 'const' to arguments.
5353 (block_function): Ditto.
5354 * block.h: Update declarations for block_function and
5355 contained_in.
5356
5357 2003-06-02 David Carlton <carlton@math.stanford.edu>
5358
5359 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5360 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5361 * p-valprint.c (pascal_val_print): Ditto.
5362 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5363
5364 2003-06-02 Richard Henderson <rth@redhat.com>
5365
5366 * alpha-tdep.c (alpha_push_dummy_call): Use
5367 builtin_type_ieee_double_little instead of builtin_type_double.
5368
5369 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5370 sign-extension of 32-bit values.
5371 (alpha_store_return_value): Similarly.
5372
5373 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5374 (alpha_extract_return_value): Likewise.
5375 (alpha_store_return_value): Likewise.
5376
5377 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5378 (alpha_store_return_value): Error on IEEE Quad floats.
5379
5380 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5381 (alpha_extract_struct_value_address): Likewise.
5382 (alpha_store_return_value): Likewise.
5383 (alpha_store_struct_return): Remove.
5384 (alpha_gdbarch_init): Update hook registration to match.
5385
5386 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5387 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5388 macros where appropriate.
5389 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5390 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5391
5392 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5393 for SP, GP; void_func_ptr for PC; non-language-specific types
5394 for all others.
5395 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5396
5397 2003-06-02 Richard Henderson <rth@redhat.com>
5398
5399 * top.h (lim_at_start): Declare.
5400 * main.c (captured_main): Set it.
5401 * top.c (lim_at_start): Define.
5402 (command_loop): Use it instead of &environ.
5403 * event-top.c (command_handler): Likewise.
5404
5405 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5406
5407 * mipsnbsd-tdep.c: Update copyright years.
5408 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5409
5410 2003-06-01 Richard Henderson <rth@redhat.com>
5411
5412 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5413 (alpha-linux-tdep.o): Update dependencies.
5414 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5415 * alpha-mdebug-tdep.c: Remove unneeded includes.
5416
5417 2003-06-01 Richard Henderson <rth@redhat.com>
5418
5419 * alpha-tdep.c (alpha_register_reggroup_p): New.
5420 (alpha_gdbarch_init): Register it.
5421
5422 2003-06-02 Andrew Cagney <cagney@redhat.com>
5423
5424 * dwarfread.c: Eliminate "register"
5425 (decode_die_type): Eliminate assignment within "if".
5426 (struct_type, decode_array_element_type): Ditto.
5427 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5428 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5429 (decode_modified_type, completedieinfo): Ditto.
5430 * block.c: Eliminate "register".
5431 (blockvector_for_pc_sect): Eliminate assignment within "if".
5432 * cp-support.h (struct symbol): Opaque declaration.
5433 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5434
5435 2003-06-01 Richard Henderson <rth@redhat.com>
5436
5437 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5438 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5439
5440 2003-06-01 Adam Fedor <fedor@gnu.org>
5441
5442 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5443 * gdbarch.[ch]: Regenerate.
5444 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5445 (hppa_gdbarch_init): Set it in the gdbarch vector.
5446 * i386-tdep.c (i386_fetch_pointer_argument): New
5447 (i386_gdbarch_init): Set it into gdbarch.
5448 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5449 (rs6000_gdbarch_init): Set it in gdbarch.
5450 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5451 (sparc_gdbarch_init): Set it in gdbarch.
5452
5453 2003-06-01 Andrew Cagney <cagney@redhat.com>
5454
5455 * defs.h (extract_address): Delete declaration.
5456 * findvar.c (extract_address): Delete function.
5457 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5458 extract_address with the inline equivalent,
5459 extract_unsigned_integer.
5460 (xstormy16_extract_struct_value_address): Ditto.
5461 (xstormy16_pointer_to_address): Ditto.
5462 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5463 * v850-tdep.c (v850_push_arguments): Ditto.
5464 (v850_extract_return_value): Ditto.
5465 (v850_extract_struct_value_address): Ditto.
5466 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5467 (sparcnbsd_get_longjmp_target_64): Ditto.
5468 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5469 (get_longjmp_target): Ditto.
5470 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5471 (sh64_extract_struct_value_address): Ditto.
5472 (sh_push_arguments): Ditto.
5473 (sh64_push_arguments): Ditto.
5474 * remote-vxsparc.c (vx_read_register): Ditto.
5475 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5476 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5477 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5478 * mipsv4-nat.c (get_longjmp_target): Ditto.
5479 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5480 * mips-nat.c (get_longjmp_target): Ditto.
5481 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5482 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5483 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5484 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5485 * irix5-nat.c (get_longjmp_target): Ditto.
5486 * irix4-nat.c (get_longjmp_target): Ditto.
5487 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5488 (ia64_push_arguments): Ditto.
5489 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5490 * h8300-tdep.c (h8300_push_arguments): Ditto.
5491 (h8300_store_return_value): Ditto.
5492 (h8300_extract_struct_value_address): Ditto.
5493 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5494 (frv_push_arguments): Ditto.
5495 * avr-tdep.c (avr_pointer_to_address): Ditto.
5496 (avr_push_arguments): Ditto.
5497 * arm-tdep.c (arm_push_dummy_call): Ditto.
5498 (arm_get_longjmp_target): Ditto.
5499 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5500 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5501 (alpha_get_longjmp_target): Ditto.
5502
5503 * solib-irix.c (extract_mips_address): Inline extract_address,
5504 replacing it with extract_signed_integer.
5505 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5506 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5507 (first_link_map_member, open_symbol_file_object): Ditto.
5508 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5509 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5510 (LM_NEXT, LM_NAME): Ditto.
5511
5512 2003-06-01 Richard Henderson <rth@redhat.com>
5513
5514 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5515 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5516 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5517 (alpha_cannot_store_register): Likewise.
5518 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5519 * alpha-nat.c (supply_gregset): Likewise.
5520 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5521
5522 2003-06-01 Andrew Cagney <cagney@redhat.com>
5523
5524 * infcall.c (call_function_by_hand): Update comment on
5525 DEPRECATED_DUMMY_WRITE_SP.
5526
5527 * mips-tdep.c (mips_gdbarch_init): Do not set
5528 deprecated_dummy_write_sp.
5529 (mips_eabi_push_dummy_call): Set the SP register.
5530 (mips_o64_push_dummy_call): Set the SP register.
5531 (mips_o32_push_dummy_call): Set the SP register.
5532 (mips_n32n64_push_dummy_call): Set the SP register.
5533
5534 2003-06-01 Richard Henderson <rth@redhat.com>
5535
5536 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5537 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5538 (supply_gregset): Likewise.
5539 * alpha-tdep.c (alpha_store_return_value): Likewise.
5540 (alpha_get_longjmp_target): Likewise.
5541 (alpha_register_name): Constify array.
5542 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5543 deprecated_register_size, deprecated_register_bytes,
5544 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5545 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5546 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5547
5548 2003-06-01 Richard Henderson <rth@redhat.com>
5549
5550 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5551 from arg_reg_buffer to regcache to avoid double conversion.
5552
5553 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5554
5555 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5556 SP_REGNUM.
5557 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5558 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5559
5560 2003-06-01 Richard Henderson <rth@redhat.com>
5561
5562 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5563 (decode_frame_entry): Set it. Skip FDE augmentation.
5564
5565 2003-06-01 Richard Henderson <rth@redhat.com>
5566
5567 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5568 not overlapping PC_REGNUM.
5569
5570 2003-06-01 Richard Henderson <rth@redhat.com>
5571
5572 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5573 alpha_push_arguments. Don't dump argument register data to
5574 the target stack. Fix float and 128-bit long double semantics.
5575 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5576 (alpha_fix_call_dummy): Remove.
5577 (alpha_call_dummy_words): Remove.
5578 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5579
5580 2003-06-01 Richard Henderson <rth@redhat.com>
5581
5582 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5583
5584 2003-06-01 Andrew Cagney <cagney@redhat.com>
5585
5586 * mips-tdep.c (is_mips16_addr): New function.
5587 (make_mips16_addr, unmake_mips16_addr): New functions.
5588 (pc_is_mips16, mips_fetch_instruction): Use.
5589 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5590 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5591 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5592 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5593 TARGET_MIPS.
5594 * config/mips/tm-mips.h: Update copyright.
5595 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5596 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5597 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5598 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5599 (TM_PRINT_INSN_MACH): Delete.
5600 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5601
5602 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5603 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5604 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5605 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5606 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5607 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5608 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5609 mips*-*-riscos* and mips*-*-sysv* onto mips.
5610 * config/mips/mips64.mt: New file.
5611 * config/mips/mips.mt: New file.
5612 * config/mips/littlemips.mt: Delete file.
5613 * config/mips/decstation.mt: Delete file.
5614 * config/mips/vr4300el.mt: Delete file.
5615 * config/mips/vr5000el.mt: Delete file.
5616 * config/mips/vr5000.mt: Delete file.
5617 * config/mips/vr4100.mt: Delete file.
5618 * config/mips/vr4xxxel.mt: Delete file.
5619 * config/mips/vr4300.mt: Delete file.
5620 * config/mips/vr4xxx.mt: Delete file.
5621 * config/mips/bigmips.mt: Delete file.
5622 * config/mips/bigmips64.mt: Delete file.
5623 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5624 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5625 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5626 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5627 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5628 "tm-bigmips.h".
5629 * config/mips/tm-irix3.h: Ditto.
5630 * config/mips/tm-mipsv4.h: Ditto.
5631 * config/mips/tm-embed.h: Ditto.
5632 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5633 "tm-bigmips64.h".
5634 * config/mips/tm-vr5000el.h: Delete file.
5635 * config/mips/tm-tx39l.h: Delete file.
5636 * config/mips/tm-vr4300el.h: Delete file.
5637 * config/mips/tm-vr4xxxel.h: Delete file.
5638 * config/mips/tm-vr4300.h: Delete file.
5639 * config/mips/tm-vr4100.h: Delete file.
5640 * config/mips/tm-vr4xxx.h: Delete file.
5641 * config/mips/tm-vr5000.h: Delete file.
5642 * config/mips/tm-embedl64.h: Delete file.
5643 * config/mips/tm-embedl.h: Delete file.
5644 * config/mips/tm-embed64.h: Delete file.
5645 * config/mips/tm-bigmips64.h: Delete file.
5646 * config/mips/tm-bigmips.h: Delete file.
5647
5648 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5649
5650 Fix gdb/1216.
5651 * shnbsd-nat.c: Include "sh-tdep.h".
5652
5653 From Richard Henderson <rth@redhat.com>:
5654 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5655
5656 2003-05-31 Andrew Cagney <cagney@redhat.com>
5657
5658 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5659 forward declaration.
5660 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5661 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5662 (mips_find_saved_regs): Use set_reg_offset.
5663 (mips_frame_init_saved_regs): Delete function.
5664 (mips_pop_frame): Call mips_find_saved_regs instead of
5665 DEPRECATED_FRAME_INIT_SAVED_REGS.
5666
5667 2003-05-31 Andrew Cagney <cagney@redhat.com>
5668
5669 * mips-tdep.c (mips_gdbarch_init): Do not set
5670 deprecated_max_register_raw_size, register_virtual_size, and
5671 deprecated_max_register_virtual_size.
5672
5673 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5674
5675 * i386-tdep.c: Include "dwarf2-frame.h".
5676 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5677 * Makefile.in (i386-tdep.o): Update dependencies.
5678
5679 * dwarf2-frame.c, dwarf2-frame.h: New files.
5680 * Makefile.in (SFILES): Add dwarf2-frame.c.
5681 (dwarf2_frame_h): Define.
5682 (COMMON_OBS): Add dwarf2-frame.o.
5683 (dwarf2-frame.o): Add dependencies.
5684
5685 2003-05-31 Andreas Jaeger <aj@suse.de>
5686
5687 * x86-64-linux-nat.c: Fix comment.
5688
5689 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5690
5691 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5692 function signature.
5693
5694 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5695 have a sigcontext_addr handler.
5696 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5697 sigcontext_addr handler.
5698
5699 2003-05-31 Andrew Cagney <cagney@redhat.com>
5700
5701 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5702 (print_fp_register_row): Replace do_fp_register_row.
5703 (mips_print_fp_register): Add "file" and "frame" parameters.
5704 (mips_print_register): Add "file" and "frame" parameters.
5705 (mips_print_registers_info): Replace mips_do_registers_info.
5706 (mips_gdbarch_init): Set print_registers_info instead of
5707 deprecated_do_registers_info.
5708 (mips_read_fp_register_single): Add "frame" parameter.
5709 (mips_read_fp_register_double): Add "frame" parameter.
5710
5711 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5712
5713 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5714 Fixes a bug where GDB would print the wrong register names for
5715 targets without SSE.
5716
5717 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5718 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5719 registers.
5720
5721 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5722 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5723 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5724 TDEP->sc_sp_offset.
5725
5726 From Michal Ludvig <mludvig@suse.cz>:
5727 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5728 and `sc_num_regs'.
5729 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5730 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5731 I386_ST0_REGNUM): Move here from...
5732 * i386-tdep.c: ... here.
5733 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5734 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5735 registers if possible.
5736 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5737 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5738 Remove variables.
5739 (i386bsd_sc_reg_offset): New variable.
5740 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5741 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5742 TDEP->sc_sp_offset.
5743 (i386fbsd_sc_reg_offset): New variable.
5744 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5745 TDEP->sc_num_regs.
5746 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5747 variables.
5748 (i386fbsd4_sc_reg_offset): New variable.
5749 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5750 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5751 TDEP->sc_sp_offset.
5752 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5753 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5754 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5755 Remove variables.
5756 (i386nbsd_sc_reg_offset): New variable.
5757 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5758 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5759 TDEP->sc_sp_offset.
5760 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5761 Remove variables.
5762 (i386obsd_sc_reg_offset): New variable.
5763 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5764 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5765 TDEP->sc_sp_offset.
5766 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5767 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5768 for frame pointer offset in `struct sigcontext'.
5769
5770 2003-05-31 Andrew Cagney <cagney@redhat.com>
5771
5772 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5773 architecture methods call_dummy_words, sizeof_call_dummy_words,
5774 push_return_address, store_struct_return, and fix_call_dummy. Set
5775 push_dummy_call instead of deprecated_push_arguments.
5776 (mips_store_struct_return): Delete function.
5777 (mips_fix_call_dummy): Delete function.
5778 (mips_push_return_address): Delete function.
5779 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5780 RA_REGNUM and T9_REGNUM.
5781 (mips_n32n64_push_dummy_call): Ditto for
5782 mips_n32n64_push_arguments.
5783 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5784 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5785
5786 2003-05-31 Andrew Cagney <cagney@redhat.com>
5787
5788 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5789 "dummy_addr" to "bp_addr".
5790 * infcall.c (call_function_by_hand): Pass "funaddr" to
5791 gdbarch_push_dummy_call.
5792 * gdbarch.h, gdbarch.c: Re-generate.
5793 * i386-tdep.c (i386_push_dummy_call): Update.
5794 * arm-tdep.c (arm_push_dummy_call): Update.
5795 * d10v-tdep.c (d10v_push_dummy_call): Update.
5796
5797 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5798
5799 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5800 variable declarations.
5801 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5802 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5803 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5804 x86_64_init_frame_pc, x86_64_init_frame_pc,
5805 x86_64_function_has_prologue): Remove prototypes.
5806 (X86_64_NUM_GREGS): New define.
5807 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5808 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5809 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5810 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5811 XMM1_REGNUM): Remove defines.
5812 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5813 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5814 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5815 X86_64_XMM1_REGNUM): New defines.
5816 (struct x86_64_register_info): Renamed from `struct
5817 register_info'. Remove `size' member.
5818 (x86_64_register_info_table): Remove variable.
5819 (x86_64_register_info): New variable.
5820 (X86_64_NUM_REGS): New define.
5821 (X86_64_NUM_GREGS): Remove define.
5822 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5823 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5824 Remove variables.
5825 (x86_54_dwarf2_reg_to_regnum): Remove function.
5826 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5827 (x86_64_dwarf_reg_to_regnum): New function.
5828 (x86_64_register_name): Rewrite.
5829 (x86_64_register_raw_size): Remove function.
5830 (x86_64_register_byte_table): Remove variable.
5831 (x86_64_register_byte): Remove function.
5832 (x86_64_register_virtual_type): Remove function.
5833 (x86_64_register_type): New function.
5834 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5835 x86_64_register_convert_to_raw): Remove functions.
5836 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5837 (x86_64_use_struct_convention): Make static. Adjust for renamed
5838 defines.
5839 (x86_64_frame_init_saved_regs): Remove function.
5840 (x86_64_push_arguments): Make static. Change to accept a regcache
5841 as argument.
5842 (x86_64_store_return_value, x86_64_extract_return_value): Make
5843 static. Rewrite based on i386 counterparts.
5844 (x86_64_push_dummy_call): New function.
5845 (X86_64_NUM_SAVED_REGS): New define.
5846 (x86_64_register_number): Remove function.
5847 (x86_64_store_struct_return): Remove function.
5848 (x86_64_frameless_function_invocation,
5849 x86_64_function_has_prologue): Remove functions.
5850 (PROLOG_BUFSIZE): Remove define.
5851 (struct x86_64_frame_cache): New structure.
5852 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5853 x86_64_frame_cache, x86_64_frame_this_id,
5854 x86_64_frame_prev_register, x86_64_frame_p,
5855 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5856 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5857 functions.
5858 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5859 variables.
5860 (x86_64_skip_prologue): Rewrite in terms of
5861 x86_64_analyze_prologue.
5862 (x86_64_frame_base_address): New function.
5863 (x86_64_frame_base): New variable.
5864 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5865 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5866 set deprecated_fp_regnum, deprecated_register_size,
5867 deprecated_register_bytes, register_raw_size, register_byte,
5868 register_virtual_type, register_convertiable,
5869 register_convert_to_virtual, convert_to_raw,
5870 deprecated_get_saved_register, deprecated_target_read_fp,
5871 deprecated_push_arguments, deprecated_push_return_address,
5872 deprecated_pop_frame, deprecated_store_struct_return,
5873 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5874 frameless_function_invocation, deprecated_frame_saved_pc,
5875 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5876 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5877 deprecated_init_frame_pc and virtual_frame_pointer. Call
5878 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5879 and x86_64_frame_p. Call frame_base_set_default to register
5880 x86_64_frame_base.
5881 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5882 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5883 (_initialize_x86_64_tdep): Remove function.
5884 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5885 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5886 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5887 define.
5888 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5889 (x86_64_linux_sigcontext_addr): Rewrite.
5890 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5891 x86_64_linux_frame_saved_pc): Remove functions.
5892 (x86_64_linux_pc_in_sigtramp): Renamed from
5893 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5894 trampoline.
5895 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5896 Remove_functions.
5897 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5898 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5899 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5900 (x86_64_regmap): Rename to regmap.
5901 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5902 x86_64_num_gregs.
5903 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5904 x86_64_regmap.
5905 (x86_64_fxsave_offset): Remove function.
5906 (supply_fpregset): Simply call x86_64_supply_fxsave.
5907 (fill_fpregset): Simply call x86_64_fill_fxsave.
5908 (fetch_inferior_registers, store_inferior_registers): Avoid
5909 asignment in if-statement.
5910 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5911 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5912 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5913 (fetch_core_registers): Remove function.
5914 (linux_elf_core_fns): Remove.
5915 (offsetoff): Don't define.
5916 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5917 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5918 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5919 add core-regset.o.
5920 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5921 protection against multiple includes instead of NM_X86_64_h. Add
5922 various comments. Include "config/nm-linux.h". Don't include
5923 <signal.h>.
5924 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5925 GET_THREAD_SIGNALS): Remove defines.
5926 (x86_64_register_u_addr, kernel_u_size,
5927 lin_thread_get_thread_signals): Remove prototypes.
5928 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5929 [HAVE_LINK_H]: Don't include "solib.h".
5930 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5931 * config/i386/tm-x86-64linux.h: Fix comments.
5932 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5933 x86-64-tdep.o): Update dependencies.
5934
5935 2003-05-30 Andrew Cagney <cagney@redhat.com>
5936
5937 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5938 Change parameter type to a "struct regcache *".
5939
5940 * gdbarch.sh: Regardless of the multi-arch level, always define
5941 the macro when not already defined.
5942 * gdbarch.h, gdbarch.c: Re-generate.
5943
5944 2003-05-30 Richard Henderson <rth@redhat.com>
5945
5946 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5947 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5948 (alpha_mdebug_frame_this_id): Likewise.
5949 (alpha_mdebug_frame_prev_register): Likewise.
5950 (alpha_mdebug_frame_base_address): Likewise.
5951 (alpha_mdebug_frame_locals_address): Likewise.
5952 (alpha_mdebug_frame_args_address): Likewise.
5953 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5954 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5955 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5956 loop increment.
5957 (alpha_heuristic_frame_this_id): Make static.
5958 (alpha_heuristic_frame_prev_register): Likewise.
5959 (alpha_heuristic_frame_base_address): Likewise.
5960 * alpha-tdep.h: Update.
5961
5962 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5963
5964 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5965 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5966 defenitions.
5967 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5968 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5969 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5970 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5971 I386_ST0_REGNUM): New defines.
5972 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5973 codestream_get): Remove define.
5974 (codestream_next_addr, condestream_addr, condestream_buf,
5975 codestream_off, codestream_cnt): Remove variables.
5976 (codestream_fill, codestream_seek, codestream_read): Remove
5977 functions.
5978 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5979 functionality.
5980 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5981 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5982 i386_frame_saved_pc, i386_saved_pc_after_call,
5983 i386_frame_num_args, i386_frame_init_saved_regs,
5984 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5985 i386_push_arguments): Remove functions.
5986 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5987 functionality. Use i386_analyze_prologue instead of
5988 i386_get_frame_setup.
5989 (I386_NUM_SAVED_REGS): New define.
5990 (struct i386_frame_cache): New structure.
5991 (i386_alloc_frame_cache, i386_analyze_struct_return,
5992 i386_skip_probe, i386_analyze_frame_setup,
5993 i386_analyze_register_saves, i386_analyze_prologue,
5994 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5995 i386_frame_prev_register, i386_sigtramp_frame_cache,
5996 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5997 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5998 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5999 New functions.
6000 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6001 New variables.
6002 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6003 I386_EAX_REGNUM and I386_EDX_REGNUM.
6004 (i386_extract_return_value, i386_store_return_value): Use
6005 I386_ST0_REGNUM where appropriate.
6006 (i386_extract_struct_value_address): Rewrite to use extract_address.
6007 (i386_svr4_pc_in_sigtramp): Add comment.
6008 (i386_svr4_sigcontext_addr): Rewrite.
6009 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6010 TDEP->sc_sp_offset.
6011 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6012 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6013 of new defines. Set push_dummy_call, don't set
6014 deprecated_push_arguments, deprecated_push_return_address,
6015 deprecated_pop_frame. Don't set parm_boundary. Don't set
6016 deprecated_frame_chain, deprecated_frame_saved_pc,
6017 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6018 save_dummy_frame_tos, unwind_pc. Call
6019 frame_unwind_append_predicate and frame_base_set_default. Don't
6020 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6021 Don't set frameless_function_invocation. Don't set
6022 deprecated_register_bytes, deprecated_register_size,
6023 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6024 * i386-linux-tdep.c: Fix formatting in some comments.
6025 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6026 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6027 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6028 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6029 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6030 redundant parentheses.
6031 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6032 (i386_linux_sigcontext_addr): Use it. Rewrite.
6033 (find_minsym_and_objfile): Change name of second argument.
6034 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6035 changed. Use frame_pc_unwind instead of
6036 DEPRECATED_SAVED_PC_AFTER_CALL.
6037 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6038 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6039 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6040 unwinder.
6041 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6042 "dummy-frame.h".
6043 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6044 (_initialize_i386_cygwin_tdep): New prototype.
6045 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6046 deprecated_frame_chain_valid.
6047 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6048 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6049 Rely on the SVR4 defaults.
6050 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6051 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6052
6053 2003-05-30 Andrew Cagney <cagney@redhat.com>
6054
6055 * infcall.c (call_function_by_hand): Always call
6056 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6057
6058 2003-05-30 Richard Henderson <rth@redhat.com>
6059
6060 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6061 increment.
6062
6063 2003-05-29 Jim Blandy <jimb@redhat.com>
6064
6065 Use gdbarch methods for solib stuff on PowerPC Linux.
6066 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6067 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6068 show through.
6069 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6070 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6071 giving the same effect as the #definitions above.
6072
6073 2003-05-29 Adam Fedor <fedor@gnu.org>
6074
6075 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6076 (find_implementation_from_class): Replace it with the standard
6077 case i.e. do nothing.
6078
6079 2003-05-29 Richard Henderson <rth@redhat.com>
6080
6081 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6082 (alpha_linux_sigtramp_offset): Use it. Make static.
6083 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6084 update for new frame model.
6085 * alpha-mdebug-tdep.c: New file.
6086 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6087 (alpha_osf1_init_abi): Install it.
6088 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6089 (linked_proc_desc_table): Remove.
6090 (alpha_frame_past_sigtramp_frame): Remove.
6091 (alpha_dynamic_sigtramp_offset): Remove.
6092 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6093 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6094 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6095 (push_sigtramp_desc): Remove.
6096 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6097 (alpha_cannot_store_register): Likewise.
6098 (alpha_sigcontext_addr): Remove.
6099 (alpha_find_saved_regs): Remove.
6100 (alpha_frame_init_saved_regs): Remove.
6101 (alpha_init_frame_pc_first): Remove.
6102 (read_next_frame_reg): Remove.
6103 (alpha_frame_saved_pc): Remove.
6104 (alpha_saved_pc_after_call): Remove.
6105 (temp_proc_desc, temp_saved_regs): Remove.
6106 (alpha_about_to_return): Remove.
6107 (cached_proc_desc): Remove.
6108 (alpha_frame_chain): Remove.
6109 (alpha_print_extra_frame_info): Remove.
6110 (alpha_init_extra_frame_info): Remove.
6111 (alpha_frame_locals_address): Remove.
6112 (alpha_frame_args_address): Remove.
6113 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6114 (alpha_push_dummy_frame): Remove.
6115 (alpha_pop_frame): Remove.
6116 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6117 (alpha_read_insn): New.
6118 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6119 for different insn encodings.
6120 (alpha_in_lenient_prologue): Remove.
6121 (struct alpha_sigtramp_unwind_cache): New.
6122 (alpha_sigtramp_frame_unwind_cache): New.
6123 (alpha_sigtramp_register_address): New.
6124 (alpha_sigtramp_frame_this_id): New.
6125 (alpha_sigtramp_frame_prev_register): New.
6126 (alpha_sigtramp_frame_unwind): New.
6127 (alpha_sigtramp_frame_p): New.
6128 (struct alpha_heuristic_unwind_cache): New.
6129 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6130 don't count nop insns that occur between functions.
6131 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6132 heuristic_proc_desc, but without the mdebug wrapping.
6133 (alpha_heuristic_frame_this_id): New.
6134 (alpha_heuristic_frame_prev_register): New.
6135 (alpha_heuristic_frame_unwind): New.
6136 (alpha_heuristic_frame_p): New.
6137 (alpha_heuristic_frame_base_address): New.
6138 (alpha_heuristic_frame_base): New.
6139 (alpha_unwind_dummy_id): New.
6140 (alpha_unwind_pc): New.
6141 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6142 frame related deprecated initializations; install replacements.
6143 (alpha_dump_tdep): Remove.
6144 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6145 (alpha_read_insn, alpha_after_prologue,
6146 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6147 alpha_heuristic_frame_prev_register,
6148 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6149 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6150 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6151 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6152
6153 2003-05-29 Andrew Cagney <cagney@redhat.com>
6154
6155 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6156 dependant on the availability of ASSERT_FUNCTION.
6157 (ASSERT_FUNCTION): Do not define when there is no function name.
6158
6159 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6160
6161 From Jimi X <jimix@watson.ibm.com>:
6162 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6163
6164 2003-05-28 Jim Blandy <jimb@redhat.com>
6165
6166 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6167 argument to ptrace to int; the system headers should give it the
6168 right type, and pointers don't fit in ints on powerpc64-*-*.
6169
6170 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6171
6172 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6173 DW_TAG_catch_block.
6174
6175 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6176
6177 * stabsread.c (dbx_lookup_type): Make static.
6178 (read_type): Ditto.
6179 (add_undefined_type): Ditto.
6180 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6181 not export.
6182
6183 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6184
6185 * hpread.c (hpread_has_name): Make static.
6186 (hpread_psymtab_to_symtab): Ditto.
6187 (file_exists): Ditto.
6188 (hpread_call_pxdb): Ditto.
6189 (hpread_pxdb_needed): Ditto.
6190 (hpread_quick_traverse): Ditto.
6191 (hpread_get_header): Ditto.
6192 (hpread_get_lntt): Ditto.
6193 (hpread_get_slt): Ditto.
6194 (class_of): Ditto.
6195
6196 2003-05-25 Andreas Schwab <schwab@suse.de>
6197
6198 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6199 stack_align and deprecated_extra_stack_alignment_needed.
6200 (m68k_stack_align): Delete.
6201
6202 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6203 (m68k_register_virtual_size): Likewise.
6204 (altos_skip_prologue): Remove obsolete function.
6205 (isi_frame_num_args): Likewise.
6206 (news_frame_num_args): Likewise.
6207 (m68k_fix_call_dummy): Make static.
6208 (m68k_push_dummy_frame): Likewise.
6209 (m68k_pop_frame): Likewise.
6210 (m68k_skip_prologue): Likewise.
6211 (m68k_frame_init_saved_regs): Likewise.
6212 (m68k_saved_pc_after_call): Likewise.
6213 (m68k_get_longjmp_target): Make multi-arch.
6214 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6215 structure. Register m68k_get_longjmp_target if enabled.
6216 * m68k-tdep.h (struct gdbarch_tdep): Define.
6217 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6218
6219 * Makefile.in (config.status): Also depend on configure.tgt
6220 and configure.host.
6221 (m68klinux-tdep.o): Update dependencies.
6222 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6223 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6224 (M68K_LINUX_JB_PC): Define.
6225 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6226 and take additional parameter.
6227 (m68k_linux_sigtramp_saved_pc): Update.
6228 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6229 m68k_linux_pc_in_sigtramp, in_plt_section,
6230 find_solib_trampoline_target.
6231 * config/m68k/tm-linux.h: Don't include any tm headers.
6232 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6233 (JB_ELEMENT_SIZE): Likewise.
6234 (JB_PC): Likewise.
6235 (GET_LONGJMP_TARGET): Likewise.
6236 (IN_SIGTRAMP): Likewise.
6237 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6238
6239 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6240
6241 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6242 (sparc32_push_arguments): Re-implement by calling
6243 sparc32_do_push_arguments.
6244
6245 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6246
6247 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6248 SPARC_O1_REGNUM): New defines.
6249 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6250 (sparc32_store_return_value): New function.
6251 (sparc_extract_struct_value_address): Rewrite to operate on a
6252 regcache.
6253 (sparc_gdbarch_init): Don't set
6254 deprecated_extract_struct_value_address. Set
6255 extract_struct_value_address instead. Don't set
6256 deprecated_extract_return_value and deprecated_store_return_value
6257 for 32-bit targets. Set extract_return_value and
6258 store_return_value instead.
6259 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6260 DEPRECTAED_EXTRACT_RETURN_VALUE,
6261 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6262 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6263 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6264 (sparc_store_return_value): Remove prototype.
6265 (sparc32_store_return_value): New prototype.
6266 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6267 Adjust prototypes.
6268
6269 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6270
6271 * sparcnbsd-tdep.c: Include "gdb_string.h".
6272
6273 2003-05-23 Andrew Cagney <cagney@redhat.com>
6274
6275 * p-valprint.c (pascal_val_print): Replace extract_address with
6276 the inline equivalent extract_unsigned_integer.
6277 * jv-valprint.c (java_value_print): Ditto.
6278 * ada-valprint.c (ada_val_print_1): Ditto.
6279 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6280
6281 2003-05-23 Theodore A. Roth <troth@openavr.org>
6282
6283 * blockframe.c (frameless_look_for_prologue): Remove unused
6284 after_prologue variable.
6285
6286 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6287
6288 * blockframe.c (get_pc_function_start): Rewrite to avoid
6289 asignments in if-statements.
6290
6291 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6292
6293 Committed by Elena Zannoni <ezannoni@redhat.com>.
6294 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6295 files, don't relocate absolute symbols (and do use mst_abs).
6296
6297 2003-05-23 Andrew Cagney <cagney@redhat.com>
6298
6299 * objc-lang.c: Include "gdb_assert.h".
6300 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6301 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6302 (gdb_check, gdb_check_fatal): Delete functions.
6303 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6304 gdb_assert.
6305 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6306 * Makefile.in (objc-lang.o): Update dependencies.
6307
6308 2003-05-22 Ian Lance Taylor <ian@airs.com>
6309
6310 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6311 with fprintf_filtered, not fprintf_unfiltered.
6312
6313 2003-05-22 Andrew Cagney <cagney@redhat.com>
6314
6315 * stack.c (frame_info): Inline extract_address, replacing it with
6316 extract_unsigned_integer.
6317 * findvar.c (unsigned_pointer_to_address): Ditto.
6318 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6319 * dwarf2expr.c (dwarf2_read_address): Ditto.
6320 * frame.c (frame_pc_unwind): Update comment.
6321 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6322
6323 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6324
6325 * infptrace.c (detach): Call print_sys_errmsg rather than
6326 perror_with_name to issue warning message when errno is non-zero
6327 after calling ptrace detach.
6328
6329 2003-05-21 J. Brobecker <brobecker@gnat.com>
6330
6331 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6332 macro definitions from here...
6333 * hppa-tdep.c: ...to there.
6334
6335 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6336
6337 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6338 register_ptrace_addr(). Fix all callers.
6339
6340 2003-05-21 Andreas Schwab <schwab@suse.de>
6341
6342 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6343 dependencies.
6344 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6345 end.
6346 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6347 (_initialize_m68k_linux_tdep): New function.
6348 (m68k_linux_frame_saved_pc): Make static.
6349 (m68k_linux_extract_return_value): Likewise.
6350 (m68k_linux_store_return_value): Likewise.
6351 (m68k_linux_extract_struct_value_address): Likewise.
6352 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6353 Remove.
6354 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6355 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6356 (DEPRECATED_FRAME_SAVED_PC): Remove.
6357
6358 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6359
6360 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6361 regset numbering rather than our own.
6362
6363 2003-05-19 David Carlton <carlton@bactrian.org>
6364
6365 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6366
6367 2003-05-19 David Carlton <carlton@bactrian.org>
6368
6369 Partial fix for PR c++/827.
6370 * cp-support.h: Include symtab.h.
6371 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6372 * cp-namespace.c: Update contributors.
6373 (cp_lookup_symbol_nonlocal): New.
6374 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6375 (lookup_symbol_file): Ditto.
6376 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6377 * block.h: Declare block_scope, block_using, block_global_block.
6378 * block.c (block_scope): New.
6379 (block_using, block_global_block): Ditto.
6380 * Makefile.in (cp_support_h): Depend on symtab_h.
6381 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6382
6383 2003-05-19 David Carlton <carlton@bactrian.org>
6384
6385 * language.h (struct language_defn): Add 'la_value_of_this'
6386 and 'la_lookup_symbol_nonlocal' members.
6387 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6388 lookup_symbol_static, lookup_symbol_global,
6389 lookup_symbol_aux_block.
6390 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6391 if we should search fields of this and how to do static/global
6392 lookup.
6393 (lookup_symbol_aux_block): Make extern.
6394 (basic_lookup_symbol_nonlocal): New.
6395 (lookup_symbol_static, lookup_symbol_global): Ditto.
6396 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6397 'la_lookup_symbol_nonlocal' members.
6398 * c-lang.c (c_language_defn, cplus_language_defn)
6399 (asm_language_defn, minimal_language_defn): Ditto.
6400 * jv-lang.c (java_language_defn): Ditto.
6401 * language.c (unknown_language_defn, auto_language_defn)
6402 (local_language_defn): Ditto.
6403 * m2-lang.c (m2_language_defn): Ditto.
6404 * objc-lang.c (objc_language_defn): Ditto.
6405 * scm-lang.c (scm_language_defn): Ditto.
6406 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6407 * p-lang.c (pascal_language_defn): Ditto for both.
6408 * Makefile.in (f-lang.o): Depend on value_h.
6409 (p-lang.o): Ditto.
6410
6411 2003-05-19 David Carlton <carlton@bactrian.org>
6412
6413 * block.h: Declare block_static_block.
6414 * block.c (block_static_block): New.
6415 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6416 lookup_symbol_aux_local, calling block_static_block instead.
6417 (lookup_symbol_aux_local): Delete 'static_block' argument.
6418
6419 2003-05-19 David Carlton <carlton@bactrian.org>
6420
6421 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6422
6423 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6424
6425 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6426 register numbers mapping.
6427
6428 2003-05-18 Adam Fedor <fedor@gnu.org>
6429
6430 * symtab.c (completion_list_objc_symbol): New function.
6431 (make_symbol_completion_list): Use it to add ObjC symbols
6432 when looking though the list.
6433 (language_search_unquoted_string): New function.
6434 (make_file_symbol_completion_list): Use it.
6435
6436 2003-05-18 Andreas Schwab <schwab@suse.de>
6437
6438 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6439 dependencies.
6440 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6441 as m68k_linux_extract_return_value.
6442 (DEPRECATED_STORE_RETURN_VALUE): Define as
6443 m68k_linux_store_return_value.
6444 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6445 m68k_linux_extract_struct_value_address.
6446 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6447 get_next_frame, get_frame_base, get_frame_pc.
6448 (m68k_linux_frame_saved_pc): Use get_frame_base.
6449 (m68k_linux_extract_return_value): New function.
6450 (m68k_linux_store_return_value): New function.
6451 (m68k_linux_extract_struct_value_address): New function.
6452 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6453
6454 * c-exp.y (typebase): Remove duplicate occurence of
6455 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6456 of lookup_signed_typename.
6457
6458 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6459
6460 * dwarf2loc.c (find_location_expression): Change type of second
6461 argument to `size_t *'.
6462 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6463 for size variable.
6464
6465 2003-05-18 David Carlton <carlton@bactrian.org>
6466
6467 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6468 'linkage_name'. Add comment.
6469 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6470 'linkage_name'.
6471 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6472 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6473 (lookup_block_symbol): Ditto.
6474
6475 2003-05-16 Andrew Cagney <cagney@redhat.com>
6476
6477 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6478 * gdbarch.h, gdbarch.c: Re-generate.
6479 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6480 * TODO (REGISTER_BYTES): Delete reference.
6481 * alpha-tdep.c (alpha_gdbarch_init): Update.
6482 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6483 * x86-64-tdep.c (x86_64_init_abi): Update.
6484 * vax-tdep.c (vax_gdbarch_init): Update.
6485 * v850-tdep.c (v850_gdbarch_init): Update.
6486 * sparc-tdep.c (sparc_gdbarch_init): Update.
6487 * sh-tdep.c (sh_gdbarch_init): Update.
6488 * s390-tdep.c (s390_gdbarch_init): Update.
6489 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6490 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6491 (ns32k_gdbarch_init_32382): Update.
6492 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6493 * mcore-tdep.c (mcore_gdbarch_init): Update.
6494 * m68k-tdep.c (m68k_gdbarch_init): Update.
6495 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6496 * ia64-tdep.c (ia64_gdbarch_init): Update.
6497 * i386-tdep.c (i386_gdbarch_init): Update.
6498 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6499 * hppa-tdep.c (hppa_gdbarch_init): Update.
6500 * h8300-tdep.c (h8300_gdbarch_init): Update.
6501 * frv-tdep.c (frv_gdbarch_init): Update.
6502 * cris-tdep.c (cris_gdbarch_init): Update.
6503 * avr-tdep.c (avr_gdbarch_init): Update.
6504 * arm-tdep.c (arm_gdbarch_init): Update.
6505 * sparc-tdep.c (sparc_pop_frame): Update.
6506 * rs6000-tdep.c (rs6000_pop_frame): Update.
6507 * remote.c (init_remote_state): Update.
6508 (remote_prepare_to_store): Update.
6509 * remote-vx.c (vx_prepare_to_store): Update.
6510 * remote-sds.c (sds_fetch_registers): Update.
6511 (sds_prepare_to_store): Update.
6512 * remote-array.c: Update.
6513 * regcache.c (init_legacy_regcache_descr): Update.
6514 (init_regcache_descr): Update.
6515 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6516 (mips_o64_extract_return_value): Update.
6517 * irix5-nat.c (fetch_core_registers): Update.
6518 * irix4-nat.c (fetch_core_registers): Update.
6519 * i386-tdep.h: Update.
6520 * hppa-tdep.c (pa_do_registers_info): Update.
6521 (pa_do_strcat_registers_info): Update.
6522 * cris-tdep.c (cris_register_bytes_ok): Update.
6523 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6524 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6525 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6526 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6527 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6528 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6529 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6530 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6531 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6532 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6533 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6534 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6535 (REGISTER_BYTES_OK): Update.
6536 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6537 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6538
6539 2003-05-16 Ian Lance Taylor <ian@airs.com>
6540
6541 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6542 (vax_print_insn, print_insn_arg): Remove static functions.
6543 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6544 print_insn_vax from opcodes library.
6545 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6546
6547 2003-05-15 Andrew Cagney <cagney@redhat.com>
6548
6549 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6550 * target.h (memory_breakpoint_from_pc): Delete declaration.
6551 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6552 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6553 * monitor.c (monitor_insert_breakpoint): Use
6554 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6555 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6556 * gdbarch.h, gdbarch.c: Re-generate.
6557 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6558 (sparc_gdbarch_init): Set breakpoint_from_pc to
6559 sparc_breakpoint_from_pc.
6560 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6561 (BREAKPOINT_FROM_PC): Define.
6562 (sparc_breakpoint_from_pc): Declare.
6563 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6564 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6565 (BREAKPOINT_FROM_PC): Define.
6566 (BREAKPOINT): Delete macro.
6567 * target.h: Update comment.
6568 * s390-tdep.c (s390_gdbarch_init): Update comments.
6569 * remote.c: Update comments.
6570 * remote-mips.c: Update comments.
6571 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6572 * mem-break.c: Update comment.
6573 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6574 (ia64_memory_insert_breakpoint): Update.
6575 * config/sparc/tm-sparc.h: Update comment.
6576 * config/pa/tm-hppa64.h: Update comment.
6577 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6578 (rs6000_breakpoint_from_pc): Update.
6579 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6580 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6581 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6582 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6583 (mips_breakpoint_from_pc): Update.
6584 (mips_dump_tdep): Update.
6585
6586 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6587 * minsyms.c (lookup_minimal_symbol): Inline
6588 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6589
6590 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6591 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6592 * p-lang.c (pascal_printstr): Ditto.
6593 * objc-lang.c (objc_printstr): Ditto.
6594 * m2-lang.c (m2_printstr): Ditto.
6595 * jv-valprint.c (java_print_value_fields): Ditto.
6596 * f-lang.c (f_printstr): Ditto.
6597 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6598 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6599 for repeat_count_threshold.
6600 * Makefile.in (cp-valprint.o): Update dependencies.
6601
6602 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6603
6604 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6605 (examine_prologue): Support looking through leaf functions, knowing
6606 they start with mov r2,r12. Support skipping over indirect stores
6607 of the input registers. Upon hitting a non-nop branch instruction
6608 or predicated instruction, bail out by setting lim_pc to the current
6609 pc value in the loop. At the end, if the lim_pc value is still
6610 beyond our calculated value and we have trust_limit set,
6611 use the lim_pc value.
6612
6613 2003-05-15 Andrew Cagney <cagney@redhat.com>
6614
6615 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6616 generic_find_dummy_frame.
6617 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6618 (deprecated_generic_find_dummy_frame): Update.
6619 (deprecated_read_register_dummy): Update.
6620 * frame.c (deprecated_generic_get_saved_register): Update.
6621
6622 2003-05-15 Theodore A. Roth <troth@openavr.org>
6623
6624 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6625 (avr_gdbarch_init): Set breakpoint_from_pc method.
6626
6627 2003-05-15 Andrew Cagney <cagney@redhat.com>
6628
6629 * regcache.c (build_regcache): Set deprecated_register_valid
6630 directly.
6631 (deprecated_grub_regcache_for_register_valid): Delete function.
6632 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6633 declaration.
6634
6635 2003-05-15 David Carlton <carlton@bactrian.org>
6636
6637 Committed by Elena Zannoni <ezannoni@redhat.com>
6638 * symtab.c (lookup_symbol_aux): Delete calls to
6639 lookup_symbol_aux_minsyms.
6640 (lookup_symbol_aux_minsyms): Comment out function and
6641 prototype. Delete lookup by mangled name.
6642
6643 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6644
6645 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6646 correctly indicate an empty stack and ``stack_allocated'' to the
6647 indicate the number of elements initially allocated.
6648 (dwarf_expr_grow_stack): Simplify method for computing new
6649 stack size. Don't loop infinitely if ``stack_len'' is zero.
6650 (execute_stack_op): Move ``ctx->in_reg'' initialization
6651 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6652 be used in conjuction with DW_OP_piece. Revise error message
6653 accordingly.
6654
6655 2003-05-14 Theodore A. Roth <troth@openavr.org>
6656
6657 * MAINTAINERS: Update my email address.
6658 * avr-tdep.c: Ditto.
6659
6660 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6661
6662 * symtab.h (enum domain_enum): Rename from namespace_enum.
6663 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6664 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6665 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6666 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6667 TYPES_NAMESPACE, METHODS_NAMESPACE.
6668 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6669 (struct symbol, struct partial_symbol): Rename field
6670 'namespace_enum namespace' to 'domain_enum domain'.
6671 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6672 Delete old define kludge for namespace.
6673
6674 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6675 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6676 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6677 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6678 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6679 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6680 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6681 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6682 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6683 occurrences of the above.
6684
6685 2003-05-14 Ian Lance Taylor <ian@airs.com>
6686
6687 * Makefile.in (install-only): Use $(SHELL) when running
6688 mkinstalldirs.
6689
6690 2003-05-13 Ian Lance Taylor <ian@airs.com>
6691
6692 * MAINTAINERS (write after approval): Add myself.
6693
6694 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6695 second and third arguments.
6696 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6697 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6698
6699 2003-05-13 Andrew Cagney <cagney@redhat.com>
6700
6701 * defs.h (store_address): Delete declaration.
6702 findvar.c (store_address): Delete function.
6703 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6704 store_unsigned_integer.
6705 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6706 * v850-tdep.c (v850_push_arguments): Ditto.
6707 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6708 * sh-tdep.c (sh64_get_saved_register): Ditto.
6709 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6710 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6711 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6712 (mips_get_saved_register): Ditto.
6713 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6714 (find_func_descr, ia64_push_arguments): Ditto.
6715 * i386-tdep.c (i386_push_arguments): Ditto.
6716 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6717 * frv-tdep.c (frv_push_arguments): Ditto.
6718 * frame.c (legacy_saved_regs_prev_register): Ditto.
6719 (deprecated_generic_get_saved_register): Ditto.
6720 * findvar.c (unsigned_address_to_pointer): Ditto.
6721 * dwarf2read.c (dwarf2_const_value): Ditto.
6722 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6723 * alpha-tdep.c (alpha_push_arguments): Ditto.
6724
6725 2003-05-12 J. Brobecker <brobecker@gnat.com>
6726
6727 * NEWS: Mention that the hppa-hpux port has been partially
6728 multiarched (32bit ABIT only, so far).
6729
6730 2003-05-11 Andrew Cagney <cagney@redhat.com>
6731
6732 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6733 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6734 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6735 sim/testsuite/sim/arm/misaligned2.ms, and
6736 sim/testsuite/sim/arm/misaligned3.ms.
6737 * disasm.h (struct ui_file): Add opaque struct declaration.
6738 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6739 * frame.h (struct ui_file): Ditto.
6740
6741 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6742
6743 * value.h: Pretty print.
6744
6745 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6746
6747 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6748
6749 2003-05-08 Andrew Cagney <cagney@redhat.com>
6750
6751 * regcache.h (max_register_size): Delete declaration.
6752 * regcache.c (max_register_size): Delete function.
6753 (struct regcache_descr): Delete field "max_register_size".
6754 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6755 registers fit in MAX_REGISTER_SIZE.
6756 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6757 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6758 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6759 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6760 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6761 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6762 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6763 * dve3900-rom.c, hppa-tdep.c: Ditto.
6764
6765 2003-05-08 David Carlton <carlton@math.stanford.edu>
6766
6767 * valops.c (push_word): Fix typo.
6768
6769 2003-05-08 Andrew Cagney <cagney@redhat.com>
6770
6771 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6772 * gdbarch.h: Re-generate.
6773 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6774 (legacy_max_register_raw_size): Delete declaration.
6775 * regcache.c (legacy_max_register_raw_size): Delete function.
6776 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6777 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6778 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6779 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6780 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6781 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6782 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6783 * findvar.c, dwarf2cfi.c: Ditto.
6784
6785 2003-05-08 Andrew Cagney <cagney@redhat.com>
6786
6787 * mips-tdep.c (read_signed_register): New function, moved to here
6788 from "regcache.c".
6789 (read_signed_register_pid): Ditto.
6790 * regcache.c (read_signed_register_pid): Delete function, moved to
6791 "mips-tdep.c".
6792 (read_signed_register): Ditto.
6793 * regcache.h (read_signed_register): Delete declaration.
6794 (read_signed_register_pid): Delete declaration.
6795
6796 2003-05-08 Andrew Cagney <cagney@redhat.com>
6797
6798 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6799 * gdbarch.h: Re-generate.
6800 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6801 (legacy_max_register_virtual_size): Delete declaration.
6802 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6803 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6804 * tracepoint.c (memrange_sortmerge): Ditto.
6805 * sparc-tdep.c (sparc_print_registers): Ditto.
6806 * regcache.c (legacy_max_register_virtual_size): Delete function.
6807
6808 2002-05-08 J. Brobecker <brobecker@gnat.com>
6809
6810 * fork-child.c (escape_bang_in_quoted_argument): New function.
6811 (fork_inferior): Escape '!' characters in quoted arguments
6812 only when needed.
6813
6814 2003-05-08 J. Brobecker <brobecker@gnat.com>
6815
6816 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6817 the language of the CU is not currently supported by GDB.
6818
6819 2003-05-08 J. Brobecker <brobecker@gnat.com>
6820
6821 * defs.h (language): Add language_minimal enum value.
6822 * c-lang.c (minimal_language_defn): New language definition.
6823 (_initialize_c_language): Add the new minimal language to the list
6824 of languages known to GDB.
6825
6826 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6827
6828 * frame.c (get_frame_type): Don't attempt to lazily initialize
6829 frame's unwinder for legacy frames.
6830
6831 2003-05-07 Andrew Cagney <cagney@redhat.com>
6832
6833 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6834 and "regcache" parameters.
6835 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6836
6837 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6838
6839 * dwarf2read.c (dwarf_decode_lines): Only use output of
6840 check_cu_functions() when calling record_line(). Do not update
6841 the current address.
6842
6843 2003-05-07 Andrew Cagney <cagney@redhat.com>
6844
6845 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6846 code.
6847
6848 2003-05-07 Jim Blandy <jimb@redhat.com>
6849
6850 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6851 'maint info symtabs' and 'maint info psymtabs'.
6852 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6853 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6854 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6855 Declarations updated.
6856 * maint.c (maintenance_list_command): Delete.
6857 (_initialize_maint_cmds): Update calls to add_cmd.
6858 * gdbcmd.h (maintenancelistlist): Delete declaration.
6859 * cli/cli-cmds.c (maintenancelistlist): Delete.
6860 (init_cmd_lists): Don't initialize it.
6861 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6862
6863 2003-05-07 Andrew Cagney <cagney@redhat.com>
6864
6865 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6866 "regcache".
6867 (d10v_print_registers_info): Update.
6868 (d10v_dmap_register, d10v_imap_register): Delete functions.
6869 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6870 and "imap_register".
6871 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6872 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6873 * arch-utils.c (generic_remote_translate_xfer_address): Add
6874 "regcache" and "gdbarch" parameters.
6875 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6876 parameter. Change class to multi-arch.
6877 * gdbarch.h, gdbarch.c: Re-generate.
6878 * remote.c (remote_xfer_memory): Use
6879 gdbarch_remote_translate_xfer_address.
6880
6881 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6882
6883 * infrun.c (prev_pc): Move declaration ahead of proceed().
6884 (proceed): Refresh prev_pc value before resuming.
6885 (stop_stepping): Remove code to refresh prev_pc.
6886
6887 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6888
6889 * nto-tdep.c: Removed stray comment.
6890
6891 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6892
6893 * i386-nto-tdep.c: Fix old K&R function definitions.
6894 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6895 Also change add_show_from_set() call to add_setshow_cmd().
6896 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6897
6898 2003-05-05 Andrew Cagney <cagney@redhat.com>
6899
6900 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6901 (fprint_dummy_frames): New function.
6902 (maintenance_print_dummy_frames): New function.
6903 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6904 * frame.c (fprint_frame_id): Make global.
6905 * frame.h (fprint_frame_id): Declare.
6906 * Makefile.in (dummy-frame.o): Update dependencies.
6907
6908 2003-05-05 Andrew Cagney <cagney@redhat.com>
6909
6910 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6911 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6912 SIZEOF_CALL_DUMMY_WORDS.
6913 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6914 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6915 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6916 CALL_DUMMY_BREAKPOINT_OFFSET.
6917 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6918 CALL_DUMMY_START_OFFSET.
6919 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6920 * gdbarch.h, gdbarch.c: Re-generate.
6921 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6922 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6923 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6924 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6925 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6926 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6927 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6928 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6929 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6930 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6931 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6932 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6933 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6934 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6935 * config/sparc/tm-sparc.h: Update.
6936
6937 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6938
6939 * configure.tgt: Add i[3456]86-*-nto*.
6940 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6941 * nto-tdep.c: New file. Neutrino target support routines.
6942 * nto-tdep.h: New file. Neutrino target header.
6943 * config/tm-qnxnto.h: New file.
6944 * config/i386/i386nto.mt: New file.
6945 * config/i386/tm-i386nto.h: New file.
6946
6947 2003-05-04 Andrew Cagney <cagney@redhat.com>
6948
6949 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6950 (load_infrun_state): Ditto.
6951 (struct thread_info): Drop "prev_func_name" field.
6952 * thread.c (load_infrun_state): Update.
6953 (save_infrun_state): Update.
6954 * infrun.c (prev_func_name): Delete variable.
6955 (init_wait_for_inferior): Do not clear prev_func_name.
6956 (stop_stepping, keep_going, context_switch): Do not swap
6957 prev_func_name.
6958 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6959 instead of PC_IN_SIGTRAMP.
6960
6961 2003-05-04 Andrew Cagney <cagney@redhat.com>
6962
6963 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6964 REGISTER_BYTE with register_offset_hack.
6965 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6966 that REGISTER_BYTE is consistent with the regcache.
6967 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6968 * gdbarch.h, gdbarch.c: Regenerate.
6969
6970 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6971
6972 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6973 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6974
6975 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6976
6977 2003-05-03 J. Brobecker <brobecker@gnat.com>
6978
6979 From Thierry Schneider <tpschneider1@yahoo.com>
6980 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6981 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6982 (mi-cmd-symbol.o): Add rule.
6983
6984 2003-05-03 Andrew Cagney <cagney@redhat.com>
6985
6986 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6987 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6988 * gdbarch.h, gdbarch.c: Re-generate.
6989 * d10v-tdep.c (d10v_push_dummy_code): New function.
6990 (d10v_gdbarch_init): Set push_dummy_code.
6991 * infcall.c (legacy_push_dummy_code): New function.
6992 (generic_push_dummy_code): New function.
6993 (push_dummy_code): New function.
6994 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6995 instead of dummy_addr, to push_dummy_call. Move call to
6996 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6997 switch.
6998 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6999
7000 2003-05-03 Andrew Cagney <cagney@redhat.com>
7001
7002 * disasm.h (print_insn): Declare.
7003 * disasm.c (init_gdb_disassemble_info): New function.
7004 (gdb_disassembly): Call init_gdb_disassemble_info.
7005 (gdb_print_insn): New function.
7006 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7007 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7008 * mcore-tdep.c: Include "disasm.h"
7009 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7010 * d10v-tdep.c: Include "disasm.h".
7011 (display_trace): Call gdb_print_insn, instead of print_insn.
7012 (print_insn): Delete function.
7013 * printcmd.c: Include "disasm.h".
7014 (print_insn): Delete function.
7015 (print_formatted): Call gdb_print_insn, instead of print_insn.
7016 * Makefile.in (printcmd.o): Update dependencies.
7017 (mcore-tdep.o, d10v-tdep.o): Ditto.
7018
7019 2003-05-02 Andrew Cagney <cagney@redhat.com>
7020
7021 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7022 PC_REGNUM, re-indent.
7023 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7024 PC_REGNUM isn't set.
7025
7026 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7027 * gdbarch.h, gdbarch.c: Re-generate.
7028 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7029 register_virtual_size, pc_regnum, or register_bytes.
7030 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7031 (d10v_register_type): Use D10V_PC_REGNUM.
7032 (d10v_print_registers_info, d10v_read_pc): Ditto.
7033 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7034 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7035
7036 2003-05-02 David Carlton <carlton@bactrian.org>
7037
7038 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7039 the name with mstrsave.
7040
7041 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7042
7043 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7044 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7045 (host_charset_name, target_charset_name): New vars for use by
7046 set/show commands.
7047 (host_charset_enum, target_charset_enum): New enums for set/show
7048 commands.
7049 (set_charset_sfunc, set_host_charset_sfunc,
7050 set_target_charset_sfunc): New functions.
7051 (set_host_charset, set_target_charset): Make static.
7052 (list_charsets, set_host_charset_command,
7053 set_target_charset_command): Delete functions.
7054 (show_charset_command): Rewrite as....
7055 (show_charset): Hook this up with the set/show command mechanism.
7056 (_initialize_charset): Change names of charsets to match the
7057 set/show enums. Use host_charset_name and target_charset_name.
7058 Use set/show mechanism for charset, host-charset, target-charset
7059 commands. Do not make 'show host-charset' and 'show
7060 target-charset' be aliases of 'show charset'.
7061
7062 * charset.h (set_host_charset, set_target_charset): Don't export,
7063 they are not used outside the file.
7064
7065 2003-05-01 Andrew Cagney <cagney@redhat.com>
7066
7067 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7068 (gdb_disassembly): Make "di" non static, always initialize and
7069 cleanup. Always use dis_asm_read_memory.
7070 (gdb_dis_asm_read_memory): Delete function.
7071
7072 2003-05-01 Andrew Cagney <cagney@redhat.com>
7073
7074 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7075 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7076
7077 2003-04-30 Andrew Cagney <cagney@redhat.com>
7078
7079 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7080 "tm_print_insn_info".
7081 (TARGET_PRINT_INSN_INFO): Delete macro.
7082 (dis_asm_read_memory): Delete function declaration.
7083 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7084 (tm_print_insn_info): Delete variable definition.
7085 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7086 * gdbarch.h, gdbarch.c: Re-generate.
7087 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7088 "deprecated_tm_print_insn_info".
7089 * mcore-tdep.c (mcore_dump_insn): Ditto.
7090 * mips-tdep.c (mips_gdbarch_init): Ditto.
7091 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7092 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7093 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7094 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7095 instead of TARGET_PRINT_INSN_INFO, add comment.
7096 * s390-tdep.c (s390_get_frame_info): Instead of
7097 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7098 (s390_check_function_end, s390_is_sigreturn): Ditto.
7099 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7100 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7101 * disasm.c: Include "gdbcore.h".
7102 (_initialize_disasm): New function, initialize
7103 "deprecated_tm_print_insn_info".
7104 (deprecated_tm_print_insn_info): New variable.
7105 (dis_asm_read_memory): Moved from "corefile.c", made static.
7106 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7107 * Makefile.in (disasm.o): Update dependencies.
7108
7109 2003-04-30 Andrew Cagney <cagney@redhat.com>
7110
7111 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7112
7113 2003-04-29 Adam Fedor <fedor@gnu.org>
7114
7115 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7116 * infcall.c (find_function_addr): Make non-static.
7117 * infcall.h (find_function_addr): Declare.
7118 * Makefile.in (eval.o): Update dependencies.
7119
7120 2003-04-28 Adam Fedor <fedor@gnu.org>
7121
7122 * symtab.c (symbol_find_demangled_name): Check for and demangle
7123 ObjC symbols.
7124 (symbol_init_demangled_name): Init for language_objc as well.
7125
7126 2003-04-28 Andrew Cagney <cagney@redhat.com>
7127
7128 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7129 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7130 * gdbarch.h, gdbarch.c: Re-generate.
7131 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7132 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7133 * inferior.h (deprecated_read_fp): Rename read_fp.
7134 (generic_target_read_fp): Delete declaration.
7135 * regcache.c (generic_target_read_fp): Delete function.
7136 (deprecated_read_fp): Replace read_fp, use
7137 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7138 * d10v-tdep.c (d10v_read_fp): Delete function.
7139 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7140
7141 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7142 deprecated_target_read_fp to generic_target_read_fp.
7143 * sh-tdep.c (sh_gdbarch_init): Ditto.
7144 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7146 * frv-tdep.c (frv_gdbarch_init): Ditto.
7147
7148 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7149 deprecated_fp_regnum.
7150 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7151 * vax-tdep.c (vax_gdbarch_init): Ditto.
7152 * v850-tdep.c (v850_gdbarch_init): Ditto.
7153 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7154 * sh-tdep.c (sh_gdbarch_init): Ditto.
7155 * s390-tdep.c (s390_gdbarch_init): Ditto.
7156 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7157 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7158 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7159 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7160 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7161 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7162 * i386-tdep.c (i386_gdbarch_init): Ditto.
7163 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7164 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7165 * frv-tdep.c (frv_gdbarch_init): Ditto.
7166 * cris-tdep.c (cris_gdbarch_init): Ditto.
7167 * avr-tdep.c (avr_gdbarch_init): Ditto.
7168 * arm-tdep.c (arm_gdbarch_init): Ditto.
7169 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7170
7171 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7172 * v850-tdep.c (v850_gdbarch_init): Ditto.
7173 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7174 * sh-tdep.c (sh_gdbarch_init): Ditto.
7175 * s390-tdep.c (s390_gdbarch_init): Ditto.
7176 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7177 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7178 * mips-tdep.c (mips_gdbarch_init): Ditto.
7179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7180 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7181 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7182 * frv-tdep.c (frv_gdbarch_init): Ditto.
7183 * avr-tdep.c (avr_gdbarch_init): Ditto.
7184 * arm-tdep.c (arm_gdbarch_init): Ditto.
7185
7186 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7187 DEPRECATED_FP_REGNUM.
7188 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7189 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7190 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7191 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7192 (sparc32_register_virtual_type): Ditto.
7193 * sh-tdep.c (sh64_frame_chain): Ditto.
7194 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7195 (sh_nofp_frame_init_saved_regs): Ditto.
7196 (sh64_nofp_frame_init_saved_regs): Ditto.
7197 (sh_fp_frame_init_saved_regs): Ditto.
7198 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7199 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7200 * procfs.c (procfs_fetch_registers): Ditto.
7201 (procfs_store_registers): Ditto.
7202 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7203 (store_inferior_registers, fetch_core_registers): Ditto.
7204 (fetch_kcore_registers, clear_regs): Ditto.
7205 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7206 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7207 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7208 * nlm/i386.c (do_status): Ditto.
7209 * mipsv4-nat.c (supply_gregset): Ditto.
7210 * mips-tdep.c: Ditto for comments.
7211 * mips-nat.c (fetch_inferior_registers): Ditto.
7212 (store_inferior_registers, fetch_core_registers): Ditto.
7213 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7214 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7215 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7216 (i386_do_pop_frame, i386_register_type): Ditto.
7217 * hppa-tdep.c (hppa_frame_chain): Ditto.
7218 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7219 (hppa_pop_frame, hppa_read_fp): Ditto.
7220 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7221 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7222 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7223 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7224 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7225 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7226 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7227 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7228 * blockframe.c: Ditto for comments.
7229 * arch-utils.h: Ditto for comments.
7230 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7231 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7232 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7233 * alpha-tdep.h: Ditto for comments.
7234 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7235 (alpha_cannot_store_register): Ditto.
7236 (alpha_push_dummy_frame): Ditto.
7237 * alpha-nat.c (supply_gregset): Ditto.
7238
7239 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7240 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7241 * config/sparc/tm-sparc.h: Update comment.
7242
7243 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7244 deprecated_read_fp instead of TARGET_READ_FP.
7245 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7246 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7247 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7248 deprecated_read_fp instead of read_fp.
7249 * s390-tdep.c (s390_push_arguments): Ditto.
7250 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7251 * frame.h: Ditto in comments.
7252 * frame.c (legacy_get_prev_frame): Ditto.
7253 * dummy-frame.c (dummy_frame_this_id): Ditto.
7254 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7255
7256 2003-04-28 Andrew Cagney <cagney@redhat.com>
7257
7258 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7259 * gdbarch.h, gdbarch.c: Re-generate.
7260 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7261 * vax-tdep.c (_initialize_vax_tdep): Update.
7262 * v850-tdep.c (_initialize_v850_tdep): Update.
7263 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7264 * s390-tdep.c (_initialize_s390_tdep): Update.
7265 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7266 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7267 * mips-tdep.c (_initialize_mips_tdep): Update.
7268 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7269 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7270 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7271 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7272 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7273 * frv-tdep.c (_initialize_frv_tdep): Update.
7274 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7275 (_initialize_cris_tdep): Update.
7276 * arch-utils.c (legacy_print_insn): Update.
7277 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7278
7279 2003-04-26 Adam Fedor <fedor@gnu.org>
7280
7281 * linespec.c (decode_objc): New function to decode ObjC calls
7282 (decode_line_1): Check for ObjC calls (using decode_objc)
7283 * Makefile (linespec.o): Update dependencies.
7284
7285 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7286
7287 * breakpoint.h (struct breakpoint_ops): New.
7288 (struct breakpoint): Add ops member.
7289
7290 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7291 (mention): Use new breakpoint ops member.
7292 (set_raw_breakpoint): Initialize ops field to NULL.
7293 (print_exception_catchpoint, print_one_exception_catchpoint)
7294 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7295 (gnu_v3_exception_catchpoint_ops): New.
7296 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7297
7298 2003-04-25 Adam Fedor <fedor@gnu.org>
7299
7300 * Makefile.in (COMMON_OBS): Add objc-lang.o
7301
7302 2003-04-25 Andrew Cagney <cagney@redhat.com>
7303
7304 * d10v-tdep.c (print_insn): Delete function.
7305 (display_trace): Use TARGET_PRINT_INSN.
7306 (_initialize_d10v_tdep): Do not set tm_print_insn.
7307 (d10v_gdbarch_init): Set print_insn.
7308
7309 2003-04-25 Andrew Cagney <cagney@redhat.com>
7310
7311 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7312 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7313 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7314 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7315 (nr_dmap_regs, a0_regnum): ... new functions.
7316 (d10v_print_registers_info): Use a0_regnum, use register_size.
7317 (d10v_register_byte): Delete function.
7318 (d10v_register_raw_size): Delete function.
7319 (d10v_register_type): Use a0_regnum.
7320 (d10v_print_registers_info): Use a0_regnum.
7321 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7322 (d10v_gdbarch_init): Do not set register_byte or
7323 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7324 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7325 extract_address.
7326 (trace_command): Use XCALLOC.
7327 (print_insn): Delete reference to tm_print_insn.
7328 (saved_regs_unwinder): Use store_unsigned_integer instead of
7329 store_address.
7330 * frame.h (FRAME_OBSTACK_CALLOC): Define
7331
7332 2003-04-25 David Carlton <carlton@bactrian.org>
7333
7334 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7335
7336 2003-04-24 Adam Fedor <fedor@gnu.org>
7337
7338 * objc-lang.c: Include "valprint.h"
7339 * Makefile.in (objc-lang.o): Update dependencies.
7340
7341 2003-04-24 Adam Fedor <fedor@gnu.org>
7342
7343 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7344 architecture dependant compilation and mark as unimplemented
7345 (until they get put in the gdbarch vector).
7346
7347 2003-04-23 David Carlton <carlton@bactrian.org>
7348
7349 * cp-support.c (cp_find_first_component): Accept 'operator' in
7350 more locations.
7351
7352 2003-04-23 Andrew Cagney <cagney@redhat.com>
7353
7354 * infcall.c (call_function_by_hand): Eliminate redundant
7355 indentation. Move "saved_async" and "old_cleanups" to where they
7356 are needed.
7357
7358 2003-04-23 Andrew Cagney <cagney@redhat.com>
7359
7360 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7361 and "buffer". Move the "name" code to where it is needed.
7362
7363 2003-04-23 Andrew Cagney <cagney@redhat.com>
7364
7365 * infcall.c (call_function_by_hand): Move variables "start_sp",
7366 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7367 code to ON_STACK switch branch.
7368
7369 2003-04-23 Andrew Cagney <cagney@redhat.com>
7370
7371 * infcall.c (call_function_by_hand): Make declaration of "i",
7372 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7373 lint.
7374
7375 2003-04-23 Andrew Cagney <cagney@redhat.com>
7376
7377 * infcall.c (call_function_by_hand): Delete variable
7378 "n_method_args". Localize "param_type"'s declaration to the loop
7379 that it is used. Reinstate code assigning to said variable -
7380 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7381 Rationalize code using "param_type".
7382
7383 2003-04-22 Andrew Cagney <cagney@redhat.com>
7384
7385 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7386 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7387 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7388 to DEPRECATED_PUSH_RETURN_ADDRESS.
7389
7390 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7391
7392 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7393 on the DWARF2 register number prior to fetching a register.
7394
7395 2003-04-22 J. Brobecker <brobecker@gnat.com>
7396
7397 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7398 Update all the tests using SOFT_FLOAT considering the fact that
7399 this macro was always set to 0.
7400 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7401 considering the fact that this macro was always set to 0.
7402 * hppa-tdep.h (hppa_store_return_value): Likewise.
7403 (hppa_extract_return_value): Likewise.
7404
7405 2003-04-22 J. Brobecker <brobecker@gnat.com>
7406
7407 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7408 the hppa-pro target only.
7409
7410 2003-04-21 J. Brobecker <brobecker@gnat.com>
7411
7412 Ongoing multi-arch conversion effort for HP/UX:
7413 * config/pa/tm-hppa.h: Move all macro that are no longer
7414 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7415 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7416
7417 2003-04-21 J. Brobecker <brobecker@gnat.com>
7418
7419 * config/pa/tm-hppa.h: Obsolete a section that was only used
7420 for hppa-pro.
7421
7422 2003-04-21 J. Brobecker <brobecker@gnat.com>
7423
7424 Ongoing multi-arch conversion for HP/UX.
7425 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7426 if already defined (allows hppa64 to stay non-multiarched for now).
7427 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7428
7429 2003-04-21 Andrew Cagney <cagney@redhat.com>
7430
7431 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7432
7433 2003-04-21 Andrew Cagney <cagney@redhat.com>
7434
7435 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7436 "i386_num_mmx_regs".
7437
7438 2003-04-21 Andrew Cagney <cagney@redhat.com>
7439
7440 * infcall.c: New file.
7441 * infcall.h: New file.
7442 * valarith.c: Include "infcall.h".
7443 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7444 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7445 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7446 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7447 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7448 (SFILES): Add "infcall.c"
7449 (COMMON_OBS): Add "infcall.o".
7450 (infcall.o): Specify dependencies.
7451 * value.h (call_function_by_hand): Delete declaration.
7452 * inferior.h (run_stack_dummy): Delete declaration.
7453 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7454 (run_stack_dummy): Move to "infcall.c", merged into
7455 call_function_by_hand.
7456 * valops.c (call_function_by_hand): Moved to "infcall.c".
7457 (find_function_addr, value_arg_coerce): Ditto.
7458 (unwindonsignal_p, coerce_float_to_double): Ditto.
7459 (_initialize_valops): Move "set/show coerce-float-to-double", and
7460 "set/show unwindonsignal" commands to "infcall.c".
7461 * v850-tdep.c, target.h: Update comments.
7462 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7463 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7464 (sh64_init_extra_frame_info): Update comments.
7465 * mn10300-tdep.c: Update comments.
7466 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7467 * config/sparc/tm-sparc.h: Update comments.
7468 * breakpoint.h: Update comments.
7469 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7470 * arm-tdep.c: Update comment.
7471
7472 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7473
7474 * i386-tdep.c (i386_num_register_names): New variable.
7475 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7476 (MM0_REGNUM): Remove redundant parentheses in define.
7477 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7478 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7479 i386_mxcsr_regnum_p): Remove redundant parentheses.
7480 (i386_register_name): Use i386_num_register_names.
7481
7482 * i386-tdep.c (i386_extract_return_value,
7483 i386_store_return_value): Correct check for availability of
7484 floating-point registers.
7485
7486 * i386-tdep.c (i386_frame_num_args): Remove function.
7487 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7488
7489 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7490 mmx_regnum_to_fp_regnum. Adjust all callers.
7491
7492 * i386-tdep.c (i386_get_longjmp_target): Use
7493 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7494 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7495 extract_address.
7496
7497 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7498
7499 * core-regset.c: Update comments to reflect reality. Re-order
7500 includes.
7501 (fetch_core_registers): Use switch instead of if. Remove
7502 redundant prototype.
7503
7504 2003-04-18 Jim Blandy <jimb@redhat.com>
7505
7506 * s390-tdep.c (s390_frame_align): New function.
7507 (s390_gdbarch_init): Register it with the gdbarch object.
7508
7509 2003-04-17 Richard Henderson <rth@redhat.com>
7510
7511 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7512
7513 2003-04-17 Michael Snyder <msnyder@redhat.com>
7514 Karen Bennet <bennet@redhat.com>
7515
7516 Committed by Elena Zannoni <ezannoni@redhat.com>
7517 * gdb_gcore.sh: New script to create a core dump of a process.
7518
7519 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7520
7521 * values.c (value_being_returned): Don't fetch the return
7522 value if the return type is void.
7523
7524 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7525
7526 * thread-db.c: Reindented.
7527
7528 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7529
7530 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7531 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7532 as types.
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7559
7560 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7561 the size of ``long double'' to 16, instead of 8.
7562
7563 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7564
7565 * i386-linux-nat.c: Add some whitespace to make things more
7566 readable.
7567 (fetch_register, store_register, fetch_inferior_registers,
7568 store_inferior_registers): Get rid of assignment in if-statement.
7569 (store_register): Fix typo in error message.
7570
7571 2003-04-16 Andrew Cagney <cagney@redhat.com>
7572
7573 * utils.c (xmmalloc): Always allocate something, matches
7574 libiberty/xmalloc's semantics.
7575 (xmrealloc, xmcalloc): Ditto.
7576
7577 2003-04-16 Andrew Cagney <cagney@redhat.com>
7578
7579 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7580 update comments.
7581 (get_frame_type): Initialize unwind and type when needed.
7582 (get_frame_id, frame_register_unwind): Ditto.
7583
7584 2003-04-16 Andrew Cagney <cagney@redhat.com>
7585
7586 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7587 obsolete.
7588 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7589 * sparcl-stub.c: Obsolete file.
7590 * config/sparc/tm-sparclet.h: Obsolete file.
7591 * sparclet-stub.c: Obsolete file.
7592 * sparclet-rom.c: Obsolete file.
7593 * sparcl-tdep.c: Obsolete file.
7594 * config/sparc/tm-sparclite.h: Obsolete file.
7595 * config/sparc/sparclite.mt: Obsolete file.
7596 * config/sparc/sparclet.mt: Obsolete file.
7597 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7598 sparc86x-*-* obsolete.
7599
7600 2003-04-15 David Carlton <carlton@math.stanford.edu>
7601
7602 * Makefile.in (SFILES): Add cp-namespace.c.
7603 (COMMON_OBS): Add cp-namespace.o.
7604 (block.o): Depend on gdb_obstack_h and cp_support_h.
7605 (buildsym.o): Depend on cp_support_h.
7606 (cp-namespace.o): New.
7607 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7608 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7609 (dwarf2read.o): Depend on cp_support_h.
7610 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7611 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7612 processing_current_namespace.
7613 (read_namespace): Update processing_current_namespace; check for
7614 anonymous namespaces.
7615 (dwarf2_name): New function.
7616 (dwarf2_extension): Ditto.
7617 * cp-support.h: Update copyright, contributors.
7618 Add inclusion guards.
7619 Add opaque declaration for structs obstack, block, symbol.
7620 (struct using_direct): New struct.
7621 Add declarations for cp_find_first_component,
7622 cp_entire_prefix_len, processing_has_namespace_info,
7623 processing_current_namespace, cp_is_anonymous,
7624 cp_add_using_directive, cp_initialize_namespace,
7625 cp_finalize_namespace, cp_set_block_scope,
7626 cp_scan_for_anonymous_namespaces.
7627 * cp-namespace.c: New file.
7628 * cp-support.c: Update copyright.
7629 Include ctype.h, gdb_assert.h, gdbcmd.h.
7630 New variable maint_cplus_cmd_list.
7631 (cp_find_first_component): New function.
7632 (cp_entire_prefix_len, maint_cplus_command)
7633 (first_component_command, _initialize_cp_support): Ditto.
7634 * buildsym.c: Include cp-support.h.
7635 New variable using_list.
7636 (add_symbol_to_list): Check for anonymous namespaces.
7637 (finish_block): Set block's scope.
7638 (start_symtab): Initialize C++ namespace support.
7639 (end_symtab): Finalize C++ namespace support.
7640 * block.h: Add opaque declarations for structs
7641 block_namespace_info, using_direct, and obstack.
7642 Add declarations for block_set_scope and block_set_using.
7643 (struct block): Add 'language_specific' member.
7644 (BLOCK_NAMESPACE): New macro.
7645 * block.c: Include gdb_obstack.h and cp-support.h.
7646 (struct block_namespace_info): New struct.
7647 (block_set_scope): New function.
7648 (block_set_using, block_initialize_namespace): Ditto.
7649
7650 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7651
7652 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7653 (locate_base): Return early if there aren't any link map offsets.
7654 (svr4_solib_create_inferior_hook): Warn if shared library support
7655 is unavailable.
7656
7657 2003-04-14 David Carlton <carlton@math.stanford.edu>
7658
7659 * symtab.c (symbol_set_names): Add prefix when storing Java names
7660 in hash table. Fix for PR java/1039.
7661
7662 2003-04-14 David Carlton <carlton@math.stanford.edu>
7663
7664 * symtab.c (symbol_set_names): Rename 'name' arg to
7665 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7666 * symtab.h: Change 'name' argument in declaration of
7667 symbol_set_names to 'linkage_name'.
7668 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7669
7670 2003-04-14 Andrew Cagney <cagney@redhat.com>
7671
7672 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7673 return the fully sign-extended register value.
7674 (get_frame_pointer): Ditto.
7675 (mips_pop_frame): Initialize "proc_desc" after checking for a
7676 dummy frame.
7677
7678 2003-04-14 Andrew Cagney <cagney@redhat.com>
7679
7680 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7681 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7682 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7683 (mips_push_register): Delete function.
7684 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7685 PUSH_FP_REGNUM.
7686
7687 2003-04-14 Jim Blandy <jimb@redhat.com>
7688
7689 * symmisc.c: #include "gdb_regex.h".
7690 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7691 functions.
7692 * maint.c (maintenance_list_command): New function.
7693 (_initialize_maint_cmds): Register the above as commands.
7694 * symtab.h (maintenance_list_symtabs,
7695 maintenance_list_psymtabs): New declarations.
7696 * cli/cli-cmds.c (maintenancelistlist): New variable.
7697 (init_cmd_lists): Initialize it.
7698 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7699 * gdbcmd.h (maintenancelistlist): New declaration.
7700 * Makefile.in (symmisc.o): Update dependencies.
7701
7702 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7703
7704 * s390-nat.c: Include asm/types.h for addr_t.
7705
7706 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7707
7708 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7709 actually incoming type.
7710
7711 2003-04-13 Andrew Cagney <cagney@redhat.com>
7712
7713 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7714 get_next_frame and get_frame_saved_regs.
7715
7716 2003-04-13 Andrew Cagney <cagney@redhat.com>
7717
7718 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7719 of gdbarch_num_regs.
7720
7721 2003-04-13 Andrew Cagney <cagney@redhat.com>
7722
7723 * frame.h: Mention what replaced what in "struct frame_info".
7724 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7725 deprecated_update_frame_base_hack and
7726 deprecated_update_frame_pc_hack.
7727 * hppa-tdep.c: Ditto.
7728
7729 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7730
7731 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7732 to read_reg and update its comment. Remove regnum member.
7733 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7734 Don't call read_reg when setting in_reg. Call read_reg to get
7735 the frame base if it's in a register. Return the register number
7736 on the stack instead of in the context. Remove extra arguments
7737 to read_reg.
7738 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7739 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7740 the register number on the expression stack.
7741 (needs_frame_read_reg): Remove extra arguments.
7742
7743 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7744
7745 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7746 made non-static.
7747 (execute_stack_op): All callers updated.
7748 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7749 * dwarf2loc.c (find_location_expression): New function.
7750 (dwarf_expr_frame_base): Call it.
7751 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7752 (dwarf2_tracepoint_var_ref): New function, broken out from
7753 locexpr_tracepoint_var_ref.
7754 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7755 Make static.
7756 (loclist_read_variable, loclist_read_needs_frame): New functions.
7757 (loclist_describe_location, loclist_tracepoint_var_ref): New
7758 functions.
7759 (dwarf2_loclist_funcs): New struct location_funcs.
7760 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7761 (struct dwarf2_locexpr_baton): Add comments.
7762 (dwarf2_loclist_funcs): New extern.
7763 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7764 base_address and base_known.
7765 (dwarf_loc_buffer): New variable.
7766 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7767 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7768 (dwarf2_has_info): Initialize dwarf_loc_offset.
7769 (dwarf2_build_psymtabs): Read in .debug_loc.
7770 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7771 DWARF_LOC_SIZE.
7772 (psymtab_to_symtab_1): Likewise. Move base address calculation
7773 here, from...
7774 (dwarf2_get_pc_bounds): ... here. Use the base address from
7775 cu_header.
7776 (dwarf2_symbol_mark_computed): Handle location lists.
7777
7778 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7779
7780 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7781 if the linkage name demangled successfully.
7782
7783 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7784
7785 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7786 disassmbly_flavour): Removed.
7787
7788 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7789
7790 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7791
7792 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7793
7794 2003-04-12 Andrew Cagney <cagney@redhat.com>
7795
7796 * frame.h (struct frame_info): Move definition from here ...
7797 * frame.c (struct frame_info): ... to here.
7798
7799 2003-04-12 Andrew Cagney <cagney@redhat.com>
7800
7801 * gdbthread.h (save_infrun_state): Delete parameter
7802 "prev_func_start".
7803 (struct thread_info): Delete field "prev_func_start".
7804 (load_infrun_state): Ditto.
7805 * thread.c (load_infrun_state, save_infrun_state): Update.
7806 * infrun.c (prev_func_start): Delete variable.
7807 (context_switch, init_wait_for_inferior): Update.
7808 (stop_stepping, keep_going): Update.
7809
7810 2003-04-12 Andrew Cagney <cagney@redhat.com>
7811
7812 * gdbarch.sh: Add missing opaque declarations.
7813 * gdbarch.h: Regnerate.
7814 * symtab.h: Add missing opaque declarations.
7815 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7816 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7817 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7818 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7819 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7820 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7821 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7822 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7823 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7824 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7825 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7826 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7827 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7828
7829 2003-04-11 Andrew Cagney <cagney@redhat.com>
7830
7831 * frame.c (get_frame_id): Return this frame's "id".
7832 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7833 function start.
7834 (legacy_saved_regs_this_id): Replace function body with
7835 internal-error.
7836 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7837 FRAME_OBSTACK_ZALLOC.
7838 (create_new_frame): Mark the frame ID as valid.
7839
7840 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7841
7842 * Makefile.in (libbfd_h): Added missing setting.
7843 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7844 according to the selected ABI.
7845
7846 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7847
7848 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7849
7850 2003-04-11 Andrew Cagney <cagney@redhat.com>
7851
7852 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7853 SAVED_PC_AFTER_CALL.
7854 * gdbarch.h, gdbarch.c: Regenerate.
7855 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7856 * x86-64-tdep.c (x86_64_init_abi): Update.
7857 * vax-tdep.c (vax_gdbarch_init): Update.
7858 * v850-tdep.c (v850_gdbarch_init): Update.
7859 * sparc-tdep.c (sparc_gdbarch_init): Update.
7860 * sh-tdep.c (sh_gdbarch_init): Update.
7861 * s390-tdep.c (s390_gdbarch_init): Update.
7862 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7863 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7864 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7865 * mips-tdep.c (mips_gdbarch_init): Update.
7866 * mcore-tdep.c (mcore_gdbarch_init): Update.
7867 * m68k-tdep.c (m68k_gdbarch_init): Update.
7868 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7869 * ia64-tdep.c (ia64_gdbarch_init): Update.
7870 (ia64_saved_pc_after_call): Update declaration.
7871 * i386ly-tdep.c (i386lynx_init_abi): Update.
7872 * i386-tdep.c (i386_gdbarch_init): Update.
7873 * hppa-tdep.c (hppa_gdbarch_init): Update.
7874 * h8300-tdep.c (h8300_gdbarch_init): Update.
7875 * frv-tdep.c (frv_gdbarch_init): Update.
7876 * cris-tdep.c (cris_gdbarch_init): Update.
7877 * avr-tdep.c (avr_gdbarch_init): Update.
7878 * arm-tdep.c (arm_gdbarch_init): Update.
7879 * alpha-tdep.c (alpha_gdbarch_init): Update.
7880 * ns32knbsd-nat.c (frame_num_args): Update.
7881 * ns32k-tdep.c (umax_frame_num_args): Update.
7882 * mips-tdep.c (mips_init_frame_pc_first): Update.
7883 * infrun.c (step_over_function): Update.
7884 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7885 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7886 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7887 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7888 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7889 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7890 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7891 * arch-utils.c (init_frame_pc_default): Update.
7892 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7893 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7894 declaration.
7895
7896 2003-04-11 Andrew Cagney <cagney@redhat.com>
7897
7898 * i387-tdep.c: Update copyright.
7899 (i387_to_double): Delete function.
7900 (double_to_i387): Delete function.
7901
7902 2003-04-10 Andrew Cagney <cagney@redhat.com>
7903
7904 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7905 frame's function's address. Simplify.
7906 (d10v_frame_unwind_cache): Check that the frame's function is
7907 non-zero.
7908
7909 2003-04-10 Jim Blandy <jimb@redhat.com>
7910
7911 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7912 call to set_gdbarch_deprecated_push_arguments.
7913
7914 2003-04-10 Andrew Cagney <cagney@redhat.com>
7915
7916 * frame.c (fprint_frame_id): New function.
7917 (fprint_frame_type, fprint_frame): New function.
7918 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7919 (create_sentinel_frame, get_frame_id): Ditto.
7920 (frame_id_p, frame_id_eq): Ditto.
7921 (frame_id_inner, create_new_frame): Ditto.
7922 (legacy_get_prev_frame, get_prev_frame): Ditto.
7923 (deprecated_update_frame_pc_hack): Ditto.
7924 (frame_register_unwind): Ditto.
7925 (deprecated_update_frame_base_hack): Ditto.
7926
7927 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7928
7929 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7930 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7931 frame_chain function.
7932 * Makefile.in: Add dependencies due to above change.
7933
7934 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7935
7936 * blockframe.c (legacy_frame_chain_valid): Move call to
7937 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7938 inside_entry_file.
7939
7940 2003-04-09 Andrew Cagney <cagney@redhat.com>
7941
7942 * frame.h (struct frame_id): Replace "pc" and "base" with
7943 "stack_addr" and "code_addr". Update comments.
7944 (frame_id_build): Update parameter names and comment.
7945 (struct frame_info): Replace "id_p" and "id" with "this_id".
7946 * dummy-frame.c (dummy_frame_this_id): Update.
7947 * breakpoint.c (print_one_breakpoint): Update.
7948 * frame.c (get_frame_id): Update.
7949 (get_frame_base, frame_id_build): Update.
7950 (create_sentinel_frame, legacy_get_prev_frame): Update.
7951 (deprecated_update_frame_base_hack): Update.
7952 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7953 (frame_id_inner): Ditto.
7954
7955 2003-04-09 Andrew Cagney <cagney@redhat.com>
7956
7957 * defs.h (gdb_print_host_address): Make "addr" parameter a
7958 pointer constant.
7959 * utils.c (gdb_print_host_address): Update.
7960
7961 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7962
7963 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7964 register number for R0 is 0.
7965
7966 2003-04-09 J. Brobecker <brobecker@gnat.com>
7967
7968 * frame.h (struct gdbarch): Add opaque structure definition
7969 to avoid a compilation warning on LynxOS 4.0.
7970
7971 2003-04-09 Andrew Cagney <cagney@redhat.com>
7972
7973 * frame.h (struct frame_info): Delete field "pc". Replace
7974 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7975 structure.
7976 * frame.c (frame_pc_unwind): Update.
7977 (create_sentinel_frame): Do not set "pc".
7978 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7979 (get_frame_pc): Call frame_pc_unwind.
7980 (deprecated_update_frame_pc_hack): Update.
7981 (create_new_frame): Use "pc" not "->pc".
7982
7983 2003-04-09 Andrew Cagney <cagney@redhat.com>
7984
7985 * frame.c (get_frame_id): Eliminate code updating "frame".
7986 (legacy_get_prev_frame): Ditto.
7987 (get_frame_base): Return id.base directly.
7988 (deprecated_update_frame_base_hack): Update "id.base".
7989 * frame.h (struct frame_info): Delete field "frame".
7990
7991 2003-04-09 Andrew Cagney <cagney@redhat.com>
7992
7993 * NEWS: Mention that the "Sequent family" is obsolete.
7994 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7995 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7996 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7997 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7998 * config/i386/tm-ptx4.h: Obsolete file.
7999 * config/i386/tm-ptx.h: Obsolete file.
8000 * symm-tdep.c: Obsolete file.
8001 * config/i386/symmetry.mt: Obsolete file.
8002 * config/i386/tm-symmetry.h: Obsolete file.
8003 * symm-nat.c: Obsolete file.
8004 * config/i386/nm-symmetry.h: Obsolete file.
8005 * config/i386/xm-symmetry.h: Obsolete file.
8006 * config/i386/symmetry.mh: Obsolete file.
8007 * config/i386/nm-ptx4.h: Obsolete file.
8008 * config/i386/ptx4.mh: Obsolete file.
8009 * config/i386/ptx.mt: Obsolete file.
8010 * config/i386/ptx.mh: Obsolete file.
8011 * config/i386/xm-ptx4.h: Obsolete file.
8012 * config/i386/xm-ptx.h: Obsolete file.
8013
8014 2003-04-09 Andrew Cagney <cagney@redhat.com>
8015
8016 Obsolete mips*-*-mach3*.
8017 * NEWS: Mention that mips*-*-mach3* is obsolete.
8018 * m3-nat.c: Obsolete file.
8019 * config/nm-m3.h: Obsolete file.
8020 * config/mips/tm-mipsm3.h: Obsolete file.
8021 * config/mips/mipsm3.mt: Obsolete file.
8022 * config/mips/mipsm3.mh: Obsolete file.
8023 * config/mips/xm-mipsm3.h: Obsolete file.
8024 * mipsm3-nat.c: Obsolete file.
8025 * configure.host: Obsolete mips-dec-mach3*.
8026 * configure.tgt: Obsolete mips*-*-mach3*.
8027
8028 2003-04-09 Andrew Cagney <cagney@redhat.com>
8029
8030 * doublest.h: Update copyright.
8031 (deprecated_store_floating, deprecated_extract_floating): Rename
8032 store_floating and extract_floating. Update comments.
8033 * doublest.c: Update copyright.
8034 (extract_floating_by_length): Replace extract_floating.
8035 (store_floating_by_length): Replace store_floating.
8036 (deprecated_extract_floating): New function.
8037 (deprecated_store_floating): New function.
8038 (extract_typed_floating): Call extract_floating_by_length.
8039 (store_typed_floating): Call store_floating_by_length.
8040 * x86-64-tdep.c (x86_64_store_return_value): Update.
8041 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8042 (sh64_extract_return_value): Update.
8043 (sh_sh4_register_convert_to_virtual): Update.
8044 (sh_sh64_register_convert_to_virtual): Update.
8045 (sh_sh4_register_convert_to_raw): Update.
8046 (sh_sh64_register_convert_to_raw): Update.
8047 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8048 (rs6000_register_convert_to_raw): Update.
8049 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8050 (ia64_register_convert_to_raw): Update.
8051 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8052 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8053 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8054 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8055 (alpha_register_convert_to_raw): Update.
8056
8057 2003-04-08 Andrew Cagney <cagney@redhat.com>
8058
8059 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8060 * gdbarch.h, gdbarch.c: Re-generate.
8061 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8062 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8063 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8064 conditionally, use frame_pc_unwind as an alternative. Add
8065 comments.
8066 * arch-utils.c (init_frame_pc_default): Only call
8067 SAVED_PC_AFTER_CALL when available.
8068
8069 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8070
8071 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8072 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8073 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8074 (start_remote): Ditto.
8075 (handle_inferior_event): Ditto.
8076 (save_inferior_status): Ditto.
8077 (restore_inferior_status): Ditto.
8078 * infcmd.c (attach_command): Ditto.
8079 * fork-child.c (startup_inferior): Ditto.
8080 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8081 * alpha-tdep.c (heuristic_proc_start): Ditto.
8082 * mips-tdep.c (heuristic_proc_start): Ditto.
8083 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8084 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8085 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8086 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8087 * remote-vx.c (vx_create_inferior): Ditto.
8088
8089 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8090
8091 * infrun.c (stop_soon_quietly): Make it an enum, to better
8092 override the default behavior of handle_inferior_event.
8093 (clear_proceed_status): Update uses of stop_soon_quietly to
8094 reflect that it is now an enum.
8095 (start_remote): Ditto.
8096 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8097 is set to handle the new GNU/Linux kernel behavior for
8098 attach/sigstop. Update uses of stop_soon_quietly.
8099 * inferior.h (enum stop_kind): New enum.
8100 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8101 Reset normal handle_inferior_event behavior, afterwards.
8102 * fork-child.c (startup_inferior): Update.
8103 * alpha-tdep.c (heuristic_proc_start): Update.
8104 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8105 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8106 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8107 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8108 * remote-vx.c (vx_create_inferior): Update.
8109 * mips-tdep.c (heuristic_proc_start): Update.
8110
8111 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8112
8113 * disasm.c (dump_insns): Move variables inside loop, or they will
8114 be freed more than once, causing wild memory corruptions.
8115 (gdb_disassembly): Look for the substring "-thread",
8116 instead of "-threads" in the target name, to make sure to find
8117 the 'multi-thread' target. Also, make sure we do the right thing
8118 with the "core" target.
8119
8120 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8121
8122 * mips-tdep.c (mips_print_fp_register): New function, created from
8123 do_fp_register_row(). Registers are now (also) printed as hex.
8124 Only one register is printed per row.
8125 (mips_print_register, do_fp_register_row): Print floating point
8126 registers with mips_print_fp_register().
8127
8128 2003-04-06 Andrew Cagney <cagney@redhat.com>
8129
8130 * valprint.h (inspect_it): Add extern declaration.
8131 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8132 (selectors_info, classes_info): Ditto.
8133 (find_objc_msgcall): Fix indentation.
8134 (objc_printstr): Delete extern declarations.
8135
8136 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8137
8138 2003-04-06 Andrew Cagney <cagney@redhat.com>
8139
8140 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8141 Update comment.
8142 * frame.c (legacy_saved_regs_this_id): Update.
8143 (legacy_get_prev_frame): Update.
8144 * xstormy16-tdep.c: Update comment.
8145 * sparc-tdep.c (sparc_frame_chain): Update comment.
8146 * blockframe.c (legacy_frame_chain_valid): Update.
8147
8148 2003-04-06 Andrew Cagney <cagney@redhat.com>
8149
8150 * valprint.c (val_print_type_code_int): Delete #ifdef
8151 PRINT_TYPELESS_INTEGER code.
8152
8153 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8154 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8155 multi-arch definition.
8156 * gdbarch.h: Re-generate.
8157
8158 2003-04-05 Andrew Cagney <cagney@redhat.com>
8159
8160 Eliminate FRAME_FIND_SAVED_REGS.
8161 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8162 Change FSR parameter to a pointer.
8163 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8164 Assume FSR parameter is a pointer.
8165 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8166 Make fsr a pointer.
8167 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8168 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8169 saved_regs a pointer.
8170 (hppa_frame_saved_pc): Ditto.
8171 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8172 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8173 pointer.
8174 (restore_pc_queue): Make fsr a pointer.
8175 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8176 (hppa_frame_chain): Make saved_regs a pointer, call
8177 hppa_frame_init_saved_regs.
8178 * sparc-tdep.c: Include "gdb_assert.h".
8179 (sparc_frame_find_saved_regs): Replace internal_error with
8180 gdb_assert.
8181 * remote-vxsparc.c (vx_read_register): Delete reference to
8182 FRAME_FIND_SAVED_REGS.
8183 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8184 * gdbarch.h: Regenerate.
8185 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8186 (deprecated_get_frame_saved_regs): Delete declaration.
8187 (struct frame_saved_regs): Delete definition.
8188 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8189 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8190 (hppa_frame_find_saved_regs): Delete declaration.
8191 (FRAME_FIND_SAVED_REGS): Delete macro.
8192 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8193 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8194 FRAME_FIND_SAVED_REGS in comment.
8195
8196 2003-04-05 Andrew Cagney <cagney@redhat.com>
8197
8198 * frame.c (frame_func_unwind, get_frame_func): New functions.
8199 * frame.h (get_frame_func, frame_func_unwind): Declare.
8200 (struct frame_info): Add field "prev_func" for caching the
8201 previous frame's function address.
8202 * arm-tdep.c (arm_frameless_function_invocation): Combine
8203 get_pc_function_start and get_frame_pc into get_frame_func.
8204 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8205 (sh64_nofp_frame_init_saved_regs): Ditto.
8206 * s390-tdep.c (s390_function_start): Ditto.
8207 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8208 (rs6000_frameless_function_invocation): Ditto.
8209 (rs6000_frame_saved_pc): Ditto.
8210 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8211 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8212 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8213 (i386_frame_init_saved_regs): Ditto.
8214 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8215 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8216 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8217 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8218 * blockframe.c (frameless_look_for_prologue): Ditto.
8219
8220 2003-04-05 Andrew Cagney <cagney@redhat.com>
8221
8222 * frame.c (legacy_get_prev_frame): Link prev to next at the
8223 function start. Update comments.
8224
8225 2003-04-05 Andrew Cagney <cagney@redhat.com>
8226
8227 * frame.c (get_frame_id): Update comment.
8228 (legacy_get_prev_frame): Update comment.
8229 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8230 * gdbarch.h: Regenerate.
8231 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8232 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8233
8234 2003-04-05 Andrew Cagney <cagney@redhat.com>
8235
8236 * stack.c (print_frame_info): Use get_frame_pc.
8237
8238 2003-04-04 Andrew Cagney <cagney@redhat.com>
8239
8240 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8241 the frame's type from the unwinder.
8242 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8243 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8244 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8245 (get_frame_base_address): Use get_frame_type.
8246 (get_frame_locals_address, get_frame_args_address): Ditto.
8247 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8248 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8249 (struct frame_info): Add comment explaining why the frame contains
8250 a "type" field.
8251 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8252 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8253 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8254 NORMAL_FRAME.
8255 * frame-unwind.h: Include "frame.h".
8256 (struct frame_unwind): Add "type" field.
8257 * Makefile.in (frame_unwind_h): Add $(frame_h).
8258
8259 2003-04-04 Andrew Cagney <cagney@redhat.com>
8260
8261 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8262 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8263 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8264 get_frame_base.
8265 (d10v_unwind_dummy_id): Use frame_id_build.
8266 * frame.c (find_frame_sal): Use get_frame_pc.
8267 (create_new_frame): Use deprecated_update_frame_pc_hack and
8268 deprecated_update_frame_base_hack.
8269 (create_sentinel_frame): Add comment about ->pc going away.
8270 (get_prev_frame): Add comment about ->pc going away.
8271 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8272 frame_id_build, deprecated_update_frame_pc_hack and
8273 deprecated_update_frame_base_hack.
8274 (select_frame): Use get_frame_pc.
8275 (legacy_saved_regs_this_id): Use frame_id_build.
8276
8277 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8278
8279 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8280 signed integer case.
8281 (classify_argument): Handle enumerations and references.
8282
8283 2003-04-04 Andrew Cagney <cagney@redhat.com>
8284
8285 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8286 ID to NULL.
8287
8288 2003-04-01 Adam Fedor <fedor@gnu.org>
8289
8290 * gdb/objc-lang.c (selectors_info): Replace calls to
8291 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8292 SYMBOL_NATURAL_NAME.
8293 (classes_info, find_methods): Likewise.
8294
8295 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8296
8297 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8298 ``mach'' to the value determined by bfd_default_set_arch_mach().
8299
8300 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8301
8302 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8303 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8304 (mi-cmd-file.o): Update dependencies.
8305
8306 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8307
8308 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8309 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8310
8311 2003-04-01 Adam Fedor <fedor@gnu.org>
8312
8313 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8314 * language.h (struct language_defn): Add la_demangle.
8315 (language_demangle): Declare.
8316 * language.c (language_demangle): New function.
8317 (unk_lang_demangle): Likewise.
8318 (unknown_language_defn, auto_language_defn, local_language_defn):
8319 Add ukn_lang_demangle.
8320 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8321 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8322 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8323 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8324 * jv-lang.c (java_demangle): New function
8325 (java_language_defn): Use it for la_demangle element.
8326 * objc-lang.c (objc_demangle): Add options argument
8327 (objc_language_defn): Use objc_demangle for la_demangle element.
8328 * maint.c (maintenance_demangle): Replace switch with
8329 call to language_demangle.
8330 * utils.c (fprintf_symbol_filtered): Likewise.
8331
8332 2003-04-01 Andrew Cagney <cagney@redhat.com>
8333
8334 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8335 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8336 PRINT_TYPELESS_INTEGER.
8337 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8338 PUSH_RETURN_ADDRESS.
8339
8340 2003-04-01 Andrew Cagney <cagney@redhat.com>
8341
8342 * Makefile.in (d10v-tdep.o): Update dependencies.
8343 * d10v-tdep.c: Include "frame-base.h".
8344 (d10v_frame_unwind): Make constant.
8345 (d10v_frame_base_address): New function.
8346 (d10v_frame_base): New variable.
8347 (d10v_gdbarch_init): Set frame_base default.
8348 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8349 comment for base.
8350 (d10v_frame_unwind_cache): Set and use "prev_sp".
8351 (d10v_frame_this_id): Use the previous frame's inner most stack
8352 address and this frame's func address for the frame ID. Use
8353 frame_id_build. Don't analyze beyond the current instruction.
8354
8355 2003-04-01 Andrew Cagney <cagney@redhat.com>
8356
8357 * frame.h (get_frame_locals_address, get_frame_args_address):
8358 Refer to the base address, instead of the address of the first
8359 local or parameter.
8360
8361 2003-04-01 Andrew Cagney <cagney@redhat.com>
8362
8363 Add frame debug info addresses:
8364 * frame-base.c: New file.
8365 * frame-base.h: New file.
8366 * frame.h (struct frame_base): Add opaque declaration.
8367 (get_frame_base): Update comment.
8368 (get_frame_base_address): Declare.
8369 (get_frame_locals_address): Declare.
8370 (get_frame_args_address): Declare.
8371 (struct frame_info): Add "base" and "base_cache". Update
8372 comments on the unwinder.
8373 * frame.c: Include "frame-base.h".
8374 (get_frame_locals_address): New function.
8375 (get_frame_base_address): New function.
8376 (get_frame_args_address): New function.
8377 * findvar.c (read_var_value): Use get_frame_locals_address and
8378 get_frame_args_address.
8379 * stack.c (frame_info): Use get_frame_locals_address and
8380 get_frame_args_address.
8381 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8382 moved to "frame-base.c".
8383 * printcmd.c (print_frame_nameless_args): Ditto.
8384 * symtab.h (address_class): Update comments.
8385 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8386 get_frame_base_address.
8387 * dwarf2expr.c (execute_stack_op): Ditto.
8388 * Makefile.in (frame_base_h): Define.
8389 (frame.o): Update dependencies.
8390 (frame-base.o): Add dependencies.
8391 (SFILES): Add frame-base.c.
8392 (COMMON_OBS): Add frame-base.o.
8393
8394 2003-04-01 Andrew Cagney <cagney@redhat.com>
8395
8396 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8397 CALL_DUMMY_LENGTH): Ditto.
8398 * gdbarch.c: Re-generate.
8399 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8400 (CALL_DUMMY_LENGTH): Delete macro.
8401 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8402 * arm-tdep.c (arm_gdbarch_init): Ditto.
8403 * avr-tdep.c (avr_gdbarch_init): Ditto.
8404 * cris-tdep.c (cris_gdbarch_init): Ditto.
8405 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8406 * frv-tdep.c (frv_gdbarch_init): Ditto.
8407 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8408 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8409 * i386-tdep.c (i386_gdbarch_init): Ditto.
8410 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8411 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8412 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8413 * mips-tdep.c (mips_gdbarch_init): Ditto.
8414 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8415 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8416 * s390-tdep.c (s390_gdbarch_init): Ditto.
8417 * sh-tdep.c (sh_gdbarch_init): Ditto.
8418 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8419 * v850-tdep.c (v850_gdbarch_init): Ditto.
8420 * vax-tdep.c (vax_gdbarch_init): Ditto.
8421 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8422
8423 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8424
8425 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8426
8427 2003-04-01 Andrew Cagney <cagney@redhat.com>
8428
8429 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8430 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8431 * gdbarch.h, gdbarch.c: Re-generate.
8432 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8433 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8434 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8435 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8436 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8437 * infcmd.c (run_stack_dummy): Simplify assuming
8438 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8439 * infrun.c (handle_inferior_event): Ditto.
8440 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8441 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8442 * arm-tdep.c (arm_gdbarch_init): Ditto.
8443 * avr-tdep.c (avr_gdbarch_init): Ditto.
8444 * cris-tdep.c (cris_gdbarch_init): Ditto.
8445 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8446 * frv-tdep.c (frv_gdbarch_init): Ditto.
8447 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8448 * i386-tdep.c (i386_gdbarch_init): Ditto.
8449 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8450 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8451 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8452 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8453 * mips-tdep.c (mips_gdbarch_init): Ditto.
8454 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8455 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8456 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8457 * s390-tdep.c (s390_gdbarch_init): Ditto.
8458 * sh-tdep.c (sh_gdbarch_init): Ditto.
8459 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8460 * v850-tdep.c (v850_gdbarch_init): Ditto.
8461 * vax-tdep.c (vax_gdbarch_init): Ditto.
8462 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8463
8464 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8465
8466 * symfile.c (symfile_relocate_debug_section): Update call to
8467 bfd_simple_get_relocated_section_contents.
8468
8469 2003-03-31 Andrew Cagney <cagney@redhat.com>
8470
8471 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8472 * gdbarch.h, gdbarch.c: Regenerate.
8473 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8474 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8475 available.
8476 * frame.h (generic_fix_call_dummy): Delete declaration.
8477 * dummy-frame.h: Update comment.
8478 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8479 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8480 fix_call_dummy.
8481 * sh-tdep.c (sh_gdbarch_init): Ditto.
8482 * s390-tdep.c (s390_gdbarch_init): Ditto.
8483 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8484 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8485 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8486 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8487 * i386-tdep.c (i386_gdbarch_init): Ditto.
8488 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8489 * frv-tdep.c (frv_gdbarch_init): Ditto.
8490 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8491 * cris-tdep.c (cris_gdbarch_init): Ditto.
8492 * avr-tdep.c (avr_gdbarch_init): Ditto.
8493 * arm-tdep.c (arm_gdbarch_init): Ditto.
8494
8495 2003-03-31 J. Brobecker <brobecker@gnat.com>
8496
8497 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8498 (INIT_FRAME_AP): Likewise.
8499 (EXTRA_FRAME_INFO): Likewise.
8500
8501 2003-03-31 Andrew Cagney <cagney@redhat.com>
8502
8503 * gdbarch.sh: Include "symfile.h".
8504 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8505 * gdbarch.h, gdbarch.c: Re-generate.
8506 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8507 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8508 call_dummy_address, the default is at entry_point_address.
8509 * v850-tdep.c (v850_gdbarch_init): Ditto.
8510 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8511 * sh-tdep.c (sh_gdbarch_init): Ditto.
8512 * s390-tdep.c (s390_gdbarch_init): Ditto.
8513 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8514 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8515 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8516 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8517 * i386-tdep.c (i386_gdbarch_init): Ditto.
8518 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8519 * frv-tdep.c (frv_gdbarch_init): Ditto.
8520 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8521 * cris-tdep.c (cris_gdbarch_init): Ditto.
8522 * arm-tdep.c (arm_gdbarch_init): Ditto.
8523
8524 2003-03-31 Andrew Cagney <cagney@redhat.com>
8525
8526 * gdbarch.sh (CALL_DUMMY_P): Delete.
8527 * gdbarch.h, gdbarch.c: Re-generate.
8528 * inferior.h (CALL_DUMMY_P): Delete macro.
8529 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8530 * vax-tdep.c (vax_gdbarch_init): Update.
8531 * v850-tdep.c (v850_gdbarch_init): Update.
8532 * sparc-tdep.c (sparc_gdbarch_init): Update.
8533 * sh-tdep.c (sh_gdbarch_init): Update.
8534 * s390-tdep.c (s390_gdbarch_init): Update.
8535 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8536 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8537 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8538 * mips-tdep.c (mips_gdbarch_init): Update.
8539 * mcore-tdep.c (mcore_gdbarch_init): Update.
8540 * m68k-tdep.c (m68k_gdbarch_init): Update.
8541 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8542 * ia64-tdep.c (ia64_gdbarch_init): Update.
8543 * i386-tdep.c (i386_gdbarch_init): Update.
8544 * h8300-tdep.c (h8300_gdbarch_init): Update.
8545 * frv-tdep.c (frv_gdbarch_init): Update.
8546 * d10v-tdep.c (d10v_gdbarch_init): Update.
8547 * cris-tdep.c (cris_gdbarch_init): Update.
8548 * breakpoint.c (deprecated_frame_in_dummy): Update.
8549 * avr-tdep.c (avr_gdbarch_init): Update.
8550 * alpha-tdep.c (alpha_gdbarch_init): Update.
8551 * arm-tdep.c (arm_gdbarch_init): Update.
8552 * dummy-frame.c (dummy_frame_this_id): Update comments.
8553 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8554 * frame.c (legacy_get_prev_frame): Ditto.
8555 * valops.c (call_function_by_hand): Delete function.
8556 (hand_function_call): Rename to call_function_by_hand
8557
8558 2003-03-30 Andrew Cagney <cagney@redhat.com>
8559
8560 2002-11-10 Klee Dienes <kdienes@apple.com>
8561 * value.h (struct value): Update comment.
8562
8563 2003-03-30 Andrew Cagney <cagney@redhat.com>
8564
8565 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8566 D10V_FP_REGNUM.
8567 (d10v_gdbarch_init): Do not set fp_regnum.
8568
8569 * frame.c (get_frame_base): Force ID initialization.
8570 (get_prev_frame): Move computation of the frame ID from here ...
8571 (get_frame_id): ... to here.
8572 (legacy_get_prev_frame): Mark the frame ID as valid.
8573 * frame.h (struct frame_info): Add field "id_p".
8574
8575 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8576
8577 * i386-tdep.c (i386_store_struct_return): Removed.
8578 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8579
8580 2003-03-30 Andrew Cagney <cagney@redhat.com>
8581
8582 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8583 * gdbarch.h, gdbarch.c: Regenerate.
8584 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8585 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8586 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8587 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8588 * i386-tdep.c (i386_gdbarch_init): Ditto.
8589 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8590 * cris-tdep.c (cris_gdbarch_init): Ditto.
8591 * vax-tdep.c (vax_gdbarch_init): Ditto.
8592 * s390-tdep.c (s390_gdbarch_init): Ditto.
8593 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8594 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8595 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8596 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8597 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8598 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8599 * sparc-tdep.c (sparc_gdbarch_init): Update.
8600 * sh-tdep.c (sh_gdbarch_init): Update.
8601 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8602 * mips-tdep.c (mips_gdbarch_init): Update.
8603 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8604 * ia64-tdep.c (ia64_gdbarch_init): Update.
8605 * frv-tdep.c (frv_gdbarch_init): Update.
8606 * avr-tdep.c (avr_gdbarch_init): Update.
8607 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8608 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8609 instead of when push_dummy_call is not available.
8610
8611 2003-03-30 Andrew Cagney <cagney@redhat.com>
8612
8613 * infttrace.c: Include "gdbthread.h".
8614 (parent_attach_all): Fix function signature.
8615 (call_ptrace): Update call.
8616 * Makefile.in (infttrace.o): Update dependencies.
8617
8618 2003-03-30 Andrew Cagney <cagney@redhat.com>
8619
8620 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8621 PUSH_RETURN_ADDRESS.
8622 * gdbarch.h, gdbarch.c: Regenerate.
8623 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8624 * x86-64-tdep.c (x86_64_init_abi): Update.
8625 * v850-tdep.c (v850_gdbarch_init): Update.
8626 * sparc-tdep.c (sparc_gdbarch_init): Update.
8627 * sh-tdep.c (sh_gdbarch_init): Update.
8628 * s390-tdep.c (s390_gdbarch_init): Update.
8629 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8630 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8631 * mips-tdep.c (mips_gdbarch_init): Update.
8632 * mcore-tdep.c (mcore_gdbarch_init): Update.
8633 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8634 * ia64-tdep.c (ia64_gdbarch_init): Update.
8635 * i386-tdep.c (i386_gdbarch_init): Update.
8636 * h8300-tdep.c (h8300_gdbarch_init): Update.
8637 * frv-tdep.c (frv_gdbarch_init): Update.
8638 * cris-tdep.c (cris_gdbarch_init): Update.
8639 * avr-tdep.c (avr_gdbarch_init): Update.
8640 * arm-tdep.c (arm_gdbarch_init): Update.
8641 * valops.c (hand_function_call): Update.
8642
8643 2003-03-29 Andrew Cagney <cagney@redhat.com>
8644
8645 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8646 sizeof_call_dummy_words.
8647 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8648 define.
8649 * gdbarch.h: Regenerate.
8650
8651 2003-03-29 Andrew Cagney <cagney@redhat.com>
8652
8653 * infttrace.h: New file.
8654 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8655 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8656 (hpread_read_doc_function_type): Detect an initialized type1.
8657 (hpread_quick_traverse): Initialize mod_name_string.
8658 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8659 (som_solib_get_solib_by_pc): Declare.
8660 (so_lib_thread_start_addr): Declare.
8661 (no_shared_libraries): Declare.
8662 * somread.c (init_import_symbols): Make static. Add forward
8663 declaration.
8664 * config/pa/nm-hppah.h: Include "infttrace.h" for
8665 parent_attach_all.
8666 (hppa_insert_hw_watchpoint): Declare.
8667 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8668 * hppah-nat.c: Include "gdb_string.h".
8669 (parent_attach_all): Delete extern declaration, moved to
8670 "infttrace.h".
8671 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8672 int.
8673 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8674 * Makefile.in (infttrace_h): Define.
8675 (hpread.o): Update dependencies.
8676 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8677 * hppa-hpux-tdep.c: Include "gdb_string.h".
8678 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8679 * infrun.c (handle_inferior_event): Always initialize
8680 stepped_after_stopped_by_watchpoint. Add default and remove
8681 fallthrough in switch statement.
8682 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8683 parameter to int.
8684 (hppa_remove_hw_watchpoint): Ditto.
8685
8686 2003-03-29 Andrew Cagney <cagney@redhat.com>
8687
8688 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8689 offset.
8690
8691 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8692
8693 * arm-tdep.c (arm_push_arguments): Delete.
8694 (struct stack_item): New type.
8695 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8696 (arm_store_struct_return): Delte.
8697 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8698 arm_push_arguments or arm_store_struct_return.
8699
8700 2003-03-28 Andrew Cagney <cagney@redhat.com>
8701
8702 * Makefile.in (d10v-tdep.o): Update dependencies.
8703 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8704 * d10v-tdep.c: Include "remote.h".
8705 (target_resume_hook): Delete extern declaration.
8706 (target_wait_loop_hook): Ditto.
8707 (tdisassemble_command): Eliminate assignment in "if" conditional.
8708 (d10v_ts2_register_sim_regno): Eliminate call to
8709 legacy_register_sim_regno.
8710 (d10v_ts3_register_sim_regno): Ditto.
8711
8712 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8713
8714 * thread.c: Reindented.
8715 * lin-lwp.c: Ditto.
8716 * linux-proc.c: Ditto.
8717
8718 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8719
8720 * MAINTAINERS (write after approval): Add myself.
8721
8722 2003-03-27 Theodore A. Roth <troth@openavr.org>
8723
8724 * objc-exp.y: Add missing semi-colons.
8725
8726 2003-03-27 Andrew Cagney <cagney@redhat.com>
8727
8728 * regcache.c (write_sp): Delete function and references.
8729 * inferior.h (write_sp): Delete declaration.
8730 * valops.c (hand_function_call): Replace write_sp with
8731 TARGET_WRITE_SP.
8732 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8733 (sparc_pop_frame): Ditto.
8734
8735 2003-03-27 Andrew Cagney <cagney@redhat.com>
8736
8737 * NEWS: Mention removal of support for hppa*-*-bsd* and
8738 hppa*-*-osf* natives, and hppa*-*-pro* target.
8739 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8740 * config/pa/xm-pa.h: Obsolete file.
8741 * config/pa/xm-hppab.h: Obsolete file.
8742 * config/pa/nm-hppab.h: Obsolete file.
8743 * config/pa/tm-hppab.h: Obsolete file.
8744 * config/pa/tm-hppao.h: Obsolete file.
8745 * config/pa/nm-hppao.h: Obsolete file.
8746 * config/pa/tm-pro.h: Obsolete file.
8747 * config/pa/hppaosf.mt: Obsolete file.
8748 * config/pa/hppaosf.mh: Obsolete file.
8749 * config/pa/hppapro.mt: Obsolete file.
8750 * config/pa/hppabsd.mt: Obsolete file.
8751 * config/pa/hppabsd.mh: Obsolete file.
8752 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8753 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8754 hppa*-*-osf*.
8755
8756 2003-03-27 Andrew Cagney <cagney@redhat.com>
8757
8758 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8759 push_arguments. Don't set push_return_address or write_sp.
8760 (d10v_push_dummy_call): Replace d10v_push_arguments.
8761 (d10v_push_return_address, d10v_write_sp): Delete function,
8762 handled by push_dummy_call.
8763
8764 2003-03-26 Andrew Cagney <cagney@redhat.com>
8765
8766 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8767 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8768 regcache and dummy_addr parameters.
8769 * gdbarch.h, gdbarch.c: Re-generate.
8770 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8771 available; assume it will handle stack alignment and return
8772 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8773 legacy_push_arguments.
8774 (legacy_push_arguments): Rename default_push_arguments.
8775 * value.h (legacy_push_arguments): Rename default_push_arguments.
8776 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8777 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8778 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8779 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8780 * config/i386/tm-symmetry.h: Update.
8781 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8782 * x86-64-tdep.c (x86_64_init_abi): Update.
8783 * v850-tdep.c (v850_gdbarch_init): Update.
8784 * sparc-tdep.c (sparc_gdbarch_init): Update.
8785 * sh-tdep.c (sh_gdbarch_init): Update.
8786 * s390-tdep.c (s390_gdbarch_init): Update.
8787 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8788 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8789 * mips-tdep.c (mips_gdbarch_init): Update.
8790 * mcore-tdep.c (mcore_gdbarch_init): Update.
8791 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8792 * ia64-tdep.c (ia64_gdbarch_init): Update.
8793 * i386-tdep.c (i386_gdbarch_init): Update.
8794 * hppa-tdep.c (hppa_gdbarch_init): Update.
8795 * h8300-tdep.c (h8300_gdbarch_init): Update.
8796 * frv-tdep.c (frv_gdbarch_init): Update.
8797 * d10v-tdep.c (d10v_gdbarch_init): Update.
8798 * cris-tdep.c (cris_gdbarch_init): Update.
8799 * avr-tdep.c (avr_gdbarch_init): Update.
8800 * arm-tdep.c (arm_gdbarch_init): Update.
8801 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8802 * alpha-tdep.c (alpha_gdbarch_init): Update.
8803
8804 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8805
8806 * signals/signals.c (do_target_signal_to_host): Correct realtime
8807 signal range test.
8808
8809 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8810
8811 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8812 (struct sal_chain, map_catch_names): Remove.
8813 (catch_exception_command_1): Don't call
8814 handle_gnu_4_16_catch_command.
8815
8816 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8817
8818 From Mark Dettinger <dettinge@de.ibm.com>:
8819 * dwarf2cfi.c (read_2u): Increment pointer by two.
8820
8821 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8822
8823 * signals/signals.c: Fix typos in last change.
8824
8825 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8826
8827 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8828 not already defined. Use __SIGRTMIN if available.
8829 (target_signal_from_host): Remove SIGRTMIN block.
8830 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8831 the signal is within the realtime range.
8832
8833 2003-03-25 Adam Fedor <fedor@gnu.org>
8834
8835 * Makefile.in (infrun.o): Add $(language_h)
8836 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8837 for language specific trampolines.
8838 * language.h (struct language_defn): Add skip_trampoline.
8839 (skip_language_trampoline): Declare.
8840 * language.c (unk_lang_trampoline, skip_language_trampoline):
8841 New functions.
8842 (unknown_language_defn, auto_language_defn, local_language_defn):
8843 Add ukn_lang_trampoline.
8844 * ada-lang.c (ada_language_defn): Add NULL for language
8845 specific skip_trampoline.
8846 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8847 scm-lang.c: Likewise.
8848 * objc-lang.c (objc_skip_trampoline): New function.
8849 (objc_language_defn): Add objc_skip_trampoline.
8850
8851 2003-03-25 Andrew Cagney <cagney@redhat.com>
8852
8853 * frame.c (get_prev_frame): Delay validating a frame's ID -
8854 non-NULL, didn't go backwards - until an attempt to unwind it to
8855 the previous frame.
8856
8857 2003-03-25 Andrew Cagney <cagney@redhat.com>
8858
8859 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8860 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8861 * gdbarch.h, gdbarch.c: Re-generate.
8862 * config/sparc/tm-sparc.h
8863 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8864 * sparc-tdep.c (sparc_gdbarch_init): Set
8865 deprecated_extra_stack_alignment_needed.
8866 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8867 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8868 extra_stack_alignment_needed.
8869 * v850-tdep.c (v850_gdbarch_init): Ditto.
8870 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8871 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8872 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8873 * cris-tdep.c (cris_gdbarch_init): Ditto.
8874 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8875 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8876
8877 2003-03-25 Andrew Cagney <cagney@redhat.com>
8878
8879 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8880 STORE_STRUCT_RETURN.
8881 * gdbarch.h, gdbarch.c: Regenerate.
8882 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8883 (d10v_push_arguments): Set the struct return register.
8884 (d10v_gdbarch_init): Update.
8885 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8886 * x86-64-tdep.c (x86_64_init_abi): Update.
8887 * vax-tdep.c (vax_gdbarch_init): Update.
8888 * v850-tdep.c (v850_gdbarch_init): Update.
8889 * sparc-tdep.c (sparc_gdbarch_init): Update.
8890 * sh-tdep.c (sh_gdbarch_init): Update.
8891 * s390-tdep.c (s390_gdbarch_init): Update.
8892 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8893 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8894 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8895 * mips-tdep.c (mips_gdbarch_init): Update.
8896 * mcore-tdep.c (mcore_gdbarch_init): Update.
8897 * m68k-tdep.c (m68k_gdbarch_init): Update.
8898 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8899 * ia64-tdep.c (ia64_gdbarch_init): Update.
8900 * i386-tdep.c (i386_gdbarch_init): Update.
8901 * hppa-tdep.c (hppa_gdbarch_init): Update.
8902 * h8300-tdep.c (h8300_gdbarch_init): Update.
8903 * frv-tdep.c (frv_gdbarch_init): Update.
8904 * cris-tdep.c (cris_gdbarch_init): Update.
8905 * avr-tdep.c (avr_gdbarch_init): Update.
8906 * arm-tdep.c (arm_gdbarch_init): Update.
8907 * alpha-tdep.c (alpha_gdbarch_init): Update.
8908
8909 2003-03-25 Andrew Cagney <cagney@redhat.com>
8910
8911 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8912 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8913 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8914 * gdbarch.h, gdbarch.c: Regenerate.
8915 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8916 call_dummy_stack_adjust_p.
8917 * vax-tdep.c (vax_gdbarch_init): Ditto.
8918 * v850-tdep.c (v850_gdbarch_init): Ditto.
8919 * sh-tdep.c (sh_gdbarch_init): Ditto.
8920 * s390-tdep.c (s390_gdbarch_init): Ditto.
8921 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8922 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8923 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8924 * mips-tdep.c (mips_gdbarch_init): Ditto.
8925 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8926 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8927 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8928 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8929 * i386-tdep.c (i386_gdbarch_init): Ditto.
8930 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8931 * frv-tdep.c (frv_gdbarch_init): Ditto.
8932 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8933 * cris-tdep.c (cris_gdbarch_init): Ditto.
8934 * avr-tdep.c (avr_gdbarch_init): Ditto.
8935 * arm-tdep.c (arm_gdbarch_init): Ditto.
8936 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8937 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8938 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8939 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8940 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8941 call_dummy_stack_adjust_p.
8942 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8943 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8944 * sparc-tdep.c (sparc32_push_arguments): Update.
8945 * valops.c (hand_function_call): Update.
8946
8947 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8948
8949 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8950 set_gdbarch_char_signed.
8951
8952 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8953
8954 PR cli/548
8955 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8956
8957 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8958
8959 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8960 (_initialize_arm_tdep): Don't set tm_print_insn.
8961
8962 2003-03-24 Adam Fedor <fedor@gnu.org>
8963
8964 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8965 * objc-lang.h: Add multiple inclusion protection.
8966 (start_msglist, add_msglist, end_msglist): Additional declarations.
8967
8968 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8969
8970 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8971 value was renamed to ARM_FLOAT_SOFT_FPA.
8972
8973 2003-03-23 Andrew Cagney <cagney@redhat.com>
8974
8975 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8976 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8977 * gdbarch.h, gdbarch.c: Regenerate.
8978 * valops.c (hand_function_call): Update.
8979 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8980 * frame.c (legacy_saved_regs_this_id): Update.
8981 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8982 * dummy-frame.h: Update.
8983 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8984 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8985 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8986 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8987 * config/m68k/tm-sun3.h: Update.
8988 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8989 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8990 * x86-64-tdep.c (x86_64_init_abi): Update.
8991 * vax-tdep.c (vax_gdbarch_init): Update.
8992 * v850-tdep.c (v850_gdbarch_init): Update.
8993 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8994 * sh-tdep.c (sh_gdbarch_init): Update.
8995 * s390-tdep.c (s390_gdbarch_init): Update.
8996 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8997 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8998 (frame_get_saved_regs): Update.
8999 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9000 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9001 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9002 * mips-tdep.c (mips_gdbarch_init): Update.
9003 * mcore-tdep.c (mcore_gdbarch_init): Update.
9004 * m68k-tdep.c (m68k_gdbarch_init): Update.
9005 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9006 * ia64-tdep.c (ia64_gdbarch_init): Update.
9007 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9008 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9009 (i386_interix_back_one_frame): Update.
9010 * hppa-tdep.c (hppa_gdbarch_init): Update.
9011 (hppa_init_extra_frame_info): Update.
9012 * h8300-tdep.c (h8300_gdbarch_init): Update.
9013 * frv-tdep.c (frv_gdbarch_init): Update.
9014 * cris-tdep.c (cris_gdbarch_init): Update.
9015 * avr-tdep.c (avr_gdbarch_init): Update.
9016 * arm-tdep.c (arm_gdbarch_init): Update.
9017 * alpha-tdep.c (alpha_gdbarch_init): Update.
9018
9019 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9020
9021 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9022 (arm_get_fp_model): Declare.
9023 * arm-tdep.c (fp_model_strings): New string array.
9024 (arm_fp_model, current_fp_model): New variables.
9025 (arm_get_fp_model): New function.
9026 (arm_set_fp): New function.
9027 (set_fp_model_sfunc): New function.
9028 (show_fp_model): New function.
9029 (_initialize_arm_tdep): Add new command to set/show the FPU.
9030 (arm_extract_return_value): Use arm_get_fp_model.
9031 (arm_store_return_value): Likewise.
9032 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9033 to initialize the floating-point data types.
9034 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9035 model is FPA.
9036
9037 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9038
9039 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9040 the current setting of each value.
9041 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9042 new_set and new_show. Use add_setshow_cmd_full and
9043 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9044 commands and add new version as subcommands of "set/show arm".
9045
9046 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9047
9048 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9049 (set_arm_command, show_arm_command): New functions.
9050 (_initialize_arm_tdep): Add them.
9051 (num_disassembly_options): Renamed from num_flavor_options.
9052 (valid_disassembly_styles): Renamed from valid_flavors.
9053 (disassembly_style): Renamed from disassembly_flavor.
9054 (set_disassembly_style_sfunc): Renamed from
9055 set_disassembly_flavor_sfunc.
9056 (set_disassembly_style): Renamed from set_disassembly_flavor.
9057 (arm_othernames): Updated.
9058 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9059 command. Add "set/show arm disassembly" commands. Deprecate
9060 "othernames" command.
9061
9062 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9063
9064 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9065 (arm-tdep.o): Depend on elf_arm_h.
9066
9067 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9068
9069 * Makefile.in (coff_internal_h): Define.
9070 (arm-tdep.o): Update dependencies.
9071
9072 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9073
9074 * arm-tdep.c (prologue_cache): Delete.
9075 (check_prologue_cache, save_prologue_cache): Delete.
9076 (arm_scan_prologue): Don't check or update the prologue_cache.
9077 (arm_gdb_arch_init): Don't initialize it.
9078 (_initialize_arm_tdep): Likewise.
9079
9080 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9081
9082 * MAINTAINERS (tui): Maintainer of tui code.
9083
9084 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9085
9086 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9087 (i386-cygwin-tdep.o): Add dependencies.
9088 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9089 * i386-cygwin-tdep.c: New file.
9090 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9091 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9092
9093 2003-03-20 Andrew Cagney <cagney@redhat.com>
9094
9095 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9096 (handle_inferior_event): Remove code calling
9097 DYNAMIC_TRAMPOLINE_NEXTPC.
9098
9099 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9100 already has a full path.
9101
9102 * main.c (gdb_main): Return 1.
9103 (captured_main): Call error to report an invalid interpreter.
9104
9105 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9106 * alpha-osf1-tdep.c: Include "gdb_string.h".
9107
9108 2003-03-19 J. Brobecker <brobecker@gnat.com>
9109
9110 Continuing work to convert the hppa targets to multiarch partial.
9111
9112 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9113 method, now that hppa_push_dummy_frame has a conformant prototype.
9114 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9115 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9116 for the switch to multiarch partial.
9117
9118 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9119
9120 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9121 when iss is issNull.
9122
9123 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9124
9125 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9126 NUM_REGS bounds check.
9127
9128 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9129
9130 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9131 * mips-tdep.c (gdb_assert.h): Include.
9132 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9133 (mips_register_name): Handle integer registers explicitly. Add
9134 bounds checking.
9135 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9136 (mips_lsi33k_reg_names): Don't list integer registers; they're
9137 handled by mips_register_name() now.
9138 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9139 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9140 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9141 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9142 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9143
9144 2003-03-18 Andrew Cagney <cagney@redhat.com>
9145
9146 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9147 a void pointer.
9148 * gdbtypes.h (print_scalar_formatted): Update declaration.
9149 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9150
9151 2003-03-18 J. Brobecker <brobecker@gnat.com>
9152
9153 * infrun.c (observer.h): Add #include.
9154 (normal_stop): Add call to observer_notify_normal_stop.
9155 * Makefile.in (infrun.o): Add dependency on observer.h.
9156
9157 2003-03-18 J. Brobecker <brobecker@gnat.com>
9158
9159 Continuing work to convert the hppa targets to multiarch partial.
9160 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9161 parameter. Reformat comment.
9162 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9163 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9164 to match new profile.
9165
9166 2003-03-18 J. Brobecker <brobecker@gnat.com>
9167
9168 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9169 appear to be working in any case.
9170
9171 2003-03-18 J. Brobecker <brobecker@gnat.com>
9172
9173 * observer.c (observer_test_first_observer): New static variable.
9174 (observer_test_second_observer): Likewise.
9175 (observer_test_third_observer): Likewise.
9176 (observer_test_first_notification_function): New static function.
9177 (observer_test_second_notification_function): Likewise.
9178 (observer_test_third_notification_function): Likewise.
9179
9180 2003-03-17 J. Brobecker <brobecker@gnat.com>
9181
9182 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9183 * somsolib.c (gdb_assert.h): Likewise.
9184 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9185 (somsolib.o): Likewise.
9186
9187 2003-03-17 Andrew Cagney <cagney@redhat.com>
9188
9189 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9190 BFD. Simplify setting of di.endian.
9191
9192 2003-03-17 Andrew Cagney <cagney@redhat.com>
9193
9194 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9195 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9196
9197 From Elena Zannoni <ezannoni@redhat.com>
9198 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9199 vector and floating-point parameters.
9200 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9201 convention.
9202 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9203
9204 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9205
9206 * MAINTAINERS: Remove my name from several maintainership roles.
9207
9208 2003-03-17 Andrew Cagney <cagney@redhat.com>
9209
9210 Fix frame off-by-one bug.
9211 * frame-unwind.h (frame_this_id_ftype): Replace
9212 frame_unwind_id_ftype.
9213 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9214 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9215 with "prev_register".
9216 * frame-unwind.c (frame_unwind_find_by_pc): Return
9217 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9218 comment.
9219 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9220 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9221 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9222 (dummy_frame_unwind): Update.
9223 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9224 sentinel_frame_register_unwind.
9225 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9226 (sentinel_frame_unwinder): Update.
9227 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9228 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9229 * frame.c (create_sentinel_frame): Update. Initialize
9230 "prologue_cache" instead of "unwind_cache".
9231 (frame_register_unwind): Call this frame's prev_register with the
9232 next frame and this frame's prologue cache.
9233 (get_prev_frame): Simplify. Always call prev frame's this_id with
9234 this frame and prev frame's prologue cache. Document that this
9235 call is shifted one to the left when compared to the
9236 frame_register_unwind call.
9237 (legacy_saved_regs_prev_register): Replace
9238 frame_saved_regs_register_unwind.
9239 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9240 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9241 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9242 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9243 (d10v_frame_unwind): Update.
9244 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9245 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9246 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9247 "saved_regs" with "this_saved_regs".
9248
9249 2003-03-16 Andrew Cagney <cagney@redhat.com>
9250
9251 * frame.c (frame_pop): Don't call target_store_registers. Fix
9252 problem reported by Mark Kettenis.
9253
9254 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9255
9256 * i386-tdep.c (i386_register_type): Renamed from
9257 i386_register_virtual_type. Adjust function signature.
9258 (i386_gdbarch_init): Set register_type instead of
9259 deprecated_max_register_raw_size,
9260 deprecated_max_register_virtual_size and register_virtual_type.
9261
9262 2003-03-14 Andrew Cagney <cagney@redhat.com>
9263
9264 * frame.c (get_prev_frame): When a legacy frame, always call
9265 legacy_get_prev_frame. Simplify unwind code using assumption that
9266 the unwinder is new.
9267 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9268 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9269 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9270
9271 2003-03-14 Andrew Cagney <cagney@redhat.com>
9272
9273 * frame.c (get_saved_register): Delete function.
9274 * frame.h (get_saved_register): Delete declaration.
9275 * xstormy16-tdep.c: Update comment.
9276 * regcache.h: Update comments.
9277 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9278 get_saved_register and extract_address, use
9279 frame_read_unsigned_register.
9280 (sparc_frame_saved_pc): Ditto.
9281 (sparc_get_saved_register): Instead of get_saved_register, use
9282 frame_register.
9283 (sparc_pop_frame): Ditto.
9284 * findvar.c: Update comments.
9285 (value_of_register): Call frame_register instead of
9286 get_saved_register.
9287 (value_from_register): Ditto.
9288 * config/sparc/tm-sparc.h: Update comment.
9289 * breakpoint.c: Update comment.
9290
9291 2003-03-14 Andrew Cagney <cagney@redhat.com>
9292
9293 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9294 GET_SAVED_REGISTER.
9295 * gdbarch.h, gdbarch.c: Re-generate.
9296 * frame.h: Update comments.
9297 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9298 * x86-64-tdep.c (x86_64_init_abi): Update.
9299 * sparc-tdep.c (sparc_gdbarch_init): Update.
9300 * sh-tdep.c (sh_gdbarch_init): Update.
9301 * mips-tdep.c (mips_gdbarch_init): Update.
9302 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9303 * cris-tdep.c (cris_gdbarch_init): Update.
9304 * ia64-tdep.c (ia64_gdbarch_init): Update.
9305 * frame.c (frame_register): Update.
9306 (get_saved_register): Update.
9307 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9308
9309 2003-03-13 Andrew Cagney <cagney@redhat.com>
9310
9311 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9312 * gdbarch.h, gdbarch.c: Regenerate.
9313 * valops.c (hand_function_call): Update comment.
9314 * stack.c (return_command): Update comment.
9315 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9316 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9317 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9318 * x86-64-tdep.c (x86_64_init_abi): Update.
9319 * vax-tdep.c (vax_gdbarch_init): Update.
9320 * v850-tdep.c (v850_gdbarch_init): Update.
9321 * sparc-tdep.c (sparc_gdbarch_init): Update.
9322 * sh-tdep.c (sh_gdbarch_init): Update.
9323 * s390-tdep.c (s390_gdbarch_init): Update.
9324 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9325 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9326 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9327 * mips-tdep.c (mips_gdbarch_init): Update.
9328 * mcore-tdep.c (mcore_gdbarch_init): Update.
9329 * m68k-tdep.c (m68k_gdbarch_init): Update.
9330 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9331 * ia64-tdep.c (ia64_gdbarch_init): Update.
9332 * i386-tdep.c (i386_gdbarch_init): Update.
9333 * hppa-tdep.c (hppa_gdbarch_init): Update.
9334 * h8300-tdep.c (h8300_gdbarch_init): Update.
9335 * frv-tdep.c (frv_gdbarch_init): Update.
9336 * cris-tdep.c (cris_gdbarch_init): Update.
9337 * avr-tdep.c (avr_gdbarch_init): Update.
9338 * arm-tdep.c (arm_gdbarch_init): Update.
9339 * alpha-tdep.c (alpha_gdbarch_init): Update.
9340
9341 2003-03-13 Andrew Cagney <cagney@redhat.com>
9342
9343 * frame.c (legacy_frame_p): New function.
9344 (get_prev_frame): Use legacy_frame_p.
9345 * frame.h (legacy_frame_p): Declare.
9346
9347 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9348
9349 * MAINTAINERS (write after approval): Alphabetically
9350 listing corrected.
9351
9352 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9353
9354 * MAINTAINERS (write after approval): Add myself.
9355
9356 2003-03-12 Andrew Cagney <cagney@redhat.com>
9357
9358 * frame.c (get_prev_frame): Rename the frame parameter to
9359 "this_frame".
9360 (get_next_frame, legacy_get_prev_frame): Ditto.
9361
9362 2003-03-12 Andrew Cagney <cagney@redhat.com>
9363
9364 * frame.c (get_current_frame): Check target_has_registers before
9365 checking target_has_stack.
9366 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9367 instead of deprecated_selected_frame.
9368 * findvar.c (value_of_register): Pass "frame", not
9369 deprecated_selected_frame, to value_of_builtin_reg.
9370
9371 2003-03-12 Andrew Cagney <cagney@redhat.com>
9372
9373 * regcache.c (regcache_cooked_write_signed): New function.
9374 (regcache_cooked_write_unsigned): New function.
9375 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9376 (regcache_cooked_read_signed): Fix regnum in range assertion.
9377 * regcache.h (regcache_cooked_write_signed): Declare.
9378 (regcache_cooked_write_unsigned): Declare.
9379
9380 2003-03-12 Andrew Cagney <cagney@redhat.com>
9381
9382 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9383 * gdbarch.h, gdbarch.c: Re-generate.
9384 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9385 * x86-64-tdep.h: Update.
9386 * x86-64-tdep.c (x86_64_init_abi): Update.
9387 * v850-tdep.c (v850_gdbarch_init): Update.
9388 * sparc-tdep.c (sparc_gdbarch_init): Update.
9389 * sh-tdep.c (sh_gdbarch_init): Update.
9390 * s390-tdep.c (s390_gdbarch_init): Update.
9391 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9392 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9393 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9394 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9395 * mips-tdep.c (mips_gdbarch_init): Update.
9396 * mcore-tdep.c (mcore_gdbarch_init): Update.
9397 * m68k-tdep.c (m68k_gdbarch_init): Update.
9398 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9399 * ia64-tdep.c (ia64_gdbarch_init): Update.
9400 * i386-tdep.c (i386_gdbarch_init): Update.
9401 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9402 * hppa-tdep.c (hppa_gdbarch_init): Update.
9403 * h8300-tdep.c (h8300_gdbarch_init): Update.
9404 * frv-tdep.c (frv_gdbarch_init): Update.
9405 * cris-tdep.c (cris_gdbarch_init): Update.
9406 * avr-tdep.c (avr_gdbarch_init): Update.
9407 * arm-tdep.c (arm_gdbarch_init): Update.
9408 * alpha-tdep.c (alpha_gdbarch_init): Update.
9409 * sh-tdep.c (sh_init_extra_frame_info): Update.
9410 (sh64_init_extra_frame_info): Update.
9411 * ns32knbsd-nat.c (frame_num_args): Update.
9412 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9413 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9414 (xstormy16_frame_chain_valid): Update.
9415 * vax-tdep.c (vax_saved_pc_after_call): Update.
9416 * v850-tdep.c (v850_frame_chain): Update.
9417 (v850_pop_frame): Update.
9418 (v850_init_extra_frame_info): Update.
9419 * sparc-tdep.c (setup_arbitrary_frame): Update.
9420 * ns32k-tdep.c (umax_frame_num_args): Update.
9421 * s390-tdep.c (s390_pop_frame_regular): Update.
9422 * mn10300-tdep.c (mn10300_frame_chain): Update.
9423 (mn10300_pop_frame_regular): Update.
9424 (mn10300_init_extra_frame_info): Update.
9425 * mips-tdep.c (mips_init_frame_pc_first): Update.
9426 (mips_frame_chain): Update.
9427 (mips_pop_frame): Update.
9428 * mcore-tdep.c (mcore_frame_chain): Update.
9429 (mcore_pop_frame): Update.
9430 (mcore_init_extra_frame_info): Update.
9431 * arch-utils.c (init_frame_pc_default): Update.
9432 * m68k-tdep.c (isi_frame_num_args): Update.
9433 (delta68_frame_num_args): Update.
9434 (news_frame_num_args): Update.
9435 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9436 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9437 (alpha_frame_chain): Update.
9438 (alpha_pop_frame): Update.
9439 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9440 (hppa_init_extra_frame_info): Update.
9441 (hppa_frame_chain): Update.
9442 (hppa_frame_chain_valid): Update.
9443 * cris-tdep.c (cris_init_extra_frame_info): Update.
9444 * avr-tdep.c (avr_init_extra_frame_info): Update.
9445 * arm-tdep.c (arm_frame_chain_valid): Update.
9446 (arm_init_extra_frame_info): Update.
9447 (arm_pop_frame): Update.
9448 * frame.c (frame_pc_unwind): Update.
9449 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9450 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9451 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9452 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9453 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9454 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9455
9456 2003-03-12 Andrew Cagney <cagney@redhat.com>
9457
9458 Eliminate the need for POP_FRAME.
9459 * frame.c (do_frame_unwind_register): New function.
9460 (frame_pop): When no POP_FRAME, pop the frame using register
9461 unwind and a scratch regcache.
9462 (frame_saved_regs_pop): Delete function.
9463 (trad_frame_unwinder): Update.
9464 * d10v-tdep.c (d10v_frame_pop): Delete function.
9465 (d10v_frame_unwind): Update.
9466 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9467 (sentinel_frame_unwinder): Update.
9468 * dummy-frame.c (dummy_frame_pop): Delete function.
9469 (dummy_frame_unwind): Update.
9470 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9471 (struct frame_unwind): Update.
9472
9473 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9474
9475 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9476 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9477 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9478 Do range checks on register number obtained from debugging info.
9479 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9480 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9481 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9482 mapping function.
9483 (do_fp_register_row): Fix typo which caused double type to be
9484 used when attempting to unpack a float.
9485
9486 2003-03-11 J. Brobecker <brobecker@gnat.com>
9487
9488 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9489
9490 2003-03-11 Andrew Cagney <cagney@redhat.com>
9491
9492 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9493 frame. Problem found by Corinna Vinschen.
9494
9495 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9496
9497 * doublest.c (floatformat_from_length): Accept also
9498 the real size of 'long double' type.
9499
9500 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9501
9502 From Klee Dienes <kdienes@apple.com>:
9503 * breakpoint.c (bpstat_copy): Copy the command lines as well
9504 as the old value, to match what is freed in bpstat_clear.
9505
9506 2003-03-10 David Carlton <carlton@math.stanford.edu>
9507
9508 * minsyms.c (add_minsym_to_hash_table): Replace
9509 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9510 (compare_minimal_symbols, compact_minimal_symbols)
9511 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9512 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9513 of DEPRECATED_SYMBOL_MATCHES_NAME.
9514 (lookup_minimal_symbol_solib_trampoline): Ditto.
9515
9516 2003-03-10 Andrew Cagney <cagney@redhat.com>
9517
9518 * regcache.h (regcache_cooked_read_ftype): Define.
9519 (regcache_save, regcache_restore): Add a cooked_read parameter.
9520 * regcache.c (regcache_save, regcache_restore): Update.
9521 (do_cooked_read): New function.
9522 (regcache_cpy): Pass do_cooked_read to regcache_save and
9523 regcache_restore.
9524
9525 2003-03-10 Andrew Cagney <cagney@redhat.com>
9526
9527 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9528 * gdbarch.h, gdbarch.c: Re-generate.
9529 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9530 * x86-64-tdep.h: Update.
9531 * x86-64-tdep.c (x86_64_init_abi): Update.
9532 * v850-tdep.c (v850_gdbarch_init): Update.
9533 * sparc-tdep.c (sparc_gdbarch_init): Update.
9534 * sh-tdep.c (sh_gdbarch_init): Update.
9535 * s390-tdep.c (s390_gdbarch_init): Update.
9536 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9537 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9538 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9539 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9540 * mips-tdep.c (mips_gdbarch_init): Update.
9541 * mcore-tdep.c (mcore_gdbarch_init): Update.
9542 * m68k-tdep.c (m68k_gdbarch_init): Update.
9543 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9544 * ia64-tdep.c (ia64_gdbarch_init): Update.
9545 * i386-tdep.c (i386_gdbarch_init): Update.
9546 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9547 * hppa-tdep.c (hppa_gdbarch_init): Update.
9548 * h8300-tdep.c (h8300_gdbarch_init): Update.
9549 * frv-tdep.c (frv_gdbarch_init): Update.
9550 * cris-tdep.c (cris_gdbarch_init): Update.
9551 * avr-tdep.c (avr_gdbarch_init): Update.
9552 * arm-tdep.c (arm_gdbarch_init): Update.
9553 * alpha-tdep.c (alpha_gdbarch_init): Update.
9554 * sh-tdep.c (sh_init_extra_frame_info): Update.
9555 (sh64_init_extra_frame_info): Update.
9556 * ns32knbsd-nat.c (frame_num_args): Update.
9557 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9558 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9559 (xstormy16_frame_chain_valid): Update.
9560 * vax-tdep.c (vax_saved_pc_after_call): Update.
9561 * v850-tdep.c (v850_frame_chain): Update.
9562 (v850_pop_frame): Update.
9563 (v850_init_extra_frame_info): Update.
9564 * sparc-tdep.c (setup_arbitrary_frame): Update.
9565 * ns32k-tdep.c (umax_frame_num_args): Update.
9566 * s390-tdep.c (s390_pop_frame_regular): Update.
9567 * mn10300-tdep.c (mn10300_frame_chain): Update.
9568 (mn10300_pop_frame_regular): Update.
9569 (mn10300_init_extra_frame_info): Update.
9570 * mips-tdep.c (mips_init_frame_pc_first): Update.
9571 (mips_frame_chain): Update.
9572 (mips_pop_frame): Update.
9573 * mcore-tdep.c (mcore_frame_chain): Update.
9574 (mcore_pop_frame): Update.
9575 (mcore_init_extra_frame_info): Update.
9576 * arch-utils.c (init_frame_pc_default): Update.
9577 * m68k-tdep.c (isi_frame_num_args): Update.
9578 (delta68_frame_num_args): Update.
9579 (news_frame_num_args): Update.
9580 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9581 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9582 (alpha_frame_chain): Update.
9583 (alpha_pop_frame): Update.
9584 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9585 (hppa_init_extra_frame_info): Update.
9586 (hppa_frame_chain): Update.
9587 (hppa_frame_chain_valid): Update.
9588 * cris-tdep.c (cris_init_extra_frame_info): Update.
9589 * avr-tdep.c (avr_init_extra_frame_info): Update.
9590 * arm-tdep.c (arm_frame_chain_valid): Update.
9591 (arm_init_extra_frame_info): Update.
9592 (arm_pop_frame): Update.
9593 * frame.c (frame_pc_unwind): Update.
9594 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9595 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9596 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9597 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9598 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9599 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9600
9601 2003-03-10 Andrew Cagney <cagney@redhat.com>
9602
9603 * gdbarch.sh (gdbarch_unwind_pc): New method.
9604 * gdbarch.h, gdbarch.c: Regenerate.
9605 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9606 but use read_pc and FRAME_SAVED_PC as fall backs.
9607 (frame_saved_regs_pc_unwind): Delete function.
9608 (trad_frame_unwinder): Update.
9609 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9610 (struct frame_unwind): Update.
9611 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9612 (dummy_frame_unwind): Update.
9613 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9614 (sentinel_frame_unwinder): Update.
9615 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9616 (d10v_frame_unwind): Update.
9617 (d10v_unwind_pc): New function.
9618 (d10v_gdbarch_init): Set unwind_pc.
9619
9620 2003-03-10 Andrew Cagney <cagney@redhat.com>
9621
9622 * gdbarch.h: Re-generate.
9623
9624 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9625 PC.
9626 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9627 the PC register.
9628
9629 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9630
9631 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9632
9633 2003-03-08 Andrew Cagney <cagney@redhat.com>
9634
9635 * cli-out.c: Update copyright.
9636 (cli_out_data): Define typedef. Use instead of ui_out_data.
9637
9638 2003-03-08 Andrew Cagney <cagney@redhat.com>
9639
9640 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9641 the result.
9642
9643 2003-03-07 Andrew Cagney <cagney@redhat.com>
9644
9645 * gdbarch.sh: Don't generate two macro definitions when an
9646 undefined macro taking no arguments.
9647 * gdbarch.h: Regenerate.
9648
9649 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9650
9651 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9652 (x86_64_unwind_dummy_id): New functions.
9653 (x86_64_init_abi): Register these two new functions.
9654
9655 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9656
9657 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9658 (x86_64_skip_prologue): Move prologue detection to
9659 separate function.
9660 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9661
9662 2003-03-05 Andrew Cagney <cagney@redhat.com>
9663
9664 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9665 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9666 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9667 to use unwind_dummy_id when a dummy frame.
9668 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9669 predicate.
9670 * gdbarch.h, gdbarch.c: Regneerate.
9671
9672 2003-03-05 Andrew Cagney <cagney@redhat.com>
9673
9674 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9675 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9676 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9677 values.
9678
9679 2003-03-05 Andrew Cagney <cagney@redhat.com>
9680
9681 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9682 (struct d10v_unwind_cache): Delete field "frameless". Replace
9683 "next_addr" with "sp_offset". Add "r11_offset".
9684 (d10v_frame_unwind_cache): Update.
9685 (prologue_find_regs): Update. When "mv r11, sp", save the
9686 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9687 RN was saved in r11_offset.
9688
9689 2003-03-05 Andrew Cagney <cagney@redhat.com>
9690
9691 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9692 cached PC value in the next frame.
9693
9694 2003-03-05 Andrew Cagney <cagney@redhat.com>
9695
9696 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9697 "id_unwind_cache" with "id".
9698 (frame_id_unwind): Delete declaration.
9699 * frame.c (frame_id_unwind): Delete function.
9700 (get_prev_frame): Call the frame id unwind method directly. Store
9701 the returned next frame's ID value in NEXT_FRAME. Note that there
9702 is a problem with the wrong unwind ID being called with the wrong
9703 unwind cache.
9704
9705 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9706
9707 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9708
9709 2003-03-05 James Ingham <jingham@apple.com>
9710 Daniel Jacobowitz <drow@mvista.com>
9711
9712 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9713 (auto_cp_abi): New variable.
9714 (current_cp_abi, num_cp_abis): Make static.
9715 (CP_ABI_MAX): Define.
9716 (cp_abis): Turn into an array.
9717 (value_virtual_fn_field): Fix formatting.
9718 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9719 takes a pointer.
9720 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9721 (list_cp_abis, _initialize_cp_abi): New functions.
9722 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9723 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9724 switch_to_cp_abi. Update prototype for register_cp_abi.
9725 * Makefile.in (cp-abi.o): Update dependencies.
9726 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9727 instead of switch_to_cp_abi.
9728 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9729 register_cp_abi.
9730 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9731 register_cp_abi.
9732 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9733
9734 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9735
9736 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9737 * dwarf2loc.c: Include "regcache.h".
9738 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9739 register_size.
9740 * Makefile.in (dwarf2loc.o): Update dependencies.
9741
9742 2003-03-04 Theodore A. Roth <troth@openavr.org>
9743
9744 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9745 number of io registers reported by remote target is not a multiple of
9746 step.
9747
9748 2003-03-04 David Carlton <carlton@math.stanford.edu>
9749
9750 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9751 (lookup_symbol_aux_psymtabs): Update call to
9752 lookup_partial_symbol.
9753 (lookup_transparent_type, find_main_psymtab)
9754 (make_symbol_overload_list): Ditto.
9755
9756 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9757
9758 * MAINTAINERS (Write after approval): Update my email address.
9759
9760 2003-03-03 Andrew Cagney <cagney@redhat.com>
9761
9762 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9763 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9764 predicate. Replace MAX_REGISTER_RAW_SIZE.
9765 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9766 MAX_REGISTER_VIRTUAL_SIZE.
9767 * regcache.c (legacy_max_register_raw_size): New function.
9768 (legacy_max_register_virtual_size): New function.
9769 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9770 (MAX_REGISTER_RAW_SIZE): Define.
9771 (legacy_max_register_raw_size): Declare.
9772 (legacy_max_register_virtual_size): Declare.
9773 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9774 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9775 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9776 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9777 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9778 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9779 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9780 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9781 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9782 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9783 * vax-tdep.c (vax_gdbarch_init): Update.
9784 * v850-tdep.c (v850_gdbarch_init): Update.
9785 * sparc-tdep.c (sparc_gdbarch_init): Update.
9786 * sh-tdep.c (sh_gdbarch_init): Update.
9787 * s390-tdep.c (s390_gdbarch_init): Update.
9788 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9789 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9790 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9791 * mips-tdep.c (mips_gdbarch_init): Update.
9792 * mcore-tdep.c (mcore_gdbarch_init): Update.
9793 * m68k-tdep.c (m68k_gdbarch_init): Update.
9794 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9795 * ia64-tdep.c (ia64_gdbarch_init): Update.
9796 * i386-tdep.c (i386_gdbarch_init): Update.
9797 * hppa-tdep.c (hppa_gdbarch_init): Update.
9798 * h8300-tdep.c (h8300_gdbarch_init): Update.
9799 * frv-tdep.c (frv_gdbarch_init): Update.
9800 * cris-tdep.c (cris_gdbarch_init): Update.
9801 * avr-tdep.c (avr_gdbarch_init): Update.
9802 * arm-tdep.c (arm_gdbarch_init): Update.
9803 * alpha-tdep.c (alpha_gdbarch_init): Update.
9804 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9805 max_register_raw_size or max_register_virtual_size.
9806
9807 2003-03-03 David Carlton <carlton@math.stanford.edu>
9808
9809 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9810 SYMBOL_MATCHES_NAME, add comment.
9811 (SYMBOL_MATCHES_NATURAL_NAME): New.
9812 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9813 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9814 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9815 * symtab.c (lookup_partial_symbol): Use
9816 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9817 unhelpful comment.
9818 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9819 SYMBOL_MATCHES_NAME.
9820 Fix for PR c++/33.
9821
9822 2003-03-03 David Carlton <carlton@math.stanford.edu>
9823
9824 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9825 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9826 by regexp matching against SYMBOL_NATURAL_NAME.
9827
9828 2003-03-03 David Carlton <carlton@math.stanford.edu>
9829
9830 * linespec.c (find_method): Extract code into collect_methods.
9831 (collect_methods): New.
9832
9833 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9834
9835 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9836 get_frame_base.
9837
9838 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9839 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9840
9841 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9842
9843 * arch-utils.c (generic_register_byte): Fix to use the loop index
9844 and not regnum when summing the size of all registers up to regnum.
9845
9846 2003-03-01 Andrew Cagney <cagney@redhat.com>
9847
9848 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9849 FRAME_INIT_SAVED_REGS.
9850 * gdbarch.h, gdbarch.c: Regenerate.
9851 * stack.c (frame_info): Update.
9852 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9853 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9854 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9855 * ns32k-tdep.c (ns32k_pop_frame): Update.
9856 * mips-tdep.c (mips_pop_frame): Update.
9857 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9858 * ia64-tdep.c (ia64_frame_chain): Update.
9859 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9860 (ia64_frameless_function_invocation): Update.
9861 (ia64_init_extra_frame_info): Update.
9862 (ia64_pop_frame_regular): Update.
9863 * frame.h (struct frame_info): Update comment.
9864 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9865 * frame.c (frame_saved_regs_register_unwind): Update.
9866 (frame_saved_regs_register_unwind): Update.
9867 (deprecated_generic_get_saved_register): Update.
9868 * cris-tdep.c: Update comment.
9869 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9870 Rename macro.
9871 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9872 * x86-64-tdep.c (x86_64_init_abi): Update.
9873 * vax-tdep.c (vax_gdbarch_init): Update.
9874 * v850-tdep.c (v850_gdbarch_init): Update.
9875 * sparc-tdep.c (sparc_gdbarch_init): Update.
9876 * sh-tdep.c (sh_gdbarch_init): Update.
9877 * s390-tdep.c (s390_gdbarch_init): Update.
9878 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9879 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9880 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9881 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9882 * mips-tdep.c (mips_gdbarch_init): Update.
9883 * mcore-tdep.c (mcore_gdbarch_init): Update.
9884 * m68k-tdep.c (m68k_gdbarch_init): Update.
9885 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9886 * ia64-tdep.c (ia64_gdbarch_init): Update.
9887 * i386-tdep.c (i386_gdbarch_init): Update.
9888 * frv-tdep.c (frv_gdbarch_init): Update.
9889 * avr-tdep.c (avr_gdbarch_init): Update.
9890 * arm-tdep.c (arm_gdbarch_init): Update.
9891 * alpha-tdep.c (alpha_gdbarch_init): Update.
9892
9893 2003-03-01 Andrew Cagney <cagney@redhat.com>
9894
9895 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9896 option enum and switch. When no windows, set the interpreter to
9897 INTERP_CONSOLE.
9898
9899 2003-03-01 Andrew Cagney <cagney@redhat.com>
9900
9901 * main.c (captured_main): Replace magic option characters with an
9902 enum.
9903
9904 2003-03-01 Andrew Cagney <cagney@redhat.com>
9905
9906 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9907 INIT_EXTRA_FRAME_INFO.
9908 * gdbarch.h, gdbarch.c: Regenerate.
9909 * arm-tdep.c: Update comments.
9910 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9911 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9912 * frame.h, avr-tdep.c: Ditto.
9913 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9914 (create_new_frame, legacy_get_prev_frame): Ditto.
9915 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9916 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9917 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9918 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9919 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9920 * v850-tdep.c (v850_gdbarch_init): Ditto.
9921 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9922 * sh-tdep.c (sh_gdbarch_init): Ditto.
9923 * s390-tdep.c (s390_gdbarch_init): Ditto.
9924 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9925 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9926 * mips-tdep.c (mips_gdbarch_init): Ditto.
9927 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9928 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9929 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9930 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9931 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9932 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9933 * frv-tdep.c (frv_gdbarch_init): Ditto.
9934 * cris-tdep.c (cris_gdbarch_init): Ditto.
9935 * avr-tdep.c (avr_gdbarch_init): Ditto.
9936 * arm-tdep.c (arm_gdbarch_init): Ditto.
9937 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9938 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9939
9940 2003-03-01 Andrew Cagney <cagney@redhat.com>
9941
9942 * gdbarch.sh (register_type): New function with predicate.
9943 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9944 * gdbarch.h, gdbarch.c: Re-generate.
9945 * arch-utils.c (generic_register_byte): Use generic_register_size.
9946 (generic_register_size): When available, use
9947 gdbarch_register_type.
9948 * regcache.c (init_regcache_descr): When available, initialize the
9949 register type array using gdbarch_register_type. If the
9950 architecture supplies gdbarch_register_type, do not use the legacy
9951 regcache layout.
9952 * d10v-tdep.c (d10v_register_type): Replace
9953 d10v_register_virtual_type.
9954 (d10v_gdbarch_init): Set register_type instead of
9955 register_virtual_type.
9956
9957 2003-03-01 Andrew Cagney <cagney@redhat.com>
9958
9959 * Makefile.in (ax-gdb.o): Update dependencies.
9960 * ax-gdb.c: Include "regcache.h".
9961 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9962 * findvar.c (value_of_register): Ditto.
9963 * infcmd.c (default_print_registers_info): Ditto.
9964
9965 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9966
9967 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9968 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9969
9970 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9971
9972 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9973 of STREQ.
9974
9975 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9976
9977 * Makefile.in (dwarf2loc.o): Update dependencies.
9978 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9979 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9980 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9981 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9982 (locexpr_tracepoint_var_ref): New function.
9983 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9984
9985 2003-02-28 Andrew Cagney <cagney@redhat.com>
9986
9987 * regcache.c (register_size): New function.
9988 * regcache.h (register_size): Declare
9989 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9990 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9991
9992 2003-02-28 David Carlton <carlton@math.stanford.edu>
9993
9994 * linespec.c (decode_compound): Extract code into find_method.
9995 (find_method): New.
9996
9997 2003-02-28 J. Brobecker <brobecker@gnat.com>
9998
9999 * Makefile.in: Add rules to build and link in observer.o.
10000
10001 2003-02-27 J. Brobecker <brobecker@gnat.com>
10002
10003 * observer.c: Minor comments edits.
10004
10005 2003-02-27 J. Brobecker <brobecker@gnat.com>
10006
10007 * observer.h, observer.c: New file.
10008
10009 2003-02-27 Andrew Cagney <cagney@redhat.com>
10010
10011 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10012
10013 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10014
10015 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10016 (M6812_OP_STS_EXT): Likewise.
10017 (m6811_prologue): Use the above to recognize prologue.
10018 (m6812_prologue): Likewise.
10019
10020 2003-02-27 David Carlton <carlton@math.stanford.edu>
10021
10022 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10023 SYMBOL_PRINT_NAME.
10024 (compare_psymbols): Ditto.
10025 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10026
10027 2003-02-27 Michael Snyder <msnyder@redhat.com>
10028
10029 * f-lang.c (build_fortran_types): New function.
10030 (_initialize_f_language): Gdbarch-register built-in fortran types.
10031 * doublest.c (extract_floating): Fix warning text.
10032
10033 2003-02-27 Andrew Cagney <cagney@redhat.com>
10034
10035 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10036 predicate. Replaces PUSH_DUMMY_FRAME.
10037 * gdbarch.h, gdbarch.c: Regnerate.
10038 * valops.c (hand_function_call): Update. Call
10039 generic_push_dummy_frame directly.
10040 * vax-tdep.c (vax_gdbarch_init): Update.
10041 * sparc-tdep.c (sparc_gdbarch_init): Update.
10042 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10043 * m68k-tdep.c (m68k_gdbarch_init): Update.
10044 * hppa-tdep.c (hppa_gdbarch_init): Update.
10045 * alpha-tdep.c (alpha_gdbarch_init): Update.
10046 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10047 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10048 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10049 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10050 push_dummy_frame to generic_push_dummy_frame.
10051 * v850-tdep.c (v850_gdbarch_init): Ditto.
10052 * sh-tdep.c (sh_gdbarch_init): Ditto.
10053 * s390-tdep.c (s390_gdbarch_init): Ditto.
10054 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10055 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10056 * mips-tdep.c (mips_gdbarch_init): Ditto.
10057 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10058 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10059 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10060 * i386-tdep.c (i386_gdbarch_init): Ditto.
10061 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10062 * frv-tdep.c (frv_gdbarch_init): Ditto.
10063 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10064 * cris-tdep.c (cris_gdbarch_init): Ditto.
10065 * avr-tdep.c (avr_gdbarch_init): Ditto.
10066 * arm-tdep.c (arm_gdbarch_init): Ditto.
10067
10068 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10069
10070 * mips-tdep.c (show_mips_abi): New function.
10071 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10072 command ``show mips abi''.
10073
10074 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10075
10076 From Elena Zannoni <ezannoni@redhat.com>
10077 * dbxread.c (process_one_symbol): Only record line 0 if one or
10078 more sline entries have been seen for the function.
10079
10080 2003-02-26 Michael Chastain <mec@shout.net>
10081
10082 * configure: Regenerate with autoconf 000227.
10083
10084 2003-02-26 Michael Chastain <mec@shout.net>
10085
10086 Close PR build/660.
10087 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10088 for old libc5/glibc.
10089 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10090
10091 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10092
10093 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10094 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10095
10096 2003-02-26 Michael Chastain <mec@shout.net>
10097
10098 * configure.in: New variable HAVE_UINTPTR_T.
10099 * configure, config.in: Regenerated.
10100
10101 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10102
10103 Fix PR build/1097.
10104 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10105
10106 2003-02-25 Andrew Cagney <cagney@redhat.com>
10107
10108 * frame.c (get_prev_frame): Add comment on check for
10109 inside_entry_func. Only check for inside_entry_file when not a
10110 dummy and not a sentinel. Check that the new frame is not inner
10111 to the old frame.
10112
10113 2003-02-25 Andrew Cagney <cagney@redhat.com>
10114
10115 * frame.c (frame_debug): New variable.
10116 (_initialize_frame): Add "set/show debug frame" command.
10117 (get_prev_frame): When frame_debug, print reason why unwind
10118 failed.
10119
10120 2003-02-25 Michael Chastain <mec@shout.net>
10121
10122 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10123 to avoid uintptr_t definition problems.
10124
10125 2003-02-25 David Carlton <carlton@math.stanford.edu>
10126
10127 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10128 (SYMBOL_LINKAGE_NAME): Ditto.
10129 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10130 SYMBOL_LINKAGE_NAME.
10131 (struct general_symbol_info): Expand comment.
10132 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10133 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10134 (SYMBOL_MATCHES_REGEXP): Ditto.
10135 * symtab.c (symbol_natural_name): New function.
10136 * objfiles.h: Replace all uses of SYMBOL_NAME by
10137 DEPRECATED_SYMBOL_NAME.
10138 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10139 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10140 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10141 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10142 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10143 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10144 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10145 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10146 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10147 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10148 * ada-exp.y: Ditto.
10149 * ada-exp.y: Update copyright.
10150 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10151 * cp-valprint.c: Ditto.
10152
10153 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10154
10155 * infptrace.c (detach): Do not flag error if ptrace detach fails
10156 and errno is set to ESRCH.
10157
10158 2003-02-24 Andrew Cagney <cagney@redhat.com>
10159
10160 * infptrace.c (udot_info): Change type of udot_off to long. Use
10161 paddr when printing udot_off's value.
10162
10163 2003-02-24 David Carlton <carlton@math.stanford.edu>
10164
10165 * symtab.c (make_symbol_overload_list): Only read in partial
10166 symtabs containing a matching partial symbol.
10167
10168 2003-02-24 David Carlton <carlton@math.stanford.edu>
10169
10170 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10171 do the comparison, not strcmp.
10172 * symfile.c (compare_psymbols): Ditto.
10173 * defs.h: Declare strcmp_iw_ordered.
10174 * utils.c (strcmp_iw_ordered): New function.
10175
10176 2003-02-24 Jim Blandy <jimb@redhat.com>
10177
10178 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10179 support, shared libs): Remove my name from here, to better reflect
10180 reality.
10181
10182 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10183
10184 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10185 (target_ops): Add to_have_continuable_watchpoint.
10186 * target.c (update_current_target): Add INHERIT line for
10187 to_have_continuable_watchpoint.
10188 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10189 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10190 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10191 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10192
10193 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10194
10195 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10196 maintainership.
10197
10198 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10199
10200 * solib.c (solib_open): Call target defined search function after
10201 failing with solib-search-path.
10202 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10203 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10204
10205 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10206
10207 * MAINTAINERS: Add myself to Write After section.
10208
10209 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10210
10211 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10212
10213 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10214
10215 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10216 (m68hc11_add_reggroups): New function.
10217 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10218 (m68hc11_gdbarch_init): Install the reggroups.
10219 (_initialize_m68hc11_tdep): Initialize them.
10220
10221 2003-02-21 James E Wilson <wilson@tuliptree.org>
10222
10223 * MAINTAINERS: Update my email address.
10224
10225 2003-02-21 David Carlton <carlton@math.stanford.edu>
10226
10227 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10228
10229 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10230
10231 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10232 * symtab.h: Add opaque declarations of struct axs_value and
10233 struct agent_expr.
10234 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10235 (struct location_funcs): New type.
10236 (struct symbol): Add "loc" to aux_value.
10237 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10238 * dwarf2read.c: Include "dwarf2expr.h".
10239 (dwarf2_symbol_mark_computed): New function.
10240 (read_func_scope): Use it.
10241 (var_decode_location): New function.
10242 (new_symbol): Use it.
10243 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10244
10245 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10246 (dwarf2expr_h, dwarf2loc_h): New variables.
10247 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10248 (dwarf2expr.o, dwarf2loc.o): New rules.
10249 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10250 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10251 LOC_COMPUTED_ARG.
10252 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10253 * m2-exp.y (yylex): Likewise.
10254 * printcmd.c (address_info, print_frame_args): Likewise.
10255 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10256 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10257 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10258 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10259 * symtab.c (lookup_block_symbol): Likewise.
10260
10261 2003-02-20 Adam Fedor <fedor@gnu.org>
10262
10263 * symtab.h: Remove objc_specific struct
10264 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10265 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10266 Have language_objc use cplus_specific struct.
10267
10268 2003-02-20 Tom Tromey <tromey@redhat.com>
10269
10270 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10271 TYPE_NAME, when printing a String value. PR java/1075.
10272
10273 2003-02-20 Adam Fedor <fedor@gnu.org>
10274
10275 * objc-lang.h (find_methods): Remove declaration.
10276 * objc-lang.c (find_methods): Make static.
10277
10278 2003-02-20 Christopher Faylor <cgf@redhat.com>
10279
10280 * win32-nat.c (get_image_name): Check return value from
10281 ReadProcessMemory.
10282 (child_xfer_memory): Ditto.
10283
10284 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10285
10286 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10287 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10288 '${exec_prefix}' (in addition to the expansion thereof) as
10289 relocatable.
10290 * configure: Rebuilt.
10291
10292 2003-02-20 David Carlton <carlton@math.stanford.edu>
10293
10294 * symtab.c (search_symbols): Revert the search_symbols part of my
10295 2002-12-23 patch. Add comment.
10296
10297 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10298
10299 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10300 * dbxread.c (elfstab_build_psymtabs): Don't call
10301 install_minimal_symbols.
10302 (stabsect_build_psymtabs): Likewise.
10303 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10304 earlier.
10305 * somread.c (som_symfile_read): Call install_minimal_symbols
10306 and do_cleanups earlier.
10307 * nlmread.c (nlm_symfile_read): Likewise.
10308 * mdebugread.c (elfmdebug_build_psymtabs): Call
10309 install_minimal_symbols and make appropriate cleanups.
10310
10311 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10312
10313 * solib.c (reload_shared_libraries): New function.
10314 (_initialize_solib): Add callbacks for ``set solib-search-path''
10315 and ``set solib-absolute-prefix''.
10316
10317 2003-02-20 David Carlton <carlton@math.stanford.edu>
10318
10319 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10320 expand comment.
10321 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10322 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10323 * ada-typeprint.c (ada_typedef_print): Ditto.
10324 * ax-gdb.c (gen_var_ref): Ditto.
10325 * breakpoint.c (print_one_breakpoint): Ditto.
10326 * buildsym.c (finish_block): Ditto.
10327 * c-valprint.c (c_val_print): Ditto.
10328 * expprint.c (print_subexp): Ditto.
10329 * findvar.c (locate_var_value): Ditto.
10330 * infcmd.c (jump_command): Ditto.
10331 * linespec.c (decode_line_2, decode_compound): Ditto.
10332 * maint.c (maintenance_translate_address): Ditto.
10333 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10334 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10335 Ditto.
10336 * p-valprint.c (pascal_val_print): Ditto.
10337 * stabsread.c (define_symbol): Ditto.
10338 * stack.c (print_frame, frame_info, print_block_frame_locals)
10339 (print_frame_arg_vars, return_command): Ditto.
10340 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10341 * symmisc.c (print_symbol): Ditto.
10342 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10343 (compare_search_syms, print_symbol_info, print_msymbol_info)
10344 (rbreak_command): Ditto.
10345 * tracepoint.c (tracepoints_info): Ditto.
10346 * typeprint.c (typedef_print): Ditto.
10347 * valops.c (value_of_variable, hand_function_call): Ditto.
10348 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10349 * ada-typeprint.c: Update Copyright.
10350 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10351 * tracepoint.c, cli/cli-cmds.c: Ditto.
10352
10353 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10354
10355 * frame.c (generic_unwind_get_saved_register): Make non-static.
10356 * frame.h (generic_unwind_get_saved_register): Declare.
10357 * mips-tdep.c (read_next_frame_reg): Fetch register from
10358 current regcache when frame is NULL.
10359 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10360 that must be NULL.
10361 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10362 instead of frame_register_unwind().
10363
10364 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10365
10366 * remote-sim.c (gdbsim_insert_breakpoint)
10367 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10368 code.
10369
10370 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10371
10372 * remote.c (_initialize_remote): Add commands "set/show remote
10373 hardware-watchpoint-limit" and "set/show remote
10374 hardware-breakpoint-limit".
10375 (remote_hw_watchpoint_limit): Initialize to -1.
10376 (remote_hw_breakpoint_limit): Ditto.
10377 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10378
10379 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10380
10381 * coff-pe-read.c: New file - support reading of minimal symbols from a
10382 portable executable using the export table.
10383 * coff-pe-read.h: New file.
10384 * coffread.c: Include coff-pe-read.h.
10385 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10386 debugging symbols found.
10387 * Makefile.in (SFILES): Add coff-pe-read.o.
10388 (coff_pe_read_h): Define.
10389 (COMMON_OBS): Add coff-pe-read.o.
10390 (coffread.o): Add coff_pe_read_h dependency.
10391 (coff-pe-read.o): New target.
10392
10393 2003-02-19 David Carlton <carlton@math.stanford.edu>
10394
10395 * Makefile.in (SFILES): Add block.c.
10396 (block_h): New.
10397 (COMMON_OBS): Add block.o.
10398 (block.o): New.
10399 (x86-64-tdep.o): Add $(block_h).
10400 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10401 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10402 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10403 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10404 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10405 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10406 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10407 * value.h: Add opaque declaration for struct block.
10408 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10409 * ada-lang.h: Ditto.
10410 * x86-64-tdep.c: #include "block.h"
10411 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10412 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10413 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10414 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10415 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10416 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10417 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10418 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10419 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10420 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10421 * symtab.c (block_function): Ditto.
10422 (contained_in): Ditto.
10423 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10424 block.h. Add opaque declaration for struct block.
10425 * symtab.h: Move block_function and contained_in declarations to
10426 block.h. Add opaque declarations for struct block, struct
10427 blockvector.
10428 (struct block): Move to block.h.
10429 (struct blockvector): Ditto.
10430 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10431 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10432 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10433 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10434 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10435 Ditto.
10436 * block.c: New file.
10437 * block.h: New file.
10438
10439 2003-02-19 Theodore A. Roth <troth@openavr.org>
10440
10441 * avr-tdep.c (avr_extract_return_value): Remove function.
10442 (avr_store_return_value): Remove function.
10443 (avr_extract_struct_value_address): Remove function.
10444 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10445
10446 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10447
10448 * rs6000-tdep.c: Include "gdb_assert.h".
10449 (registers_e500): Add "acc" and "spefscr".
10450 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10451 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10452 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10453 really is "r0".
10454 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10455
10456 2003-02-18 Keith Seitz <keiths@redhat.com>
10457
10458 * Makefile.in: Add gdbtk-interps.c.
10459
10460 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10461
10462 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10463 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10464
10465 2003-02-18 Andrew Cagney <cagney@redhat.com>
10466
10467 * symtab.h (struct objfile): Add opaque declaration.
10468
10469 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10470
10471 From Jim Ingham <jingham@apple.com>:
10472 * dbxread.c (process_one_symbol): Use last_function_start rather
10473 than function_start_offset to find the real beginning of the
10474 current function. The latter is just the text section offset on
10475 some systems, the former is always the real function start.
10476
10477 2003-02-17 Andrew Cagney <cagney@redhat.com>
10478
10479 * configure.in: Revert ${target} != ${host}.
10480
10481 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10482
10483 * configure.in (Makefile): Use the test ${target} != ${host},
10484 instead of the absence of the "nm.h" file, to determine of the
10485 configuration non-native.
10486 * configure: Regenerate.
10487
10488 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10489
10490 From Brian Ford <ford@vss.fsi.com>
10491
10492 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10493 conditionalize tui_active test.
10494 (lookup_cmd_1): Ditto.
10495
10496 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10497
10498 * configure.in: Add check for _etext.
10499 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10500 available.
10501 * config.in, configure: regenerated.
10502
10503 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10504
10505 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10506
10507 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10508
10509 * main.c (tui_version): Delete variable.
10510 (captured_main): When --tui, set interpreter_p to "tui" instead of
10511 enabling tui_version.
10512 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10513 tui_version.
10514 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10515 * cli/cli-cmds.c (disassemble_command): Ditto.
10516 * defs.h (tui_version): Delete declaration.
10517 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10518 (tui-interp.o): Add rules.
10519 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10520
10521 2003-02-14 Christopher Faylor <cgf@redhat.com>
10522
10523 * win32-nat.c (register_loaded_dll): Correctly set address range for
10524 just-loaded dll.
10525
10526 2003-02-12 Jason Molenda (jmolenda@apple.com)
10527
10528 * symmisc.c (print_objfile_statistics): Include information about
10529 the number of psymtabs and symtabs in each object file.
10530
10531 2003-02-13 Keith R Seitz <keiths@redhat.com>
10532
10533 * main.h (struct captured_main_args): Add interpreter_p.
10534 * main.c (captured_main): Initialize interpreter_p from context.
10535 * gdb.c (main): Set interpreter_p argument.
10536 * Makefile.in (gdb.o): Add dependency for interps.h.
10537
10538 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10539
10540 * event-top.c (cli_command_loop): Delete declaration.
10541 (_initialize_event_loop): Delete function setting event_loop_hook.
10542 * event-top.h (cli_command_loop): Declare. Update copyright.
10543 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10544 * interps.c (current_interp_command_loop): When event_loop_p, call
10545 cli_command_loop.
10546
10547 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10548
10549 * interps.h (interp_command_loop_ftype): Change return type to
10550 void.
10551
10552 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10553
10554 * x86-64-tdep.c (x86_64_extract_return_value)
10555 (x86_64_store_return_value): Use regcache instead of regbuf.
10556 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10557 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10558
10559 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10560
10561 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10562 * aclocal.m4: Regenerate.
10563 * configure: Regenerate.
10564
10565 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10566 TCL_LD_SEARCH_FLAGS.
10567
10568 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10569
10570 * dwarf2cfi.c: Reindented.
10571
10572 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10573
10574 * interps.c (clear_interpreter_hooks): Convert function definition
10575 to ISO C.
10576
10577 2003-02-07 David Carlton <carlton@math.stanford.edu>
10578
10579 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10580
10581 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10582
10583 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10584 (struct type): ...to here.
10585 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10586 field.
10587 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10588 (replace_type): Set length on all type variants for a given type.
10589
10590 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10591
10592 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10593 <sys/stat.h>.
10594 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10595
10596 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10597
10598 * Makefile.in (symm-nat.o): Update dependencies.
10599 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10600 (lynx-nat.o, ia64-linux-nat.): Ditto.
10601 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10602 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10603 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10604
10605 * Makefile.in (inflow_h): Define.
10606 (procfs.o, inflow.o, procfs.o): Update dependencies.
10607 * inftarg.c (child_stop): Delete extern declaration of
10608 inferior_process_group. Include "inflow.h".
10609 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10610 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10611 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10612 (our_process_group, inferior_process_group): Extern declarations.
10613
10614 * procfs.c: Include "gdb_assert.h".
10615
10616 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10617 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10618 * jv-typeprint.c (java_type_print_base): Ditto.
10619 * typeprint.c (typedef_print): Eliminate STREQ.
10620 * cli/cli-script.c (define_command, define_command): Ditto.
10621 * main.c (captured_main): Ditto.
10622 * values.c (lookup_internalvar): Ditto.
10623 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10624 within `if' conditional.
10625 * linespec.c (decode_line_2): Ditto.
10626 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10627 (bfd_openw_with_cleanup): Ditto.
10628
10629 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10630
10631 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10632 legacy_extract_return_value and store_return_value to
10633 legacy_return_value.
10634
10635 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10636
10637 * win32-nat.c (get_relocated_section_addrs): New function. Find
10638 section load addresses for symbol handling in relocated DLLs.
10639 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10640
10641 2003-02-05 Fred Fish <fnf@intrinsity.com>
10642
10643 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10644 '=' and '!='.
10645 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10646 with '&' and '=='.
10647 (angel_RDI_info): Ditto.
10648 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10649 with '&' and '!='.
10650 (threads_continue_all_with_signals): Ditto.
10651
10652 2003-02-05 Jim Ingham <jingham@apple.com>
10653 Keith Seitz <keiths@redhat.com>
10654 Elena Zannoni <ezannoni@redhat.com>
10655 Andrew Cagney <ac131313@redhat.com>
10656
10657 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10658 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10659 (SUBDIR_MI_OBS): Add "mi-interp.o".
10660 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10661 (SFILES): Add "interps.c".
10662 (COMMON_OBS): Add "interps.o".
10663 (interps_h, mi_main_h): Define.
10664 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10665 (mi-main.o, main.o, event-top.o): Update dependencies.
10666 * cli/cli-interp.c: New file.
10667 * interps.h, interps.c: New files.
10668 * top.c: (gdb_init): Don't install the default interpreter, handed
10669 by captured_main.
10670 * main.c: Include "interps.h".
10671 (interpreter_p): Note that it should malloc'ed.
10672 (captured_command_loop): Call current_interp_command_loop.
10673 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10674 xfree and xstrdup when updating interpreter_p. Install the
10675 default interpreter. Add hack to stop mi1's copyright notice
10676 being encoded.
10677 * event-top.h (gdb_setup_readline): Declare.
10678 (gdb_disable_readline): Declare.
10679 * event-top.c: Include "interps.h".
10680 (display_gdb_prompt): Call current_interp_display_prompt_p.
10681 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10682 gdb_stdlog, and gdb_stdtarg.
10683 (_initialize_event_loop): Don't call gdb_setup_readline.
10684 * cli-out.c (cli_out_set_stream): New function.
10685 * cli-out.h (cli_out_set_stream): Declare.
10686
10687 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10688
10689 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10690 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10691 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10692 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10693 config/i386/i386v42mp.mt: Removed.
10694
10695 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10696
10697 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10698 GDB_OSABI_SOLARIS.
10699
10700 2003-02-05 Michael Chastain <mec@shout.net>
10701
10702 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10703 2.12.1 and earlier versions.
10704
10705 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10706
10707 Remove orphaned hosts, targets and files.
10708 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10709 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10710 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10711 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10712 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10713 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10714 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10715 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10716 * config/sparc/tm-sp64sim.h: Delete.
10717 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10718 hosts.
10719 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10720 mips*-dec-mach3* targets.
10721
10722 2003-02-04 Michael Chastain <mec@shout.net>
10723
10724 * NEWS: Fix typo: sepcifying -> specifying.
10725
10726 2003-02-04 Michael Chastain <mec@shout.net>
10727
10728 * dwarfread.c: Add documentation on the state of dwarf-1,
10729 looking towards obsoletion.
10730
10731 2003-02-03 Michael Chastain <mec@shout.net>
10732
10733 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10734 gdb/testsuite/gdb.c++/pr-1023.exp.
10735
10736 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10737
10738 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10739 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10740
10741 * utils.c (init_page_info): Delete reference to MPW in comments.
10742 * main.c (captured_main): Delete #ifdef MPW.
10743
10744 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10745
10746 * NEWS: Note that the m32r-*-elf* is obsolete.
10747 * monitor.c (monitor_expect): Obsolete reference to m32r.
10748 * configure.tgt: Mark m32r-*-elf* as obsolete.
10749 * MAINTAINERS: Mark m32k as obsolete.
10750 * m32r-rom.c: Obsolete file.
10751 * config/m32r/m32r.mt: Obsolete file.
10752 * config/m32r/tm-m32r.h: Obsolete file.
10753 * m32r-stub.c: Obsolete file.
10754 * m32r-tdep.c: Obsolete file.
10755
10756 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10757
10758 * NEWS: Mention that the z8k-zilog-none is obsolete.
10759 * MAINTAINERS: Mark z8k as obsolete.
10760 * configure.tgt: Obsolete the z8k-*-coff* target.
10761 * config/z8k/z8k.mt: Obsolete file.
10762 * config/z8k/tm-z8k.h: Obsolete file.
10763 * z8k-tdep.c: Obsolete file.
10764
10765 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10766
10767 * NEWS: Mention that the mn10200-elf is obsolete.
10768 * configure.tgt: Obsolete mn10200-*-* target.
10769 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10770 mention that the mn10200 is obsolete.
10771 * breakpoint.h: Ditto.
10772 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10773 * config/mn10200/mn10200.mt: Obsolete file.
10774 * config/mn10200/tm-mn10200.h: Obsolete file.
10775 * mn10200-tdep.c: Obsolete file.
10776
10777 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10778
10779 * MAINTAINERS: Mark h8500 as obsolete.
10780 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10781 * findvar.c (value_from_register): Ditto.
10782 * h8500-tdep.c: Mark file as obsolete.
10783 * config/h8500/h8500.mt: Ditto.
10784 * config/h8500/tm-h8500.h: Ditto.
10785 * NEWS: Mention that h8500 is obsolete.
10786
10787 2003-02-04 David Carlton <carlton@math.stanford.edu>
10788
10789 * objfiles.c (allocate_objfile): Always set name. Add comment at
10790 start of function.
10791 * jv-lang.c (get_dynamics_objfile): Add comment.
10792
10793 2003-02-04 David Carlton <carlton@math.stanford.edu>
10794
10795 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10796 * printcmd.c (build_address_symbolic): Replace uses of
10797 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10798 SYMBOL_NAME, and asm_demangle.
10799 Update copyright.
10800
10801 2003-02-04 David Carlton <carlton@math.stanford.edu>
10802
10803 * linespec.c (decode_compound): Extract code into
10804 lookup_prefix_sym.
10805 (lookup_prefix_sym): New function.
10806
10807 2003-02-04 David Carlton <carlton@math.stanford.edu>
10808
10809 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10810 FLOAT_COERCION_BADNESS.
10811 * gdbtypes.c (rank_one_type): Replace all uses of
10812 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10813
10814 2003-02-04 Jim Blandy <jimb@redhat.com>
10815
10816 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10817 section, let dwarf_macinfo_section point to it, not
10818 dwarf_loc_section.
10819
10820 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10821
10822 Pointed out by Anton Blanchard <anton@samba.org>.
10823 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10824 (ppc_linux_at_sigtramp_return_path): Use it.
10825
10826 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10827
10828 * defs.h (streq): Add prototype.
10829 * utils.c (streq): New function.
10830
10831 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10832 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10833 * mdebugread.c (new_symbol): Likewise.
10834 * stabsread.c (define_symbol): Likewise.
10835 * coffread.c (process_coff_symbol): Likewise.
10836 * dwarfread.c (new_symbol): Likewise.
10837
10838 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10839 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10840 here.
10841 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10842 SYMBOL_INIT_DEMANGLED_NAME.
10843 * objfiles.c: Include "hashtab.h".
10844 (allocate_objfile): Call htab_set_functions_ex for the
10845 demangled_names_hash.
10846 (free_objfile): Call htab_delete for the demangled_names_hash.
10847 * objfiles.h (struct htab): Add declaration.
10848 (struct objfile): Add demangled_names_hash.
10849 * symfile.c: Include "hashtab.h".
10850 (reread_symbols): Call htab_delete for the demangled_names_hash.
10851 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10852 SYMBOL_NAME in the bcache.
10853 * symtab.c: Include "hashtab.h". Update comments.
10854 (create_demangled_names_hash, symbol_set_names): New functions.
10855 (symbol_find_demangled_name): New function, broken out from
10856 symbol_init_demangled_names.
10857 (symbol_init_demangled_names): Use it.
10858 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10859 (SYMBOL_SET_NAMES): New macro.
10860 (symbol_set_names): Add prototype.
10861
10862 2003-02-03 Jim Blandy <jimb@redhat.com>
10863
10864 Use a single, consistent representation for an empty minimal
10865 symbol table in an objfile.
10866 * objfiles.c (terminate_minimal_symbol_table): New function.
10867 (allocate_objfile): Call it.
10868 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10869 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10870 non-NULL.
10871 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10872 objfile has minimal symbols, compare minimal_symbol_count to zero,
10873 instead of comparing msymbols with NULL.
10874 * objfiles.c (have_minimal_symbols): Same.
10875 * solib-sunos.c (solib_add_common_symbols): Call
10876 terminate_minimal_symbol_table.
10877 * symfile.c (reread_symbols): Same.
10878
10879 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10880
10881 * s390-tdep.c (s390_address_class_type_flags)
10882 (s390_address_class_type_flags_to_name)
10883 (s390_address_class_name_to_type_flags): New functions.
10884 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10885 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10886
10887 2003-02-03 Michael Snyder <msnyder@redhat.com>
10888
10889 * arm-tdep.c: Fix spell-o in comment.
10890
10891 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10892
10893 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10894 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10895 error messages to contain BFD filename.
10896
10897 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10898
10899 Fix PR gdb/742 gdb/743 gdb/877
10900 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10901 (do_mixed_source_and_assembly): Use
10902 make_cleanup_ui_out_tuple_begin_end and
10903 make_cleanup_ui_out_tuple_begin_end.
10904 (do_mixed_source_and_assembly): Ditto.
10905 * thread.c (do_captured_list_thread_ids): Ditto.
10906 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10907 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10908 ui_out_tuple_end): Delete prototypes.
10909 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10910 ui_out_list_end, ui_out_tuple_end): Delete.
10911
10912 From Kevin Buettner <kevinb@redhat.com>:
10913 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10914 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10915 (do_cleanup_table_end): New functions.
10916 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10917 Use cleanups to invoke_ui_out_tuple_end().
10918 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10919 * cli/cli-setshow.c (cmd_show_list): Use
10920 make_cleanup_ui_out_tuple_begin_end.
10921
10922 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10923
10924 * frame.c (frame_unwind_register): New function.
10925 (frame_unwind_unsigned_register): Use.
10926 (frame_unwind_signed_register): Use.
10927 (frame_read_register): New function.
10928 * frame.h (frame_unwind_register): Declare.
10929 (frame_read_register): Declare.
10930
10931 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10932 and frame_unwind_register instead of read_memory, write_register
10933 and deprecated_write_register_bytes.
10934
10935 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10936
10937 * frame.h: Note that namelen can be negative.
10938 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10939 NAME's length.
10940
10941 * NEWS: Mention that the d10v's `regs' command is deprecated.
10942 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10943 (d10v_print_registers_info): New function.
10944 (show_regs): Call d10v_print_registers_info.
10945 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10946
10947 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10948
10949 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10950 lost in the previous patch.
10951
10952 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10953
10954 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10955 * stack.c (print_frame_info_base): Output complete FRAME tuple
10956 for synthesized frames.
10957
10958 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10959
10960 * mips-nat.c (zerobuf): Delete.
10961 (fetch_inferior_registers): Alloc local zerobuf.
10962 (fetch_core_registers): Alloc local zerobuf.
10963 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10964 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10965 * thread-db.c (thread_db_store_registers): Ditto.
10966 * sh-tdep.c (sh_do_register): Ditto.
10967 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10968 * remote-sim.c (gdbsim_store_register): Ditto.
10969 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10970 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10971 * monitor.c (monitor_supply_register): Ditto.
10972 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10973 * mips-nat.c (fetch_inferior_registers): Ditto.
10974 * m68klinux-nat.c (fetch_register): Ditto.
10975 * lynx-nat.c (fetch_inferior_registers): Ditto.
10976 (fetch_inferior_registers): Ditto.
10977 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10978 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10979 (hpux_thread_store_registers): Ditto.
10980 * hppah-nat.c (fetch_register): Ditto.
10981 * hppab-nat.c (fetch_register): Ditto.
10982 * hppa-tdep.c (pa_register_look_aside): Ditto.
10983 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10984 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10985
10986 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10987
10988 * gdbarch.sh: Explictly specify all method levels. When a
10989 variable with an empty level, provide a non-multi-arch default.
10990 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10991 * gdbarch.h: Re-generate.
10992 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10993 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10994
10995 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10996
10997 * defs.h (host_pointer_to_address): Delete declaration.
10998 (address_to_host_pointer): Delete declaration.
10999 * utils.c (host_pointer_to_address): Delete function.
11000 (address_to_host_pointer): Delete function.
11001 * procfs.c (procfs_address_to_host_pointer): New function.
11002 * procfs.c (proc_set_watchpoint): Use.
11003 (procfs_can_use_hw_breakpoint): Update comments.
11004 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11005 (som_solib_add): Use.
11006 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11007 * hppa-tdep.c (unwind_command): Use.
11008
11009 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11010
11011 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11012 strlen d_name.
11013
11014 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11015 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11016 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11017 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11018 (define_symbol): Update.
11019 * symfile.c (generic_load): Remove references to nindy.
11020 * symtab.c: Remove references to nindy.
11021
11022 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11023
11024 * infcmd.c (print_float_info): Delete code conditional on
11025 FLOAT_INFO.
11026 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11027 * config/m68k/nm-apollo68b.h: Ditto.
11028 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11029 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11030 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11031
11032 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11033
11034 * config/i386/tm-i386os9k.h: Removed.
11035
11036 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11037 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11038 they're identical to i[3456]86-*-sysv* now.
11039 * config/i386/i386v32.mh: Removed.
11040 * config/i386/xm-i386v32.h: Removed.
11041 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11042
11043 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11044
11045 * config/i386/i386dgux.mh: Removed.
11046 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11047
11048 * configure.in: Fix typo.
11049 * configure: Regenerated.
11050
11051 2003-01-31 David Carlton <carlton@math.stanford.edu>
11052
11053 * dwarf2read.c (dwarf2_locate_sections): Set
11054 dwarf_ranges_section.
11055
11056 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11057
11058 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11059 * utils.c: Update comments documenting legitimate uses of PTR.
11060
11061 * utils.c: Re-indent.
11062
11063 * config/djgpp/fnchange.lst: Delete nindy files.
11064 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11065 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11066 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11067 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11068 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11069 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11070 * Makefile.in (init.c): Remove nindy references.
11071 (saber_gdb): Delete rule.
11072 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11073 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11074 and a68v-nat.c.
11075 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11076 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11077 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11078 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11079 nindy-share/stop.h.
11080 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11081 * saber.suppress: Delete file.
11082
11083 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11084
11085 * dbxread.c (stabs_data): New static variable.
11086 (fill_symbuf): Support an in-memory buffer for stabs data.
11087 (stabs_seek): New function.
11088 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11089 (read_ofile_symtab): Use stabs_seek.
11090 (elfstab_build_psymtabs): Take an asection* instead of
11091 an offset and size. Relocate the stabs data if necessary.
11092 Save the section* for dbx_psymtab_to_symtab.
11093 * dwarf2read.c: Add section variables for each debug section.
11094 (dwarf2_locate_sections): Fill them in.
11095 (dwarf2_read_section): Take an asection* argument.
11096 Relocate the section contents if necessary.
11097 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11098 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11099 it to dwarf2_read_section.
11100 (dwarf2_build_frame_info): Update callers.
11101 * elfread.c (elf_symfile_read): Update call to
11102 elfstab_build_psymtabs.
11103 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11104 (DBX_STAB_SECTION): New macro.
11105 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11106 * symfile.c (symfile_dummy_outputs): New function.
11107 (symfile_relocate_debug_section): New function.
11108 * symfile.h (symfile_relocate_debug_section): Add prototype.
11109
11110 2003-01-31 Richard Henderson <rth@redhat.com>
11111
11112 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11113 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11114 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11115 * alpha-tdep.c (alpha_register_name): Add "unique".
11116 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11117 (ALPHA_UNIQUE_REGNUM): New.
11118 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11119
11120 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11121
11122 * README: Remove reference to Ericsson 1800 monitor.
11123 * Makefile.in (remote-es.o): Delete rule.
11124 (ALLDEPFILES): Delete remote-es.c.
11125 * remote-es.c: Delete file.
11126 * config/m68k/es1800.mt: Delete file.
11127 * config/djgpp/fnchange.lst: Update.
11128 * configure.tgt: Delete m68*-ericsson-* target.
11129
11130 2003-01-31 Adam Fedor <fedor@gnu.org>
11131
11132 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11133 Remove duplicate/shadowing variable of same name.
11134
11135 2003-01-30 Jim Blandy <jimb@redhat.com>
11136
11137 * symfile.c (find_separate_debug_file): Assert that the objfile's
11138 directory name we compute ends with a slash, and then assume that
11139 that's so everywhere we use it.
11140
11141 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11142
11143 * valops.c (value_assign): Flush frame cache after stores to memory
11144 also.
11145
11146 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11147
11148 * Makefile.in (mon960-rom.o): Delete rule.
11149 * mon960-rom.c: Delete file.
11150
11151 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11152
11153 * d10v-tdep.c: Include "frame-unwind.h".
11154 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11155 list.
11156 (next_addr, uses_frame): Delete.
11157 (struct d10v_unwind_cache): Define.
11158 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11159 Use info instead of next_addr and uses_frame globals.
11160 (d10v_frame_init_saved_regs): Delete function.
11161 (d10v_init_extra_frame_info): Delete function.
11162 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11163 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11164 init_frame_pc or frame_saved_pc.
11165 (d10v_pop_frame): Delete function.
11166 (do_d10v_pop_frame): Delete function.
11167 (d10v_frame_chain): Delete function.
11168 (d10v_frame_chain_valid): Delete function.
11169 (d10v_frame_pc_unwind): New function.
11170 (d10v_frame_id_unwind): New function.
11171 (saved_regs_unwinder): New function.
11172 (d10v_frame_register_unwind): New function.
11173 (d10v_frame_pop): New function.
11174 (d10v_frame_unwind): New variable.
11175 (d10v_frame_p): New function.
11176 (d10v_frame_saved_pc): Delete function.
11177 * Makefile.in (d10v-tdep.o): Update dependencies.
11178
11179 2003-01-30 J. Brobecker <brobecker@gnat.com>
11180
11181 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11182 causing some regressions due to a change in the default value
11183 for this macro.
11184
11185 2003-01-29 Richard Henderson <rth@redhat.com>
11186 Elena Zannoni <ezannoni@redhat.com>
11187 Daniel Jacobowitz <drow@mvista.com>
11188
11189 Fix PR gdb/961.
11190 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11191 variables.
11192 (RANGES_SECTION): New.
11193 (dwarf_ranges_buffer): New variable.
11194 (struct comp_unit_head): Add member "die".
11195 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11196 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11197 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11198 (dwarf2_locate_sections): Likewise.
11199 (dwarf2_build_psymtabs): Read .debug_ranges.
11200 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11201 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11202 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11203 Look for DW_AT_ranges and return the bounding box.
11204
11205 2003-01-29 Brian Ford <ford@vss.fsi.com>
11206
11207 * win32-nat.c (cygwin_pid): Removed as unused.
11208 (child_attach): Try fall back to Cygwin pid.
11209
11210 2003-01-29 Jim Blandy <jimb@redhat.com>
11211
11212 * objfiles.h (struct objfile): Doc fix.
11213
11214 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11215
11216 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11217 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11218 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11219 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11220 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11221 (FRAME_SAVED_PC): Change to a function with predicate.
11222 * gdbarch.h, gdbarch.c: Re-generate.
11223
11224 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11225
11226 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11227
11228 * complaints.c (complain): Delete function.
11229 * complaints.h (struct deprecated_complaint): Delete definition.
11230 (complain): Delete declaration.
11231
11232 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11233
11234 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11235 dummy frames.
11236
11237 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11238
11239 * sentinel-frame.h, sentinel-frame.c: New files.
11240 * Makefile.in (frame.o): Update dependencies.
11241 (SFILES): Add sentinel-frame.c.
11242 (sentinel_frame_h): Define.
11243 (COMMON_OBS): Add sentinel-frame.o.
11244 (sentinel-frame.o): Specify dependencies.
11245 * frame.c: Include "sentinel-frame.h".
11246 (frame_register_unwind): Rewrite assuming that there is always a a
11247 ->next frame.
11248 (frame_register, generic_unwind_get_saved_register): Ditto.
11249 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11250 (create_sentinel_frame, unwind_to_current_frame): New functions.
11251 (get_current_frame): Rewrite using create_sentinel_frame and
11252 unwind_to_current_frame. When possible, always create a frame.
11253 (create_new_frame): Set next to the sentinel frame.
11254 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11255 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11256 ID cache when necessary.
11257 (frame_saved_regs_id_unwind): Use frame_relative_level.
11258 (deprecated_generic_get_saved_register): Use frame_relative_level,
11259 get_frame_saved_regs, get_frame_pc, get_frame_base and
11260 get_next_frame.
11261 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11262 frame_register.
11263
11264 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11265
11266 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11267
11268 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11269
11270 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11271 (maintenance_set_profile_cmd): Use error () instead of warning ().
11272
11273 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11274
11275 * configure.in: Check that -pg works if using --enable-profiling.
11276 Check for monstartup and _mcleanup regardless of --enable-profiling.
11277 * maint.c: Check for monstartup and _mcleanup before using them.
11278 * config.in: Regenerated.
11279 * configure: Regenerated.
11280
11281 2003-01-24 Nick Clifton <nickc@redhat.com>
11282
11283 * Add sh2e support:
11284
11285 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11286
11287 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11288 (sh2e_show_regs): New.
11289 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11290 * config/sh/tm-sh.h: Added sh2e to comments.
11291
11292 2003-01-23 Jim Blandy <jimb@redhat.com>
11293
11294 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11295 symbols found)" message here; we haven't checked for a separate
11296 debug info file yet, so we don't know yet.
11297 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11298 we've looked everywhere. Also, there's no need to print a special
11299 message when we're loading the separate debug info file: the one
11300 symbol_file_add prints is fine.
11301
11302 2003-01-23 Alexander Larsson <alexl@redhat.com>
11303 Jim Blandy <jimb@redhat.com>
11304
11305 Add support for executables whose debug info has been separated
11306 out into a separate file, leaving only a link behind.
11307 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11308 and separate_debug_objfile_backlink.
11309 (put_objfile_before): New declaration.
11310 * symfile.c: #include "filenames.h".
11311 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11312 debug info in a separate file, read that, too. Save the addrs
11313 argument, so we can use it again to read the separated debug info;
11314 syms_from_objfile modifies the table we pass it.
11315 (reread_symbols): After re-reading an objfile, call
11316 reread_separate_symbols to refresh its separate debug info
11317 objfile, if it has one.
11318 (reread_separate_symbols, find_separate_debug_file,
11319 get_debug_link_info, separate_debug_file_exists): New functions.
11320 (debug_file_directory): New global var.
11321 (_initialize_symfile): Initialize debug_file_directory, and
11322 provide the new `set debug-file-directory' command to let the user
11323 change it.
11324 * objfiles.c (free_objfile): If this objfile has its debug info in
11325 a separate objfile, free that one too. If this is itself a
11326 separate debug info objfile, clear our parent's backlink.
11327 (put_objfile_before): New function.
11328 * utils.c (gnu_debuglink_crc32): New function.
11329 * defs.h (gnu_debuglink_crc32): New declaration.
11330 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11331 * configure.in: Handle --with-separate-debug-dir config option.
11332 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11333 * acconfig.h (DEBUGDIR): New macro.
11334 * configure, aclocal.m4, config.in: Regenerated.
11335
11336 2003-01-22 Jim Blandy <jimb@redhat.com>
11337
11338 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11339 like the old symbol_file_add, but taking new arguments: you can
11340 now pass in either a `struct section_addr_info' list to say where
11341 each section is loaded, or a `struct section_offsets' table. Pass
11342 these new arguments through to syms_from_objfile as appropriate.
11343 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11344 with the appropriate quiescent values for the new arguments.
11345
11346 * symfile.c: #include "gdb_assert.h".
11347 (syms_from_objfile): Add the ability to pass in a section offset
11348 table directly, as an alternative to the section_addr_info table.
11349 Document arguments better.
11350 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11351 * symfile.h (syms_from_objfile): Update declaration.
11352 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11353 syms_from_objfile.
11354 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11355
11356 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11357
11358 Original patch by Tom Tromey <tromey@cygnus.com> and
11359 Jason Molenda <jmolenda@apple.com>.
11360 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11361 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11362 * NEWS: Mention profiling.
11363 * configure.in (--enable-gdbtk): Fix typo.
11364 (--enable-profiling): New. Set PROFILE_CFLAGS.
11365 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11366 Fill in function.
11367 (profiling_state): New variable.
11368 (mcleanup_wrapper): New function.
11369 (_initialize_maint): Remove NOTYET, fix call to
11370 add_setshow_boolean_cmd for "maint set profile".
11371 * configure: Regenerated.
11372
11373 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11374
11375 * Makefile.in (install-gdbtk): Install PNG images too.
11376
11377 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11378
11379 * exec.c (text_start): Delete global variable.
11380 (exec_file_attach): Make text_start local to the function.
11381 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11382 * valops.c (hand_function_call): Delete code that handles
11383 BEFORE_TEXT_END and AFTER_TEXT_END.
11384 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11385 of CALL_DUMMY_LOCATION.
11386 * gdbarch.c: Regenerate.
11387 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11388 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11389 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11390 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11391 (text_end): Delete extern declaration.
11392
11393 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11394
11395 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11396 * blockframe.c (backtrace_below_main): Move to "frame.c".
11397 (frame_chain_valid): Delete check for backtrace_below_main.
11398 (_initialize_blockframe): Delete initialization, move ``set
11399 backtrace-below-main'' command to "frame.c".
11400 (do_flush_frames_sfunc): Delete function.
11401 * frame.c: Include "command.h" and "gdbcmd.h".
11402 (frame_type_from_pc): New function.
11403 (create_new_frame): Use frame_type_from_pc.
11404 (legacy_get_prev_frame): New function.
11405 (get_prev_frame): Rewrite. When an old style frame, call
11406 legacy_get_prev_frame. Otherwize, unwind the PC first.
11407 (_initialize_frame): Add ``set backtrace-below-main'' command.
11408 * Makefile.in (frame.o): Update dependencies.
11409
11410 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11411
11412 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11413 DEPRECATED_REGISTERS_INFO.
11414
11415 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11416
11417 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11418 Maintainers'. Update `Various Maintainers'.
11419
11420 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11421
11422 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11423 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11424 Suppress actual parameters when `-'.
11425 * gdbarch.h, gdbarch.c: Regenerate.
11426
11427 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11428
11429 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11430 code handling dummy frames.
11431
11432 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11433
11434 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11435 (struct frame_unwind): Add field pop.
11436 * frame.h (frame_pop): Declare.
11437 * frame.c (frame_saved_regs_pop): New function.
11438 (trad_frame_unwinder): Add frame_saved_regs_pop.
11439 (frame_pop): New function.
11440 * dummy-frame.c (dummy_frame_pop): New function.
11441 (discard_innermost_dummy): New function.
11442 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11443 (dummy_frame_unwind): Add dummy_frame_pop.
11444 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11445 * valops.c (hand_function_call): Ditto.
11446 * stack.c (return_command): Ditto.
11447
11448 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11449
11450 * cris-tdep.c: Fix function declaration indentation.
11451 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11452 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11453 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11454 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11455 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11456 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11457
11458 2003-01-18 Michael Chastain <mec@shout.net>
11459
11460 * README (Unpacking and Installation -- quick overview):
11461 Warn against ".../gdb-5.3/gdb/configure".
11462
11463 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11464
11465 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11466 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11467 (struct frame_unwind): Declare opaque.
11468 (dummy_frame_p): Declare function.
11469 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11470 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11471 * dummy-frame.c: Include "frame-unwind.h".
11472 (dummy_frame_p): New function.
11473 (dummy_frame_unwind): New variable.
11474 * frame.c: Include "frame-unwind.h".
11475 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11476 to use the new unwind field.
11477 (set_unwind_by_pc): Delete function.
11478 (create_new_frame, get_prev_frame): Set unwind field using
11479 frame_unwind_find_by_pc.
11480 (trad_frame_unwind, trad_frame_unwinder): New variables.
11481 * frame.h (trad_frame_unwind): Declare variable.
11482 (frame_id_unwind_ftype): Delete declaration.
11483 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11484 (struct frame_unwind): Declare opaque.
11485 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11486 register_unwind with a single unwind pointer.
11487 * frame-unwind.h, frame-unwind.c: New files.
11488 * Makefile.in (SFILES): Add frame-unwind.c.
11489 (frame_unwind_h): Define.
11490 (COMMON_OBS): Add frame-unwind.o.
11491 (frame-unwind.o): Specify dependencies.
11492 (frame.o, dummy-frame.o): Update dependencies.
11493
11494 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11495
11496 * ada-valprint.c: Eliminate PTR.
11497 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11498 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11499 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11500 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11501 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11502 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11503 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11504
11505 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11506
11507 * main.c (captured_main): Don't use PTR.
11508 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11509 * gdbtypes.c (lookup_primitive_typename): Ditto.
11510 (lookup_struct_elt_type): Ditto.
11511 * f-valprint.c (info_common_command): Ditto.
11512 (list_all_visible_commons): Ditto.
11513 * jv-typeprint.c (java_type_print_base): Ditto.
11514
11515 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11516 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11517 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11518 i386-interix-nat.c and i386-interix-tdep.c. Rename
11519 m68klinux-nat.c and m68klinux-tdep.c. Rename
11520 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11521 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11522 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11523 * main.c (captured_main): Use xfree, not free.
11524
11525 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11526
11527 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11528 ID back using a parameter.
11529 * frame.c (frame_id_unwind): Update call.
11530 (frame_saved_regs_id_unwind): Update.
11531 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11532 * dummy-frame.h (struct frame_id): Add opaque declaration.
11533 (dummy_frame_id_unwind): Update declaration.
11534
11535 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11536
11537 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11538
11539 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11540
11541 * MAINTAINERS (Stephen P. Smith): Updated email address.
11542
11543 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11544
11545 Fix PR gdb/898
11546 * breakpoint.c (until_break_command): Add new argument. Use it to
11547 decide whether to stop only at the current frame or not.
11548 * breakpoint.h (until_break_command): Update prototype.
11549 * infcmd.c (until_command): Add new argument to until_break_command
11550 call.
11551 (advance_command): New function.
11552 (_initialize_infcmd): Update help string for 'until' command.
11553 Add new 'advance' command.
11554
11555 2003-01-14 David Carlton <carlton@math.stanford.edu>
11556
11557 * linespec.c (decode_line_1): Normalize comments.
11558 (set_flags): Ditto.
11559 (locate_first_half): Ditto.
11560 (decode_compound): Ditto.
11561 (symtab_from_filename): Ditto.
11562 (decode_all_digits): Ditto.
11563 (decode_dollar): Ditto.
11564 (find_methods): Ditto.
11565 (find_toplevel_char): Ditto.
11566
11567 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11568
11569 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11570 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11571 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11572 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11573 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11574 * language.c, language.h, m32r-tdep.c: Update copyright.
11575 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11576 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11577 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11578 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11579 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11580 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11581
11582 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11583
11584 * stabsread.h (process_later, resolve_cfront_continuation):
11585 Obsolete.
11586 Update copyright years.
11587 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11588 Update copyright year.
11589 * dbxread.c(struct cont_elem): Obsolete.
11590 (process_later, process_now): Obsolete functions.
11591 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11592 Update copyright year.
11593 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11594 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11595 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11596 (parse_partial_symbols): Obsolete cfront support.
11597 * stabsread.c
11598 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11599 macros.
11600 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11601 read_cfront_baseclasses, read_cfront_member_functions,
11602 resolve_cfront_continuation,read_cfront_static_fields,
11603 copy_cfront_struct_fields): Obsolete functions.
11604 (define_symbol, read_one_struct_field): Obsolete cfront support.
11605 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11606 Update Copyright year.
11607
11608 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11609
11610 * stack.c (print_frame_info, print_stack_frame_base_stub,
11611 print_stack_frame_base, show_and_print_stack_frame_stub,
11612 show_and_print_stack_frame, print_only_stack_frame_stub,
11613 print_only_stack_frame): Delete functions.
11614 (print_stack_frame_stub): Call print_frame_info instead of
11615 print_frame_info_base.
11616 (print_frame_info_base): Rename to print_frame_info.
11617 (backtrace_command_1): Call print_frame_info, instead of
11618 print_frame_info_base.
11619 (current_frame_command): Call print_stack_frame, instead of
11620 print_only_stack_frame.
11621 (frame_command): Call print_stack_frame, instead of
11622 show_and_print_stack_frame.
11623 (up_command): Ditto.
11624 (down_command): Ditto.
11625 * frame.h (print_only_stack_frame): Delete prototype.
11626 * infrun.c (normal_stop): Call print_stack_frame, instead of
11627 show_and_print_stack_frame.
11628 * thread.c (info_threads_command): Call print_stack_frame, instead
11629 of print_only_stack_frame.
11630
11631 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11632
11633 * README (Graphical interface to GDB): Update URL. Point at
11634 gdb/links/.
11635
11636 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11637 version match.
11638
11639 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11640
11641 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11642 lines.
11643
11644 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11645
11646 * thread-db.c (attach_thread): Prototype.
11647 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11648 thread information (ti), and valid flags (th_valid, ti_valid).
11649 (attach_thread): Move target_pid_to_str call to after the thread
11650 is added to GDB's list. Initialize the cache.
11651 (thread_get_info_callback, thread_db_map_id2thr)
11652 (thread_db_get_info): New functions.
11653 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11654 (thread_db_store_registers, thread_db_thread_alive)
11655 (thread_db_get_thread_local_address): Use them.
11656 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11657 of calling error() for threads in unknown state.
11658
11659 (clear_lwpid_callback): New function.
11660 (thread_db_resume): Use it to clear the cache.
11661
11662 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11663
11664 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11665 (resume_callback): Remove dead code.
11666
11667 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11668
11669 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11670 predicate.
11671 * gdbarch.h, gdbarch.c: Regenerate.
11672 * stack.c (frame_info): Only initialize the saved registers when
11673 FRAME_INIT_SAVED_REGS_P.
11674 * frame.c (frame_saved_regs_register_unwind): Assert
11675 FRAME_INIT_SAVED_REGS_P.
11676 (deprecated_generic_get_saved_register): Ditto.
11677
11678 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11679
11680 * source.c (openp): Squelch warning about "filename".
11681
11682 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11683
11684 * source.c (openp): If the file does not exist don't necessarily
11685 search the path.
11686
11687 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11688
11689 Fix PR gdb/872.
11690 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11691 (integer_types_same_name_p): New function.
11692 (rank_one_type): Use it.
11693 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11694
11695 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11696
11697 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11698 variables.
11699 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11700 * configure.in: Add --with-sysroot.
11701 * configure: Regenerated.
11702 * main.c (gdb_sysroot): New variable.
11703 (captured_main): Initialize gdb_sysroot.
11704 * defs.h (gdb_sysroot): New extern declaration.
11705 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11706
11707 2003-01-12 Michael Chastain <mec@shout.net>
11708
11709 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11710
11711 2003-01-12 Michael Chastain <mec@shout.net>
11712
11713 * top.c (print_gdb_version): Bump copyright year to 2003.
11714
11715 2003-01-12 David Carlton <carlton@bactrian.org>
11716
11717 * linespec.c (symtab_from_filename): Rename variable 's' to
11718 'file_symtab'.
11719
11720 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11721
11722 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11723 dummy frame.
11724 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11725
11726 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11727
11728 * d10v-tdep.c: Include "gdb_assert.h".
11729 (d10v_store_return_value): Rewrite to match current interface.
11730 (d10v_extract_struct_value_address): Ditto.
11731 (d10v_extract_return_value): Ditto.
11732 (d10v_gdbarch_init): Set store_restore_value,
11733 extract_struct_value_address and extract_return_value.
11734
11735 2003-01-12 J. Brobecker <brobecker@gnat.com>
11736
11737 * hpread.c (set_namestring): New procedure replacing the
11738 SET_NAMESTRING macro.
11739 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11740 by calls to set_namestring.
11741
11742 2003-01-11 J. Brobecker <brobecker@gnat.com>
11743
11744 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11745 a compilation warning.
11746 (hpread_process_one_debug_symbol): Likewise.
11747
11748 2003-01-10 David Carlton <carlton@math.stanford.edu>
11749
11750 * linespec.c (decode_line_1): Rename variable 's' to
11751 'file_symtab'.
11752 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11753 (decode_dollar): Ditto.
11754 (decode_variable): Ditto.
11755 (symbol_found): Ditto.
11756
11757 2003-01-09 Michael Chastain <mec@shout.net>
11758
11759 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11760
11761 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11762
11763 * win32-nat.c (set_process_privilege): New function.
11764 (child_attach): Call set_process_privilege() to enable the
11765 SE_DEBUG_NAME user privilege if available in process token.
11766
11767 2003-01-10 J. Brobecker <brobecker@gnat.com>
11768
11769 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11770 compilation error in the previous revision.
11771
11772 2003-01-09 David Carlton <carlton@math.stanford.edu>
11773
11774 * linespec.c: Update copyright.
11775
11776 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11777
11778 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11779 than inferior_ptid.
11780 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11781
11782 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11783
11784 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11785 Update comments.
11786 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11787 (frame_saved_regs_zalloc): Update.
11788 (frame_saved_regs_register_unwind): Update.
11789 (create_new_frame): Update.
11790 (get_prev_frame): Update.
11791 (frame_extra_info_zalloc): Update.
11792 (deprecated_get_frame_saved_regs): Update.
11793 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11794 * cris-tdep.c: Update comment.
11795
11796 * somsolib.h: Fix function indentation.
11797 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11798 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11799 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11800 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11801 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11802
11803 * infrun.c (follow_fork): Use ISO C definition.
11804 * expprint.c (print_subexp): Use xfree instead of free.
11805 * charset.c: Include "gdb_string.h" instead of <string.h>.
11806 (register_iconv_charsets): Use ISO C definition.
11807 (host_charset, target_charset): Ditto.
11808 * Makefile.in (charset.o): Update dependencies.
11809 (mi-cmd-env.o): Update dependencies.
11810
11811 2003-01-08 Andrew Cagney <cagney@redhat.com>
11812
11813 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11814 get_frame_base.
11815
11816 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11817
11818 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11819 build directories. Save edited gdb output in Mbuild.log. If a
11820 build fails, remove any final GDB executable.
11821
11822 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11823
11824 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11825 replacing hex constants with function names and stripping leading
11826 file name directory prefixes.
11827
11828 2003-01-08 Andrew Cagney <cagney@redhat.com>
11829
11830 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11831 get_frame_base.
11832
11833 2003-01-08 David Carlton <carlton@math.stanford.edu>
11834
11835 * linespec.c (decode_line_1): Move code into decode_variable.
11836 (decode_variable): New function.
11837
11838 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11839
11840 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11841
11842 2003-01-08 Andrew Cagney <cagney@redhat.com>
11843
11844 * cris-tdep.c (cris_frame_init_saved_regs): Use
11845 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11846 saved_regs buffer.
11847 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11848 (sh64_nofp_frame_init_saved_regs): Ditto.
11849 (sh_fp_frame_init_saved_regs): Ditto.
11850 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11851 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11852 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11853 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11854
11855 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11856
11857 * minsyms.c (lookup_minimal_symbol): Update comment.
11858 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11859 (lookup_minimal_symbol_solib_trampoline): Likewise.
11860
11861 2003-01-08 Andrew Cagney <cagney@redhat.com>
11862
11863 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11864 frame_relative_level.
11865
11866 * alpha-tdep.c: Use get_frame_extra_info.
11867 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11868 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11869 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11870 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11871
11872 * alpha-tdep.c: Use get_next_frame.
11873 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11874 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11875 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11876 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11877 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11878 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11879 * xstormy16-tdep.c: Ditto.
11880
11881 2003-01-07 Andrew Cagney <cagney@redhat.com>
11882
11883 * alpha-tdep.c: Use get_frame_base.
11884 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11885 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11886 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11887 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11888 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11889 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11890 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11891 * config/sparc/tm-sparc.h: Ditto.
11892
11893 2003-01-07 Andrew Cagney <cagney@redhat.com>
11894
11895 * frame.c (deprecated_get_frame_context): New function.
11896 (deprecated_set_frame_context): New function.
11897 * frame.h (deprecated_get_frame_context): Declare.
11898 (deprecated_set_frame_context): Declare.
11899 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11900 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11901
11902 2003-01-07 Andrew Cagney <cagney@redhat.com>
11903
11904 * frame.c (deprecated_set_frame_next_hack): New function.
11905 (deprecated_set_frame_prev_hack): New function.
11906 * frame.h (deprecated_set_frame_next_hack): Declare.
11907 (deprecated_set_frame_prev_hack): Declare.
11908 * mcore-tdep.c (analyze_dummy_frame): Use
11909 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11910 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11911
11912 2003-01-07 David Carlton <carlton@math.stanford.edu>
11913
11914 * linespec.c (decode_line_1): Move code into decode_dollar.
11915 (decode_dollar): New function.
11916
11917 2003-01-07 Andrew Cagney <cagney@redhat.com>
11918
11919 * arm-tdep.c (arm_init_extra_frame_info): Use
11920 deprecated_update_frame_base_hack.
11921 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11922 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11923 (fix_frame_pointer): Ditto.
11924 (mn10300_analyze_prologue): Ditto.
11925
11926 2003-01-07 Andrew Cagney <cagney@redhat.com>
11927
11928 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11929 extra_info using frame_extra_info_zalloc.
11930 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11931 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11932 (sh64_init_extra_frame_info): Ditto.
11933 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11934 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11935 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11936 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11937 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11938 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11939 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11940 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11941 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11942 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11943 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11944 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11945
11946 * mn10300-tdep.c (analyze_dummy_frame): Use
11947 deprecated_set_frame_extra_info_hack.
11948 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11949
11950 2003-01-07 J. Brobecker <brobecker@gnat.com>
11951
11952 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11953 class is not scText. These do not define "real" procedures.
11954 (parse_partial_symbols): Likewise.
11955
11956 2003-01-06 Michael Snyder <msnyder@redhat.com>
11957
11958 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11959
11960 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11961
11962 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11963 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11964 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11965 deprecated_frame_xmalloc_with_cleanup.
11966 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11967 deprecated_frame_xmalloc.
11968 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11969 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11970
11971 2003-01-06 Andrew Cagney <cagney@redhat.com>
11972
11973 * x86-64-linux-tdep.c: Include "osabi.h".
11974 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11975
11976 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11977
11978 2003-01-06 Andrew Cagney <cagney@redhat.com>
11979
11980 * MAINTAINERS (Target Instruction Set Architectures): Update
11981 arm-elf. Can be built with -Werror, has been multiarched.
11982
11983 * value.h (unpack_long): Make buffer parameter constant.
11984 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11985 * scm-lang.h (scm_parse): Ditto.
11986 * defs.h (extract_typed_address, extract_address): Ditto.
11987 (extract_long_unsigned_integer): Ditto.
11988 * inferior.h (unsigned_pointer_to_address): Ditto.
11989 (signed_pointer_to_address): Ditto.
11990 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11991 * gdbarch.h, gdbarch.c: Regenerate.
11992 * findvar.c (extract_long_unsigned_integer): Update.
11993 (extract_address): Update.
11994 (extract_typed_address): Update.
11995 (unsigned_pointer_to_address): Update.
11996 * values.c (unpack_long): Update.
11997 (unpack_double): Update.
11998 (unpack_pointer): Update.
11999 (unpack_field_as_long): Update.
12000 * d10v-tdep.c (d10v_pointer_to_address): Update.
12001 * avr-tdep.c (avr_pointer_to_address): Update.
12002 * scm-lang.c (scm_unpack): Update.
12003 * findvar.c (signed_pointer_to_address): Update.
12004
12005 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12006
12007 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12008 since it is in i386-tdep.c.
12009
12010 2003-01-06 J. Brobecker <brobecker@gnat.com>
12011
12012 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12013 failure introduced in the previous change.
12014
12015 2003-01-05 Michael Chastain <mec@shout.net>
12016
12017 * README: Remove references to deleted remote-*.c files:
12018 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12019 remote-nrom.c, remote-os9k.c, remote-udi.c.
12020
12021 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12022
12023 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12024 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12025 i386_get_longjmp_target.
12026
12027 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12028
12029 * arm-tdep.c (prologue_cache): Change to a pointer.
12030 (_initialize_arm_tdep): Allocate prologue_cache.
12031 (check_prologue_cache): Update.
12032 (save_prologue_cache): Update.
12033 (arm_gdbarch_init): Update.
12034
12035 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12036
12037 * stabsread.c (update_method_name_from_physname): Call complaint()
12038 instead of error.
12039
12040 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12041
12042 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12043 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12044 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12045
12046 * blockframe.c: Include "gdbcmd.h" and "command.h".
12047 (backtrace_below_main): New variable.
12048 (file_frame_chain_valid, func_frame_chain_valid)
12049 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12050 (generic_func_frame_chain_valid): Remove functions.
12051 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12052 (_initialize_blockframe): New function.
12053 * Makefile.in (blockframe.o): Update dependencies.
12054 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12055 comment. Call frame_chain_valid ().
12056 * frame.h: Remove old prototypes. Add prototype for
12057 frame_chain_valid and update comments to match.
12058 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12059 Remove old comment.
12060 * gdbarch.h: Regenerated.
12061 * gdbarch.c: Regenerated.
12062
12063 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12064 set_gdbarch_frame_chain_valid.
12065 * avr-tdep.c (avr_gdbarch_init): Likewise.
12066 * cris-tdep.c (cris_gdbarch_init): Likewise.
12067 * frv-tdep.c (frv_gdbarch_init): Likewise.
12068 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12069 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12070 (i386_nw_init_abi): Likewise.
12071 (i386_gdbarch_init): Likewise.
12072 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12073 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12074 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12075 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12076 * mips-tdep.c (mips_gdbarch_init): Likewise.
12077 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12078 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12079 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12080 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12081 * s390-tdep.c (s390_gdbarch_init): Likewise.
12082 * sh-tdep.c (sh_gdbarch_init): Likewise.
12083 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12084 * v850-tdep.c (v850_gdbarch_init): Likewise.
12085 * vax-tdep.c (vax_gdbarch_init): Likewise.
12086 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12087
12088 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12089 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12090 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12091 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12092 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12093 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12094 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12095 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12096
12097 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12098
12099 * Makefile.in (acconfig_h): Remove incorrect macro.
12100 (config_h): Define.
12101 (osabi.o): Update dependencies.
12102 * configure.tgt: Set gdb_osabi based on target triplet.
12103 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12104 * configure: Regenerated.
12105 * config.in: Regenerated.
12106 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12107 (GDB_OSABI_DEFAULT): Define if not already defined.
12108 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12109 (set_osabi_string): New variables.
12110 (gdbarch_register_osabi): Add new OS ABI to
12111 gdb_osabi_available_names.
12112 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12113 (set_osabi, show_osabi): New functions.
12114 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12115
12116 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12117
12118 * arch-utils.c (gdbarch_info_init): Set osabi to
12119 GDB_OSABI_UNINITIALIZED.
12120 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12121 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12122 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12123 * gdbarch.c: Regenerated.
12124 * gdbarch.h: Regenerated.
12125 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12126 there's no BFD.
12127 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12128 * osabi.h (enum gdb_osabi): Move to defs.h.
12129 (gdbarch_init_osabi): Update prototype.
12130 * defs.h (enum gdb_osabi): Moved here.
12131 * Makefile.in: Update dependencies.
12132
12133 * alpha-tdep.h: Don't include "osabi.h".
12134 (struct gdbarch_tdep): Remove osabi member.
12135 * alpha-tdep.c: Include "osabi.h".
12136 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12137 iterate over arches. Update call to gdbarch_init_osabi.
12138 (alpha_dump_tdep): Don't dump osabi.
12139 * alpha-linux-tdep.c: Include "osabi.h".
12140 * alpha-osf1-tdep.c: Include "osabi.h".
12141 * alphafbsd-tdep.c: Include "osabi.h".
12142 * alphanbsd-tdep.c: Include "osabi.h".
12143
12144 * arm-tdep.h: Don't include "osabi.h".
12145 (struct gdbarch_tdep): Remove osabi member.
12146 * arm-tdep.c: Include "osabi.h".
12147 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12148 iterate over arches. Update call to gdbarch_init_osabi.
12149 (arm_dump_tdep): Don't dump osabi.
12150 * arm-linux-tdep.c: Include "osabi.h".
12151 * armnbsd-tdep.c: Include "osabi.h".
12152
12153 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12154 Update call to gdbarch_init_osabi.
12155
12156 * i386-tdep.h: Don't include "osabi.h".
12157 (struct gdbarch_tdep): Remove osabi member.
12158 * i386-tdep.c: Include "osabi.h".
12159 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12160 iterate over arches. Update call to gdbarch_init_osabi.
12161 (i386_dump_tdep): Don't dump osabi.
12162 * i386-linux-tdep.c: Include "osabi.h".
12163 * i386-sol2-tdep.c: Include "osabi.h".
12164 * i386bsd-tdep.c: Include "osabi.h".
12165 * i386gnu-tdep.c: Include "osabi.h".
12166 * i386ly-tdep.c: Include "osabi.h".
12167 * i386nbsd-tdep.c: Include "osabi.h".
12168 * i386obsd-tdep.c: Include "osabi.h".
12169
12170 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12171 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12172 check osabi when iterating over arches. Update call to
12173 gdbarch_init_osabi.
12174 (mips_dump_tdep): Don't dump osabi.
12175
12176 * ns32k-tdep.h: Don't include "osabi.h".
12177 (struct gdbarch_tdep): Remove.
12178 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12179 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12180 allocate tdep. Update call to gdbarch_init_osabi.
12181 (ns32k_dump_tdep): Remove.
12182 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12183 * ns32knbsd-tdep.c: Include "osabi.h".
12184
12185 * ppc-tdep.h: Don't include "osabi.h".
12186 (struct gdbarch_tdep): Remove osabi member.
12187 * rs6000-tdep.c: Include "osabi.h".
12188 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12189 osabi when iterating over arches. Update call to
12190 gdbarch_init_osabi.
12191 (rs6000_dump_tdep): Don't dump osabi.
12192 * ppc-linux-tdep.c: Include "osabi.h".
12193 * ppcnbsd-tdep.c: Include "osabi.h".
12194
12195 * sh-tdep.h: Don't include "osabi.h".
12196 (struct gdbarch_tdep): Remove osabi member.
12197 * sh-tdep.c: Include "osabi.h".
12198 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12199 iterate over arches. Update call to gdbarch_init_osabi.
12200 (sh_dump_tdep): Don't dump osabi.
12201 * shnbsd-tdep.c: Include "osabi.h".
12202
12203 * sparc-tdep.c: Include "osabi.h".
12204 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12205 iterate over arches. Update call to gdbarch_init_osabi.
12206 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12207 tdep structure.
12208
12209 * vax-tdep.h: Don't include "osabi.h".
12210 (struct gdbarch_tdep): Remove.
12211 * vax-tdep.c: Include "osabi.h".
12212 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12213 iterate over arches. Don't allocate tdep. Update call
12214 to gdbarch_init_osabi.
12215 (vax_dump_tdep): Remove.
12216 (_initialize_vax_tdep): Update call to gdbarch_register.
12217
12218 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12219
12220 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12221 entirely.
12222 (breakpoint_re_set_one): Don't fetch the value for a disabled
12223 watchpoint.
12224
12225 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12226
12227 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12228 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12229 (COERCE_FLOAT_TO_DOUBLE): Remove.
12230 * gdbarch.c: Regenerate.
12231 * gdbarch.h: Regenerate.
12232 * Makefile.in: Remove value_h from gdbarch_h.
12233 * valops.c (coerce_float_to_double): New variable.
12234 (default_coerce_float_to_double): Remove.
12235 (standard_coerce_float_to_double): Remove.
12236 (value_arg_coerce): Use coerce_float_to_double.
12237 (_initialize_valops): Add "set coerce-float-to-double".
12238 * value.h (default_coerce_float_to_double): Remove prototype.
12239 (standard_coerce_float_to_double): Remove prototype.
12240
12241 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12242 prototyped.
12243 * mdebugread.c (parse_symbol): Likewise.
12244 * stabsread.c (define_symbol): Mark all functions as prototyped.
12245
12246 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12247 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12248 set_gdbarch_coerce_float_to_double.
12249 * arm-tdep.c (arm_gdbarch_init): Likewise.
12250 * frv-tdep.c (frv_gdbarch_init): Likewise.
12251 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12252 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12253 * mips-tdep.c (mips_gdbarch_init): Likewise.
12254 (mips_coerce_float_to_double): Remove.
12255 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12256 (rs6000_coerce_float_to_double): Remove.
12257 * s390-tdep.c (s390_gdbarch_init): Likewise.
12258 * sh-tdep.c (sh_gdbarch_init): Likewise.
12259 (sh_coerce_float_to_double): Remove.
12260 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12261 (sparc_coerce_float_to_double): Remove.
12262 * v850-tdep.c (v850_gdbarch_init): Likewise.
12263 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12264 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12265 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12266 (hppa_coerce_float_to_double): Remove prototype.
12267 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12268
12269 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12270
12271 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12272
12273 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12274
12275 Suggested by Stewart Brown <sb24@avaya.com>:
12276 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12277 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12278 (c_type_print_varspec_suffix): Likewise.
12279
12280 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12281
12282 * configure.in: Don't set and AC_SUBST SUBDIRS.
12283 * configure: Regenerated.
12284
12285 * configure.in: Remove code dealing with shared libraries.
12286 * Makefile.in: Remove HLDFLAGS and HLDENV.
12287 * configure: Regenerated.
12288
12289 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12290
12291 * frame.c (deprecated_frame_xmalloc): New function.
12292 (deprecated_set_frame_saved_regs_hack): New function.
12293 (deprecated_set_frame_extra_info_hack): New function.
12294 * frame.h (deprecated_frame_xmalloc): Declare.
12295 (deprecated_set_frame_saved_regs_hack): Declare.
12296 (deprecated_set_frame_extra_info_hack): Declare.
12297
12298 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12299
12300 * configure.in: Move code that provides the --enable-gdbtk option
12301 right after the code that handles the --enable-tui option, and
12302 polish it somewhat.
12303 * configure: Regenerated.
12304
12305 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12306 AC_CHECK_FUNCS and remove the old check for pread64.
12307 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12308 * acconfig.h (_GNU_SOURCE): Add.
12309 (HAVE_PREAD64): Remove.
12310 * configure, aclocal.m4, config.in: Regenerated.
12311
12312 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12313
12314 * alpha-tdep.c: Use get_frame_saved_regs.
12315 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12316 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12317 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12318 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12319 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12320
12321 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12322
12323 * configure.in: Remove all use of the SUBDIRS variable; add
12324 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12325 code providing the --enable-multi-ice option, and move it right in
12326 front of the code that checks whether gdbserver is supported.
12327 Polish that too.
12328 * configure: Regenerated.
12329 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12330 @SUBDIRS@.
12331
12332 2003-01-03 Andrew Cagney <cagney@redhat.com>
12333
12334 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12335 * avr-tdep.c, cris-tdep.c: Ditto.
12336 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12337 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12338
12339 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12340
12341 * configure.in: Remove --enable-netrom option.
12342 * configure: Regenerated.
12343
12344 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12345
12346 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12347 declaration for `struct re_pattern_buffer' instead.
12348 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12349
12350 2003-01-03 J. Brobecker <brobecker@gnat.com>
12351
12352 * mdebugread.c (parse_symbol): Count until the stEnd matching
12353 the structure name.
12354
12355 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12356
12357 * configure.in: Remove --with-cpu option.
12358 subscripts. Remove evil changequotes here.
12359 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12360 * config.in, configure: Regenerated.
12361
12362 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12363 * configure.in: Cleanup section that sources GDB and BFD configure
12364 subscripts. Remove evil changequotes here.
12365 * config.in, configure: Regenerated.
12366
12367 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12368
12369 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12370 frame accessor methods.
12371 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12372 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12373 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12374 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12375 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12376 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12377 * z8k-tdep.c: Ditto.
12378
12379 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12380
12381 * configure.in: Remove UI_OUT configuration code.
12382 * ada-lang.c: Update assuming UI_OUT is always true.
12383 * Makefile.in (UIOUT_CFLAGS): Remove.
12384 * configure: Regenerated.
12385 * TODO: Remove blurb about elimination of -DUI_OUT.
12386
12387 * configure.in: Move code that provides the --enable-gdbcli,
12388 --enable-gdbmi options right before the code that handles the
12389 --enable-tui option. Polish a bit.
12390 * configure: Regenerated.
12391
12392 * configure.in: Rewrite check for GNU regex and the
12393 --without-included regex option, and move it into the "Checks for
12394 library functions" section. This makes us use the system regex
12395 again by default on systems with version 2 of the GNU C library.
12396 This was apparently broken.
12397 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12398 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12399 * config.in, configure: Regenerated.
12400
12401 * configure.in: Move code that provides the --enable-tui option
12402 before the "Checks for libraries" section. Polish the code
12403 somewhat and set need_curses to yes if we build the TUI. Rewrite
12404 code that looks for a library providing termcap functionality to
12405 match more closely what's done in the Readline library, and move
12406 it into to the "Checks for libraries" section.
12407 * configure: Regenerated.
12408 * Makefile.in (TERMCAP): Remove variable.
12409 * config/i386/go32.mh (TERMCAP): Remove variable.
12410
12411 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12412
12413 * MAINTAINERS: Mention gdb_mbuild.sh.
12414 * gdb_mbuild.sh: Rewrite.
12415
12416 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12417
12418 * configure.in: Fix typo in last change.
12419 * config.in, configure: Regenerated.
12420
12421 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12422
12423 * valarith.c (value_binop): Delete obsolete code and comments.
12424 * configure.host: Ditto.
12425 * buildsym.h (make_blockvector): Ditto.
12426 * buildsym.c (make_blockvector): Ditto.
12427 * defs.h (enum language): Ditto.
12428 (chill_demangle): Ditto.
12429 * elfread.c (elf_symtab_read): Ditto.
12430 * dwarfread.c (CHILL_PRODUCER): Ditto.
12431 (set_cu_language): Ditto.
12432 (handle_producer): Ditto.
12433 * expprint.c (print_subexp): Ditto.
12434 * gdbtypes.c (chill_varying_type): Ditto.
12435 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12436 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12437 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12438 (chill_varying_type): Ditto.
12439 * language.h (_LANG_chill): Ditto.
12440 * language.c (binop_result_type, integral_type): Ditto.
12441 (character_type, string_type, structured_type): Ditto.
12442 (lang_bool_type, binop_type_check): Ditto.
12443 * stabsread.h (os9k_stabs): Ditto.
12444 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12445 (define_symbol, read_type, read_struct_fields): Ditto.
12446 (read_array_type, read_enum_type, read_huge_number): Ditto.
12447 (read_range_type, start_stabs): Ditto.
12448 * symfile.c (init_filename_language_table): Ditto.
12449 (add_psymbol_with_dem_name_to_list): Ditto.
12450 * symtab.c (symbol_init_language_specific): Ditto.
12451 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12452 * symtab.h (struct general_symbol_info): Ditto.
12453 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12454 * typeprint.c (typedef_print): Ditto.
12455 * utils.c (fprintf_symbol_filtered): Ditto.
12456 * valops.c (value_cast, search_struct_field, value_slice): Delete
12457 obsolete code.
12458 (varying_to_slice): Delete function.
12459 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12460 (varying_to_slice): Delete declaration.
12461 * MAINTAINERS: Update.
12462
12463 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12464
12465 * configure.in: Reorganize "Checks for library functions section"
12466 a bit. Remove check for `btowc' and `isascii' functions.
12467 * configure: Regenerated.
12468
12469 * acconfig.h (_MSE_INT_H): Remove.
12470 * configure.in: Create "Checks for header files" section, and move
12471 appropriate tests there. Don't check for objlist.h, wchar.h,
12472 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12473 misdetection fix. Also add "Checks for types", "Checks for
12474 compiler characteristics" and "Checks for library functions"
12475 sections.
12476 * config.in, configure: Regenerated.
12477
12478 * configure.in: Create "Checks for programs" section, and move
12479 appropriate tests there.
12480
12481 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12482
12483 * configure.in: Create "Checks for libraries" section, and move
12484 appropriate tests there. Cleanup check for wctype in libw. Use
12485 AC_SEARCH_LIBS to see whether we need libsocket.
12486 * configure: Regenerated.
12487
12488 For older changes see ChangeLog-2002
12489 \f
12490 Local Variables:
12491 mode: change-log
12492 left-margin: 8
12493 fill-column: 74
12494 version-control: never
12495 End: