* regcache.h (get_regcache_arch): New prototype.
[binutils-gdb.git] / gdb / ChangeLog
1 2003-09-27 Mark Kettenis <kettenis@gnu.org>
2
3 * regcache.h (get_regcache_arch): New prototype.
4 * regcache.c (get_regcache_arch): New function.
5
6 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
7 whitespace.
8
9 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
10 Initialize using ARRAY_SIZE.
11
12 2003-09-27 Andrew Cagney <cagney@redhat.com>
13
14 * arch-utils.c (deprecated_init_frame_pc_default): Rename
15 "init_frame_pc_default".
16 * arch-utils.h (deprecated_init_frame_pc_default): Update.
17 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
18 * vax-tdep.c (vax_gdbarch_init): Update.
19 * v850-tdep.c (v850_gdbarch_init): Update.
20 * sh64-tdep.c (sh64_gdbarch_init): Update.
21 * s390-tdep.c (s390_gdbarch_init): Update.
22 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
23 * mcore-tdep.c (mcore_gdbarch_init): Update.
24 * h8300-tdep.c (h8300_gdbarch_init): Update.
25 * cris-tdep.c (cris_gdbarch_init): Update.
26 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
27
28 2003-09-26 Mark Kettenis <kettenis@gnu.org>
29
30 * regset.h: New file.
31 * Makefile.in (regset_h): Add.
32
33 2003-09-25 Andrew Cagney <cagney@redhat.com>
34
35 * frame.h (deprecated_frame_saved_regs): Rename
36 get_frame_saved_regs.
37 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
38 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
39 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
40 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
41 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
42
43 2003-09-25 Andrew Cagney <cagney@redhat.com>
44
45 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
46 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
47 and Java.
48 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
49 arm*-*-* do not use the new frame code.
50
51 2003-09-25 David Carlton <carlton@kealia.com>
52
53 * c-exp.y: Remove 'register' declarations.
54 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
55
56 2003-09-25 David Carlton <carlton@kealia.com>
57
58 * c-exp.y: Include cp-support.h. Add qualified_type.
59 (yylex): Delete nested type hack; add comments.
60 * cp-namespace.c (cp_lookup_nested_type): New function.
61 * cp-support.h: Declare cp_lookup_nested_type.
62 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
63 instead of value_struct_elt_for_reference.
64 * valops.c: Include cp-support.h.
65 (value_aggregate_elt): New function.
66 (value_namespace_elt): Ditto.
67 (value_struct_elt_for_reference): Make static.
68 * value.h: Delete declaration of value_struct_elt_for_reference;
69 add declaration for value_aggregate_elt.
70 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
71 (valops.o): Ditto.
72
73 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
74
75 * stack.c: Include "reggroups.h".
76 (frame_info): Only display registers in all_reggroup.
77 * Makefile.in (stack.o): Update dependencies.
78
79 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
80
81 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
82 "add ip, sp #n" in the prologue.
83 (arm_scan_prologue): Ditto.
84
85 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
86
87 * MAINTAINERS (write after approval): Add myself.
88
89 2003-09-25 Andreas Schwab <schwab@suse.de>
90
91 * m68k-tdep.c: Include "dwarf2-frame.h".
92 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
93 * Makefile.in (m68k-tdep.o): Update dependencies.
94
95 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
96
97 * sh-tdep.c (struct frame_extra_info): Remove.
98 (struct sh_frame_cache): New structure.
99 (GET_SOURCE_REG): New macro extracting source register of an opcode.
100 (GET_TARGET_REG): Ditto but target register.
101 (GET_PUSHED_REG): Remove.
102 (IS_MOV_ARG_TO_REG): New macro.
103 (IS_MOV_ARG_TO_IND_R14): New macro.
104 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
105 (IS_MOVW_PCREL_TO_REG): New macro.
106 (IS_MOVL_PCREL_TO_REG): New macro.
107 (IS_SUB_REG_FROM_SP): New macro.
108 (IS_ARG_MOV): Remove.
109 (IS_MOV_TO_R14): Remove.
110 (IS_RESTORE_FP): New macro.
111 (IS_RTS): New macro.
112 (IS_LDS): New macro.
113 (IS_MOV_FP_SP): New macro.
114 (IS_ADD_REG_TO_FP): New macro.
115 (IS_ADD_IMM_FP): New macro.
116 (sh_skip_prologue_hard_way): Remove.
117 (sh_saved_pc_after_call): Remove.
118 (sh_frame_chain): Remove.
119 (sh_find_callers_reg): Remove.
120 (sh_nofp_frame_init_saved_regs): Remove.
121 (sh_fp_frame_init_saved_regs): Remove.
122 (sh_init_extra_frame_info): Remove.
123 (sh_analyze_prologue): New function.
124 (sh_skip_prologue): Remove deprecated code. Rely on new function
125 sh_analyze_prologue when after_prologue fails.
126 (sh_frame_saved_pc): Remove.
127 (sh_alloc_frame_cache): New function.
128 (sh_frame_cache): Ditto.
129 (sh_frame_prev_register): Ditto.
130 (sh_frame_this_id): Ditto.
131 (sh_frame_unwind): New structure defining the heuristic frame
132 sniffer interface.
133 (sh_frame_sniffer): New function.
134 (sh_unwind_sp): Ditto.
135 (sh_unwind_pc): Ditto.
136 (sh_unwind_dummy_id): Ditto.
137 (sh_frame_base_address): Ditto.
138 (sh_frame_base): New structure defining new frame base code.
139 (sh_in_function_epilogue_p): New function.
140 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
141 code and to call all new code instead. Initialize dwarf2 and
142 heuristic frame sniffer.
143
144 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
145
146 * parser-defs.h (struct exp_descriptor): New definition, containing
147 language-specific info for printing, prefixifying, dumping, and
148 evaluating expressions.
149 (exp_descriptor_standard): Declare new variable.
150 (print_subexp): Make global and declare here (from expprint.c).
151 (dump_subexp): Ditto.
152 (dump_subexp_body_standard): Declare.
153 (operator_length_standard): Declare.
154 (op_name_standard): Declare.
155 (print_subexp): Declare.
156 (print_subexp_standard): Declare.
157
158 * language.h (struct language_defn): Add la_exp_desc field to hold
159 pointer to table for language-specific operators.
160 Remove evaluate_exp field, which is now in struct exp_descriptor.
161
162 * parse.c (operator_length): Move most code to new
163 operator_length_standard function. Use language-specific information.
164 (operator_length_standard): New function taking most code from
165 operator_length.
166 (exp_descriptor_standard): New constant.
167
168 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
169 and OP_EXTENDED_LAST.
170
171 * expprint.c (print_subexp): Use language-specific print_subexp.
172 Make global; remove static declaration.
173 Move most code to print_subexp_standard.
174 (print_subexp_standard): New function, containing code formerly in
175 print_subexp.
176 (op_name): Add expression to argument signature.
177 Use langauge-specific op_name.
178 Move most code to op_name_standard.
179 (op_name_standard): New function, containing code formerly in op_name.
180 (dump_subexp): Use new version of op_name function.
181 Use language-specific dump_subexp_body, and move most existing code to
182 dump_subexp_body_standard.
183 (dump_raw_expression): Use new op_name interface.
184 (dump_subexp_body): Move most code to dump_subexp_body_standard.
185 (dump_subexp_body_standard): New function, containing code formerly
186 in dump_subexp_body.
187
188 * language.c (unknown_language): Add default la_exp_desc field and
189 remove evaluate_exp field.
190 (auto_language): Ditto.
191 (local_language): Ditto.
192 * f-lang.c (f_language_defn): Ditto.
193 * c-lang.c (c_language_defn): Ditto.
194 (cplus_language_defn): Ditto.
195 (asm_language_defn): Ditto.
196 (minimal_language_defn): Ditto.
197 * p-lang.c (pascal_language_defn): Ditto.
198 * m2-lang.c (m2_language_defn): Ditto.
199 * objc-lang.c (objc_language_defn): Ditto.
200
201 * jv-lang.c (exp_descriptor_java): New variable, containing
202 Java-specific expression evaluator.
203 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
204 field.
205 * scm-lang.c (exp_descriptor_scm): New variable, containing
206 Scheme-specific expression evaluator.
207 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
208 field.
209 * objc-lang.c (print_object_command): Take evaluate_exp from the
210 la_exp_desc field.
211
212 * Makefile.in (eval.o): Add dependency on parser-defs.h.
213
214 * eval.c: Include parser-defs.h for the full declaration of
215 la_exp_desc's type.
216 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
217
218 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
219
220 * parser-defs.h (operator_length): Declare.
221
222 * parse.c (length_of_subexp): Use operator_length to get operator
223 lengths and arities for operators.
224 Move most code to new operator_length function.
225 (operator_length): New function absorbing most code from
226 length_of_subexp.
227 (prefixify_subexp): Remove large case and use operator_length instead.
228 (parse_exp_1): Use renamings:
229 dump_prefix_expression => dump_raw_expression and
230 dump_postfix_expression => dump_prefix_expression.
231
232 * expression.h (dump_prefix_expression): Rename to ...
233 (dump_raw_expression): New name.
234 (dump_postfix_expression): Rename to ...
235 (dump_prefix_expression): New name.
236
237 * expprint.c (dump_subexp): Make global. Add comment.
238 Move most existing code to dump_subexp_body.
239 (dump_subexp_body): New function.
240 (dump_prefix_expression): Rename to dump_raw_expression.
241 Remove attempt to print the expression via print_expression: it can't
242 work before the expression is prefixified.
243 (dump_raw_expression): Renamed from dump_prefix_expression.
244 (dump_postfix_expression): Rename to dump_prefix_expression, since
245 that's what it does.
246 Remove 'note' parameter, since this routine must be used on
247 prefixified expression.
248 (dump_prefix_expression): Renamed from dump_postfix_expression.
249
250 2003-09-22 Jim Blandy <jimb@redhat.com>
251
252 * dwarf2read.c (read_array_type): When building the type for an
253 array of unspecified length, make sure to choose the upper bound
254 so that the array's total length comes out to be zero --- that's
255 how we represent such arrays.
256
257 2003-09-22 Michael Chastain <mec@shout.net>
258
259 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
260
261 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
262
263 * top.c (quit_force): Fix indirect call to quit_target so
264 a struct qt_args pointer is passed.
265
266 2003-09-22 Andrew Cagney <cagney@redhat.com>
267
268 * arch-utils.h (init_frame_pc_noop): Delete declaration.
269 * arch-utils.c (init_frame_pc_noop): Delete function.
270 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
271 "init_frame_pc".
272 * mips-tdep.c (mips_gdbarch_init): Ditto.
273 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
274 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
275 declaration.
276 (DEPRECATED_INIT_FRAME_PC): Delete macro.
277 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
278 declaration.
279 (DEPRECATED_INIT_FRAME_PC): Delete macro.
280
281 2003-09-22 Anthony Green <green@redhat.com>
282
283 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
284 declaration.
285
286 2003-09-20 Andrew Cagney <cagney@redhat.com>
287
288 * breakpoint.c: Eliminate ARGSUSED.
289 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
290 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
291 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
292 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
293 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
294 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
295 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
296 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
297 * wince.c, remote-vx.c: Ditto.
298
299 * cli/cli-script.c: Remove "register" attributes.
300 * config/pa/tm-hppa.h: Ditto.
301 * cli/cli-decode.c: Ditto.
302 * cli/cli-cmds.c: Ditto.
303
304 2003-09-19 Andrew Cagney <cagney@redhat.com>
305
306 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
307 DEPRECATED_NPC_REGNUM.
308 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
309
310 2003-09-19 Christopher Faylor <cgf@redhat.com>
311
312 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
313
314 2003-09-19 Jim Blandy <jimb@redhat.com>
315
316 * macrotab.c (macro_include): Use the correct comparison to find
317 the appropriate place for this inclusion in the list.
318
319 2003-09-19 Andrew Cagney <cagney@redhat.com>
320
321 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
322 (DEPRECATED_HPUX_TEXT_END): Define.
323 (deprecated_hpux_text_end): Declare.
324 (struct target_ops): Declare opaque.
325 * hppah-nat.c (text_end): Make static.
326 (deprecated_hpux_text_end): New function.
327 * exec.c (text_end): Delete global variable.
328 (NEED_TEXT_START_END): Do not define.
329 (exec_file_attach): Replace code computing "text_end" code with
330 call to DEPRECATED_HPUX_TEXT_END.
331
332 2003-09-19 Andrew Cagney <cagney@redhat.com>
333
334 * utils.c (align_up, align_down): New functions.
335 * defs.h (align_up, align_down): Declare.
336 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
337 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
338 and "align_down".
339 (round_up, round_down): Delete functions.
340 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
341 "align_down".
342 (ROUND_DOWN, ROUND_UP): Delete macros.
343 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
344 * h8300-tdep.c: Replace "round_up" and "round_down" with
345 "align_up" and "align_down".
346 (round_up, round_down): Delete macros.
347 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
348 "align_down".
349 (ROUND_UP, ROUND_DOWN): Delete macros.
350
351 2003-09-18 J. Brobecker <brobecker@gnat.com>
352
353 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
354 hard-coded constant. Use the proper machine name instead.
355
356 2003-09-17 Andrew Cagney <cagney@redhat.com>
357
358 * sparc-tdep.c (legacy_register_name): Delete function.
359 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
360 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
361 * infcmd.c (gdb_register_name): Delete variable.
362 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
363 REGISTER_NAME and "tm.h".
364 * gdbarch.h, gdbarch.c: Regenerate.
365 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
366 REGISTER_NAMES in comments.
367 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
368 * m68klinux-nat.c (regmap): Ditto.
369
370 2003-09-17 Jim Blandy <jimb@redhat.com>
371
372 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
373
374 2003-09-17 Andrew Cagney <cagney@redhat.com>
375
376 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
377 (ppcnbsd_init_abi): Set "use_struct_convention" to
378 "ppcnbsd_use_struct_convention".
379
380 2003-09-17 Mark Kettenis <kettenis@gnu.org>
381
382 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
383 * gdbarch.h, gdbarch.c: Regenerate.
384 (stabs_argument_has_addr): New architecture method.
385 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
386 * arch-utils.c: Include "buildsym.h".
387 (default_stabs_argument_has_addr): New function.
388 * stabsread.c (define_symbol): Use stabs_argument_has_addr
389 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
390
391 2003-09-17 Andrew Cagney <cagney@redhat.com>
392
393 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
394 * gdbarch.h, gdbarch.c: Regenerate.
395 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
396 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
397 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
398 * sparcnbsd-tdep.c: Update.
399
400 2003-09-17 Andrew Cagney <cagney@redhat.com>
401
402 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
403 * gdbarch.h, gdbarch.c: Regenerate.
404 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
405 * d10v-tdep.c, frame.c: Update.
406 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
407 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
408 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
409 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
410 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
411 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
412 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
413 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
414 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
415 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
416 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
417 * config/pa/nm-hppah.h: Update.
418
419 2003-09-16 Andrew Cagney <cagney@redhat.com>
420
421 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
422 "use_struct_convention" to "ppc_linux_use_struct_convention".
423 (ppc_linux_use_struct_convention): New function.
424 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
425 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
426 "rs6000_use_struct_convention".
427 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
428 declaration.
429 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
430 Delete function.
431
432 2003-09-16 Andrew Cagney <cagney@redhat.com>
433
434 * buildsym.c: Remove more occurances of "register".
435 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
436 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
437 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
438 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
439 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
440 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
441 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
442 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
443
444 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
445
446 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
447 numbers to enumeration values.
448 * sh-tdep.c: Accomodate above change.
449 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
450 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
451 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
452 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
453 (IS_FPUSH): Rename from IS_FMOV.
454 (sh_extract_struct_value_address): Remove useless comment.
455 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
456 instead of own local values.
457 (sh_dump_tdep): Remove.
458 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
459 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
460
461 2003-09-15 Andrew Cagney <cagney@redhat.com>
462
463 * doublest.c (convert_floatformat_to_doublest): No longer need to
464 cast "exp_bias" to an int. Reverts 2002-12-04 change.
465
466 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
467
468 * values.c (unpack_double): Call floatformat_is_valid.
469
470 2003-09-15 Mark Kettenis <kettenis@gnu.org>
471
472 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
473 ps_strings into a long.
474
475 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
476 _initialize_am64fbsd_nat.
477
478 2003-09-15 Kevin Buettner <kevinb@redhat.com>
479
480 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
481 associated with DW_AT_ranges attribute is out of bounds.
482
483 2003-09-15 David Lecomber <dsl@sources.redhat.com>
484
485 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
486
487 2003-09-14 Michael Chastain <mec@shout.net>
488
489 * config/m68k/nm-apollo68v.h: Delete.
490 * config/m68k/xm-apollo68v.h: Delete.
491
492 2003-09-14 Andrew Cagney <cagney@redhat.com>
493
494 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
495 * dcache.c: Update copyrights and descriptions.
496 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
497
498 2003-09-14 Andrew Cagney <cagney@redhat.com>
499
500 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
501 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
502
503 2003-09-14 Andrew Cagney <cagney@redhat.com>
504
505 * alpha-nat.c: Remove some occurances of "register".
506 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
507 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
508 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
509 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
510 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
511 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
512 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
513 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
514 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
515 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
516 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
517 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
518 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
519 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
520 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
521 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
522 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
523 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
524 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
525 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
526 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
527 * values.c, vax-tdep.c, xcoffread.c: Ditto.
528
529 2003-09-13 Andrew Cagney <cagney@redhat.com>
530
531 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
532 * ppc-tdep.h (struct regcache): Declare opaque.
533 * objfiles.h (struct objfile_data): Declare opaque.
534 * cp-support.h (struct objfile): Declare opaque.
535 * linux-nat.h (target_waitstatus): Declare opaque.
536
537 2003-09-14 Mark Kettenis <kettenis@gnu.org>
538
539 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
540 (stabs_argument_has_addr): New architecture method.
541 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
542 * arch-utils.c: Include "buildsym.h".
543 (default_stabs_argument_has_addr): New function.
544 * stabsread.c (define_symbol): Use stabs_argument_has_addr
545 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
546
547 * cris-tdep.c (cris_gdbarch_init): Set
548 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
549 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
550 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
551 * mips-tdep.c (mips_gdbarch_init): Likewise.
552 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
553 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
554
555 2003-09-13 Andrew Cagney <cagney@redhat.com>
556
557 * values.c (using_struct_return): Delete "function" and "funcaddr"
558 parameters.
559 * value.h (using_struct_return): Update declaration.
560 * infcmd.c (finish_command_continuation): Update.
561 (finish_command): Update.
562 * infcall.c (call_function_by_hand): Update.
563 * eval.c (evaluate_subexp_standard): Update.
564
565 2003-09-13 Christopher Faylor <cgf@redhat.com>
566
567 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
568 SSE registers since gdb will not operate correctly without this.
569 Restore include file ordering munged in previous change.
570 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
571
572 2003-09-13 Mark Kettenis <kettenis@gnu.org>
573
574 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
575 REG_STRUCT_HAS_ADDR.
576 * gdbarch.c, gdbarch.h: Updated.
577 * infcall.c (call_function_by_hand): Update.
578 * stabsread.c (define_symbol): Updated.
579
580 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
581
582 2003-09-12 Christopher Faylor <cgf@redhat.com>
583
584 * win32-nat.c: Reorganize so that defines used by target headers are
585 actually defined by the system headers.
586 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
587 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
588
589 2003-09-12 Jim Blandy <jimb@redhat.com>
590
591 * dbxread.c (read_dbx_symtab): Don't report an internal error if
592 the file has no .data, .bss, or .rodata sections. Instead wait
593 until we see a variable alleged to live in one of those sections.
594
595 * dbxread.c (read_dbx_symtab): If we have no .data section and no
596 .bss section, presume that any variables we find live in the
597 .rodata section.
598
599 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
600 offsets for global and static variables.
601
602 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
603 symbol types are, by definition, in the .data section, so it is
604 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
605 If there is no .data section, there should be no N_DATA or N_DATA
606 | N_EXT symbols.
607
608 2003-09-12 Mark Kettenis <kettenis@gnu.org>
609
610 * amd64fbsd-tdep.c: Fix sigtramp recognition.
611 (amd64fbsd_sigcontext_addr): Rewrite.
612 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
613 with correct values.
614 (amd64fbsd_sc_reg_offset): Initialize with correct values.
615 (amd64fbsd_init_abi): Fix typo.
616
617 2003-09-12 Andrew Cagney <cagney@redhat.com>
618
619 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
620 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
621
622 2003-09-12 Andrew Cagney <cagney@redhat.com>
623
624 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
625 "entry_file_highpc". Update comments.
626 * defs.h (deprecated_inside_entry_file): Rename
627 "inside_entry_file".
628 * blockframe.c (deprecated_inside_entry_file): Rename
629 "inside_entry_file".
630 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
631 * vax-tdep.c (vax_frame_chain): Update.
632 * sh64-tdep.c (sh64_frame_chain): Update.
633 * sh-tdep.c (sh_frame_chain): Update.
634 * rs6000-tdep.c (rs6000_frame_chain): Update.
635 * ns32k-tdep.c (ns32k_frame_chain): Update.
636 * mips-tdep.c (mips_frame_chain): Update.
637 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
638 * m32r-tdep.c (m32r_frame_this_id): Update.
639 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
640 * frv-tdep.c (frv_frame_this_id): Update.
641 * d10v-tdep.c (d10v_frame_this_id): Update.
642 * cris-tdep.c (cris_frame_chain): Update.
643 * blockframe.c (legacy_frame_chain_valid): Update.
644 * avr-tdep.c (avr_frame_this_id): Update.
645 * arm-tdep.c (arm_prologue_this_id): Update.
646 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
647 * objfiles.c (objfile_relocate): Update.
648 * mipsread.c (mipscoff_symfile_read): Update.
649 (mipscoff_symfile_read): Update.
650 * mdebugread.c (parse_partial_symbols): Update.
651 * dwarfread.c (read_file_scope): Update.
652 * dwarf2read.c (read_file_scope): Update.
653 * dbxread.c (read_dbx_symtab): Update.
654 (read_dbx_symtab): Update.
655 * coffread.c (complete_symtab): Update.
656
657 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
658
659 * top.c (quit_target): New static helper function.
660 (quit_force): Moved code to quit_target(). Call quit_target()
661 via catch_errors() to catch errors during quit.
662
663 2003-09-11 David Carlton <carlton@kealia.com>
664
665 * buildsym.c (finish_block): Use allocate_block to allocate the
666 block.
667 * mdebugread.c (new_block): Add FIXME.
668
669 2003-09-11 David Carlton <carlton@kealia.com>
670
671 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
672 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
673 (recursive_dump_type): Ditto.
674 * printcmd.c (print_formatted): Ditto.
675 * typeprint.c (print_type_scalar): Ditto.
676 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
677 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
678 * cp-support.h: Declare cp_check_possible_namespace_symbols,
679 maint_cplus_cmd_list.
680 * cp-support.c: Make maint_cplus_cmd_list extern.
681 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
682 command.h.
683 (lookup_symbol_file): Look in possible namespace blocks when
684 appropriate.
685 (initialize_namespace_symtab): New.
686 (get_possible_namespace_block, free_namespace_block)
687 (check_possible_namespace_symbols)
688 (check_possible_namespace_symbols_loop)
689 (check_one_possible_namespace_symbol)
690 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
691 (_initialize_cp_namespace): Ditto.
692 * block.h: Declare allocate_block.
693 * block.c (allocate_block): New.
694 * jv-lang.c (get_java_class_symtab): Allocate blocks via
695 allocate_block.
696 * symfile.h: Update declaration of add_psymbol_to_list.
697 * symfile.c (add_psymbol_to_list): Return the partial symbol in
698 question.
699 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
700 scan_partial_symbols_call.
701 (scan_partial_symbols): Add NAMESPACE argument; update calls to
702 helper functions.
703 (add_partial_symbol): If necessary, scan mangled names for names
704 of namespaces.
705 (add_partial_namespace): Add NAMESPACE argument; generate partial
706 symbols associated to namespaces.
707 (add_partial_enumeration): Add NAMESPACE argument.
708 (new_symbol): Allow namespace syms.
709 (read_namespace): Generate namespace syms.
710 * objfiles.h: Add opaque declaration of struct symtab.
711 (struct objfile): Add cp_namespace_symtab member.
712 * objfiles.c (allocate_objfile): Set
713 objfile->cp_namespace_symtab.
714 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
715 dictionary_h, command_h.
716
717 2003-09-11 Andrew Cagney <cagney@redhat.com>
718
719 * rs6000-tdep.c (rs6000_push_dummy_call): Use
720 regcache_raw_write_signed to set SP_REGNUM, move the operation to
721 near the function's end.
722 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
723 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
724 regcache_raw_write_signed to set SP_REGNUM.
725
726 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
727
728 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
729 orig_addrs is set up properly.
730
731 2003-09-11 Andrew Cagney <cagney@redhat.com>
732
733 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
734 * gdbarch.h, gdbarch.c: Re-generate.
735 * infcall.c (call_function_by_hand): Update.
736 * hppa-tdep.c (hppa_push_arguments): Update.
737 * ada-lang.c (place_on_stack): Update.
738 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
739 * sparc-tdep.c (sparc_gdbarch_init): Update.
740 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
741 * hppa-tdep.c (hppa_gdbarch_init): Update.
742 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
743 stack_align.
744
745 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
746
747 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
748 register do need a frame.
749
750 2003-09-11 Andrew Cagney <cagney@redhat.com>
751
752 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
753 buildable since GDB 5.0.
754 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
755 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
756 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
757 * irix4-nat.c: Delete file.
758 * config/mips/irix4.mh: Delete file.
759 * config/mips/irix3.mh: Delete file.
760 * config/mips/irix3.mt: Delete file.
761 * config/mips/tm-irix3.h: Delete file.
762 * config/mips/nm-irix3.h: Delete file.
763 * config/mips/xm-irix3.h: Delete file.
764 * config/mips/nm-irix4.h: Delete file.
765 * config/mips/xm-irix4.h: Delete file.
766 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
767
768 2003-09-10 J. Brobecker <brobecker@gnat.com>
769
770 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
771 * Makefile.in (hppa-tdep.o): Update dependencies.
772
773 2003-09-10 James E Wilson <wilson@specifixinc.com>
774
775 * MAINTAINERS: Change my e-mail address. Move to paper trail
776 section.
777
778 2003-09-10 Kevin Buettner <kevinb@redhat.com>
779
780 * MAINTAINERS (frv): New ISA entry.
781
782 2003-09-10 Kevin Buettner <kevinb@redhat.com>
783
784 * frv-tdep.c (dis-asm.h): Include.
785 * Makefile.in (frv-tdep.o): Update dependencies.
786
787 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
788
789 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
790 Fix typo for high range of floating registers.
791
792 2003-09-09 David Carlton <carlton@kealia.com>
793
794 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
795 highpc initialization here out of scan_partial_symbols.
796 (scan_partial_symbols): Restructure into a recursive version,
797 calling add_partial_namespace and add_partial_enumeration when
798 appropriate.
799 (add_partial_namespace): New.
800 (add_partial_enumeration, locate_pdi_sibling): Ditto.
801
802 2003-09-09 Andrew Cagney <cagney@redhat.com>
803
804 * rs6000-tdep.c (ppc_push_return_address): Delete function.
805 (rs6000_push_dummy_call): Set LR to BP_ADDR.
806 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
807 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
808
809 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
810 (rs6000_push_dummy_call): Set the "TOC" register.
811
812 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
813 methods "max_register_raw_size", "max_register_virtual_size" or
814 "register_virtual_size".
815
816 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
817
818 * MAINTAINERS: Update my e-mail address.
819
820 2003-09-09 Andrew Cagney <cagney@redhat.com>
821
822 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
823 (rs6000_push_dummy_call): Store the struct return address.
824 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
825
826 2003-09-09 Andrew Cagney <cagney@redhat.com>
827
828 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
829 "ppc_sysv_abi_push_arguments".
830 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
831 "ppc_sysv_abi_push_arguments".
832 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
833 instead of "push_arguments".
834 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
835
836 2003-09-09 Andrew Cagney <cagney@redhat.com>
837
838 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
839 instead of CALL_DUMMY_ADDRESS.
840
841 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
842
843 * p-lang.c: Eliminate "register".
844 * c-lang.c: Ditto.
845 * expprint.c: Ditto.
846 * f-lang.c: Ditto.
847 * jv-lang.c: Ditto.
848 * language.c: Ditto.
849 * m2-lang.c: Ditto.
850 * parse.c: Ditto.
851 * scm-lang.c: Ditto.
852 * objc-lang.c: Ditto.
853
854 2003-09-09 Nick Clifton <nickc@redhat.com>
855
856 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
857
858 2003-09-04 Andrew Cagney <cagney@redhat.com>
859
860 * avr-tdep.c: Include "dis-asm.h".
861 * cris-tdep.c: Include "dis-asm.h".
862 (cris_delayed_get_disassembler): Use "struct disassemble_info"
863 instead of corresponding typedef.
864 * h8300-tdep.c: Include "dis-asm.h".
865 * ia64-tdep.c: Include "dis-asm.h".
866 * i386-tdep.c: Include "dis-asm.h".
867 (i386_print_insn): Use "struct disassemble_info" instead of
868 corresponding typedef.
869 * m68k-tdep.c: Include "dis-asm.h".
870 * mcore-tdep.c: Include "dis-asm.h".
871 * mips-tdep.c: Include "dis-asm.h".
872 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
873 instead of corresponding typedef.
874 * ns32k-tdep.c: Include "dis-asm.h".
875 * s390-tdep.c: Include "dis-asm.h".
876 * sparc-tdep.c: Include "dis-asm.h".
877 * vax-tdep.c: Include "dis-asm.h".
878 * v850-tdep.c: Include "dis-asm.h".
879 * mn10300-tdep.c: Include "dis-asm.h".
880 * rs6000-tdep.c: Include "dis-asm.h".
881 * xstormy16-tdep.c: Include "dis-asm.h".
882 (_initialize_xstormy16_tdep): Delete "extern" declaration of
883 print_insn_xstormy16.
884 * Makefile.in (v850-tdep.o): Update dependencies.
885 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
886 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
887 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
888 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
889 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
890 (gdbarch_h): Remove $(dis_asm_h).
891 * disasm.c: Include "dis-asm.h".
892 (dis_asm_read_memory): Use "struct disassemble_info" instead of
893 corresponding typedef.
894 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
895 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
896 * gdbarch.sh: Do not include "dis-asm.h".
897 (struct disassemble_info): Declare opaque.
898 (TARGET_PRINT_INSN): Update declaration.
899 * gdbarch.h, gdbarch.c: Re-generate.
900
901 2003-09-08 Andrew Cagney <cagney@redhat.com>
902
903 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
904 CALL_DUMMY_ADDRESS, change to a predicate.
905 * gdbarch.h, gdbarch.c: Re-generate.
906 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
907 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
908 * infcall.c (call_function_by_hand): Ditto.
909 * sparc-tdep.c (sparc_push_return_address): Ditto.
910 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
911 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
912 CALL_DUMMY_ADDRESS with entry_point_address.
913 * v850-tdep.c (v850_push_return_address): Ditto.
914 * s390-tdep.c (s390_push_return_address): Ditto.
915 * rs6000-tdep.c (ppc_push_return_address): Ditto.
916 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
917 * mcore-tdep.c (mcore_push_return_address): Ditto.
918 * cris-tdep.c (cris_push_return_address): Ditto.
919 * arm-tdep.c (arm_push_return_address): Ditto.
920
921 2003-09-08 Andrew Cagney <cagney@redhat.com>
922
923 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
924 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
925 and REG_UNMODIFIED to REG_SAME_VALUE.
926 (execute_cfa_program): Update.
927 (dwarf2_frame_cache): Update. Initialize table to
928 REG_UNSPECIFIED, complain if CFI fails to specify a register's
929 location.
930 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
931
932 2003-09-08 Andrew Cagney <cagney@redhat.com>
933
934 * gnu-nat.c: Remove "inline" function attribute.
935 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
936
937 2003-09-08 Kevin Buettner <kevinb@redhat.com>
938
939 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
940 target.
941
942 2003-09-08 Kevin Buettner <kevinb@redhat.com>
943
944 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
945 (frame_extra_info): Rename this struct to frv_unwind_cache.
946 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
947 Add fields ``prev_sp'' and ``base''.
948 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
949 (frv_saved_pc_after_call, frv_init_extra_frame_info)
950 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
951 Delete.
952 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
953 Revise all callers. Fill in the unwind cache argument and make
954 other adjustments to account for new frame mechanisms.
955 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
956 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
957 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
958 (frv_frame_unwind, frv_frame_base): New structs.
959 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
960 additional arguments expected by this method and adjust function
961 body accordingly.
962 (frv_gdbarch_init): Remove calls to the following functions:
963 set_gdbarch_deprecated_init_frame_pc(),
964 set_gdbarch_deprecated_saved_pc_after_call(),
965 set_gdbarch_deprecated_frame_chain(),
966 set_gdbarch_deprecated_frame_saved_pc(),
967 set_gdbarch_deprecated_frame_init_saved_regs(),
968 set_gdbarch_deprecated_push_arguments(),
969 set_gdbarch_deprecated_push_return_address(),
970 set_gdbarch_deprecated_pop_frame(),
971 set_gdbarch_deprecated_call_dummy_words(),
972 set_gdbarch_deprecated_sizeof_call_dummy_words(),
973 set_gdbarch_deprecated_init_extra_frame_info(),
974 set_gdbarch_deprecated_dummy_write_sp(), and
975 set_gdbarch_deprecated_pc_in_call_dummy().
976 Add calls to the following functions:
977 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
978 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
979 frame_base_set_default().
980 * Makefile.in (frv-tdep.o): Update dependencies.
981
982 2003-09-09 Mark Kettenis <kettenis@gnu.org>
983
984 * dwarf2-frame.c (read_encoded_value): Add support for
985 DW_EH_PE_aligned encoding.
986
987 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
988
989 * infrun.c (normal_stop): Don't print a message if the inferior
990 has exited.
991
992 2003-09-08 Jim Blandy <jimb@redhat.com>
993
994 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
995 * dbxread.c: #include "gdb_assert.h".
996 (read_dbx_symtab): If the objfile has no .data section, use the
997 section index for the .bss section instead.
998
999 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1000
1001 * frame.c (deprecated_safe_get_selected_frame): New function.
1002 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1003 * findvar.c (read_var_value): Call it.
1004
1005 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1006
1007 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1008 (sh64-tdep.o): Add dependencies.
1009 * configure.tgt: Add FIXME to sh-*-linux*.
1010 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1011 (sh_gdbarch_init): Always set correct sh_show_regs function
1012 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1013 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1014 * sh64-tdep.c: New file, containing all sh64 related code from
1015 sh-tdep.c.
1016 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1017 * config/sh/linux.mt (TDEPFILES): Ditto.
1018 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1019 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1020 * config/sh/wince.mt (TDEPFILES): Ditto.
1021
1022 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1023
1024 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1025 (stop_wait_callback): Handle !lp->signalled also.
1026 (lin_lwp_has_pending, flush_callback): New functions.
1027 (lin_lwp_wait): Call flush_callback.
1028 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1029 (linux_proc_pending_signals): New function.
1030 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1031
1032 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1033
1034 From Nick Kelsey <nickk@ubicom.com>:
1035 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1036 when the stop PC is at the beginning of a function also.
1037
1038 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1039
1040 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1041 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1042
1043 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1044
1045 * sol-thread.c: Include "gdb_string.h".
1046
1047 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1048
1049 * gcore.c: Reorder include files in alphabetical order. Include
1050 "gdb_assert.h". Various coding style fixes.
1051 (derive_stack_segment, derive_heap_segment): Replace check for
1052 non-null BOTTOM and TOP with gdb_assert.
1053 (derive_heap_segment): Replace check for successful creation of
1054 ZERO with gdb_assert.
1055 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1056
1057 2003-09-04 Andrew Cagney <cagney@redhat.com>
1058
1059 * thread-db.c (verbose_dlsym): New function.
1060 (thread_db_load): Use verbose_dlsym
1061 (thread_db_new_objfile): Print that libthread_db was loaded, and
1062 that thread debugging was enabled.
1063
1064 2003-09-04 Andrew Cagney <cagney@redhat.com>
1065
1066 * configure.tgt: Add "mips64*-*-*" target. Delete
1067 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1068 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1069 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1070 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1071 mips*-sony-*, and mips64*-*-elf* targets.
1072 * config/mips/embedl.mt: Delete file.
1073 * config/mips/embedl64.mt: Delete file.
1074 * config/mips/mips.mt: Delete file.
1075 * config/mips/mips64.mt: Delete file.
1076 * config/mips/tm-embed.h: Delete file.
1077 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1078 * config/mips/embed64.mt: Delete out-of-date comment.
1079
1080 2003-09-04 Andrew Cagney <cagney@redhat.com>
1081
1082 * hppa-tdep.c (hppa_gdbarch_init): Set
1083 "have_nonsteppable_watchpoint".
1084 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1085 * mips-tdep.c (mips_dump_tdep): Do not print
1086 HAVE_NONSTEPPABLE_WATCHPOINT.
1087 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1088 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1089 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1090 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1091
1092 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1093
1094 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1095 unused code. Add comment.
1096
1097 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1098
1099 * breakpoint.c (watchpoint_check): Check for pc being in an
1100 epilogue if watchpoint frame couldn't be found.
1101
1102 2003-09-04 Andrew Cagney <cagney@redhat.com>
1103
1104 * Makefile.in: Re-generate all dependencies.
1105
1106 2003-09-03 Andrew Cagney <cagney@redhat.com>
1107
1108 * arch-utils.h (legacy_print_insn): Delete declaration.
1109 * arch-utils.c (legacy_print_insn): Delete function.
1110 * disasm.c (deprecated_tm_print_insn_info): Delete.
1111 (_initialize_disasm): Delete function, contained code initializing
1112 deprecated_tm_print_insn_info.
1113 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1114 (deprecated_tm_print_insn_info): Delete.
1115 (TARGET_PRINT_INSN): Do not provide a default.
1116 * gdbarch.h, gdbarch.c: Re-generate.
1117
1118 2003-09-03 Andrew Cagney <cagney@redhat.com>
1119
1120 * disasm.c (fprintf_disasm): New function.
1121 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1122 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1123 reverts 2003-08-14 change.
1124 (_initialize_disasm): Call "init_disassemble_info", instead of
1125 INIT_DISASSEMBLE_INFO_NO_ARCH.
1126
1127 2003-09-03 Michael Snyder <msnyder@redhat.com>
1128
1129 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1130
1131 2003-09-03 Andrew Cagney <cagney@redhat.com>
1132
1133 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1134 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1135 * symfile.c (syms_from_objfile): Update.
1136 (reread_symbols): `Update
1137 * exec.c (exec_file_attach): Update.
1138 (exec_file_attach): Update.
1139 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1140 2003-08-29 change.
1141 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1142
1143 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1144
1145 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1146 trad-frame.h.
1147 (arm_get_cache): Delete macro.
1148 (struct arm_prologue_cache): Update comments. Make saved_regs into
1149 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1150 to prev_sp.
1151 (thumb_scan_prologue): Update for cache changes. Don't call
1152 DEPRECATED_PC_IN_CALL_DUMMY.
1153 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1154 argument and use it in desperation search for our prologue. Do not
1155 search past the specified PC.
1156 (arm_make_prologue_cache): Simplify.
1157
1158 (arm_prologue_this_id, arm_prologue_prev_register)
1159 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1160 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1161 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1162 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1163 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1164
1165 (arm_frame_chain_valid, arm_find_callers_reg)
1166 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1167 (arm_pop_frame): Delete obsolete methods.
1168 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1169
1170 (arm_gdbarch_init): Update for new frame methods. Register prologue
1171 and sigtramp unwinders. Set the default frame base method.
1172
1173 * Makefile.in (arm-tdep.o): Update dependencies.
1174 * varobj.c (find_frame_addr_in_frame_chain): Call
1175 get_frame_base_address.
1176 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1177
1178 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1179
1180 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1181 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1182 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1183 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1184 Take NEXT_FRAME and CACHE arguments. Call
1185 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1186 Set unwound_pc in CACHE instead of modifying the frame argument.
1187 Don't bother checking the frame type when looking for sigtramp
1188 frames.
1189 (arm_make_prologue_cache, arm_frame_chain)
1190 (arm_init_extra_frame_info): New functions.
1191
1192 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1193
1194 * arm-tdep.c (arm_get_cache): Define.
1195 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1196 unwound_sp, unwound_pc, and saved_regs.
1197 (thumb_scan_prologue): Take a cache instead of the frame.
1198 (arm_scan_prologue): Likewise.
1199 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1200 instead of a temporary frame.
1201 (arm_init_extra_frame_info): Allocate and use a cache.
1202 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1203
1204 2003-09-03 Andrew Cagney <cagney@redhat.com>
1205
1206 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1207 * config/mips/wince.mt (TM_CLIBS): Ditto.
1208 * config/sh/wince.mt (TM_CLIBS): Ditto.
1209 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1210 * config/sparc/sp64.mt (CC): Delete.
1211
1212 2003-09-03 Andrew Cagney <cagney@redhat.com>
1213
1214 * defs.h: Do not include "arch-utils.h".
1215 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1216 GDB_MULTI_ARCH_PURE.
1217 * configure.in (GDB_MULTI_ARCH): Do not define.
1218 * configure, config.in: Regenerate.
1219 * configure.tgt: Do not set variable "gdb_multi_arch".
1220 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1221 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1222 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1223 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1224 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1225 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1226 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1227 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1228 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1229 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1230 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1231 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1232 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1233 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1234 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1235 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1236 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1237 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1238
1239 2003-08-30 Michael Chastain <mec@shout.net>
1240
1241 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1242 * config/m68k/nm-hp300hpux.h: Delete.
1243 * config/m68k/tm-hp300hpux.h: Delete.
1244 * config/m68k/xm-hp300hpux.h: Delete.
1245 * config/m68k/xm-hp300bsd.h: Delete.
1246 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1247 tm-hp300hpux.h, xm-hp300hpux.h.
1248 * somsolib.c: Remove comment about hp300 shared libraries.
1249
1250 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1251
1252 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1253 Only define PTRACE_GET_THREAD_AREA is not already defined.
1254 Various style fixes in code and comments and some additional
1255 spelling fixes in comments. Move after functions dealing with
1256 debug registers.
1257 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1258 Fix coding-style.
1259
1260 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1261 frame_unwind_register_unsigned instead of
1262 frame_unwind_unsigned_register.
1263
1264 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1265
1266 * configure.in: Search for gethostbyname in libnsl.
1267 * configure: Regenerated.
1268
1269 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1270
1271 * configure.in: Remove redundant AC_MSG_RESULT in check for
1272 uintptr_t in stdint.h.
1273 * configure: Regenerated.
1274
1275 * amd64-nat.h (struct regcache): Add opaque declaration.
1276
1277 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1278 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1279 Change "register array" to "register cache" in comments.
1280 (x86_64_linux_gregset64_reg_offset): New variable.
1281 (GETREGS_SUPPLIES): Remove macro.
1282 (supply_gregset): Call amd64_supply_native_gregset instead of
1283 x86_64_linux_supply_gregset.
1284 (fill_gregset): Rename `regno' to `regnum'. Call
1285 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1286 (store_regs): Rename `regno' to `regnum'.
1287 (store_fpregs): Rename `regno' to `regnum'.
1288 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1289 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1290 Reorganize function a bit.
1291 (store_inferior_registers): Rename `regno' to `regnum'. Use
1292 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1293 Reorganize function a bit.
1294 (_initialize_x86_64_linux_nat): New function.
1295 * config/i386/x86-64linux.mh.
1296
1297 2003-08-29 Andrew Cagney <cagney@redhat.com>
1298
1299 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1300 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1301 (target_remove_watchpoint): Delete macro.
1302 (target_insert_watchpoint): Delete macro.
1303 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1304 (remote_mips_stopped_by_watchpoint): Delete declaration.
1305 (remote_mips_remove_watchpoint): Delete declaration.
1306 (remote_mips_set_watchpoint): Delete declaration.
1307 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1308 * remote-mips.c (_initialize_remote_mips): Set
1309 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1310 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1311 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1312 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1313 (mips_stopped_by_watchpoint): Rename
1314 remote_mips_stopped_by_watchpoint.
1315 (mips_can_hardware_watchpoint): Rename
1316 remote_mips_can_use_hardware_watchpoint, update function
1317 signature.
1318
1319 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1320
1321 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1322 USER_DS. We haven't given them a register number yet.
1323
1324 * amd64-nat.h: New file.
1325 * amd64-nat.c: New file.
1326 * amd64fbsd-nat.c: Include "amd64-nat.h".
1327 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1328 (amd64fbsd32_r_reg_offset): New variable.
1329 (supply_gregset): Simply call amd64_supply_native_gregset.
1330 (fill_gregset): Rename `regno' to `regnum'. Simply call
1331 amd64_collect_native_gregset.
1332 (fill_fpregset): Rename `regno' to `regnum'.
1333 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1334 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1335 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1336 `fpregset_t'. Call amd64_supply_native_gregset instead of
1337 supply_gregset. Call x86_64_supply_fxsave instead of
1338 supply_fpregset.
1339 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1340 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1341 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1342 `fpregset_t'. Call amd64_collect_native_gregset instead of
1343 fill_gregset. Call x86_64_collect_fxsave instead of
1344 fill_fpregset.
1345 (_initialize_am64fbsd_nat): Initialize
1346 amd64_native_gregset32_reg_offset and
1347 amd64_native_gregset64_reg_offset.
1348 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1349
1350 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1351 null pointer. Fix typo in comment.
1352
1353 * regcache.c (supply_register): Reimplement to call
1354 regcache_raw_supply.
1355 (regcache_collect): Reimplement by calling regcache_raw_collect.
1356
1357 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1358
1359 * regcache.c (register_buffer): Consitify first argument.
1360 (regcache_raw_supply, regcache_raw_collect): New
1361 functions.
1362
1363 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1364
1365 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1366 by Nathan J. Williams.
1367
1368 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1369
1370 * lin-lwp.c (wait_lwp): New function, copied from
1371 stop_wait_callback. Clean up.
1372 (stop_wait_callback): Use wait_lwp.
1373
1374 2003-08-28 Andrew Cagney <cagney@redhat.com>
1375
1376 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1377 flavour and disassembler options.
1378 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1379 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1380 deprecated_tm_print_insn_info.
1381
1382 2003-08-27 Andrew Cagney <cagney@redhat.com>
1383
1384 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1385 Use target_read_memory.
1386 (s390_get_frame_info): Update. Do not reference
1387 deprecated_tm_print_insn_info.
1388 (s390_check_function_end, s390_is_sigreturn): Ditto.
1389
1390 2003-08-27 Andrew Cagney <cagney@redhat.com>
1391
1392 * Makefile.in (cris-tdep.o): Update dependencies.
1393 * cris-tdep.c: Include "gdb_assert.h".
1394 (cris_gdbarch_init): Set print_insn.
1395 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1396 (cris_delayed_get_disassembler): Simplify, directly call the
1397 disassembler returned by cris_get_disassembler.
1398 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1399 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1400 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1401 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1402 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1403 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1404 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1405 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1406 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1407 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1408 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1409 (gdb_print_insn_sparc): Delete function.
1410 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1411 deprecated_tm_print_insn_info.
1412 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1413 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1414 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1415 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1416 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1417 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1418 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1419 (s390_gdbarch_init): Set print_insn.
1420
1421 2003-08-27 Andrew Cagney <cagney@redhat.com>
1422
1423 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1424 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1425 * infcall.c (call_function_by_hand): Convert the entry point
1426 address into a code address.
1427
1428 2003-08-27 Andrew Cagney <cagney@redhat.com>
1429
1430 * dsrec.c: Include "gdb_string.h".
1431 * Makefile.in (dsrec.o): Update dependencies.
1432
1433 2003-08-27 Michael Chastain <mec@shout.net>
1434
1435 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1436
1437 2003-08-27 Andrew Cagney <cagney@redhat.com>
1438
1439 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1440 (alpha_osf1_init_abi): Do not set call_dummy_address.
1441
1442 2003-08-27 David Carlton <carlton@kealia.com>
1443
1444 From Randolph Chung <tausq@debian.org>:
1445 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1446 compiles with -Wformat-nonliteral -Werror.
1447
1448 2003-08-26 Jim Blandy <jimb@redhat.com>
1449
1450 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1451 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1452 bfd_lookup_symbol, since we only want symbols in code sections.
1453 (look_for_base): Pass zero as the SECT_FLAGS argument to
1454 bfd_lookup_symbol, since we're not concerned about which section
1455 the symbol is in.
1456
1457 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1458
1459 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1460 we are frameless or the return address register is already known.
1461
1462 2003-08-26 Andrew Cagney <cagney@redhat.com>
1463
1464 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1465 in size. Add comments.
1466
1467 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1468
1469 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1470 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1471
1472 2003-08-26 Jason Merrill <jason@redhat.com>
1473
1474 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1475 case out of #ifdef MIPS block.
1476
1477 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1478
1479 PR java/1322
1480 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1481 available before calling SECT_OFF_TEXT.
1482 * PROBLEMS: Remove description of java/1322.
1483
1484 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1485
1486 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1487 bof, and nat0-nat127 as pseudo-registers.
1488 (ia64_frame_cache): New struct used to cache frame info.
1489 (ia64_register_reggroup_p): New routine used to override default
1490 register grouping so registers without names are still saved and
1491 restored.
1492 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1493 pseudo values.
1494 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1495 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1496 (ia64_alloc_frame_cache): New routine to create a new
1497 ia64_frame_cache.
1498 (examine_prologue): Change prototype to add next_frame pointer.
1499 Assume frameless until otherwise proven. Verify that the cfm for
1500 current frame matches the cfm that should occur for the prologues
1501 alloc insn and if equal, mark as not frameless. At end of routine,
1502 if not frameless, calculate registers for the previous frame and store
1503 in the cache, if a cache is provided.
1504 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1505 and pass 0 for next_frame.
1506 (ia64_store_return_value): Change to use convert_typed_floating()
1507 instead of calling ia64_convert_to_raw().
1508 (ia64_extract_return_value): Change to use convert_typed_floating()
1509 instead of calling ia64_convert_to_virtual().
1510 (ia64_frame_cache): New routine to support new frame model.
1511 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1512 (ia64_frame_sniffer): Ditto.
1513 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1514 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1515 (ia64_sigtramp_frame_prev_register): Ditto.
1516 (ia64_sigtramp_frame_sniffer): Ditto.
1517 (ia64_frame_base_address): Ditto.
1518 (ia64_extract_struct_value_address): Change to issue error message.
1519 (ia64_frame_align): New routine to align sp.
1520 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1521 (ia64_push_arguments): Removed. Logic moved to
1522 ia64_push_dummy_call().
1523 (ia64_push_return_address): Ditto.
1524 (ia64_unwind_dummy_id): New function.
1525 (ia64_unwind_pc): Ditto.
1526 (ia64_convert_register_p): Ditto.
1527 (ia64_register_to_value): Ditto.
1528 (ia64_value_to_register): Ditto.
1529 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1530 (ia64_register_byte, ia64_register_raw_size): Ditto.
1531 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1532 (ia64_saved_pc_after_call): Ditto.
1533 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1534 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1535 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1536 (ia64_register_convert_to_raw): Ditto.
1537 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1538 (ia64_init_extra_frame_info): Ditto.
1539 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1540 (ia64_gdbarch_init): Remove registering of deprecated functions that
1541 are no longer used. Add registration of new gdbarch functions.
1542 Remove registering deprecated_write_sp. Replace
1543 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1544 Delete set_gdbarch_deprecated_register_convertible(),
1545 set_gdbarch_deprecated_register_convert_to_virtual(), and
1546 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1547 set_gdbarch_deprecated_register_size(),
1548 set_gdbarch_deprecated_register_bytes(),
1549 set_gdbarch_pcregnum(),
1550 set_gdbarch_deprecated_register_byte(),
1551 set_gdbarch_deprecated_register_raw_size(),
1552 set_gdbarch_deprecated_max_register_raw_size(),
1553 set_gdbarch_deprecated_register_virtual_size(),
1554 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1555 Replace set_gdbarch_deprecated_extract_return_value() with
1556 set_gdbarch_extract_return_value(). Remove calls to:
1557 set_gdbarch_deprecated_saved_pc_after_call();
1558 set_gdbarch_deprecated_frame_chain(),
1559 set_gdbarch_deprecated_frame_saved_pc(),
1560 set_gdbarch_deprecated_frame_init_saved_regs(),
1561 set_gdbarch_deprecated_get_saved_register(),
1562 set_gdbarch_deprecated_call_dummy_words(),
1563 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1564 set_gdbarch_deprecated_init_extra_frame_info(),
1565 set_gdbarch_deprecated_frame_args_address(),
1566 set_gdbarch_deprecated_frame_locals_address(),
1567 and set_gdbarch_deprecated_dummy_write_sp().
1568 Add set_gdbarch_convert_register_p(),
1569 set_gdbarch_register_to_value(),
1570 set_gdbarch_value_to_register(),
1571 set_gdbarch_push_dummy_call(),
1572 set_gdbarch_frame_align(),
1573 set_gdbarch_unwind_dummy_id(),
1574 set_gdbarch_unwind_pc(),
1575 frame_unwind_append_sniffer(),
1576 frame_unwind_append_sniffer(),
1577 and frame_base_set_default().
1578
1579 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1580
1581 * configure.tgt: Document need for special "mipsisa64" handling.
1582 (mipsisa64*-*-linux64): Handle as target linux64.
1583 (mipsisa64*-*-*): Handle as target embed64.
1584
1585 2003-08-18 Michael Chastain <mec@shout.net>
1586
1587 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1588 objfile bug.
1589
1590 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1591
1592 * i387-tdep.h: Update copyright date.
1593 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1594
1595 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1596 CFLAGS games to reflect reality.
1597
1598 2003-08-24 Andrew Cagney <cagney@redhat.com>
1599
1600 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1601 GDB_MULTI_ARCH is always non-zero.
1602 * osabi.c (_initialize_gdb_osabi): Ditto.
1603 (gdbarch_init_osabi): Ditto.
1604 * sparc-tdep.c: Ditto for #if code.
1605
1606 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1607
1608 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1609 Update comments.
1610 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1611 comments.
1612 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1613 x86_64_supply_fxsave.
1614 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1615 x86_64_supply_fxsave.
1616 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1617 x86_64_supply_fxsave.
1618
1619 2003-08-23 Andreas Jaeger <aj@suse.de>
1620
1621 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1622 i387_supply_fxsave.
1623
1624 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1625
1626 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1627 i387_supply_register.
1628 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1629 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1630 i387_supply_fsave.
1631 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1632 i387_supply_fxsave.
1633 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1634 i387_supply_fsave.
1635 * i386bsd-nat.c (supply_fpregset): Adjust call to
1636 i387_supply_fsave.
1637 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1638 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1639 supply_fpregset.
1640 (store_inferior_registers): Remove extraneous whitespace. Call
1641 i387_fill_fsave instead of fill_fpregset.
1642 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1643 (supply_fpregset): Likewise.
1644 * i386v4-nat.c (supply_fpregset): Adjust call to
1645 i387_supply_fsave.
1646 * i386-interix-nat.c (supply_fpregset): Adjust call to
1647 i387_supply_fsave.
1648 * i386-linux-nat.c (supply_fpregset): Adjust call to
1649 i387_supply_fsave.
1650 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1651 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1652 i387supply_fsave and i387_supply_fxsave.
1653 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1654 Incorporate code from `i387_supply_register.
1655 (i387_supply_register): Remove.
1656 (i387_supply_fxsave): Add `regnum' argument.
1657 Update comments.
1658 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1659 prototype.
1660 (i387_supply_register): remove prototype.
1661 Update comments.
1662
1663 2003-08-22 Michael Chastain <mec@shout.net>
1664
1665 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1666 Add lines for files in gdb/testsuite/gdb.cp/* that are
1667 still not 8.3 unique.
1668
1669 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1670
1671 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1672 TYPE_VPTR_FIELDNO is valid.
1673
1674 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1675
1676 * utils.c (set_width_command): Remove prototypes.
1677 (set_screen_size): New prototype.
1678 (init_page_info): Simplify by fetching the screen size from
1679 Readline. Call set_screen_size.
1680 (set_screen_size): New function.
1681 (set_width): Add missing whitespace in comment.
1682 (set_width_command): Call set_screen_size.
1683 (set_height_command): New function.
1684 (initialize_utils): Fix formatting. Make "set height" command
1685 call set_height_command. Remove redundant code that turns off
1686 pagination if output isn't a terminal. Remove redundant call to
1687 set_width_command.
1688
1689 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1690
1691 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1692 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1693 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1694 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1695 `case' keyword.
1696 (sparc64_register_info): Give the reister with number
1697 SPARC64_STATE_REGNUM a name.
1698 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1699 %asi and %ccr.
1700 (sparc64_push_dummy_call): Take BIAS into account when checking
1701 stcak alignment.
1702 (sparc_software_single_step): Remove assertions that check whether
1703 NPC and NNPC were zero.
1704 (sparc_supply_rwindow): Make public. Merge functionality with
1705 sparc64_supply_rwindow.
1706 (sparc_fill_rwindow): Make public. Merge functionality with
1707 sparc64_fill_rwindow.
1708 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1709 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1710 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1711 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1712 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1713
1714 * reggroups.c: Add whitespace after declarations of local
1715 variables in functions.
1716
1717 2003-08-21 Michael Chastain <mec@shout.net>
1718
1719 * gdbtypes.h: Change array bound type from an int to enum.
1720
1721 2003-08-21 Andrew Cagney <cagney@redhat.com>
1722
1723 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1724 * config/sparc/tm-sparc.h: Ditto.
1725 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1726 unconditionally.
1727 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1728
1729 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1730
1731 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1732 (register_objfile_data, set_objfile_data, objfile_data): New
1733 prototypes.
1734 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1735 prototypes.
1736 (allocate_objfile): Call objfile_alloc_data.
1737 (free_objfile): Call objfile_free_data.
1738 (struct objfile_data): New.
1739 (struct objfile_data_registration): New.
1740 (struct objfile_data_registry): New.
1741 (objfile_data_registry): New variable.
1742 (register_objfile_data): New function.
1743 (objfile_alloc_data, objfile_free_data): New functions.
1744 (set_objfile_data, objfile_data): New functions.
1745 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1746 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1747 (_initialize_dwarf2_frame): New function and prototype.
1748
1749 2003-08-21 Andrew Cagney <cagney@redhat.com>
1750
1751 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1752 a specific architecture.
1753 * arch-utils.h (set_architecture_from_arch_mach): Delete
1754 declaration.
1755 (target_architecture_hook): Delete declaration.
1756 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1757 (default_float_format): Assume GDB_MULTI_ARCH.
1758 (default_double_format): Assume GDB_MULTI_ARCH.
1759 (set_endian_from_file): Delete function.
1760 (arch_ok): Delete function.
1761 (set_arch): Delete function.
1762 (set_architecture_from_arch_mach): Delete function.
1763 (set_architecture_from_file): Delete function.
1764 (set_architecture): Assume GDB_MULTI_ARCH.
1765 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1766
1767 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1768
1769 Rewrite FreeBSD/sparc64 native configuration.
1770 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1771 * sparc64fbsd-nat.c: New file.
1772 * sparc64fbsd-tdep.c: New file.
1773 * sparc64-tdep.c sparc64-tdep.h: New files.
1774 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1775 sparc64fbsd-tdep.o): New dependencies.
1776 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1777 and sparc64fbsd-tdep.c.
1778 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1779 * config/sparc/fbsd.mh: Remove copyright notice.
1780 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1781 sparcbsd-nat.o.
1782 * config/sparc/fbsd.mt: Remove copyright notice.
1783 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1784 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1785 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1786 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1787 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1788 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1789 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1790 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1791 "sparc/tm-sp64.h".
1792 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1793 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1794
1795 2003-08-21 Michael Chastain <mec@shout.net>
1796
1797 * symtab.h: Add doco on the space critical structures and
1798 some measurements of space usage.
1799
1800 2003-08-21 Michael Snyder <msnyder@redhat.com>
1801
1802 * tracepoint.c (trace_dump_command): Trace break address
1803 is subject to DECR_PC_AFTER_BREAK.
1804 (set_traceframe_context): Make "trace_line" an int.
1805 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1806
1807 2003-08-20 Michael Snyder <msnyder@redhat.com>
1808
1809 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1810 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1811 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1812 argument passing.
1813 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1814 functions, replace sh_push_dummy_call.
1815 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1816
1817 2003-08-20 Michael Chastain <mec@shout.net>
1818
1819 * gdbtypes.h (struct main_type): Rearrange to save space.
1820
1821 2003-08-20 Michael Snyder <msnyder@redhat.com>
1822
1823 * trad-frame.c: Comment typo fix.
1824
1825 2003-08-20 Michael Snyder <msnyder@redhat.com>
1826 Kevin Buettner <kevinb@redhat.com>
1827
1828 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1829 (frv_frame_init_saved_regs): Add declaration.
1830 (frame_extra_info): Add new field ``saved_regs''.
1831 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1832 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1833 Update frame related code.
1834 (frv_extract_struct_value_address): Adjust formatting.
1835 * Makefile.in (frv-tdep.o): Update dependencies.
1836 * config/frv/tm-frv.h (target_insert_watchpoint)
1837 (target_remove_watchpoint, target_insert_hw_breakpoint)
1838 (target_remove_hw_breakpoint): Delete these macros.
1839 (remote_insert_watchpoint, remote_remove_watchpoint)
1840 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1841 these declarations.
1842
1843 2003-08-20 Michael Chastain <mec@shout.net>
1844
1845 * defs.h (ENUM_BITFIELD): New macro.
1846 * symtab.h (ENUM_BITFIELD): Use it.
1847 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1848
1849 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1850
1851 * MAINTAINERS (write after approval): Add myself.
1852
1853 2003-08-18 Andrew Cagney <cagney@redhat.com>
1854
1855 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1856 * gdbarch.h, gdbarch.c: Re-generate.
1857 * infcall.c (call_function_by_hand): Adjust the SP by
1858 frame_red_zone_size before allocating any stack space.
1859 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1860 * x86-64-tdep.c (x86_64_frame_align): New function.
1861 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1862
1863 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1864 Remove code adjusting SP so that it skips over the Red Zone.
1865
1866 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1867
1868 * NEWS (New native configurations): Mention FreeBSD/amd64.
1869
1870 2003-08-18 Andrew Cagney <cagney@redhat.com>
1871
1872 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1873 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1874 "m68k_frame_p".
1875 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1876
1877 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1878
1879 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1880
1881 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1882
1883 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1884 Define.
1885 * i386-linux-nat.c: Include "linux-nat.h".
1886 (child_post_startup_inferior): New function.
1887
1888 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1889
1890 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1891 at the start of a frameless function. This probably fixes PR
1892 backtrace/1338.
1893
1894 2003-08-17 Michael Chastain <mec@shout.net>
1895
1896 * symfile.c (find_sym_fns): Remove special case for apollo target.
1897
1898 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1899
1900 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1901 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1902 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1903 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1904 (linux_supports_tracevforkdone): New function.
1905 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1906 TRACEVFORKDONE.
1907 (child_follow_fork): Handle vfork.
1908 (linux_handle_extended_wait): Likewise. Also handle exec.
1909 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1910 * NEWS: Mention fork tracing.
1911
1912 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1913
1914 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1915
1916 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1917
1918 * Makefile.in (i386-linux-nat.o): Update dependencies.
1919 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1920 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1921 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1922 * i386-linux-nat.c: Include "linux-nat.h".
1923 (child_post_startup_inferior): New function.
1924 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1925 * infptrace.c (kill_inferior): Wrap in #ifdef.
1926 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1927 attaching to each LWP.
1928 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1929 (init_lin_lwp_ops): Fill in some more operations.
1930 * linux-nat.h (linux_enable_event_reporting)
1931 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1932 prototypes.
1933 * linux-nat.c (linux_enable_event_reporting): New function.
1934 (child_post_attach, linux_child_post_startup_inferior)
1935 (child_post_startup_inferior, child_follow_fork)
1936 (linux_handle_extended_wait, kill_inferior): New functions.
1937
1938 2003-08-16 Andrew Cagney <cagney@redhat.com>
1939
1940 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1941 * gdbarch.h, gdbarch.c: Re-generate.
1942
1943 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1944
1945 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1946
1947 2003-08-16 Andrew Cagney <cagney@redhat.com>
1948
1949 * NEWS: Mention that "set prompt-escape-char" was deleted.
1950 * top.c (get_prompt_1): Delete function.
1951 (gdb_prompt_escape):
1952 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1953 prompt-escape-char" command.
1954 (MAX_PROMPT_SIZE): Delete macro.
1955 (get_prompt): Simplify, do not call get_prompt_1.
1956
1957 2003-08-16 Andrew Cagney <cagney@redhat.com>
1958
1959 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1960 -Werror. -Wformat-nonliteral problems.
1961
1962 2003-08-15 J. Brobecker <brobecker@gnat.com>
1963
1964 Further multiarching work mostly for hppa64-*-hpux11:
1965 * hppa-tdep.h: New file.
1966 * hppa-tdep.c: #include hppa-tdep.c.
1967 (hppa32_num_regs): Renamed from hppa_num_regs.
1968 (hppa64_num_regs): New constant.
1969 (hppa64_call_dummy_breakpoint_offset): New constant.
1970 (hppa32_call_dummy_length): New constant.
1971 (hppa64_call_dummy_length): New constant.
1972 (hppa32_stack_align): Make name 32bit explicit.
1973 (hppa32_register_virtual_type): Likewise.
1974 (hppa32_extract_return_value): Likewise.
1975 (hppa32_use_struct_convention): Likewise.
1976 (hppa32_store_return_value): Likewise.
1977 (hppa64_register_virtual_type): New function.
1978 (hppa64_extract_return_value): New function.
1979 (hppa64_use_struct_convention): New function.
1980 (hppa64_store_return_value): New function.
1981 (hppa_frame_locals_address): Remove declaration, function does
1982 not exist anymore.
1983 (hppa_register_byte): Add support for PA64 ABI.
1984 (hppa_gdbarch_init): Add support for PA64 ABI.
1985 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1986 Make name 32bit explicit.
1987 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1988 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1989 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1990 (hppa64_hpux_frame_base_before_sigtramp): New function.
1991 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1992 * config/pa/tm-hppa64.h: Remove macros that are no longer
1993 necessary now that the gdbarch vector is properly setup.
1994 Transform some macros into function calls. Some minor cleanup.
1995 * config/pa/tm-hppah.h: Update function calls in macros
1996 following the function renaming in hppa-hpux-tdep.c.
1997 * Makefile.in (hppa_tdep_h): New variable.
1998 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1999
2000 2003-08-14 Michael Snyder <msnyder@redhat.com>
2001
2002 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2003
2004 2003-08-13 J. Brobecker <brobecker@gnat.com>
2005
2006 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2007 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2008 routine.
2009
2010 2003-08-13 Michael Snyder <msnyder@redhat.com>
2011
2012 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2013 (frv_saved_pc_after_call): Use deprecated ftype.
2014 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2015 (frv_remote_translate_xfer_address): Remove.
2016 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2017
2018 2003-08-13 J. Brobecker <brobecker@gnat.com>
2019
2020 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2021 initialization after the common gdbarch initialization, not before.
2022
2023 2003-08-13 J. Brobecker <brobecker@gnat.com>
2024
2025 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2026 (ADDR_BITS_REMOVE): Remove, redundant.
2027
2028 2003-08-13 J. Brobecker <brobecker@gnat.com>
2029
2030 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2031 gdbarch method to clear the 2 low bits of text addresses.
2032
2033 2003-08-12 Andrew Cagney <cagney@redhat.com>
2034
2035 * Makefile.in (dsrec.o): Update dependencies.
2036 * dsrec.c: Include "gdb_assert.h".
2037 (make_srec): Use snprintf instead of sprintf, use a literal format
2038 string.
2039
2040 2003-08-12 Andrew Cagney <cagney@redhat.com>
2041
2042 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2043 FRAME_OBSTACK_ZALLOC.
2044
2045 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2046
2047 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2048 SSE registers.
2049
2050 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2051
2052 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2053 amd64fbsd_sc_reg_offset): Add extern declarations.
2054 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2055 declarations.
2056
2057 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2058
2059 * MAINTAINERS (write after approval): Update my mail address.
2060
2061 2003-08-10 Andrew Cagney <cagney@redhat.com>
2062
2063 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2064
2065 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2066
2067 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2068 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2069 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2070 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2071 i386bsd_sc_reg_offset): Add extern declarations.
2072 * i386obsd-nat.c: Include "i386-tdep.h"
2073 (_initialize_i386obsd_nat): Remove extern declarations.
2074 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2075 declarations.
2076 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2077 declarations.
2078
2079 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2080 instead of frame_read_register.
2081 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2082 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2083 SP_REGNUM.
2084 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2085 instead of frame_unwind_unsigned_register. Use
2086 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2087 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2088 instead of read_register. Use builtin_type_void_data_ptr instead
2089 of builtin_type_void_func_ptr when extracting the address of the
2090 jmp_buf.
2091 (i386_extract_return_value, i386_store_return_value,
2092 i386_pseudo_register_read, i386_pseudo_register_write): Use
2093 register_size instead REGISTER_RAW_SIZE.
2094
2095 2003-08-10 Andrew Cagney <cagney@redhat.com>
2096
2097 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2098 sprintf. Make "name" constant.
2099
2100 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2101
2102 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2103 instead of frame_read_register.
2104 (i387_print_float_info): Use get_frame_register and
2105 get_frame_register_unsigned instead of frame_register_read.
2106
2107 * i386fbsd-nat.c: Include "i386-tdep.h".
2108 (child_resume): Make `eflags' an ULONGEST. Use
2109 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2110 instead of register_read and register_write.
2111
2112 * i386bsd-nat.c (fetch_inferior_registers,
2113 store_inferior_registers): Don't use && at the end of a line.
2114 (_initialize_i386bsd_nat): Fix typo.
2115
2116 * frame.c (_initialize_frame): Add missing backslash.
2117
2118 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2119 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2120 and supply_register instead of manipulating the register buffer
2121 directly.
2122
2123 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2124 * config/i386/nm-i386sol2.h
2125 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2126
2127 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2128 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2129 instructions that GCC likes to mingle into the prologue. Fixes
2130 gdb/1253 and gdb/1255.
2131
2132 2003-08-09 Andrew Cagney <cagney@redhat.com>
2133
2134 Fix GDB PR cli/926.
2135 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2136 * command.h (add_setshow_uinteger_cmd): Declare.
2137 * frame.c (set_backtrace_cmd): New function.
2138 (show_backtrace_cmd): New function.
2139 * frame.c (_initialize_frame): Replace "set/show
2140 backtrace-below-main" with "set/show backtrace past-main". Add
2141 command "set/show backtrace limit".
2142 (backtrace_past_main): Rename "backtrace_below_main".
2143 (backtrace_limit): New variable.
2144 (get_prev_frame): Update. Check the backtrace_limit.
2145
2146 2003-08-09 Andrew Cagney <cagney@redhat.com>
2147
2148 * defs.h (xstrprintf): Declare.
2149 * utils.c (xstrprintf): New function.
2150 * breakpoint.c (insert_breakpoints): Replace sprintf and
2151 non-literal format strings, with xstrprintf and cleanups.
2152 (delete_breakpoint,breakpoint_re_set): Ditto.
2153 (commands_command, insert_breakpoints): Ditto.
2154 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2155 (break_at_finish_command_1): Ditto.
2156
2157 2003-08-09 Andrew Cagney <cagney@redhat.com>
2158
2159 * MAINTAINERS (language support): List Adam Fedor as Objective C
2160 maintainer.
2161
2162 2003-08-08 J. Brobecker <brobecker@gnat.com>
2163
2164 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2165 are now multiarched.
2166
2167 2003-08-08 J. Brobecker <brobecker@gnat.com>
2168
2169 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2170 longer necessary now that hppa64 is partially multiarch'ed.
2171
2172 2003-08-08 Andrew Cagney <cagney@redhat.com>
2173
2174 * interps.c (interp_set): Check for a NULL "old_interp".
2175
2176 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2177
2178 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2179 (install-only): Support DESTDIR.
2180 (uninstall): Likewise.
2181 (install-gdbtk): Likewise.
2182
2183 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2184
2185 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2186 contains something meaningful at all times.
2187
2188 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2189
2190 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2191
2192 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2193
2194 * MAINTAINERS (write after approval): Added self.
2195
2196 2003-08-07 Andrew Cagney <cagney@redhat.com>
2197
2198 * inferior.h (AT_SYMBOL): Define.
2199 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2200 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2201 * mips-tdep.c (mips_call_dummy_address): Delete function.
2202 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2203 set call_dummy_address.
2204
2205 2003-08-07 Andrew Cagney <cagney@redhat.com>
2206
2207 * language.c (op_error): Delete function.
2208 (binop_type_check): Delete function.
2209 * language.h (type_op_error, range_op_error): Delete macros.
2210 (op_error): Delete declaration.
2211
2212 2003-08-07 Andrew Cagney <cagney@redhat.com>
2213
2214 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2215
2216 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2217
2218 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2219 (x86_64_push_arguments): Skip the red zone.
2220
2221 2003-08-05 Andrew Cagney <cagney@redhat.com>
2222
2223 * reggroups.c (reggroup_next): Check for the final entry.
2224
2225 2003-08-04 Andrew Cagney <cagney@redhat.com>
2226
2227 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2228 * cli/cli-script.c (define_command): Call query directly, instead
2229 of passing it a buffer.
2230 * ocd.c (ocd_error): Pass error a constant format string.
2231 * remote-mips.c (mips_error): Use fputs_filtered.
2232
2233 * solib-svr4.c (_initialize_svr4_solib): Update
2234 register_gdbarch_data call.
2235 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2236
2237 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2238 (register_gdbarch_data): Delete "free" parameter. Update
2239 comments.
2240 * gdbarch.h, gdbarch.c: Re-generate.
2241 * reggroups.c (_initialize_reggroup): Update.
2242 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2243 * frame-base.c (_initialize_frame_base): Update.
2244 * frame-unwind.c (_initialize_frame_unwind): Update.
2245 * user-regs.c (_initialize_user_regs): Update.
2246 * remote.c (_initialize_remote): Update.
2247 * regcache.c (_initialize_regcache): Update.
2248
2249 * regcache.c (xfree_regcache_descr): Delete function.
2250 (_initialize_regcache): Update call to register_gdbarch_data.
2251 (init_regcache_descr, init_legacy_regcache_descr): Use
2252 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2253
2254 * remote.c (free_remote_state): Delete function.
2255 (_initialize_remote): Update register_gdbarch_data.
2256 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2257 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2258
2259 2003-08-04 Andrew Cagney <cagney@redhat.com>
2260
2261 * reggroups.c (struct reggroup_el): Define.
2262 (struct reggroups): Delete field "nr_group". Replace array
2263 "group" with a "first" to "last" linked list.
2264 (reggroups_init): Update. Allocate using gdbarch's obstack.
2265 (reggroups_free): Delete function.
2266 (add_group): Update. Add "el" parameter.
2267 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2268 (default_groups): Update.
2269 (reggroup_next): Replace reggroups.
2270 (reggroups_dump): Update.
2271 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2272 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2273 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2274
2275 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2276
2277 * Makefile.in (tui-interp.o): Update dependencies.
2278
2279 2003-08-04 David Carlton <carlton@kealia.com>
2280
2281 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2282 to internal_error call.
2283 * source.c (forward_search_command): Add "%s" format argument.
2284 (reverse_search_command): Ditto.
2285 * top.c (quit_confirm): Ditto.
2286 * cli/cli-setshow.c (do_setshow_command): Ditto.
2287 * cp-valprint.c (cp_print_class_method): Replace
2288 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2289 (cp_print_class_member): Ditto.
2290 * event-top.c (command_line_handler): Ditto.
2291 * linux-proc.c (linux_info_proc_cmd): Ditto.
2292 * p-typeprint.c (pascal_type_print_base): Ditto.
2293 * p-valprint.c (pascal_object_print_class_method): Ditto.
2294 (pascal_object_print_class_member): Ditto.
2295 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2296 * remote.c (remote_cisco_section_offsets): Ditto.
2297 * top.c (command_line_input): Ditto.
2298 * utils.c (vwarning,error_stream,quit): Ditto.
2299 * valprint.c (print_floating,print_binary_chars)
2300 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2301
2302 2003-08-04 Andrew Cagney <cagney@redhat.com>
2303
2304 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2305
2306 2003-08-02 Andrew Cagney <cagney@redhat.com>
2307
2308 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2309 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2310 amd64fbsd-nat.c.
2311
2312 2003-08-02 Andrew Cagney <cagney@redhat.com>
2313
2314 * Makefile.in: Update all dependencies and definitions.
2315
2316 2003-08-02 Adam Fedor <fedor@gnu.org>
2317
2318 * linespec.c (is_objc_method_format): New function
2319 (decode_line_1, locate_first_half): Use it.
2320 Fixes PR objc/1298
2321
2322 2003-08-01 Andrew Cagney <cagney@redhat.com>
2323
2324 * NEWS: Mention that m32r is multi-arch.
2325 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2326 * configure.tgt: Recognize m32r-*-*.
2327 * config/m32r/tm-m32r.h: Delete file.
2328 * config/m32r/m32r.mt: New file.
2329 * m32r-rom.c (m32r_upload_command): Use hostent only when
2330 gethostname succeeds, in order to avoid a compilation
2331 warning.
2332 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2333 compiler warning.
2334
2335 2003-08-01 Michael Snyder <msnyder@redhat.com>
2336
2337 * sh-tdep.c (sh_frame_align): New gdbarch method.
2338 (sh_gdbarch_init): Set up frame_align method.
2339
2340 2003-07-31 Michael Snyder <msnyder@redhat.com>
2341
2342 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2343 which is already covered by the new frames infrastructure.
2344
2345 2003-07-31 Andrew Cagney <cagney@redhat.com>
2346
2347 * user-regs.c (struct user_reg): Add "next" link.
2348 (struct user_regs): Replace "user" with "first" and "last" links.
2349 (append_user_reg): Add pre-allocated "reg" parameter.
2350 (builtin_user_regs): Provide initial value for "last".
2351 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2352 (user_regs_init): Allocate memory from the gdbarch obstack.
2353 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2354 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2355 linked list.
2356 (usernum_to_user_reg): New function.
2357 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2358 (value_of_user_reg): Use usernum_to_user_reg.
2359 (user_regs_free): Delete function.
2360 (_initialize_user_regs): Update register_gdbarch_data call.
2361
2362 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2363
2364 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2365
2366 2003-07-30 Michael Snyder <msnyder@redhat.com>
2367
2368 * value.h (value_being_returned): Add a struct_addr argument.
2369 * infcall.c (call_function_by_hand): Pass struct_addr to
2370 value_being_returned.
2371 * infcmd.c (print_return_value): Pass zero as struct_addr.
2372 * values.c (value_being_returned): If struct_addr is passed,
2373 use it instead of trying to recover it from the inferior.
2374
2375 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2376
2377 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2378 the prologue analyzer won't need to attempt to extract the pc
2379 value from the woefully incomplete dummy frame.
2380 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2381 possible. Disable code which modifies the frame.
2382
2383 2003-07-28 Andrew Cagney <cagney@redhat.com>
2384
2385 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2386 to level 2.
2387 (annotate_breakpoints_table, annotate_record): Ditto.
2388 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2389 (annotate_field_name_end, annotate_field_value): Ditto.
2390 (annotate_field_end, annotate_frame_source_begin): Ditto.
2391 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2392 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2393 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2394 (annotate_frame_address_end, annotate_frame_address): Ditto.
2395 (annotate_frame_args, annotate_frame_end): Ditto.
2396 (annotate_frame_where, annotate_arg_begin): Ditto.
2397 (annotate_arg_name_end, annotate_arg_value): Ditto.
2398 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2399 (annotate_function_call, annotate_signal_name): Ditto.
2400 (annotate_signal_string, annotate_signal_name_end): Ditto.
2401 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2402 (annotate_value_begin, annotate_value_history_value): Ditto.
2403 (annotate_value_history_end, annotate_value_end): Ditto.
2404 (annotate_display_begin, annotate_display_number_end): Ditto.
2405 (annotate_display_format, annotate_display_expression): Ditto.
2406 (annotate_display_expression_end, annotate_display_value): Ditto.
2407 (annotate_display_end, annotate_array_section_begin): Ditto.
2408 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2409 (annotate_elt, annotate_array_section_end): Ditto.
2410
2411 2003-07-28 Andrew Cagney <cagney@redhat.com>
2412
2413 * regcache.c (struct regcache_descr): Update comments on
2414 nr_raw_registers.
2415 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2416 sizeof_raw_register_valid_p.
2417 (init_regcache_descr): Set nr_raw_registers and
2418 sizeof_raw_register_valid_p before calling
2419 init_legacy_regcache_descr.
2420
2421 2003-07-28 Andrew Cagney <cagney@redhat.com>
2422
2423 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2424 MOD NUM_REGS.
2425
2426 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2427
2428 * thread.c (info_threads_command): Use get_selected_frame ().
2429 Check that there is at least one non-sentinel frame.
2430
2431 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2432
2433 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2434 (m68hc11_pop_frame): Remove.
2435 (m68hc11_frame_saved_pc): Remove.
2436 (m68hc11_frame_chain): Remove.
2437 (m68hc11_frame_init_saved_regs): Remove.
2438 (m68hc11_init_extra_frame_info): Remove.
2439 (m68hc11_store_struct_return): Remove.
2440 (m68hc11_saved_pc_after_call): Remove.
2441
2442 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2443
2444 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2445 frame unwind information.
2446 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2447 and adapted for frame unwinding.
2448 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2449 (m68hc11_unwind_pc): New function.
2450 (m68hc11_frame_unwind_cache): New function to analyze frames.
2451 (m68hc11_frame_this_id): New function to create new frame struct.
2452 (m68hc11_frame_prev_register): New function to unwind a register from
2453 the frame.
2454 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2455 (m68hc11_frame_p): New function for the above.
2456 (m68hc11_frame_base_address): New function to return fp of frame.
2457 (m68hc11_frame_args_address): Update for frame.
2458 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2459 (m68hc11_unwind_sp): New function.
2460 (m68hc11_unwind_dummy_id): New function.
2461 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2462 calls.
2463
2464 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2465
2466 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2467 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2468 when we are beyond the current pc.
2469
2470 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2471
2472 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2473 from m68hc11_push_arguments.
2474 (m68hc11_push_arguments): Remove.
2475 (m68hc11_push_return_address): Remove.
2476 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2477 handlers; remove deprecated_extra_stack_alignment_needed.
2478
2479 2003-07-27 Andrew Cagney <cagney@redhat.com>
2480
2481 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2482 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2483 REAL_PC and not the pointer.
2484 * hppa-hpux-tdep.c: Include frame.h
2485
2486 2003-07-27 Andrew Cagney <cagney@redhat.com>
2487
2488 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2489 GDB_MULTI_ACH_PARTIAL.
2490
2491 2003-07-27 Andrew Cagney <cagney@redhat.com>
2492
2493 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2494 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2495 operator at start and not end of line.
2496 (decode_prologue): Ditto.
2497 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2498 frame_unwind_register_unsigned instead of
2499 frame_unwind_unsigned_register.
2500 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2501 read_register.
2502 (m32r_push_dummy_call): Use register_size instead of
2503 REGISTER_RAW_SIZE.
2504 (m32r_frame_sniffer): Replace m32r_frame_p.
2505 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2506 * m32r-rom.c (report_transfer_performance): Delete extern
2507 declaration.
2508 (m32r_load, m32r_upload_command): Use print_transfer_performance
2509 instead of report_transfer_performance.
2510 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2511 / add_show_from_set.
2512
2513 2003-07-26 Andrew Cagney <cagney@redhat.com>
2514
2515 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2516 store_return_value and extract_struct_value_address.
2517
2518 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2519
2520 PR c++/1267
2521 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2522 NULL, default to the section containing PC.
2523
2524 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2525
2526 * NEWS: Mention "regs" deprecated for m68hc11 too.
2527
2528 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2529 (m68hc11_print_register): New function to print out one register.
2530 (m68hc11_print_registers_info): New function to print registers.
2531 (show_regs): Deprecate and use the above.
2532 (m68hc11_gdbarch_init): Install the print_registers_info.
2533
2534 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2535
2536 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2537 that we have a SIGTRAP before returning non-zero.
2538
2539 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2540 Elena Zannoni <ezannoni@redhat.com>
2541
2542 * linespec.c (decode_line_2): Avoid crash if
2543 find_function_start_sal() returns empty record.
2544
2545 2003-07-23 Andreas Schwab <schwab@suse.de>
2546
2547 * ia64-tdep.c (ia64_print_insn): New function.
2548 (ia64_gdbarch_init): Set print_insn to it.
2549 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2550 deprecated_tm_print_insn_info.
2551
2552 2003-07-22 Michael Snyder <msnyder@redhat.com>
2553
2554 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2555 handle 8-bit returns (long long).
2556 (h8300h_extract_return_value): Ditto.
2557 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2558
2559 2003-07-22 Andrew Cagney <cagney@redhat.com>
2560
2561 * gdbarch.c Include "gdb_obstack.h".
2562 (struct gdbarch): Add an "obstack".
2563 (alloc_gdbarch_data): Allocate the gdbarch data using
2564 GDBARCH_OBSTACK_CALLOC.
2565 (free_gdbarch_data): Delete function.
2566 (gdbarch_obstack_zalloc): New function.
2567 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2568 Assert that the architecture is not initialized.
2569 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2570 vector from the obstack.
2571 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2572 architecture obstack.
2573 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2574 (set_gdbarch_data): Assert that the data is not initialized.
2575 (struct gdbarch_data): Delete member "free".
2576 (register_gdbarch_data): Do not initialize "free".
2577 * gdbarch.h, gdbarch.c: Re-generate.
2578
2579 2003-07-22 Andrew Cagney <cagney@redhat.com>
2580
2581 * configure.in (build_warnings): Add -Wformat-nonliteral.
2582 * configure: Re-generate.
2583
2584 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2585
2586 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2587
2588 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2589
2590 * findvar.c (read_var_value): Remove case for thread local storage
2591 variables. It is now entirely handled by the dwarf2 location
2592 expression code.
2593 * printcmd.c (address_info): Ditto.
2594 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2595 enumeration value.
2596 (struct symbol): Remove objfile field, which was used by
2597 LOC_THREAD_LOCAL_STATIC only.
2598 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2599 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2600 usage of objfile pointer.
2601 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2602 thread local variables.
2603 Add include of objfiles.h.
2604 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2605 storage variables.
2606 * Makefile.in (dwarf2loc.o): Update dependencies.
2607
2608 2003-07-22 Andrew Cagney <cagney@redhat.com>
2609
2610 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2611 get_frame_base.
2612 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2613 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2614 (struct value): Add opaque declaration.
2615 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2616
2617 2003-07-21 Andrew Cagney <cagney@redhat.com>
2618
2619 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2620 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2621
2622 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2623
2624 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2625 regcache_cooked_read_unsigned instead of read_register.
2626 (m68hc11_saved_pc_after_call): Likewise.
2627 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2628 instead of write_register.
2629 (m68hc11_register_type): New function.
2630 (m68hc11_register_virtual_type): Remove.
2631 (m68hc11_store_return_value): Convert to use the regcache.
2632 (m68hc11_extract_struct_value_address): Likewise.
2633 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2634 m68hc11_register_type; undeprecate store_return_value and
2635 extract_struct_value_address.
2636
2637 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2638
2639 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2640 and translate to use regcache.
2641 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2642
2643 2003-07-18 Andrew Cagney <cagney@redhat.com>
2644
2645 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2646 * gdbarch.h, gdbarch.c: Re-generate.
2647 * i386-tdep.c (i386_gdbarch_init): Do not set
2648 DWARF2_BUILD_FRAME_INFO.
2649 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2650 unconditionally.
2651 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2652 DWARF2_BUILD_FRAME_INFO.
2653
2654 2003-07-18 Andrew Cagney <cagney@redhat.com>
2655
2656 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2657 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2658
2659 2003-07-18 Andrew Cagney <cagney@redhat.com>
2660
2661 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2662 frame_unwind_address_in_block, instead of frame_pc_unwind.
2663 (dwarf2_frame_cache): Ditto.
2664
2665 2003-07-18 Andrew Cagney <cagney@redhat.com>
2666
2667 * user-regs.h (struct gdbarch): Declare opaque.
2668 * ui-out.h (struct ui_file): Declare opaque.
2669 * dwarf2-frame.h (struct frame_info): Declare opaque.
2670
2671 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2672
2673 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2674 #include "...".
2675 (procfs_meminfo): Change strerror to safe_strerror.
2676 (procfs_can_run): Remove K&R badness.
2677
2678 2003-07-17 Michael Snyder <msnyder@redhat.com>
2679
2680 * remote-sim.c: Comment typo fix.
2681
2682 2003-07-17 Andrew Cagney <cagney@redhat.com>
2683
2684 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2685 configure.
2686 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2687 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2688 GDB_MULTI_ARCH_PARTIAL.
2689
2690 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2691
2692 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2693 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2694 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2695
2696 2003-07-16 Theodore A. Roth <troth@openavr.org>
2697
2698 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2699 found.
2700 (avr_frame_unwind_cache): Don't unwind FP for main.
2701 Update a comment.
2702 Save the computed prev_sp.
2703 (avr_saved_regs_unwinder): Remove function.
2704 (avr_frame_prev_register): Use PC unwind logic from
2705 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2706
2707 2003-07-16 Andrew Cagney <cagney@redhat.com>
2708
2709 * frame-base.h (frame_base_p_ftype): Delete definition.
2710 (frame_base_append_predicate): Delete declaration.
2711 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2712 (frame_unwind_append_predicate): Delete declaration.
2713 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2714 (append_predicate): Delete parameter "p".
2715 (frame_unwind_append_predicate): Delete function.
2716 (frame_unwind_append_sniffer): Update call to append_predicate.
2717 (frame_unwind_free): Delete function.
2718 (_initialize_frame_unwind): Pass NULL as "free" to
2719 register_gdbarch_data.
2720 (frame_unwind_init): Append the dummy_frame_sniffer.
2721 (frame_unwind_find_by_frame): Simplify.
2722 * frame-base.c (struct frame_base_table): Delete field "p".
2723 (append_predicate): Delete parameter "p".
2724 (frame_base_append_predicate): Delete function.
2725 (frame_base_append_sniffer): Update call to append_predicate.
2726 (frame_base_free): Delete function.
2727 (frame_base_find_by_frame): Simplify.
2728 (_initialize_frame_base): Pass NULL as "free" to
2729 register_gdbarch_data.
2730 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2731 (x86_64_sigtramp_frame_sniffer): Replace
2732 "x86_64_sigtramp_frame_p".
2733 (x86_64_init_abi): Set the frame unwind sniffers.
2734 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2735 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2736 (m68k_gdbarch_init): Set the frame unwind sniffers.
2737 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2738 "i386_sigtramp_frame_p".
2739 (i386_frame_sniffer): Replace "i386_frame_p".
2740 (i386_gdbarch_init): Set the frame unwind sniffers.
2741 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2742 (avr_gdbarch_init): Set the frame unwind sniffers.
2743 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2744 "alpha_sigtramp_frame_p"
2745 (alpha_heuristic_frame_sniffer): Replace
2746 "alpha_heuristic_frame_p".
2747 (alpha_gdbarch_init): Set the frame unwind sniffers.
2748 (alpha_dwarf2_init_abi): Ditto.
2749 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2750 "alpha_debug_frame_p".
2751 (alpha_mdebug_frame_base_sniffer): Replace
2752 "alpha_mdebug_frame_base_p".
2753 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2754 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2755 (d10v_gdbarch_init): Set the frame unwind sniffer.
2756 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2757 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2758 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2759 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2760 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2761 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2762
2763 2003-07-16 Michael Snyder <msnyder@redhat.com>
2764
2765 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2766 should go thru sh_dsp_register_sim_regno, else the dsp regs
2767 will not get the right values.
2768
2769 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2770
2771 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2772 deprecated_store_floating by call to store_typed_floating.
2773 (sh_sh4_register_convert_to_raw): Substitute call to
2774 deprecated_extract_floating by call to extract_typed_floating.
2775
2776 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2777
2778 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2779
2780 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2781
2782 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2783 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2784 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2785 as possible.
2786 (do_pseudo_register): Remove.
2787 (sh_push_dummy_code): New function.
2788 (sh64_store_struct_return): Rename from sh_store_struct_return.
2789 Only called for sh64 now.
2790 (sh_extract_struct_value_address): Regcache'ify.
2791 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2792 and accomodate new tasks.
2793 (sh64_push_return_address): Rename from sh_push_return_address.
2794 Only called for sh64 now.
2795 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2796 Regcache'ify.
2797 (sh3e_sh4_extract_return_value): Regcache'ify.
2798 (sh_default_store_return_value): Ditto.
2799 (sh3e_sh4_store_return_value): Ditto.
2800 (sh_default_register_byte): Remove.
2801 (sh_sh4_register_byte): Remove.
2802 (sh_default_register_raw_size): Remove.
2803 (sh_sh4_register_raw_size): Remove.
2804 (sh_register_virtual_size): Remove.
2805 (sh_sh3e_register_virtual_type): Remove.
2806 (sh_sh3e_register_type): New function.
2807 (sh_sh4_register_virtual_type): Remove.
2808 (sh_sh4_register_type): New function.
2809 (sh_default_register_virtual_type): Remove.
2810 (sh_default_register_type): New function.
2811 (do_fv_register_info): Add parameters to accomodate call from
2812 sh_print_registers_info.
2813 (do_dr_register_info): Ditto.
2814 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2815 Add parameters to accomodate call from sh_print_registers_info.
2816 (sh_do_fp_register): Ditto.
2817 (sh64_do_pseudo_register): Call do_dr_register_info,
2818 do_fv_register_info and sh_do_fp_register with default parameters.
2819 (sh_do_register): Add parameters to accomodate call from
2820 sh_print_registers_info.
2821 (sh_print_register): Ditto.
2822 (sh_print_registers_info): Rename from sh_do_registers_info.
2823 Add parameters to be used as gdbarch_print_registers_info
2824 implementation. Accomodate removed do_pseudo_register function
2825 pointer.
2826 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2827 function pointer. Call sh_print_register with default parameters.
2828 (sh64_do_registers_info): Call sh_print_registers_info instead of
2829 sh_do_registers_info.
2830 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2831 detection of deprecated vs. non-deprecated functionality.
2832 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2833 function pointer assignments by direct function calls.
2834
2835 2003-07-15 Andrew Cagney <cagney@redhat.com>
2836
2837 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2838 (frame_register_unwind, create_new_frame): Ditto.
2839 (legacy_get_prev_frame, get_frame_type): Ditto.
2840 (get_frame_base_address): Use frame_base_find_by_frame.
2841 (get_frame_locals_address): Use frame_base_find_by_frame.
2842 (get_frame_args_address): Use frame_base_find_by_frame.
2843 * frame-base.h (frame_base_sniffer_ftype): Declare.
2844 (frame_base_append_sniffer): Declare.
2845 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2846 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2847 (frame_base_append_sniffer): New function.
2848 (frame_base_append_predicate): Add a NULL sniffer.
2849 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2850 (struct frame_base_table): Add "sniffer".
2851 (frame_base_free): Free the "sniffer" table.
2852 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2853 (frame_unwind_append_sniffer): Declare.
2854 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2855 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2856 (struct frame_unwind_table): Add "sniffer", delete "middle".
2857 (append_predicate): Add "sniffer" parameter, append the sniffer.
2858 (frame_unwind_init): Update append_predicate call.
2859 (frame_unwind_append_sniffer): New function.
2860 (frame_unwind_append_predicate): Update append_predicate call.
2861 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2862
2863 2003-07-15 Andrew Cagney <cagney@redhat.com>
2864
2865 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2866 before code inhibiting repeated unwind attempts. Add to
2867 commentary on that test's problems.
2868 * blockframe.c (inside_main_func): Look for "main" in the minimal
2869 symbol table.
2870 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2871 identical.
2872
2873 2003-07-15 Andrew Cagney <cagney@redhat.com>
2874
2875 * complaints.c (struct explanation): Define.
2876 (struct complaints): Change type of "explanation" to "struct
2877 explanation".
2878 (symfile_explanations): Convert to a "struct explanation" table.
2879 (vcomplaint): Update.
2880
2881 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2882
2883 * x86-64-linux-nat.c (regmap): Removed.
2884 (supply_gregset, fill_gregset): Call
2885 x86_64_linux_(fill,supply)_gregset functions.
2886 * x86-64-linux-tdep.c (USER_*): New defines.
2887 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2888 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2889 New functions.
2890 (fetch_core_registers): Ditto.
2891 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2892 * x86-64-linux-tdep.h: New file.
2893 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2894 and core-regset.o.
2895 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2896
2897 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2898
2899 * x86-64-tdep.c (x86_64_store_return_value): Use
2900 regcache_cooked_write_part instead of regcache_cooked_write.
2901
2902 * configure.host: Add x86_64-*-freebsd*.
2903 * configure.tgt: Add x86_64-*-freebsd*.
2904 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2905 * amd64fbsd-nat.c: New file.
2906 * amd64fbsd-tdep.c: New file.
2907 * config/i386/nm-fbsd64.h: New file.
2908 * config/i386/fbsd64.mh: New file.
2909 * config/i386/fbsd64.mt: New file.
2910
2911 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2912
2913 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2914 `sc_regs_offset' and `sc_fpregs_offset'.
2915 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2916 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2917 (alpha_sigtramp_register_address): Rewrite to use new members of
2918 `struct gdbarch_tdep'.
2919 (alpha_gdbarch_init): Initialize new members of struct
2920 gdbarch_tdep'.
2921 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2922 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2923 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2924 (alphafbsd_pc_in_sigtramp): Implement.
2925 (alphafbsd_sigtramp_offset): New function.
2926 (alphafbsd_sigcontext_addr): New function.
2927 (alphafbsd_init_abi): Initialize signal trampoline related members
2928 of `struct gdbarch_tdep'.
2929 (_initialize_alphafbsd_tdep): Add prototype.
2930
2931 2003-07-11 Theodore A. Roth <troth@openavr.org>
2932
2933 * Makefile.in (install-only): Quote sed expression when generating
2934 transformed_name.
2935
2936 2003-07-11 Richard Henderson <rth@redhat.com>
2937
2938 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2939 * dwarf2-frame.c: Include complaints.h.
2940 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2941 variable initialization; return NULL on error.
2942 (decode_frame_entry): New.
2943
2944 2003-07-11 Andrew Cagney <cagney@redhat.com>
2945
2946 * frame.h (frame_address_in_block): Delete declaration.
2947 * blockframe.c (frame_address_in_block): Delete function.
2948 (get_frame_block): Use get_frame_address_in_block.
2949 (block_innermost_frame): Ditto.
2950 * stack.c (print_frame, backtrace_command_1): Ditto.
2951
2952 * frame.h (get_frame_address_in_block): Declare.
2953 (frame_unwind_address_in_block): Declare.
2954 * frame.c (frame_unwind_address_in_block): New function.
2955 (get_frame_address_in_block): New function.
2956
2957 2003-07-10 Andrew Cagney <cagney@redhat.com>
2958
2959 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2960 pre-default. Note: re-generate has no effect.
2961
2962 2003-07-10 Andrew Cagney <cagney@redhat.com>
2963
2964 * gdbarch.sh: When a variable, but not a function, compare against
2965 0. Fix problem in previous patch.
2966 * gdbarch.c: Re-generate.
2967
2968 2003-07-10 Andrew Cagney <cagney@redhat.com>
2969
2970 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2971 functions against NULL, not 0.
2972 * gdbarch.c: Re-generate.
2973
2974 2003-07-10 Fred Fish <fnf@ninemoons.com>
2975
2976 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2977 null string instead of a null pointer.
2978 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2979
2980 2003-07-09 Michael Snyder <msnyder@redhat.com>
2981
2982 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2983
2984 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2985
2986 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2987 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2988 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2989 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2990 * x86-64-tdep.c: ... from here.
2991
2992 2003-07-09 Andreas Schwab <schwab@suse.de>
2993
2994 * m68k-tdep.h (enum struct_return): Define.
2995 (struct gdbarch_tdep): Add struct_return.
2996 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2997 bytes are padded to the right, not to the left. Pass struct value
2998 address in register %a1, not on stack.
2999 (m68k_use_struct_convention): New function.
3000 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3001 struct_return in tdep to pcc_struct_return.
3002 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3003 reg_struct_return.
3004
3005 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3006
3007 * somread.c (som_symfile_offsets): Fix compilation error.
3008
3009 2003-07-09 Andrew Cagney <cagney@redhat.com>
3010
3011 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3012 Add comments about the checks.
3013
3014 2003-07-08 Andrew Cagney <cagney@redhat.com>
3015
3016 * Makefile.in: Make dependency section headers consistent.
3017 (config_h): Move to $BUILD headers section.
3018 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3019 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3020 (ada-exp.tab.c): Move to YACC/LEX section.
3021 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3022 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3023
3024 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3025
3026 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3027 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3028 of strerror with safe_strerror, use ISO C function definitions,
3029 and replace instances of sprintf with snprintf.
3030
3031 2003-07-07 Andrew Cagney <cagney@redhat.com>
3032
3033 * frame.c (get_prev_frame): Enable check for identical frames.
3034 Update comments. Update error messages.
3035
3036 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3037
3038 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3039
3040 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3041
3042 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3043 sort_symtab_syms, no longer necessary.
3044
3045 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3046
3047 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3048
3049 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3050
3051 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3052 (mips_register_byte): Likewise.
3053
3054 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3055
3056 * Makefile.in (sparc_tdep_h): New.
3057 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3058 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3059 * sparc-linux-nat.c: Include "sparc-tdep.h".
3060 * sparc-nat.c: Likewise.
3061 * sparc-tdep.c: Likewise.
3062 * sparc64nbsd-nat.c: Likewise.
3063 * sparcnbsd-nat.c: Likewise.
3064 * sparcnbsd-tdep.c: Likewise.
3065 * sparc-tdep.h: New file.
3066 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3067 and sparc_npc_regnum.
3068
3069 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3070
3071 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3072 (mips_linux_cannot_store_register): List supported instead of
3073 unsupported registers.
3074
3075 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3076
3077 * disasm.c (dump_insns): Separate instructions from addresses.
3078
3079 2003-07-07 Andreas Schwab <schwab@suse.de>
3080
3081 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3082 dependencies.
3083 * m68k-tdep.c (NUM_FREGS): Delete.
3084 (SIG_PC_FP_OFFSET): Delete.
3085 (TARGET_M68K): Delete.
3086 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3087 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3088 P_MOVEL_SP, P_MOVEML_SP): Define.
3089 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3090 P_TRAP): Delete.
3091 (m68k_register_raw_size): Delete.
3092 (m68k_register_virtual_size): Delete.
3093 (m68k_register_type): Renamed from m68k_register_virtual_type and
3094 add gdbarch argument.
3095 (m68k_store_struct_return): Delete.
3096 (m68k_deprecated_extract_return_value): Delete.
3097 (m68k_deprecated_extract_struct_value_address): Delete.
3098 (m68k_frame_chain): Delete.
3099 (m68k_frame_saved_pc): Delete.
3100 (m68k_fix_call_dummy): Delete.
3101 (m68k_push_dummy_frame): Delete.
3102 (m68k_pop_frame): Delete.
3103 (m68k_extract_return_value): New function.
3104 (m68k_store_return_value): Rewrite using regcache.
3105 (m68k_extract_struct_value_address): Rewrite using regcache.
3106 (m68k_push_dummy_call): New function.
3107 (struct m68k_frame_cache): Define.
3108 (m68k_alloc_frame_cache): New function.
3109 (m68k_analyze_frame_setup): New function.
3110 (m68k_analyze_register_saves): New function.
3111 (m68k_analyze_prologue): New function.
3112 (m68k_skip_prologue): Rewrite using above functions.
3113 (m68k_unwind_pc): New function.
3114 (m68k_frame_cache): New function.
3115 (m68k_frame_this_id): New function.
3116 (m68k_frame_prev_register): New function.
3117 (m68k_frame_unwind): New variable.
3118 (m68k_frame_p): New function.
3119 (m68k_sigtramp_frame_cache): New function.
3120 (m68k_sigtramp_frame_this_id): New function.
3121 (m68k_sigtramp_frame_prev_register): New function.
3122 (m68k_sigtramp_frame_unwind): New variable.
3123 (m68k_sigtramp_frame_p): New function.
3124 (m68k_frame_base_address): New function.
3125 (m68k_frame_base): New function.
3126 (m68k_unwind_dummy_id): New function.
3127 (fill_gregset): Use regcache_collect.
3128 (fill_fpregset): Likewise.
3129 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3130 defined.
3131 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3132 deprecated_init_frame_pc, deprecated_store_struct_return,
3133 deprecated_extract_return_value, deprecated_store_return_value,
3134 deprecated_frame_chain, deprecated_frame_saved_pc,
3135 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3136 deprecated_register_virtual_size,
3137 deprecated_max_register_raw_size,
3138 deprecated_max_register_virtual_size,
3139 deprecated_register_virtual_type, deprecated_register_size,
3140 deprecated_register_byte, deprecated_register_bytes,
3141 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3142 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3143 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3144 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3145 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3146 deprecated_push_dummy_frame, deprecated_pop_frame,
3147 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3148 only if SYSCALL_TRAP is defined. Set extract_return_value,
3149 store_return_value, extract_struct_value_address, register_type,
3150 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3151 predicates.
3152 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3153 M68K_MAX_REGISTER_SIZE): Define.
3154 (struct m68k_sigtramp_info): Define.
3155 (struct gdbarch_tdep): Add get_sigtramp_info.
3156 * m68klinux-nat.c (fetch_register): Use register_size instead of
3157 REGISTER_RAW_SIZE. Don't put assignment in if.
3158 (store_register): Likewise.
3159 (fetch_inferior_registers): Likewise.
3160 (store_inferior_registers): Likewise.
3161 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3162 (m68k_linux_frame_saved_pc): Delete.
3163 (m68k_linux_sigcontext_reg_offset,
3164 m68k_linux_ucontext_reg_offset): Define.
3165 (m68k_linux_get_sigtramp_info): New function.
3166 (m68k_linux_extract_return_value): Rewrite using regcache.
3167 (m68k_linux_store_return_value): Likewise.
3168 (m68k_linux_extract_struct_value_address): Likewise.
3169 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3170 Don't set deprecated_frame_saved_pc,
3171 deprecated_extract_return_value, deprecated_store_return_value,
3172 deprecated_extract_struct_value_address. Set
3173 extract_return_value, store_return_value,
3174 extract_struct_value_address.
3175
3176 2003-07-07 Andrew Cagney <cagney@redhat.com>
3177
3178 * expprint.c: Include "user-regs.h" instead of "frame.h".
3179 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3180 frame_map_regnum_to_name.
3181 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3182 (frame_map_name_to_regnum): Simplify, call
3183 user_reg_map_name_to_regnum.
3184 (frame_map_regnum_to_name): Simplify, call
3185 user_reg_map_regnum_to_name.
3186 (frame_register_unwind): Update.
3187 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3188 (_initialize_frame_reg): Call user_reg_add_builtin.
3189 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3190 (value_of_register): Use value_of_user_reg.
3191 * eval.c (evaluate_subexp_standard): Update.
3192 * parse.c (write_dollar_variable): Update.
3193 * d10v-tdep.c (d10v_print_registers_info): Update.
3194 * infcmd.c (registers_info): Update.
3195 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3196 (builtin_regs_h): Delete macro.
3197 (user_regs_h): Define.
3198 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3199 (builtin-regs.o): Delete target.
3200 (user-regs.o): Specify dependencies.
3201 (expprint.o): Update dependencies.
3202 (findvar.o): Update dependencies.
3203 (frame.o): Update dependencies.
3204 (std-regs.o): Update dependencies.
3205
3206 2003-07-06 Christopher Faylor <cgf@redhat.com>
3207
3208 * win32-nat.c (solib_symbols_add): Use one variable for all section
3209 address stuff. Pass variable rather than address of variable to
3210 safe_symbol_file_add.
3211
3212 2003-07-06 Andreas Schwab <schwab@suse.de>
3213
3214 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3215
3216 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3217
3218 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3219
3220 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3221
3222 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3223
3224 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3225
3226 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3227 * config/i386/nto.mh: New file.
3228 * config/i386/nm-nto.h: New file.
3229 * configure.host: Add i[3456]86-*-nto*.
3230
3231 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3232
3233 * remote-vx.c (vx_add_symbols): Fix compilation error.
3234
3235 2003-07-03 Andrew Cagney <cagney@redhat.com>
3236
3237 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3238 * gdbarch.h, gdbarch.c: Re-generate.
3239 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3240 (legacy_register_name): Declare.
3241 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3242 (REGISTER_NAME): Define.
3243 * sparc-tdep.c (legacy_register_name): New function.
3244 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3245 (REGISTER_NAME): Define.
3246 (hppa64_register_name): Declare.
3247 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3248 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3249 (hppa64_register_name): New function.
3250 (hppa_register_name): New function.
3251 * arch-utils.c (legacy_register_name): Delete.
3252 * arch-utils.h (legacy_register_name): Delete.
3253
3254 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3255
3256 * cli/cli-interp.c (cli_interpreter_resume): Update the
3257 cli_uiout's stream to gdb_stdout.
3258
3259 2003-07-03 Andrew Cagney <cagney@redhat.com>
3260
3261 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3262 predicate.
3263 * gdbarch.h, gdbarch.c: Re-generate.
3264 * regcache.c (init_regcache_descr): Use legacy code when either
3265 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3266
3267 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3268
3269 * NEWS: Move "set logging" entry into GDB 6.0 section.
3270
3271 2003-07-02 Jim Blandy <jimb@redhat.com>
3272
3273 * s390-tdep.c (struct frame_extra_info): new member:
3274 'stack_bought_valid'.
3275 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3276 initialize fextra_info->stack_bought.
3277 (s390_frameless_function_invocation): Don't trust the value of
3278 fextra_info_ptr->stack_bought unless
3279 fextra_info->stack_bought_valid is set.
3280
3281 New S390 prologue analyzer.
3282 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3283 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3284 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3285 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3286 compute_x_addr, s390_on_stack, s390_store,
3287 s390_get_signal_frame_info): New functions.
3288 (S390_NUM_SPILL_SLOTS): New macro.
3289 (s390_get_frame_info): Rewritten.
3290 (is_arg_reg): Deleted.
3291
3292 Break out the decoding of S/390 instructions into separate
3293 functions, to make it more legible, and easier to check
3294 against the spec.
3295 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3296 is_rx, is_rxe): New functions.
3297 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3298 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3299 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3300 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3301 enums for opcode values. (Is this an improvement?)
3302
3303 2003-07-02 Andrew Cagney <cagney@redhat.com>
3304
3305 * i386-tdep.c: Revert change committed as part of trad-frame code
3306 below.
3307
3308 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3309
3310 * breakpoint.c (insert_catchpoint): Make static.
3311
3312 2003-07-02 Andreas Schwab <schwab@suse.de>
3313
3314 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3315 former ia64_push_arguments and ia64_push_return_address, and use
3316 regcache functions instead of read/write_register.
3317 (ia64_gdbarch_init): Set push_dummy_call instead of
3318 deprecated_push_arguments and deprecated_push_return_address.
3319
3320 2003-07-01 Andreas Jaeger <aj@suse.de>
3321
3322 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3323 before the call.
3324 Set %rax only to number of SSE registers used.
3325
3326 2003-07-01 Andrew Cagney <cagney@redhat.com>
3327
3328 * trad-frame.h: Update comments, a -1 .addr is reserved.
3329 (trad_frame_value_p, trad_frame_addr_p): Declare.
3330 (trad_frame_reg_p): Declare.
3331 (trad_frame_set_value): Rename trad_frame_register_value.
3332 (trad_frame_set_unknown): Declare.
3333 * trad-frame.c (trad_frame_realreg_p): New function.
3334 (trad_frame_addr_p, trad_frame_value_p): New function.
3335 (trad_frame_set_unknown): New function.
3336 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3337 (trad_frame_prev_register): Use trad_frame_realreg_p,
3338 trad_frame_addr_p and trad_frame_value_p.
3339 (trad_frame_set_value): Rename trad_frame_register_value.
3340 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3341 and trad_frame_set_value.
3342
3343 2003-06-30 Jim Blandy <jimb@redhat.com>
3344
3345 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3346 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3347 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3348 for 16 registers, and then 32 more bytes.
3349 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3350 New macros.
3351 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3352 Move up in the file, since it's now used by is_simple_arg.
3353 (is_simple_arg): Don't assume registers are four bytes long.
3354 Exclude all double arguments. Extended floats are not simple
3355 args.
3356 (is_power_of_two): New function.
3357 (pass_by_copy_ref): Call is_power_of_two, and check that the
3358 length fits in a register, rather than listing all the acceptable
3359 sizes. Extended floats are not passed by reference.
3360 (s390_push_arguments): Don't assume registers are four bytes long.
3361 Reserve an argument register to point to the buffer for structures
3362 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3363 S390_STACK_FRAME_OVERHEAD.
3364
3365 2003-06-30 Andreas Schwab <schwab@suse.de>
3366
3367 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3368 format error message.
3369
3370 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3371
3372 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3373
3374 2003-06-30 David Carlton <carlton@kealia.com>
3375
3376 Band-aid for PR c++/1245.
3377 * Makefile.in (cp-support.o): Depend on complaints_h.
3378 * cp-support.c: Include complaints.h. Add declaration for
3379 find_last_component.
3380 (cp_find_first_component): Separate code into
3381 cp_find_first_component_aux.
3382 (cp_find_first_component_aux): Call demangled_name_complaint.
3383 (demangled_name_complaint): New.
3384
3385 2003-06-30 Andrew Cagney <cagney@redhat.com>
3386
3387 * remote.c (remote_write_bytes): Explicitly compute and then use
3388 the payload size. Update comments to reflect. Fixes problem of
3389 GDB not sending small packets as found by Fred Fish.
3390
3391 2003-06-30 Andrew Cagney <cagney@redhat.com>
3392
3393 * remote.c (remote_async_wait): Fix -Wformat problem.
3394
3395 2003-06-29 Andrew Cagney <cagney@redhat.com>
3396
3397 * remote.c (remote_wait): Call error, and not warning, when the
3398 packet is corrupt.
3399 (remote_async_wait): Ditto.
3400
3401 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3402
3403 * sparc-tdep.c (sparc_y_regnum): Make external again.
3404
3405 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3406
3407 * cli/cli-logging.c (pop_output_files): Add void to function
3408 definition.
3409
3410 2003-06-29 Andrew Cagney <cagney@redhat.com>
3411
3412 * frame.c (frame_register_unwind): Use unsigned char when dumping
3413 the buffer contents.
3414
3415 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3416
3417 * cli/cli-logging.c: New file.
3418 * cli-out.c (struct ui_out_data): Add original_stream.
3419 (cli_redirect): New function.
3420 (cli_ui_out_impl): Add cli_redirect.
3421 (cli_out_new): Initialize original_stream.
3422 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3423 (uo_redirect, ui_out_redirect): New.
3424 * ui-out.h (struct ui_out_impl): Add redirect member.
3425 (redirect_ftype): New.
3426 (ui_out_redirect): Add prototype.
3427 * Makefile.in: Add rules for cli-logging.c.
3428 * NEWS: Mention "set logging".
3429
3430 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3431
3432 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3433
3434 2003-06-27 Andrew Cagney <cagney@redhat.com>
3435
3436 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3437 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3438 * avr-tdep.c (avr_call_dummy_address): Delete function.
3439 (avr_gdbarch_init): Do not set call_dummy_address.
3440
3441 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3442
3443 * symfile.c (syms_from_objfile): Move variables to inner block.
3444 Move the checks for the non-mainline case a bit earlier to avoid
3445 doing some useless computations.
3446
3447 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3448
3449 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3450
3451 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3452
3453 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3454 sections.
3455
3456 2003-06-26 Michael Chastain <mec@shout.net>
3457
3458 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3459 gdb/testsuite/gdb.c++/pr-1210.exp.
3460
3461 2003-06-26 Andrew Cagney <cagney@redhat.com>
3462
3463 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3464 altivec_expression.h and altivec_registers.h.
3465
3466 2003-06-26 Andrew Cagney <cagney@redhat.com>
3467
3468 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3469 info->mach when MIPS16. Patch suggested by Fred Fish.
3470
3471 2003-06-26 Andrew Cagney <cagney@redhat.com>
3472
3473 * utils.c (internal_vproblem): Print the problem to a reason
3474 buffer and then pass to query. Make the msg variable more local.
3475
3476 2003-06-26 Andrew Cagney <cagney@redhat.com>
3477
3478 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3479 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3480 * gdbarch.h, gdbarch.c: Re-generate.
3481 * frame-base.c (default_frame_args_address): Update. Use
3482 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3483 not available.
3484 (default_frame_locals_address): Ditto for
3485 DEPRECATED_FRAME_LOCALS_ADDRESS.
3486 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3487 (vax_frame_num_args): Update.
3488 (vax_gdbarch_init): Update.
3489 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3490 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3491 * mcore-tdep.c (mcore_gdbarch_init): Update.
3492 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3493 * ia64-tdep.c (ia64_gdbarch_init): Update.
3494 * symtab.h (address_class): Update comments.
3495 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3496 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3497 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3498 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3499 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3500 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3501 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3502 * alpha-mdebug-tdep.c: Update.
3503 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3504
3505 2003-06-26 Andreas Jaeger <aj@suse.de>
3506
3507 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3508 of SSE registers so that varargs functions work. Rework handling
3509 of passing arguments on the stack.
3510 (x86_64_store_return_value): Return double and float values in SSE
3511 register.
3512
3513 2003-06-24 Michael Chastain <mec@shout.net>
3514
3515 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3516 the "constructor breakpoints ignored" bug.
3517
3518 2003-06-25 David Carlton <carlton@kealia.com>
3519
3520 * MAINTAINERS: Update e-mail address.
3521
3522 2003-06-24 Jim Blandy <jimb@redhat.com>
3523
3524 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3525
3526 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3527 function.
3528 (ppc_linux_init_abi): Register it as the
3529 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3530
3531 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3532 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3533 method.
3534
3535 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3536 (ppc64_standard_linkage_target): Use it.
3537
3538 2003-06-23 Andrew Cagney <cagney@redhat.com>
3539
3540 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3541 for 0 "int0" and 4 "int32" sized registers.
3542 * gdbtypes.c (builtin_type_int0): Define.
3543 (build_gdbtypes): Initialize builtin_type_int0.
3544 * gdbtypes.h (builtin_type_int0): Declare.
3545
3546 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3547
3548 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3549 as characters are unsigned.
3550
3551 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3552
3553 PR gdb/1179
3554 * dwarfread.c (struct_type): Skip static fields without crashing.
3555
3556 2003-06-22 Andrew Cagney <cagney@redhat.com>
3557
3558 GDB 6.0 branch created.
3559 * README: Update.
3560 * PROBLEMS: Update. Empty.
3561 * NEWS: Update.
3562
3563 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3564
3565 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3566 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3567
3568 2003-06-22 Andrew Cagney <cagney@redhat.com>
3569
3570 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3571 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3572 Velikov.
3573
3574 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3575
3576 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3577 compilers.
3578
3579 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3580
3581 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3582 argument of val_print.
3583 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3584 to the address argument of baseclass_offset or target_read_memory.
3585 Do add it to the argument of cp_print_value_fields.
3586
3587 2003-06-21 Andrew Cagney <cagney@redhat.com>
3588
3589 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3590 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3591 instead of 0..NUM_REGS.
3592 (mips_register_reggroup_p): New function.
3593 (mips_pseudo_register_write): New function.
3594 (mips_pseudo_register_read): New function.
3595 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3596 based on the register's type.
3597 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3598 cooked.
3599 (mips_get_saved_register): Simplify. Assert that REGNO is a
3600 pseudo / cooked.
3601 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3602 (mips_register_type): Replace mips_register_virtual_type. Map
3603 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3604 when available.
3605 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3606 that the register is cooked / virtual.
3607 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3608 Only get the extra info when needed.
3609 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3610 (mips32_heuristic_proc_desc): Fetch the cooked register.
3611 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3612 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3613 (mips_print_register): Use gdbarch_register_type, instead of
3614 REGISTER_VIRTUAL_TYPE.
3615 (print_gp_register_row): Use gdbarch_register_type, instead of
3616 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3617 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3618 Print the pseudo / cooked registers.
3619 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3620 Print the pseudo / cooked registers.
3621 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3622 REG_NUM is pseudo / cooked.
3623 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3624 (mips_n32n64_xfer_return_value): Ditto.
3625 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3626 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3627 (mips_register_sim_regno): New function.
3628 (mips_gdbarch_init): Set deprecated_register_byte,
3629 register_group_p, pseudo_register_write, pseudo_register_read,
3630 register_sim_regno, and num_pseudo_regs. Set register_type,
3631 instead of register_virtual_type.
3632 * Makefile.in (mips-tdep.o): Update dependencies.
3633 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3634 REGISTER_VIRTUAL_TYPE.
3635 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3636 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3637 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3638 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3639 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3640
3641 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3642
3643 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3644 * cli/cli-cmds.c: Include "gdb_vfork.h".
3645 (shell_escape): Use vfork.
3646
3647 2003-06-21 Andrew Cagney <cagney@redhat.com>
3648
3649 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3650 32 bit floating-point register saves.
3651
3652 * frame.h (deprecated_unwind_get_saved_register): Delete.
3653 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3654 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3655 and deprecated_get_next_frame_hack instead of
3656 deprecated_unwind_get_saved_register.
3657
3658 * mips-tdep.c (mips_dump_tdep): Do not print
3659 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3660
3661 * frame.c (get_frame_register): New function.
3662 (frame_unwind_register_signed): New function.
3663 (get_frame_register_signed): New function.
3664 (frame_unwind_register_unsigned): New function.
3665 (get_frame_register_unsigned): New function.
3666 * frame.h: Add comments on naming schema.
3667 (get_frame_register, frame_unwind_register_signed): Declare.
3668 (get_frame_register_signed, get_frame_register_signed): Declare.
3669 (frame_unwind_register_unsigned): Declare.
3670 (get_frame_register_unsigned): Declare.
3671
3672 2003-06-20 Theodore A. Roth <troth@openavr.org>
3673
3674 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3675
3676 2003-06-20 Theodore A. Roth <troth@openavr.org>
3677
3678 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3679 (avr_read_sp): Ditto.
3680
3681 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3682
3683 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3684 * config/arm/nm-linux.h: Likewise.
3685 * config/arm/tm-linux.h: Likewise.
3686 * config/ia64/nm-linux.h: Likewise.
3687 * config/ia64/tm-ia64.h: Likewise.
3688 * config/s390/tm-linux.h: Likewise.
3689 * config/s390/tm-s390.h: Likewise.
3690 * s390-nat.c: Likewise.
3691 * s390-tdep.c: Likewise.
3692
3693 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3694 * config/ia64/linux.mt: Likewise.
3695 * config/m68k/linux.mh: Likewise.
3696 * config/mips/linux.mt: Likewise.
3697 * config/powerpc/linux.mh: Likewise.
3698 * config/sh/linux.mt: Likewise.
3699
3700 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3701
3702 * solib.c (solib_open): Change tests for whether to search
3703 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3704 comments.
3705
3706 2003-06-19 Theodore A. Roth <troth@openavr.org>
3707
3708 * avr-tdep.c (avr_frame_address): Delete function.
3709 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3710 set_gdbarch_frame_args_address.
3711
3712 2003-06-19 Andrew Cagney <cagney@redhat.com>
3713
3714 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3715 (REGISTER_CONVERT_FROM_TYPE): Delete.
3716 (mips_register_convert_to_type): Delete declaration.
3717 (mips_register_convert_from_type): Delete declaration.
3718 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3719 kernel/.
3720
3721 2003-06-19 Michael Snyder <msnyder@redhat.com>
3722
3723 * linux-nat.h: New file.
3724 * linux-nat.c: Include linux-nat.h.
3725 * lin-lwp.c: Include linux-nat.h.
3726 Move struct lwp_info def to linux-nat.h.
3727 * linux-proc.c: Include linux-nat.h.
3728 (linux_make_note_section): Iterate over lwps instead of threads.
3729 (linux_do_thread_registers): Use lwp instead of merged pid.
3730 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3731 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3732 Add dependency on linux_nat_h.
3733
3734 2003-06-19 Theodore A. Roth <troth@openavr.org>
3735
3736 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3737
3738 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3739
3740 * varobj.c (get_type, get_target_type): Use check_typedef.
3741
3742 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3743
3744 * breakpoint.c (insert_catchpoint): Call internal_error.
3745
3746 2003-06-19 Theodore A. Roth <troth@openavr.org>
3747
3748 * avr-tdep.c (avr_push_dummy_code): Delete function.
3749 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3750
3751 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3752
3753 * arch-utils.c (default_prepare_to_proceed): Remove.
3754 (generic_prepare_to_proceed): Remove.
3755 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3756 (generic_prepare_to_proceed): Remove prototype.
3757 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3758 * gdbarch.c: Regenerate.
3759 * gdbarch.h: Regenerate.
3760 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3761 * hppah-nat.c (hppa_switched_threads): Remove.
3762 * infrun.c (prepare_to_proceed): New static function, copied from
3763 generic_prepare_to_proceed. Remove select_it argument.
3764 (proceed): Call prepare_to_proceed.
3765 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3766 variables.
3767 (ptrace_wait): Don't set the removed variables.
3768 (hppa_switched_threads): Remove.
3769 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3770 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3771 (lin_lwp_prepare_to_proceed): Remove prototype.
3772 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3773 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3774
3775 2003-06-18 Theodore A. Roth <troth@openavr.org>
3776
3777 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3778 trad-frame.h.
3779 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3780 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3781 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3782 (AVR_PROLOGUE_*): Enumerate prologue types.
3783 (struct frame_extra_info): Remove.
3784 (struct avr_unwind_cache): Define.
3785 (avr_write_sp): Delete function.
3786 (avr_read_fp): Ditto.
3787 (avr_init_extra_frame_info): Ditto.
3788 (avr_pop_frame): Ditto.
3789 (avr_frame_saved_pc): Ditto.
3790 (avr_saved_pc_after_call): Ditto.
3791 (avr_push_return_address): Ditto.
3792 (avr_frame_chain): Ditto.
3793 (avr_store_struct_return): Ditto.
3794 (avr_push_arguments): Ditto.
3795 (avr_scan_prologue): Update comments. Changed to set up the info for
3796 cache unwinding. Now returns end of prologue PC.
3797 (avr_skip_prologue): Better handling of functions lacking a prologue
3798 by using avr_scan_prologue.
3799 (avr_scan_arg_moves): New function.
3800 (avr_saved_regs_unwinder): Ditto.
3801 (avr_frame_unwind_cache): Ditto.
3802 (avr_unwind_pc): Ditto.
3803 (avr_frame_this_id): Ditto.
3804 (avr_frame_prev_register): Ditto.
3805 (avr_frame_p): Ditto.
3806 (avr_frame_base_address ): Ditto.
3807 (avr_unwind_dummy_id): Ditto.
3808 (avr_push_dummy_code): Ditto.
3809 (push_stack_item): Ditto.
3810 (pop_stack_item): Ditto.
3811 (avr_push_dummy_call): Ditto.
3812 (struct stack_item): Define.
3813 (avr_frame_unwind): Declare structure.
3814 (avr_frame_base): Ditto.
3815 (avr_gdbarch_init): Remove calls to
3816 set_gdbarch_deprecated_init_frame_pc,
3817 set_gdbarch_deprecated_target_read_fp,
3818 set_gdbarch_deprecated_dummy_write_sp,
3819 set_gdbarch_deprecated_fp_regnum,
3820 set_gdbarch_deprecated_push_arguments,
3821 set_gdbarch_deprecated_push_return_address,
3822 set_gdbarch_deprecated_pop_frame,
3823 set_gdbarch_deprecated_store_struct_return,
3824 set_gdbarch_deprecated_frame_init_saved_regs,
3825 set_gdbarch_deprecated_init_extra_frame_info,
3826 set_gdbarch_deprecated_frame_chain,
3827 set_gdbarch_deprecated_frame_saved_pc,
3828 set_gdbarch_deprecated_saved_pc_after_call.
3829 Add calls to set_gdbarch_push_dummy_call,
3830 set_gdbarch_push_dummy_code,
3831 frame_unwind_append_predicate,
3832 frame_base_set_default,
3833 set_gdbarch_unwind_dummy_id,
3834 set_gdbarch_unwind_pc.
3835 Wrap a long line.
3836
3837 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3838
3839 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3840 registers for H8/300S.
3841 (h8300_print_registers_info): Ditto.
3842 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3843
3844 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3845
3846 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3847 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3848 (lin_lwp_wait): Likewise. Update comments.
3849 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3850 (pull_pid_from_list, linux_record_stopped_pid): New.
3851
3852 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3853
3854 * ada-lang.c (scan_discrim_bound): Name first argument.
3855 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3856 declared by ALL_BLOCK_SYMBOLS.
3857
3858 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3859
3860 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3861 ("regcache.h"): Include it.
3862 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3863
3864 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3865
3866 * NEWS: Mention gdbserver detach change and "disconnect" command.
3867 * infcmd.c (disconnect_command): New function.
3868 (_initialize_infcmd): Add ``disconnect'' command.
3869 * remote.c (remote_async_detach): Delete.
3870 (remote_detach): Merge remote_async_detach.
3871 (remote_disconnect): New.
3872 (init_remote_ops): Set to_disconnect.
3873 (init_remote_cisco_ops): Likewise.
3874 (init_remote_async_ops): Likewise. Use remote_detach.
3875 * target.c (cleanup_target): Default to_disconnect.
3876 (update_current_target): Inherit to_disconnect.
3877 (target_disconnect, debug_to_disconnect): New functions.
3878 (setup_target_debug): Set to_disconnect.
3879 * target.h (struct target_ops): Add to_disconnect.
3880 (target_disconnect): Add prototype.
3881
3882 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3883
3884 * breakpoint.c (insert_catchpoint): New function.
3885 (insert_breakpoints): Use catch_exceptions to call
3886 insert_catchpoint. Disable catchpoints if they fail to insert.
3887
3888 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3889
3890 * symfile.c (reread_symbols): Clear sym_private.
3891
3892 2003-06-17 Andrew Cagney <cagney@redhat.com>
3893
3894 * trad-frame.h (struct frame_info): Add opaque declaration.
3895 * remote-fileio.h (struct cmd_list_element): Add opaque
3896 declaration.
3897 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3898 comments.
3899
3900 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3901
3902 * remote.c (remote_prepare_to_store): Replace call to
3903 deprecated_read_register_bytes with multiple regcache_raw_read
3904 calls.
3905
3906 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3907
3908 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3909 (nto_find_and_open_solib): Likewise.
3910 (nto_init_solib_absolute_prefix): Likewise.
3911 (_initialize_nto_tdep): Fix indentation.
3912
3913 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3914
3915 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3916
3917 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3918
3919 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3920
3921 2003-06-17 Jim Blandy <jimb@redhat.com>
3922
3923 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3924
3925 2003-06-16 Theodore A. Roth <troth@openavr.org>
3926
3927 * avr-tdep.c (avr_extract_return_value): New function.
3928 (avr_gdbarch_init): Set extract_return_value method.
3929
3930 2003-06-16 Andrew Cagney <cagney@redhat.com>
3931
3932 * frame.h (deprecated_get_next_frame_hack): Declare.
3933 * frame.c (legacy_saved_regs_prev_register): Only require
3934 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3935 there are always saved regs.
3936 (deprecated_generic_get_saved_register): Do not require
3937 DEPRECATED_FRAME_INIT_SAVED_REGS.
3938 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3939 use frame ID unwind instead.
3940 (deprecated_get_next_frame_hack): New function.
3941
3942 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3943
3944 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3945 (h8300_push_dummy_call): ...this function. Some minor optimization.
3946 (h8300_push_return_address): Remove.
3947 (h8300_gdbarch_init): Remove calls to
3948 set_gdbarch_deprecated_dummy_write_sp,
3949 set_gdbarch_deprecated_push_arguments and
3950 set_gdbarch_deprecated_push_return_address.
3951 Add call to set_gdbarch_push_dummy_call.
3952
3953 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3954
3955 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3956 (E_PSEUDO_EXR_REGNUM): Ditto.
3957 (h8300_is_argument_spill): Check for instructions moving argument
3958 registers into safe registers.
3959 (h8300_skip_prologue): Check for stm instruction to push registers
3960 used for register variables onto stack.
3961 (gdb_print_insn_h8300): Remove.
3962 (h8300_examine_prologue): Add a comment.
3963 (h8300_register_name): Take pseudo registers into account.
3964 (h8300s_register_name): Ditto.
3965 (h8300sx_register_name): Ditto.
3966 (h8300_print_register): Ditto.
3967 (h8300_print_registers_info): Define "nice" printing order.
3968 (h8300_saved_pc_after_call): Take pseudo registers into account.
3969 (h8300_register_type): Ditto. Return type used for remote connection
3970 when requesting real CCR or EXR register, return actual type when
3971 requesting pseudo CCR or EXR.
3972 (h8300_pseudo_register_read): New function.
3973 (h8300_pseudo_register_write): Ditto.
3974 (h8300_dbg_reg_to_regnum): Ditto.
3975 (h8300s_dbg_reg_to_regnum): Ditto.
3976 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3977 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3978 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3979 set_gdbarch_print_insn architecture dependent.
3980 Call set_gdbarch_pseudo_register_read and
3981 set_gdbarch_pseudo_register_write.
3982 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3983
3984 2003-06-16 Andrew Cagney <cagney@redhat.com>
3985
3986 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3987 * gdbarch.h, gdbarch.c: Re-generate.
3988 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3989 * s390-tdep.c (s390_gdbarch_init): Update.
3990 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3991 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3992 * mips-tdep.c (mips_gdbarch_init): Update.
3993 * mcore-tdep.c (mcore_gdbarch_init): Update.
3994 * cris-tdep.c (cris_gdbarch_init): Update.
3995 * infcall.c (call_function_by_hand): Update.
3996 * ia64-tdep.c (ia64_push_arguments): Update comment.
3997 * frame.c (legacy_get_prev_frame): Do not assume
3998 SAVE_DUMMY_FRAME_TOS_P.
3999 * dummy-frame.c (find_dummy_frame): Update comment.
4000
4001 2003-06-16 Andrew Cagney <cagney@redhat.com>
4002
4003 * regcache.c (do_cooked_read): Do not use register_valid_p.
4004
4005 2003-06-15 Theodore A. Roth <troth@openavr.org>
4006
4007 * avr-tdep.c (avr_register_type): Remove a blank line.
4008 (avr_scan_prologue): Correct some comments.
4009
4010 2003-06-15 Theodore A. Roth <troth@openavr.org>
4011
4012 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4013 prologue types.
4014 Properly scan prologues generated by gcc with the -mcall-prologues
4015 option.
4016 Add code to scan -mcall-prologues for mega devices.
4017
4018 2003-06-15 Theodore A. Roth <troth@openavr.org>
4019
4020 * avr-tdep.c (avr_register_byte): Delete function.
4021 (avr_register_raw_size): Delete function.
4022 (avr_register_virtual_size): Delete function.
4023 (avr_register_virtual_type): Delete function.
4024 (avr_register_type): New function.
4025 (avr_address_to_pointer): Remove unused code.
4026 (avr_read_fp): Need to read FP as two separate bytes due to change to
4027 avr_register_type() usage.
4028 (avr_gdbarch_init): Don't set deprecated_register_size.
4029 Don't set deprecated_register_bytes.
4030 Don't set deprecated_register_byte.
4031 Don't set deprecated_register_raw_size.
4032 Don't set deprecated_max_register_raw_size.
4033 Don't set deprecated_register_virtual_size.
4034 Don't set deprecated_max_register_virtual_size.
4035 Don't set deprecated_register_virtual_type.
4036 Set register_type method.
4037
4038 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4039
4040 * Makefile.in (linux-nat.o): Add rule.
4041 * linux-nat.c: New file.
4042 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4043 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4044 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4045 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4046 * config/arm/linux.mh (NATDEPFILES): Likewise.
4047 * config/i386/linux.mh (NATDEPFILES): Likewise.
4048 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4049 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4050 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4051 * config/mips/linux.mh (NATDEPFILES): Likewise.
4052 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4053 * config/s390/s390.mh (NATDEPFILES): Likewise.
4054 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4055
4056 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4057
4058 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4059 replace out-of-date comment.
4060
4061 2003-06-15 Andrew Cagney <cagney@redhat.com>
4062
4063 * rdi-share/host.h (Fail): Change to a varargs function.
4064 * remote-rdi.c (Fail): Update.
4065
4066 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4067
4068 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4069 (i386_convert_register_p, i386_register_to_value,
4070 i386_register_from_value): Handle types longer than 8 bytes.
4071
4072 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4073
4074 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4075 Move floating-point code to new function in i387-tdep.c.
4076 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4077 New functions containing code moved here from i386-tdep.c.
4078 * i387-tdep.h: Add opaque declaration for `struct type'.
4079 (i387_register_to_value, i387_value_to_register): New prototypes.
4080 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4081 (x86_64_init_abi): Set convert_register_p, register_to_value and
4082 value_to_register here.
4083
4084 2003-06-14 Andrew Cagney <cagney@redhat.com>
4085
4086 * mips-tdep.c (mips_register_to_value): Make static.
4087 (mips_value_to_register): Make static.
4088 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4089 * ia64-tdep.c (ia64_register_raw_size): Make static.
4090 (ia64_register_virtual_size): Make static.
4091 (ia64_register_byte): Make static.
4092 * i387-tdep.c: Include "i387-tdep.h".
4093 (print_387_control_word): Delete function.
4094 (print_387_status_word): Delete function.
4095 (print_387_status_bits): Delete function.
4096 (print_387_control_bits): Delete function.
4097 * Makefile.in (i387-tdep.o): Update dependencies.
4098 * rdi-share/host.h (Fail): Declare.
4099 * remote-rdi.c (Fail): Update to match declaration.
4100
4101 2003-06-14 Andrew Cagney <cagney@redhat.com>
4102
4103 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4104 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4105 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4106 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4107 * README: Delete reference to remote-array.
4108 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4109 (remote-array.o): Delete target.
4110 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4111 * remote-array.c: Delete file.
4112
4113 2003-06-14 Andrew Cagney <cagney@redhat.com>
4114 Mark Kettenis <kettenis@gnu.org>
4115
4116 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4117 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4118 parameter with "frame".
4119 * gdbarch.h, gdbarch.c: Re-generate.
4120 * frame.h (put_frame_register): Declare.
4121 * frame.c (put_frame_register): New function.
4122 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4123 (legacy_register_to_value): Rewrite, use "frame" to get the
4124 register value.
4125 (legacy_value_to_register): Rewrite, use "frame" to find the
4126 register's location before storing.
4127 * arch-utils.h (legacy_convert_register_p): Update.
4128 (legacy_register_to_value, legacy_value_to_register): Update.
4129 * findvar.c (value_from_register): Rewrite, eliminate use of
4130 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4131 "frame" to REGISTER_TO_VALUE.
4132 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4133 lval_reg_frame_relative + lval_register branch of the switch. Do
4134 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4135 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4136 I386_EDI_REGNUM): New defines.
4137 (i386_next_regnum, i386_convert_register_p,
4138 i386_register_to_value, i386_value_to_register): New functions.
4139 (i386_register_convertible, i386_register_convert_to_virtual,
4140 i386_convert_to_raw): Remove functions.
4141 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4142 value_to_register instead of register_convertible,
4143 register_convert_to_virtual and register_convert_to_raw.
4144 * mips-tdep.c (mips_convert_register_p): New function.
4145 (mips_value_to_register): Replace mips_register_convert_from_type.
4146 (mips_register_to_value): Replace mips_register_convert_to_type.
4147 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4148 register_to_value.
4149 * alpha-tdep.c (alpha_convert_register_p): Update.
4150 (alpha_value_to_register): Update, store the register.
4151 (alpha_register_to_value): Update, fetch the register.
4152
4153 2003-06-14 Theodore A. Roth <troth@openavr.org>
4154
4155 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4156 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4157 Don't set deprecated_call_dummy_words.
4158 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4159 Don't set remote_translate_xfer_address.
4160 (avr_io_reg_read_command): Remove commented out debug printf.
4161 Wrap a long line.
4162
4163 2003-06-14 Theodore A. Roth <troth@openavr.org>
4164
4165 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4166 causes gdb to seg fault.
4167
4168 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4169
4170 * sparc-nat.c (fetch_inferior_registers): Correct
4171 a reference to "registers".
4172
4173 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4174
4175 * Makefile.in (exc_request_U_h): Define
4176 (exc_request_S_h): Likewise.
4177 (msg_reply_S_h): Likewise.
4178 (msg_U_h): Likewise.
4179 (notify_S_h): Likewise.
4180 (process_reply_S_h): Likewise.
4181 (gnu-nat.o): Depend on gdb_obstack_h
4182 * gnu-nat.c: Include "gdb_obstack.h".
4183
4184 2003-06-13 Andrew Cagney <cagney@redhat.com>
4185
4186 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4187 * gdbarch.h, gdbarch.c: Re-generate.
4188
4189 2003-06-13 Andrew Cagney <cagney@redhat.com>
4190
4191 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4192 when deprecated REGISTER macros can be deleted.
4193 * gdbarch.h, gdbarch.c: Re-generate.
4194
4195 2003-06-13 Jim Blandy <jimb@redhat.com>
4196
4197 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4198 Linux entry point symbols for _dl_debug_state, too.
4199
4200 2003-06-13 Andrew Cagney <cagney@redhat.com>
4201
4202 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4203 available, do not use the FP register, and always save the TOS.
4204 * dummy-frame.c (dummy_frame_this_id): Do not assert
4205 SAVE_DUMMY_FRAME_TOS.
4206 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4207 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4208 (i386_push_dummy_call): Add 8 to the returned SP.
4209 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4210 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4211 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4212 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4213 (x86_64_push_dummy_call): Return "sp + 16".
4214 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4215 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4216 save_dummy_frame_tos.
4217
4218 2003-06-13 Jim Blandy <jimb@redhat.com>
4219
4220 * frv-tdep.c (frv_use_struct_convention): Delete static
4221 declaration for function deleted in my change of 2003-06-12.
4222
4223 2003-06-13 Theodore A. Roth <troth@openavr.org>
4224
4225 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4226 (avr_pointer_to_address): Shift code addrs left 1 bit.
4227 (avr_convert_from_func_ptr_addr): Delete function since operation is
4228 better handled by avr_address_to_pointer and avr_pointer_to_address.
4229 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4230
4231 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4232
4233 From Kelley Cook <kelleycook@wideopenwest.com>:
4234 * configure.host: Accept i[34567]86 variants.
4235 * configure.tgt: Likewise.
4236 * nlm/configure.in: Likewise.
4237 * nlm/configure: Regenerated.
4238
4239 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4240
4241 * arm-tdep.c (solib-svr4.h): Dont' include it.
4242 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4243 * arm-linux-tdep.c: ... here. Make static.
4244 (arm_linux_init_abi): Register it.
4245 (solib-svr4.h): Include it.
4246 * Makefile.in: Update dependencies.
4247 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4248 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4249
4250 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4251
4252 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4253 indicate registers used for return values.
4254 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4255 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4256 members.
4257 (h8300_init_extra_frame_info): Ditto.
4258 (h8300_frame_locals_address): Removed.
4259 (h8300_frame_args_address): Removed.
4260 (h8300_extract_return_value): Use new regcache structure. Only care
4261 for 16 bit CPUs.
4262 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4263 (h8300_store_return_value): Use new regcache structure. Only care
4264 for 16 bit CPUs.
4265 (h8300h_store_return_value): Same function for 32 bit CPUs.
4266 (h8300_store_struct_return): Removed.
4267 (h8300_extract_struct_value_address): Use new regcache structure.
4268 (h8300h_extract_struct_value_address): Removed.
4269 (h8300_push_dummy_code): New function.
4270 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4271 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4272 set_gdbarch_store_return_value architecture dependent.
4273 Call set_gdbarch_push_dummy_code and
4274 set_gdbarch_extract_struct_value_address.
4275 Remove calls to set_gdbarch_frame_args_address,
4276 set_gdbarch_frame_locals_address,
4277 set_gdbarch_deprecated_store_struct_return,
4278 set_gdbarch_deprecated_extract_return_value,
4279 set_gdbarch_deprecated_extract_struct_value_address,
4280 set_gdbarch_deprecated_call_dummy_words and
4281 set_gdbarch_deprecated_sizeof_call_dummy_words.
4282
4283 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4284
4285 * h8300-tdep.c (h8300_register_byte): Remove.
4286 (h8300h_register_byte): Remove.
4287 (h8300_register_virtual_type): Remove. Substitute by...
4288 (h8300_register_type): New function.
4289 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4290 (h8300h_extract_struct_value_address): Ditto.
4291 (h8300_gdbarch_init): Drop calls to
4292 set_gdbarch_deprecated_register_byte and
4293 set_gdbarch_deprecated_register_virtual_type.
4294 Add call to set_gdbarch_register_type.
4295
4296 2003-06-13 Andrew Cagney <cagney@redhat.com>
4297
4298 * gdbarch.sh: Update comments on registers.
4299 (deprecated_register_byte): Rename register_byte.
4300 (deprecated_register_raw_size): Rename register_raw_size.
4301 (deprecated_register_virtual_size): Rename register_virtual_size.
4302 (deprecated_register_virtual_type): Rename register_virtual_type.
4303 * gdbarch.h, gdbarch.c: Re-generate.
4304 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4305 * vax-tdep.c (vax_gdbarch_init): Update.
4306 * v850-tdep.c (v850_gdbarch_init): Update.
4307 * sparc-tdep.c (sparc_gdbarch_init): Update.
4308 * sh-tdep.c (sh_gdbarch_init): Update.
4309 * s390-tdep.c (s390_gdbarch_init): Update.
4310 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4311 * ns32k-tdep.c: Update.
4312 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4313 * mips-tdep.c (mips_gdbarch_init): Update.
4314 * mcore-tdep.c (mcore_gdbarch_init): Update.
4315 * m68k-tdep.c (m68k_gdbarch_init): Update.
4316 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4317 * ia64-tdep.c (ia64_gdbarch_init): Update.
4318 * hppa-tdep.c (hppa_gdbarch_init): Update.
4319 * h8300-tdep.c (h8300_gdbarch_init): Update.
4320 * frv-tdep.c (frv_gdbarch_init): Update.
4321 * cris-tdep.c (cris_gdbarch_init): Update.
4322 * avr-tdep.c (avr_gdbarch_init): Update.
4323 * alpha-tdep.c (alpha_gdbarch_init): Update.
4324 * arm-tdep.c (arm_gdbarch_init): Update.
4325
4326 2003-06-13 Andrew Cagney <cagney@redhat.com>
4327
4328 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4329 mips_o32_use_struct_convention with always_use_struct_convention.
4330
4331 2003-06-12 David Carlton <carlton@kealia.com>
4332
4333 * cp-namespace.c (cp_set_block_scope): Comment out
4334 processing_has_namespace_info branch.
4335
4336 2003-06-12 Jim Blandy <jimb@redhat.com>
4337
4338 Recognize and skip 64-bit PowerPC Linux linkage functions.
4339 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4340 insn_pattern, insns_match_pattern, d_field, ds_field): New
4341 functions, macros, and types for working with PPC instructions.
4342 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4343 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4344 ppc64_skip_trampoline_code): New functions, variables, and macros
4345 for recognizing and skipping linkage functions.
4346 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4347 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4348
4349 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4350 register offsets for both the 32- and 64-bit interfaces.
4351
4352 Actually finish the job started by my change of 2003-05-29.
4353 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4354 other #definition of this.
4355 (ppc_linux_skip_trampoline_code): Remove declaration.
4356 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4357 static.
4358 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4359 method for GDBARCH.
4360
4361 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4362 'long' on ppc64-*-linux*.
4363
4364 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4365 isn't #defined, assume the register doesn't exist: act as if
4366 tdep->ppc_mq_regnum were -1.
4367
4368 * configure.host, configure.tgt: Add entries for
4369 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4370 powerpc/linux.mt.
4371 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4372 New files.
4373
4374 * arch-utils.c (always_use_struct_convention): New function.
4375 * arch-utils.h (always_use_struct_convention): New prototype.
4376 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4377 (alpha_gdbarch_init): Register always_use_struct_convention,
4378 instead of alpha_use_struct_convention.
4379 * cris-tdep.c (cris_use_struct_convention): Delete.
4380 (cris_gdbarch_init): Register always_use_struct_convention,
4381 instead of cris_use_struct_convention.
4382 * frv-tdep.c (frv_use_struct_convention): Delete.
4383 (frv_gdbarch_init): Register always_use_struct_convention,
4384 instead of frv_use_struct_convention.
4385 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4386 (h8300_gdbarch_init): Register always_use_struct_convention,
4387 instead of h8300_use_struct_convention.
4388 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4389 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4390 instead of mips_o32_use_struct_convention.
4391
4392 2003-06-12 Andrew Cagney <cagney@redhat.com>
4393
4394 * wince.c: Include "mips-tdep.h".
4395 * mips-tdep.h (mips_next_pc): Declare.
4396 * mcore-tdep.c: Make more local functions static.
4397 * Makefile.in (wince.o): Update dependencies.
4398
4399 2003-06-12 David Carlton <carlton@kealia.com>
4400
4401 * symtab.c (lookup_symbol_aux_minsyms): Replace
4402 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4403 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4404 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4405 SYMBOL_NATURAL_NAME.
4406
4407 2003-06-12 Andreas Schwab <schwab@suse.de>
4408
4409 * Makefile.in (tuiDisassem.o): Update dependencies.
4410
4411 2003-06-12 David Carlton <carlton@bactrian.org>
4412
4413 * symtab.h: Delete declaration of make_symbol_overload_list.
4414 Add declaration of lookup_partial_symbol.
4415 * symtab.c (remove_params): Move to cp-support.c.
4416 (overload_list_add_symbol, make_symbol_overload_list)
4417 (sym_return_val_size, sym_return_val_index): Ditto.
4418 (lookup_partial_symbol): Make extern.
4419 * cp-support.h: Add declaration of make_symbol_overload_list.
4420 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4421 symtab.h, and block.h.
4422 (remove_params): Move here from symtab.c.
4423 (overload_list_add_symbol, make_symbol_overload_list)
4424 (sym_return_val_size, sym_return_val_index): Ditto.
4425 * valops.c: Include cp-support.h.
4426 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4427 frame_h, and block_h.
4428 (valops.o): Depend on cp_support_h.
4429
4430 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4431
4432 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4433 substitute by NUM_REGS throughout.
4434 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4435 (h8300s_register_name): New function for H8S registers.
4436 (h8300sx_register_name): Ditto for H8SX registers.
4437 (h8300_print_register): Revise register printing, avoid depending
4438 on 32 bit long.
4439 (h8300_register_byte): Only care for H8/300 registers.
4440 (h8300h_register_byte): New function for any other architecture.
4441 (h8300_register_raw_size): Remove.
4442 (h8300_register_virtual_type): Revise to return actually useful
4443 type.
4444 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4445 (h8300h_extract_struct_value_address): New function for any other
4446 architecture.
4447 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4448 set_gdbarch_register_name, set_gdbarch_register_byte,
4449 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4450 Remove calls to set_gdbarch_deprecated_register_size,
4451 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4452 set_gdbarch_deprecated_max_register_raw_size,
4453 set_gdbarch_register_virtual_size and
4454 set_gdbarch_deprecated_max_register_virtual_size entirely.
4455 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4456 set_gdbarch_long_double_bit.
4457
4458 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4459
4460 * doublest.c (convert_doublest_to_floatformat): When dealing
4461 with the implied integer bit, only alter mant_bits if we are
4462 processing a full 32 bits of mantissa.
4463
4464 2003-06-11 David Carlton <carlton@bactrian.org>
4465
4466 * dictionary.h: New.
4467 * dictionary.c: New.
4468 * block.h: Add opaque declaration for struct dictionary.
4469 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4470 'sym' members.
4471 (BLOCK_DICT): New macro.
4472 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4473 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4474 BLOCK_SHOULD_SORT.
4475 (ALL_BLOCK_SYMBOLS): Update definition.
4476 * Makefile.in (SFILES): Add dictionary.c.
4477 (dictionary_h): New.
4478 (COMMON_OBS): Add dictionary.o.
4479 (dictionary.o): New.
4480 (ada-lang.o): Depend on dictionary_h.
4481 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4482 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4483 (mi-cmd-stack.o): Ditto.
4484 (gdbtk-cmds.o): Update dependencies.
4485 (gdbtk-stack.o): Ditto.
4486 * ada-lang.c: Include dictionary.h.
4487 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4488 (fill_in_ada_prototype, debug_print_block): Ditto.
4489 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4490 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4491 'is_sorted'.
4492 * mdebugread.c: Include dictionary.h.
4493 (struct parse_stack): Delete 'maxsyms' member.
4494 (parse_symbol): Update calls to new_block. Delete calls to
4495 shrink_block. Use dictionary methods.
4496 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4497 Update calls to new_symtab. Don't maintain maxsyms data.
4498 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4499 (add_symbol): Just call dict_add_symbol.
4500 (new_symtab): Delete 'maxsyms' argument.
4501 (new_symtab): Update calls to new_block.
4502 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4503 (shrink_block): Delete function.
4504 (fixup_sigtramp): Update call to new_block. Add symbol via
4505 dict_add_symbol.
4506 * jv-lang.c: Include dictionary.h.
4507 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4508 appropriately. Set class_symtab->free_func. Make sure the
4509 blockvector is big enough to hold two blocks.
4510 (add_class_symtab_symbol): Use dictionary methods.
4511 (free_class_block): New function.
4512 (type_from_class): Replace explicit iteration by
4513 ALL_BLOCK_SYMBOLS.
4514 * symtab.h (struct symtab): Replace 'free_ptr' method by
4515 'free_func'.
4516 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4517 sort_symtab_syms.
4518 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4519 sort_symtab_syms.
4520 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4521 Include dictionary.h.
4522 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4523 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4524 sort_symtab_syms.
4525 * objfiles.c: Include dictionary.h.
4526 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4527 * buildsym.c: Include dictionary.h.
4528 (finish_block): Use dictionary methods.
4529 (end_symtab): Set free_func to NULL, not free_ptr.
4530 * tracepoint.c: Include dictionary.h.
4531 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4532 (scope_info): Ditto.
4533 * stack.c: Include dictionary.h.
4534 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4535 (print_block_frame_labels, print_frame_arg_vars)
4536 (print_frame_args): Ditto.
4537 * symmisc.c (free_symtab_block): Use dictionary methods.
4538 (dump_symtab): Ditto.
4539 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4540 Include dictionary.h.
4541 * symfile.h: Delete declarations of sort_block_syms,
4542 sort_symtab_syms.
4543 * symfile.c (sort_block_syms): Delete.
4544 (sort_symtab_syms): Delete.
4545 * symtab.c: Include dictionary.h.
4546 (lookup_block_symbol): Use dictionary iterators.
4547 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4548 (search_symbols, make_symbol_completion_list): Ditto.
4549 (make_symbol_overload_list): Ditto.
4550 * valops.c (value_of_local): Use dict_empty.
4551 Include dictionary.h.
4552
4553 2003-06-11 J. Brobecker <brobecker@gnat.com>
4554
4555 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4556
4557 2003-06-11 David Carlton <carlton@bactrian.org>
4558
4559 * block.h (BLOCK_SHOULD_SORT): Delete.
4560 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4561 blocks.
4562 * ada-lang.c (ada_add_block_symbols): Ditto.
4563 * symfile.c (sort_block_syms): Delete.
4564 (sort_symtab_syms): Ditto.
4565 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4566 declarations.
4567 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4568 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4569 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4570 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4571 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4572 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4573 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4574
4575 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4576
4577 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4578 bits to 128.
4579
4580 2003-06-11 Andrew Cagney <cagney@redhat.com>
4581
4582 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4583 REGISTER_CONVERTIBLE.
4584 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4585 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4586 * gdbarch.h, gdbarch.c: Re-generate.
4587 * arch-utils.h (deprecated_register_convertible_not): Rename
4588 generic_register_convertible_not.
4589 * arch-utils.c (deprecated_register_convertible_not): Rename
4590 generic_register_convertible.
4591 (legacy_convert_register_p, legacy_register_to_value): Update.
4592 * sh-tdep.c (sh64_push_arguments): Update.
4593 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4594 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4595 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4596 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4597 * arch-utils.c (legacy_value_to_register): Update.
4598 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4599 (rs6000_register_convert_to_raw): Make parameter "from" const.
4600 * mips-tdep.c (mips_gdbarch_init): Update.
4601 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4602 * infcmd.c (default_print_registers_info): Update.
4603 * ia64-tdep.c (ia64_gdbarch_init): Update.
4604 (ia64_register_convert_to_raw): Make parameter "from" const.
4605 * i386-tdep.c (i386_gdbarch_init): Update.
4606 (i386_register_convert_to_raw): Update.
4607
4608 2003-06-11 Andrew Cagney <cagney@redhat.com>
4609
4610 * remote-fileio.c: Include "remote-fileio.h".
4611 * Makefile.in (remote-fileio.o): Update dependencies.
4612 (remote_fileio_h): Fix typo.
4613
4614 2003-06-11 Andrew Cagney <cagney@redhat.com>
4615
4616 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4617 (xstormy16_save_dummy_frame_tos): Make static.
4618 (_initialize_xstormy16_tdep): Add declaration.
4619 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4620 * v850-tdep.c: Make local functions static.
4621 (_initialize_v850_tdep): Add declaration.
4622 * sparc-tdep.c: Make local functions static.
4623 (_initialize_sparc_tdep): Add declaration.
4624 * sh-tdep.c: Make local functions static.
4625 (_initialize_sh_tdep): Add declaration.
4626 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4627 * s390-tdep.c: Make local functions static.
4628 (_initialize_s390_tdep): Add declaration.
4629 * dbxread.c (find_stab_function_addr): Make static.
4630 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4631 * ocd.c (_initialize_remote_ocd): Add declaration.
4632 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4633 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4634 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4635 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4636 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4637 * remote-array.c (_initialize_array): Add declaration.
4638 (_initialize_remote_monitors): Add declaration.
4639 * remote-mips.c: Make local functions static.
4640 (_initialize_remote_mips): Add declaration.
4641 * mcore-tdep.c: Make all local functions static.
4642 (_initialize_mcore_tdep): Add declaration.
4643 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4644 * abug-rom.c (_initialize_abug_rom): Add declaration.
4645 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4646 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4647 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4648 * remote-est.c (_initialize_est): Add declaration.
4649 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4650 (m68hc11_call_dummy_address): Make static.
4651 * ia64-tdep.c: Make local functions static.
4652 (_initialize_ia64_tdep): Add declaration.
4653 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4654 * monitor.c (monitor_wait_filter): Make static.
4655 (_initialize_remote_monitors): Add declaration.
4656 * remote-hms.c (_initialize_remote_hms): Add declaration.
4657 * remote-e7000.c (fetch_regs_from_dump): Make static.
4658 (expect_n): Make static.
4659 (_initialize_remote_e7000): Add declaration.
4660 * ser-e7kpc.c: Always include "defs.h".
4661 (_initialize_ser_e7000pc): Add declaration.
4662 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4663 * cris-tdep.c: Make all but one function static.
4664 (_initialize_cris_tdep): Add declaration.
4665 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4666 * solib.c (update_solib_list): Make static.
4667 (_initialize_solib): Add declaration.
4668 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4669 (_initialize_avr_tdep): Add declaration.
4670 * remote-rdi.c (voiddummy): Make static.
4671 (_initialize_remote_rdi): Add declaration.
4672 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4673 * remote-rdp.c (send_rdp): Make static.
4674 (_initialize_remote_rdp): Add declaration.
4675 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4676
4677 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4678
4679 * remote-fileio.c: Make ari happy.
4680
4681 2003-06-10 J. Brobecker <brobecker@gnat.com>
4682
4683 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4684 fetching the trailing bytes of the buffer we are about to write.
4685
4686 2003-06-10 Andrew Cagney <cagney@redhat.com>
4687
4688 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4689 * Makefile.in (remote-fileio.o): Update dependencies.
4690 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4691 include <setjmp.h>, or <sys/types.h> conditional on USG.
4692 (remote_fio_jmp_buf): Delete global variable.
4693
4694 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4695 Martin M. Hunt <hunt@redhat.com>
4696
4697 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4698 (SFILES): Add remote-fileio.c.
4699 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4700 dependencies for building remote.o.
4701 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4702 * remote-fileio.h: New header file defining remote File-I/O interface.
4703 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4704 static storage class.
4705 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4706 'F' packet.
4707 (_initialize_remote): Call initialize_remote_fileio().
4708 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4709 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4710 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4711 (captured_main): Initialize new ui_files.
4712 * ui-file.c: Add read and fgets input functions.
4713 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4714 (null_file_read): New function.
4715 (ui_file_read): New function.
4716 (set_ui_file_read): New function.
4717 (stdio_file_read): New function.
4718 * ui-file.h: New type ui_file_read_ftype.
4719 (set_ui_file_read): Declare.
4720 (ui_file_read): Declare.
4721
4722 2003-06-09 Andrew Cagney <cagney@redhat.com>
4723
4724 * frame.h (deprecated_unwind_get_saved_register): Rename
4725 generic_unwind_get_saved_register, update comments.
4726 * mips-tdep.c (mips_get_saved_register): Update.
4727 * frame.c (deprecated_unwind_get_saved_register): Update.
4728
4729 2003-06-09 Andrew Cagney <cagney@redhat.com>
4730
4731 * vax-tdep.c (vax_frame_locals_address): Delete function.
4732 (vax_gdbarch_init): Do not set frame_locals_address.
4733 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4734 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4735 * s390-tdep.c (s390_frame_args_address): Delete function.
4736 (s390_gdbarch_init): Do not set frame_args_address or
4737 frame_locals_address.
4738 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4739 (ns32k_gdbarch_init): Do not set frame_locals_address.
4740 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4741 (hppa_frame_locals_address): Delete function.
4742 (hppa_gdbarch_init): Do not set frame_args_address, or
4743 frame_locals_address.
4744 * arm-tdep.c (arm_frame_args_address): Delete.
4745 (arm_frame_locals_address): Delete.
4746 (arm_gdbarch_init): Do not set frame_args_address, or
4747 frame_locals_address.
4748
4749 2003-06-09 Andrew Cagney <cagney@redhat.com>
4750
4751 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4752 * gdbarch.h, gdbarch.c: Re-generate.
4753 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4754 * arch-utils.c (frame_num_args_unknown): Delete function.
4755 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4756 (frame_info): Use FRAME_NUM_ARGS_P.
4757 * arm-tdep.c (arm_frame_num_args): Delete function.
4758 (arm_gdbarch_init): Do not set frame_num_args.
4759 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4760 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4761 (hppa_gdbarch_init): Do not set frame_num_args.
4762 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4763 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4764 frame_num_args to default frame_num_args_unknown.
4765 * v850-tdep.c (v850_gdbarch_init): Ditto.
4766 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4767 * sh-tdep.c (sh_gdbarch_init): Ditto.
4768 * s390-tdep.c (s390_gdbarch_init): Ditto.
4769 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4770 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4771 * mips-tdep.c (mips_gdbarch_init): Ditto.
4772 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4773 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4774 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4775 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4776 * i386-tdep.c (i386_gdbarch_init): Ditto.
4777 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4778 * frv-tdep.c (frv_gdbarch_init): Ditto.
4779 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4780 * cris-tdep.c (cris_gdbarch_init): Ditto.
4781 * avr-tdep.c (avr_gdbarch_init): Ditto.
4782 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4783
4784 2003-06-09 Andrew Cagney <cagney@redhat.com>
4785
4786 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4787 (print_frame_args): Moved to "stack.c".
4788 * stack.c: Include "gdb_assert.h".
4789 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4790 (print_frame_args): Moved from "printcmd.c".
4791 * frame.h (print_frame_args): Delete declaration.
4792 * Makefile.in (stack.o): Update dependencies.
4793
4794 2003-06-08 Andrew Cagney <cagney@redhat.com>
4795
4796 * frame.c (get_prev_frame): Remove reference to
4797 frame_args_address_correct in comments.
4798 * frame-base.c (default_frame_args_address): Delete code
4799 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4800 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4801 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4802 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4803 (vax_frame_args_address_correct): Delete declaration.
4804
4805 2003-06-08 Andrew Cagney <cagney@redhat.com>
4806
4807 * gdbarch.sh (UNWIND_SP): Add.
4808 * gdbarch.h, gdbarch.c: Re-generate.
4809 * frame.c (frame_sp_unwind): New function.
4810 (get_frame_sp): New function.
4811 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4812 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4813 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4814 value.
4815 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4816 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4817
4818 2003-06-08 Andrew Cagney <cagney@redhat.com>
4819
4820 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4821 REMOTE_BREAKPOINT.
4822 * remote.c: Update.
4823 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4824 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4825 * config/m68k/tm-sun3.h: Update.
4826 * config/m68k/tm-m68klynx.h: Update.
4827 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4828
4829 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4830 trad_frame". Update comments.
4831 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4832 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4833 (trad_frame_register_value, trad_frame_prev_register): Update.
4834
4835 2003-06-08 Andrew Cagney <cagney@redhat.com>
4836
4837 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4838 from GCC's acinclude.m4.
4839 * configure.in: Check for getopt's delcaration.
4840 * aclocal.m4, config.in, configure: Re-generate.
4841 * main.c (error_init): Delete declaration.
4842 * defs.h (error_init): Declare.
4843 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4844 (rs6000_convert_from_func_ptr_addr): Make static.
4845 (_initialize_rs6000_tdep): Add declaration.
4846 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4847 (show_commands, set_verbose, show_history): Delete declaration.
4848 * top.h (set_verbose): Add declaration.
4849 (show_history, set_history, show_commands): Add declaration.
4850 (do_restore_instream_cleanup): Add declaration.
4851 * objc-lang.c (specialcmp): Make static.
4852 (print_object_command): Make static.
4853 (find_objc_msgsend): Make static.
4854 (find_objc_msgcall_submethod_helper): Make static.
4855 (find_objc_msgcall_submethod): Make static.
4856 (_initialize_objc_language): Add declaration.
4857 (find_implementation_from_class): Make static.
4858 (find_implementation): Make static.
4859 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4860 * objc-lang.h (lookup_struct_typedef): Add declaration.
4861 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4862 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4863 (do_restore_user_call_depth): Make static.
4864 (do_restore_instream_cleanup): Delete declaration.
4865 (dont_repeat): Delete declaration.
4866 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4867 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4868 * reggroups.c (_initialize_reggroup): Add declaration.
4869 * cp-support.c (_initialize_cp_support): Add declaration.
4870 * cp-abi.c (_initialize_cp_abi): Add declaration.
4871 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4872 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4873 (_initialize_gnu_v3_abi): Add declaration.
4874 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4875 (_initialize_gnu_v2_abi): Add declaration.
4876 * frame-base.c (_initialize_frame_base): Add declaration.
4877 * doublest.c (floatformat_from_length): Make static.
4878 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4879 * frame.c (create_sentinel_frame): Make static.
4880 (_initialize_frame): Add declaration.
4881 * top.c (do_catch_errors): Make static.
4882 (gdb_rl_operate_and_get_next_completion): Make static.
4883 * typeprint.c: Include "typeprint.h".
4884 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4885 (sentinel_frame_this_id): Make static.
4886 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4887 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4888 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4889 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4890 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4891 * maint.c (maintenance_print_architecture): Make static.
4892 * signals/signals.c (_initialize_signals): Add declaration.
4893 * std-regs.c (_initialize_frame_reg): Add declaration.
4894 * jv-exp.y (push_variable): ISO C definition.
4895 (push_qualified_expression_name): Ditto.
4896 * memattr.c (_initialize_mem): Add declaration.
4897 * remote.c (remote_check_watch_resources): Make static.
4898 (remote_stopped_by_watchpoint): Make static.
4899 (remote_stopped_data_address): Make static.
4900 * d10v-tdep.c (nr_dmap_regs): Make static.
4901 (a0_regnum): Make static.
4902 (d10v_frame_unwind_cache): Make static.
4903 (d10v_frame_p): Make static.
4904 * osabi.c (show_osabi): Make static.
4905 (_initialize_gdb_osabi): Add extern declaration.
4906 * gdbtypes.c (make_qualified_type): Make static.
4907 (safe_parse_type): Make static.
4908 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4909 * macrotab.c (macro_bcache_free): Make static.
4910 * interps.c (interp_set_quiet): Make static.
4911 (interpreter_exec_cmd): Make static.
4912 * stack.h (select_frame_command): New file.
4913 * stack.c: Include "stack.h".
4914 (select_frame_command_wrapper): Delete function.
4915 (select_frame_command): Make global.
4916 * infcall.c: Include "infcall.h".
4917 * linespec.c: Include "linespec.h".
4918 * symfile.c (sections_overlap): Make static.
4919 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4920 * charset.c (_initialize_charset): Add missing prototype.
4921 * regcache.c (init_legacy_regcache_descr): Make static.
4922 (do_regcache_xfree): Make static.
4923 (regcache_xfer_part): Make static.
4924 (_initialize_regcache): Add missing prototype.
4925 * breakpoint.c (parse_breakpoint_sals): Make static.
4926 (breakpoint_sals_to_pc): Make static.
4927 * interps.h (clear_interpreter_hooks): ISO C declaration.
4928 * Makefile.in (stack_h): Define.
4929 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4930 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4931
4932 2003-06-08 Andrew Cagney <cagney@redhat.com>
4933
4934 * Makefile.in (d10v-tdep.o): Update dependencies.
4935 (SFILES): Add trad-frame.c.
4936 (trad_frame_h): Define.
4937 (COMMON_OBS): Add trad-frame.o.
4938 (trad-frame.o): Specify dependencies.
4939 * d10v-tdep.c: Include "trad-frame.h".
4940 (saved_regs_unwinder): Delete function.
4941 (d10v_frame_prev_register): Use trad_frame_prev_register.
4942 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4943 trad_frame", delete "regs" and "prev_sp".
4944 (prologue_find_regs): Use trad-frame.
4945 * trad-frame.h, trad-frame.c: New files.
4946
4947 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4948
4949 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4950
4951 2003-06-07 Adam Fedor <fedor@gnu.org>
4952
4953 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4954 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4955 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4956 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4957 resolve_msgsend_super, resolve_msgsend_super_stret):
4958 Use it.
4959
4960 2003-06-07 Andrew Cagney <cagney@redhat.com>
4961
4962 * symfile.h: Re-indent, clean up comments.
4963
4964 2003-06-07 Andrew Cagney <cagney@redhat.com>
4965
4966 * inferior.h (deprecated_write_sp): Replace
4967 generic_target_write_sp.
4968 * regcache.c (deprecated_write_sp): Replace
4969 generic_target_write_sp.
4970 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4971 * vax-tdep.c (vax_gdbarch_init): Update.
4972 * v850-tdep.c (v850_gdbarch_init): Update.
4973 * sparc-tdep.c (sparc_gdbarch_init): Update.
4974 * sh-tdep.c (sh_gdbarch_init): Update.
4975 * s390-tdep.c (s390_gdbarch_init): Update.
4976 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4977 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4978 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4979 * mcore-tdep.c (mcore_gdbarch_init): Update.
4980 * m68k-tdep.c (m68k_gdbarch_init): Update.
4981 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4982 * ia64-tdep.c (ia64_gdbarch_init): Update.
4983 * h8300-tdep.c (h8300_gdbarch_init): Update.
4984 * frv-tdep.c (frv_gdbarch_init): Update.
4985 * cris-tdep.c (cris_gdbarch_init): Update.
4986 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4987
4988 2003-06-07 Andrew Cagney <cagney@redhat.com>
4989
4990 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4991 Assert that PC_REGNUM is valid.
4992 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4993
4994 2003-06-07 Andrew Cagney <cagney@redhat.com>
4995
4996 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4997 * gdbarch.h, gdbarch.c: Regenerate.
4998 * mn10300-tdep.c: Include "gdb_assert.h".
4999 (mn10300_read_fp): New function.
5000 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5001 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5002 * ia64-tdep.c: Include "gdb_assert.h".
5003 (ia64_read_fp): New function.
5004 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5005 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5006 * regcache.c (generic_target_read_sp): Delete function.
5007 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5008 * inferior.h (generic_target_read_sp): Delete declaration.
5009 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5010 generic_target_read_sp.
5011 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5012 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5013 * sh-tdep.c (sh_gdbarch_init): Ditto.
5014 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5015 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5016
5017 2003-06-07 Andrew Cagney <cagney@redhat.com>
5018
5019 * gdbarch.sh: Comment each field of startup_gdbarch.
5020 * gdbarch.h, gdbarch.c: Re-generate.
5021
5022 2003-06-07 Andrew Cagney <cagney@redhat.com>
5023
5024 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5025 * gdbarch.h, gdbarch.c: Re-generate.
5026 * regcache.c: Update comments on read_pc et.al.
5027 (generic_target_read_pc): Delete function.
5028 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5029 * inferior.h (generic_target_read_pc): Delete declaration.
5030 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5031 generic_target_read_pc.
5032 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5033 * sh-tdep.c (sh_gdbarch_init): Ditto.
5034 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5035 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5036
5037 2003-06-07 Andrew Cagney <cagney@redhat.com>
5038
5039 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5040 "index" with "special_local_sect". Use strcmp instead of STREQ.
5041 Append period to coments.
5042
5043 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5044
5045 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5046 (elfstab_offset_sections): Likewise.
5047 * gdb-stabs.h (stab_section_info): Likewise.
5048 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5049 * objfiles.c (objfile_relocate): Likewise.
5050 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5051 * remote.c (get_offsets): Likewise.
5052 (remote_cisco_objfile_relocate): Likewise.
5053 * somread.c (som_symfile_offsets): Likewise.
5054 * symfile.c (alloc_section_addr_info): New function.
5055 (build_section_addr_info_from_section_tab): Use it.
5056 (free_section_addr_info): Adjust.
5057 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5058 (syms_from_objfile): Allocate local_addr dynamically.
5059 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5060 dynamically.
5061 (add_symbol_file_command): Allocate sect_opts dynamically.
5062 (reread_symbols): Avoid use of SECT_OFF_MAX.
5063 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5064 (alloc_section_addr_info): Declare it.
5065 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5066 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5067 dynamically.
5068 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5069
5070 2003-06-06 Andrew Cagney <cagney@redhat.com>
5071
5072 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5073 (d10v_frame_unwind_cache): Do not set "return_pc".
5074
5075 2003-06-06 Michael Snyder <msnyder@redhat.com>
5076
5077 * h8300-tdep.c: Make tidy (long lines).
5078
5079 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5080
5081 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5082 to regcache_collect().
5083
5084 2003-06-05 J. Brobecker <brobecker@gnat.com>
5085
5086 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5087 pc_in_sigtramp multiarch method.
5088 (hppa_hpux_som_init_abi): Use it.
5089 (hppa_hpux_elf_init_abi): Likewise.
5090 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5091 macro has been multiarched.
5092 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5093 macro here, as hppa64 isn't multiarched yet.
5094
5095 2003-06-05 Andrew Cagney <cagney@redhat.com>
5096
5097 * Makefile.in (value_h): Add $(frame_h).
5098 * value.h: Include "frame.h".
5099 (struct value): Replace "frame_addr" with "frame_id".
5100 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5101 * values.c (allocate_value): Use VALUE_FRAME_ID.
5102 (value_copy): Use VALUE_FRAME_ID.
5103 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5104 * valops.c (value_assign): Update. Use frame_find_by_id.
5105
5106 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5107
5108 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5109 in each pass.
5110
5111 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5112
5113 * thread-db.c (check_event): For create/death event breakpoints,
5114 loop through all messages to ensure that we read the message
5115 corresponding to the breakpoint we are at.
5116
5117 2003-06-04 Michael Snyder <msnyder@redhat.com>
5118
5119 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5120
5121 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5122
5123 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5124 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5125 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5126 when handling .eh_frame sections.
5127
5128 2003-06-04 J. Brobecker <brobecker@gnat.com>
5129
5130 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5131 prepare_to_proceed procedure instead of the hppa-specific one.
5132 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5133
5134 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5135
5136 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5137 * config.in: Regenerated.
5138 * configure.in: Add test for syscall function and check for
5139 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5140 * configure: Regenerated.
5141 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5142 <sys/syscall.h>.
5143 (kill_lwp): New function that uses tkill syscall or
5144 uses kill, depending on whether threading model is nptl or not.
5145 All callers of kill() changed to use kill_lwp().
5146 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5147 see if all threads have already exited in the nptl model.
5148 (stop_and_resume_callback): New callback function used by the
5149 lin_lwp_wait thread exit handling code.
5150 (stop_wait_callback): Check for threads already having exited and
5151 delete such threads fromt the lwp list when discovered.
5152 (stop_callback): Don't assert retcode of kill call.
5153
5154 Roland McGrath <roland@redhat.com>
5155 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5156 nptl libthread_db.
5157
5158 2003-06-03 Richard Henderson <rth@redhat.com>
5159
5160 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5161 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5162 (alpha_sigtramp_frame_prev_register): Likewise.
5163 (alpha_heuristic_frame_prev_register): Likewise.
5164 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5165
5166 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5167 alpha-specific register id names.
5168 (alpha_mdebug_frame_unwind_cache): Likewise.
5169 (alpha_mdebug_frame_prev_register): Likewise.
5170
5171 2003-06-03 Richard Henderson <rth@redhat.com>
5172
5173 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5174 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5175 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5176 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5177 unwind routines.
5178 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5179 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5180 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5181
5182 * alpha-linux-tdep.c: Remove unnecessary includes.
5183 * Makefile.in (alpha-linux-tdep.o): Update.
5184
5185 2003-06-03 Richard Henderson <rth@redhat.com>
5186
5187 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5188 (alphabsd_fill_fpreg): Likewise.
5189
5190 2003-06-03 J. Brobecker <brobecker@gnat.com>
5191
5192 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5193 references to struct frame_info fields by calls to the equivalent
5194 accessors. Necessary now that frame_info is opaque.
5195
5196 2003-06-03 J. Brobecker <brobecker@gnat.com>
5197
5198 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5199 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5200 structure, field no longer exists.
5201
5202 2003-06-03 J. Brobecker <brobecker@gnat.com>
5203
5204 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5205 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5206
5207 2003-06-03 J. Brobecker <brobecker@gnat.com>
5208
5209 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5210 references to struct frame_info fields by calls to the equivalent
5211 accessors. Necessary now that frame_info is opaque.
5212
5213 2003-06-03 J. Brobecker <brobecker@gnat.com>
5214
5215 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5216 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5217 structure, field no longer exists.
5218
5219 2003-06-03 Theodore A. Roth <troth@openavr.org>
5220
5221 * remote.c (init_remote_state): Compute sizeof_g_packet by
5222 accumulation of the size of all registers instead of blindly using
5223 DEPRECATED_REGISTER_BYTES.
5224
5225 2003-06-03 Michael Snyder <msnyder@redhat.com>
5226
5227 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5228 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5229 for h8300sx.
5230
5231 2003-06-03 J. Brobecker <brobecker@gnat.com>
5232
5233 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5234 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5235
5236 2003-06-03 Andrew Cagney <cagney@redhat.com>
5237
5238 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5239 (sparc_convert_to_raw): Delete function.
5240 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5241 register_convert_to_virtual.
5242
5243 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5244
5245 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5246 layer if not dealing with a statically-linked threaded program.
5247
5248 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5249
5250 * solib.c (solib_open): Update comment to reflect actual search order.
5251
5252 2003-06-03 Andrew Cagney <cagney@redhat.com>
5253
5254 * frame.c (get_frame_memory_signed): New function.
5255 (get_frame_memory, get_frame_memory_unsigned): New function.
5256 (get_frame_arch): New function.
5257 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5258 (get_frame_memory, get_frame_unsigned_memory): Declare.
5259 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5260 get_frame_memory_unsigned and get_frame_arch.
5261 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5262
5263 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5264
5265 * MAINTAINERS (write after approval): Add myself.
5266
5267 2003-06-03 Jim Blandy <jimb@redhat.com>
5268
5269 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5270 elements of gregset_t are 64 bits each, but access registers
5271 are still 32 bits, so they're packed two per gregset_t
5272 element. Unpack/pack them properly.
5273
5274 2003-06-02 David Carlton <carlton@bactrian.org>
5275
5276 * linespec.c (find_methods): Break out code into
5277 add_matching_methods and add_constructors.
5278 (add_matching_methods): New.
5279 (add_constructors): Ditto.
5280
5281 2003-06-02 Andrew Cagney <cagney@redhat.com>
5282
5283 * sparc-tdep.c (sparc_print_registers): Delete call to
5284 REGISTER_CONVERTIBLE.
5285 (sparc_gdbarch_init): Do not set register_convertible.
5286 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5287 * frv-tdep.c (frv_gdbarch_init): Ditto.
5288 * cris-tdep.c (cris_gdbarch_init): Ditto.
5289
5290 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5291
5292 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5293 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5294 (syms_from_objfile): Ditto.
5295
5296 2003-06-03 Andreas Schwab <schwab@suse.de>
5297
5298 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5299 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5300
5301 2003-06-02 Richard Henderson <rth@redhat.com>
5302
5303 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5304 a member of all_reggroup.
5305
5306 2003-06-02 Richard Henderson <rth@redhat.com>
5307
5308 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5309 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5310 (alpha_lds, alpha_sts): New.
5311 (alpha_convert_register_p): Change from _register_convertible.
5312 (alpha_register_to_value): Change from _convert_to_virtual;
5313 restructure and fail for type sizes other than 4 or 8.
5314 (alpha_value_to_register): Similarly.
5315 (alpha_extract_return_value): Use alpha_sts.
5316 (alpha_store_return_value): Use alpha_lds.
5317 (alpha_gdbarch_init): Update hooks.
5318
5319 2003-06-02 Richard Henderson <rth@redhat.com>
5320
5321 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5322 regnum identifiers.
5323 (alpha_sigtramp_register_address): Likewise.
5324
5325 2003-06-02 Richard Henderson <rth@redhat.com>
5326
5327 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5328 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5329 * alpha-tdep.h: Declare them.
5330
5331 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5332 Remove zerobuf. Don't error on UNIQUE.
5333 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5334 (ALPHA_REGSET_UNIQUE): Provide default.
5335 (supply_gregset): Use alpha_supply_int_regs.
5336 (fill_gregset): Use alpha_fill_int_regs.
5337 (supply_fpregset): Use alpha_supply_fp_regs.
5338 (fill_fpregset): Use alpha_fill_fp_regs.
5339 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5340 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5341 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5342 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5343 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5344 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5345
5346 2003-06-02 Richard Henderson <rth@redhat.com>
5347
5348 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5349
5350 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5351 (alpha_store_return_value): Likewise.
5352
5353 2003-06-02 David Carlton <carlton@math.stanford.edu>
5354
5355 * block.c (contained_in): Add 'const' to arguments.
5356 (block_function): Ditto.
5357 * block.h: Update declarations for block_function and
5358 contained_in.
5359
5360 2003-06-02 David Carlton <carlton@math.stanford.edu>
5361
5362 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5363 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5364 * p-valprint.c (pascal_val_print): Ditto.
5365 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5366
5367 2003-06-02 Richard Henderson <rth@redhat.com>
5368
5369 * alpha-tdep.c (alpha_push_dummy_call): Use
5370 builtin_type_ieee_double_little instead of builtin_type_double.
5371
5372 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5373 sign-extension of 32-bit values.
5374 (alpha_store_return_value): Similarly.
5375
5376 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5377 (alpha_extract_return_value): Likewise.
5378 (alpha_store_return_value): Likewise.
5379
5380 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5381 (alpha_store_return_value): Error on IEEE Quad floats.
5382
5383 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5384 (alpha_extract_struct_value_address): Likewise.
5385 (alpha_store_return_value): Likewise.
5386 (alpha_store_struct_return): Remove.
5387 (alpha_gdbarch_init): Update hook registration to match.
5388
5389 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5390 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5391 macros where appropriate.
5392 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5393 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5394
5395 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5396 for SP, GP; void_func_ptr for PC; non-language-specific types
5397 for all others.
5398 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5399
5400 2003-06-02 Richard Henderson <rth@redhat.com>
5401
5402 * top.h (lim_at_start): Declare.
5403 * main.c (captured_main): Set it.
5404 * top.c (lim_at_start): Define.
5405 (command_loop): Use it instead of &environ.
5406 * event-top.c (command_handler): Likewise.
5407
5408 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5409
5410 * mipsnbsd-tdep.c: Update copyright years.
5411 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5412
5413 2003-06-01 Richard Henderson <rth@redhat.com>
5414
5415 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5416 (alpha-linux-tdep.o): Update dependencies.
5417 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5418 * alpha-mdebug-tdep.c: Remove unneeded includes.
5419
5420 2003-06-01 Richard Henderson <rth@redhat.com>
5421
5422 * alpha-tdep.c (alpha_register_reggroup_p): New.
5423 (alpha_gdbarch_init): Register it.
5424
5425 2003-06-02 Andrew Cagney <cagney@redhat.com>
5426
5427 * dwarfread.c: Eliminate "register"
5428 (decode_die_type): Eliminate assignment within "if".
5429 (struct_type, decode_array_element_type): Ditto.
5430 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5431 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5432 (decode_modified_type, completedieinfo): Ditto.
5433 * block.c: Eliminate "register".
5434 (blockvector_for_pc_sect): Eliminate assignment within "if".
5435 * cp-support.h (struct symbol): Opaque declaration.
5436 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5437
5438 2003-06-01 Richard Henderson <rth@redhat.com>
5439
5440 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5441 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5442
5443 2003-06-01 Adam Fedor <fedor@gnu.org>
5444
5445 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5446 * gdbarch.[ch]: Regenerate.
5447 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5448 (hppa_gdbarch_init): Set it in the gdbarch vector.
5449 * i386-tdep.c (i386_fetch_pointer_argument): New
5450 (i386_gdbarch_init): Set it into gdbarch.
5451 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5452 (rs6000_gdbarch_init): Set it in gdbarch.
5453 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5454 (sparc_gdbarch_init): Set it in gdbarch.
5455
5456 2003-06-01 Andrew Cagney <cagney@redhat.com>
5457
5458 * defs.h (extract_address): Delete declaration.
5459 * findvar.c (extract_address): Delete function.
5460 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5461 extract_address with the inline equivalent,
5462 extract_unsigned_integer.
5463 (xstormy16_extract_struct_value_address): Ditto.
5464 (xstormy16_pointer_to_address): Ditto.
5465 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5466 * v850-tdep.c (v850_push_arguments): Ditto.
5467 (v850_extract_return_value): Ditto.
5468 (v850_extract_struct_value_address): Ditto.
5469 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5470 (sparcnbsd_get_longjmp_target_64): Ditto.
5471 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5472 (get_longjmp_target): Ditto.
5473 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5474 (sh64_extract_struct_value_address): Ditto.
5475 (sh_push_arguments): Ditto.
5476 (sh64_push_arguments): Ditto.
5477 * remote-vxsparc.c (vx_read_register): Ditto.
5478 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5479 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5480 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5481 * mipsv4-nat.c (get_longjmp_target): Ditto.
5482 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5483 * mips-nat.c (get_longjmp_target): Ditto.
5484 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5485 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5486 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5487 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5488 * irix5-nat.c (get_longjmp_target): Ditto.
5489 * irix4-nat.c (get_longjmp_target): Ditto.
5490 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5491 (ia64_push_arguments): Ditto.
5492 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5493 * h8300-tdep.c (h8300_push_arguments): Ditto.
5494 (h8300_store_return_value): Ditto.
5495 (h8300_extract_struct_value_address): Ditto.
5496 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5497 (frv_push_arguments): Ditto.
5498 * avr-tdep.c (avr_pointer_to_address): Ditto.
5499 (avr_push_arguments): Ditto.
5500 * arm-tdep.c (arm_push_dummy_call): Ditto.
5501 (arm_get_longjmp_target): Ditto.
5502 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5503 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5504 (alpha_get_longjmp_target): Ditto.
5505
5506 * solib-irix.c (extract_mips_address): Inline extract_address,
5507 replacing it with extract_signed_integer.
5508 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5509 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5510 (first_link_map_member, open_symbol_file_object): Ditto.
5511 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5512 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5513 (LM_NEXT, LM_NAME): Ditto.
5514
5515 2003-06-01 Richard Henderson <rth@redhat.com>
5516
5517 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5518 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5519 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5520 (alpha_cannot_store_register): Likewise.
5521 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5522 * alpha-nat.c (supply_gregset): Likewise.
5523 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5524
5525 2003-06-01 Andrew Cagney <cagney@redhat.com>
5526
5527 * infcall.c (call_function_by_hand): Update comment on
5528 DEPRECATED_DUMMY_WRITE_SP.
5529
5530 * mips-tdep.c (mips_gdbarch_init): Do not set
5531 deprecated_dummy_write_sp.
5532 (mips_eabi_push_dummy_call): Set the SP register.
5533 (mips_o64_push_dummy_call): Set the SP register.
5534 (mips_o32_push_dummy_call): Set the SP register.
5535 (mips_n32n64_push_dummy_call): Set the SP register.
5536
5537 2003-06-01 Richard Henderson <rth@redhat.com>
5538
5539 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5540 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5541 (supply_gregset): Likewise.
5542 * alpha-tdep.c (alpha_store_return_value): Likewise.
5543 (alpha_get_longjmp_target): Likewise.
5544 (alpha_register_name): Constify array.
5545 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5546 deprecated_register_size, deprecated_register_bytes,
5547 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5548 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5549 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5550
5551 2003-06-01 Richard Henderson <rth@redhat.com>
5552
5553 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5554 from arg_reg_buffer to regcache to avoid double conversion.
5555
5556 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5557
5558 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5559 SP_REGNUM.
5560 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5561 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5562
5563 2003-06-01 Richard Henderson <rth@redhat.com>
5564
5565 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5566 (decode_frame_entry): Set it. Skip FDE augmentation.
5567
5568 2003-06-01 Richard Henderson <rth@redhat.com>
5569
5570 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5571 not overlapping PC_REGNUM.
5572
5573 2003-06-01 Richard Henderson <rth@redhat.com>
5574
5575 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5576 alpha_push_arguments. Don't dump argument register data to
5577 the target stack. Fix float and 128-bit long double semantics.
5578 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5579 (alpha_fix_call_dummy): Remove.
5580 (alpha_call_dummy_words): Remove.
5581 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5582
5583 2003-06-01 Richard Henderson <rth@redhat.com>
5584
5585 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5586
5587 2003-06-01 Andrew Cagney <cagney@redhat.com>
5588
5589 * mips-tdep.c (is_mips16_addr): New function.
5590 (make_mips16_addr, unmake_mips16_addr): New functions.
5591 (pc_is_mips16, mips_fetch_instruction): Use.
5592 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5593 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5594 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5595 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5596 TARGET_MIPS.
5597 * config/mips/tm-mips.h: Update copyright.
5598 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5599 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5600 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5601 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5602 (TM_PRINT_INSN_MACH): Delete.
5603 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5604
5605 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5606 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5607 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5608 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5609 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5610 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5611 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5612 mips*-*-riscos* and mips*-*-sysv* onto mips.
5613 * config/mips/mips64.mt: New file.
5614 * config/mips/mips.mt: New file.
5615 * config/mips/littlemips.mt: Delete file.
5616 * config/mips/decstation.mt: Delete file.
5617 * config/mips/vr4300el.mt: Delete file.
5618 * config/mips/vr5000el.mt: Delete file.
5619 * config/mips/vr5000.mt: Delete file.
5620 * config/mips/vr4100.mt: Delete file.
5621 * config/mips/vr4xxxel.mt: Delete file.
5622 * config/mips/vr4300.mt: Delete file.
5623 * config/mips/vr4xxx.mt: Delete file.
5624 * config/mips/bigmips.mt: Delete file.
5625 * config/mips/bigmips64.mt: Delete file.
5626 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5627 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5628 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5629 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5630 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5631 "tm-bigmips.h".
5632 * config/mips/tm-irix3.h: Ditto.
5633 * config/mips/tm-mipsv4.h: Ditto.
5634 * config/mips/tm-embed.h: Ditto.
5635 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5636 "tm-bigmips64.h".
5637 * config/mips/tm-vr5000el.h: Delete file.
5638 * config/mips/tm-tx39l.h: Delete file.
5639 * config/mips/tm-vr4300el.h: Delete file.
5640 * config/mips/tm-vr4xxxel.h: Delete file.
5641 * config/mips/tm-vr4300.h: Delete file.
5642 * config/mips/tm-vr4100.h: Delete file.
5643 * config/mips/tm-vr4xxx.h: Delete file.
5644 * config/mips/tm-vr5000.h: Delete file.
5645 * config/mips/tm-embedl64.h: Delete file.
5646 * config/mips/tm-embedl.h: Delete file.
5647 * config/mips/tm-embed64.h: Delete file.
5648 * config/mips/tm-bigmips64.h: Delete file.
5649 * config/mips/tm-bigmips.h: Delete file.
5650
5651 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5652
5653 Fix gdb/1216.
5654 * shnbsd-nat.c: Include "sh-tdep.h".
5655
5656 From Richard Henderson <rth@redhat.com>:
5657 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5658
5659 2003-05-31 Andrew Cagney <cagney@redhat.com>
5660
5661 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5662 forward declaration.
5663 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5664 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5665 (mips_find_saved_regs): Use set_reg_offset.
5666 (mips_frame_init_saved_regs): Delete function.
5667 (mips_pop_frame): Call mips_find_saved_regs instead of
5668 DEPRECATED_FRAME_INIT_SAVED_REGS.
5669
5670 2003-05-31 Andrew Cagney <cagney@redhat.com>
5671
5672 * mips-tdep.c (mips_gdbarch_init): Do not set
5673 deprecated_max_register_raw_size, register_virtual_size, and
5674 deprecated_max_register_virtual_size.
5675
5676 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5677
5678 * i386-tdep.c: Include "dwarf2-frame.h".
5679 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5680 * Makefile.in (i386-tdep.o): Update dependencies.
5681
5682 * dwarf2-frame.c, dwarf2-frame.h: New files.
5683 * Makefile.in (SFILES): Add dwarf2-frame.c.
5684 (dwarf2_frame_h): Define.
5685 (COMMON_OBS): Add dwarf2-frame.o.
5686 (dwarf2-frame.o): Add dependencies.
5687
5688 2003-05-31 Andreas Jaeger <aj@suse.de>
5689
5690 * x86-64-linux-nat.c: Fix comment.
5691
5692 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5693
5694 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5695 function signature.
5696
5697 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5698 have a sigcontext_addr handler.
5699 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5700 sigcontext_addr handler.
5701
5702 2003-05-31 Andrew Cagney <cagney@redhat.com>
5703
5704 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5705 (print_fp_register_row): Replace do_fp_register_row.
5706 (mips_print_fp_register): Add "file" and "frame" parameters.
5707 (mips_print_register): Add "file" and "frame" parameters.
5708 (mips_print_registers_info): Replace mips_do_registers_info.
5709 (mips_gdbarch_init): Set print_registers_info instead of
5710 deprecated_do_registers_info.
5711 (mips_read_fp_register_single): Add "frame" parameter.
5712 (mips_read_fp_register_double): Add "frame" parameter.
5713
5714 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5715
5716 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5717 Fixes a bug where GDB would print the wrong register names for
5718 targets without SSE.
5719
5720 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5721 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5722 registers.
5723
5724 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5725 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5726 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5727 TDEP->sc_sp_offset.
5728
5729 From Michal Ludvig <mludvig@suse.cz>:
5730 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5731 and `sc_num_regs'.
5732 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5733 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5734 I386_ST0_REGNUM): Move here from...
5735 * i386-tdep.c: ... here.
5736 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5737 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5738 registers if possible.
5739 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5740 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5741 Remove variables.
5742 (i386bsd_sc_reg_offset): New variable.
5743 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5744 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5745 TDEP->sc_sp_offset.
5746 (i386fbsd_sc_reg_offset): New variable.
5747 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5748 TDEP->sc_num_regs.
5749 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5750 variables.
5751 (i386fbsd4_sc_reg_offset): New variable.
5752 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5753 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5754 TDEP->sc_sp_offset.
5755 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5756 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5757 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5758 Remove variables.
5759 (i386nbsd_sc_reg_offset): New variable.
5760 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5761 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5762 TDEP->sc_sp_offset.
5763 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5764 Remove variables.
5765 (i386obsd_sc_reg_offset): New variable.
5766 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5767 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5768 TDEP->sc_sp_offset.
5769 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5770 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5771 for frame pointer offset in `struct sigcontext'.
5772
5773 2003-05-31 Andrew Cagney <cagney@redhat.com>
5774
5775 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5776 architecture methods call_dummy_words, sizeof_call_dummy_words,
5777 push_return_address, store_struct_return, and fix_call_dummy. Set
5778 push_dummy_call instead of deprecated_push_arguments.
5779 (mips_store_struct_return): Delete function.
5780 (mips_fix_call_dummy): Delete function.
5781 (mips_push_return_address): Delete function.
5782 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5783 RA_REGNUM and T9_REGNUM.
5784 (mips_n32n64_push_dummy_call): Ditto for
5785 mips_n32n64_push_arguments.
5786 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5787 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5788
5789 2003-05-31 Andrew Cagney <cagney@redhat.com>
5790
5791 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5792 "dummy_addr" to "bp_addr".
5793 * infcall.c (call_function_by_hand): Pass "funaddr" to
5794 gdbarch_push_dummy_call.
5795 * gdbarch.h, gdbarch.c: Re-generate.
5796 * i386-tdep.c (i386_push_dummy_call): Update.
5797 * arm-tdep.c (arm_push_dummy_call): Update.
5798 * d10v-tdep.c (d10v_push_dummy_call): Update.
5799
5800 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5801
5802 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5803 variable declarations.
5804 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5805 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5806 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5807 x86_64_init_frame_pc, x86_64_init_frame_pc,
5808 x86_64_function_has_prologue): Remove prototypes.
5809 (X86_64_NUM_GREGS): New define.
5810 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5811 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5812 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5813 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5814 XMM1_REGNUM): Remove defines.
5815 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5816 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5817 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5818 X86_64_XMM1_REGNUM): New defines.
5819 (struct x86_64_register_info): Renamed from `struct
5820 register_info'. Remove `size' member.
5821 (x86_64_register_info_table): Remove variable.
5822 (x86_64_register_info): New variable.
5823 (X86_64_NUM_REGS): New define.
5824 (X86_64_NUM_GREGS): Remove define.
5825 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5826 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5827 Remove variables.
5828 (x86_54_dwarf2_reg_to_regnum): Remove function.
5829 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5830 (x86_64_dwarf_reg_to_regnum): New function.
5831 (x86_64_register_name): Rewrite.
5832 (x86_64_register_raw_size): Remove function.
5833 (x86_64_register_byte_table): Remove variable.
5834 (x86_64_register_byte): Remove function.
5835 (x86_64_register_virtual_type): Remove function.
5836 (x86_64_register_type): New function.
5837 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5838 x86_64_register_convert_to_raw): Remove functions.
5839 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5840 (x86_64_use_struct_convention): Make static. Adjust for renamed
5841 defines.
5842 (x86_64_frame_init_saved_regs): Remove function.
5843 (x86_64_push_arguments): Make static. Change to accept a regcache
5844 as argument.
5845 (x86_64_store_return_value, x86_64_extract_return_value): Make
5846 static. Rewrite based on i386 counterparts.
5847 (x86_64_push_dummy_call): New function.
5848 (X86_64_NUM_SAVED_REGS): New define.
5849 (x86_64_register_number): Remove function.
5850 (x86_64_store_struct_return): Remove function.
5851 (x86_64_frameless_function_invocation,
5852 x86_64_function_has_prologue): Remove functions.
5853 (PROLOG_BUFSIZE): Remove define.
5854 (struct x86_64_frame_cache): New structure.
5855 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5856 x86_64_frame_cache, x86_64_frame_this_id,
5857 x86_64_frame_prev_register, x86_64_frame_p,
5858 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5859 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5860 functions.
5861 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5862 variables.
5863 (x86_64_skip_prologue): Rewrite in terms of
5864 x86_64_analyze_prologue.
5865 (x86_64_frame_base_address): New function.
5866 (x86_64_frame_base): New variable.
5867 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5868 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5869 set deprecated_fp_regnum, deprecated_register_size,
5870 deprecated_register_bytes, register_raw_size, register_byte,
5871 register_virtual_type, register_convertiable,
5872 register_convert_to_virtual, convert_to_raw,
5873 deprecated_get_saved_register, deprecated_target_read_fp,
5874 deprecated_push_arguments, deprecated_push_return_address,
5875 deprecated_pop_frame, deprecated_store_struct_return,
5876 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5877 frameless_function_invocation, deprecated_frame_saved_pc,
5878 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5879 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5880 deprecated_init_frame_pc and virtual_frame_pointer. Call
5881 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5882 and x86_64_frame_p. Call frame_base_set_default to register
5883 x86_64_frame_base.
5884 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5885 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5886 (_initialize_x86_64_tdep): Remove function.
5887 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5888 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5889 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5890 define.
5891 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5892 (x86_64_linux_sigcontext_addr): Rewrite.
5893 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5894 x86_64_linux_frame_saved_pc): Remove functions.
5895 (x86_64_linux_pc_in_sigtramp): Renamed from
5896 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5897 trampoline.
5898 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5899 Remove_functions.
5900 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5901 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5902 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5903 (x86_64_regmap): Rename to regmap.
5904 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5905 x86_64_num_gregs.
5906 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5907 x86_64_regmap.
5908 (x86_64_fxsave_offset): Remove function.
5909 (supply_fpregset): Simply call x86_64_supply_fxsave.
5910 (fill_fpregset): Simply call x86_64_fill_fxsave.
5911 (fetch_inferior_registers, store_inferior_registers): Avoid
5912 asignment in if-statement.
5913 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5914 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5915 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5916 (fetch_core_registers): Remove function.
5917 (linux_elf_core_fns): Remove.
5918 (offsetoff): Don't define.
5919 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5920 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5921 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5922 add core-regset.o.
5923 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5924 protection against multiple includes instead of NM_X86_64_h. Add
5925 various comments. Include "config/nm-linux.h". Don't include
5926 <signal.h>.
5927 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5928 GET_THREAD_SIGNALS): Remove defines.
5929 (x86_64_register_u_addr, kernel_u_size,
5930 lin_thread_get_thread_signals): Remove prototypes.
5931 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5932 [HAVE_LINK_H]: Don't include "solib.h".
5933 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5934 * config/i386/tm-x86-64linux.h: Fix comments.
5935 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5936 x86-64-tdep.o): Update dependencies.
5937
5938 2003-05-30 Andrew Cagney <cagney@redhat.com>
5939
5940 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5941 Change parameter type to a "struct regcache *".
5942
5943 * gdbarch.sh: Regardless of the multi-arch level, always define
5944 the macro when not already defined.
5945 * gdbarch.h, gdbarch.c: Re-generate.
5946
5947 2003-05-30 Richard Henderson <rth@redhat.com>
5948
5949 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5950 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5951 (alpha_mdebug_frame_this_id): Likewise.
5952 (alpha_mdebug_frame_prev_register): Likewise.
5953 (alpha_mdebug_frame_base_address): Likewise.
5954 (alpha_mdebug_frame_locals_address): Likewise.
5955 (alpha_mdebug_frame_args_address): Likewise.
5956 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5957 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5958 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5959 loop increment.
5960 (alpha_heuristic_frame_this_id): Make static.
5961 (alpha_heuristic_frame_prev_register): Likewise.
5962 (alpha_heuristic_frame_base_address): Likewise.
5963 * alpha-tdep.h: Update.
5964
5965 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5966
5967 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5968 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5969 defenitions.
5970 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5971 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5972 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5973 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5974 I386_ST0_REGNUM): New defines.
5975 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5976 codestream_get): Remove define.
5977 (codestream_next_addr, condestream_addr, condestream_buf,
5978 codestream_off, codestream_cnt): Remove variables.
5979 (codestream_fill, codestream_seek, codestream_read): Remove
5980 functions.
5981 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5982 functionality.
5983 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5984 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5985 i386_frame_saved_pc, i386_saved_pc_after_call,
5986 i386_frame_num_args, i386_frame_init_saved_regs,
5987 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5988 i386_push_arguments): Remove functions.
5989 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5990 functionality. Use i386_analyze_prologue instead of
5991 i386_get_frame_setup.
5992 (I386_NUM_SAVED_REGS): New define.
5993 (struct i386_frame_cache): New structure.
5994 (i386_alloc_frame_cache, i386_analyze_struct_return,
5995 i386_skip_probe, i386_analyze_frame_setup,
5996 i386_analyze_register_saves, i386_analyze_prologue,
5997 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5998 i386_frame_prev_register, i386_sigtramp_frame_cache,
5999 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6000 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6001 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6002 New functions.
6003 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6004 New variables.
6005 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6006 I386_EAX_REGNUM and I386_EDX_REGNUM.
6007 (i386_extract_return_value, i386_store_return_value): Use
6008 I386_ST0_REGNUM where appropriate.
6009 (i386_extract_struct_value_address): Rewrite to use extract_address.
6010 (i386_svr4_pc_in_sigtramp): Add comment.
6011 (i386_svr4_sigcontext_addr): Rewrite.
6012 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6013 TDEP->sc_sp_offset.
6014 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6015 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6016 of new defines. Set push_dummy_call, don't set
6017 deprecated_push_arguments, deprecated_push_return_address,
6018 deprecated_pop_frame. Don't set parm_boundary. Don't set
6019 deprecated_frame_chain, deprecated_frame_saved_pc,
6020 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6021 save_dummy_frame_tos, unwind_pc. Call
6022 frame_unwind_append_predicate and frame_base_set_default. Don't
6023 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6024 Don't set frameless_function_invocation. Don't set
6025 deprecated_register_bytes, deprecated_register_size,
6026 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6027 * i386-linux-tdep.c: Fix formatting in some comments.
6028 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6029 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6030 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6031 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6032 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6033 redundant parentheses.
6034 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6035 (i386_linux_sigcontext_addr): Use it. Rewrite.
6036 (find_minsym_and_objfile): Change name of second argument.
6037 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6038 changed. Use frame_pc_unwind instead of
6039 DEPRECATED_SAVED_PC_AFTER_CALL.
6040 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6041 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6042 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6043 unwinder.
6044 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6045 "dummy-frame.h".
6046 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6047 (_initialize_i386_cygwin_tdep): New prototype.
6048 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6049 deprecated_frame_chain_valid.
6050 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6051 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6052 Rely on the SVR4 defaults.
6053 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6054 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6055
6056 2003-05-30 Andrew Cagney <cagney@redhat.com>
6057
6058 * infcall.c (call_function_by_hand): Always call
6059 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6060
6061 2003-05-30 Richard Henderson <rth@redhat.com>
6062
6063 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6064 increment.
6065
6066 2003-05-29 Jim Blandy <jimb@redhat.com>
6067
6068 Use gdbarch methods for solib stuff on PowerPC Linux.
6069 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6070 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6071 show through.
6072 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6073 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6074 giving the same effect as the #definitions above.
6075
6076 2003-05-29 Adam Fedor <fedor@gnu.org>
6077
6078 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6079 (find_implementation_from_class): Replace it with the standard
6080 case i.e. do nothing.
6081
6082 2003-05-29 Richard Henderson <rth@redhat.com>
6083
6084 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6085 (alpha_linux_sigtramp_offset): Use it. Make static.
6086 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6087 update for new frame model.
6088 * alpha-mdebug-tdep.c: New file.
6089 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6090 (alpha_osf1_init_abi): Install it.
6091 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6092 (linked_proc_desc_table): Remove.
6093 (alpha_frame_past_sigtramp_frame): Remove.
6094 (alpha_dynamic_sigtramp_offset): Remove.
6095 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6096 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6097 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6098 (push_sigtramp_desc): Remove.
6099 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6100 (alpha_cannot_store_register): Likewise.
6101 (alpha_sigcontext_addr): Remove.
6102 (alpha_find_saved_regs): Remove.
6103 (alpha_frame_init_saved_regs): Remove.
6104 (alpha_init_frame_pc_first): Remove.
6105 (read_next_frame_reg): Remove.
6106 (alpha_frame_saved_pc): Remove.
6107 (alpha_saved_pc_after_call): Remove.
6108 (temp_proc_desc, temp_saved_regs): Remove.
6109 (alpha_about_to_return): Remove.
6110 (cached_proc_desc): Remove.
6111 (alpha_frame_chain): Remove.
6112 (alpha_print_extra_frame_info): Remove.
6113 (alpha_init_extra_frame_info): Remove.
6114 (alpha_frame_locals_address): Remove.
6115 (alpha_frame_args_address): Remove.
6116 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6117 (alpha_push_dummy_frame): Remove.
6118 (alpha_pop_frame): Remove.
6119 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6120 (alpha_read_insn): New.
6121 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6122 for different insn encodings.
6123 (alpha_in_lenient_prologue): Remove.
6124 (struct alpha_sigtramp_unwind_cache): New.
6125 (alpha_sigtramp_frame_unwind_cache): New.
6126 (alpha_sigtramp_register_address): New.
6127 (alpha_sigtramp_frame_this_id): New.
6128 (alpha_sigtramp_frame_prev_register): New.
6129 (alpha_sigtramp_frame_unwind): New.
6130 (alpha_sigtramp_frame_p): New.
6131 (struct alpha_heuristic_unwind_cache): New.
6132 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6133 don't count nop insns that occur between functions.
6134 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6135 heuristic_proc_desc, but without the mdebug wrapping.
6136 (alpha_heuristic_frame_this_id): New.
6137 (alpha_heuristic_frame_prev_register): New.
6138 (alpha_heuristic_frame_unwind): New.
6139 (alpha_heuristic_frame_p): New.
6140 (alpha_heuristic_frame_base_address): New.
6141 (alpha_heuristic_frame_base): New.
6142 (alpha_unwind_dummy_id): New.
6143 (alpha_unwind_pc): New.
6144 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6145 frame related deprecated initializations; install replacements.
6146 (alpha_dump_tdep): Remove.
6147 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6148 (alpha_read_insn, alpha_after_prologue,
6149 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6150 alpha_heuristic_frame_prev_register,
6151 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6152 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6153 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6154 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6155
6156 2003-05-29 Andrew Cagney <cagney@redhat.com>
6157
6158 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6159 dependant on the availability of ASSERT_FUNCTION.
6160 (ASSERT_FUNCTION): Do not define when there is no function name.
6161
6162 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6163
6164 From Jimi X <jimix@watson.ibm.com>:
6165 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6166
6167 2003-05-28 Jim Blandy <jimb@redhat.com>
6168
6169 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6170 argument to ptrace to int; the system headers should give it the
6171 right type, and pointers don't fit in ints on powerpc64-*-*.
6172
6173 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6174
6175 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6176 DW_TAG_catch_block.
6177
6178 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6179
6180 * stabsread.c (dbx_lookup_type): Make static.
6181 (read_type): Ditto.
6182 (add_undefined_type): Ditto.
6183 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6184 not export.
6185
6186 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6187
6188 * hpread.c (hpread_has_name): Make static.
6189 (hpread_psymtab_to_symtab): Ditto.
6190 (file_exists): Ditto.
6191 (hpread_call_pxdb): Ditto.
6192 (hpread_pxdb_needed): Ditto.
6193 (hpread_quick_traverse): Ditto.
6194 (hpread_get_header): Ditto.
6195 (hpread_get_lntt): Ditto.
6196 (hpread_get_slt): Ditto.
6197 (class_of): Ditto.
6198
6199 2003-05-25 Andreas Schwab <schwab@suse.de>
6200
6201 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6202 stack_align and deprecated_extra_stack_alignment_needed.
6203 (m68k_stack_align): Delete.
6204
6205 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6206 (m68k_register_virtual_size): Likewise.
6207 (altos_skip_prologue): Remove obsolete function.
6208 (isi_frame_num_args): Likewise.
6209 (news_frame_num_args): Likewise.
6210 (m68k_fix_call_dummy): Make static.
6211 (m68k_push_dummy_frame): Likewise.
6212 (m68k_pop_frame): Likewise.
6213 (m68k_skip_prologue): Likewise.
6214 (m68k_frame_init_saved_regs): Likewise.
6215 (m68k_saved_pc_after_call): Likewise.
6216 (m68k_get_longjmp_target): Make multi-arch.
6217 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6218 structure. Register m68k_get_longjmp_target if enabled.
6219 * m68k-tdep.h (struct gdbarch_tdep): Define.
6220 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6221
6222 * Makefile.in (config.status): Also depend on configure.tgt
6223 and configure.host.
6224 (m68klinux-tdep.o): Update dependencies.
6225 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6226 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6227 (M68K_LINUX_JB_PC): Define.
6228 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6229 and take additional parameter.
6230 (m68k_linux_sigtramp_saved_pc): Update.
6231 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6232 m68k_linux_pc_in_sigtramp, in_plt_section,
6233 find_solib_trampoline_target.
6234 * config/m68k/tm-linux.h: Don't include any tm headers.
6235 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6236 (JB_ELEMENT_SIZE): Likewise.
6237 (JB_PC): Likewise.
6238 (GET_LONGJMP_TARGET): Likewise.
6239 (IN_SIGTRAMP): Likewise.
6240 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6241
6242 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6243
6244 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6245 (sparc32_push_arguments): Re-implement by calling
6246 sparc32_do_push_arguments.
6247
6248 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6249
6250 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6251 SPARC_O1_REGNUM): New defines.
6252 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6253 (sparc32_store_return_value): New function.
6254 (sparc_extract_struct_value_address): Rewrite to operate on a
6255 regcache.
6256 (sparc_gdbarch_init): Don't set
6257 deprecated_extract_struct_value_address. Set
6258 extract_struct_value_address instead. Don't set
6259 deprecated_extract_return_value and deprecated_store_return_value
6260 for 32-bit targets. Set extract_return_value and
6261 store_return_value instead.
6262 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6263 DEPRECTAED_EXTRACT_RETURN_VALUE,
6264 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6265 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6266 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6267 (sparc_store_return_value): Remove prototype.
6268 (sparc32_store_return_value): New prototype.
6269 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6270 Adjust prototypes.
6271
6272 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6273
6274 * sparcnbsd-tdep.c: Include "gdb_string.h".
6275
6276 2003-05-23 Andrew Cagney <cagney@redhat.com>
6277
6278 * p-valprint.c (pascal_val_print): Replace extract_address with
6279 the inline equivalent extract_unsigned_integer.
6280 * jv-valprint.c (java_value_print): Ditto.
6281 * ada-valprint.c (ada_val_print_1): Ditto.
6282 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6283
6284 2003-05-23 Theodore A. Roth <troth@openavr.org>
6285
6286 * blockframe.c (frameless_look_for_prologue): Remove unused
6287 after_prologue variable.
6288
6289 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6290
6291 * blockframe.c (get_pc_function_start): Rewrite to avoid
6292 asignments in if-statements.
6293
6294 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6295
6296 Committed by Elena Zannoni <ezannoni@redhat.com>.
6297 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6298 files, don't relocate absolute symbols (and do use mst_abs).
6299
6300 2003-05-23 Andrew Cagney <cagney@redhat.com>
6301
6302 * objc-lang.c: Include "gdb_assert.h".
6303 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6304 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6305 (gdb_check, gdb_check_fatal): Delete functions.
6306 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6307 gdb_assert.
6308 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6309 * Makefile.in (objc-lang.o): Update dependencies.
6310
6311 2003-05-22 Ian Lance Taylor <ian@airs.com>
6312
6313 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6314 with fprintf_filtered, not fprintf_unfiltered.
6315
6316 2003-05-22 Andrew Cagney <cagney@redhat.com>
6317
6318 * stack.c (frame_info): Inline extract_address, replacing it with
6319 extract_unsigned_integer.
6320 * findvar.c (unsigned_pointer_to_address): Ditto.
6321 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6322 * dwarf2expr.c (dwarf2_read_address): Ditto.
6323 * frame.c (frame_pc_unwind): Update comment.
6324 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6325
6326 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6327
6328 * infptrace.c (detach): Call print_sys_errmsg rather than
6329 perror_with_name to issue warning message when errno is non-zero
6330 after calling ptrace detach.
6331
6332 2003-05-21 J. Brobecker <brobecker@gnat.com>
6333
6334 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6335 macro definitions from here...
6336 * hppa-tdep.c: ...to there.
6337
6338 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6339
6340 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6341 register_ptrace_addr(). Fix all callers.
6342
6343 2003-05-21 Andreas Schwab <schwab@suse.de>
6344
6345 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6346 dependencies.
6347 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6348 end.
6349 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6350 (_initialize_m68k_linux_tdep): New function.
6351 (m68k_linux_frame_saved_pc): Make static.
6352 (m68k_linux_extract_return_value): Likewise.
6353 (m68k_linux_store_return_value): Likewise.
6354 (m68k_linux_extract_struct_value_address): Likewise.
6355 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6356 Remove.
6357 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6358 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6359 (DEPRECATED_FRAME_SAVED_PC): Remove.
6360
6361 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6362
6363 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6364 regset numbering rather than our own.
6365
6366 2003-05-19 David Carlton <carlton@bactrian.org>
6367
6368 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6369
6370 2003-05-19 David Carlton <carlton@bactrian.org>
6371
6372 Partial fix for PR c++/827.
6373 * cp-support.h: Include symtab.h.
6374 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6375 * cp-namespace.c: Update contributors.
6376 (cp_lookup_symbol_nonlocal): New.
6377 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6378 (lookup_symbol_file): Ditto.
6379 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6380 * block.h: Declare block_scope, block_using, block_global_block.
6381 * block.c (block_scope): New.
6382 (block_using, block_global_block): Ditto.
6383 * Makefile.in (cp_support_h): Depend on symtab_h.
6384 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6385
6386 2003-05-19 David Carlton <carlton@bactrian.org>
6387
6388 * language.h (struct language_defn): Add 'la_value_of_this'
6389 and 'la_lookup_symbol_nonlocal' members.
6390 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6391 lookup_symbol_static, lookup_symbol_global,
6392 lookup_symbol_aux_block.
6393 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6394 if we should search fields of this and how to do static/global
6395 lookup.
6396 (lookup_symbol_aux_block): Make extern.
6397 (basic_lookup_symbol_nonlocal): New.
6398 (lookup_symbol_static, lookup_symbol_global): Ditto.
6399 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6400 'la_lookup_symbol_nonlocal' members.
6401 * c-lang.c (c_language_defn, cplus_language_defn)
6402 (asm_language_defn, minimal_language_defn): Ditto.
6403 * jv-lang.c (java_language_defn): Ditto.
6404 * language.c (unknown_language_defn, auto_language_defn)
6405 (local_language_defn): Ditto.
6406 * m2-lang.c (m2_language_defn): Ditto.
6407 * objc-lang.c (objc_language_defn): Ditto.
6408 * scm-lang.c (scm_language_defn): Ditto.
6409 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6410 * p-lang.c (pascal_language_defn): Ditto for both.
6411 * Makefile.in (f-lang.o): Depend on value_h.
6412 (p-lang.o): Ditto.
6413
6414 2003-05-19 David Carlton <carlton@bactrian.org>
6415
6416 * block.h: Declare block_static_block.
6417 * block.c (block_static_block): New.
6418 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6419 lookup_symbol_aux_local, calling block_static_block instead.
6420 (lookup_symbol_aux_local): Delete 'static_block' argument.
6421
6422 2003-05-19 David Carlton <carlton@bactrian.org>
6423
6424 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6425
6426 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6427
6428 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6429 register numbers mapping.
6430
6431 2003-05-18 Adam Fedor <fedor@gnu.org>
6432
6433 * symtab.c (completion_list_objc_symbol): New function.
6434 (make_symbol_completion_list): Use it to add ObjC symbols
6435 when looking though the list.
6436 (language_search_unquoted_string): New function.
6437 (make_file_symbol_completion_list): Use it.
6438
6439 2003-05-18 Andreas Schwab <schwab@suse.de>
6440
6441 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6442 dependencies.
6443 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6444 as m68k_linux_extract_return_value.
6445 (DEPRECATED_STORE_RETURN_VALUE): Define as
6446 m68k_linux_store_return_value.
6447 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6448 m68k_linux_extract_struct_value_address.
6449 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6450 get_next_frame, get_frame_base, get_frame_pc.
6451 (m68k_linux_frame_saved_pc): Use get_frame_base.
6452 (m68k_linux_extract_return_value): New function.
6453 (m68k_linux_store_return_value): New function.
6454 (m68k_linux_extract_struct_value_address): New function.
6455 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6456
6457 * c-exp.y (typebase): Remove duplicate occurence of
6458 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6459 of lookup_signed_typename.
6460
6461 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6462
6463 * dwarf2loc.c (find_location_expression): Change type of second
6464 argument to `size_t *'.
6465 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6466 for size variable.
6467
6468 2003-05-18 David Carlton <carlton@bactrian.org>
6469
6470 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6471 'linkage_name'. Add comment.
6472 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6473 'linkage_name'.
6474 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6475 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6476 (lookup_block_symbol): Ditto.
6477
6478 2003-05-16 Andrew Cagney <cagney@redhat.com>
6479
6480 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6481 * gdbarch.h, gdbarch.c: Re-generate.
6482 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6483 * TODO (REGISTER_BYTES): Delete reference.
6484 * alpha-tdep.c (alpha_gdbarch_init): Update.
6485 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6486 * x86-64-tdep.c (x86_64_init_abi): Update.
6487 * vax-tdep.c (vax_gdbarch_init): Update.
6488 * v850-tdep.c (v850_gdbarch_init): Update.
6489 * sparc-tdep.c (sparc_gdbarch_init): Update.
6490 * sh-tdep.c (sh_gdbarch_init): Update.
6491 * s390-tdep.c (s390_gdbarch_init): Update.
6492 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6493 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6494 (ns32k_gdbarch_init_32382): Update.
6495 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6496 * mcore-tdep.c (mcore_gdbarch_init): Update.
6497 * m68k-tdep.c (m68k_gdbarch_init): Update.
6498 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6499 * ia64-tdep.c (ia64_gdbarch_init): Update.
6500 * i386-tdep.c (i386_gdbarch_init): Update.
6501 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6502 * hppa-tdep.c (hppa_gdbarch_init): Update.
6503 * h8300-tdep.c (h8300_gdbarch_init): Update.
6504 * frv-tdep.c (frv_gdbarch_init): Update.
6505 * cris-tdep.c (cris_gdbarch_init): Update.
6506 * avr-tdep.c (avr_gdbarch_init): Update.
6507 * arm-tdep.c (arm_gdbarch_init): Update.
6508 * sparc-tdep.c (sparc_pop_frame): Update.
6509 * rs6000-tdep.c (rs6000_pop_frame): Update.
6510 * remote.c (init_remote_state): Update.
6511 (remote_prepare_to_store): Update.
6512 * remote-vx.c (vx_prepare_to_store): Update.
6513 * remote-sds.c (sds_fetch_registers): Update.
6514 (sds_prepare_to_store): Update.
6515 * remote-array.c: Update.
6516 * regcache.c (init_legacy_regcache_descr): Update.
6517 (init_regcache_descr): Update.
6518 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6519 (mips_o64_extract_return_value): Update.
6520 * irix5-nat.c (fetch_core_registers): Update.
6521 * irix4-nat.c (fetch_core_registers): Update.
6522 * i386-tdep.h: Update.
6523 * hppa-tdep.c (pa_do_registers_info): Update.
6524 (pa_do_strcat_registers_info): Update.
6525 * cris-tdep.c (cris_register_bytes_ok): Update.
6526 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6527 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6528 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6529 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6530 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6531 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6532 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6533 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6534 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6535 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6536 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6537 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6538 (REGISTER_BYTES_OK): Update.
6539 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6540 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6541
6542 2003-05-16 Ian Lance Taylor <ian@airs.com>
6543
6544 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6545 (vax_print_insn, print_insn_arg): Remove static functions.
6546 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6547 print_insn_vax from opcodes library.
6548 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6549
6550 2003-05-15 Andrew Cagney <cagney@redhat.com>
6551
6552 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6553 * target.h (memory_breakpoint_from_pc): Delete declaration.
6554 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6555 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6556 * monitor.c (monitor_insert_breakpoint): Use
6557 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6558 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6559 * gdbarch.h, gdbarch.c: Re-generate.
6560 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6561 (sparc_gdbarch_init): Set breakpoint_from_pc to
6562 sparc_breakpoint_from_pc.
6563 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6564 (BREAKPOINT_FROM_PC): Define.
6565 (sparc_breakpoint_from_pc): Declare.
6566 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6567 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6568 (BREAKPOINT_FROM_PC): Define.
6569 (BREAKPOINT): Delete macro.
6570 * target.h: Update comment.
6571 * s390-tdep.c (s390_gdbarch_init): Update comments.
6572 * remote.c: Update comments.
6573 * remote-mips.c: Update comments.
6574 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6575 * mem-break.c: Update comment.
6576 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6577 (ia64_memory_insert_breakpoint): Update.
6578 * config/sparc/tm-sparc.h: Update comment.
6579 * config/pa/tm-hppa64.h: Update comment.
6580 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6581 (rs6000_breakpoint_from_pc): Update.
6582 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6583 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6584 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6585 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6586 (mips_breakpoint_from_pc): Update.
6587 (mips_dump_tdep): Update.
6588
6589 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6590 * minsyms.c (lookup_minimal_symbol): Inline
6591 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6592
6593 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6594 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6595 * p-lang.c (pascal_printstr): Ditto.
6596 * objc-lang.c (objc_printstr): Ditto.
6597 * m2-lang.c (m2_printstr): Ditto.
6598 * jv-valprint.c (java_print_value_fields): Ditto.
6599 * f-lang.c (f_printstr): Ditto.
6600 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6601 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6602 for repeat_count_threshold.
6603 * Makefile.in (cp-valprint.o): Update dependencies.
6604
6605 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6606
6607 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6608 (examine_prologue): Support looking through leaf functions, knowing
6609 they start with mov r2,r12. Support skipping over indirect stores
6610 of the input registers. Upon hitting a non-nop branch instruction
6611 or predicated instruction, bail out by setting lim_pc to the current
6612 pc value in the loop. At the end, if the lim_pc value is still
6613 beyond our calculated value and we have trust_limit set,
6614 use the lim_pc value.
6615
6616 2003-05-15 Andrew Cagney <cagney@redhat.com>
6617
6618 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6619 generic_find_dummy_frame.
6620 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6621 (deprecated_generic_find_dummy_frame): Update.
6622 (deprecated_read_register_dummy): Update.
6623 * frame.c (deprecated_generic_get_saved_register): Update.
6624
6625 2003-05-15 Theodore A. Roth <troth@openavr.org>
6626
6627 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6628 (avr_gdbarch_init): Set breakpoint_from_pc method.
6629
6630 2003-05-15 Andrew Cagney <cagney@redhat.com>
6631
6632 * regcache.c (build_regcache): Set deprecated_register_valid
6633 directly.
6634 (deprecated_grub_regcache_for_register_valid): Delete function.
6635 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6636 declaration.
6637
6638 2003-05-15 David Carlton <carlton@bactrian.org>
6639
6640 Committed by Elena Zannoni <ezannoni@redhat.com>
6641 * symtab.c (lookup_symbol_aux): Delete calls to
6642 lookup_symbol_aux_minsyms.
6643 (lookup_symbol_aux_minsyms): Comment out function and
6644 prototype. Delete lookup by mangled name.
6645
6646 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6647
6648 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6649 correctly indicate an empty stack and ``stack_allocated'' to the
6650 indicate the number of elements initially allocated.
6651 (dwarf_expr_grow_stack): Simplify method for computing new
6652 stack size. Don't loop infinitely if ``stack_len'' is zero.
6653 (execute_stack_op): Move ``ctx->in_reg'' initialization
6654 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6655 be used in conjuction with DW_OP_piece. Revise error message
6656 accordingly.
6657
6658 2003-05-14 Theodore A. Roth <troth@openavr.org>
6659
6660 * MAINTAINERS: Update my email address.
6661 * avr-tdep.c: Ditto.
6662
6663 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6664
6665 * symtab.h (enum domain_enum): Rename from namespace_enum.
6666 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6667 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6668 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6669 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6670 TYPES_NAMESPACE, METHODS_NAMESPACE.
6671 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6672 (struct symbol, struct partial_symbol): Rename field
6673 'namespace_enum namespace' to 'domain_enum domain'.
6674 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6675 Delete old define kludge for namespace.
6676
6677 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6678 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6679 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6680 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6681 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6682 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6683 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6684 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6685 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6686 occurrences of the above.
6687
6688 2003-05-14 Ian Lance Taylor <ian@airs.com>
6689
6690 * Makefile.in (install-only): Use $(SHELL) when running
6691 mkinstalldirs.
6692
6693 2003-05-13 Ian Lance Taylor <ian@airs.com>
6694
6695 * MAINTAINERS (write after approval): Add myself.
6696
6697 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6698 second and third arguments.
6699 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6700 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6701
6702 2003-05-13 Andrew Cagney <cagney@redhat.com>
6703
6704 * defs.h (store_address): Delete declaration.
6705 findvar.c (store_address): Delete function.
6706 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6707 store_unsigned_integer.
6708 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6709 * v850-tdep.c (v850_push_arguments): Ditto.
6710 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6711 * sh-tdep.c (sh64_get_saved_register): Ditto.
6712 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6713 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6714 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6715 (mips_get_saved_register): Ditto.
6716 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6717 (find_func_descr, ia64_push_arguments): Ditto.
6718 * i386-tdep.c (i386_push_arguments): Ditto.
6719 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6720 * frv-tdep.c (frv_push_arguments): Ditto.
6721 * frame.c (legacy_saved_regs_prev_register): Ditto.
6722 (deprecated_generic_get_saved_register): Ditto.
6723 * findvar.c (unsigned_address_to_pointer): Ditto.
6724 * dwarf2read.c (dwarf2_const_value): Ditto.
6725 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6726 * alpha-tdep.c (alpha_push_arguments): Ditto.
6727
6728 2003-05-12 J. Brobecker <brobecker@gnat.com>
6729
6730 * NEWS: Mention that the hppa-hpux port has been partially
6731 multiarched (32bit ABIT only, so far).
6732
6733 2003-05-11 Andrew Cagney <cagney@redhat.com>
6734
6735 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6736 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6737 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6738 sim/testsuite/sim/arm/misaligned2.ms, and
6739 sim/testsuite/sim/arm/misaligned3.ms.
6740 * disasm.h (struct ui_file): Add opaque struct declaration.
6741 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6742 * frame.h (struct ui_file): Ditto.
6743
6744 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6745
6746 * value.h: Pretty print.
6747
6748 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6749
6750 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6751
6752 2003-05-08 Andrew Cagney <cagney@redhat.com>
6753
6754 * regcache.h (max_register_size): Delete declaration.
6755 * regcache.c (max_register_size): Delete function.
6756 (struct regcache_descr): Delete field "max_register_size".
6757 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6758 registers fit in MAX_REGISTER_SIZE.
6759 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6760 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6761 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6762 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6763 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6764 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6765 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6766 * dve3900-rom.c, hppa-tdep.c: Ditto.
6767
6768 2003-05-08 David Carlton <carlton@math.stanford.edu>
6769
6770 * valops.c (push_word): Fix typo.
6771
6772 2003-05-08 Andrew Cagney <cagney@redhat.com>
6773
6774 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6775 * gdbarch.h: Re-generate.
6776 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6777 (legacy_max_register_raw_size): Delete declaration.
6778 * regcache.c (legacy_max_register_raw_size): Delete function.
6779 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6780 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6781 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6782 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6783 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6784 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6785 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6786 * findvar.c, dwarf2cfi.c: Ditto.
6787
6788 2003-05-08 Andrew Cagney <cagney@redhat.com>
6789
6790 * mips-tdep.c (read_signed_register): New function, moved to here
6791 from "regcache.c".
6792 (read_signed_register_pid): Ditto.
6793 * regcache.c (read_signed_register_pid): Delete function, moved to
6794 "mips-tdep.c".
6795 (read_signed_register): Ditto.
6796 * regcache.h (read_signed_register): Delete declaration.
6797 (read_signed_register_pid): Delete declaration.
6798
6799 2003-05-08 Andrew Cagney <cagney@redhat.com>
6800
6801 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6802 * gdbarch.h: Re-generate.
6803 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6804 (legacy_max_register_virtual_size): Delete declaration.
6805 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6806 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6807 * tracepoint.c (memrange_sortmerge): Ditto.
6808 * sparc-tdep.c (sparc_print_registers): Ditto.
6809 * regcache.c (legacy_max_register_virtual_size): Delete function.
6810
6811 2002-05-08 J. Brobecker <brobecker@gnat.com>
6812
6813 * fork-child.c (escape_bang_in_quoted_argument): New function.
6814 (fork_inferior): Escape '!' characters in quoted arguments
6815 only when needed.
6816
6817 2003-05-08 J. Brobecker <brobecker@gnat.com>
6818
6819 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6820 the language of the CU is not currently supported by GDB.
6821
6822 2003-05-08 J. Brobecker <brobecker@gnat.com>
6823
6824 * defs.h (language): Add language_minimal enum value.
6825 * c-lang.c (minimal_language_defn): New language definition.
6826 (_initialize_c_language): Add the new minimal language to the list
6827 of languages known to GDB.
6828
6829 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6830
6831 * frame.c (get_frame_type): Don't attempt to lazily initialize
6832 frame's unwinder for legacy frames.
6833
6834 2003-05-07 Andrew Cagney <cagney@redhat.com>
6835
6836 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6837 and "regcache" parameters.
6838 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6839
6840 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6841
6842 * dwarf2read.c (dwarf_decode_lines): Only use output of
6843 check_cu_functions() when calling record_line(). Do not update
6844 the current address.
6845
6846 2003-05-07 Andrew Cagney <cagney@redhat.com>
6847
6848 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6849 code.
6850
6851 2003-05-07 Jim Blandy <jimb@redhat.com>
6852
6853 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6854 'maint info symtabs' and 'maint info psymtabs'.
6855 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6856 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6857 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6858 Declarations updated.
6859 * maint.c (maintenance_list_command): Delete.
6860 (_initialize_maint_cmds): Update calls to add_cmd.
6861 * gdbcmd.h (maintenancelistlist): Delete declaration.
6862 * cli/cli-cmds.c (maintenancelistlist): Delete.
6863 (init_cmd_lists): Don't initialize it.
6864 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6865
6866 2003-05-07 Andrew Cagney <cagney@redhat.com>
6867
6868 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6869 "regcache".
6870 (d10v_print_registers_info): Update.
6871 (d10v_dmap_register, d10v_imap_register): Delete functions.
6872 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6873 and "imap_register".
6874 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6875 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6876 * arch-utils.c (generic_remote_translate_xfer_address): Add
6877 "regcache" and "gdbarch" parameters.
6878 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6879 parameter. Change class to multi-arch.
6880 * gdbarch.h, gdbarch.c: Re-generate.
6881 * remote.c (remote_xfer_memory): Use
6882 gdbarch_remote_translate_xfer_address.
6883
6884 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6885
6886 * infrun.c (prev_pc): Move declaration ahead of proceed().
6887 (proceed): Refresh prev_pc value before resuming.
6888 (stop_stepping): Remove code to refresh prev_pc.
6889
6890 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6891
6892 * nto-tdep.c: Removed stray comment.
6893
6894 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6895
6896 * i386-nto-tdep.c: Fix old K&R function definitions.
6897 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6898 Also change add_show_from_set() call to add_setshow_cmd().
6899 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6900
6901 2003-05-05 Andrew Cagney <cagney@redhat.com>
6902
6903 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6904 (fprint_dummy_frames): New function.
6905 (maintenance_print_dummy_frames): New function.
6906 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6907 * frame.c (fprint_frame_id): Make global.
6908 * frame.h (fprint_frame_id): Declare.
6909 * Makefile.in (dummy-frame.o): Update dependencies.
6910
6911 2003-05-05 Andrew Cagney <cagney@redhat.com>
6912
6913 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6914 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6915 SIZEOF_CALL_DUMMY_WORDS.
6916 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6917 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6918 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6919 CALL_DUMMY_BREAKPOINT_OFFSET.
6920 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6921 CALL_DUMMY_START_OFFSET.
6922 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6923 * gdbarch.h, gdbarch.c: Re-generate.
6924 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6925 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6926 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6927 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6928 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6929 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6930 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6931 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6932 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6933 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6934 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6935 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6936 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6937 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6938 * config/sparc/tm-sparc.h: Update.
6939
6940 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6941
6942 * configure.tgt: Add i[3456]86-*-nto*.
6943 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6944 * nto-tdep.c: New file. Neutrino target support routines.
6945 * nto-tdep.h: New file. Neutrino target header.
6946 * config/tm-qnxnto.h: New file.
6947 * config/i386/i386nto.mt: New file.
6948 * config/i386/tm-i386nto.h: New file.
6949
6950 2003-05-04 Andrew Cagney <cagney@redhat.com>
6951
6952 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6953 (load_infrun_state): Ditto.
6954 (struct thread_info): Drop "prev_func_name" field.
6955 * thread.c (load_infrun_state): Update.
6956 (save_infrun_state): Update.
6957 * infrun.c (prev_func_name): Delete variable.
6958 (init_wait_for_inferior): Do not clear prev_func_name.
6959 (stop_stepping, keep_going, context_switch): Do not swap
6960 prev_func_name.
6961 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6962 instead of PC_IN_SIGTRAMP.
6963
6964 2003-05-04 Andrew Cagney <cagney@redhat.com>
6965
6966 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6967 REGISTER_BYTE with register_offset_hack.
6968 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6969 that REGISTER_BYTE is consistent with the regcache.
6970 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6971 * gdbarch.h, gdbarch.c: Regenerate.
6972
6973 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6974
6975 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6976 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6977
6978 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6979
6980 2003-05-03 J. Brobecker <brobecker@gnat.com>
6981
6982 From Thierry Schneider <tpschneider1@yahoo.com>
6983 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6984 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6985 (mi-cmd-symbol.o): Add rule.
6986
6987 2003-05-03 Andrew Cagney <cagney@redhat.com>
6988
6989 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6990 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6991 * gdbarch.h, gdbarch.c: Re-generate.
6992 * d10v-tdep.c (d10v_push_dummy_code): New function.
6993 (d10v_gdbarch_init): Set push_dummy_code.
6994 * infcall.c (legacy_push_dummy_code): New function.
6995 (generic_push_dummy_code): New function.
6996 (push_dummy_code): New function.
6997 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6998 instead of dummy_addr, to push_dummy_call. Move call to
6999 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7000 switch.
7001 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7002
7003 2003-05-03 Andrew Cagney <cagney@redhat.com>
7004
7005 * disasm.h (print_insn): Declare.
7006 * disasm.c (init_gdb_disassemble_info): New function.
7007 (gdb_disassembly): Call init_gdb_disassemble_info.
7008 (gdb_print_insn): New function.
7009 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7010 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7011 * mcore-tdep.c: Include "disasm.h"
7012 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7013 * d10v-tdep.c: Include "disasm.h".
7014 (display_trace): Call gdb_print_insn, instead of print_insn.
7015 (print_insn): Delete function.
7016 * printcmd.c: Include "disasm.h".
7017 (print_insn): Delete function.
7018 (print_formatted): Call gdb_print_insn, instead of print_insn.
7019 * Makefile.in (printcmd.o): Update dependencies.
7020 (mcore-tdep.o, d10v-tdep.o): Ditto.
7021
7022 2003-05-02 Andrew Cagney <cagney@redhat.com>
7023
7024 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7025 PC_REGNUM, re-indent.
7026 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7027 PC_REGNUM isn't set.
7028
7029 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7030 * gdbarch.h, gdbarch.c: Re-generate.
7031 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7032 register_virtual_size, pc_regnum, or register_bytes.
7033 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7034 (d10v_register_type): Use D10V_PC_REGNUM.
7035 (d10v_print_registers_info, d10v_read_pc): Ditto.
7036 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7037 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7038
7039 2003-05-02 David Carlton <carlton@bactrian.org>
7040
7041 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7042 the name with mstrsave.
7043
7044 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7045
7046 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7047 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7048 (host_charset_name, target_charset_name): New vars for use by
7049 set/show commands.
7050 (host_charset_enum, target_charset_enum): New enums for set/show
7051 commands.
7052 (set_charset_sfunc, set_host_charset_sfunc,
7053 set_target_charset_sfunc): New functions.
7054 (set_host_charset, set_target_charset): Make static.
7055 (list_charsets, set_host_charset_command,
7056 set_target_charset_command): Delete functions.
7057 (show_charset_command): Rewrite as....
7058 (show_charset): Hook this up with the set/show command mechanism.
7059 (_initialize_charset): Change names of charsets to match the
7060 set/show enums. Use host_charset_name and target_charset_name.
7061 Use set/show mechanism for charset, host-charset, target-charset
7062 commands. Do not make 'show host-charset' and 'show
7063 target-charset' be aliases of 'show charset'.
7064
7065 * charset.h (set_host_charset, set_target_charset): Don't export,
7066 they are not used outside the file.
7067
7068 2003-05-01 Andrew Cagney <cagney@redhat.com>
7069
7070 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7071 (gdb_disassembly): Make "di" non static, always initialize and
7072 cleanup. Always use dis_asm_read_memory.
7073 (gdb_dis_asm_read_memory): Delete function.
7074
7075 2003-05-01 Andrew Cagney <cagney@redhat.com>
7076
7077 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7078 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7079
7080 2003-04-30 Andrew Cagney <cagney@redhat.com>
7081
7082 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7083 "tm_print_insn_info".
7084 (TARGET_PRINT_INSN_INFO): Delete macro.
7085 (dis_asm_read_memory): Delete function declaration.
7086 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7087 (tm_print_insn_info): Delete variable definition.
7088 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7089 * gdbarch.h, gdbarch.c: Re-generate.
7090 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7091 "deprecated_tm_print_insn_info".
7092 * mcore-tdep.c (mcore_dump_insn): Ditto.
7093 * mips-tdep.c (mips_gdbarch_init): Ditto.
7094 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7095 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7096 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7097 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7098 instead of TARGET_PRINT_INSN_INFO, add comment.
7099 * s390-tdep.c (s390_get_frame_info): Instead of
7100 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7101 (s390_check_function_end, s390_is_sigreturn): Ditto.
7102 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7103 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7104 * disasm.c: Include "gdbcore.h".
7105 (_initialize_disasm): New function, initialize
7106 "deprecated_tm_print_insn_info".
7107 (deprecated_tm_print_insn_info): New variable.
7108 (dis_asm_read_memory): Moved from "corefile.c", made static.
7109 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7110 * Makefile.in (disasm.o): Update dependencies.
7111
7112 2003-04-30 Andrew Cagney <cagney@redhat.com>
7113
7114 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7115
7116 2003-04-29 Adam Fedor <fedor@gnu.org>
7117
7118 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7119 * infcall.c (find_function_addr): Make non-static.
7120 * infcall.h (find_function_addr): Declare.
7121 * Makefile.in (eval.o): Update dependencies.
7122
7123 2003-04-28 Adam Fedor <fedor@gnu.org>
7124
7125 * symtab.c (symbol_find_demangled_name): Check for and demangle
7126 ObjC symbols.
7127 (symbol_init_demangled_name): Init for language_objc as well.
7128
7129 2003-04-28 Andrew Cagney <cagney@redhat.com>
7130
7131 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7132 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7133 * gdbarch.h, gdbarch.c: Re-generate.
7134 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7135 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7136 * inferior.h (deprecated_read_fp): Rename read_fp.
7137 (generic_target_read_fp): Delete declaration.
7138 * regcache.c (generic_target_read_fp): Delete function.
7139 (deprecated_read_fp): Replace read_fp, use
7140 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7141 * d10v-tdep.c (d10v_read_fp): Delete function.
7142 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7143
7144 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7145 deprecated_target_read_fp to generic_target_read_fp.
7146 * sh-tdep.c (sh_gdbarch_init): Ditto.
7147 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7148 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7149 * frv-tdep.c (frv_gdbarch_init): Ditto.
7150
7151 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7152 deprecated_fp_regnum.
7153 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7154 * vax-tdep.c (vax_gdbarch_init): Ditto.
7155 * v850-tdep.c (v850_gdbarch_init): Ditto.
7156 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7157 * sh-tdep.c (sh_gdbarch_init): Ditto.
7158 * s390-tdep.c (s390_gdbarch_init): Ditto.
7159 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7160 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7161 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7162 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7163 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7164 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7165 * i386-tdep.c (i386_gdbarch_init): Ditto.
7166 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7167 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7168 * frv-tdep.c (frv_gdbarch_init): Ditto.
7169 * cris-tdep.c (cris_gdbarch_init): Ditto.
7170 * avr-tdep.c (avr_gdbarch_init): Ditto.
7171 * arm-tdep.c (arm_gdbarch_init): Ditto.
7172 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7173
7174 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7175 * v850-tdep.c (v850_gdbarch_init): Ditto.
7176 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7177 * sh-tdep.c (sh_gdbarch_init): Ditto.
7178 * s390-tdep.c (s390_gdbarch_init): Ditto.
7179 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7180 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7181 * mips-tdep.c (mips_gdbarch_init): Ditto.
7182 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7183 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7184 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7185 * frv-tdep.c (frv_gdbarch_init): Ditto.
7186 * avr-tdep.c (avr_gdbarch_init): Ditto.
7187 * arm-tdep.c (arm_gdbarch_init): Ditto.
7188
7189 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7190 DEPRECATED_FP_REGNUM.
7191 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7192 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7193 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7194 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7195 (sparc32_register_virtual_type): Ditto.
7196 * sh-tdep.c (sh64_frame_chain): Ditto.
7197 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7198 (sh_nofp_frame_init_saved_regs): Ditto.
7199 (sh64_nofp_frame_init_saved_regs): Ditto.
7200 (sh_fp_frame_init_saved_regs): Ditto.
7201 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7202 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7203 * procfs.c (procfs_fetch_registers): Ditto.
7204 (procfs_store_registers): Ditto.
7205 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7206 (store_inferior_registers, fetch_core_registers): Ditto.
7207 (fetch_kcore_registers, clear_regs): Ditto.
7208 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7209 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7210 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7211 * nlm/i386.c (do_status): Ditto.
7212 * mipsv4-nat.c (supply_gregset): Ditto.
7213 * mips-tdep.c: Ditto for comments.
7214 * mips-nat.c (fetch_inferior_registers): Ditto.
7215 (store_inferior_registers, fetch_core_registers): Ditto.
7216 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7217 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7218 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7219 (i386_do_pop_frame, i386_register_type): Ditto.
7220 * hppa-tdep.c (hppa_frame_chain): Ditto.
7221 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7222 (hppa_pop_frame, hppa_read_fp): Ditto.
7223 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7224 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7225 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7226 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7227 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7228 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7229 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7230 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7231 * blockframe.c: Ditto for comments.
7232 * arch-utils.h: Ditto for comments.
7233 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7234 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7235 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7236 * alpha-tdep.h: Ditto for comments.
7237 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7238 (alpha_cannot_store_register): Ditto.
7239 (alpha_push_dummy_frame): Ditto.
7240 * alpha-nat.c (supply_gregset): Ditto.
7241
7242 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7243 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7244 * config/sparc/tm-sparc.h: Update comment.
7245
7246 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7247 deprecated_read_fp instead of TARGET_READ_FP.
7248 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7249 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7250 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7251 deprecated_read_fp instead of read_fp.
7252 * s390-tdep.c (s390_push_arguments): Ditto.
7253 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7254 * frame.h: Ditto in comments.
7255 * frame.c (legacy_get_prev_frame): Ditto.
7256 * dummy-frame.c (dummy_frame_this_id): Ditto.
7257 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7258
7259 2003-04-28 Andrew Cagney <cagney@redhat.com>
7260
7261 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7262 * gdbarch.h, gdbarch.c: Re-generate.
7263 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7264 * vax-tdep.c (_initialize_vax_tdep): Update.
7265 * v850-tdep.c (_initialize_v850_tdep): Update.
7266 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7267 * s390-tdep.c (_initialize_s390_tdep): Update.
7268 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7269 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7270 * mips-tdep.c (_initialize_mips_tdep): Update.
7271 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7272 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7273 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7274 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7275 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7276 * frv-tdep.c (_initialize_frv_tdep): Update.
7277 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7278 (_initialize_cris_tdep): Update.
7279 * arch-utils.c (legacy_print_insn): Update.
7280 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7281
7282 2003-04-26 Adam Fedor <fedor@gnu.org>
7283
7284 * linespec.c (decode_objc): New function to decode ObjC calls
7285 (decode_line_1): Check for ObjC calls (using decode_objc)
7286 * Makefile (linespec.o): Update dependencies.
7287
7288 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7289
7290 * breakpoint.h (struct breakpoint_ops): New.
7291 (struct breakpoint): Add ops member.
7292
7293 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7294 (mention): Use new breakpoint ops member.
7295 (set_raw_breakpoint): Initialize ops field to NULL.
7296 (print_exception_catchpoint, print_one_exception_catchpoint)
7297 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7298 (gnu_v3_exception_catchpoint_ops): New.
7299 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7300
7301 2003-04-25 Adam Fedor <fedor@gnu.org>
7302
7303 * Makefile.in (COMMON_OBS): Add objc-lang.o
7304
7305 2003-04-25 Andrew Cagney <cagney@redhat.com>
7306
7307 * d10v-tdep.c (print_insn): Delete function.
7308 (display_trace): Use TARGET_PRINT_INSN.
7309 (_initialize_d10v_tdep): Do not set tm_print_insn.
7310 (d10v_gdbarch_init): Set print_insn.
7311
7312 2003-04-25 Andrew Cagney <cagney@redhat.com>
7313
7314 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7315 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7316 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7317 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7318 (nr_dmap_regs, a0_regnum): ... new functions.
7319 (d10v_print_registers_info): Use a0_regnum, use register_size.
7320 (d10v_register_byte): Delete function.
7321 (d10v_register_raw_size): Delete function.
7322 (d10v_register_type): Use a0_regnum.
7323 (d10v_print_registers_info): Use a0_regnum.
7324 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7325 (d10v_gdbarch_init): Do not set register_byte or
7326 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7327 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7328 extract_address.
7329 (trace_command): Use XCALLOC.
7330 (print_insn): Delete reference to tm_print_insn.
7331 (saved_regs_unwinder): Use store_unsigned_integer instead of
7332 store_address.
7333 * frame.h (FRAME_OBSTACK_CALLOC): Define
7334
7335 2003-04-25 David Carlton <carlton@bactrian.org>
7336
7337 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7338
7339 2003-04-24 Adam Fedor <fedor@gnu.org>
7340
7341 * objc-lang.c: Include "valprint.h"
7342 * Makefile.in (objc-lang.o): Update dependencies.
7343
7344 2003-04-24 Adam Fedor <fedor@gnu.org>
7345
7346 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7347 architecture dependant compilation and mark as unimplemented
7348 (until they get put in the gdbarch vector).
7349
7350 2003-04-23 David Carlton <carlton@bactrian.org>
7351
7352 * cp-support.c (cp_find_first_component): Accept 'operator' in
7353 more locations.
7354
7355 2003-04-23 Andrew Cagney <cagney@redhat.com>
7356
7357 * infcall.c (call_function_by_hand): Eliminate redundant
7358 indentation. Move "saved_async" and "old_cleanups" to where they
7359 are needed.
7360
7361 2003-04-23 Andrew Cagney <cagney@redhat.com>
7362
7363 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7364 and "buffer". Move the "name" code to where it is needed.
7365
7366 2003-04-23 Andrew Cagney <cagney@redhat.com>
7367
7368 * infcall.c (call_function_by_hand): Move variables "start_sp",
7369 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7370 code to ON_STACK switch branch.
7371
7372 2003-04-23 Andrew Cagney <cagney@redhat.com>
7373
7374 * infcall.c (call_function_by_hand): Make declaration of "i",
7375 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7376 lint.
7377
7378 2003-04-23 Andrew Cagney <cagney@redhat.com>
7379
7380 * infcall.c (call_function_by_hand): Delete variable
7381 "n_method_args". Localize "param_type"'s declaration to the loop
7382 that it is used. Reinstate code assigning to said variable -
7383 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7384 Rationalize code using "param_type".
7385
7386 2003-04-22 Andrew Cagney <cagney@redhat.com>
7387
7388 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7389 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7390 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7391 to DEPRECATED_PUSH_RETURN_ADDRESS.
7392
7393 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7394
7395 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7396 on the DWARF2 register number prior to fetching a register.
7397
7398 2003-04-22 J. Brobecker <brobecker@gnat.com>
7399
7400 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7401 Update all the tests using SOFT_FLOAT considering the fact that
7402 this macro was always set to 0.
7403 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7404 considering the fact that this macro was always set to 0.
7405 * hppa-tdep.h (hppa_store_return_value): Likewise.
7406 (hppa_extract_return_value): Likewise.
7407
7408 2003-04-22 J. Brobecker <brobecker@gnat.com>
7409
7410 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7411 the hppa-pro target only.
7412
7413 2003-04-21 J. Brobecker <brobecker@gnat.com>
7414
7415 Ongoing multi-arch conversion effort for HP/UX:
7416 * config/pa/tm-hppa.h: Move all macro that are no longer
7417 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7418 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7419
7420 2003-04-21 J. Brobecker <brobecker@gnat.com>
7421
7422 * config/pa/tm-hppa.h: Obsolete a section that was only used
7423 for hppa-pro.
7424
7425 2003-04-21 J. Brobecker <brobecker@gnat.com>
7426
7427 Ongoing multi-arch conversion for HP/UX.
7428 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7429 if already defined (allows hppa64 to stay non-multiarched for now).
7430 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7431
7432 2003-04-21 Andrew Cagney <cagney@redhat.com>
7433
7434 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7435
7436 2003-04-21 Andrew Cagney <cagney@redhat.com>
7437
7438 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7439 "i386_num_mmx_regs".
7440
7441 2003-04-21 Andrew Cagney <cagney@redhat.com>
7442
7443 * infcall.c: New file.
7444 * infcall.h: New file.
7445 * valarith.c: Include "infcall.h".
7446 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7447 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7448 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7449 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7450 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7451 (SFILES): Add "infcall.c"
7452 (COMMON_OBS): Add "infcall.o".
7453 (infcall.o): Specify dependencies.
7454 * value.h (call_function_by_hand): Delete declaration.
7455 * inferior.h (run_stack_dummy): Delete declaration.
7456 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7457 (run_stack_dummy): Move to "infcall.c", merged into
7458 call_function_by_hand.
7459 * valops.c (call_function_by_hand): Moved to "infcall.c".
7460 (find_function_addr, value_arg_coerce): Ditto.
7461 (unwindonsignal_p, coerce_float_to_double): Ditto.
7462 (_initialize_valops): Move "set/show coerce-float-to-double", and
7463 "set/show unwindonsignal" commands to "infcall.c".
7464 * v850-tdep.c, target.h: Update comments.
7465 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7466 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7467 (sh64_init_extra_frame_info): Update comments.
7468 * mn10300-tdep.c: Update comments.
7469 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7470 * config/sparc/tm-sparc.h: Update comments.
7471 * breakpoint.h: Update comments.
7472 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7473 * arm-tdep.c: Update comment.
7474
7475 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7476
7477 * i386-tdep.c (i386_num_register_names): New variable.
7478 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7479 (MM0_REGNUM): Remove redundant parentheses in define.
7480 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7481 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7482 i386_mxcsr_regnum_p): Remove redundant parentheses.
7483 (i386_register_name): Use i386_num_register_names.
7484
7485 * i386-tdep.c (i386_extract_return_value,
7486 i386_store_return_value): Correct check for availability of
7487 floating-point registers.
7488
7489 * i386-tdep.c (i386_frame_num_args): Remove function.
7490 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7491
7492 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7493 mmx_regnum_to_fp_regnum. Adjust all callers.
7494
7495 * i386-tdep.c (i386_get_longjmp_target): Use
7496 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7497 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7498 extract_address.
7499
7500 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7501
7502 * core-regset.c: Update comments to reflect reality. Re-order
7503 includes.
7504 (fetch_core_registers): Use switch instead of if. Remove
7505 redundant prototype.
7506
7507 2003-04-18 Jim Blandy <jimb@redhat.com>
7508
7509 * s390-tdep.c (s390_frame_align): New function.
7510 (s390_gdbarch_init): Register it with the gdbarch object.
7511
7512 2003-04-17 Richard Henderson <rth@redhat.com>
7513
7514 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7515
7516 2003-04-17 Michael Snyder <msnyder@redhat.com>
7517 Karen Bennet <bennet@redhat.com>
7518
7519 Committed by Elena Zannoni <ezannoni@redhat.com>
7520 * gdb_gcore.sh: New script to create a core dump of a process.
7521
7522 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7523
7524 * values.c (value_being_returned): Don't fetch the return
7525 value if the return type is void.
7526
7527 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7528
7529 * thread-db.c: Reindented.
7530
7531 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7532
7533 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7534 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7535 as types.
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7562
7563 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7564 the size of ``long double'' to 16, instead of 8.
7565
7566 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7567
7568 * i386-linux-nat.c: Add some whitespace to make things more
7569 readable.
7570 (fetch_register, store_register, fetch_inferior_registers,
7571 store_inferior_registers): Get rid of assignment in if-statement.
7572 (store_register): Fix typo in error message.
7573
7574 2003-04-16 Andrew Cagney <cagney@redhat.com>
7575
7576 * utils.c (xmmalloc): Always allocate something, matches
7577 libiberty/xmalloc's semantics.
7578 (xmrealloc, xmcalloc): Ditto.
7579
7580 2003-04-16 Andrew Cagney <cagney@redhat.com>
7581
7582 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7583 update comments.
7584 (get_frame_type): Initialize unwind and type when needed.
7585 (get_frame_id, frame_register_unwind): Ditto.
7586
7587 2003-04-16 Andrew Cagney <cagney@redhat.com>
7588
7589 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7590 obsolete.
7591 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7592 * sparcl-stub.c: Obsolete file.
7593 * config/sparc/tm-sparclet.h: Obsolete file.
7594 * sparclet-stub.c: Obsolete file.
7595 * sparclet-rom.c: Obsolete file.
7596 * sparcl-tdep.c: Obsolete file.
7597 * config/sparc/tm-sparclite.h: Obsolete file.
7598 * config/sparc/sparclite.mt: Obsolete file.
7599 * config/sparc/sparclet.mt: Obsolete file.
7600 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7601 sparc86x-*-* obsolete.
7602
7603 2003-04-15 David Carlton <carlton@math.stanford.edu>
7604
7605 * Makefile.in (SFILES): Add cp-namespace.c.
7606 (COMMON_OBS): Add cp-namespace.o.
7607 (block.o): Depend on gdb_obstack_h and cp_support_h.
7608 (buildsym.o): Depend on cp_support_h.
7609 (cp-namespace.o): New.
7610 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7611 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7612 (dwarf2read.o): Depend on cp_support_h.
7613 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7614 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7615 processing_current_namespace.
7616 (read_namespace): Update processing_current_namespace; check for
7617 anonymous namespaces.
7618 (dwarf2_name): New function.
7619 (dwarf2_extension): Ditto.
7620 * cp-support.h: Update copyright, contributors.
7621 Add inclusion guards.
7622 Add opaque declaration for structs obstack, block, symbol.
7623 (struct using_direct): New struct.
7624 Add declarations for cp_find_first_component,
7625 cp_entire_prefix_len, processing_has_namespace_info,
7626 processing_current_namespace, cp_is_anonymous,
7627 cp_add_using_directive, cp_initialize_namespace,
7628 cp_finalize_namespace, cp_set_block_scope,
7629 cp_scan_for_anonymous_namespaces.
7630 * cp-namespace.c: New file.
7631 * cp-support.c: Update copyright.
7632 Include ctype.h, gdb_assert.h, gdbcmd.h.
7633 New variable maint_cplus_cmd_list.
7634 (cp_find_first_component): New function.
7635 (cp_entire_prefix_len, maint_cplus_command)
7636 (first_component_command, _initialize_cp_support): Ditto.
7637 * buildsym.c: Include cp-support.h.
7638 New variable using_list.
7639 (add_symbol_to_list): Check for anonymous namespaces.
7640 (finish_block): Set block's scope.
7641 (start_symtab): Initialize C++ namespace support.
7642 (end_symtab): Finalize C++ namespace support.
7643 * block.h: Add opaque declarations for structs
7644 block_namespace_info, using_direct, and obstack.
7645 Add declarations for block_set_scope and block_set_using.
7646 (struct block): Add 'language_specific' member.
7647 (BLOCK_NAMESPACE): New macro.
7648 * block.c: Include gdb_obstack.h and cp-support.h.
7649 (struct block_namespace_info): New struct.
7650 (block_set_scope): New function.
7651 (block_set_using, block_initialize_namespace): Ditto.
7652
7653 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7654
7655 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7656 (locate_base): Return early if there aren't any link map offsets.
7657 (svr4_solib_create_inferior_hook): Warn if shared library support
7658 is unavailable.
7659
7660 2003-04-14 David Carlton <carlton@math.stanford.edu>
7661
7662 * symtab.c (symbol_set_names): Add prefix when storing Java names
7663 in hash table. Fix for PR java/1039.
7664
7665 2003-04-14 David Carlton <carlton@math.stanford.edu>
7666
7667 * symtab.c (symbol_set_names): Rename 'name' arg to
7668 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7669 * symtab.h: Change 'name' argument in declaration of
7670 symbol_set_names to 'linkage_name'.
7671 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7672
7673 2003-04-14 Andrew Cagney <cagney@redhat.com>
7674
7675 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7676 return the fully sign-extended register value.
7677 (get_frame_pointer): Ditto.
7678 (mips_pop_frame): Initialize "proc_desc" after checking for a
7679 dummy frame.
7680
7681 2003-04-14 Andrew Cagney <cagney@redhat.com>
7682
7683 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7684 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7685 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7686 (mips_push_register): Delete function.
7687 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7688 PUSH_FP_REGNUM.
7689
7690 2003-04-14 Jim Blandy <jimb@redhat.com>
7691
7692 * symmisc.c: #include "gdb_regex.h".
7693 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7694 functions.
7695 * maint.c (maintenance_list_command): New function.
7696 (_initialize_maint_cmds): Register the above as commands.
7697 * symtab.h (maintenance_list_symtabs,
7698 maintenance_list_psymtabs): New declarations.
7699 * cli/cli-cmds.c (maintenancelistlist): New variable.
7700 (init_cmd_lists): Initialize it.
7701 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7702 * gdbcmd.h (maintenancelistlist): New declaration.
7703 * Makefile.in (symmisc.o): Update dependencies.
7704
7705 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7706
7707 * s390-nat.c: Include asm/types.h for addr_t.
7708
7709 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7710
7711 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7712 actually incoming type.
7713
7714 2003-04-13 Andrew Cagney <cagney@redhat.com>
7715
7716 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7717 get_next_frame and get_frame_saved_regs.
7718
7719 2003-04-13 Andrew Cagney <cagney@redhat.com>
7720
7721 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7722 of gdbarch_num_regs.
7723
7724 2003-04-13 Andrew Cagney <cagney@redhat.com>
7725
7726 * frame.h: Mention what replaced what in "struct frame_info".
7727 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7728 deprecated_update_frame_base_hack and
7729 deprecated_update_frame_pc_hack.
7730 * hppa-tdep.c: Ditto.
7731
7732 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7733
7734 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7735 to read_reg and update its comment. Remove regnum member.
7736 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7737 Don't call read_reg when setting in_reg. Call read_reg to get
7738 the frame base if it's in a register. Return the register number
7739 on the stack instead of in the context. Remove extra arguments
7740 to read_reg.
7741 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7742 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7743 the register number on the expression stack.
7744 (needs_frame_read_reg): Remove extra arguments.
7745
7746 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7747
7748 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7749 made non-static.
7750 (execute_stack_op): All callers updated.
7751 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7752 * dwarf2loc.c (find_location_expression): New function.
7753 (dwarf_expr_frame_base): Call it.
7754 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7755 (dwarf2_tracepoint_var_ref): New function, broken out from
7756 locexpr_tracepoint_var_ref.
7757 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7758 Make static.
7759 (loclist_read_variable, loclist_read_needs_frame): New functions.
7760 (loclist_describe_location, loclist_tracepoint_var_ref): New
7761 functions.
7762 (dwarf2_loclist_funcs): New struct location_funcs.
7763 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7764 (struct dwarf2_locexpr_baton): Add comments.
7765 (dwarf2_loclist_funcs): New extern.
7766 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7767 base_address and base_known.
7768 (dwarf_loc_buffer): New variable.
7769 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7770 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7771 (dwarf2_has_info): Initialize dwarf_loc_offset.
7772 (dwarf2_build_psymtabs): Read in .debug_loc.
7773 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7774 DWARF_LOC_SIZE.
7775 (psymtab_to_symtab_1): Likewise. Move base address calculation
7776 here, from...
7777 (dwarf2_get_pc_bounds): ... here. Use the base address from
7778 cu_header.
7779 (dwarf2_symbol_mark_computed): Handle location lists.
7780
7781 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7782
7783 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7784 if the linkage name demangled successfully.
7785
7786 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7787
7788 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7789 disassmbly_flavour): Removed.
7790
7791 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7792
7793 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7794
7795 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7796
7797 2003-04-12 Andrew Cagney <cagney@redhat.com>
7798
7799 * frame.h (struct frame_info): Move definition from here ...
7800 * frame.c (struct frame_info): ... to here.
7801
7802 2003-04-12 Andrew Cagney <cagney@redhat.com>
7803
7804 * gdbthread.h (save_infrun_state): Delete parameter
7805 "prev_func_start".
7806 (struct thread_info): Delete field "prev_func_start".
7807 (load_infrun_state): Ditto.
7808 * thread.c (load_infrun_state, save_infrun_state): Update.
7809 * infrun.c (prev_func_start): Delete variable.
7810 (context_switch, init_wait_for_inferior): Update.
7811 (stop_stepping, keep_going): Update.
7812
7813 2003-04-12 Andrew Cagney <cagney@redhat.com>
7814
7815 * gdbarch.sh: Add missing opaque declarations.
7816 * gdbarch.h: Regnerate.
7817 * symtab.h: Add missing opaque declarations.
7818 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7819 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7820 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7821 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7822 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7823 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7824 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7825 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7826 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7827 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7828 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7829 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7830 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7831
7832 2003-04-11 Andrew Cagney <cagney@redhat.com>
7833
7834 * frame.c (get_frame_id): Return this frame's "id".
7835 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7836 function start.
7837 (legacy_saved_regs_this_id): Replace function body with
7838 internal-error.
7839 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7840 FRAME_OBSTACK_ZALLOC.
7841 (create_new_frame): Mark the frame ID as valid.
7842
7843 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7844
7845 * Makefile.in (libbfd_h): Added missing setting.
7846 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7847 according to the selected ABI.
7848
7849 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7850
7851 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7852
7853 2003-04-11 Andrew Cagney <cagney@redhat.com>
7854
7855 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7856 SAVED_PC_AFTER_CALL.
7857 * gdbarch.h, gdbarch.c: Regenerate.
7858 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7859 * x86-64-tdep.c (x86_64_init_abi): Update.
7860 * vax-tdep.c (vax_gdbarch_init): Update.
7861 * v850-tdep.c (v850_gdbarch_init): Update.
7862 * sparc-tdep.c (sparc_gdbarch_init): Update.
7863 * sh-tdep.c (sh_gdbarch_init): Update.
7864 * s390-tdep.c (s390_gdbarch_init): Update.
7865 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7866 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7867 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7868 * mips-tdep.c (mips_gdbarch_init): Update.
7869 * mcore-tdep.c (mcore_gdbarch_init): Update.
7870 * m68k-tdep.c (m68k_gdbarch_init): Update.
7871 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7872 * ia64-tdep.c (ia64_gdbarch_init): Update.
7873 (ia64_saved_pc_after_call): Update declaration.
7874 * i386ly-tdep.c (i386lynx_init_abi): Update.
7875 * i386-tdep.c (i386_gdbarch_init): Update.
7876 * hppa-tdep.c (hppa_gdbarch_init): Update.
7877 * h8300-tdep.c (h8300_gdbarch_init): Update.
7878 * frv-tdep.c (frv_gdbarch_init): Update.
7879 * cris-tdep.c (cris_gdbarch_init): Update.
7880 * avr-tdep.c (avr_gdbarch_init): Update.
7881 * arm-tdep.c (arm_gdbarch_init): Update.
7882 * alpha-tdep.c (alpha_gdbarch_init): Update.
7883 * ns32knbsd-nat.c (frame_num_args): Update.
7884 * ns32k-tdep.c (umax_frame_num_args): Update.
7885 * mips-tdep.c (mips_init_frame_pc_first): Update.
7886 * infrun.c (step_over_function): Update.
7887 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7888 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7889 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7890 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7891 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7892 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7893 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7894 * arch-utils.c (init_frame_pc_default): Update.
7895 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7896 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7897 declaration.
7898
7899 2003-04-11 Andrew Cagney <cagney@redhat.com>
7900
7901 * i387-tdep.c: Update copyright.
7902 (i387_to_double): Delete function.
7903 (double_to_i387): Delete function.
7904
7905 2003-04-10 Andrew Cagney <cagney@redhat.com>
7906
7907 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7908 frame's function's address. Simplify.
7909 (d10v_frame_unwind_cache): Check that the frame's function is
7910 non-zero.
7911
7912 2003-04-10 Jim Blandy <jimb@redhat.com>
7913
7914 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7915 call to set_gdbarch_deprecated_push_arguments.
7916
7917 2003-04-10 Andrew Cagney <cagney@redhat.com>
7918
7919 * frame.c (fprint_frame_id): New function.
7920 (fprint_frame_type, fprint_frame): New function.
7921 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7922 (create_sentinel_frame, get_frame_id): Ditto.
7923 (frame_id_p, frame_id_eq): Ditto.
7924 (frame_id_inner, create_new_frame): Ditto.
7925 (legacy_get_prev_frame, get_prev_frame): Ditto.
7926 (deprecated_update_frame_pc_hack): Ditto.
7927 (frame_register_unwind): Ditto.
7928 (deprecated_update_frame_base_hack): Ditto.
7929
7930 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7931
7932 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7933 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7934 frame_chain function.
7935 * Makefile.in: Add dependencies due to above change.
7936
7937 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7938
7939 * blockframe.c (legacy_frame_chain_valid): Move call to
7940 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7941 inside_entry_file.
7942
7943 2003-04-09 Andrew Cagney <cagney@redhat.com>
7944
7945 * frame.h (struct frame_id): Replace "pc" and "base" with
7946 "stack_addr" and "code_addr". Update comments.
7947 (frame_id_build): Update parameter names and comment.
7948 (struct frame_info): Replace "id_p" and "id" with "this_id".
7949 * dummy-frame.c (dummy_frame_this_id): Update.
7950 * breakpoint.c (print_one_breakpoint): Update.
7951 * frame.c (get_frame_id): Update.
7952 (get_frame_base, frame_id_build): Update.
7953 (create_sentinel_frame, legacy_get_prev_frame): Update.
7954 (deprecated_update_frame_base_hack): Update.
7955 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7956 (frame_id_inner): Ditto.
7957
7958 2003-04-09 Andrew Cagney <cagney@redhat.com>
7959
7960 * defs.h (gdb_print_host_address): Make "addr" parameter a
7961 pointer constant.
7962 * utils.c (gdb_print_host_address): Update.
7963
7964 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7965
7966 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7967 register number for R0 is 0.
7968
7969 2003-04-09 J. Brobecker <brobecker@gnat.com>
7970
7971 * frame.h (struct gdbarch): Add opaque structure definition
7972 to avoid a compilation warning on LynxOS 4.0.
7973
7974 2003-04-09 Andrew Cagney <cagney@redhat.com>
7975
7976 * frame.h (struct frame_info): Delete field "pc". Replace
7977 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7978 structure.
7979 * frame.c (frame_pc_unwind): Update.
7980 (create_sentinel_frame): Do not set "pc".
7981 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7982 (get_frame_pc): Call frame_pc_unwind.
7983 (deprecated_update_frame_pc_hack): Update.
7984 (create_new_frame): Use "pc" not "->pc".
7985
7986 2003-04-09 Andrew Cagney <cagney@redhat.com>
7987
7988 * frame.c (get_frame_id): Eliminate code updating "frame".
7989 (legacy_get_prev_frame): Ditto.
7990 (get_frame_base): Return id.base directly.
7991 (deprecated_update_frame_base_hack): Update "id.base".
7992 * frame.h (struct frame_info): Delete field "frame".
7993
7994 2003-04-09 Andrew Cagney <cagney@redhat.com>
7995
7996 * NEWS: Mention that the "Sequent family" is obsolete.
7997 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7998 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7999 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8000 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8001 * config/i386/tm-ptx4.h: Obsolete file.
8002 * config/i386/tm-ptx.h: Obsolete file.
8003 * symm-tdep.c: Obsolete file.
8004 * config/i386/symmetry.mt: Obsolete file.
8005 * config/i386/tm-symmetry.h: Obsolete file.
8006 * symm-nat.c: Obsolete file.
8007 * config/i386/nm-symmetry.h: Obsolete file.
8008 * config/i386/xm-symmetry.h: Obsolete file.
8009 * config/i386/symmetry.mh: Obsolete file.
8010 * config/i386/nm-ptx4.h: Obsolete file.
8011 * config/i386/ptx4.mh: Obsolete file.
8012 * config/i386/ptx.mt: Obsolete file.
8013 * config/i386/ptx.mh: Obsolete file.
8014 * config/i386/xm-ptx4.h: Obsolete file.
8015 * config/i386/xm-ptx.h: Obsolete file.
8016
8017 2003-04-09 Andrew Cagney <cagney@redhat.com>
8018
8019 Obsolete mips*-*-mach3*.
8020 * NEWS: Mention that mips*-*-mach3* is obsolete.
8021 * m3-nat.c: Obsolete file.
8022 * config/nm-m3.h: Obsolete file.
8023 * config/mips/tm-mipsm3.h: Obsolete file.
8024 * config/mips/mipsm3.mt: Obsolete file.
8025 * config/mips/mipsm3.mh: Obsolete file.
8026 * config/mips/xm-mipsm3.h: Obsolete file.
8027 * mipsm3-nat.c: Obsolete file.
8028 * configure.host: Obsolete mips-dec-mach3*.
8029 * configure.tgt: Obsolete mips*-*-mach3*.
8030
8031 2003-04-09 Andrew Cagney <cagney@redhat.com>
8032
8033 * doublest.h: Update copyright.
8034 (deprecated_store_floating, deprecated_extract_floating): Rename
8035 store_floating and extract_floating. Update comments.
8036 * doublest.c: Update copyright.
8037 (extract_floating_by_length): Replace extract_floating.
8038 (store_floating_by_length): Replace store_floating.
8039 (deprecated_extract_floating): New function.
8040 (deprecated_store_floating): New function.
8041 (extract_typed_floating): Call extract_floating_by_length.
8042 (store_typed_floating): Call store_floating_by_length.
8043 * x86-64-tdep.c (x86_64_store_return_value): Update.
8044 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8045 (sh64_extract_return_value): Update.
8046 (sh_sh4_register_convert_to_virtual): Update.
8047 (sh_sh64_register_convert_to_virtual): Update.
8048 (sh_sh4_register_convert_to_raw): Update.
8049 (sh_sh64_register_convert_to_raw): Update.
8050 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8051 (rs6000_register_convert_to_raw): Update.
8052 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8053 (ia64_register_convert_to_raw): Update.
8054 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8055 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8056 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8057 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8058 (alpha_register_convert_to_raw): Update.
8059
8060 2003-04-08 Andrew Cagney <cagney@redhat.com>
8061
8062 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8063 * gdbarch.h, gdbarch.c: Re-generate.
8064 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8065 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8066 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8067 conditionally, use frame_pc_unwind as an alternative. Add
8068 comments.
8069 * arch-utils.c (init_frame_pc_default): Only call
8070 SAVED_PC_AFTER_CALL when available.
8071
8072 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8073
8074 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8075 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8076 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8077 (start_remote): Ditto.
8078 (handle_inferior_event): Ditto.
8079 (save_inferior_status): Ditto.
8080 (restore_inferior_status): Ditto.
8081 * infcmd.c (attach_command): Ditto.
8082 * fork-child.c (startup_inferior): Ditto.
8083 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8084 * alpha-tdep.c (heuristic_proc_start): Ditto.
8085 * mips-tdep.c (heuristic_proc_start): Ditto.
8086 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8087 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8088 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8089 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8090 * remote-vx.c (vx_create_inferior): Ditto.
8091
8092 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8093
8094 * infrun.c (stop_soon_quietly): Make it an enum, to better
8095 override the default behavior of handle_inferior_event.
8096 (clear_proceed_status): Update uses of stop_soon_quietly to
8097 reflect that it is now an enum.
8098 (start_remote): Ditto.
8099 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8100 is set to handle the new GNU/Linux kernel behavior for
8101 attach/sigstop. Update uses of stop_soon_quietly.
8102 * inferior.h (enum stop_kind): New enum.
8103 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8104 Reset normal handle_inferior_event behavior, afterwards.
8105 * fork-child.c (startup_inferior): Update.
8106 * alpha-tdep.c (heuristic_proc_start): Update.
8107 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8108 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8109 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8110 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8111 * remote-vx.c (vx_create_inferior): Update.
8112 * mips-tdep.c (heuristic_proc_start): Update.
8113
8114 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8115
8116 * disasm.c (dump_insns): Move variables inside loop, or they will
8117 be freed more than once, causing wild memory corruptions.
8118 (gdb_disassembly): Look for the substring "-thread",
8119 instead of "-threads" in the target name, to make sure to find
8120 the 'multi-thread' target. Also, make sure we do the right thing
8121 with the "core" target.
8122
8123 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8124
8125 * mips-tdep.c (mips_print_fp_register): New function, created from
8126 do_fp_register_row(). Registers are now (also) printed as hex.
8127 Only one register is printed per row.
8128 (mips_print_register, do_fp_register_row): Print floating point
8129 registers with mips_print_fp_register().
8130
8131 2003-04-06 Andrew Cagney <cagney@redhat.com>
8132
8133 * valprint.h (inspect_it): Add extern declaration.
8134 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8135 (selectors_info, classes_info): Ditto.
8136 (find_objc_msgcall): Fix indentation.
8137 (objc_printstr): Delete extern declarations.
8138
8139 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8140
8141 2003-04-06 Andrew Cagney <cagney@redhat.com>
8142
8143 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8144 Update comment.
8145 * frame.c (legacy_saved_regs_this_id): Update.
8146 (legacy_get_prev_frame): Update.
8147 * xstormy16-tdep.c: Update comment.
8148 * sparc-tdep.c (sparc_frame_chain): Update comment.
8149 * blockframe.c (legacy_frame_chain_valid): Update.
8150
8151 2003-04-06 Andrew Cagney <cagney@redhat.com>
8152
8153 * valprint.c (val_print_type_code_int): Delete #ifdef
8154 PRINT_TYPELESS_INTEGER code.
8155
8156 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8157 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8158 multi-arch definition.
8159 * gdbarch.h: Re-generate.
8160
8161 2003-04-05 Andrew Cagney <cagney@redhat.com>
8162
8163 Eliminate FRAME_FIND_SAVED_REGS.
8164 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8165 Change FSR parameter to a pointer.
8166 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8167 Assume FSR parameter is a pointer.
8168 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8169 Make fsr a pointer.
8170 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8171 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8172 saved_regs a pointer.
8173 (hppa_frame_saved_pc): Ditto.
8174 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8175 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8176 pointer.
8177 (restore_pc_queue): Make fsr a pointer.
8178 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8179 (hppa_frame_chain): Make saved_regs a pointer, call
8180 hppa_frame_init_saved_regs.
8181 * sparc-tdep.c: Include "gdb_assert.h".
8182 (sparc_frame_find_saved_regs): Replace internal_error with
8183 gdb_assert.
8184 * remote-vxsparc.c (vx_read_register): Delete reference to
8185 FRAME_FIND_SAVED_REGS.
8186 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8187 * gdbarch.h: Regenerate.
8188 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8189 (deprecated_get_frame_saved_regs): Delete declaration.
8190 (struct frame_saved_regs): Delete definition.
8191 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8192 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8193 (hppa_frame_find_saved_regs): Delete declaration.
8194 (FRAME_FIND_SAVED_REGS): Delete macro.
8195 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8196 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8197 FRAME_FIND_SAVED_REGS in comment.
8198
8199 2003-04-05 Andrew Cagney <cagney@redhat.com>
8200
8201 * frame.c (frame_func_unwind, get_frame_func): New functions.
8202 * frame.h (get_frame_func, frame_func_unwind): Declare.
8203 (struct frame_info): Add field "prev_func" for caching the
8204 previous frame's function address.
8205 * arm-tdep.c (arm_frameless_function_invocation): Combine
8206 get_pc_function_start and get_frame_pc into get_frame_func.
8207 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8208 (sh64_nofp_frame_init_saved_regs): Ditto.
8209 * s390-tdep.c (s390_function_start): Ditto.
8210 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8211 (rs6000_frameless_function_invocation): Ditto.
8212 (rs6000_frame_saved_pc): Ditto.
8213 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8214 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8215 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8216 (i386_frame_init_saved_regs): Ditto.
8217 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8218 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8219 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8220 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8221 * blockframe.c (frameless_look_for_prologue): Ditto.
8222
8223 2003-04-05 Andrew Cagney <cagney@redhat.com>
8224
8225 * frame.c (legacy_get_prev_frame): Link prev to next at the
8226 function start. Update comments.
8227
8228 2003-04-05 Andrew Cagney <cagney@redhat.com>
8229
8230 * frame.c (get_frame_id): Update comment.
8231 (legacy_get_prev_frame): Update comment.
8232 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8233 * gdbarch.h: Regenerate.
8234 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8235 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8236
8237 2003-04-05 Andrew Cagney <cagney@redhat.com>
8238
8239 * stack.c (print_frame_info): Use get_frame_pc.
8240
8241 2003-04-04 Andrew Cagney <cagney@redhat.com>
8242
8243 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8244 the frame's type from the unwinder.
8245 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8246 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8247 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8248 (get_frame_base_address): Use get_frame_type.
8249 (get_frame_locals_address, get_frame_args_address): Ditto.
8250 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8251 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8252 (struct frame_info): Add comment explaining why the frame contains
8253 a "type" field.
8254 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8255 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8256 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8257 NORMAL_FRAME.
8258 * frame-unwind.h: Include "frame.h".
8259 (struct frame_unwind): Add "type" field.
8260 * Makefile.in (frame_unwind_h): Add $(frame_h).
8261
8262 2003-04-04 Andrew Cagney <cagney@redhat.com>
8263
8264 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8265 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8266 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8267 get_frame_base.
8268 (d10v_unwind_dummy_id): Use frame_id_build.
8269 * frame.c (find_frame_sal): Use get_frame_pc.
8270 (create_new_frame): Use deprecated_update_frame_pc_hack and
8271 deprecated_update_frame_base_hack.
8272 (create_sentinel_frame): Add comment about ->pc going away.
8273 (get_prev_frame): Add comment about ->pc going away.
8274 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8275 frame_id_build, deprecated_update_frame_pc_hack and
8276 deprecated_update_frame_base_hack.
8277 (select_frame): Use get_frame_pc.
8278 (legacy_saved_regs_this_id): Use frame_id_build.
8279
8280 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8281
8282 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8283 signed integer case.
8284 (classify_argument): Handle enumerations and references.
8285
8286 2003-04-04 Andrew Cagney <cagney@redhat.com>
8287
8288 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8289 ID to NULL.
8290
8291 2003-04-01 Adam Fedor <fedor@gnu.org>
8292
8293 * gdb/objc-lang.c (selectors_info): Replace calls to
8294 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8295 SYMBOL_NATURAL_NAME.
8296 (classes_info, find_methods): Likewise.
8297
8298 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8299
8300 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8301 ``mach'' to the value determined by bfd_default_set_arch_mach().
8302
8303 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8304
8305 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8306 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8307 (mi-cmd-file.o): Update dependencies.
8308
8309 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8310
8311 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8312 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8313
8314 2003-04-01 Adam Fedor <fedor@gnu.org>
8315
8316 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8317 * language.h (struct language_defn): Add la_demangle.
8318 (language_demangle): Declare.
8319 * language.c (language_demangle): New function.
8320 (unk_lang_demangle): Likewise.
8321 (unknown_language_defn, auto_language_defn, local_language_defn):
8322 Add ukn_lang_demangle.
8323 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8324 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8325 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8326 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8327 * jv-lang.c (java_demangle): New function
8328 (java_language_defn): Use it for la_demangle element.
8329 * objc-lang.c (objc_demangle): Add options argument
8330 (objc_language_defn): Use objc_demangle for la_demangle element.
8331 * maint.c (maintenance_demangle): Replace switch with
8332 call to language_demangle.
8333 * utils.c (fprintf_symbol_filtered): Likewise.
8334
8335 2003-04-01 Andrew Cagney <cagney@redhat.com>
8336
8337 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8338 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8339 PRINT_TYPELESS_INTEGER.
8340 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8341 PUSH_RETURN_ADDRESS.
8342
8343 2003-04-01 Andrew Cagney <cagney@redhat.com>
8344
8345 * Makefile.in (d10v-tdep.o): Update dependencies.
8346 * d10v-tdep.c: Include "frame-base.h".
8347 (d10v_frame_unwind): Make constant.
8348 (d10v_frame_base_address): New function.
8349 (d10v_frame_base): New variable.
8350 (d10v_gdbarch_init): Set frame_base default.
8351 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8352 comment for base.
8353 (d10v_frame_unwind_cache): Set and use "prev_sp".
8354 (d10v_frame_this_id): Use the previous frame's inner most stack
8355 address and this frame's func address for the frame ID. Use
8356 frame_id_build. Don't analyze beyond the current instruction.
8357
8358 2003-04-01 Andrew Cagney <cagney@redhat.com>
8359
8360 * frame.h (get_frame_locals_address, get_frame_args_address):
8361 Refer to the base address, instead of the address of the first
8362 local or parameter.
8363
8364 2003-04-01 Andrew Cagney <cagney@redhat.com>
8365
8366 Add frame debug info addresses:
8367 * frame-base.c: New file.
8368 * frame-base.h: New file.
8369 * frame.h (struct frame_base): Add opaque declaration.
8370 (get_frame_base): Update comment.
8371 (get_frame_base_address): Declare.
8372 (get_frame_locals_address): Declare.
8373 (get_frame_args_address): Declare.
8374 (struct frame_info): Add "base" and "base_cache". Update
8375 comments on the unwinder.
8376 * frame.c: Include "frame-base.h".
8377 (get_frame_locals_address): New function.
8378 (get_frame_base_address): New function.
8379 (get_frame_args_address): New function.
8380 * findvar.c (read_var_value): Use get_frame_locals_address and
8381 get_frame_args_address.
8382 * stack.c (frame_info): Use get_frame_locals_address and
8383 get_frame_args_address.
8384 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8385 moved to "frame-base.c".
8386 * printcmd.c (print_frame_nameless_args): Ditto.
8387 * symtab.h (address_class): Update comments.
8388 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8389 get_frame_base_address.
8390 * dwarf2expr.c (execute_stack_op): Ditto.
8391 * Makefile.in (frame_base_h): Define.
8392 (frame.o): Update dependencies.
8393 (frame-base.o): Add dependencies.
8394 (SFILES): Add frame-base.c.
8395 (COMMON_OBS): Add frame-base.o.
8396
8397 2003-04-01 Andrew Cagney <cagney@redhat.com>
8398
8399 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8400 CALL_DUMMY_LENGTH): Ditto.
8401 * gdbarch.c: Re-generate.
8402 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8403 (CALL_DUMMY_LENGTH): Delete macro.
8404 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8405 * arm-tdep.c (arm_gdbarch_init): Ditto.
8406 * avr-tdep.c (avr_gdbarch_init): Ditto.
8407 * cris-tdep.c (cris_gdbarch_init): Ditto.
8408 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8409 * frv-tdep.c (frv_gdbarch_init): Ditto.
8410 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8411 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8412 * i386-tdep.c (i386_gdbarch_init): Ditto.
8413 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8414 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8415 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8416 * mips-tdep.c (mips_gdbarch_init): Ditto.
8417 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8418 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8419 * s390-tdep.c (s390_gdbarch_init): Ditto.
8420 * sh-tdep.c (sh_gdbarch_init): Ditto.
8421 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8422 * v850-tdep.c (v850_gdbarch_init): Ditto.
8423 * vax-tdep.c (vax_gdbarch_init): Ditto.
8424 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8425
8426 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8427
8428 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8429
8430 2003-04-01 Andrew Cagney <cagney@redhat.com>
8431
8432 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8433 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8434 * gdbarch.h, gdbarch.c: Re-generate.
8435 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8436 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8437 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8438 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8439 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8440 * infcmd.c (run_stack_dummy): Simplify assuming
8441 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8442 * infrun.c (handle_inferior_event): Ditto.
8443 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8444 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8445 * arm-tdep.c (arm_gdbarch_init): Ditto.
8446 * avr-tdep.c (avr_gdbarch_init): Ditto.
8447 * cris-tdep.c (cris_gdbarch_init): Ditto.
8448 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8449 * frv-tdep.c (frv_gdbarch_init): Ditto.
8450 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8451 * i386-tdep.c (i386_gdbarch_init): Ditto.
8452 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8453 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8454 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8455 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8456 * mips-tdep.c (mips_gdbarch_init): Ditto.
8457 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8458 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8459 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8460 * s390-tdep.c (s390_gdbarch_init): Ditto.
8461 * sh-tdep.c (sh_gdbarch_init): Ditto.
8462 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8463 * v850-tdep.c (v850_gdbarch_init): Ditto.
8464 * vax-tdep.c (vax_gdbarch_init): Ditto.
8465 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8466
8467 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8468
8469 * symfile.c (symfile_relocate_debug_section): Update call to
8470 bfd_simple_get_relocated_section_contents.
8471
8472 2003-03-31 Andrew Cagney <cagney@redhat.com>
8473
8474 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8475 * gdbarch.h, gdbarch.c: Regenerate.
8476 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8477 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8478 available.
8479 * frame.h (generic_fix_call_dummy): Delete declaration.
8480 * dummy-frame.h: Update comment.
8481 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8482 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8483 fix_call_dummy.
8484 * sh-tdep.c (sh_gdbarch_init): Ditto.
8485 * s390-tdep.c (s390_gdbarch_init): Ditto.
8486 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8487 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8488 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8489 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8490 * i386-tdep.c (i386_gdbarch_init): Ditto.
8491 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8492 * frv-tdep.c (frv_gdbarch_init): Ditto.
8493 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8494 * cris-tdep.c (cris_gdbarch_init): Ditto.
8495 * avr-tdep.c (avr_gdbarch_init): Ditto.
8496 * arm-tdep.c (arm_gdbarch_init): Ditto.
8497
8498 2003-03-31 J. Brobecker <brobecker@gnat.com>
8499
8500 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8501 (INIT_FRAME_AP): Likewise.
8502 (EXTRA_FRAME_INFO): Likewise.
8503
8504 2003-03-31 Andrew Cagney <cagney@redhat.com>
8505
8506 * gdbarch.sh: Include "symfile.h".
8507 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8508 * gdbarch.h, gdbarch.c: Re-generate.
8509 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8510 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8511 call_dummy_address, the default is at entry_point_address.
8512 * v850-tdep.c (v850_gdbarch_init): Ditto.
8513 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8514 * sh-tdep.c (sh_gdbarch_init): Ditto.
8515 * s390-tdep.c (s390_gdbarch_init): Ditto.
8516 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8517 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8518 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8519 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8520 * i386-tdep.c (i386_gdbarch_init): Ditto.
8521 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8522 * frv-tdep.c (frv_gdbarch_init): Ditto.
8523 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8524 * cris-tdep.c (cris_gdbarch_init): Ditto.
8525 * arm-tdep.c (arm_gdbarch_init): Ditto.
8526
8527 2003-03-31 Andrew Cagney <cagney@redhat.com>
8528
8529 * gdbarch.sh (CALL_DUMMY_P): Delete.
8530 * gdbarch.h, gdbarch.c: Re-generate.
8531 * inferior.h (CALL_DUMMY_P): Delete macro.
8532 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8533 * vax-tdep.c (vax_gdbarch_init): Update.
8534 * v850-tdep.c (v850_gdbarch_init): Update.
8535 * sparc-tdep.c (sparc_gdbarch_init): Update.
8536 * sh-tdep.c (sh_gdbarch_init): Update.
8537 * s390-tdep.c (s390_gdbarch_init): Update.
8538 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8539 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8540 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8541 * mips-tdep.c (mips_gdbarch_init): Update.
8542 * mcore-tdep.c (mcore_gdbarch_init): Update.
8543 * m68k-tdep.c (m68k_gdbarch_init): Update.
8544 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8545 * ia64-tdep.c (ia64_gdbarch_init): Update.
8546 * i386-tdep.c (i386_gdbarch_init): Update.
8547 * h8300-tdep.c (h8300_gdbarch_init): Update.
8548 * frv-tdep.c (frv_gdbarch_init): Update.
8549 * d10v-tdep.c (d10v_gdbarch_init): Update.
8550 * cris-tdep.c (cris_gdbarch_init): Update.
8551 * breakpoint.c (deprecated_frame_in_dummy): Update.
8552 * avr-tdep.c (avr_gdbarch_init): Update.
8553 * alpha-tdep.c (alpha_gdbarch_init): Update.
8554 * arm-tdep.c (arm_gdbarch_init): Update.
8555 * dummy-frame.c (dummy_frame_this_id): Update comments.
8556 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8557 * frame.c (legacy_get_prev_frame): Ditto.
8558 * valops.c (call_function_by_hand): Delete function.
8559 (hand_function_call): Rename to call_function_by_hand
8560
8561 2003-03-30 Andrew Cagney <cagney@redhat.com>
8562
8563 2002-11-10 Klee Dienes <kdienes@apple.com>
8564 * value.h (struct value): Update comment.
8565
8566 2003-03-30 Andrew Cagney <cagney@redhat.com>
8567
8568 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8569 D10V_FP_REGNUM.
8570 (d10v_gdbarch_init): Do not set fp_regnum.
8571
8572 * frame.c (get_frame_base): Force ID initialization.
8573 (get_prev_frame): Move computation of the frame ID from here ...
8574 (get_frame_id): ... to here.
8575 (legacy_get_prev_frame): Mark the frame ID as valid.
8576 * frame.h (struct frame_info): Add field "id_p".
8577
8578 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8579
8580 * i386-tdep.c (i386_store_struct_return): Removed.
8581 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8582
8583 2003-03-30 Andrew Cagney <cagney@redhat.com>
8584
8585 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8586 * gdbarch.h, gdbarch.c: Regenerate.
8587 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8588 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8589 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8590 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8591 * i386-tdep.c (i386_gdbarch_init): Ditto.
8592 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8593 * cris-tdep.c (cris_gdbarch_init): Ditto.
8594 * vax-tdep.c (vax_gdbarch_init): Ditto.
8595 * s390-tdep.c (s390_gdbarch_init): Ditto.
8596 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8597 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8598 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8599 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8600 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8601 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8602 * sparc-tdep.c (sparc_gdbarch_init): Update.
8603 * sh-tdep.c (sh_gdbarch_init): Update.
8604 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8605 * mips-tdep.c (mips_gdbarch_init): Update.
8606 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8607 * ia64-tdep.c (ia64_gdbarch_init): Update.
8608 * frv-tdep.c (frv_gdbarch_init): Update.
8609 * avr-tdep.c (avr_gdbarch_init): Update.
8610 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8611 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8612 instead of when push_dummy_call is not available.
8613
8614 2003-03-30 Andrew Cagney <cagney@redhat.com>
8615
8616 * infttrace.c: Include "gdbthread.h".
8617 (parent_attach_all): Fix function signature.
8618 (call_ptrace): Update call.
8619 * Makefile.in (infttrace.o): Update dependencies.
8620
8621 2003-03-30 Andrew Cagney <cagney@redhat.com>
8622
8623 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8624 PUSH_RETURN_ADDRESS.
8625 * gdbarch.h, gdbarch.c: Regenerate.
8626 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8627 * x86-64-tdep.c (x86_64_init_abi): Update.
8628 * v850-tdep.c (v850_gdbarch_init): Update.
8629 * sparc-tdep.c (sparc_gdbarch_init): Update.
8630 * sh-tdep.c (sh_gdbarch_init): Update.
8631 * s390-tdep.c (s390_gdbarch_init): Update.
8632 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8633 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8634 * mips-tdep.c (mips_gdbarch_init): Update.
8635 * mcore-tdep.c (mcore_gdbarch_init): Update.
8636 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8637 * ia64-tdep.c (ia64_gdbarch_init): Update.
8638 * i386-tdep.c (i386_gdbarch_init): Update.
8639 * h8300-tdep.c (h8300_gdbarch_init): Update.
8640 * frv-tdep.c (frv_gdbarch_init): Update.
8641 * cris-tdep.c (cris_gdbarch_init): Update.
8642 * avr-tdep.c (avr_gdbarch_init): Update.
8643 * arm-tdep.c (arm_gdbarch_init): Update.
8644 * valops.c (hand_function_call): Update.
8645
8646 2003-03-29 Andrew Cagney <cagney@redhat.com>
8647
8648 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8649 sizeof_call_dummy_words.
8650 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8651 define.
8652 * gdbarch.h: Regenerate.
8653
8654 2003-03-29 Andrew Cagney <cagney@redhat.com>
8655
8656 * infttrace.h: New file.
8657 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8658 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8659 (hpread_read_doc_function_type): Detect an initialized type1.
8660 (hpread_quick_traverse): Initialize mod_name_string.
8661 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8662 (som_solib_get_solib_by_pc): Declare.
8663 (so_lib_thread_start_addr): Declare.
8664 (no_shared_libraries): Declare.
8665 * somread.c (init_import_symbols): Make static. Add forward
8666 declaration.
8667 * config/pa/nm-hppah.h: Include "infttrace.h" for
8668 parent_attach_all.
8669 (hppa_insert_hw_watchpoint): Declare.
8670 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8671 * hppah-nat.c: Include "gdb_string.h".
8672 (parent_attach_all): Delete extern declaration, moved to
8673 "infttrace.h".
8674 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8675 int.
8676 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8677 * Makefile.in (infttrace_h): Define.
8678 (hpread.o): Update dependencies.
8679 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8680 * hppa-hpux-tdep.c: Include "gdb_string.h".
8681 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8682 * infrun.c (handle_inferior_event): Always initialize
8683 stepped_after_stopped_by_watchpoint. Add default and remove
8684 fallthrough in switch statement.
8685 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8686 parameter to int.
8687 (hppa_remove_hw_watchpoint): Ditto.
8688
8689 2003-03-29 Andrew Cagney <cagney@redhat.com>
8690
8691 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8692 offset.
8693
8694 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8695
8696 * arm-tdep.c (arm_push_arguments): Delete.
8697 (struct stack_item): New type.
8698 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8699 (arm_store_struct_return): Delte.
8700 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8701 arm_push_arguments or arm_store_struct_return.
8702
8703 2003-03-28 Andrew Cagney <cagney@redhat.com>
8704
8705 * Makefile.in (d10v-tdep.o): Update dependencies.
8706 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8707 * d10v-tdep.c: Include "remote.h".
8708 (target_resume_hook): Delete extern declaration.
8709 (target_wait_loop_hook): Ditto.
8710 (tdisassemble_command): Eliminate assignment in "if" conditional.
8711 (d10v_ts2_register_sim_regno): Eliminate call to
8712 legacy_register_sim_regno.
8713 (d10v_ts3_register_sim_regno): Ditto.
8714
8715 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8716
8717 * thread.c: Reindented.
8718 * lin-lwp.c: Ditto.
8719 * linux-proc.c: Ditto.
8720
8721 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8722
8723 * MAINTAINERS (write after approval): Add myself.
8724
8725 2003-03-27 Theodore A. Roth <troth@openavr.org>
8726
8727 * objc-exp.y: Add missing semi-colons.
8728
8729 2003-03-27 Andrew Cagney <cagney@redhat.com>
8730
8731 * regcache.c (write_sp): Delete function and references.
8732 * inferior.h (write_sp): Delete declaration.
8733 * valops.c (hand_function_call): Replace write_sp with
8734 TARGET_WRITE_SP.
8735 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8736 (sparc_pop_frame): Ditto.
8737
8738 2003-03-27 Andrew Cagney <cagney@redhat.com>
8739
8740 * NEWS: Mention removal of support for hppa*-*-bsd* and
8741 hppa*-*-osf* natives, and hppa*-*-pro* target.
8742 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8743 * config/pa/xm-pa.h: Obsolete file.
8744 * config/pa/xm-hppab.h: Obsolete file.
8745 * config/pa/nm-hppab.h: Obsolete file.
8746 * config/pa/tm-hppab.h: Obsolete file.
8747 * config/pa/tm-hppao.h: Obsolete file.
8748 * config/pa/nm-hppao.h: Obsolete file.
8749 * config/pa/tm-pro.h: Obsolete file.
8750 * config/pa/hppaosf.mt: Obsolete file.
8751 * config/pa/hppaosf.mh: Obsolete file.
8752 * config/pa/hppapro.mt: Obsolete file.
8753 * config/pa/hppabsd.mt: Obsolete file.
8754 * config/pa/hppabsd.mh: Obsolete file.
8755 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8756 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8757 hppa*-*-osf*.
8758
8759 2003-03-27 Andrew Cagney <cagney@redhat.com>
8760
8761 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8762 push_arguments. Don't set push_return_address or write_sp.
8763 (d10v_push_dummy_call): Replace d10v_push_arguments.
8764 (d10v_push_return_address, d10v_write_sp): Delete function,
8765 handled by push_dummy_call.
8766
8767 2003-03-26 Andrew Cagney <cagney@redhat.com>
8768
8769 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8770 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8771 regcache and dummy_addr parameters.
8772 * gdbarch.h, gdbarch.c: Re-generate.
8773 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8774 available; assume it will handle stack alignment and return
8775 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8776 legacy_push_arguments.
8777 (legacy_push_arguments): Rename default_push_arguments.
8778 * value.h (legacy_push_arguments): Rename default_push_arguments.
8779 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8780 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8781 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8782 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8783 * config/i386/tm-symmetry.h: Update.
8784 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8785 * x86-64-tdep.c (x86_64_init_abi): Update.
8786 * v850-tdep.c (v850_gdbarch_init): Update.
8787 * sparc-tdep.c (sparc_gdbarch_init): Update.
8788 * sh-tdep.c (sh_gdbarch_init): Update.
8789 * s390-tdep.c (s390_gdbarch_init): Update.
8790 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8791 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8792 * mips-tdep.c (mips_gdbarch_init): Update.
8793 * mcore-tdep.c (mcore_gdbarch_init): Update.
8794 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8795 * ia64-tdep.c (ia64_gdbarch_init): Update.
8796 * i386-tdep.c (i386_gdbarch_init): Update.
8797 * hppa-tdep.c (hppa_gdbarch_init): Update.
8798 * h8300-tdep.c (h8300_gdbarch_init): Update.
8799 * frv-tdep.c (frv_gdbarch_init): Update.
8800 * d10v-tdep.c (d10v_gdbarch_init): Update.
8801 * cris-tdep.c (cris_gdbarch_init): Update.
8802 * avr-tdep.c (avr_gdbarch_init): Update.
8803 * arm-tdep.c (arm_gdbarch_init): Update.
8804 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8805 * alpha-tdep.c (alpha_gdbarch_init): Update.
8806
8807 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8808
8809 * signals/signals.c (do_target_signal_to_host): Correct realtime
8810 signal range test.
8811
8812 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8813
8814 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8815 (struct sal_chain, map_catch_names): Remove.
8816 (catch_exception_command_1): Don't call
8817 handle_gnu_4_16_catch_command.
8818
8819 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8820
8821 From Mark Dettinger <dettinge@de.ibm.com>:
8822 * dwarf2cfi.c (read_2u): Increment pointer by two.
8823
8824 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8825
8826 * signals/signals.c: Fix typos in last change.
8827
8828 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8829
8830 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8831 not already defined. Use __SIGRTMIN if available.
8832 (target_signal_from_host): Remove SIGRTMIN block.
8833 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8834 the signal is within the realtime range.
8835
8836 2003-03-25 Adam Fedor <fedor@gnu.org>
8837
8838 * Makefile.in (infrun.o): Add $(language_h)
8839 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8840 for language specific trampolines.
8841 * language.h (struct language_defn): Add skip_trampoline.
8842 (skip_language_trampoline): Declare.
8843 * language.c (unk_lang_trampoline, skip_language_trampoline):
8844 New functions.
8845 (unknown_language_defn, auto_language_defn, local_language_defn):
8846 Add ukn_lang_trampoline.
8847 * ada-lang.c (ada_language_defn): Add NULL for language
8848 specific skip_trampoline.
8849 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8850 scm-lang.c: Likewise.
8851 * objc-lang.c (objc_skip_trampoline): New function.
8852 (objc_language_defn): Add objc_skip_trampoline.
8853
8854 2003-03-25 Andrew Cagney <cagney@redhat.com>
8855
8856 * frame.c (get_prev_frame): Delay validating a frame's ID -
8857 non-NULL, didn't go backwards - until an attempt to unwind it to
8858 the previous frame.
8859
8860 2003-03-25 Andrew Cagney <cagney@redhat.com>
8861
8862 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8863 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8864 * gdbarch.h, gdbarch.c: Re-generate.
8865 * config/sparc/tm-sparc.h
8866 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8867 * sparc-tdep.c (sparc_gdbarch_init): Set
8868 deprecated_extra_stack_alignment_needed.
8869 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8870 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8871 extra_stack_alignment_needed.
8872 * v850-tdep.c (v850_gdbarch_init): Ditto.
8873 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8874 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8875 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8876 * cris-tdep.c (cris_gdbarch_init): Ditto.
8877 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8878 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8879
8880 2003-03-25 Andrew Cagney <cagney@redhat.com>
8881
8882 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8883 STORE_STRUCT_RETURN.
8884 * gdbarch.h, gdbarch.c: Regenerate.
8885 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8886 (d10v_push_arguments): Set the struct return register.
8887 (d10v_gdbarch_init): Update.
8888 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8889 * x86-64-tdep.c (x86_64_init_abi): Update.
8890 * vax-tdep.c (vax_gdbarch_init): Update.
8891 * v850-tdep.c (v850_gdbarch_init): Update.
8892 * sparc-tdep.c (sparc_gdbarch_init): Update.
8893 * sh-tdep.c (sh_gdbarch_init): Update.
8894 * s390-tdep.c (s390_gdbarch_init): Update.
8895 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8896 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8897 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8898 * mips-tdep.c (mips_gdbarch_init): Update.
8899 * mcore-tdep.c (mcore_gdbarch_init): Update.
8900 * m68k-tdep.c (m68k_gdbarch_init): Update.
8901 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8902 * ia64-tdep.c (ia64_gdbarch_init): Update.
8903 * i386-tdep.c (i386_gdbarch_init): Update.
8904 * hppa-tdep.c (hppa_gdbarch_init): Update.
8905 * h8300-tdep.c (h8300_gdbarch_init): Update.
8906 * frv-tdep.c (frv_gdbarch_init): Update.
8907 * cris-tdep.c (cris_gdbarch_init): Update.
8908 * avr-tdep.c (avr_gdbarch_init): Update.
8909 * arm-tdep.c (arm_gdbarch_init): Update.
8910 * alpha-tdep.c (alpha_gdbarch_init): Update.
8911
8912 2003-03-25 Andrew Cagney <cagney@redhat.com>
8913
8914 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8915 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8916 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8917 * gdbarch.h, gdbarch.c: Regenerate.
8918 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8919 call_dummy_stack_adjust_p.
8920 * vax-tdep.c (vax_gdbarch_init): Ditto.
8921 * v850-tdep.c (v850_gdbarch_init): Ditto.
8922 * sh-tdep.c (sh_gdbarch_init): Ditto.
8923 * s390-tdep.c (s390_gdbarch_init): Ditto.
8924 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8925 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8926 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8927 * mips-tdep.c (mips_gdbarch_init): Ditto.
8928 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8929 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8930 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8931 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8932 * i386-tdep.c (i386_gdbarch_init): Ditto.
8933 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8934 * frv-tdep.c (frv_gdbarch_init): Ditto.
8935 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8936 * cris-tdep.c (cris_gdbarch_init): Ditto.
8937 * avr-tdep.c (avr_gdbarch_init): Ditto.
8938 * arm-tdep.c (arm_gdbarch_init): Ditto.
8939 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8940 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8941 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8942 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8943 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8944 call_dummy_stack_adjust_p.
8945 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8946 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8947 * sparc-tdep.c (sparc32_push_arguments): Update.
8948 * valops.c (hand_function_call): Update.
8949
8950 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8951
8952 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8953 set_gdbarch_char_signed.
8954
8955 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8956
8957 PR cli/548
8958 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8959
8960 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8961
8962 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8963 (_initialize_arm_tdep): Don't set tm_print_insn.
8964
8965 2003-03-24 Adam Fedor <fedor@gnu.org>
8966
8967 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8968 * objc-lang.h: Add multiple inclusion protection.
8969 (start_msglist, add_msglist, end_msglist): Additional declarations.
8970
8971 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8972
8973 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8974 value was renamed to ARM_FLOAT_SOFT_FPA.
8975
8976 2003-03-23 Andrew Cagney <cagney@redhat.com>
8977
8978 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8979 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8980 * gdbarch.h, gdbarch.c: Regenerate.
8981 * valops.c (hand_function_call): Update.
8982 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8983 * frame.c (legacy_saved_regs_this_id): Update.
8984 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8985 * dummy-frame.h: Update.
8986 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8987 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8988 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8989 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8990 * config/m68k/tm-sun3.h: Update.
8991 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8992 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8993 * x86-64-tdep.c (x86_64_init_abi): Update.
8994 * vax-tdep.c (vax_gdbarch_init): Update.
8995 * v850-tdep.c (v850_gdbarch_init): Update.
8996 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8997 * sh-tdep.c (sh_gdbarch_init): Update.
8998 * s390-tdep.c (s390_gdbarch_init): Update.
8999 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9000 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9001 (frame_get_saved_regs): Update.
9002 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9003 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9004 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9005 * mips-tdep.c (mips_gdbarch_init): Update.
9006 * mcore-tdep.c (mcore_gdbarch_init): Update.
9007 * m68k-tdep.c (m68k_gdbarch_init): Update.
9008 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9009 * ia64-tdep.c (ia64_gdbarch_init): Update.
9010 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9011 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9012 (i386_interix_back_one_frame): Update.
9013 * hppa-tdep.c (hppa_gdbarch_init): Update.
9014 (hppa_init_extra_frame_info): Update.
9015 * h8300-tdep.c (h8300_gdbarch_init): Update.
9016 * frv-tdep.c (frv_gdbarch_init): Update.
9017 * cris-tdep.c (cris_gdbarch_init): Update.
9018 * avr-tdep.c (avr_gdbarch_init): Update.
9019 * arm-tdep.c (arm_gdbarch_init): Update.
9020 * alpha-tdep.c (alpha_gdbarch_init): Update.
9021
9022 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9023
9024 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9025 (arm_get_fp_model): Declare.
9026 * arm-tdep.c (fp_model_strings): New string array.
9027 (arm_fp_model, current_fp_model): New variables.
9028 (arm_get_fp_model): New function.
9029 (arm_set_fp): New function.
9030 (set_fp_model_sfunc): New function.
9031 (show_fp_model): New function.
9032 (_initialize_arm_tdep): Add new command to set/show the FPU.
9033 (arm_extract_return_value): Use arm_get_fp_model.
9034 (arm_store_return_value): Likewise.
9035 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9036 to initialize the floating-point data types.
9037 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9038 model is FPA.
9039
9040 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9041
9042 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9043 the current setting of each value.
9044 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9045 new_set and new_show. Use add_setshow_cmd_full and
9046 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9047 commands and add new version as subcommands of "set/show arm".
9048
9049 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9050
9051 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9052 (set_arm_command, show_arm_command): New functions.
9053 (_initialize_arm_tdep): Add them.
9054 (num_disassembly_options): Renamed from num_flavor_options.
9055 (valid_disassembly_styles): Renamed from valid_flavors.
9056 (disassembly_style): Renamed from disassembly_flavor.
9057 (set_disassembly_style_sfunc): Renamed from
9058 set_disassembly_flavor_sfunc.
9059 (set_disassembly_style): Renamed from set_disassembly_flavor.
9060 (arm_othernames): Updated.
9061 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9062 command. Add "set/show arm disassembly" commands. Deprecate
9063 "othernames" command.
9064
9065 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9066
9067 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9068 (arm-tdep.o): Depend on elf_arm_h.
9069
9070 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9071
9072 * Makefile.in (coff_internal_h): Define.
9073 (arm-tdep.o): Update dependencies.
9074
9075 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9076
9077 * arm-tdep.c (prologue_cache): Delete.
9078 (check_prologue_cache, save_prologue_cache): Delete.
9079 (arm_scan_prologue): Don't check or update the prologue_cache.
9080 (arm_gdb_arch_init): Don't initialize it.
9081 (_initialize_arm_tdep): Likewise.
9082
9083 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9084
9085 * MAINTAINERS (tui): Maintainer of tui code.
9086
9087 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9088
9089 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9090 (i386-cygwin-tdep.o): Add dependencies.
9091 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9092 * i386-cygwin-tdep.c: New file.
9093 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9094 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9095
9096 2003-03-20 Andrew Cagney <cagney@redhat.com>
9097
9098 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9099 (handle_inferior_event): Remove code calling
9100 DYNAMIC_TRAMPOLINE_NEXTPC.
9101
9102 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9103 already has a full path.
9104
9105 * main.c (gdb_main): Return 1.
9106 (captured_main): Call error to report an invalid interpreter.
9107
9108 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9109 * alpha-osf1-tdep.c: Include "gdb_string.h".
9110
9111 2003-03-19 J. Brobecker <brobecker@gnat.com>
9112
9113 Continuing work to convert the hppa targets to multiarch partial.
9114
9115 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9116 method, now that hppa_push_dummy_frame has a conformant prototype.
9117 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9118 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9119 for the switch to multiarch partial.
9120
9121 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9122
9123 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9124 when iss is issNull.
9125
9126 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9127
9128 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9129 NUM_REGS bounds check.
9130
9131 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9132
9133 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9134 * mips-tdep.c (gdb_assert.h): Include.
9135 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9136 (mips_register_name): Handle integer registers explicitly. Add
9137 bounds checking.
9138 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9139 (mips_lsi33k_reg_names): Don't list integer registers; they're
9140 handled by mips_register_name() now.
9141 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9142 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9143 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9144 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9145 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9146
9147 2003-03-18 Andrew Cagney <cagney@redhat.com>
9148
9149 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9150 a void pointer.
9151 * gdbtypes.h (print_scalar_formatted): Update declaration.
9152 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9153
9154 2003-03-18 J. Brobecker <brobecker@gnat.com>
9155
9156 * infrun.c (observer.h): Add #include.
9157 (normal_stop): Add call to observer_notify_normal_stop.
9158 * Makefile.in (infrun.o): Add dependency on observer.h.
9159
9160 2003-03-18 J. Brobecker <brobecker@gnat.com>
9161
9162 Continuing work to convert the hppa targets to multiarch partial.
9163 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9164 parameter. Reformat comment.
9165 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9166 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9167 to match new profile.
9168
9169 2003-03-18 J. Brobecker <brobecker@gnat.com>
9170
9171 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9172 appear to be working in any case.
9173
9174 2003-03-18 J. Brobecker <brobecker@gnat.com>
9175
9176 * observer.c (observer_test_first_observer): New static variable.
9177 (observer_test_second_observer): Likewise.
9178 (observer_test_third_observer): Likewise.
9179 (observer_test_first_notification_function): New static function.
9180 (observer_test_second_notification_function): Likewise.
9181 (observer_test_third_notification_function): Likewise.
9182
9183 2003-03-17 J. Brobecker <brobecker@gnat.com>
9184
9185 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9186 * somsolib.c (gdb_assert.h): Likewise.
9187 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9188 (somsolib.o): Likewise.
9189
9190 2003-03-17 Andrew Cagney <cagney@redhat.com>
9191
9192 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9193 BFD. Simplify setting of di.endian.
9194
9195 2003-03-17 Andrew Cagney <cagney@redhat.com>
9196
9197 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9198 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9199
9200 From Elena Zannoni <ezannoni@redhat.com>
9201 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9202 vector and floating-point parameters.
9203 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9204 convention.
9205 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9206
9207 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9208
9209 * MAINTAINERS: Remove my name from several maintainership roles.
9210
9211 2003-03-17 Andrew Cagney <cagney@redhat.com>
9212
9213 Fix frame off-by-one bug.
9214 * frame-unwind.h (frame_this_id_ftype): Replace
9215 frame_unwind_id_ftype.
9216 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9217 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9218 with "prev_register".
9219 * frame-unwind.c (frame_unwind_find_by_pc): Return
9220 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9221 comment.
9222 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9223 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9224 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9225 (dummy_frame_unwind): Update.
9226 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9227 sentinel_frame_register_unwind.
9228 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9229 (sentinel_frame_unwinder): Update.
9230 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9231 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9232 * frame.c (create_sentinel_frame): Update. Initialize
9233 "prologue_cache" instead of "unwind_cache".
9234 (frame_register_unwind): Call this frame's prev_register with the
9235 next frame and this frame's prologue cache.
9236 (get_prev_frame): Simplify. Always call prev frame's this_id with
9237 this frame and prev frame's prologue cache. Document that this
9238 call is shifted one to the left when compared to the
9239 frame_register_unwind call.
9240 (legacy_saved_regs_prev_register): Replace
9241 frame_saved_regs_register_unwind.
9242 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9243 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9244 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9245 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9246 (d10v_frame_unwind): Update.
9247 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9248 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9249 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9250 "saved_regs" with "this_saved_regs".
9251
9252 2003-03-16 Andrew Cagney <cagney@redhat.com>
9253
9254 * frame.c (frame_pop): Don't call target_store_registers. Fix
9255 problem reported by Mark Kettenis.
9256
9257 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9258
9259 * i386-tdep.c (i386_register_type): Renamed from
9260 i386_register_virtual_type. Adjust function signature.
9261 (i386_gdbarch_init): Set register_type instead of
9262 deprecated_max_register_raw_size,
9263 deprecated_max_register_virtual_size and register_virtual_type.
9264
9265 2003-03-14 Andrew Cagney <cagney@redhat.com>
9266
9267 * frame.c (get_prev_frame): When a legacy frame, always call
9268 legacy_get_prev_frame. Simplify unwind code using assumption that
9269 the unwinder is new.
9270 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9271 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9272 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9273
9274 2003-03-14 Andrew Cagney <cagney@redhat.com>
9275
9276 * frame.c (get_saved_register): Delete function.
9277 * frame.h (get_saved_register): Delete declaration.
9278 * xstormy16-tdep.c: Update comment.
9279 * regcache.h: Update comments.
9280 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9281 get_saved_register and extract_address, use
9282 frame_read_unsigned_register.
9283 (sparc_frame_saved_pc): Ditto.
9284 (sparc_get_saved_register): Instead of get_saved_register, use
9285 frame_register.
9286 (sparc_pop_frame): Ditto.
9287 * findvar.c: Update comments.
9288 (value_of_register): Call frame_register instead of
9289 get_saved_register.
9290 (value_from_register): Ditto.
9291 * config/sparc/tm-sparc.h: Update comment.
9292 * breakpoint.c: Update comment.
9293
9294 2003-03-14 Andrew Cagney <cagney@redhat.com>
9295
9296 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9297 GET_SAVED_REGISTER.
9298 * gdbarch.h, gdbarch.c: Re-generate.
9299 * frame.h: Update comments.
9300 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9301 * x86-64-tdep.c (x86_64_init_abi): Update.
9302 * sparc-tdep.c (sparc_gdbarch_init): Update.
9303 * sh-tdep.c (sh_gdbarch_init): Update.
9304 * mips-tdep.c (mips_gdbarch_init): Update.
9305 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9306 * cris-tdep.c (cris_gdbarch_init): Update.
9307 * ia64-tdep.c (ia64_gdbarch_init): Update.
9308 * frame.c (frame_register): Update.
9309 (get_saved_register): Update.
9310 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9311
9312 2003-03-13 Andrew Cagney <cagney@redhat.com>
9313
9314 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9315 * gdbarch.h, gdbarch.c: Regenerate.
9316 * valops.c (hand_function_call): Update comment.
9317 * stack.c (return_command): Update comment.
9318 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9319 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9320 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9321 * x86-64-tdep.c (x86_64_init_abi): Update.
9322 * vax-tdep.c (vax_gdbarch_init): Update.
9323 * v850-tdep.c (v850_gdbarch_init): Update.
9324 * sparc-tdep.c (sparc_gdbarch_init): Update.
9325 * sh-tdep.c (sh_gdbarch_init): Update.
9326 * s390-tdep.c (s390_gdbarch_init): Update.
9327 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9328 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9329 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9330 * mips-tdep.c (mips_gdbarch_init): Update.
9331 * mcore-tdep.c (mcore_gdbarch_init): Update.
9332 * m68k-tdep.c (m68k_gdbarch_init): Update.
9333 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9334 * ia64-tdep.c (ia64_gdbarch_init): Update.
9335 * i386-tdep.c (i386_gdbarch_init): Update.
9336 * hppa-tdep.c (hppa_gdbarch_init): Update.
9337 * h8300-tdep.c (h8300_gdbarch_init): Update.
9338 * frv-tdep.c (frv_gdbarch_init): Update.
9339 * cris-tdep.c (cris_gdbarch_init): Update.
9340 * avr-tdep.c (avr_gdbarch_init): Update.
9341 * arm-tdep.c (arm_gdbarch_init): Update.
9342 * alpha-tdep.c (alpha_gdbarch_init): Update.
9343
9344 2003-03-13 Andrew Cagney <cagney@redhat.com>
9345
9346 * frame.c (legacy_frame_p): New function.
9347 (get_prev_frame): Use legacy_frame_p.
9348 * frame.h (legacy_frame_p): Declare.
9349
9350 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9351
9352 * MAINTAINERS (write after approval): Alphabetically
9353 listing corrected.
9354
9355 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9356
9357 * MAINTAINERS (write after approval): Add myself.
9358
9359 2003-03-12 Andrew Cagney <cagney@redhat.com>
9360
9361 * frame.c (get_prev_frame): Rename the frame parameter to
9362 "this_frame".
9363 (get_next_frame, legacy_get_prev_frame): Ditto.
9364
9365 2003-03-12 Andrew Cagney <cagney@redhat.com>
9366
9367 * frame.c (get_current_frame): Check target_has_registers before
9368 checking target_has_stack.
9369 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9370 instead of deprecated_selected_frame.
9371 * findvar.c (value_of_register): Pass "frame", not
9372 deprecated_selected_frame, to value_of_builtin_reg.
9373
9374 2003-03-12 Andrew Cagney <cagney@redhat.com>
9375
9376 * regcache.c (regcache_cooked_write_signed): New function.
9377 (regcache_cooked_write_unsigned): New function.
9378 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9379 (regcache_cooked_read_signed): Fix regnum in range assertion.
9380 * regcache.h (regcache_cooked_write_signed): Declare.
9381 (regcache_cooked_write_unsigned): Declare.
9382
9383 2003-03-12 Andrew Cagney <cagney@redhat.com>
9384
9385 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9386 * gdbarch.h, gdbarch.c: Re-generate.
9387 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9388 * x86-64-tdep.h: Update.
9389 * x86-64-tdep.c (x86_64_init_abi): Update.
9390 * v850-tdep.c (v850_gdbarch_init): Update.
9391 * sparc-tdep.c (sparc_gdbarch_init): Update.
9392 * sh-tdep.c (sh_gdbarch_init): Update.
9393 * s390-tdep.c (s390_gdbarch_init): Update.
9394 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9395 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9396 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9397 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9398 * mips-tdep.c (mips_gdbarch_init): Update.
9399 * mcore-tdep.c (mcore_gdbarch_init): Update.
9400 * m68k-tdep.c (m68k_gdbarch_init): Update.
9401 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9402 * ia64-tdep.c (ia64_gdbarch_init): Update.
9403 * i386-tdep.c (i386_gdbarch_init): Update.
9404 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9405 * hppa-tdep.c (hppa_gdbarch_init): Update.
9406 * h8300-tdep.c (h8300_gdbarch_init): Update.
9407 * frv-tdep.c (frv_gdbarch_init): Update.
9408 * cris-tdep.c (cris_gdbarch_init): Update.
9409 * avr-tdep.c (avr_gdbarch_init): Update.
9410 * arm-tdep.c (arm_gdbarch_init): Update.
9411 * alpha-tdep.c (alpha_gdbarch_init): Update.
9412 * sh-tdep.c (sh_init_extra_frame_info): Update.
9413 (sh64_init_extra_frame_info): Update.
9414 * ns32knbsd-nat.c (frame_num_args): Update.
9415 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9416 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9417 (xstormy16_frame_chain_valid): Update.
9418 * vax-tdep.c (vax_saved_pc_after_call): Update.
9419 * v850-tdep.c (v850_frame_chain): Update.
9420 (v850_pop_frame): Update.
9421 (v850_init_extra_frame_info): Update.
9422 * sparc-tdep.c (setup_arbitrary_frame): Update.
9423 * ns32k-tdep.c (umax_frame_num_args): Update.
9424 * s390-tdep.c (s390_pop_frame_regular): Update.
9425 * mn10300-tdep.c (mn10300_frame_chain): Update.
9426 (mn10300_pop_frame_regular): Update.
9427 (mn10300_init_extra_frame_info): Update.
9428 * mips-tdep.c (mips_init_frame_pc_first): Update.
9429 (mips_frame_chain): Update.
9430 (mips_pop_frame): Update.
9431 * mcore-tdep.c (mcore_frame_chain): Update.
9432 (mcore_pop_frame): Update.
9433 (mcore_init_extra_frame_info): Update.
9434 * arch-utils.c (init_frame_pc_default): Update.
9435 * m68k-tdep.c (isi_frame_num_args): Update.
9436 (delta68_frame_num_args): Update.
9437 (news_frame_num_args): Update.
9438 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9439 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9440 (alpha_frame_chain): Update.
9441 (alpha_pop_frame): Update.
9442 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9443 (hppa_init_extra_frame_info): Update.
9444 (hppa_frame_chain): Update.
9445 (hppa_frame_chain_valid): Update.
9446 * cris-tdep.c (cris_init_extra_frame_info): Update.
9447 * avr-tdep.c (avr_init_extra_frame_info): Update.
9448 * arm-tdep.c (arm_frame_chain_valid): Update.
9449 (arm_init_extra_frame_info): Update.
9450 (arm_pop_frame): Update.
9451 * frame.c (frame_pc_unwind): Update.
9452 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9453 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9454 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9455 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9456 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9457 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9458
9459 2003-03-12 Andrew Cagney <cagney@redhat.com>
9460
9461 Eliminate the need for POP_FRAME.
9462 * frame.c (do_frame_unwind_register): New function.
9463 (frame_pop): When no POP_FRAME, pop the frame using register
9464 unwind and a scratch regcache.
9465 (frame_saved_regs_pop): Delete function.
9466 (trad_frame_unwinder): Update.
9467 * d10v-tdep.c (d10v_frame_pop): Delete function.
9468 (d10v_frame_unwind): Update.
9469 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9470 (sentinel_frame_unwinder): Update.
9471 * dummy-frame.c (dummy_frame_pop): Delete function.
9472 (dummy_frame_unwind): Update.
9473 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9474 (struct frame_unwind): Update.
9475
9476 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9477
9478 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9479 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9480 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9481 Do range checks on register number obtained from debugging info.
9482 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9483 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9484 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9485 mapping function.
9486 (do_fp_register_row): Fix typo which caused double type to be
9487 used when attempting to unpack a float.
9488
9489 2003-03-11 J. Brobecker <brobecker@gnat.com>
9490
9491 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9492
9493 2003-03-11 Andrew Cagney <cagney@redhat.com>
9494
9495 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9496 frame. Problem found by Corinna Vinschen.
9497
9498 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9499
9500 * doublest.c (floatformat_from_length): Accept also
9501 the real size of 'long double' type.
9502
9503 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9504
9505 From Klee Dienes <kdienes@apple.com>:
9506 * breakpoint.c (bpstat_copy): Copy the command lines as well
9507 as the old value, to match what is freed in bpstat_clear.
9508
9509 2003-03-10 David Carlton <carlton@math.stanford.edu>
9510
9511 * minsyms.c (add_minsym_to_hash_table): Replace
9512 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9513 (compare_minimal_symbols, compact_minimal_symbols)
9514 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9515 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9516 of DEPRECATED_SYMBOL_MATCHES_NAME.
9517 (lookup_minimal_symbol_solib_trampoline): Ditto.
9518
9519 2003-03-10 Andrew Cagney <cagney@redhat.com>
9520
9521 * regcache.h (regcache_cooked_read_ftype): Define.
9522 (regcache_save, regcache_restore): Add a cooked_read parameter.
9523 * regcache.c (regcache_save, regcache_restore): Update.
9524 (do_cooked_read): New function.
9525 (regcache_cpy): Pass do_cooked_read to regcache_save and
9526 regcache_restore.
9527
9528 2003-03-10 Andrew Cagney <cagney@redhat.com>
9529
9530 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9531 * gdbarch.h, gdbarch.c: Re-generate.
9532 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9533 * x86-64-tdep.h: Update.
9534 * x86-64-tdep.c (x86_64_init_abi): Update.
9535 * v850-tdep.c (v850_gdbarch_init): Update.
9536 * sparc-tdep.c (sparc_gdbarch_init): Update.
9537 * sh-tdep.c (sh_gdbarch_init): Update.
9538 * s390-tdep.c (s390_gdbarch_init): Update.
9539 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9540 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9541 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9542 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9543 * mips-tdep.c (mips_gdbarch_init): Update.
9544 * mcore-tdep.c (mcore_gdbarch_init): Update.
9545 * m68k-tdep.c (m68k_gdbarch_init): Update.
9546 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9547 * ia64-tdep.c (ia64_gdbarch_init): Update.
9548 * i386-tdep.c (i386_gdbarch_init): Update.
9549 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9550 * hppa-tdep.c (hppa_gdbarch_init): Update.
9551 * h8300-tdep.c (h8300_gdbarch_init): Update.
9552 * frv-tdep.c (frv_gdbarch_init): Update.
9553 * cris-tdep.c (cris_gdbarch_init): Update.
9554 * avr-tdep.c (avr_gdbarch_init): Update.
9555 * arm-tdep.c (arm_gdbarch_init): Update.
9556 * alpha-tdep.c (alpha_gdbarch_init): Update.
9557 * sh-tdep.c (sh_init_extra_frame_info): Update.
9558 (sh64_init_extra_frame_info): Update.
9559 * ns32knbsd-nat.c (frame_num_args): Update.
9560 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9561 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9562 (xstormy16_frame_chain_valid): Update.
9563 * vax-tdep.c (vax_saved_pc_after_call): Update.
9564 * v850-tdep.c (v850_frame_chain): Update.
9565 (v850_pop_frame): Update.
9566 (v850_init_extra_frame_info): Update.
9567 * sparc-tdep.c (setup_arbitrary_frame): Update.
9568 * ns32k-tdep.c (umax_frame_num_args): Update.
9569 * s390-tdep.c (s390_pop_frame_regular): Update.
9570 * mn10300-tdep.c (mn10300_frame_chain): Update.
9571 (mn10300_pop_frame_regular): Update.
9572 (mn10300_init_extra_frame_info): Update.
9573 * mips-tdep.c (mips_init_frame_pc_first): Update.
9574 (mips_frame_chain): Update.
9575 (mips_pop_frame): Update.
9576 * mcore-tdep.c (mcore_frame_chain): Update.
9577 (mcore_pop_frame): Update.
9578 (mcore_init_extra_frame_info): Update.
9579 * arch-utils.c (init_frame_pc_default): Update.
9580 * m68k-tdep.c (isi_frame_num_args): Update.
9581 (delta68_frame_num_args): Update.
9582 (news_frame_num_args): Update.
9583 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9584 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9585 (alpha_frame_chain): Update.
9586 (alpha_pop_frame): Update.
9587 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9588 (hppa_init_extra_frame_info): Update.
9589 (hppa_frame_chain): Update.
9590 (hppa_frame_chain_valid): Update.
9591 * cris-tdep.c (cris_init_extra_frame_info): Update.
9592 * avr-tdep.c (avr_init_extra_frame_info): Update.
9593 * arm-tdep.c (arm_frame_chain_valid): Update.
9594 (arm_init_extra_frame_info): Update.
9595 (arm_pop_frame): Update.
9596 * frame.c (frame_pc_unwind): Update.
9597 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9598 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9599 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9600 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9601 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9602 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9603
9604 2003-03-10 Andrew Cagney <cagney@redhat.com>
9605
9606 * gdbarch.sh (gdbarch_unwind_pc): New method.
9607 * gdbarch.h, gdbarch.c: Regenerate.
9608 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9609 but use read_pc and FRAME_SAVED_PC as fall backs.
9610 (frame_saved_regs_pc_unwind): Delete function.
9611 (trad_frame_unwinder): Update.
9612 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9613 (struct frame_unwind): Update.
9614 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9615 (dummy_frame_unwind): Update.
9616 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9617 (sentinel_frame_unwinder): Update.
9618 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9619 (d10v_frame_unwind): Update.
9620 (d10v_unwind_pc): New function.
9621 (d10v_gdbarch_init): Set unwind_pc.
9622
9623 2003-03-10 Andrew Cagney <cagney@redhat.com>
9624
9625 * gdbarch.h: Re-generate.
9626
9627 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9628 PC.
9629 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9630 the PC register.
9631
9632 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9633
9634 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9635
9636 2003-03-08 Andrew Cagney <cagney@redhat.com>
9637
9638 * cli-out.c: Update copyright.
9639 (cli_out_data): Define typedef. Use instead of ui_out_data.
9640
9641 2003-03-08 Andrew Cagney <cagney@redhat.com>
9642
9643 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9644 the result.
9645
9646 2003-03-07 Andrew Cagney <cagney@redhat.com>
9647
9648 * gdbarch.sh: Don't generate two macro definitions when an
9649 undefined macro taking no arguments.
9650 * gdbarch.h: Regenerate.
9651
9652 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9653
9654 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9655 (x86_64_unwind_dummy_id): New functions.
9656 (x86_64_init_abi): Register these two new functions.
9657
9658 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9659
9660 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9661 (x86_64_skip_prologue): Move prologue detection to
9662 separate function.
9663 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9664
9665 2003-03-05 Andrew Cagney <cagney@redhat.com>
9666
9667 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9668 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9669 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9670 to use unwind_dummy_id when a dummy frame.
9671 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9672 predicate.
9673 * gdbarch.h, gdbarch.c: Regneerate.
9674
9675 2003-03-05 Andrew Cagney <cagney@redhat.com>
9676
9677 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9678 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9679 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9680 values.
9681
9682 2003-03-05 Andrew Cagney <cagney@redhat.com>
9683
9684 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9685 (struct d10v_unwind_cache): Delete field "frameless". Replace
9686 "next_addr" with "sp_offset". Add "r11_offset".
9687 (d10v_frame_unwind_cache): Update.
9688 (prologue_find_regs): Update. When "mv r11, sp", save the
9689 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9690 RN was saved in r11_offset.
9691
9692 2003-03-05 Andrew Cagney <cagney@redhat.com>
9693
9694 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9695 cached PC value in the next frame.
9696
9697 2003-03-05 Andrew Cagney <cagney@redhat.com>
9698
9699 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9700 "id_unwind_cache" with "id".
9701 (frame_id_unwind): Delete declaration.
9702 * frame.c (frame_id_unwind): Delete function.
9703 (get_prev_frame): Call the frame id unwind method directly. Store
9704 the returned next frame's ID value in NEXT_FRAME. Note that there
9705 is a problem with the wrong unwind ID being called with the wrong
9706 unwind cache.
9707
9708 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9709
9710 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9711
9712 2003-03-05 James Ingham <jingham@apple.com>
9713 Daniel Jacobowitz <drow@mvista.com>
9714
9715 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9716 (auto_cp_abi): New variable.
9717 (current_cp_abi, num_cp_abis): Make static.
9718 (CP_ABI_MAX): Define.
9719 (cp_abis): Turn into an array.
9720 (value_virtual_fn_field): Fix formatting.
9721 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9722 takes a pointer.
9723 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9724 (list_cp_abis, _initialize_cp_abi): New functions.
9725 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9726 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9727 switch_to_cp_abi. Update prototype for register_cp_abi.
9728 * Makefile.in (cp-abi.o): Update dependencies.
9729 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9730 instead of switch_to_cp_abi.
9731 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9732 register_cp_abi.
9733 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9734 register_cp_abi.
9735 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9736
9737 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9738
9739 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9740 * dwarf2loc.c: Include "regcache.h".
9741 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9742 register_size.
9743 * Makefile.in (dwarf2loc.o): Update dependencies.
9744
9745 2003-03-04 Theodore A. Roth <troth@openavr.org>
9746
9747 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9748 number of io registers reported by remote target is not a multiple of
9749 step.
9750
9751 2003-03-04 David Carlton <carlton@math.stanford.edu>
9752
9753 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9754 (lookup_symbol_aux_psymtabs): Update call to
9755 lookup_partial_symbol.
9756 (lookup_transparent_type, find_main_psymtab)
9757 (make_symbol_overload_list): Ditto.
9758
9759 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9760
9761 * MAINTAINERS (Write after approval): Update my email address.
9762
9763 2003-03-03 Andrew Cagney <cagney@redhat.com>
9764
9765 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9766 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9767 predicate. Replace MAX_REGISTER_RAW_SIZE.
9768 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9769 MAX_REGISTER_VIRTUAL_SIZE.
9770 * regcache.c (legacy_max_register_raw_size): New function.
9771 (legacy_max_register_virtual_size): New function.
9772 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9773 (MAX_REGISTER_RAW_SIZE): Define.
9774 (legacy_max_register_raw_size): Declare.
9775 (legacy_max_register_virtual_size): Declare.
9776 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9777 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9778 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9779 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9780 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9781 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9782 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9783 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9784 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9785 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9786 * vax-tdep.c (vax_gdbarch_init): Update.
9787 * v850-tdep.c (v850_gdbarch_init): Update.
9788 * sparc-tdep.c (sparc_gdbarch_init): Update.
9789 * sh-tdep.c (sh_gdbarch_init): Update.
9790 * s390-tdep.c (s390_gdbarch_init): Update.
9791 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9792 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9793 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9794 * mips-tdep.c (mips_gdbarch_init): Update.
9795 * mcore-tdep.c (mcore_gdbarch_init): Update.
9796 * m68k-tdep.c (m68k_gdbarch_init): Update.
9797 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9798 * ia64-tdep.c (ia64_gdbarch_init): Update.
9799 * i386-tdep.c (i386_gdbarch_init): Update.
9800 * hppa-tdep.c (hppa_gdbarch_init): Update.
9801 * h8300-tdep.c (h8300_gdbarch_init): Update.
9802 * frv-tdep.c (frv_gdbarch_init): Update.
9803 * cris-tdep.c (cris_gdbarch_init): Update.
9804 * avr-tdep.c (avr_gdbarch_init): Update.
9805 * arm-tdep.c (arm_gdbarch_init): Update.
9806 * alpha-tdep.c (alpha_gdbarch_init): Update.
9807 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9808 max_register_raw_size or max_register_virtual_size.
9809
9810 2003-03-03 David Carlton <carlton@math.stanford.edu>
9811
9812 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9813 SYMBOL_MATCHES_NAME, add comment.
9814 (SYMBOL_MATCHES_NATURAL_NAME): New.
9815 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9816 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9817 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9818 * symtab.c (lookup_partial_symbol): Use
9819 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9820 unhelpful comment.
9821 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9822 SYMBOL_MATCHES_NAME.
9823 Fix for PR c++/33.
9824
9825 2003-03-03 David Carlton <carlton@math.stanford.edu>
9826
9827 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9828 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9829 by regexp matching against SYMBOL_NATURAL_NAME.
9830
9831 2003-03-03 David Carlton <carlton@math.stanford.edu>
9832
9833 * linespec.c (find_method): Extract code into collect_methods.
9834 (collect_methods): New.
9835
9836 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9837
9838 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9839 get_frame_base.
9840
9841 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9842 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9843
9844 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9845
9846 * arch-utils.c (generic_register_byte): Fix to use the loop index
9847 and not regnum when summing the size of all registers up to regnum.
9848
9849 2003-03-01 Andrew Cagney <cagney@redhat.com>
9850
9851 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9852 FRAME_INIT_SAVED_REGS.
9853 * gdbarch.h, gdbarch.c: Regenerate.
9854 * stack.c (frame_info): Update.
9855 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9856 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9857 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9858 * ns32k-tdep.c (ns32k_pop_frame): Update.
9859 * mips-tdep.c (mips_pop_frame): Update.
9860 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9861 * ia64-tdep.c (ia64_frame_chain): Update.
9862 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9863 (ia64_frameless_function_invocation): Update.
9864 (ia64_init_extra_frame_info): Update.
9865 (ia64_pop_frame_regular): Update.
9866 * frame.h (struct frame_info): Update comment.
9867 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9868 * frame.c (frame_saved_regs_register_unwind): Update.
9869 (frame_saved_regs_register_unwind): Update.
9870 (deprecated_generic_get_saved_register): Update.
9871 * cris-tdep.c: Update comment.
9872 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9873 Rename macro.
9874 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9875 * x86-64-tdep.c (x86_64_init_abi): Update.
9876 * vax-tdep.c (vax_gdbarch_init): Update.
9877 * v850-tdep.c (v850_gdbarch_init): Update.
9878 * sparc-tdep.c (sparc_gdbarch_init): Update.
9879 * sh-tdep.c (sh_gdbarch_init): Update.
9880 * s390-tdep.c (s390_gdbarch_init): Update.
9881 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9882 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9883 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9884 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9885 * mips-tdep.c (mips_gdbarch_init): Update.
9886 * mcore-tdep.c (mcore_gdbarch_init): Update.
9887 * m68k-tdep.c (m68k_gdbarch_init): Update.
9888 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9889 * ia64-tdep.c (ia64_gdbarch_init): Update.
9890 * i386-tdep.c (i386_gdbarch_init): Update.
9891 * frv-tdep.c (frv_gdbarch_init): Update.
9892 * avr-tdep.c (avr_gdbarch_init): Update.
9893 * arm-tdep.c (arm_gdbarch_init): Update.
9894 * alpha-tdep.c (alpha_gdbarch_init): Update.
9895
9896 2003-03-01 Andrew Cagney <cagney@redhat.com>
9897
9898 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9899 option enum and switch. When no windows, set the interpreter to
9900 INTERP_CONSOLE.
9901
9902 2003-03-01 Andrew Cagney <cagney@redhat.com>
9903
9904 * main.c (captured_main): Replace magic option characters with an
9905 enum.
9906
9907 2003-03-01 Andrew Cagney <cagney@redhat.com>
9908
9909 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9910 INIT_EXTRA_FRAME_INFO.
9911 * gdbarch.h, gdbarch.c: Regenerate.
9912 * arm-tdep.c: Update comments.
9913 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9914 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9915 * frame.h, avr-tdep.c: Ditto.
9916 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9917 (create_new_frame, legacy_get_prev_frame): Ditto.
9918 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9919 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9920 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9921 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9922 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9923 * v850-tdep.c (v850_gdbarch_init): Ditto.
9924 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9925 * sh-tdep.c (sh_gdbarch_init): Ditto.
9926 * s390-tdep.c (s390_gdbarch_init): Ditto.
9927 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9928 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9929 * mips-tdep.c (mips_gdbarch_init): Ditto.
9930 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9931 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9932 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9933 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9934 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9935 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9936 * frv-tdep.c (frv_gdbarch_init): Ditto.
9937 * cris-tdep.c (cris_gdbarch_init): Ditto.
9938 * avr-tdep.c (avr_gdbarch_init): Ditto.
9939 * arm-tdep.c (arm_gdbarch_init): Ditto.
9940 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9941 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9942
9943 2003-03-01 Andrew Cagney <cagney@redhat.com>
9944
9945 * gdbarch.sh (register_type): New function with predicate.
9946 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9947 * gdbarch.h, gdbarch.c: Re-generate.
9948 * arch-utils.c (generic_register_byte): Use generic_register_size.
9949 (generic_register_size): When available, use
9950 gdbarch_register_type.
9951 * regcache.c (init_regcache_descr): When available, initialize the
9952 register type array using gdbarch_register_type. If the
9953 architecture supplies gdbarch_register_type, do not use the legacy
9954 regcache layout.
9955 * d10v-tdep.c (d10v_register_type): Replace
9956 d10v_register_virtual_type.
9957 (d10v_gdbarch_init): Set register_type instead of
9958 register_virtual_type.
9959
9960 2003-03-01 Andrew Cagney <cagney@redhat.com>
9961
9962 * Makefile.in (ax-gdb.o): Update dependencies.
9963 * ax-gdb.c: Include "regcache.h".
9964 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9965 * findvar.c (value_of_register): Ditto.
9966 * infcmd.c (default_print_registers_info): Ditto.
9967
9968 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9969
9970 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9971 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9972
9973 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9974
9975 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9976 of STREQ.
9977
9978 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9979
9980 * Makefile.in (dwarf2loc.o): Update dependencies.
9981 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9982 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9983 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9984 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9985 (locexpr_tracepoint_var_ref): New function.
9986 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9987
9988 2003-02-28 Andrew Cagney <cagney@redhat.com>
9989
9990 * regcache.c (register_size): New function.
9991 * regcache.h (register_size): Declare
9992 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9993 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9994
9995 2003-02-28 David Carlton <carlton@math.stanford.edu>
9996
9997 * linespec.c (decode_compound): Extract code into find_method.
9998 (find_method): New.
9999
10000 2003-02-28 J. Brobecker <brobecker@gnat.com>
10001
10002 * Makefile.in: Add rules to build and link in observer.o.
10003
10004 2003-02-27 J. Brobecker <brobecker@gnat.com>
10005
10006 * observer.c: Minor comments edits.
10007
10008 2003-02-27 J. Brobecker <brobecker@gnat.com>
10009
10010 * observer.h, observer.c: New file.
10011
10012 2003-02-27 Andrew Cagney <cagney@redhat.com>
10013
10014 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10015
10016 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10017
10018 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10019 (M6812_OP_STS_EXT): Likewise.
10020 (m6811_prologue): Use the above to recognize prologue.
10021 (m6812_prologue): Likewise.
10022
10023 2003-02-27 David Carlton <carlton@math.stanford.edu>
10024
10025 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10026 SYMBOL_PRINT_NAME.
10027 (compare_psymbols): Ditto.
10028 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10029
10030 2003-02-27 Michael Snyder <msnyder@redhat.com>
10031
10032 * f-lang.c (build_fortran_types): New function.
10033 (_initialize_f_language): Gdbarch-register built-in fortran types.
10034 * doublest.c (extract_floating): Fix warning text.
10035
10036 2003-02-27 Andrew Cagney <cagney@redhat.com>
10037
10038 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10039 predicate. Replaces PUSH_DUMMY_FRAME.
10040 * gdbarch.h, gdbarch.c: Regnerate.
10041 * valops.c (hand_function_call): Update. Call
10042 generic_push_dummy_frame directly.
10043 * vax-tdep.c (vax_gdbarch_init): Update.
10044 * sparc-tdep.c (sparc_gdbarch_init): Update.
10045 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10046 * m68k-tdep.c (m68k_gdbarch_init): Update.
10047 * hppa-tdep.c (hppa_gdbarch_init): Update.
10048 * alpha-tdep.c (alpha_gdbarch_init): Update.
10049 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10050 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10051 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10052 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10053 push_dummy_frame to generic_push_dummy_frame.
10054 * v850-tdep.c (v850_gdbarch_init): Ditto.
10055 * sh-tdep.c (sh_gdbarch_init): Ditto.
10056 * s390-tdep.c (s390_gdbarch_init): Ditto.
10057 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10058 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10059 * mips-tdep.c (mips_gdbarch_init): Ditto.
10060 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10061 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10062 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10063 * i386-tdep.c (i386_gdbarch_init): Ditto.
10064 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10065 * frv-tdep.c (frv_gdbarch_init): Ditto.
10066 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10067 * cris-tdep.c (cris_gdbarch_init): Ditto.
10068 * avr-tdep.c (avr_gdbarch_init): Ditto.
10069 * arm-tdep.c (arm_gdbarch_init): Ditto.
10070
10071 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10072
10073 * mips-tdep.c (show_mips_abi): New function.
10074 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10075 command ``show mips abi''.
10076
10077 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10078
10079 From Elena Zannoni <ezannoni@redhat.com>
10080 * dbxread.c (process_one_symbol): Only record line 0 if one or
10081 more sline entries have been seen for the function.
10082
10083 2003-02-26 Michael Chastain <mec@shout.net>
10084
10085 * configure: Regenerate with autoconf 000227.
10086
10087 2003-02-26 Michael Chastain <mec@shout.net>
10088
10089 Close PR build/660.
10090 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10091 for old libc5/glibc.
10092 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10093
10094 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10095
10096 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10097 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10098
10099 2003-02-26 Michael Chastain <mec@shout.net>
10100
10101 * configure.in: New variable HAVE_UINTPTR_T.
10102 * configure, config.in: Regenerated.
10103
10104 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10105
10106 Fix PR build/1097.
10107 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10108
10109 2003-02-25 Andrew Cagney <cagney@redhat.com>
10110
10111 * frame.c (get_prev_frame): Add comment on check for
10112 inside_entry_func. Only check for inside_entry_file when not a
10113 dummy and not a sentinel. Check that the new frame is not inner
10114 to the old frame.
10115
10116 2003-02-25 Andrew Cagney <cagney@redhat.com>
10117
10118 * frame.c (frame_debug): New variable.
10119 (_initialize_frame): Add "set/show debug frame" command.
10120 (get_prev_frame): When frame_debug, print reason why unwind
10121 failed.
10122
10123 2003-02-25 Michael Chastain <mec@shout.net>
10124
10125 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10126 to avoid uintptr_t definition problems.
10127
10128 2003-02-25 David Carlton <carlton@math.stanford.edu>
10129
10130 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10131 (SYMBOL_LINKAGE_NAME): Ditto.
10132 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10133 SYMBOL_LINKAGE_NAME.
10134 (struct general_symbol_info): Expand comment.
10135 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10136 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10137 (SYMBOL_MATCHES_REGEXP): Ditto.
10138 * symtab.c (symbol_natural_name): New function.
10139 * objfiles.h: Replace all uses of SYMBOL_NAME by
10140 DEPRECATED_SYMBOL_NAME.
10141 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10142 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10143 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10144 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10145 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10146 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10147 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10148 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10149 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10150 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10151 * ada-exp.y: Ditto.
10152 * ada-exp.y: Update copyright.
10153 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10154 * cp-valprint.c: Ditto.
10155
10156 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10157
10158 * infptrace.c (detach): Do not flag error if ptrace detach fails
10159 and errno is set to ESRCH.
10160
10161 2003-02-24 Andrew Cagney <cagney@redhat.com>
10162
10163 * infptrace.c (udot_info): Change type of udot_off to long. Use
10164 paddr when printing udot_off's value.
10165
10166 2003-02-24 David Carlton <carlton@math.stanford.edu>
10167
10168 * symtab.c (make_symbol_overload_list): Only read in partial
10169 symtabs containing a matching partial symbol.
10170
10171 2003-02-24 David Carlton <carlton@math.stanford.edu>
10172
10173 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10174 do the comparison, not strcmp.
10175 * symfile.c (compare_psymbols): Ditto.
10176 * defs.h: Declare strcmp_iw_ordered.
10177 * utils.c (strcmp_iw_ordered): New function.
10178
10179 2003-02-24 Jim Blandy <jimb@redhat.com>
10180
10181 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10182 support, shared libs): Remove my name from here, to better reflect
10183 reality.
10184
10185 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10186
10187 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10188 (target_ops): Add to_have_continuable_watchpoint.
10189 * target.c (update_current_target): Add INHERIT line for
10190 to_have_continuable_watchpoint.
10191 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10192 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10193 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10194 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10195
10196 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10197
10198 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10199 maintainership.
10200
10201 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10202
10203 * solib.c (solib_open): Call target defined search function after
10204 failing with solib-search-path.
10205 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10206 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10207
10208 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10209
10210 * MAINTAINERS: Add myself to Write After section.
10211
10212 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10213
10214 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10215
10216 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10217
10218 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10219 (m68hc11_add_reggroups): New function.
10220 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10221 (m68hc11_gdbarch_init): Install the reggroups.
10222 (_initialize_m68hc11_tdep): Initialize them.
10223
10224 2003-02-21 James E Wilson <wilson@tuliptree.org>
10225
10226 * MAINTAINERS: Update my email address.
10227
10228 2003-02-21 David Carlton <carlton@math.stanford.edu>
10229
10230 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10231
10232 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10233
10234 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10235 * symtab.h: Add opaque declarations of struct axs_value and
10236 struct agent_expr.
10237 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10238 (struct location_funcs): New type.
10239 (struct symbol): Add "loc" to aux_value.
10240 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10241 * dwarf2read.c: Include "dwarf2expr.h".
10242 (dwarf2_symbol_mark_computed): New function.
10243 (read_func_scope): Use it.
10244 (var_decode_location): New function.
10245 (new_symbol): Use it.
10246 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10247
10248 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10249 (dwarf2expr_h, dwarf2loc_h): New variables.
10250 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10251 (dwarf2expr.o, dwarf2loc.o): New rules.
10252 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10253 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10254 LOC_COMPUTED_ARG.
10255 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10256 * m2-exp.y (yylex): Likewise.
10257 * printcmd.c (address_info, print_frame_args): Likewise.
10258 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10259 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10260 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10261 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10262 * symtab.c (lookup_block_symbol): Likewise.
10263
10264 2003-02-20 Adam Fedor <fedor@gnu.org>
10265
10266 * symtab.h: Remove objc_specific struct
10267 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10268 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10269 Have language_objc use cplus_specific struct.
10270
10271 2003-02-20 Tom Tromey <tromey@redhat.com>
10272
10273 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10274 TYPE_NAME, when printing a String value. PR java/1075.
10275
10276 2003-02-20 Adam Fedor <fedor@gnu.org>
10277
10278 * objc-lang.h (find_methods): Remove declaration.
10279 * objc-lang.c (find_methods): Make static.
10280
10281 2003-02-20 Christopher Faylor <cgf@redhat.com>
10282
10283 * win32-nat.c (get_image_name): Check return value from
10284 ReadProcessMemory.
10285 (child_xfer_memory): Ditto.
10286
10287 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10288
10289 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10290 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10291 '${exec_prefix}' (in addition to the expansion thereof) as
10292 relocatable.
10293 * configure: Rebuilt.
10294
10295 2003-02-20 David Carlton <carlton@math.stanford.edu>
10296
10297 * symtab.c (search_symbols): Revert the search_symbols part of my
10298 2002-12-23 patch. Add comment.
10299
10300 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10301
10302 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10303 * dbxread.c (elfstab_build_psymtabs): Don't call
10304 install_minimal_symbols.
10305 (stabsect_build_psymtabs): Likewise.
10306 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10307 earlier.
10308 * somread.c (som_symfile_read): Call install_minimal_symbols
10309 and do_cleanups earlier.
10310 * nlmread.c (nlm_symfile_read): Likewise.
10311 * mdebugread.c (elfmdebug_build_psymtabs): Call
10312 install_minimal_symbols and make appropriate cleanups.
10313
10314 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10315
10316 * solib.c (reload_shared_libraries): New function.
10317 (_initialize_solib): Add callbacks for ``set solib-search-path''
10318 and ``set solib-absolute-prefix''.
10319
10320 2003-02-20 David Carlton <carlton@math.stanford.edu>
10321
10322 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10323 expand comment.
10324 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10325 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10326 * ada-typeprint.c (ada_typedef_print): Ditto.
10327 * ax-gdb.c (gen_var_ref): Ditto.
10328 * breakpoint.c (print_one_breakpoint): Ditto.
10329 * buildsym.c (finish_block): Ditto.
10330 * c-valprint.c (c_val_print): Ditto.
10331 * expprint.c (print_subexp): Ditto.
10332 * findvar.c (locate_var_value): Ditto.
10333 * infcmd.c (jump_command): Ditto.
10334 * linespec.c (decode_line_2, decode_compound): Ditto.
10335 * maint.c (maintenance_translate_address): Ditto.
10336 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10337 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10338 Ditto.
10339 * p-valprint.c (pascal_val_print): Ditto.
10340 * stabsread.c (define_symbol): Ditto.
10341 * stack.c (print_frame, frame_info, print_block_frame_locals)
10342 (print_frame_arg_vars, return_command): Ditto.
10343 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10344 * symmisc.c (print_symbol): Ditto.
10345 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10346 (compare_search_syms, print_symbol_info, print_msymbol_info)
10347 (rbreak_command): Ditto.
10348 * tracepoint.c (tracepoints_info): Ditto.
10349 * typeprint.c (typedef_print): Ditto.
10350 * valops.c (value_of_variable, hand_function_call): Ditto.
10351 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10352 * ada-typeprint.c: Update Copyright.
10353 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10354 * tracepoint.c, cli/cli-cmds.c: Ditto.
10355
10356 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10357
10358 * frame.c (generic_unwind_get_saved_register): Make non-static.
10359 * frame.h (generic_unwind_get_saved_register): Declare.
10360 * mips-tdep.c (read_next_frame_reg): Fetch register from
10361 current regcache when frame is NULL.
10362 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10363 that must be NULL.
10364 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10365 instead of frame_register_unwind().
10366
10367 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10368
10369 * remote-sim.c (gdbsim_insert_breakpoint)
10370 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10371 code.
10372
10373 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10374
10375 * remote.c (_initialize_remote): Add commands "set/show remote
10376 hardware-watchpoint-limit" and "set/show remote
10377 hardware-breakpoint-limit".
10378 (remote_hw_watchpoint_limit): Initialize to -1.
10379 (remote_hw_breakpoint_limit): Ditto.
10380 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10381
10382 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10383
10384 * coff-pe-read.c: New file - support reading of minimal symbols from a
10385 portable executable using the export table.
10386 * coff-pe-read.h: New file.
10387 * coffread.c: Include coff-pe-read.h.
10388 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10389 debugging symbols found.
10390 * Makefile.in (SFILES): Add coff-pe-read.o.
10391 (coff_pe_read_h): Define.
10392 (COMMON_OBS): Add coff-pe-read.o.
10393 (coffread.o): Add coff_pe_read_h dependency.
10394 (coff-pe-read.o): New target.
10395
10396 2003-02-19 David Carlton <carlton@math.stanford.edu>
10397
10398 * Makefile.in (SFILES): Add block.c.
10399 (block_h): New.
10400 (COMMON_OBS): Add block.o.
10401 (block.o): New.
10402 (x86-64-tdep.o): Add $(block_h).
10403 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10404 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10405 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10406 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10407 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10408 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10409 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10410 * value.h: Add opaque declaration for struct block.
10411 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10412 * ada-lang.h: Ditto.
10413 * x86-64-tdep.c: #include "block.h"
10414 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10415 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10416 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10417 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10418 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10419 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10420 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10421 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10422 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10423 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10424 * symtab.c (block_function): Ditto.
10425 (contained_in): Ditto.
10426 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10427 block.h. Add opaque declaration for struct block.
10428 * symtab.h: Move block_function and contained_in declarations to
10429 block.h. Add opaque declarations for struct block, struct
10430 blockvector.
10431 (struct block): Move to block.h.
10432 (struct blockvector): Ditto.
10433 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10434 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10435 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10436 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10437 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10438 Ditto.
10439 * block.c: New file.
10440 * block.h: New file.
10441
10442 2003-02-19 Theodore A. Roth <troth@openavr.org>
10443
10444 * avr-tdep.c (avr_extract_return_value): Remove function.
10445 (avr_store_return_value): Remove function.
10446 (avr_extract_struct_value_address): Remove function.
10447 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10448
10449 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10450
10451 * rs6000-tdep.c: Include "gdb_assert.h".
10452 (registers_e500): Add "acc" and "spefscr".
10453 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10454 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10455 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10456 really is "r0".
10457 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10458
10459 2003-02-18 Keith Seitz <keiths@redhat.com>
10460
10461 * Makefile.in: Add gdbtk-interps.c.
10462
10463 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10464
10465 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10466 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10467
10468 2003-02-18 Andrew Cagney <cagney@redhat.com>
10469
10470 * symtab.h (struct objfile): Add opaque declaration.
10471
10472 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10473
10474 From Jim Ingham <jingham@apple.com>:
10475 * dbxread.c (process_one_symbol): Use last_function_start rather
10476 than function_start_offset to find the real beginning of the
10477 current function. The latter is just the text section offset on
10478 some systems, the former is always the real function start.
10479
10480 2003-02-17 Andrew Cagney <cagney@redhat.com>
10481
10482 * configure.in: Revert ${target} != ${host}.
10483
10484 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10485
10486 * configure.in (Makefile): Use the test ${target} != ${host},
10487 instead of the absence of the "nm.h" file, to determine of the
10488 configuration non-native.
10489 * configure: Regenerate.
10490
10491 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10492
10493 From Brian Ford <ford@vss.fsi.com>
10494
10495 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10496 conditionalize tui_active test.
10497 (lookup_cmd_1): Ditto.
10498
10499 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10500
10501 * configure.in: Add check for _etext.
10502 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10503 available.
10504 * config.in, configure: regenerated.
10505
10506 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10507
10508 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10509
10510 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10511
10512 * main.c (tui_version): Delete variable.
10513 (captured_main): When --tui, set interpreter_p to "tui" instead of
10514 enabling tui_version.
10515 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10516 tui_version.
10517 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10518 * cli/cli-cmds.c (disassemble_command): Ditto.
10519 * defs.h (tui_version): Delete declaration.
10520 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10521 (tui-interp.o): Add rules.
10522 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10523
10524 2003-02-14 Christopher Faylor <cgf@redhat.com>
10525
10526 * win32-nat.c (register_loaded_dll): Correctly set address range for
10527 just-loaded dll.
10528
10529 2003-02-12 Jason Molenda (jmolenda@apple.com)
10530
10531 * symmisc.c (print_objfile_statistics): Include information about
10532 the number of psymtabs and symtabs in each object file.
10533
10534 2003-02-13 Keith R Seitz <keiths@redhat.com>
10535
10536 * main.h (struct captured_main_args): Add interpreter_p.
10537 * main.c (captured_main): Initialize interpreter_p from context.
10538 * gdb.c (main): Set interpreter_p argument.
10539 * Makefile.in (gdb.o): Add dependency for interps.h.
10540
10541 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10542
10543 * event-top.c (cli_command_loop): Delete declaration.
10544 (_initialize_event_loop): Delete function setting event_loop_hook.
10545 * event-top.h (cli_command_loop): Declare. Update copyright.
10546 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10547 * interps.c (current_interp_command_loop): When event_loop_p, call
10548 cli_command_loop.
10549
10550 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10551
10552 * interps.h (interp_command_loop_ftype): Change return type to
10553 void.
10554
10555 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10556
10557 * x86-64-tdep.c (x86_64_extract_return_value)
10558 (x86_64_store_return_value): Use regcache instead of regbuf.
10559 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10560 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10561
10562 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10563
10564 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10565 * aclocal.m4: Regenerate.
10566 * configure: Regenerate.
10567
10568 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10569 TCL_LD_SEARCH_FLAGS.
10570
10571 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10572
10573 * dwarf2cfi.c: Reindented.
10574
10575 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10576
10577 * interps.c (clear_interpreter_hooks): Convert function definition
10578 to ISO C.
10579
10580 2003-02-07 David Carlton <carlton@math.stanford.edu>
10581
10582 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10583
10584 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10585
10586 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10587 (struct type): ...to here.
10588 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10589 field.
10590 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10591 (replace_type): Set length on all type variants for a given type.
10592
10593 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10594
10595 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10596 <sys/stat.h>.
10597 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10598
10599 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10600
10601 * Makefile.in (symm-nat.o): Update dependencies.
10602 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10603 (lynx-nat.o, ia64-linux-nat.): Ditto.
10604 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10605 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10606 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10607
10608 * Makefile.in (inflow_h): Define.
10609 (procfs.o, inflow.o, procfs.o): Update dependencies.
10610 * inftarg.c (child_stop): Delete extern declaration of
10611 inferior_process_group. Include "inflow.h".
10612 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10613 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10614 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10615 (our_process_group, inferior_process_group): Extern declarations.
10616
10617 * procfs.c: Include "gdb_assert.h".
10618
10619 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10620 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10621 * jv-typeprint.c (java_type_print_base): Ditto.
10622 * typeprint.c (typedef_print): Eliminate STREQ.
10623 * cli/cli-script.c (define_command, define_command): Ditto.
10624 * main.c (captured_main): Ditto.
10625 * values.c (lookup_internalvar): Ditto.
10626 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10627 within `if' conditional.
10628 * linespec.c (decode_line_2): Ditto.
10629 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10630 (bfd_openw_with_cleanup): Ditto.
10631
10632 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10633
10634 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10635 legacy_extract_return_value and store_return_value to
10636 legacy_return_value.
10637
10638 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10639
10640 * win32-nat.c (get_relocated_section_addrs): New function. Find
10641 section load addresses for symbol handling in relocated DLLs.
10642 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10643
10644 2003-02-05 Fred Fish <fnf@intrinsity.com>
10645
10646 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10647 '=' and '!='.
10648 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10649 with '&' and '=='.
10650 (angel_RDI_info): Ditto.
10651 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10652 with '&' and '!='.
10653 (threads_continue_all_with_signals): Ditto.
10654
10655 2003-02-05 Jim Ingham <jingham@apple.com>
10656 Keith Seitz <keiths@redhat.com>
10657 Elena Zannoni <ezannoni@redhat.com>
10658 Andrew Cagney <ac131313@redhat.com>
10659
10660 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10661 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10662 (SUBDIR_MI_OBS): Add "mi-interp.o".
10663 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10664 (SFILES): Add "interps.c".
10665 (COMMON_OBS): Add "interps.o".
10666 (interps_h, mi_main_h): Define.
10667 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10668 (mi-main.o, main.o, event-top.o): Update dependencies.
10669 * cli/cli-interp.c: New file.
10670 * interps.h, interps.c: New files.
10671 * top.c: (gdb_init): Don't install the default interpreter, handed
10672 by captured_main.
10673 * main.c: Include "interps.h".
10674 (interpreter_p): Note that it should malloc'ed.
10675 (captured_command_loop): Call current_interp_command_loop.
10676 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10677 xfree and xstrdup when updating interpreter_p. Install the
10678 default interpreter. Add hack to stop mi1's copyright notice
10679 being encoded.
10680 * event-top.h (gdb_setup_readline): Declare.
10681 (gdb_disable_readline): Declare.
10682 * event-top.c: Include "interps.h".
10683 (display_gdb_prompt): Call current_interp_display_prompt_p.
10684 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10685 gdb_stdlog, and gdb_stdtarg.
10686 (_initialize_event_loop): Don't call gdb_setup_readline.
10687 * cli-out.c (cli_out_set_stream): New function.
10688 * cli-out.h (cli_out_set_stream): Declare.
10689
10690 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10691
10692 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10693 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10694 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10695 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10696 config/i386/i386v42mp.mt: Removed.
10697
10698 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10699
10700 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10701 GDB_OSABI_SOLARIS.
10702
10703 2003-02-05 Michael Chastain <mec@shout.net>
10704
10705 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10706 2.12.1 and earlier versions.
10707
10708 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10709
10710 Remove orphaned hosts, targets and files.
10711 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10712 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10713 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10714 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10715 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10716 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10717 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10718 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10719 * config/sparc/tm-sp64sim.h: Delete.
10720 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10721 hosts.
10722 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10723 mips*-dec-mach3* targets.
10724
10725 2003-02-04 Michael Chastain <mec@shout.net>
10726
10727 * NEWS: Fix typo: sepcifying -> specifying.
10728
10729 2003-02-04 Michael Chastain <mec@shout.net>
10730
10731 * dwarfread.c: Add documentation on the state of dwarf-1,
10732 looking towards obsoletion.
10733
10734 2003-02-03 Michael Chastain <mec@shout.net>
10735
10736 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10737 gdb/testsuite/gdb.c++/pr-1023.exp.
10738
10739 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10740
10741 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10742 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10743
10744 * utils.c (init_page_info): Delete reference to MPW in comments.
10745 * main.c (captured_main): Delete #ifdef MPW.
10746
10747 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10748
10749 * NEWS: Note that the m32r-*-elf* is obsolete.
10750 * monitor.c (monitor_expect): Obsolete reference to m32r.
10751 * configure.tgt: Mark m32r-*-elf* as obsolete.
10752 * MAINTAINERS: Mark m32k as obsolete.
10753 * m32r-rom.c: Obsolete file.
10754 * config/m32r/m32r.mt: Obsolete file.
10755 * config/m32r/tm-m32r.h: Obsolete file.
10756 * m32r-stub.c: Obsolete file.
10757 * m32r-tdep.c: Obsolete file.
10758
10759 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10760
10761 * NEWS: Mention that the z8k-zilog-none is obsolete.
10762 * MAINTAINERS: Mark z8k as obsolete.
10763 * configure.tgt: Obsolete the z8k-*-coff* target.
10764 * config/z8k/z8k.mt: Obsolete file.
10765 * config/z8k/tm-z8k.h: Obsolete file.
10766 * z8k-tdep.c: Obsolete file.
10767
10768 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10769
10770 * NEWS: Mention that the mn10200-elf is obsolete.
10771 * configure.tgt: Obsolete mn10200-*-* target.
10772 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10773 mention that the mn10200 is obsolete.
10774 * breakpoint.h: Ditto.
10775 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10776 * config/mn10200/mn10200.mt: Obsolete file.
10777 * config/mn10200/tm-mn10200.h: Obsolete file.
10778 * mn10200-tdep.c: Obsolete file.
10779
10780 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10781
10782 * MAINTAINERS: Mark h8500 as obsolete.
10783 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10784 * findvar.c (value_from_register): Ditto.
10785 * h8500-tdep.c: Mark file as obsolete.
10786 * config/h8500/h8500.mt: Ditto.
10787 * config/h8500/tm-h8500.h: Ditto.
10788 * NEWS: Mention that h8500 is obsolete.
10789
10790 2003-02-04 David Carlton <carlton@math.stanford.edu>
10791
10792 * objfiles.c (allocate_objfile): Always set name. Add comment at
10793 start of function.
10794 * jv-lang.c (get_dynamics_objfile): Add comment.
10795
10796 2003-02-04 David Carlton <carlton@math.stanford.edu>
10797
10798 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10799 * printcmd.c (build_address_symbolic): Replace uses of
10800 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10801 SYMBOL_NAME, and asm_demangle.
10802 Update copyright.
10803
10804 2003-02-04 David Carlton <carlton@math.stanford.edu>
10805
10806 * linespec.c (decode_compound): Extract code into
10807 lookup_prefix_sym.
10808 (lookup_prefix_sym): New function.
10809
10810 2003-02-04 David Carlton <carlton@math.stanford.edu>
10811
10812 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10813 FLOAT_COERCION_BADNESS.
10814 * gdbtypes.c (rank_one_type): Replace all uses of
10815 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10816
10817 2003-02-04 Jim Blandy <jimb@redhat.com>
10818
10819 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10820 section, let dwarf_macinfo_section point to it, not
10821 dwarf_loc_section.
10822
10823 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10824
10825 Pointed out by Anton Blanchard <anton@samba.org>.
10826 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10827 (ppc_linux_at_sigtramp_return_path): Use it.
10828
10829 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10830
10831 * defs.h (streq): Add prototype.
10832 * utils.c (streq): New function.
10833
10834 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10835 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10836 * mdebugread.c (new_symbol): Likewise.
10837 * stabsread.c (define_symbol): Likewise.
10838 * coffread.c (process_coff_symbol): Likewise.
10839 * dwarfread.c (new_symbol): Likewise.
10840
10841 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10842 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10843 here.
10844 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10845 SYMBOL_INIT_DEMANGLED_NAME.
10846 * objfiles.c: Include "hashtab.h".
10847 (allocate_objfile): Call htab_set_functions_ex for the
10848 demangled_names_hash.
10849 (free_objfile): Call htab_delete for the demangled_names_hash.
10850 * objfiles.h (struct htab): Add declaration.
10851 (struct objfile): Add demangled_names_hash.
10852 * symfile.c: Include "hashtab.h".
10853 (reread_symbols): Call htab_delete for the demangled_names_hash.
10854 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10855 SYMBOL_NAME in the bcache.
10856 * symtab.c: Include "hashtab.h". Update comments.
10857 (create_demangled_names_hash, symbol_set_names): New functions.
10858 (symbol_find_demangled_name): New function, broken out from
10859 symbol_init_demangled_names.
10860 (symbol_init_demangled_names): Use it.
10861 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10862 (SYMBOL_SET_NAMES): New macro.
10863 (symbol_set_names): Add prototype.
10864
10865 2003-02-03 Jim Blandy <jimb@redhat.com>
10866
10867 Use a single, consistent representation for an empty minimal
10868 symbol table in an objfile.
10869 * objfiles.c (terminate_minimal_symbol_table): New function.
10870 (allocate_objfile): Call it.
10871 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10872 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10873 non-NULL.
10874 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10875 objfile has minimal symbols, compare minimal_symbol_count to zero,
10876 instead of comparing msymbols with NULL.
10877 * objfiles.c (have_minimal_symbols): Same.
10878 * solib-sunos.c (solib_add_common_symbols): Call
10879 terminate_minimal_symbol_table.
10880 * symfile.c (reread_symbols): Same.
10881
10882 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10883
10884 * s390-tdep.c (s390_address_class_type_flags)
10885 (s390_address_class_type_flags_to_name)
10886 (s390_address_class_name_to_type_flags): New functions.
10887 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10888 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10889
10890 2003-02-03 Michael Snyder <msnyder@redhat.com>
10891
10892 * arm-tdep.c: Fix spell-o in comment.
10893
10894 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10895
10896 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10897 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10898 error messages to contain BFD filename.
10899
10900 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10901
10902 Fix PR gdb/742 gdb/743 gdb/877
10903 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10904 (do_mixed_source_and_assembly): Use
10905 make_cleanup_ui_out_tuple_begin_end and
10906 make_cleanup_ui_out_tuple_begin_end.
10907 (do_mixed_source_and_assembly): Ditto.
10908 * thread.c (do_captured_list_thread_ids): Ditto.
10909 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10910 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10911 ui_out_tuple_end): Delete prototypes.
10912 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10913 ui_out_list_end, ui_out_tuple_end): Delete.
10914
10915 From Kevin Buettner <kevinb@redhat.com>:
10916 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10917 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10918 (do_cleanup_table_end): New functions.
10919 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10920 Use cleanups to invoke_ui_out_tuple_end().
10921 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10922 * cli/cli-setshow.c (cmd_show_list): Use
10923 make_cleanup_ui_out_tuple_begin_end.
10924
10925 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10926
10927 * frame.c (frame_unwind_register): New function.
10928 (frame_unwind_unsigned_register): Use.
10929 (frame_unwind_signed_register): Use.
10930 (frame_read_register): New function.
10931 * frame.h (frame_unwind_register): Declare.
10932 (frame_read_register): Declare.
10933
10934 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10935 and frame_unwind_register instead of read_memory, write_register
10936 and deprecated_write_register_bytes.
10937
10938 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10939
10940 * frame.h: Note that namelen can be negative.
10941 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10942 NAME's length.
10943
10944 * NEWS: Mention that the d10v's `regs' command is deprecated.
10945 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10946 (d10v_print_registers_info): New function.
10947 (show_regs): Call d10v_print_registers_info.
10948 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10949
10950 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10951
10952 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10953 lost in the previous patch.
10954
10955 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10956
10957 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10958 * stack.c (print_frame_info_base): Output complete FRAME tuple
10959 for synthesized frames.
10960
10961 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10962
10963 * mips-nat.c (zerobuf): Delete.
10964 (fetch_inferior_registers): Alloc local zerobuf.
10965 (fetch_core_registers): Alloc local zerobuf.
10966 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10967 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10968 * thread-db.c (thread_db_store_registers): Ditto.
10969 * sh-tdep.c (sh_do_register): Ditto.
10970 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10971 * remote-sim.c (gdbsim_store_register): Ditto.
10972 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10973 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10974 * monitor.c (monitor_supply_register): Ditto.
10975 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10976 * mips-nat.c (fetch_inferior_registers): Ditto.
10977 * m68klinux-nat.c (fetch_register): Ditto.
10978 * lynx-nat.c (fetch_inferior_registers): Ditto.
10979 (fetch_inferior_registers): Ditto.
10980 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10981 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10982 (hpux_thread_store_registers): Ditto.
10983 * hppah-nat.c (fetch_register): Ditto.
10984 * hppab-nat.c (fetch_register): Ditto.
10985 * hppa-tdep.c (pa_register_look_aside): Ditto.
10986 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10987 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10988
10989 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10990
10991 * gdbarch.sh: Explictly specify all method levels. When a
10992 variable with an empty level, provide a non-multi-arch default.
10993 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10994 * gdbarch.h: Re-generate.
10995 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10996 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10997
10998 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10999
11000 * defs.h (host_pointer_to_address): Delete declaration.
11001 (address_to_host_pointer): Delete declaration.
11002 * utils.c (host_pointer_to_address): Delete function.
11003 (address_to_host_pointer): Delete function.
11004 * procfs.c (procfs_address_to_host_pointer): New function.
11005 * procfs.c (proc_set_watchpoint): Use.
11006 (procfs_can_use_hw_breakpoint): Update comments.
11007 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11008 (som_solib_add): Use.
11009 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11010 * hppa-tdep.c (unwind_command): Use.
11011
11012 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11013
11014 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11015 strlen d_name.
11016
11017 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11018 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11019 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11020 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11021 (define_symbol): Update.
11022 * symfile.c (generic_load): Remove references to nindy.
11023 * symtab.c: Remove references to nindy.
11024
11025 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11026
11027 * infcmd.c (print_float_info): Delete code conditional on
11028 FLOAT_INFO.
11029 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11030 * config/m68k/nm-apollo68b.h: Ditto.
11031 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11032 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11033 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11034
11035 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11036
11037 * config/i386/tm-i386os9k.h: Removed.
11038
11039 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11040 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11041 they're identical to i[3456]86-*-sysv* now.
11042 * config/i386/i386v32.mh: Removed.
11043 * config/i386/xm-i386v32.h: Removed.
11044 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11045
11046 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11047
11048 * config/i386/i386dgux.mh: Removed.
11049 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11050
11051 * configure.in: Fix typo.
11052 * configure: Regenerated.
11053
11054 2003-01-31 David Carlton <carlton@math.stanford.edu>
11055
11056 * dwarf2read.c (dwarf2_locate_sections): Set
11057 dwarf_ranges_section.
11058
11059 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11060
11061 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11062 * utils.c: Update comments documenting legitimate uses of PTR.
11063
11064 * utils.c: Re-indent.
11065
11066 * config/djgpp/fnchange.lst: Delete nindy files.
11067 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11068 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11069 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11070 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11071 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11072 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11073 * Makefile.in (init.c): Remove nindy references.
11074 (saber_gdb): Delete rule.
11075 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11076 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11077 and a68v-nat.c.
11078 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11079 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11080 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11081 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11082 nindy-share/stop.h.
11083 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11084 * saber.suppress: Delete file.
11085
11086 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11087
11088 * dbxread.c (stabs_data): New static variable.
11089 (fill_symbuf): Support an in-memory buffer for stabs data.
11090 (stabs_seek): New function.
11091 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11092 (read_ofile_symtab): Use stabs_seek.
11093 (elfstab_build_psymtabs): Take an asection* instead of
11094 an offset and size. Relocate the stabs data if necessary.
11095 Save the section* for dbx_psymtab_to_symtab.
11096 * dwarf2read.c: Add section variables for each debug section.
11097 (dwarf2_locate_sections): Fill them in.
11098 (dwarf2_read_section): Take an asection* argument.
11099 Relocate the section contents if necessary.
11100 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11101 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11102 it to dwarf2_read_section.
11103 (dwarf2_build_frame_info): Update callers.
11104 * elfread.c (elf_symfile_read): Update call to
11105 elfstab_build_psymtabs.
11106 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11107 (DBX_STAB_SECTION): New macro.
11108 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11109 * symfile.c (symfile_dummy_outputs): New function.
11110 (symfile_relocate_debug_section): New function.
11111 * symfile.h (symfile_relocate_debug_section): Add prototype.
11112
11113 2003-01-31 Richard Henderson <rth@redhat.com>
11114
11115 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11116 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11117 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11118 * alpha-tdep.c (alpha_register_name): Add "unique".
11119 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11120 (ALPHA_UNIQUE_REGNUM): New.
11121 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11122
11123 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11124
11125 * README: Remove reference to Ericsson 1800 monitor.
11126 * Makefile.in (remote-es.o): Delete rule.
11127 (ALLDEPFILES): Delete remote-es.c.
11128 * remote-es.c: Delete file.
11129 * config/m68k/es1800.mt: Delete file.
11130 * config/djgpp/fnchange.lst: Update.
11131 * configure.tgt: Delete m68*-ericsson-* target.
11132
11133 2003-01-31 Adam Fedor <fedor@gnu.org>
11134
11135 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11136 Remove duplicate/shadowing variable of same name.
11137
11138 2003-01-30 Jim Blandy <jimb@redhat.com>
11139
11140 * symfile.c (find_separate_debug_file): Assert that the objfile's
11141 directory name we compute ends with a slash, and then assume that
11142 that's so everywhere we use it.
11143
11144 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11145
11146 * valops.c (value_assign): Flush frame cache after stores to memory
11147 also.
11148
11149 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11150
11151 * Makefile.in (mon960-rom.o): Delete rule.
11152 * mon960-rom.c: Delete file.
11153
11154 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11155
11156 * d10v-tdep.c: Include "frame-unwind.h".
11157 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11158 list.
11159 (next_addr, uses_frame): Delete.
11160 (struct d10v_unwind_cache): Define.
11161 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11162 Use info instead of next_addr and uses_frame globals.
11163 (d10v_frame_init_saved_regs): Delete function.
11164 (d10v_init_extra_frame_info): Delete function.
11165 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11166 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11167 init_frame_pc or frame_saved_pc.
11168 (d10v_pop_frame): Delete function.
11169 (do_d10v_pop_frame): Delete function.
11170 (d10v_frame_chain): Delete function.
11171 (d10v_frame_chain_valid): Delete function.
11172 (d10v_frame_pc_unwind): New function.
11173 (d10v_frame_id_unwind): New function.
11174 (saved_regs_unwinder): New function.
11175 (d10v_frame_register_unwind): New function.
11176 (d10v_frame_pop): New function.
11177 (d10v_frame_unwind): New variable.
11178 (d10v_frame_p): New function.
11179 (d10v_frame_saved_pc): Delete function.
11180 * Makefile.in (d10v-tdep.o): Update dependencies.
11181
11182 2003-01-30 J. Brobecker <brobecker@gnat.com>
11183
11184 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11185 causing some regressions due to a change in the default value
11186 for this macro.
11187
11188 2003-01-29 Richard Henderson <rth@redhat.com>
11189 Elena Zannoni <ezannoni@redhat.com>
11190 Daniel Jacobowitz <drow@mvista.com>
11191
11192 Fix PR gdb/961.
11193 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11194 variables.
11195 (RANGES_SECTION): New.
11196 (dwarf_ranges_buffer): New variable.
11197 (struct comp_unit_head): Add member "die".
11198 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11199 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11200 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11201 (dwarf2_locate_sections): Likewise.
11202 (dwarf2_build_psymtabs): Read .debug_ranges.
11203 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11204 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11205 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11206 Look for DW_AT_ranges and return the bounding box.
11207
11208 2003-01-29 Brian Ford <ford@vss.fsi.com>
11209
11210 * win32-nat.c (cygwin_pid): Removed as unused.
11211 (child_attach): Try fall back to Cygwin pid.
11212
11213 2003-01-29 Jim Blandy <jimb@redhat.com>
11214
11215 * objfiles.h (struct objfile): Doc fix.
11216
11217 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11218
11219 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11220 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11221 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11222 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11223 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11224 (FRAME_SAVED_PC): Change to a function with predicate.
11225 * gdbarch.h, gdbarch.c: Re-generate.
11226
11227 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11228
11229 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11230
11231 * complaints.c (complain): Delete function.
11232 * complaints.h (struct deprecated_complaint): Delete definition.
11233 (complain): Delete declaration.
11234
11235 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11236
11237 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11238 dummy frames.
11239
11240 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11241
11242 * sentinel-frame.h, sentinel-frame.c: New files.
11243 * Makefile.in (frame.o): Update dependencies.
11244 (SFILES): Add sentinel-frame.c.
11245 (sentinel_frame_h): Define.
11246 (COMMON_OBS): Add sentinel-frame.o.
11247 (sentinel-frame.o): Specify dependencies.
11248 * frame.c: Include "sentinel-frame.h".
11249 (frame_register_unwind): Rewrite assuming that there is always a a
11250 ->next frame.
11251 (frame_register, generic_unwind_get_saved_register): Ditto.
11252 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11253 (create_sentinel_frame, unwind_to_current_frame): New functions.
11254 (get_current_frame): Rewrite using create_sentinel_frame and
11255 unwind_to_current_frame. When possible, always create a frame.
11256 (create_new_frame): Set next to the sentinel frame.
11257 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11258 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11259 ID cache when necessary.
11260 (frame_saved_regs_id_unwind): Use frame_relative_level.
11261 (deprecated_generic_get_saved_register): Use frame_relative_level,
11262 get_frame_saved_regs, get_frame_pc, get_frame_base and
11263 get_next_frame.
11264 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11265 frame_register.
11266
11267 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11268
11269 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11270
11271 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11272
11273 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11274 (maintenance_set_profile_cmd): Use error () instead of warning ().
11275
11276 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11277
11278 * configure.in: Check that -pg works if using --enable-profiling.
11279 Check for monstartup and _mcleanup regardless of --enable-profiling.
11280 * maint.c: Check for monstartup and _mcleanup before using them.
11281 * config.in: Regenerated.
11282 * configure: Regenerated.
11283
11284 2003-01-24 Nick Clifton <nickc@redhat.com>
11285
11286 * Add sh2e support:
11287
11288 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11289
11290 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11291 (sh2e_show_regs): New.
11292 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11293 * config/sh/tm-sh.h: Added sh2e to comments.
11294
11295 2003-01-23 Jim Blandy <jimb@redhat.com>
11296
11297 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11298 symbols found)" message here; we haven't checked for a separate
11299 debug info file yet, so we don't know yet.
11300 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11301 we've looked everywhere. Also, there's no need to print a special
11302 message when we're loading the separate debug info file: the one
11303 symbol_file_add prints is fine.
11304
11305 2003-01-23 Alexander Larsson <alexl@redhat.com>
11306 Jim Blandy <jimb@redhat.com>
11307
11308 Add support for executables whose debug info has been separated
11309 out into a separate file, leaving only a link behind.
11310 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11311 and separate_debug_objfile_backlink.
11312 (put_objfile_before): New declaration.
11313 * symfile.c: #include "filenames.h".
11314 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11315 debug info in a separate file, read that, too. Save the addrs
11316 argument, so we can use it again to read the separated debug info;
11317 syms_from_objfile modifies the table we pass it.
11318 (reread_symbols): After re-reading an objfile, call
11319 reread_separate_symbols to refresh its separate debug info
11320 objfile, if it has one.
11321 (reread_separate_symbols, find_separate_debug_file,
11322 get_debug_link_info, separate_debug_file_exists): New functions.
11323 (debug_file_directory): New global var.
11324 (_initialize_symfile): Initialize debug_file_directory, and
11325 provide the new `set debug-file-directory' command to let the user
11326 change it.
11327 * objfiles.c (free_objfile): If this objfile has its debug info in
11328 a separate objfile, free that one too. If this is itself a
11329 separate debug info objfile, clear our parent's backlink.
11330 (put_objfile_before): New function.
11331 * utils.c (gnu_debuglink_crc32): New function.
11332 * defs.h (gnu_debuglink_crc32): New declaration.
11333 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11334 * configure.in: Handle --with-separate-debug-dir config option.
11335 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11336 * acconfig.h (DEBUGDIR): New macro.
11337 * configure, aclocal.m4, config.in: Regenerated.
11338
11339 2003-01-22 Jim Blandy <jimb@redhat.com>
11340
11341 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11342 like the old symbol_file_add, but taking new arguments: you can
11343 now pass in either a `struct section_addr_info' list to say where
11344 each section is loaded, or a `struct section_offsets' table. Pass
11345 these new arguments through to syms_from_objfile as appropriate.
11346 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11347 with the appropriate quiescent values for the new arguments.
11348
11349 * symfile.c: #include "gdb_assert.h".
11350 (syms_from_objfile): Add the ability to pass in a section offset
11351 table directly, as an alternative to the section_addr_info table.
11352 Document arguments better.
11353 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11354 * symfile.h (syms_from_objfile): Update declaration.
11355 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11356 syms_from_objfile.
11357 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11358
11359 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11360
11361 Original patch by Tom Tromey <tromey@cygnus.com> and
11362 Jason Molenda <jmolenda@apple.com>.
11363 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11364 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11365 * NEWS: Mention profiling.
11366 * configure.in (--enable-gdbtk): Fix typo.
11367 (--enable-profiling): New. Set PROFILE_CFLAGS.
11368 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11369 Fill in function.
11370 (profiling_state): New variable.
11371 (mcleanup_wrapper): New function.
11372 (_initialize_maint): Remove NOTYET, fix call to
11373 add_setshow_boolean_cmd for "maint set profile".
11374 * configure: Regenerated.
11375
11376 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11377
11378 * Makefile.in (install-gdbtk): Install PNG images too.
11379
11380 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11381
11382 * exec.c (text_start): Delete global variable.
11383 (exec_file_attach): Make text_start local to the function.
11384 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11385 * valops.c (hand_function_call): Delete code that handles
11386 BEFORE_TEXT_END and AFTER_TEXT_END.
11387 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11388 of CALL_DUMMY_LOCATION.
11389 * gdbarch.c: Regenerate.
11390 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11391 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11392 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11393 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11394 (text_end): Delete extern declaration.
11395
11396 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11397
11398 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11399 * blockframe.c (backtrace_below_main): Move to "frame.c".
11400 (frame_chain_valid): Delete check for backtrace_below_main.
11401 (_initialize_blockframe): Delete initialization, move ``set
11402 backtrace-below-main'' command to "frame.c".
11403 (do_flush_frames_sfunc): Delete function.
11404 * frame.c: Include "command.h" and "gdbcmd.h".
11405 (frame_type_from_pc): New function.
11406 (create_new_frame): Use frame_type_from_pc.
11407 (legacy_get_prev_frame): New function.
11408 (get_prev_frame): Rewrite. When an old style frame, call
11409 legacy_get_prev_frame. Otherwize, unwind the PC first.
11410 (_initialize_frame): Add ``set backtrace-below-main'' command.
11411 * Makefile.in (frame.o): Update dependencies.
11412
11413 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11414
11415 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11416 DEPRECATED_REGISTERS_INFO.
11417
11418 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11419
11420 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11421 Maintainers'. Update `Various Maintainers'.
11422
11423 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11424
11425 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11426 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11427 Suppress actual parameters when `-'.
11428 * gdbarch.h, gdbarch.c: Regenerate.
11429
11430 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11431
11432 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11433 code handling dummy frames.
11434
11435 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11436
11437 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11438 (struct frame_unwind): Add field pop.
11439 * frame.h (frame_pop): Declare.
11440 * frame.c (frame_saved_regs_pop): New function.
11441 (trad_frame_unwinder): Add frame_saved_regs_pop.
11442 (frame_pop): New function.
11443 * dummy-frame.c (dummy_frame_pop): New function.
11444 (discard_innermost_dummy): New function.
11445 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11446 (dummy_frame_unwind): Add dummy_frame_pop.
11447 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11448 * valops.c (hand_function_call): Ditto.
11449 * stack.c (return_command): Ditto.
11450
11451 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11452
11453 * cris-tdep.c: Fix function declaration indentation.
11454 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11455 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11456 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11457 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11458 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11459 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11460
11461 2003-01-18 Michael Chastain <mec@shout.net>
11462
11463 * README (Unpacking and Installation -- quick overview):
11464 Warn against ".../gdb-5.3/gdb/configure".
11465
11466 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11467
11468 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11469 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11470 (struct frame_unwind): Declare opaque.
11471 (dummy_frame_p): Declare function.
11472 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11473 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11474 * dummy-frame.c: Include "frame-unwind.h".
11475 (dummy_frame_p): New function.
11476 (dummy_frame_unwind): New variable.
11477 * frame.c: Include "frame-unwind.h".
11478 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11479 to use the new unwind field.
11480 (set_unwind_by_pc): Delete function.
11481 (create_new_frame, get_prev_frame): Set unwind field using
11482 frame_unwind_find_by_pc.
11483 (trad_frame_unwind, trad_frame_unwinder): New variables.
11484 * frame.h (trad_frame_unwind): Declare variable.
11485 (frame_id_unwind_ftype): Delete declaration.
11486 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11487 (struct frame_unwind): Declare opaque.
11488 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11489 register_unwind with a single unwind pointer.
11490 * frame-unwind.h, frame-unwind.c: New files.
11491 * Makefile.in (SFILES): Add frame-unwind.c.
11492 (frame_unwind_h): Define.
11493 (COMMON_OBS): Add frame-unwind.o.
11494 (frame-unwind.o): Specify dependencies.
11495 (frame.o, dummy-frame.o): Update dependencies.
11496
11497 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11498
11499 * ada-valprint.c: Eliminate PTR.
11500 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11501 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11502 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11503 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11504 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11505 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11506 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11507
11508 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11509
11510 * main.c (captured_main): Don't use PTR.
11511 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11512 * gdbtypes.c (lookup_primitive_typename): Ditto.
11513 (lookup_struct_elt_type): Ditto.
11514 * f-valprint.c (info_common_command): Ditto.
11515 (list_all_visible_commons): Ditto.
11516 * jv-typeprint.c (java_type_print_base): Ditto.
11517
11518 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11519 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11520 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11521 i386-interix-nat.c and i386-interix-tdep.c. Rename
11522 m68klinux-nat.c and m68klinux-tdep.c. Rename
11523 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11524 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11525 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11526 * main.c (captured_main): Use xfree, not free.
11527
11528 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11529
11530 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11531 ID back using a parameter.
11532 * frame.c (frame_id_unwind): Update call.
11533 (frame_saved_regs_id_unwind): Update.
11534 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11535 * dummy-frame.h (struct frame_id): Add opaque declaration.
11536 (dummy_frame_id_unwind): Update declaration.
11537
11538 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11539
11540 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11541
11542 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11543
11544 * MAINTAINERS (Stephen P. Smith): Updated email address.
11545
11546 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11547
11548 Fix PR gdb/898
11549 * breakpoint.c (until_break_command): Add new argument. Use it to
11550 decide whether to stop only at the current frame or not.
11551 * breakpoint.h (until_break_command): Update prototype.
11552 * infcmd.c (until_command): Add new argument to until_break_command
11553 call.
11554 (advance_command): New function.
11555 (_initialize_infcmd): Update help string for 'until' command.
11556 Add new 'advance' command.
11557
11558 2003-01-14 David Carlton <carlton@math.stanford.edu>
11559
11560 * linespec.c (decode_line_1): Normalize comments.
11561 (set_flags): Ditto.
11562 (locate_first_half): Ditto.
11563 (decode_compound): Ditto.
11564 (symtab_from_filename): Ditto.
11565 (decode_all_digits): Ditto.
11566 (decode_dollar): Ditto.
11567 (find_methods): Ditto.
11568 (find_toplevel_char): Ditto.
11569
11570 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11571
11572 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11573 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11574 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11575 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11576 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11577 * language.c, language.h, m32r-tdep.c: Update copyright.
11578 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11579 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11580 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11581 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11582 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11583 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11584
11585 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11586
11587 * stabsread.h (process_later, resolve_cfront_continuation):
11588 Obsolete.
11589 Update copyright years.
11590 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11591 Update copyright year.
11592 * dbxread.c(struct cont_elem): Obsolete.
11593 (process_later, process_now): Obsolete functions.
11594 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11595 Update copyright year.
11596 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11597 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11598 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11599 (parse_partial_symbols): Obsolete cfront support.
11600 * stabsread.c
11601 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11602 macros.
11603 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11604 read_cfront_baseclasses, read_cfront_member_functions,
11605 resolve_cfront_continuation,read_cfront_static_fields,
11606 copy_cfront_struct_fields): Obsolete functions.
11607 (define_symbol, read_one_struct_field): Obsolete cfront support.
11608 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11609 Update Copyright year.
11610
11611 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11612
11613 * stack.c (print_frame_info, print_stack_frame_base_stub,
11614 print_stack_frame_base, show_and_print_stack_frame_stub,
11615 show_and_print_stack_frame, print_only_stack_frame_stub,
11616 print_only_stack_frame): Delete functions.
11617 (print_stack_frame_stub): Call print_frame_info instead of
11618 print_frame_info_base.
11619 (print_frame_info_base): Rename to print_frame_info.
11620 (backtrace_command_1): Call print_frame_info, instead of
11621 print_frame_info_base.
11622 (current_frame_command): Call print_stack_frame, instead of
11623 print_only_stack_frame.
11624 (frame_command): Call print_stack_frame, instead of
11625 show_and_print_stack_frame.
11626 (up_command): Ditto.
11627 (down_command): Ditto.
11628 * frame.h (print_only_stack_frame): Delete prototype.
11629 * infrun.c (normal_stop): Call print_stack_frame, instead of
11630 show_and_print_stack_frame.
11631 * thread.c (info_threads_command): Call print_stack_frame, instead
11632 of print_only_stack_frame.
11633
11634 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11635
11636 * README (Graphical interface to GDB): Update URL. Point at
11637 gdb/links/.
11638
11639 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11640 version match.
11641
11642 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11643
11644 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11645 lines.
11646
11647 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11648
11649 * thread-db.c (attach_thread): Prototype.
11650 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11651 thread information (ti), and valid flags (th_valid, ti_valid).
11652 (attach_thread): Move target_pid_to_str call to after the thread
11653 is added to GDB's list. Initialize the cache.
11654 (thread_get_info_callback, thread_db_map_id2thr)
11655 (thread_db_get_info): New functions.
11656 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11657 (thread_db_store_registers, thread_db_thread_alive)
11658 (thread_db_get_thread_local_address): Use them.
11659 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11660 of calling error() for threads in unknown state.
11661
11662 (clear_lwpid_callback): New function.
11663 (thread_db_resume): Use it to clear the cache.
11664
11665 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11666
11667 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11668 (resume_callback): Remove dead code.
11669
11670 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11671
11672 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11673 predicate.
11674 * gdbarch.h, gdbarch.c: Regenerate.
11675 * stack.c (frame_info): Only initialize the saved registers when
11676 FRAME_INIT_SAVED_REGS_P.
11677 * frame.c (frame_saved_regs_register_unwind): Assert
11678 FRAME_INIT_SAVED_REGS_P.
11679 (deprecated_generic_get_saved_register): Ditto.
11680
11681 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11682
11683 * source.c (openp): Squelch warning about "filename".
11684
11685 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11686
11687 * source.c (openp): If the file does not exist don't necessarily
11688 search the path.
11689
11690 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11691
11692 Fix PR gdb/872.
11693 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11694 (integer_types_same_name_p): New function.
11695 (rank_one_type): Use it.
11696 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11697
11698 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11699
11700 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11701 variables.
11702 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11703 * configure.in: Add --with-sysroot.
11704 * configure: Regenerated.
11705 * main.c (gdb_sysroot): New variable.
11706 (captured_main): Initialize gdb_sysroot.
11707 * defs.h (gdb_sysroot): New extern declaration.
11708 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11709
11710 2003-01-12 Michael Chastain <mec@shout.net>
11711
11712 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11713
11714 2003-01-12 Michael Chastain <mec@shout.net>
11715
11716 * top.c (print_gdb_version): Bump copyright year to 2003.
11717
11718 2003-01-12 David Carlton <carlton@bactrian.org>
11719
11720 * linespec.c (symtab_from_filename): Rename variable 's' to
11721 'file_symtab'.
11722
11723 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11724
11725 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11726 dummy frame.
11727 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11728
11729 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11730
11731 * d10v-tdep.c: Include "gdb_assert.h".
11732 (d10v_store_return_value): Rewrite to match current interface.
11733 (d10v_extract_struct_value_address): Ditto.
11734 (d10v_extract_return_value): Ditto.
11735 (d10v_gdbarch_init): Set store_restore_value,
11736 extract_struct_value_address and extract_return_value.
11737
11738 2003-01-12 J. Brobecker <brobecker@gnat.com>
11739
11740 * hpread.c (set_namestring): New procedure replacing the
11741 SET_NAMESTRING macro.
11742 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11743 by calls to set_namestring.
11744
11745 2003-01-11 J. Brobecker <brobecker@gnat.com>
11746
11747 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11748 a compilation warning.
11749 (hpread_process_one_debug_symbol): Likewise.
11750
11751 2003-01-10 David Carlton <carlton@math.stanford.edu>
11752
11753 * linespec.c (decode_line_1): Rename variable 's' to
11754 'file_symtab'.
11755 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11756 (decode_dollar): Ditto.
11757 (decode_variable): Ditto.
11758 (symbol_found): Ditto.
11759
11760 2003-01-09 Michael Chastain <mec@shout.net>
11761
11762 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11763
11764 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11765
11766 * win32-nat.c (set_process_privilege): New function.
11767 (child_attach): Call set_process_privilege() to enable the
11768 SE_DEBUG_NAME user privilege if available in process token.
11769
11770 2003-01-10 J. Brobecker <brobecker@gnat.com>
11771
11772 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11773 compilation error in the previous revision.
11774
11775 2003-01-09 David Carlton <carlton@math.stanford.edu>
11776
11777 * linespec.c: Update copyright.
11778
11779 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11780
11781 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11782 than inferior_ptid.
11783 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11784
11785 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11786
11787 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11788 Update comments.
11789 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11790 (frame_saved_regs_zalloc): Update.
11791 (frame_saved_regs_register_unwind): Update.
11792 (create_new_frame): Update.
11793 (get_prev_frame): Update.
11794 (frame_extra_info_zalloc): Update.
11795 (deprecated_get_frame_saved_regs): Update.
11796 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11797 * cris-tdep.c: Update comment.
11798
11799 * somsolib.h: Fix function indentation.
11800 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11801 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11802 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11803 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11804 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11805
11806 * infrun.c (follow_fork): Use ISO C definition.
11807 * expprint.c (print_subexp): Use xfree instead of free.
11808 * charset.c: Include "gdb_string.h" instead of <string.h>.
11809 (register_iconv_charsets): Use ISO C definition.
11810 (host_charset, target_charset): Ditto.
11811 * Makefile.in (charset.o): Update dependencies.
11812 (mi-cmd-env.o): Update dependencies.
11813
11814 2003-01-08 Andrew Cagney <cagney@redhat.com>
11815
11816 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11817 get_frame_base.
11818
11819 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11820
11821 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11822 build directories. Save edited gdb output in Mbuild.log. If a
11823 build fails, remove any final GDB executable.
11824
11825 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11826
11827 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11828 replacing hex constants with function names and stripping leading
11829 file name directory prefixes.
11830
11831 2003-01-08 Andrew Cagney <cagney@redhat.com>
11832
11833 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11834 get_frame_base.
11835
11836 2003-01-08 David Carlton <carlton@math.stanford.edu>
11837
11838 * linespec.c (decode_line_1): Move code into decode_variable.
11839 (decode_variable): New function.
11840
11841 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11842
11843 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11844
11845 2003-01-08 Andrew Cagney <cagney@redhat.com>
11846
11847 * cris-tdep.c (cris_frame_init_saved_regs): Use
11848 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11849 saved_regs buffer.
11850 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11851 (sh64_nofp_frame_init_saved_regs): Ditto.
11852 (sh_fp_frame_init_saved_regs): Ditto.
11853 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11854 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11855 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11856 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11857
11858 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11859
11860 * minsyms.c (lookup_minimal_symbol): Update comment.
11861 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11862 (lookup_minimal_symbol_solib_trampoline): Likewise.
11863
11864 2003-01-08 Andrew Cagney <cagney@redhat.com>
11865
11866 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11867 frame_relative_level.
11868
11869 * alpha-tdep.c: Use get_frame_extra_info.
11870 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11871 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11872 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11873 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11874
11875 * alpha-tdep.c: Use get_next_frame.
11876 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11877 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11878 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11879 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11880 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11881 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11882 * xstormy16-tdep.c: Ditto.
11883
11884 2003-01-07 Andrew Cagney <cagney@redhat.com>
11885
11886 * alpha-tdep.c: Use get_frame_base.
11887 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11888 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11889 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11890 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11891 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11892 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11893 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11894 * config/sparc/tm-sparc.h: Ditto.
11895
11896 2003-01-07 Andrew Cagney <cagney@redhat.com>
11897
11898 * frame.c (deprecated_get_frame_context): New function.
11899 (deprecated_set_frame_context): New function.
11900 * frame.h (deprecated_get_frame_context): Declare.
11901 (deprecated_set_frame_context): Declare.
11902 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11903 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11904
11905 2003-01-07 Andrew Cagney <cagney@redhat.com>
11906
11907 * frame.c (deprecated_set_frame_next_hack): New function.
11908 (deprecated_set_frame_prev_hack): New function.
11909 * frame.h (deprecated_set_frame_next_hack): Declare.
11910 (deprecated_set_frame_prev_hack): Declare.
11911 * mcore-tdep.c (analyze_dummy_frame): Use
11912 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11913 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11914
11915 2003-01-07 David Carlton <carlton@math.stanford.edu>
11916
11917 * linespec.c (decode_line_1): Move code into decode_dollar.
11918 (decode_dollar): New function.
11919
11920 2003-01-07 Andrew Cagney <cagney@redhat.com>
11921
11922 * arm-tdep.c (arm_init_extra_frame_info): Use
11923 deprecated_update_frame_base_hack.
11924 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11925 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11926 (fix_frame_pointer): Ditto.
11927 (mn10300_analyze_prologue): Ditto.
11928
11929 2003-01-07 Andrew Cagney <cagney@redhat.com>
11930
11931 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11932 extra_info using frame_extra_info_zalloc.
11933 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11934 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11935 (sh64_init_extra_frame_info): Ditto.
11936 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11937 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11938 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11939 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11940 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11941 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11942 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11943 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11944 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11945 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11946 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11947 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11948
11949 * mn10300-tdep.c (analyze_dummy_frame): Use
11950 deprecated_set_frame_extra_info_hack.
11951 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11952
11953 2003-01-07 J. Brobecker <brobecker@gnat.com>
11954
11955 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11956 class is not scText. These do not define "real" procedures.
11957 (parse_partial_symbols): Likewise.
11958
11959 2003-01-06 Michael Snyder <msnyder@redhat.com>
11960
11961 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11962
11963 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11964
11965 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11966 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11967 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11968 deprecated_frame_xmalloc_with_cleanup.
11969 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11970 deprecated_frame_xmalloc.
11971 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11972 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11973
11974 2003-01-06 Andrew Cagney <cagney@redhat.com>
11975
11976 * x86-64-linux-tdep.c: Include "osabi.h".
11977 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11978
11979 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11980
11981 2003-01-06 Andrew Cagney <cagney@redhat.com>
11982
11983 * MAINTAINERS (Target Instruction Set Architectures): Update
11984 arm-elf. Can be built with -Werror, has been multiarched.
11985
11986 * value.h (unpack_long): Make buffer parameter constant.
11987 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11988 * scm-lang.h (scm_parse): Ditto.
11989 * defs.h (extract_typed_address, extract_address): Ditto.
11990 (extract_long_unsigned_integer): Ditto.
11991 * inferior.h (unsigned_pointer_to_address): Ditto.
11992 (signed_pointer_to_address): Ditto.
11993 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11994 * gdbarch.h, gdbarch.c: Regenerate.
11995 * findvar.c (extract_long_unsigned_integer): Update.
11996 (extract_address): Update.
11997 (extract_typed_address): Update.
11998 (unsigned_pointer_to_address): Update.
11999 * values.c (unpack_long): Update.
12000 (unpack_double): Update.
12001 (unpack_pointer): Update.
12002 (unpack_field_as_long): Update.
12003 * d10v-tdep.c (d10v_pointer_to_address): Update.
12004 * avr-tdep.c (avr_pointer_to_address): Update.
12005 * scm-lang.c (scm_unpack): Update.
12006 * findvar.c (signed_pointer_to_address): Update.
12007
12008 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12009
12010 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12011 since it is in i386-tdep.c.
12012
12013 2003-01-06 J. Brobecker <brobecker@gnat.com>
12014
12015 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12016 failure introduced in the previous change.
12017
12018 2003-01-05 Michael Chastain <mec@shout.net>
12019
12020 * README: Remove references to deleted remote-*.c files:
12021 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12022 remote-nrom.c, remote-os9k.c, remote-udi.c.
12023
12024 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12025
12026 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12027 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12028 i386_get_longjmp_target.
12029
12030 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12031
12032 * arm-tdep.c (prologue_cache): Change to a pointer.
12033 (_initialize_arm_tdep): Allocate prologue_cache.
12034 (check_prologue_cache): Update.
12035 (save_prologue_cache): Update.
12036 (arm_gdbarch_init): Update.
12037
12038 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12039
12040 * stabsread.c (update_method_name_from_physname): Call complaint()
12041 instead of error.
12042
12043 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12044
12045 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12046 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12047 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12048
12049 * blockframe.c: Include "gdbcmd.h" and "command.h".
12050 (backtrace_below_main): New variable.
12051 (file_frame_chain_valid, func_frame_chain_valid)
12052 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12053 (generic_func_frame_chain_valid): Remove functions.
12054 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12055 (_initialize_blockframe): New function.
12056 * Makefile.in (blockframe.o): Update dependencies.
12057 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12058 comment. Call frame_chain_valid ().
12059 * frame.h: Remove old prototypes. Add prototype for
12060 frame_chain_valid and update comments to match.
12061 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12062 Remove old comment.
12063 * gdbarch.h: Regenerated.
12064 * gdbarch.c: Regenerated.
12065
12066 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12067 set_gdbarch_frame_chain_valid.
12068 * avr-tdep.c (avr_gdbarch_init): Likewise.
12069 * cris-tdep.c (cris_gdbarch_init): Likewise.
12070 * frv-tdep.c (frv_gdbarch_init): Likewise.
12071 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12072 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12073 (i386_nw_init_abi): Likewise.
12074 (i386_gdbarch_init): Likewise.
12075 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12076 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12077 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12078 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12079 * mips-tdep.c (mips_gdbarch_init): Likewise.
12080 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12081 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12082 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12083 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12084 * s390-tdep.c (s390_gdbarch_init): Likewise.
12085 * sh-tdep.c (sh_gdbarch_init): Likewise.
12086 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12087 * v850-tdep.c (v850_gdbarch_init): Likewise.
12088 * vax-tdep.c (vax_gdbarch_init): Likewise.
12089 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12090
12091 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12092 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12093 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12094 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12095 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12096 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12097 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12098 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12099
12100 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12101
12102 * Makefile.in (acconfig_h): Remove incorrect macro.
12103 (config_h): Define.
12104 (osabi.o): Update dependencies.
12105 * configure.tgt: Set gdb_osabi based on target triplet.
12106 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12107 * configure: Regenerated.
12108 * config.in: Regenerated.
12109 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12110 (GDB_OSABI_DEFAULT): Define if not already defined.
12111 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12112 (set_osabi_string): New variables.
12113 (gdbarch_register_osabi): Add new OS ABI to
12114 gdb_osabi_available_names.
12115 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12116 (set_osabi, show_osabi): New functions.
12117 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12118
12119 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12120
12121 * arch-utils.c (gdbarch_info_init): Set osabi to
12122 GDB_OSABI_UNINITIALIZED.
12123 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12124 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12125 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12126 * gdbarch.c: Regenerated.
12127 * gdbarch.h: Regenerated.
12128 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12129 there's no BFD.
12130 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12131 * osabi.h (enum gdb_osabi): Move to defs.h.
12132 (gdbarch_init_osabi): Update prototype.
12133 * defs.h (enum gdb_osabi): Moved here.
12134 * Makefile.in: Update dependencies.
12135
12136 * alpha-tdep.h: Don't include "osabi.h".
12137 (struct gdbarch_tdep): Remove osabi member.
12138 * alpha-tdep.c: Include "osabi.h".
12139 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12140 iterate over arches. Update call to gdbarch_init_osabi.
12141 (alpha_dump_tdep): Don't dump osabi.
12142 * alpha-linux-tdep.c: Include "osabi.h".
12143 * alpha-osf1-tdep.c: Include "osabi.h".
12144 * alphafbsd-tdep.c: Include "osabi.h".
12145 * alphanbsd-tdep.c: Include "osabi.h".
12146
12147 * arm-tdep.h: Don't include "osabi.h".
12148 (struct gdbarch_tdep): Remove osabi member.
12149 * arm-tdep.c: Include "osabi.h".
12150 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12151 iterate over arches. Update call to gdbarch_init_osabi.
12152 (arm_dump_tdep): Don't dump osabi.
12153 * arm-linux-tdep.c: Include "osabi.h".
12154 * armnbsd-tdep.c: Include "osabi.h".
12155
12156 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12157 Update call to gdbarch_init_osabi.
12158
12159 * i386-tdep.h: Don't include "osabi.h".
12160 (struct gdbarch_tdep): Remove osabi member.
12161 * i386-tdep.c: Include "osabi.h".
12162 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12163 iterate over arches. Update call to gdbarch_init_osabi.
12164 (i386_dump_tdep): Don't dump osabi.
12165 * i386-linux-tdep.c: Include "osabi.h".
12166 * i386-sol2-tdep.c: Include "osabi.h".
12167 * i386bsd-tdep.c: Include "osabi.h".
12168 * i386gnu-tdep.c: Include "osabi.h".
12169 * i386ly-tdep.c: Include "osabi.h".
12170 * i386nbsd-tdep.c: Include "osabi.h".
12171 * i386obsd-tdep.c: Include "osabi.h".
12172
12173 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12174 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12175 check osabi when iterating over arches. Update call to
12176 gdbarch_init_osabi.
12177 (mips_dump_tdep): Don't dump osabi.
12178
12179 * ns32k-tdep.h: Don't include "osabi.h".
12180 (struct gdbarch_tdep): Remove.
12181 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12182 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12183 allocate tdep. Update call to gdbarch_init_osabi.
12184 (ns32k_dump_tdep): Remove.
12185 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12186 * ns32knbsd-tdep.c: Include "osabi.h".
12187
12188 * ppc-tdep.h: Don't include "osabi.h".
12189 (struct gdbarch_tdep): Remove osabi member.
12190 * rs6000-tdep.c: Include "osabi.h".
12191 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12192 osabi when iterating over arches. Update call to
12193 gdbarch_init_osabi.
12194 (rs6000_dump_tdep): Don't dump osabi.
12195 * ppc-linux-tdep.c: Include "osabi.h".
12196 * ppcnbsd-tdep.c: Include "osabi.h".
12197
12198 * sh-tdep.h: Don't include "osabi.h".
12199 (struct gdbarch_tdep): Remove osabi member.
12200 * sh-tdep.c: Include "osabi.h".
12201 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12202 iterate over arches. Update call to gdbarch_init_osabi.
12203 (sh_dump_tdep): Don't dump osabi.
12204 * shnbsd-tdep.c: Include "osabi.h".
12205
12206 * sparc-tdep.c: Include "osabi.h".
12207 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12208 iterate over arches. Update call to gdbarch_init_osabi.
12209 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12210 tdep structure.
12211
12212 * vax-tdep.h: Don't include "osabi.h".
12213 (struct gdbarch_tdep): Remove.
12214 * vax-tdep.c: Include "osabi.h".
12215 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12216 iterate over arches. Don't allocate tdep. Update call
12217 to gdbarch_init_osabi.
12218 (vax_dump_tdep): Remove.
12219 (_initialize_vax_tdep): Update call to gdbarch_register.
12220
12221 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12222
12223 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12224 entirely.
12225 (breakpoint_re_set_one): Don't fetch the value for a disabled
12226 watchpoint.
12227
12228 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12229
12230 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12231 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12232 (COERCE_FLOAT_TO_DOUBLE): Remove.
12233 * gdbarch.c: Regenerate.
12234 * gdbarch.h: Regenerate.
12235 * Makefile.in: Remove value_h from gdbarch_h.
12236 * valops.c (coerce_float_to_double): New variable.
12237 (default_coerce_float_to_double): Remove.
12238 (standard_coerce_float_to_double): Remove.
12239 (value_arg_coerce): Use coerce_float_to_double.
12240 (_initialize_valops): Add "set coerce-float-to-double".
12241 * value.h (default_coerce_float_to_double): Remove prototype.
12242 (standard_coerce_float_to_double): Remove prototype.
12243
12244 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12245 prototyped.
12246 * mdebugread.c (parse_symbol): Likewise.
12247 * stabsread.c (define_symbol): Mark all functions as prototyped.
12248
12249 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12250 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12251 set_gdbarch_coerce_float_to_double.
12252 * arm-tdep.c (arm_gdbarch_init): Likewise.
12253 * frv-tdep.c (frv_gdbarch_init): Likewise.
12254 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12255 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12256 * mips-tdep.c (mips_gdbarch_init): Likewise.
12257 (mips_coerce_float_to_double): Remove.
12258 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12259 (rs6000_coerce_float_to_double): Remove.
12260 * s390-tdep.c (s390_gdbarch_init): Likewise.
12261 * sh-tdep.c (sh_gdbarch_init): Likewise.
12262 (sh_coerce_float_to_double): Remove.
12263 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12264 (sparc_coerce_float_to_double): Remove.
12265 * v850-tdep.c (v850_gdbarch_init): Likewise.
12266 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12267 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12268 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12269 (hppa_coerce_float_to_double): Remove prototype.
12270 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12271
12272 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12273
12274 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12275
12276 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12277
12278 Suggested by Stewart Brown <sb24@avaya.com>:
12279 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12280 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12281 (c_type_print_varspec_suffix): Likewise.
12282
12283 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12284
12285 * configure.in: Don't set and AC_SUBST SUBDIRS.
12286 * configure: Regenerated.
12287
12288 * configure.in: Remove code dealing with shared libraries.
12289 * Makefile.in: Remove HLDFLAGS and HLDENV.
12290 * configure: Regenerated.
12291
12292 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12293
12294 * frame.c (deprecated_frame_xmalloc): New function.
12295 (deprecated_set_frame_saved_regs_hack): New function.
12296 (deprecated_set_frame_extra_info_hack): New function.
12297 * frame.h (deprecated_frame_xmalloc): Declare.
12298 (deprecated_set_frame_saved_regs_hack): Declare.
12299 (deprecated_set_frame_extra_info_hack): Declare.
12300
12301 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12302
12303 * configure.in: Move code that provides the --enable-gdbtk option
12304 right after the code that handles the --enable-tui option, and
12305 polish it somewhat.
12306 * configure: Regenerated.
12307
12308 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12309 AC_CHECK_FUNCS and remove the old check for pread64.
12310 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12311 * acconfig.h (_GNU_SOURCE): Add.
12312 (HAVE_PREAD64): Remove.
12313 * configure, aclocal.m4, config.in: Regenerated.
12314
12315 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12316
12317 * alpha-tdep.c: Use get_frame_saved_regs.
12318 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12319 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12320 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12321 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12322 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12323
12324 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12325
12326 * configure.in: Remove all use of the SUBDIRS variable; add
12327 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12328 code providing the --enable-multi-ice option, and move it right in
12329 front of the code that checks whether gdbserver is supported.
12330 Polish that too.
12331 * configure: Regenerated.
12332 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12333 @SUBDIRS@.
12334
12335 2003-01-03 Andrew Cagney <cagney@redhat.com>
12336
12337 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12338 * avr-tdep.c, cris-tdep.c: Ditto.
12339 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12340 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12341
12342 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12343
12344 * configure.in: Remove --enable-netrom option.
12345 * configure: Regenerated.
12346
12347 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12348
12349 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12350 declaration for `struct re_pattern_buffer' instead.
12351 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12352
12353 2003-01-03 J. Brobecker <brobecker@gnat.com>
12354
12355 * mdebugread.c (parse_symbol): Count until the stEnd matching
12356 the structure name.
12357
12358 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12359
12360 * configure.in: Remove --with-cpu option.
12361 subscripts. Remove evil changequotes here.
12362 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12363 * config.in, configure: Regenerated.
12364
12365 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12366 * configure.in: Cleanup section that sources GDB and BFD configure
12367 subscripts. Remove evil changequotes here.
12368 * config.in, configure: Regenerated.
12369
12370 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12371
12372 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12373 frame accessor methods.
12374 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12375 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12376 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12377 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12378 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12379 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12380 * z8k-tdep.c: Ditto.
12381
12382 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12383
12384 * configure.in: Remove UI_OUT configuration code.
12385 * ada-lang.c: Update assuming UI_OUT is always true.
12386 * Makefile.in (UIOUT_CFLAGS): Remove.
12387 * configure: Regenerated.
12388 * TODO: Remove blurb about elimination of -DUI_OUT.
12389
12390 * configure.in: Move code that provides the --enable-gdbcli,
12391 --enable-gdbmi options right before the code that handles the
12392 --enable-tui option. Polish a bit.
12393 * configure: Regenerated.
12394
12395 * configure.in: Rewrite check for GNU regex and the
12396 --without-included regex option, and move it into the "Checks for
12397 library functions" section. This makes us use the system regex
12398 again by default on systems with version 2 of the GNU C library.
12399 This was apparently broken.
12400 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12401 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12402 * config.in, configure: Regenerated.
12403
12404 * configure.in: Move code that provides the --enable-tui option
12405 before the "Checks for libraries" section. Polish the code
12406 somewhat and set need_curses to yes if we build the TUI. Rewrite
12407 code that looks for a library providing termcap functionality to
12408 match more closely what's done in the Readline library, and move
12409 it into to the "Checks for libraries" section.
12410 * configure: Regenerated.
12411 * Makefile.in (TERMCAP): Remove variable.
12412 * config/i386/go32.mh (TERMCAP): Remove variable.
12413
12414 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12415
12416 * MAINTAINERS: Mention gdb_mbuild.sh.
12417 * gdb_mbuild.sh: Rewrite.
12418
12419 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12420
12421 * configure.in: Fix typo in last change.
12422 * config.in, configure: Regenerated.
12423
12424 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12425
12426 * valarith.c (value_binop): Delete obsolete code and comments.
12427 * configure.host: Ditto.
12428 * buildsym.h (make_blockvector): Ditto.
12429 * buildsym.c (make_blockvector): Ditto.
12430 * defs.h (enum language): Ditto.
12431 (chill_demangle): Ditto.
12432 * elfread.c (elf_symtab_read): Ditto.
12433 * dwarfread.c (CHILL_PRODUCER): Ditto.
12434 (set_cu_language): Ditto.
12435 (handle_producer): Ditto.
12436 * expprint.c (print_subexp): Ditto.
12437 * gdbtypes.c (chill_varying_type): Ditto.
12438 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12439 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12440 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12441 (chill_varying_type): Ditto.
12442 * language.h (_LANG_chill): Ditto.
12443 * language.c (binop_result_type, integral_type): Ditto.
12444 (character_type, string_type, structured_type): Ditto.
12445 (lang_bool_type, binop_type_check): Ditto.
12446 * stabsread.h (os9k_stabs): Ditto.
12447 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12448 (define_symbol, read_type, read_struct_fields): Ditto.
12449 (read_array_type, read_enum_type, read_huge_number): Ditto.
12450 (read_range_type, start_stabs): Ditto.
12451 * symfile.c (init_filename_language_table): Ditto.
12452 (add_psymbol_with_dem_name_to_list): Ditto.
12453 * symtab.c (symbol_init_language_specific): Ditto.
12454 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12455 * symtab.h (struct general_symbol_info): Ditto.
12456 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12457 * typeprint.c (typedef_print): Ditto.
12458 * utils.c (fprintf_symbol_filtered): Ditto.
12459 * valops.c (value_cast, search_struct_field, value_slice): Delete
12460 obsolete code.
12461 (varying_to_slice): Delete function.
12462 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12463 (varying_to_slice): Delete declaration.
12464 * MAINTAINERS: Update.
12465
12466 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12467
12468 * configure.in: Reorganize "Checks for library functions section"
12469 a bit. Remove check for `btowc' and `isascii' functions.
12470 * configure: Regenerated.
12471
12472 * acconfig.h (_MSE_INT_H): Remove.
12473 * configure.in: Create "Checks for header files" section, and move
12474 appropriate tests there. Don't check for objlist.h, wchar.h,
12475 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12476 misdetection fix. Also add "Checks for types", "Checks for
12477 compiler characteristics" and "Checks for library functions"
12478 sections.
12479 * config.in, configure: Regenerated.
12480
12481 * configure.in: Create "Checks for programs" section, and move
12482 appropriate tests there.
12483
12484 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12485
12486 * configure.in: Create "Checks for libraries" section, and move
12487 appropriate tests there. Cleanup check for wctype in libw. Use
12488 AC_SEARCH_LIBS to see whether we need libsocket.
12489 * configure: Regenerated.
12490
12491 For older changes see ChangeLog-2002
12492 \f
12493 Local Variables:
12494 mode: change-log
12495 left-margin: 8
12496 fill-column: 74
12497 version-control: never
12498 End: