2003-09-25 Andrew Cagney <cagney@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2003-09-25 Andrew Cagney <cagney@redhat.com>
2
3 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
4 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
5 and Java.
6 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
7 arm*-*-* do not use the new frame code.
8
9 2003-09-25 David Carlton <carlton@kealia.com>
10
11 * c-exp.y: Remove 'register' declarations.
12 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
13
14 2003-09-25 David Carlton <carlton@kealia.com>
15
16 * c-exp.y: Include cp-support.h. Add qualified_type.
17 (yylex): Delete nested type hack; add comments.
18 * cp-namespace.c (cp_lookup_nested_type): New function.
19 * cp-support.h: Declare cp_lookup_nested_type.
20 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
21 instead of value_struct_elt_for_reference.
22 * valops.c: Include cp-support.h.
23 (value_aggregate_elt): New function.
24 (value_namespace_elt): Ditto.
25 (value_struct_elt_for_reference): Make static.
26 * value.h: Delete declaration of value_struct_elt_for_reference;
27 add declaration for value_aggregate_elt.
28 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
29 (valops.o): Ditto.
30
31 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
32
33 * stack.c: Include "reggroups.h".
34 (frame_info): Only display registers in all_reggroup.
35 * Makefile.in (stack.o): Update dependencies.
36
37 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
38
39 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
40 "add ip, sp #n" in the prologue.
41 (arm_scan_prologue): Ditto.
42
43 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
44
45 * MAINTAINERS (write after approval): Add myself.
46
47 2003-09-25 Andreas Schwab <schwab@suse.de>
48
49 * m68k-tdep.c: Include "dwarf2-frame.h".
50 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
51 * Makefile.in (m68k-tdep.o): Update dependencies.
52
53 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
54
55 * sh-tdep.c (struct frame_extra_info): Remove.
56 (struct sh_frame_cache): New structure.
57 (GET_SOURCE_REG): New macro extracting source register of an opcode.
58 (GET_TARGET_REG): Ditto but target register.
59 (GET_PUSHED_REG): Remove.
60 (IS_MOV_ARG_TO_REG): New macro.
61 (IS_MOV_ARG_TO_IND_R14): New macro.
62 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
63 (IS_MOVW_PCREL_TO_REG): New macro.
64 (IS_MOVL_PCREL_TO_REG): New macro.
65 (IS_SUB_REG_FROM_SP): New macro.
66 (IS_ARG_MOV): Remove.
67 (IS_MOV_TO_R14): Remove.
68 (IS_RESTORE_FP): New macro.
69 (IS_RTS): New macro.
70 (IS_LDS): New macro.
71 (IS_MOV_FP_SP): New macro.
72 (IS_ADD_REG_TO_FP): New macro.
73 (IS_ADD_IMM_FP): New macro.
74 (sh_skip_prologue_hard_way): Remove.
75 (sh_saved_pc_after_call): Remove.
76 (sh_frame_chain): Remove.
77 (sh_find_callers_reg): Remove.
78 (sh_nofp_frame_init_saved_regs): Remove.
79 (sh_fp_frame_init_saved_regs): Remove.
80 (sh_init_extra_frame_info): Remove.
81 (sh_analyze_prologue): New function.
82 (sh_skip_prologue): Remove deprecated code. Rely on new function
83 sh_analyze_prologue when after_prologue fails.
84 (sh_frame_saved_pc): Remove.
85 (sh_alloc_frame_cache): New function.
86 (sh_frame_cache): Ditto.
87 (sh_frame_prev_register): Ditto.
88 (sh_frame_this_id): Ditto.
89 (sh_frame_unwind): New structure defining the heuristic frame
90 sniffer interface.
91 (sh_frame_sniffer): New function.
92 (sh_unwind_sp): Ditto.
93 (sh_unwind_pc): Ditto.
94 (sh_unwind_dummy_id): Ditto.
95 (sh_frame_base_address): Ditto.
96 (sh_frame_base): New structure defining new frame base code.
97 (sh_in_function_epilogue_p): New function.
98 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
99 code and to call all new code instead. Initialize dwarf2 and
100 heuristic frame sniffer.
101
102 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
103
104 * parser-defs.h (struct exp_descriptor): New definition, containing
105 language-specific info for printing, prefixifying, dumping, and
106 evaluating expressions.
107 (exp_descriptor_standard): Declare new variable.
108 (print_subexp): Make global and declare here (from expprint.c).
109 (dump_subexp): Ditto.
110 (dump_subexp_body_standard): Declare.
111 (operator_length_standard): Declare.
112 (op_name_standard): Declare.
113 (print_subexp): Declare.
114 (print_subexp_standard): Declare.
115
116 * language.h (struct language_defn): Add la_exp_desc field to hold
117 pointer to table for language-specific operators.
118 Remove evaluate_exp field, which is now in struct exp_descriptor.
119
120 * parse.c (operator_length): Move most code to new
121 operator_length_standard function. Use language-specific information.
122 (operator_length_standard): New function taking most code from
123 operator_length.
124 (exp_descriptor_standard): New constant.
125
126 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
127 and OP_EXTENDED_LAST.
128
129 * expprint.c (print_subexp): Use language-specific print_subexp.
130 Make global; remove static declaration.
131 Move most code to print_subexp_standard.
132 (print_subexp_standard): New function, containing code formerly in
133 print_subexp.
134 (op_name): Add expression to argument signature.
135 Use langauge-specific op_name.
136 Move most code to op_name_standard.
137 (op_name_standard): New function, containing code formerly in op_name.
138 (dump_subexp): Use new version of op_name function.
139 Use language-specific dump_subexp_body, and move most existing code to
140 dump_subexp_body_standard.
141 (dump_raw_expression): Use new op_name interface.
142 (dump_subexp_body): Move most code to dump_subexp_body_standard.
143 (dump_subexp_body_standard): New function, containing code formerly
144 in dump_subexp_body.
145
146 * language.c (unknown_language): Add default la_exp_desc field and
147 remove evaluate_exp field.
148 (auto_language): Ditto.
149 (local_language): Ditto.
150 * f-lang.c (f_language_defn): Ditto.
151 * c-lang.c (c_language_defn): Ditto.
152 (cplus_language_defn): Ditto.
153 (asm_language_defn): Ditto.
154 (minimal_language_defn): Ditto.
155 * p-lang.c (pascal_language_defn): Ditto.
156 * m2-lang.c (m2_language_defn): Ditto.
157 * objc-lang.c (objc_language_defn): Ditto.
158
159 * jv-lang.c (exp_descriptor_java): New variable, containing
160 Java-specific expression evaluator.
161 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
162 field.
163 * scm-lang.c (exp_descriptor_scm): New variable, containing
164 Scheme-specific expression evaluator.
165 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
166 field.
167 * objc-lang.c (print_object_command): Take evaluate_exp from the
168 la_exp_desc field.
169
170 * Makefile.in (eval.o): Add dependency on parser-defs.h.
171
172 * eval.c: Include parser-defs.h for the full declaration of
173 la_exp_desc's type.
174 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
175
176 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
177
178 * parser-defs.h (operator_length): Declare.
179
180 * parse.c (length_of_subexp): Use operator_length to get operator
181 lengths and arities for operators.
182 Move most code to new operator_length function.
183 (operator_length): New function absorbing most code from
184 length_of_subexp.
185 (prefixify_subexp): Remove large case and use operator_length instead.
186 (parse_exp_1): Use renamings:
187 dump_prefix_expression => dump_raw_expression and
188 dump_postfix_expression => dump_prefix_expression.
189
190 * expression.h (dump_prefix_expression): Rename to ...
191 (dump_raw_expression): New name.
192 (dump_postfix_expression): Rename to ...
193 (dump_prefix_expression): New name.
194
195 * expprint.c (dump_subexp): Make global. Add comment.
196 Move most existing code to dump_subexp_body.
197 (dump_subexp_body): New function.
198 (dump_prefix_expression): Rename to dump_raw_expression.
199 Remove attempt to print the expression via print_expression: it can't
200 work before the expression is prefixified.
201 (dump_raw_expression): Renamed from dump_prefix_expression.
202 (dump_postfix_expression): Rename to dump_prefix_expression, since
203 that's what it does.
204 Remove 'note' parameter, since this routine must be used on
205 prefixified expression.
206 (dump_prefix_expression): Renamed from dump_postfix_expression.
207
208 2003-09-22 Jim Blandy <jimb@redhat.com>
209
210 * dwarf2read.c (read_array_type): When building the type for an
211 array of unspecified length, make sure to choose the upper bound
212 so that the array's total length comes out to be zero --- that's
213 how we represent such arrays.
214
215 2003-09-22 Michael Chastain <mec@shout.net>
216
217 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
218
219 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
220
221 * top.c (quit_force): Fix indirect call to quit_target so
222 a struct qt_args pointer is passed.
223
224 2003-09-22 Andrew Cagney <cagney@redhat.com>
225
226 * arch-utils.h (init_frame_pc_noop): Delete declaration.
227 * arch-utils.c (init_frame_pc_noop): Delete function.
228 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
229 "init_frame_pc".
230 * mips-tdep.c (mips_gdbarch_init): Ditto.
231 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
232 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
233 declaration.
234 (DEPRECATED_INIT_FRAME_PC): Delete macro.
235 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
236 declaration.
237 (DEPRECATED_INIT_FRAME_PC): Delete macro.
238
239 2003-09-22 Anthony Green <green@redhat.com>
240
241 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
242 declaration.
243
244 2003-09-20 Andrew Cagney <cagney@redhat.com>
245
246 * breakpoint.c: Eliminate ARGSUSED.
247 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
248 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
249 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
250 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
251 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
252 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
253 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
254 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
255 * wince.c, remote-vx.c: Ditto.
256
257 * cli/cli-script.c: Remove "register" attributes.
258 * config/pa/tm-hppa.h: Ditto.
259 * cli/cli-decode.c: Ditto.
260 * cli/cli-cmds.c: Ditto.
261
262 2003-09-19 Andrew Cagney <cagney@redhat.com>
263
264 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
265 DEPRECATED_NPC_REGNUM.
266 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
267
268 2003-09-19 Christopher Faylor <cgf@redhat.com>
269
270 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
271
272 2003-09-19 Jim Blandy <jimb@redhat.com>
273
274 * macrotab.c (macro_include): Use the correct comparison to find
275 the appropriate place for this inclusion in the list.
276
277 2003-09-19 Andrew Cagney <cagney@redhat.com>
278
279 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
280 (DEPRECATED_HPUX_TEXT_END): Define.
281 (deprecated_hpux_text_end): Declare.
282 (struct target_ops): Declare opaque.
283 * hppah-nat.c (text_end): Make static.
284 (deprecated_hpux_text_end): New function.
285 * exec.c (text_end): Delete global variable.
286 (NEED_TEXT_START_END): Do not define.
287 (exec_file_attach): Replace code computing "text_end" code with
288 call to DEPRECATED_HPUX_TEXT_END.
289
290 2003-09-19 Andrew Cagney <cagney@redhat.com>
291
292 * utils.c (align_up, align_down): New functions.
293 * defs.h (align_up, align_down): Declare.
294 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
295 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
296 and "align_down".
297 (round_up, round_down): Delete functions.
298 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
299 "align_down".
300 (ROUND_DOWN, ROUND_UP): Delete macros.
301 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
302 * h8300-tdep.c: Replace "round_up" and "round_down" with
303 "align_up" and "align_down".
304 (round_up, round_down): Delete macros.
305 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
306 "align_down".
307 (ROUND_UP, ROUND_DOWN): Delete macros.
308
309 2003-09-18 J. Brobecker <brobecker@gnat.com>
310
311 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
312 hard-coded constant. Use the proper machine name instead.
313
314 2003-09-17 Andrew Cagney <cagney@redhat.com>
315
316 * sparc-tdep.c (legacy_register_name): Delete function.
317 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
318 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
319 * infcmd.c (gdb_register_name): Delete variable.
320 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
321 REGISTER_NAME and "tm.h".
322 * gdbarch.h, gdbarch.c: Regenerate.
323 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
324 REGISTER_NAMES in comments.
325 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
326 * m68klinux-nat.c (regmap): Ditto.
327
328 2003-09-17 Jim Blandy <jimb@redhat.com>
329
330 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
331
332 2003-09-17 Andrew Cagney <cagney@redhat.com>
333
334 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
335 (ppcnbsd_init_abi): Set "use_struct_convention" to
336 "ppcnbsd_use_struct_convention".
337
338 2003-09-17 Mark Kettenis <kettenis@gnu.org>
339
340 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
341 * gdbarch.h, gdbarch.c: Regenerate.
342 (stabs_argument_has_addr): New architecture method.
343 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
344 * arch-utils.c: Include "buildsym.h".
345 (default_stabs_argument_has_addr): New function.
346 * stabsread.c (define_symbol): Use stabs_argument_has_addr
347 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
348
349 2003-09-17 Andrew Cagney <cagney@redhat.com>
350
351 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
352 * gdbarch.h, gdbarch.c: Regenerate.
353 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
354 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
355 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
356 * sparcnbsd-tdep.c: Update.
357
358 2003-09-17 Andrew Cagney <cagney@redhat.com>
359
360 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
361 * gdbarch.h, gdbarch.c: Regenerate.
362 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
363 * d10v-tdep.c, frame.c: Update.
364 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
365 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
366 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
367 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
368 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
369 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
370 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
371 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
372 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
373 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
374 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
375 * config/pa/nm-hppah.h: Update.
376
377 2003-09-16 Andrew Cagney <cagney@redhat.com>
378
379 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
380 "use_struct_convention" to "ppc_linux_use_struct_convention".
381 (ppc_linux_use_struct_convention): New function.
382 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
383 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
384 "rs6000_use_struct_convention".
385 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
386 declaration.
387 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
388 Delete function.
389
390 2003-09-16 Andrew Cagney <cagney@redhat.com>
391
392 * buildsym.c: Remove more occurances of "register".
393 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
394 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
395 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
396 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
397 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
398 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
399 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
400 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
401
402 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
403
404 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
405 numbers to enumeration values.
406 * sh-tdep.c: Accomodate above change.
407 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
408 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
409 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
410 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
411 (IS_FPUSH): Rename from IS_FMOV.
412 (sh_extract_struct_value_address): Remove useless comment.
413 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
414 instead of own local values.
415 (sh_dump_tdep): Remove.
416 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
417 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
418
419 2003-09-15 Andrew Cagney <cagney@redhat.com>
420
421 * doublest.c (convert_floatformat_to_doublest): No longer need to
422 cast "exp_bias" to an int. Reverts 2002-12-04 change.
423
424 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
425
426 * values.c (unpack_double): Call floatformat_is_valid.
427
428 2003-09-15 Mark Kettenis <kettenis@gnu.org>
429
430 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
431 ps_strings into a long.
432
433 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
434 _initialize_am64fbsd_nat.
435
436 2003-09-15 Kevin Buettner <kevinb@redhat.com>
437
438 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
439 associated with DW_AT_ranges attribute is out of bounds.
440
441 2003-09-15 David Lecomber <dsl@sources.redhat.com>
442
443 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
444
445 2003-09-14 Michael Chastain <mec@shout.net>
446
447 * config/m68k/nm-apollo68v.h: Delete.
448 * config/m68k/xm-apollo68v.h: Delete.
449
450 2003-09-14 Andrew Cagney <cagney@redhat.com>
451
452 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
453 * dcache.c: Update copyrights and descriptions.
454 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
455
456 2003-09-14 Andrew Cagney <cagney@redhat.com>
457
458 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
459 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
460
461 2003-09-14 Andrew Cagney <cagney@redhat.com>
462
463 * alpha-nat.c: Remove some occurances of "register".
464 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
465 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
466 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
467 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
468 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
469 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
470 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
471 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
472 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
473 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
474 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
475 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
476 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
477 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
478 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
479 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
480 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
481 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
482 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
483 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
484 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
485 * values.c, vax-tdep.c, xcoffread.c: Ditto.
486
487 2003-09-13 Andrew Cagney <cagney@redhat.com>
488
489 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
490 * ppc-tdep.h (struct regcache): Declare opaque.
491 * objfiles.h (struct objfile_data): Declare opaque.
492 * cp-support.h (struct objfile): Declare opaque.
493 * linux-nat.h (target_waitstatus): Declare opaque.
494
495 2003-09-14 Mark Kettenis <kettenis@gnu.org>
496
497 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
498 (stabs_argument_has_addr): New architecture method.
499 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
500 * arch-utils.c: Include "buildsym.h".
501 (default_stabs_argument_has_addr): New function.
502 * stabsread.c (define_symbol): Use stabs_argument_has_addr
503 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
504
505 * cris-tdep.c (cris_gdbarch_init): Set
506 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
507 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
508 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
509 * mips-tdep.c (mips_gdbarch_init): Likewise.
510 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
511 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
512
513 2003-09-13 Andrew Cagney <cagney@redhat.com>
514
515 * values.c (using_struct_return): Delete "function" and "funcaddr"
516 parameters.
517 * value.h (using_struct_return): Update declaration.
518 * infcmd.c (finish_command_continuation): Update.
519 (finish_command): Update.
520 * infcall.c (call_function_by_hand): Update.
521 * eval.c (evaluate_subexp_standard): Update.
522
523 2003-09-13 Christopher Faylor <cgf@redhat.com>
524
525 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
526 SSE registers since gdb will not operate correctly without this.
527 Restore include file ordering munged in previous change.
528 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
529
530 2003-09-13 Mark Kettenis <kettenis@gnu.org>
531
532 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
533 REG_STRUCT_HAS_ADDR.
534 * gdbarch.c, gdbarch.h: Updated.
535 * infcall.c (call_function_by_hand): Update.
536 * stabsread.c (define_symbol): Updated.
537
538 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
539
540 2003-09-12 Christopher Faylor <cgf@redhat.com>
541
542 * win32-nat.c: Reorganize so that defines used by target headers are
543 actually defined by the system headers.
544 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
545 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
546
547 2003-09-12 Jim Blandy <jimb@redhat.com>
548
549 * dbxread.c (read_dbx_symtab): Don't report an internal error if
550 the file has no .data, .bss, or .rodata sections. Instead wait
551 until we see a variable alleged to live in one of those sections.
552
553 * dbxread.c (read_dbx_symtab): If we have no .data section and no
554 .bss section, presume that any variables we find live in the
555 .rodata section.
556
557 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
558 offsets for global and static variables.
559
560 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
561 symbol types are, by definition, in the .data section, so it is
562 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
563 If there is no .data section, there should be no N_DATA or N_DATA
564 | N_EXT symbols.
565
566 2003-09-12 Mark Kettenis <kettenis@gnu.org>
567
568 * amd64fbsd-tdep.c: Fix sigtramp recognition.
569 (amd64fbsd_sigcontext_addr): Rewrite.
570 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
571 with correct values.
572 (amd64fbsd_sc_reg_offset): Initialize with correct values.
573 (amd64fbsd_init_abi): Fix typo.
574
575 2003-09-12 Andrew Cagney <cagney@redhat.com>
576
577 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
578 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
579
580 2003-09-12 Andrew Cagney <cagney@redhat.com>
581
582 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
583 "entry_file_highpc". Update comments.
584 * defs.h (deprecated_inside_entry_file): Rename
585 "inside_entry_file".
586 * blockframe.c (deprecated_inside_entry_file): Rename
587 "inside_entry_file".
588 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
589 * vax-tdep.c (vax_frame_chain): Update.
590 * sh64-tdep.c (sh64_frame_chain): Update.
591 * sh-tdep.c (sh_frame_chain): Update.
592 * rs6000-tdep.c (rs6000_frame_chain): Update.
593 * ns32k-tdep.c (ns32k_frame_chain): Update.
594 * mips-tdep.c (mips_frame_chain): Update.
595 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
596 * m32r-tdep.c (m32r_frame_this_id): Update.
597 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
598 * frv-tdep.c (frv_frame_this_id): Update.
599 * d10v-tdep.c (d10v_frame_this_id): Update.
600 * cris-tdep.c (cris_frame_chain): Update.
601 * blockframe.c (legacy_frame_chain_valid): Update.
602 * avr-tdep.c (avr_frame_this_id): Update.
603 * arm-tdep.c (arm_prologue_this_id): Update.
604 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
605 * objfiles.c (objfile_relocate): Update.
606 * mipsread.c (mipscoff_symfile_read): Update.
607 (mipscoff_symfile_read): Update.
608 * mdebugread.c (parse_partial_symbols): Update.
609 * dwarfread.c (read_file_scope): Update.
610 * dwarf2read.c (read_file_scope): Update.
611 * dbxread.c (read_dbx_symtab): Update.
612 (read_dbx_symtab): Update.
613 * coffread.c (complete_symtab): Update.
614
615 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
616
617 * top.c (quit_target): New static helper function.
618 (quit_force): Moved code to quit_target(). Call quit_target()
619 via catch_errors() to catch errors during quit.
620
621 2003-09-11 David Carlton <carlton@kealia.com>
622
623 * buildsym.c (finish_block): Use allocate_block to allocate the
624 block.
625 * mdebugread.c (new_block): Add FIXME.
626
627 2003-09-11 David Carlton <carlton@kealia.com>
628
629 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
630 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
631 (recursive_dump_type): Ditto.
632 * printcmd.c (print_formatted): Ditto.
633 * typeprint.c (print_type_scalar): Ditto.
634 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
635 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
636 * cp-support.h: Declare cp_check_possible_namespace_symbols,
637 maint_cplus_cmd_list.
638 * cp-support.c: Make maint_cplus_cmd_list extern.
639 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
640 command.h.
641 (lookup_symbol_file): Look in possible namespace blocks when
642 appropriate.
643 (initialize_namespace_symtab): New.
644 (get_possible_namespace_block, free_namespace_block)
645 (check_possible_namespace_symbols)
646 (check_possible_namespace_symbols_loop)
647 (check_one_possible_namespace_symbol)
648 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
649 (_initialize_cp_namespace): Ditto.
650 * block.h: Declare allocate_block.
651 * block.c (allocate_block): New.
652 * jv-lang.c (get_java_class_symtab): Allocate blocks via
653 allocate_block.
654 * symfile.h: Update declaration of add_psymbol_to_list.
655 * symfile.c (add_psymbol_to_list): Return the partial symbol in
656 question.
657 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
658 scan_partial_symbols_call.
659 (scan_partial_symbols): Add NAMESPACE argument; update calls to
660 helper functions.
661 (add_partial_symbol): If necessary, scan mangled names for names
662 of namespaces.
663 (add_partial_namespace): Add NAMESPACE argument; generate partial
664 symbols associated to namespaces.
665 (add_partial_enumeration): Add NAMESPACE argument.
666 (new_symbol): Allow namespace syms.
667 (read_namespace): Generate namespace syms.
668 * objfiles.h: Add opaque declaration of struct symtab.
669 (struct objfile): Add cp_namespace_symtab member.
670 * objfiles.c (allocate_objfile): Set
671 objfile->cp_namespace_symtab.
672 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
673 dictionary_h, command_h.
674
675 2003-09-11 Andrew Cagney <cagney@redhat.com>
676
677 * rs6000-tdep.c (rs6000_push_dummy_call): Use
678 regcache_raw_write_signed to set SP_REGNUM, move the operation to
679 near the function's end.
680 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
681 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
682 regcache_raw_write_signed to set SP_REGNUM.
683
684 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
685
686 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
687 orig_addrs is set up properly.
688
689 2003-09-11 Andrew Cagney <cagney@redhat.com>
690
691 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
692 * gdbarch.h, gdbarch.c: Re-generate.
693 * infcall.c (call_function_by_hand): Update.
694 * hppa-tdep.c (hppa_push_arguments): Update.
695 * ada-lang.c (place_on_stack): Update.
696 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
697 * sparc-tdep.c (sparc_gdbarch_init): Update.
698 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
699 * hppa-tdep.c (hppa_gdbarch_init): Update.
700 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
701 stack_align.
702
703 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
704
705 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
706 register do need a frame.
707
708 2003-09-11 Andrew Cagney <cagney@redhat.com>
709
710 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
711 buildable since GDB 5.0.
712 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
713 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
714 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
715 * irix4-nat.c: Delete file.
716 * config/mips/irix4.mh: Delete file.
717 * config/mips/irix3.mh: Delete file.
718 * config/mips/irix3.mt: Delete file.
719 * config/mips/tm-irix3.h: Delete file.
720 * config/mips/nm-irix3.h: Delete file.
721 * config/mips/xm-irix3.h: Delete file.
722 * config/mips/nm-irix4.h: Delete file.
723 * config/mips/xm-irix4.h: Delete file.
724 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
725
726 2003-09-10 J. Brobecker <brobecker@gnat.com>
727
728 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
729 * Makefile.in (hppa-tdep.o): Update dependencies.
730
731 2003-09-10 James E Wilson <wilson@specifixinc.com>
732
733 * MAINTAINERS: Change my e-mail address. Move to paper trail
734 section.
735
736 2003-09-10 Kevin Buettner <kevinb@redhat.com>
737
738 * MAINTAINERS (frv): New ISA entry.
739
740 2003-09-10 Kevin Buettner <kevinb@redhat.com>
741
742 * frv-tdep.c (dis-asm.h): Include.
743 * Makefile.in (frv-tdep.o): Update dependencies.
744
745 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
746
747 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
748 Fix typo for high range of floating registers.
749
750 2003-09-09 David Carlton <carlton@kealia.com>
751
752 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
753 highpc initialization here out of scan_partial_symbols.
754 (scan_partial_symbols): Restructure into a recursive version,
755 calling add_partial_namespace and add_partial_enumeration when
756 appropriate.
757 (add_partial_namespace): New.
758 (add_partial_enumeration, locate_pdi_sibling): Ditto.
759
760 2003-09-09 Andrew Cagney <cagney@redhat.com>
761
762 * rs6000-tdep.c (ppc_push_return_address): Delete function.
763 (rs6000_push_dummy_call): Set LR to BP_ADDR.
764 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
765 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
766
767 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
768 (rs6000_push_dummy_call): Set the "TOC" register.
769
770 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
771 methods "max_register_raw_size", "max_register_virtual_size" or
772 "register_virtual_size".
773
774 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
775
776 * MAINTAINERS: Update my e-mail address.
777
778 2003-09-09 Andrew Cagney <cagney@redhat.com>
779
780 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
781 (rs6000_push_dummy_call): Store the struct return address.
782 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
783
784 2003-09-09 Andrew Cagney <cagney@redhat.com>
785
786 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
787 "ppc_sysv_abi_push_arguments".
788 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
789 "ppc_sysv_abi_push_arguments".
790 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
791 instead of "push_arguments".
792 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
793
794 2003-09-09 Andrew Cagney <cagney@redhat.com>
795
796 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
797 instead of CALL_DUMMY_ADDRESS.
798
799 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
800
801 * p-lang.c: Eliminate "register".
802 * c-lang.c: Ditto.
803 * expprint.c: Ditto.
804 * f-lang.c: Ditto.
805 * jv-lang.c: Ditto.
806 * language.c: Ditto.
807 * m2-lang.c: Ditto.
808 * parse.c: Ditto.
809 * scm-lang.c: Ditto.
810 * objc-lang.c: Ditto.
811
812 2003-09-09 Nick Clifton <nickc@redhat.com>
813
814 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
815
816 2003-09-04 Andrew Cagney <cagney@redhat.com>
817
818 * avr-tdep.c: Include "dis-asm.h".
819 * cris-tdep.c: Include "dis-asm.h".
820 (cris_delayed_get_disassembler): Use "struct disassemble_info"
821 instead of corresponding typedef.
822 * h8300-tdep.c: Include "dis-asm.h".
823 * ia64-tdep.c: Include "dis-asm.h".
824 * i386-tdep.c: Include "dis-asm.h".
825 (i386_print_insn): Use "struct disassemble_info" instead of
826 corresponding typedef.
827 * m68k-tdep.c: Include "dis-asm.h".
828 * mcore-tdep.c: Include "dis-asm.h".
829 * mips-tdep.c: Include "dis-asm.h".
830 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
831 instead of corresponding typedef.
832 * ns32k-tdep.c: Include "dis-asm.h".
833 * s390-tdep.c: Include "dis-asm.h".
834 * sparc-tdep.c: Include "dis-asm.h".
835 * vax-tdep.c: Include "dis-asm.h".
836 * v850-tdep.c: Include "dis-asm.h".
837 * mn10300-tdep.c: Include "dis-asm.h".
838 * rs6000-tdep.c: Include "dis-asm.h".
839 * xstormy16-tdep.c: Include "dis-asm.h".
840 (_initialize_xstormy16_tdep): Delete "extern" declaration of
841 print_insn_xstormy16.
842 * Makefile.in (v850-tdep.o): Update dependencies.
843 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
844 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
845 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
846 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
847 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
848 (gdbarch_h): Remove $(dis_asm_h).
849 * disasm.c: Include "dis-asm.h".
850 (dis_asm_read_memory): Use "struct disassemble_info" instead of
851 corresponding typedef.
852 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
853 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
854 * gdbarch.sh: Do not include "dis-asm.h".
855 (struct disassemble_info): Declare opaque.
856 (TARGET_PRINT_INSN): Update declaration.
857 * gdbarch.h, gdbarch.c: Re-generate.
858
859 2003-09-08 Andrew Cagney <cagney@redhat.com>
860
861 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
862 CALL_DUMMY_ADDRESS, change to a predicate.
863 * gdbarch.h, gdbarch.c: Re-generate.
864 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
865 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
866 * infcall.c (call_function_by_hand): Ditto.
867 * sparc-tdep.c (sparc_push_return_address): Ditto.
868 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
869 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
870 CALL_DUMMY_ADDRESS with entry_point_address.
871 * v850-tdep.c (v850_push_return_address): Ditto.
872 * s390-tdep.c (s390_push_return_address): Ditto.
873 * rs6000-tdep.c (ppc_push_return_address): Ditto.
874 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
875 * mcore-tdep.c (mcore_push_return_address): Ditto.
876 * cris-tdep.c (cris_push_return_address): Ditto.
877 * arm-tdep.c (arm_push_return_address): Ditto.
878
879 2003-09-08 Andrew Cagney <cagney@redhat.com>
880
881 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
882 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
883 and REG_UNMODIFIED to REG_SAME_VALUE.
884 (execute_cfa_program): Update.
885 (dwarf2_frame_cache): Update. Initialize table to
886 REG_UNSPECIFIED, complain if CFI fails to specify a register's
887 location.
888 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
889
890 2003-09-08 Andrew Cagney <cagney@redhat.com>
891
892 * gnu-nat.c: Remove "inline" function attribute.
893 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
894
895 2003-09-08 Kevin Buettner <kevinb@redhat.com>
896
897 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
898 target.
899
900 2003-09-08 Kevin Buettner <kevinb@redhat.com>
901
902 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
903 (frame_extra_info): Rename this struct to frv_unwind_cache.
904 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
905 Add fields ``prev_sp'' and ``base''.
906 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
907 (frv_saved_pc_after_call, frv_init_extra_frame_info)
908 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
909 Delete.
910 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
911 Revise all callers. Fill in the unwind cache argument and make
912 other adjustments to account for new frame mechanisms.
913 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
914 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
915 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
916 (frv_frame_unwind, frv_frame_base): New structs.
917 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
918 additional arguments expected by this method and adjust function
919 body accordingly.
920 (frv_gdbarch_init): Remove calls to the following functions:
921 set_gdbarch_deprecated_init_frame_pc(),
922 set_gdbarch_deprecated_saved_pc_after_call(),
923 set_gdbarch_deprecated_frame_chain(),
924 set_gdbarch_deprecated_frame_saved_pc(),
925 set_gdbarch_deprecated_frame_init_saved_regs(),
926 set_gdbarch_deprecated_push_arguments(),
927 set_gdbarch_deprecated_push_return_address(),
928 set_gdbarch_deprecated_pop_frame(),
929 set_gdbarch_deprecated_call_dummy_words(),
930 set_gdbarch_deprecated_sizeof_call_dummy_words(),
931 set_gdbarch_deprecated_init_extra_frame_info(),
932 set_gdbarch_deprecated_dummy_write_sp(), and
933 set_gdbarch_deprecated_pc_in_call_dummy().
934 Add calls to the following functions:
935 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
936 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
937 frame_base_set_default().
938 * Makefile.in (frv-tdep.o): Update dependencies.
939
940 2003-09-09 Mark Kettenis <kettenis@gnu.org>
941
942 * dwarf2-frame.c (read_encoded_value): Add support for
943 DW_EH_PE_aligned encoding.
944
945 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
946
947 * infrun.c (normal_stop): Don't print a message if the inferior
948 has exited.
949
950 2003-09-08 Jim Blandy <jimb@redhat.com>
951
952 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
953 * dbxread.c: #include "gdb_assert.h".
954 (read_dbx_symtab): If the objfile has no .data section, use the
955 section index for the .bss section instead.
956
957 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
958
959 * frame.c (deprecated_safe_get_selected_frame): New function.
960 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
961 * findvar.c (read_var_value): Call it.
962
963 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
964
965 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
966 (sh64-tdep.o): Add dependencies.
967 * configure.tgt: Add FIXME to sh-*-linux*.
968 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
969 (sh_gdbarch_init): Always set correct sh_show_regs function
970 pointer. Call sh64_gdbarch_init() if machine type is sh5.
971 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
972 * sh64-tdep.c: New file, containing all sh64 related code from
973 sh-tdep.c.
974 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
975 * config/sh/linux.mt (TDEPFILES): Ditto.
976 * config/sh/nbsd.mt (TDEPFILES): Ditto.
977 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
978 * config/sh/wince.mt (TDEPFILES): Ditto.
979
980 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
981
982 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
983 (stop_wait_callback): Handle !lp->signalled also.
984 (lin_lwp_has_pending, flush_callback): New functions.
985 (lin_lwp_wait): Call flush_callback.
986 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
987 (linux_proc_pending_signals): New function.
988 * linux-nat.h (linux_proc_pending_signals): Add prototype.
989
990 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
991
992 From Nick Kelsey <nickk@ubicom.com>:
993 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
994 when the stop PC is at the beginning of a function also.
995
996 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
997
998 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
999 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1000
1001 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1002
1003 * sol-thread.c: Include "gdb_string.h".
1004
1005 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1006
1007 * gcore.c: Reorder include files in alphabetical order. Include
1008 "gdb_assert.h". Various coding style fixes.
1009 (derive_stack_segment, derive_heap_segment): Replace check for
1010 non-null BOTTOM and TOP with gdb_assert.
1011 (derive_heap_segment): Replace check for successful creation of
1012 ZERO with gdb_assert.
1013 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1014
1015 2003-09-04 Andrew Cagney <cagney@redhat.com>
1016
1017 * thread-db.c (verbose_dlsym): New function.
1018 (thread_db_load): Use verbose_dlsym
1019 (thread_db_new_objfile): Print that libthread_db was loaded, and
1020 that thread debugging was enabled.
1021
1022 2003-09-04 Andrew Cagney <cagney@redhat.com>
1023
1024 * configure.tgt: Add "mips64*-*-*" target. Delete
1025 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1026 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1027 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1028 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1029 mips*-sony-*, and mips64*-*-elf* targets.
1030 * config/mips/embedl.mt: Delete file.
1031 * config/mips/embedl64.mt: Delete file.
1032 * config/mips/mips.mt: Delete file.
1033 * config/mips/mips64.mt: Delete file.
1034 * config/mips/tm-embed.h: Delete file.
1035 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1036 * config/mips/embed64.mt: Delete out-of-date comment.
1037
1038 2003-09-04 Andrew Cagney <cagney@redhat.com>
1039
1040 * hppa-tdep.c (hppa_gdbarch_init): Set
1041 "have_nonsteppable_watchpoint".
1042 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1043 * mips-tdep.c (mips_dump_tdep): Do not print
1044 HAVE_NONSTEPPABLE_WATCHPOINT.
1045 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1046 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1047 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1048 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1049
1050 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1051
1052 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1053 unused code. Add comment.
1054
1055 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1056
1057 * breakpoint.c (watchpoint_check): Check for pc being in an
1058 epilogue if watchpoint frame couldn't be found.
1059
1060 2003-09-04 Andrew Cagney <cagney@redhat.com>
1061
1062 * Makefile.in: Re-generate all dependencies.
1063
1064 2003-09-03 Andrew Cagney <cagney@redhat.com>
1065
1066 * arch-utils.h (legacy_print_insn): Delete declaration.
1067 * arch-utils.c (legacy_print_insn): Delete function.
1068 * disasm.c (deprecated_tm_print_insn_info): Delete.
1069 (_initialize_disasm): Delete function, contained code initializing
1070 deprecated_tm_print_insn_info.
1071 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1072 (deprecated_tm_print_insn_info): Delete.
1073 (TARGET_PRINT_INSN): Do not provide a default.
1074 * gdbarch.h, gdbarch.c: Re-generate.
1075
1076 2003-09-03 Andrew Cagney <cagney@redhat.com>
1077
1078 * disasm.c (fprintf_disasm): New function.
1079 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1080 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1081 reverts 2003-08-14 change.
1082 (_initialize_disasm): Call "init_disassemble_info", instead of
1083 INIT_DISASSEMBLE_INFO_NO_ARCH.
1084
1085 2003-09-03 Michael Snyder <msnyder@redhat.com>
1086
1087 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1088
1089 2003-09-03 Andrew Cagney <cagney@redhat.com>
1090
1091 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1092 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1093 * symfile.c (syms_from_objfile): Update.
1094 (reread_symbols): `Update
1095 * exec.c (exec_file_attach): Update.
1096 (exec_file_attach): Update.
1097 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1098 2003-08-29 change.
1099 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1100
1101 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1102
1103 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1104 trad-frame.h.
1105 (arm_get_cache): Delete macro.
1106 (struct arm_prologue_cache): Update comments. Make saved_regs into
1107 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1108 to prev_sp.
1109 (thumb_scan_prologue): Update for cache changes. Don't call
1110 DEPRECATED_PC_IN_CALL_DUMMY.
1111 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1112 argument and use it in desperation search for our prologue. Do not
1113 search past the specified PC.
1114 (arm_make_prologue_cache): Simplify.
1115
1116 (arm_prologue_this_id, arm_prologue_prev_register)
1117 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1118 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1119 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1120 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1121 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1122
1123 (arm_frame_chain_valid, arm_find_callers_reg)
1124 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1125 (arm_pop_frame): Delete obsolete methods.
1126 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1127
1128 (arm_gdbarch_init): Update for new frame methods. Register prologue
1129 and sigtramp unwinders. Set the default frame base method.
1130
1131 * Makefile.in (arm-tdep.o): Update dependencies.
1132 * varobj.c (find_frame_addr_in_frame_chain): Call
1133 get_frame_base_address.
1134 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1135
1136 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1137
1138 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1139 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1140 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1141 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1142 Take NEXT_FRAME and CACHE arguments. Call
1143 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1144 Set unwound_pc in CACHE instead of modifying the frame argument.
1145 Don't bother checking the frame type when looking for sigtramp
1146 frames.
1147 (arm_make_prologue_cache, arm_frame_chain)
1148 (arm_init_extra_frame_info): New functions.
1149
1150 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1151
1152 * arm-tdep.c (arm_get_cache): Define.
1153 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1154 unwound_sp, unwound_pc, and saved_regs.
1155 (thumb_scan_prologue): Take a cache instead of the frame.
1156 (arm_scan_prologue): Likewise.
1157 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1158 instead of a temporary frame.
1159 (arm_init_extra_frame_info): Allocate and use a cache.
1160 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1161
1162 2003-09-03 Andrew Cagney <cagney@redhat.com>
1163
1164 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1165 * config/mips/wince.mt (TM_CLIBS): Ditto.
1166 * config/sh/wince.mt (TM_CLIBS): Ditto.
1167 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1168 * config/sparc/sp64.mt (CC): Delete.
1169
1170 2003-09-03 Andrew Cagney <cagney@redhat.com>
1171
1172 * defs.h: Do not include "arch-utils.h".
1173 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1174 GDB_MULTI_ARCH_PURE.
1175 * configure.in (GDB_MULTI_ARCH): Do not define.
1176 * configure, config.in: Regenerate.
1177 * configure.tgt: Do not set variable "gdb_multi_arch".
1178 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1179 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1180 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1181 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1182 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1183 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1184 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1185 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1186 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1187 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1188 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1189 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1190 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1191 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1192 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1193 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1194 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1195 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1196
1197 2003-08-30 Michael Chastain <mec@shout.net>
1198
1199 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1200 * config/m68k/nm-hp300hpux.h: Delete.
1201 * config/m68k/tm-hp300hpux.h: Delete.
1202 * config/m68k/xm-hp300hpux.h: Delete.
1203 * config/m68k/xm-hp300bsd.h: Delete.
1204 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1205 tm-hp300hpux.h, xm-hp300hpux.h.
1206 * somsolib.c: Remove comment about hp300 shared libraries.
1207
1208 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1209
1210 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1211 Only define PTRACE_GET_THREAD_AREA is not already defined.
1212 Various style fixes in code and comments and some additional
1213 spelling fixes in comments. Move after functions dealing with
1214 debug registers.
1215 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1216 Fix coding-style.
1217
1218 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1219 frame_unwind_register_unsigned instead of
1220 frame_unwind_unsigned_register.
1221
1222 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1223
1224 * configure.in: Search for gethostbyname in libnsl.
1225 * configure: Regenerated.
1226
1227 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1228
1229 * configure.in: Remove redundant AC_MSG_RESULT in check for
1230 uintptr_t in stdint.h.
1231 * configure: Regenerated.
1232
1233 * amd64-nat.h (struct regcache): Add opaque declaration.
1234
1235 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1236 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1237 Change "register array" to "register cache" in comments.
1238 (x86_64_linux_gregset64_reg_offset): New variable.
1239 (GETREGS_SUPPLIES): Remove macro.
1240 (supply_gregset): Call amd64_supply_native_gregset instead of
1241 x86_64_linux_supply_gregset.
1242 (fill_gregset): Rename `regno' to `regnum'. Call
1243 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1244 (store_regs): Rename `regno' to `regnum'.
1245 (store_fpregs): Rename `regno' to `regnum'.
1246 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1247 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1248 Reorganize function a bit.
1249 (store_inferior_registers): Rename `regno' to `regnum'. Use
1250 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1251 Reorganize function a bit.
1252 (_initialize_x86_64_linux_nat): New function.
1253 * config/i386/x86-64linux.mh.
1254
1255 2003-08-29 Andrew Cagney <cagney@redhat.com>
1256
1257 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1258 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1259 (target_remove_watchpoint): Delete macro.
1260 (target_insert_watchpoint): Delete macro.
1261 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1262 (remote_mips_stopped_by_watchpoint): Delete declaration.
1263 (remote_mips_remove_watchpoint): Delete declaration.
1264 (remote_mips_set_watchpoint): Delete declaration.
1265 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1266 * remote-mips.c (_initialize_remote_mips): Set
1267 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1268 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1269 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1270 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1271 (mips_stopped_by_watchpoint): Rename
1272 remote_mips_stopped_by_watchpoint.
1273 (mips_can_hardware_watchpoint): Rename
1274 remote_mips_can_use_hardware_watchpoint, update function
1275 signature.
1276
1277 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1278
1279 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1280 USER_DS. We haven't given them a register number yet.
1281
1282 * amd64-nat.h: New file.
1283 * amd64-nat.c: New file.
1284 * amd64fbsd-nat.c: Include "amd64-nat.h".
1285 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1286 (amd64fbsd32_r_reg_offset): New variable.
1287 (supply_gregset): Simply call amd64_supply_native_gregset.
1288 (fill_gregset): Rename `regno' to `regnum'. Simply call
1289 amd64_collect_native_gregset.
1290 (fill_fpregset): Rename `regno' to `regnum'.
1291 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1292 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1293 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1294 `fpregset_t'. Call amd64_supply_native_gregset instead of
1295 supply_gregset. Call x86_64_supply_fxsave instead of
1296 supply_fpregset.
1297 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1298 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1299 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1300 `fpregset_t'. Call amd64_collect_native_gregset instead of
1301 fill_gregset. Call x86_64_collect_fxsave instead of
1302 fill_fpregset.
1303 (_initialize_am64fbsd_nat): Initialize
1304 amd64_native_gregset32_reg_offset and
1305 amd64_native_gregset64_reg_offset.
1306 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1307
1308 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1309 null pointer. Fix typo in comment.
1310
1311 * regcache.c (supply_register): Reimplement to call
1312 regcache_raw_supply.
1313 (regcache_collect): Reimplement by calling regcache_raw_collect.
1314
1315 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1316
1317 * regcache.c (register_buffer): Consitify first argument.
1318 (regcache_raw_supply, regcache_raw_collect): New
1319 functions.
1320
1321 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1322
1323 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1324 by Nathan J. Williams.
1325
1326 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1327
1328 * lin-lwp.c (wait_lwp): New function, copied from
1329 stop_wait_callback. Clean up.
1330 (stop_wait_callback): Use wait_lwp.
1331
1332 2003-08-28 Andrew Cagney <cagney@redhat.com>
1333
1334 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1335 flavour and disassembler options.
1336 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1337 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1338 deprecated_tm_print_insn_info.
1339
1340 2003-08-27 Andrew Cagney <cagney@redhat.com>
1341
1342 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1343 Use target_read_memory.
1344 (s390_get_frame_info): Update. Do not reference
1345 deprecated_tm_print_insn_info.
1346 (s390_check_function_end, s390_is_sigreturn): Ditto.
1347
1348 2003-08-27 Andrew Cagney <cagney@redhat.com>
1349
1350 * Makefile.in (cris-tdep.o): Update dependencies.
1351 * cris-tdep.c: Include "gdb_assert.h".
1352 (cris_gdbarch_init): Set print_insn.
1353 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1354 (cris_delayed_get_disassembler): Simplify, directly call the
1355 disassembler returned by cris_get_disassembler.
1356 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1357 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1358 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1359 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1360 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1361 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1362 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1363 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1364 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1365 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1366 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1367 (gdb_print_insn_sparc): Delete function.
1368 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1369 deprecated_tm_print_insn_info.
1370 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1371 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1372 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1373 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1374 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1375 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1376 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1377 (s390_gdbarch_init): Set print_insn.
1378
1379 2003-08-27 Andrew Cagney <cagney@redhat.com>
1380
1381 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1382 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1383 * infcall.c (call_function_by_hand): Convert the entry point
1384 address into a code address.
1385
1386 2003-08-27 Andrew Cagney <cagney@redhat.com>
1387
1388 * dsrec.c: Include "gdb_string.h".
1389 * Makefile.in (dsrec.o): Update dependencies.
1390
1391 2003-08-27 Michael Chastain <mec@shout.net>
1392
1393 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1394
1395 2003-08-27 Andrew Cagney <cagney@redhat.com>
1396
1397 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1398 (alpha_osf1_init_abi): Do not set call_dummy_address.
1399
1400 2003-08-27 David Carlton <carlton@kealia.com>
1401
1402 From Randolph Chung <tausq@debian.org>:
1403 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1404 compiles with -Wformat-nonliteral -Werror.
1405
1406 2003-08-26 Jim Blandy <jimb@redhat.com>
1407
1408 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1409 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1410 bfd_lookup_symbol, since we only want symbols in code sections.
1411 (look_for_base): Pass zero as the SECT_FLAGS argument to
1412 bfd_lookup_symbol, since we're not concerned about which section
1413 the symbol is in.
1414
1415 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1416
1417 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1418 we are frameless or the return address register is already known.
1419
1420 2003-08-26 Andrew Cagney <cagney@redhat.com>
1421
1422 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1423 in size. Add comments.
1424
1425 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1426
1427 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1428 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1429
1430 2003-08-26 Jason Merrill <jason@redhat.com>
1431
1432 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1433 case out of #ifdef MIPS block.
1434
1435 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1436
1437 PR java/1322
1438 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1439 available before calling SECT_OFF_TEXT.
1440 * PROBLEMS: Remove description of java/1322.
1441
1442 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1443
1444 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1445 bof, and nat0-nat127 as pseudo-registers.
1446 (ia64_frame_cache): New struct used to cache frame info.
1447 (ia64_register_reggroup_p): New routine used to override default
1448 register grouping so registers without names are still saved and
1449 restored.
1450 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1451 pseudo values.
1452 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1453 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1454 (ia64_alloc_frame_cache): New routine to create a new
1455 ia64_frame_cache.
1456 (examine_prologue): Change prototype to add next_frame pointer.
1457 Assume frameless until otherwise proven. Verify that the cfm for
1458 current frame matches the cfm that should occur for the prologues
1459 alloc insn and if equal, mark as not frameless. At end of routine,
1460 if not frameless, calculate registers for the previous frame and store
1461 in the cache, if a cache is provided.
1462 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1463 and pass 0 for next_frame.
1464 (ia64_store_return_value): Change to use convert_typed_floating()
1465 instead of calling ia64_convert_to_raw().
1466 (ia64_extract_return_value): Change to use convert_typed_floating()
1467 instead of calling ia64_convert_to_virtual().
1468 (ia64_frame_cache): New routine to support new frame model.
1469 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1470 (ia64_frame_sniffer): Ditto.
1471 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1472 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1473 (ia64_sigtramp_frame_prev_register): Ditto.
1474 (ia64_sigtramp_frame_sniffer): Ditto.
1475 (ia64_frame_base_address): Ditto.
1476 (ia64_extract_struct_value_address): Change to issue error message.
1477 (ia64_frame_align): New routine to align sp.
1478 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1479 (ia64_push_arguments): Removed. Logic moved to
1480 ia64_push_dummy_call().
1481 (ia64_push_return_address): Ditto.
1482 (ia64_unwind_dummy_id): New function.
1483 (ia64_unwind_pc): Ditto.
1484 (ia64_convert_register_p): Ditto.
1485 (ia64_register_to_value): Ditto.
1486 (ia64_value_to_register): Ditto.
1487 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1488 (ia64_register_byte, ia64_register_raw_size): Ditto.
1489 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1490 (ia64_saved_pc_after_call): Ditto.
1491 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1492 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1493 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1494 (ia64_register_convert_to_raw): Ditto.
1495 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1496 (ia64_init_extra_frame_info): Ditto.
1497 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1498 (ia64_gdbarch_init): Remove registering of deprecated functions that
1499 are no longer used. Add registration of new gdbarch functions.
1500 Remove registering deprecated_write_sp. Replace
1501 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1502 Delete set_gdbarch_deprecated_register_convertible(),
1503 set_gdbarch_deprecated_register_convert_to_virtual(), and
1504 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1505 set_gdbarch_deprecated_register_size(),
1506 set_gdbarch_deprecated_register_bytes(),
1507 set_gdbarch_pcregnum(),
1508 set_gdbarch_deprecated_register_byte(),
1509 set_gdbarch_deprecated_register_raw_size(),
1510 set_gdbarch_deprecated_max_register_raw_size(),
1511 set_gdbarch_deprecated_register_virtual_size(),
1512 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1513 Replace set_gdbarch_deprecated_extract_return_value() with
1514 set_gdbarch_extract_return_value(). Remove calls to:
1515 set_gdbarch_deprecated_saved_pc_after_call();
1516 set_gdbarch_deprecated_frame_chain(),
1517 set_gdbarch_deprecated_frame_saved_pc(),
1518 set_gdbarch_deprecated_frame_init_saved_regs(),
1519 set_gdbarch_deprecated_get_saved_register(),
1520 set_gdbarch_deprecated_call_dummy_words(),
1521 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1522 set_gdbarch_deprecated_init_extra_frame_info(),
1523 set_gdbarch_deprecated_frame_args_address(),
1524 set_gdbarch_deprecated_frame_locals_address(),
1525 and set_gdbarch_deprecated_dummy_write_sp().
1526 Add set_gdbarch_convert_register_p(),
1527 set_gdbarch_register_to_value(),
1528 set_gdbarch_value_to_register(),
1529 set_gdbarch_push_dummy_call(),
1530 set_gdbarch_frame_align(),
1531 set_gdbarch_unwind_dummy_id(),
1532 set_gdbarch_unwind_pc(),
1533 frame_unwind_append_sniffer(),
1534 frame_unwind_append_sniffer(),
1535 and frame_base_set_default().
1536
1537 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1538
1539 * configure.tgt: Document need for special "mipsisa64" handling.
1540 (mipsisa64*-*-linux64): Handle as target linux64.
1541 (mipsisa64*-*-*): Handle as target embed64.
1542
1543 2003-08-18 Michael Chastain <mec@shout.net>
1544
1545 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1546 objfile bug.
1547
1548 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1549
1550 * i387-tdep.h: Update copyright date.
1551 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1552
1553 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1554 CFLAGS games to reflect reality.
1555
1556 2003-08-24 Andrew Cagney <cagney@redhat.com>
1557
1558 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1559 GDB_MULTI_ARCH is always non-zero.
1560 * osabi.c (_initialize_gdb_osabi): Ditto.
1561 (gdbarch_init_osabi): Ditto.
1562 * sparc-tdep.c: Ditto for #if code.
1563
1564 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1565
1566 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1567 Update comments.
1568 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1569 comments.
1570 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1571 x86_64_supply_fxsave.
1572 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1573 x86_64_supply_fxsave.
1574 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1575 x86_64_supply_fxsave.
1576
1577 2003-08-23 Andreas Jaeger <aj@suse.de>
1578
1579 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1580 i387_supply_fxsave.
1581
1582 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1583
1584 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1585 i387_supply_register.
1586 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1587 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1588 i387_supply_fsave.
1589 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1590 i387_supply_fxsave.
1591 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1592 i387_supply_fsave.
1593 * i386bsd-nat.c (supply_fpregset): Adjust call to
1594 i387_supply_fsave.
1595 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1596 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1597 supply_fpregset.
1598 (store_inferior_registers): Remove extraneous whitespace. Call
1599 i387_fill_fsave instead of fill_fpregset.
1600 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1601 (supply_fpregset): Likewise.
1602 * i386v4-nat.c (supply_fpregset): Adjust call to
1603 i387_supply_fsave.
1604 * i386-interix-nat.c (supply_fpregset): Adjust call to
1605 i387_supply_fsave.
1606 * i386-linux-nat.c (supply_fpregset): Adjust call to
1607 i387_supply_fsave.
1608 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1609 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1610 i387supply_fsave and i387_supply_fxsave.
1611 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1612 Incorporate code from `i387_supply_register.
1613 (i387_supply_register): Remove.
1614 (i387_supply_fxsave): Add `regnum' argument.
1615 Update comments.
1616 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1617 prototype.
1618 (i387_supply_register): remove prototype.
1619 Update comments.
1620
1621 2003-08-22 Michael Chastain <mec@shout.net>
1622
1623 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1624 Add lines for files in gdb/testsuite/gdb.cp/* that are
1625 still not 8.3 unique.
1626
1627 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1628
1629 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1630 TYPE_VPTR_FIELDNO is valid.
1631
1632 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1633
1634 * utils.c (set_width_command): Remove prototypes.
1635 (set_screen_size): New prototype.
1636 (init_page_info): Simplify by fetching the screen size from
1637 Readline. Call set_screen_size.
1638 (set_screen_size): New function.
1639 (set_width): Add missing whitespace in comment.
1640 (set_width_command): Call set_screen_size.
1641 (set_height_command): New function.
1642 (initialize_utils): Fix formatting. Make "set height" command
1643 call set_height_command. Remove redundant code that turns off
1644 pagination if output isn't a terminal. Remove redundant call to
1645 set_width_command.
1646
1647 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1648
1649 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1650 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1651 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1652 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1653 `case' keyword.
1654 (sparc64_register_info): Give the reister with number
1655 SPARC64_STATE_REGNUM a name.
1656 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1657 %asi and %ccr.
1658 (sparc64_push_dummy_call): Take BIAS into account when checking
1659 stcak alignment.
1660 (sparc_software_single_step): Remove assertions that check whether
1661 NPC and NNPC were zero.
1662 (sparc_supply_rwindow): Make public. Merge functionality with
1663 sparc64_supply_rwindow.
1664 (sparc_fill_rwindow): Make public. Merge functionality with
1665 sparc64_fill_rwindow.
1666 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1667 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1668 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1669 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1670 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1671
1672 * reggroups.c: Add whitespace after declarations of local
1673 variables in functions.
1674
1675 2003-08-21 Michael Chastain <mec@shout.net>
1676
1677 * gdbtypes.h: Change array bound type from an int to enum.
1678
1679 2003-08-21 Andrew Cagney <cagney@redhat.com>
1680
1681 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1682 * config/sparc/tm-sparc.h: Ditto.
1683 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1684 unconditionally.
1685 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1686
1687 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1688
1689 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1690 (register_objfile_data, set_objfile_data, objfile_data): New
1691 prototypes.
1692 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1693 prototypes.
1694 (allocate_objfile): Call objfile_alloc_data.
1695 (free_objfile): Call objfile_free_data.
1696 (struct objfile_data): New.
1697 (struct objfile_data_registration): New.
1698 (struct objfile_data_registry): New.
1699 (objfile_data_registry): New variable.
1700 (register_objfile_data): New function.
1701 (objfile_alloc_data, objfile_free_data): New functions.
1702 (set_objfile_data, objfile_data): New functions.
1703 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1704 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1705 (_initialize_dwarf2_frame): New function and prototype.
1706
1707 2003-08-21 Andrew Cagney <cagney@redhat.com>
1708
1709 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1710 a specific architecture.
1711 * arch-utils.h (set_architecture_from_arch_mach): Delete
1712 declaration.
1713 (target_architecture_hook): Delete declaration.
1714 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1715 (default_float_format): Assume GDB_MULTI_ARCH.
1716 (default_double_format): Assume GDB_MULTI_ARCH.
1717 (set_endian_from_file): Delete function.
1718 (arch_ok): Delete function.
1719 (set_arch): Delete function.
1720 (set_architecture_from_arch_mach): Delete function.
1721 (set_architecture_from_file): Delete function.
1722 (set_architecture): Assume GDB_MULTI_ARCH.
1723 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1724
1725 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1726
1727 Rewrite FreeBSD/sparc64 native configuration.
1728 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1729 * sparc64fbsd-nat.c: New file.
1730 * sparc64fbsd-tdep.c: New file.
1731 * sparc64-tdep.c sparc64-tdep.h: New files.
1732 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1733 sparc64fbsd-tdep.o): New dependencies.
1734 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1735 and sparc64fbsd-tdep.c.
1736 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1737 * config/sparc/fbsd.mh: Remove copyright notice.
1738 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1739 sparcbsd-nat.o.
1740 * config/sparc/fbsd.mt: Remove copyright notice.
1741 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1742 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1743 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1744 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1745 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1746 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1747 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1748 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1749 "sparc/tm-sp64.h".
1750 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1751 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1752
1753 2003-08-21 Michael Chastain <mec@shout.net>
1754
1755 * symtab.h: Add doco on the space critical structures and
1756 some measurements of space usage.
1757
1758 2003-08-21 Michael Snyder <msnyder@redhat.com>
1759
1760 * tracepoint.c (trace_dump_command): Trace break address
1761 is subject to DECR_PC_AFTER_BREAK.
1762 (set_traceframe_context): Make "trace_line" an int.
1763 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1764
1765 2003-08-20 Michael Snyder <msnyder@redhat.com>
1766
1767 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1768 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1769 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1770 argument passing.
1771 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1772 functions, replace sh_push_dummy_call.
1773 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1774
1775 2003-08-20 Michael Chastain <mec@shout.net>
1776
1777 * gdbtypes.h (struct main_type): Rearrange to save space.
1778
1779 2003-08-20 Michael Snyder <msnyder@redhat.com>
1780
1781 * trad-frame.c: Comment typo fix.
1782
1783 2003-08-20 Michael Snyder <msnyder@redhat.com>
1784 Kevin Buettner <kevinb@redhat.com>
1785
1786 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1787 (frv_frame_init_saved_regs): Add declaration.
1788 (frame_extra_info): Add new field ``saved_regs''.
1789 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1790 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1791 Update frame related code.
1792 (frv_extract_struct_value_address): Adjust formatting.
1793 * Makefile.in (frv-tdep.o): Update dependencies.
1794 * config/frv/tm-frv.h (target_insert_watchpoint)
1795 (target_remove_watchpoint, target_insert_hw_breakpoint)
1796 (target_remove_hw_breakpoint): Delete these macros.
1797 (remote_insert_watchpoint, remote_remove_watchpoint)
1798 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1799 these declarations.
1800
1801 2003-08-20 Michael Chastain <mec@shout.net>
1802
1803 * defs.h (ENUM_BITFIELD): New macro.
1804 * symtab.h (ENUM_BITFIELD): Use it.
1805 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1806
1807 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1808
1809 * MAINTAINERS (write after approval): Add myself.
1810
1811 2003-08-18 Andrew Cagney <cagney@redhat.com>
1812
1813 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1814 * gdbarch.h, gdbarch.c: Re-generate.
1815 * infcall.c (call_function_by_hand): Adjust the SP by
1816 frame_red_zone_size before allocating any stack space.
1817 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1818 * x86-64-tdep.c (x86_64_frame_align): New function.
1819 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1820
1821 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1822 Remove code adjusting SP so that it skips over the Red Zone.
1823
1824 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1825
1826 * NEWS (New native configurations): Mention FreeBSD/amd64.
1827
1828 2003-08-18 Andrew Cagney <cagney@redhat.com>
1829
1830 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1831 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1832 "m68k_frame_p".
1833 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1834
1835 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1836
1837 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1838
1839 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1840
1841 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1842 Define.
1843 * i386-linux-nat.c: Include "linux-nat.h".
1844 (child_post_startup_inferior): New function.
1845
1846 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1847
1848 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1849 at the start of a frameless function. This probably fixes PR
1850 backtrace/1338.
1851
1852 2003-08-17 Michael Chastain <mec@shout.net>
1853
1854 * symfile.c (find_sym_fns): Remove special case for apollo target.
1855
1856 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1857
1858 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1859 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1860 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1861 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1862 (linux_supports_tracevforkdone): New function.
1863 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1864 TRACEVFORKDONE.
1865 (child_follow_fork): Handle vfork.
1866 (linux_handle_extended_wait): Likewise. Also handle exec.
1867 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1868 * NEWS: Mention fork tracing.
1869
1870 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1871
1872 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1873
1874 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1875
1876 * Makefile.in (i386-linux-nat.o): Update dependencies.
1877 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1878 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1879 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1880 * i386-linux-nat.c: Include "linux-nat.h".
1881 (child_post_startup_inferior): New function.
1882 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1883 * infptrace.c (kill_inferior): Wrap in #ifdef.
1884 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1885 attaching to each LWP.
1886 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1887 (init_lin_lwp_ops): Fill in some more operations.
1888 * linux-nat.h (linux_enable_event_reporting)
1889 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1890 prototypes.
1891 * linux-nat.c (linux_enable_event_reporting): New function.
1892 (child_post_attach, linux_child_post_startup_inferior)
1893 (child_post_startup_inferior, child_follow_fork)
1894 (linux_handle_extended_wait, kill_inferior): New functions.
1895
1896 2003-08-16 Andrew Cagney <cagney@redhat.com>
1897
1898 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1899 * gdbarch.h, gdbarch.c: Re-generate.
1900
1901 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1902
1903 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1904
1905 2003-08-16 Andrew Cagney <cagney@redhat.com>
1906
1907 * NEWS: Mention that "set prompt-escape-char" was deleted.
1908 * top.c (get_prompt_1): Delete function.
1909 (gdb_prompt_escape):
1910 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1911 prompt-escape-char" command.
1912 (MAX_PROMPT_SIZE): Delete macro.
1913 (get_prompt): Simplify, do not call get_prompt_1.
1914
1915 2003-08-16 Andrew Cagney <cagney@redhat.com>
1916
1917 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1918 -Werror. -Wformat-nonliteral problems.
1919
1920 2003-08-15 J. Brobecker <brobecker@gnat.com>
1921
1922 Further multiarching work mostly for hppa64-*-hpux11:
1923 * hppa-tdep.h: New file.
1924 * hppa-tdep.c: #include hppa-tdep.c.
1925 (hppa32_num_regs): Renamed from hppa_num_regs.
1926 (hppa64_num_regs): New constant.
1927 (hppa64_call_dummy_breakpoint_offset): New constant.
1928 (hppa32_call_dummy_length): New constant.
1929 (hppa64_call_dummy_length): New constant.
1930 (hppa32_stack_align): Make name 32bit explicit.
1931 (hppa32_register_virtual_type): Likewise.
1932 (hppa32_extract_return_value): Likewise.
1933 (hppa32_use_struct_convention): Likewise.
1934 (hppa32_store_return_value): Likewise.
1935 (hppa64_register_virtual_type): New function.
1936 (hppa64_extract_return_value): New function.
1937 (hppa64_use_struct_convention): New function.
1938 (hppa64_store_return_value): New function.
1939 (hppa_frame_locals_address): Remove declaration, function does
1940 not exist anymore.
1941 (hppa_register_byte): Add support for PA64 ABI.
1942 (hppa_gdbarch_init): Add support for PA64 ABI.
1943 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1944 Make name 32bit explicit.
1945 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1946 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1947 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1948 (hppa64_hpux_frame_base_before_sigtramp): New function.
1949 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1950 * config/pa/tm-hppa64.h: Remove macros that are no longer
1951 necessary now that the gdbarch vector is properly setup.
1952 Transform some macros into function calls. Some minor cleanup.
1953 * config/pa/tm-hppah.h: Update function calls in macros
1954 following the function renaming in hppa-hpux-tdep.c.
1955 * Makefile.in (hppa_tdep_h): New variable.
1956 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1957
1958 2003-08-14 Michael Snyder <msnyder@redhat.com>
1959
1960 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1961
1962 2003-08-13 J. Brobecker <brobecker@gnat.com>
1963
1964 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1965 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1966 routine.
1967
1968 2003-08-13 Michael Snyder <msnyder@redhat.com>
1969
1970 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1971 (frv_saved_pc_after_call): Use deprecated ftype.
1972 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1973 (frv_remote_translate_xfer_address): Remove.
1974 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1975
1976 2003-08-13 J. Brobecker <brobecker@gnat.com>
1977
1978 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1979 initialization after the common gdbarch initialization, not before.
1980
1981 2003-08-13 J. Brobecker <brobecker@gnat.com>
1982
1983 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1984 (ADDR_BITS_REMOVE): Remove, redundant.
1985
1986 2003-08-13 J. Brobecker <brobecker@gnat.com>
1987
1988 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1989 gdbarch method to clear the 2 low bits of text addresses.
1990
1991 2003-08-12 Andrew Cagney <cagney@redhat.com>
1992
1993 * Makefile.in (dsrec.o): Update dependencies.
1994 * dsrec.c: Include "gdb_assert.h".
1995 (make_srec): Use snprintf instead of sprintf, use a literal format
1996 string.
1997
1998 2003-08-12 Andrew Cagney <cagney@redhat.com>
1999
2000 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2001 FRAME_OBSTACK_ZALLOC.
2002
2003 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2004
2005 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2006 SSE registers.
2007
2008 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2009
2010 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2011 amd64fbsd_sc_reg_offset): Add extern declarations.
2012 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2013 declarations.
2014
2015 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2016
2017 * MAINTAINERS (write after approval): Update my mail address.
2018
2019 2003-08-10 Andrew Cagney <cagney@redhat.com>
2020
2021 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2022
2023 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2024
2025 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2026 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2027 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2028 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2029 i386bsd_sc_reg_offset): Add extern declarations.
2030 * i386obsd-nat.c: Include "i386-tdep.h"
2031 (_initialize_i386obsd_nat): Remove extern declarations.
2032 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2033 declarations.
2034 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2035 declarations.
2036
2037 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2038 instead of frame_read_register.
2039 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2040 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2041 SP_REGNUM.
2042 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2043 instead of frame_unwind_unsigned_register. Use
2044 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2045 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2046 instead of read_register. Use builtin_type_void_data_ptr instead
2047 of builtin_type_void_func_ptr when extracting the address of the
2048 jmp_buf.
2049 (i386_extract_return_value, i386_store_return_value,
2050 i386_pseudo_register_read, i386_pseudo_register_write): Use
2051 register_size instead REGISTER_RAW_SIZE.
2052
2053 2003-08-10 Andrew Cagney <cagney@redhat.com>
2054
2055 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2056 sprintf. Make "name" constant.
2057
2058 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2059
2060 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2061 instead of frame_read_register.
2062 (i387_print_float_info): Use get_frame_register and
2063 get_frame_register_unsigned instead of frame_register_read.
2064
2065 * i386fbsd-nat.c: Include "i386-tdep.h".
2066 (child_resume): Make `eflags' an ULONGEST. Use
2067 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2068 instead of register_read and register_write.
2069
2070 * i386bsd-nat.c (fetch_inferior_registers,
2071 store_inferior_registers): Don't use && at the end of a line.
2072 (_initialize_i386bsd_nat): Fix typo.
2073
2074 * frame.c (_initialize_frame): Add missing backslash.
2075
2076 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2077 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2078 and supply_register instead of manipulating the register buffer
2079 directly.
2080
2081 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2082 * config/i386/nm-i386sol2.h
2083 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2084
2085 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2086 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2087 instructions that GCC likes to mingle into the prologue. Fixes
2088 gdb/1253 and gdb/1255.
2089
2090 2003-08-09 Andrew Cagney <cagney@redhat.com>
2091
2092 Fix GDB PR cli/926.
2093 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2094 * command.h (add_setshow_uinteger_cmd): Declare.
2095 * frame.c (set_backtrace_cmd): New function.
2096 (show_backtrace_cmd): New function.
2097 * frame.c (_initialize_frame): Replace "set/show
2098 backtrace-below-main" with "set/show backtrace past-main". Add
2099 command "set/show backtrace limit".
2100 (backtrace_past_main): Rename "backtrace_below_main".
2101 (backtrace_limit): New variable.
2102 (get_prev_frame): Update. Check the backtrace_limit.
2103
2104 2003-08-09 Andrew Cagney <cagney@redhat.com>
2105
2106 * defs.h (xstrprintf): Declare.
2107 * utils.c (xstrprintf): New function.
2108 * breakpoint.c (insert_breakpoints): Replace sprintf and
2109 non-literal format strings, with xstrprintf and cleanups.
2110 (delete_breakpoint,breakpoint_re_set): Ditto.
2111 (commands_command, insert_breakpoints): Ditto.
2112 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2113 (break_at_finish_command_1): Ditto.
2114
2115 2003-08-09 Andrew Cagney <cagney@redhat.com>
2116
2117 * MAINTAINERS (language support): List Adam Fedor as Objective C
2118 maintainer.
2119
2120 2003-08-08 J. Brobecker <brobecker@gnat.com>
2121
2122 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2123 are now multiarched.
2124
2125 2003-08-08 J. Brobecker <brobecker@gnat.com>
2126
2127 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2128 longer necessary now that hppa64 is partially multiarch'ed.
2129
2130 2003-08-08 Andrew Cagney <cagney@redhat.com>
2131
2132 * interps.c (interp_set): Check for a NULL "old_interp".
2133
2134 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2135
2136 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2137 (install-only): Support DESTDIR.
2138 (uninstall): Likewise.
2139 (install-gdbtk): Likewise.
2140
2141 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2142
2143 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2144 contains something meaningful at all times.
2145
2146 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2147
2148 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2149
2150 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2151
2152 * MAINTAINERS (write after approval): Added self.
2153
2154 2003-08-07 Andrew Cagney <cagney@redhat.com>
2155
2156 * inferior.h (AT_SYMBOL): Define.
2157 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2158 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2159 * mips-tdep.c (mips_call_dummy_address): Delete function.
2160 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2161 set call_dummy_address.
2162
2163 2003-08-07 Andrew Cagney <cagney@redhat.com>
2164
2165 * language.c (op_error): Delete function.
2166 (binop_type_check): Delete function.
2167 * language.h (type_op_error, range_op_error): Delete macros.
2168 (op_error): Delete declaration.
2169
2170 2003-08-07 Andrew Cagney <cagney@redhat.com>
2171
2172 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2173
2174 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2175
2176 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2177 (x86_64_push_arguments): Skip the red zone.
2178
2179 2003-08-05 Andrew Cagney <cagney@redhat.com>
2180
2181 * reggroups.c (reggroup_next): Check for the final entry.
2182
2183 2003-08-04 Andrew Cagney <cagney@redhat.com>
2184
2185 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2186 * cli/cli-script.c (define_command): Call query directly, instead
2187 of passing it a buffer.
2188 * ocd.c (ocd_error): Pass error a constant format string.
2189 * remote-mips.c (mips_error): Use fputs_filtered.
2190
2191 * solib-svr4.c (_initialize_svr4_solib): Update
2192 register_gdbarch_data call.
2193 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2194
2195 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2196 (register_gdbarch_data): Delete "free" parameter. Update
2197 comments.
2198 * gdbarch.h, gdbarch.c: Re-generate.
2199 * reggroups.c (_initialize_reggroup): Update.
2200 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2201 * frame-base.c (_initialize_frame_base): Update.
2202 * frame-unwind.c (_initialize_frame_unwind): Update.
2203 * user-regs.c (_initialize_user_regs): Update.
2204 * remote.c (_initialize_remote): Update.
2205 * regcache.c (_initialize_regcache): Update.
2206
2207 * regcache.c (xfree_regcache_descr): Delete function.
2208 (_initialize_regcache): Update call to register_gdbarch_data.
2209 (init_regcache_descr, init_legacy_regcache_descr): Use
2210 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2211
2212 * remote.c (free_remote_state): Delete function.
2213 (_initialize_remote): Update register_gdbarch_data.
2214 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2215 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2216
2217 2003-08-04 Andrew Cagney <cagney@redhat.com>
2218
2219 * reggroups.c (struct reggroup_el): Define.
2220 (struct reggroups): Delete field "nr_group". Replace array
2221 "group" with a "first" to "last" linked list.
2222 (reggroups_init): Update. Allocate using gdbarch's obstack.
2223 (reggroups_free): Delete function.
2224 (add_group): Update. Add "el" parameter.
2225 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2226 (default_groups): Update.
2227 (reggroup_next): Replace reggroups.
2228 (reggroups_dump): Update.
2229 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2230 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2231 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2232
2233 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2234
2235 * Makefile.in (tui-interp.o): Update dependencies.
2236
2237 2003-08-04 David Carlton <carlton@kealia.com>
2238
2239 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2240 to internal_error call.
2241 * source.c (forward_search_command): Add "%s" format argument.
2242 (reverse_search_command): Ditto.
2243 * top.c (quit_confirm): Ditto.
2244 * cli/cli-setshow.c (do_setshow_command): Ditto.
2245 * cp-valprint.c (cp_print_class_method): Replace
2246 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2247 (cp_print_class_member): Ditto.
2248 * event-top.c (command_line_handler): Ditto.
2249 * linux-proc.c (linux_info_proc_cmd): Ditto.
2250 * p-typeprint.c (pascal_type_print_base): Ditto.
2251 * p-valprint.c (pascal_object_print_class_method): Ditto.
2252 (pascal_object_print_class_member): Ditto.
2253 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2254 * remote.c (remote_cisco_section_offsets): Ditto.
2255 * top.c (command_line_input): Ditto.
2256 * utils.c (vwarning,error_stream,quit): Ditto.
2257 * valprint.c (print_floating,print_binary_chars)
2258 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2259
2260 2003-08-04 Andrew Cagney <cagney@redhat.com>
2261
2262 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2263
2264 2003-08-02 Andrew Cagney <cagney@redhat.com>
2265
2266 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2267 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2268 amd64fbsd-nat.c.
2269
2270 2003-08-02 Andrew Cagney <cagney@redhat.com>
2271
2272 * Makefile.in: Update all dependencies and definitions.
2273
2274 2003-08-02 Adam Fedor <fedor@gnu.org>
2275
2276 * linespec.c (is_objc_method_format): New function
2277 (decode_line_1, locate_first_half): Use it.
2278 Fixes PR objc/1298
2279
2280 2003-08-01 Andrew Cagney <cagney@redhat.com>
2281
2282 * NEWS: Mention that m32r is multi-arch.
2283 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2284 * configure.tgt: Recognize m32r-*-*.
2285 * config/m32r/tm-m32r.h: Delete file.
2286 * config/m32r/m32r.mt: New file.
2287 * m32r-rom.c (m32r_upload_command): Use hostent only when
2288 gethostname succeeds, in order to avoid a compilation
2289 warning.
2290 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2291 compiler warning.
2292
2293 2003-08-01 Michael Snyder <msnyder@redhat.com>
2294
2295 * sh-tdep.c (sh_frame_align): New gdbarch method.
2296 (sh_gdbarch_init): Set up frame_align method.
2297
2298 2003-07-31 Michael Snyder <msnyder@redhat.com>
2299
2300 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2301 which is already covered by the new frames infrastructure.
2302
2303 2003-07-31 Andrew Cagney <cagney@redhat.com>
2304
2305 * user-regs.c (struct user_reg): Add "next" link.
2306 (struct user_regs): Replace "user" with "first" and "last" links.
2307 (append_user_reg): Add pre-allocated "reg" parameter.
2308 (builtin_user_regs): Provide initial value for "last".
2309 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2310 (user_regs_init): Allocate memory from the gdbarch obstack.
2311 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2312 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2313 linked list.
2314 (usernum_to_user_reg): New function.
2315 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2316 (value_of_user_reg): Use usernum_to_user_reg.
2317 (user_regs_free): Delete function.
2318 (_initialize_user_regs): Update register_gdbarch_data call.
2319
2320 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2321
2322 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2323
2324 2003-07-30 Michael Snyder <msnyder@redhat.com>
2325
2326 * value.h (value_being_returned): Add a struct_addr argument.
2327 * infcall.c (call_function_by_hand): Pass struct_addr to
2328 value_being_returned.
2329 * infcmd.c (print_return_value): Pass zero as struct_addr.
2330 * values.c (value_being_returned): If struct_addr is passed,
2331 use it instead of trying to recover it from the inferior.
2332
2333 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2334
2335 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2336 the prologue analyzer won't need to attempt to extract the pc
2337 value from the woefully incomplete dummy frame.
2338 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2339 possible. Disable code which modifies the frame.
2340
2341 2003-07-28 Andrew Cagney <cagney@redhat.com>
2342
2343 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2344 to level 2.
2345 (annotate_breakpoints_table, annotate_record): Ditto.
2346 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2347 (annotate_field_name_end, annotate_field_value): Ditto.
2348 (annotate_field_end, annotate_frame_source_begin): Ditto.
2349 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2350 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2351 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2352 (annotate_frame_address_end, annotate_frame_address): Ditto.
2353 (annotate_frame_args, annotate_frame_end): Ditto.
2354 (annotate_frame_where, annotate_arg_begin): Ditto.
2355 (annotate_arg_name_end, annotate_arg_value): Ditto.
2356 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2357 (annotate_function_call, annotate_signal_name): Ditto.
2358 (annotate_signal_string, annotate_signal_name_end): Ditto.
2359 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2360 (annotate_value_begin, annotate_value_history_value): Ditto.
2361 (annotate_value_history_end, annotate_value_end): Ditto.
2362 (annotate_display_begin, annotate_display_number_end): Ditto.
2363 (annotate_display_format, annotate_display_expression): Ditto.
2364 (annotate_display_expression_end, annotate_display_value): Ditto.
2365 (annotate_display_end, annotate_array_section_begin): Ditto.
2366 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2367 (annotate_elt, annotate_array_section_end): Ditto.
2368
2369 2003-07-28 Andrew Cagney <cagney@redhat.com>
2370
2371 * regcache.c (struct regcache_descr): Update comments on
2372 nr_raw_registers.
2373 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2374 sizeof_raw_register_valid_p.
2375 (init_regcache_descr): Set nr_raw_registers and
2376 sizeof_raw_register_valid_p before calling
2377 init_legacy_regcache_descr.
2378
2379 2003-07-28 Andrew Cagney <cagney@redhat.com>
2380
2381 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2382 MOD NUM_REGS.
2383
2384 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2385
2386 * thread.c (info_threads_command): Use get_selected_frame ().
2387 Check that there is at least one non-sentinel frame.
2388
2389 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2390
2391 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2392 (m68hc11_pop_frame): Remove.
2393 (m68hc11_frame_saved_pc): Remove.
2394 (m68hc11_frame_chain): Remove.
2395 (m68hc11_frame_init_saved_regs): Remove.
2396 (m68hc11_init_extra_frame_info): Remove.
2397 (m68hc11_store_struct_return): Remove.
2398 (m68hc11_saved_pc_after_call): Remove.
2399
2400 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2401
2402 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2403 frame unwind information.
2404 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2405 and adapted for frame unwinding.
2406 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2407 (m68hc11_unwind_pc): New function.
2408 (m68hc11_frame_unwind_cache): New function to analyze frames.
2409 (m68hc11_frame_this_id): New function to create new frame struct.
2410 (m68hc11_frame_prev_register): New function to unwind a register from
2411 the frame.
2412 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2413 (m68hc11_frame_p): New function for the above.
2414 (m68hc11_frame_base_address): New function to return fp of frame.
2415 (m68hc11_frame_args_address): Update for frame.
2416 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2417 (m68hc11_unwind_sp): New function.
2418 (m68hc11_unwind_dummy_id): New function.
2419 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2420 calls.
2421
2422 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2423
2424 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2425 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2426 when we are beyond the current pc.
2427
2428 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2429
2430 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2431 from m68hc11_push_arguments.
2432 (m68hc11_push_arguments): Remove.
2433 (m68hc11_push_return_address): Remove.
2434 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2435 handlers; remove deprecated_extra_stack_alignment_needed.
2436
2437 2003-07-27 Andrew Cagney <cagney@redhat.com>
2438
2439 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2440 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2441 REAL_PC and not the pointer.
2442 * hppa-hpux-tdep.c: Include frame.h
2443
2444 2003-07-27 Andrew Cagney <cagney@redhat.com>
2445
2446 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2447 GDB_MULTI_ACH_PARTIAL.
2448
2449 2003-07-27 Andrew Cagney <cagney@redhat.com>
2450
2451 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2452 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2453 operator at start and not end of line.
2454 (decode_prologue): Ditto.
2455 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2456 frame_unwind_register_unsigned instead of
2457 frame_unwind_unsigned_register.
2458 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2459 read_register.
2460 (m32r_push_dummy_call): Use register_size instead of
2461 REGISTER_RAW_SIZE.
2462 (m32r_frame_sniffer): Replace m32r_frame_p.
2463 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2464 * m32r-rom.c (report_transfer_performance): Delete extern
2465 declaration.
2466 (m32r_load, m32r_upload_command): Use print_transfer_performance
2467 instead of report_transfer_performance.
2468 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2469 / add_show_from_set.
2470
2471 2003-07-26 Andrew Cagney <cagney@redhat.com>
2472
2473 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2474 store_return_value and extract_struct_value_address.
2475
2476 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2477
2478 PR c++/1267
2479 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2480 NULL, default to the section containing PC.
2481
2482 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2483
2484 * NEWS: Mention "regs" deprecated for m68hc11 too.
2485
2486 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2487 (m68hc11_print_register): New function to print out one register.
2488 (m68hc11_print_registers_info): New function to print registers.
2489 (show_regs): Deprecate and use the above.
2490 (m68hc11_gdbarch_init): Install the print_registers_info.
2491
2492 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2493
2494 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2495 that we have a SIGTRAP before returning non-zero.
2496
2497 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2498 Elena Zannoni <ezannoni@redhat.com>
2499
2500 * linespec.c (decode_line_2): Avoid crash if
2501 find_function_start_sal() returns empty record.
2502
2503 2003-07-23 Andreas Schwab <schwab@suse.de>
2504
2505 * ia64-tdep.c (ia64_print_insn): New function.
2506 (ia64_gdbarch_init): Set print_insn to it.
2507 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2508 deprecated_tm_print_insn_info.
2509
2510 2003-07-22 Michael Snyder <msnyder@redhat.com>
2511
2512 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2513 handle 8-bit returns (long long).
2514 (h8300h_extract_return_value): Ditto.
2515 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2516
2517 2003-07-22 Andrew Cagney <cagney@redhat.com>
2518
2519 * gdbarch.c Include "gdb_obstack.h".
2520 (struct gdbarch): Add an "obstack".
2521 (alloc_gdbarch_data): Allocate the gdbarch data using
2522 GDBARCH_OBSTACK_CALLOC.
2523 (free_gdbarch_data): Delete function.
2524 (gdbarch_obstack_zalloc): New function.
2525 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2526 Assert that the architecture is not initialized.
2527 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2528 vector from the obstack.
2529 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2530 architecture obstack.
2531 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2532 (set_gdbarch_data): Assert that the data is not initialized.
2533 (struct gdbarch_data): Delete member "free".
2534 (register_gdbarch_data): Do not initialize "free".
2535 * gdbarch.h, gdbarch.c: Re-generate.
2536
2537 2003-07-22 Andrew Cagney <cagney@redhat.com>
2538
2539 * configure.in (build_warnings): Add -Wformat-nonliteral.
2540 * configure: Re-generate.
2541
2542 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2543
2544 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2545
2546 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2547
2548 * findvar.c (read_var_value): Remove case for thread local storage
2549 variables. It is now entirely handled by the dwarf2 location
2550 expression code.
2551 * printcmd.c (address_info): Ditto.
2552 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2553 enumeration value.
2554 (struct symbol): Remove objfile field, which was used by
2555 LOC_THREAD_LOCAL_STATIC only.
2556 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2557 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2558 usage of objfile pointer.
2559 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2560 thread local variables.
2561 Add include of objfiles.h.
2562 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2563 storage variables.
2564 * Makefile.in (dwarf2loc.o): Update dependencies.
2565
2566 2003-07-22 Andrew Cagney <cagney@redhat.com>
2567
2568 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2569 get_frame_base.
2570 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2571 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2572 (struct value): Add opaque declaration.
2573 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2574
2575 2003-07-21 Andrew Cagney <cagney@redhat.com>
2576
2577 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2578 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2579
2580 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2581
2582 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2583 regcache_cooked_read_unsigned instead of read_register.
2584 (m68hc11_saved_pc_after_call): Likewise.
2585 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2586 instead of write_register.
2587 (m68hc11_register_type): New function.
2588 (m68hc11_register_virtual_type): Remove.
2589 (m68hc11_store_return_value): Convert to use the regcache.
2590 (m68hc11_extract_struct_value_address): Likewise.
2591 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2592 m68hc11_register_type; undeprecate store_return_value and
2593 extract_struct_value_address.
2594
2595 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2596
2597 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2598 and translate to use regcache.
2599 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2600
2601 2003-07-18 Andrew Cagney <cagney@redhat.com>
2602
2603 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2604 * gdbarch.h, gdbarch.c: Re-generate.
2605 * i386-tdep.c (i386_gdbarch_init): Do not set
2606 DWARF2_BUILD_FRAME_INFO.
2607 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2608 unconditionally.
2609 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2610 DWARF2_BUILD_FRAME_INFO.
2611
2612 2003-07-18 Andrew Cagney <cagney@redhat.com>
2613
2614 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2615 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2616
2617 2003-07-18 Andrew Cagney <cagney@redhat.com>
2618
2619 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2620 frame_unwind_address_in_block, instead of frame_pc_unwind.
2621 (dwarf2_frame_cache): Ditto.
2622
2623 2003-07-18 Andrew Cagney <cagney@redhat.com>
2624
2625 * user-regs.h (struct gdbarch): Declare opaque.
2626 * ui-out.h (struct ui_file): Declare opaque.
2627 * dwarf2-frame.h (struct frame_info): Declare opaque.
2628
2629 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2630
2631 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2632 #include "...".
2633 (procfs_meminfo): Change strerror to safe_strerror.
2634 (procfs_can_run): Remove K&R badness.
2635
2636 2003-07-17 Michael Snyder <msnyder@redhat.com>
2637
2638 * remote-sim.c: Comment typo fix.
2639
2640 2003-07-17 Andrew Cagney <cagney@redhat.com>
2641
2642 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2643 configure.
2644 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2645 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2646 GDB_MULTI_ARCH_PARTIAL.
2647
2648 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2649
2650 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2651 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2652 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2653
2654 2003-07-16 Theodore A. Roth <troth@openavr.org>
2655
2656 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2657 found.
2658 (avr_frame_unwind_cache): Don't unwind FP for main.
2659 Update a comment.
2660 Save the computed prev_sp.
2661 (avr_saved_regs_unwinder): Remove function.
2662 (avr_frame_prev_register): Use PC unwind logic from
2663 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2664
2665 2003-07-16 Andrew Cagney <cagney@redhat.com>
2666
2667 * frame-base.h (frame_base_p_ftype): Delete definition.
2668 (frame_base_append_predicate): Delete declaration.
2669 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2670 (frame_unwind_append_predicate): Delete declaration.
2671 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2672 (append_predicate): Delete parameter "p".
2673 (frame_unwind_append_predicate): Delete function.
2674 (frame_unwind_append_sniffer): Update call to append_predicate.
2675 (frame_unwind_free): Delete function.
2676 (_initialize_frame_unwind): Pass NULL as "free" to
2677 register_gdbarch_data.
2678 (frame_unwind_init): Append the dummy_frame_sniffer.
2679 (frame_unwind_find_by_frame): Simplify.
2680 * frame-base.c (struct frame_base_table): Delete field "p".
2681 (append_predicate): Delete parameter "p".
2682 (frame_base_append_predicate): Delete function.
2683 (frame_base_append_sniffer): Update call to append_predicate.
2684 (frame_base_free): Delete function.
2685 (frame_base_find_by_frame): Simplify.
2686 (_initialize_frame_base): Pass NULL as "free" to
2687 register_gdbarch_data.
2688 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2689 (x86_64_sigtramp_frame_sniffer): Replace
2690 "x86_64_sigtramp_frame_p".
2691 (x86_64_init_abi): Set the frame unwind sniffers.
2692 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2693 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2694 (m68k_gdbarch_init): Set the frame unwind sniffers.
2695 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2696 "i386_sigtramp_frame_p".
2697 (i386_frame_sniffer): Replace "i386_frame_p".
2698 (i386_gdbarch_init): Set the frame unwind sniffers.
2699 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2700 (avr_gdbarch_init): Set the frame unwind sniffers.
2701 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2702 "alpha_sigtramp_frame_p"
2703 (alpha_heuristic_frame_sniffer): Replace
2704 "alpha_heuristic_frame_p".
2705 (alpha_gdbarch_init): Set the frame unwind sniffers.
2706 (alpha_dwarf2_init_abi): Ditto.
2707 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2708 "alpha_debug_frame_p".
2709 (alpha_mdebug_frame_base_sniffer): Replace
2710 "alpha_mdebug_frame_base_p".
2711 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2712 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2713 (d10v_gdbarch_init): Set the frame unwind sniffer.
2714 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2715 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2716 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2717 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2718 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2719 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2720
2721 2003-07-16 Michael Snyder <msnyder@redhat.com>
2722
2723 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2724 should go thru sh_dsp_register_sim_regno, else the dsp regs
2725 will not get the right values.
2726
2727 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2728
2729 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2730 deprecated_store_floating by call to store_typed_floating.
2731 (sh_sh4_register_convert_to_raw): Substitute call to
2732 deprecated_extract_floating by call to extract_typed_floating.
2733
2734 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2735
2736 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2737
2738 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2739
2740 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2741 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2742 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2743 as possible.
2744 (do_pseudo_register): Remove.
2745 (sh_push_dummy_code): New function.
2746 (sh64_store_struct_return): Rename from sh_store_struct_return.
2747 Only called for sh64 now.
2748 (sh_extract_struct_value_address): Regcache'ify.
2749 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2750 and accomodate new tasks.
2751 (sh64_push_return_address): Rename from sh_push_return_address.
2752 Only called for sh64 now.
2753 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2754 Regcache'ify.
2755 (sh3e_sh4_extract_return_value): Regcache'ify.
2756 (sh_default_store_return_value): Ditto.
2757 (sh3e_sh4_store_return_value): Ditto.
2758 (sh_default_register_byte): Remove.
2759 (sh_sh4_register_byte): Remove.
2760 (sh_default_register_raw_size): Remove.
2761 (sh_sh4_register_raw_size): Remove.
2762 (sh_register_virtual_size): Remove.
2763 (sh_sh3e_register_virtual_type): Remove.
2764 (sh_sh3e_register_type): New function.
2765 (sh_sh4_register_virtual_type): Remove.
2766 (sh_sh4_register_type): New function.
2767 (sh_default_register_virtual_type): Remove.
2768 (sh_default_register_type): New function.
2769 (do_fv_register_info): Add parameters to accomodate call from
2770 sh_print_registers_info.
2771 (do_dr_register_info): Ditto.
2772 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2773 Add parameters to accomodate call from sh_print_registers_info.
2774 (sh_do_fp_register): Ditto.
2775 (sh64_do_pseudo_register): Call do_dr_register_info,
2776 do_fv_register_info and sh_do_fp_register with default parameters.
2777 (sh_do_register): Add parameters to accomodate call from
2778 sh_print_registers_info.
2779 (sh_print_register): Ditto.
2780 (sh_print_registers_info): Rename from sh_do_registers_info.
2781 Add parameters to be used as gdbarch_print_registers_info
2782 implementation. Accomodate removed do_pseudo_register function
2783 pointer.
2784 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2785 function pointer. Call sh_print_register with default parameters.
2786 (sh64_do_registers_info): Call sh_print_registers_info instead of
2787 sh_do_registers_info.
2788 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2789 detection of deprecated vs. non-deprecated functionality.
2790 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2791 function pointer assignments by direct function calls.
2792
2793 2003-07-15 Andrew Cagney <cagney@redhat.com>
2794
2795 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2796 (frame_register_unwind, create_new_frame): Ditto.
2797 (legacy_get_prev_frame, get_frame_type): Ditto.
2798 (get_frame_base_address): Use frame_base_find_by_frame.
2799 (get_frame_locals_address): Use frame_base_find_by_frame.
2800 (get_frame_args_address): Use frame_base_find_by_frame.
2801 * frame-base.h (frame_base_sniffer_ftype): Declare.
2802 (frame_base_append_sniffer): Declare.
2803 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2804 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2805 (frame_base_append_sniffer): New function.
2806 (frame_base_append_predicate): Add a NULL sniffer.
2807 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2808 (struct frame_base_table): Add "sniffer".
2809 (frame_base_free): Free the "sniffer" table.
2810 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2811 (frame_unwind_append_sniffer): Declare.
2812 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2813 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2814 (struct frame_unwind_table): Add "sniffer", delete "middle".
2815 (append_predicate): Add "sniffer" parameter, append the sniffer.
2816 (frame_unwind_init): Update append_predicate call.
2817 (frame_unwind_append_sniffer): New function.
2818 (frame_unwind_append_predicate): Update append_predicate call.
2819 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2820
2821 2003-07-15 Andrew Cagney <cagney@redhat.com>
2822
2823 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2824 before code inhibiting repeated unwind attempts. Add to
2825 commentary on that test's problems.
2826 * blockframe.c (inside_main_func): Look for "main" in the minimal
2827 symbol table.
2828 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2829 identical.
2830
2831 2003-07-15 Andrew Cagney <cagney@redhat.com>
2832
2833 * complaints.c (struct explanation): Define.
2834 (struct complaints): Change type of "explanation" to "struct
2835 explanation".
2836 (symfile_explanations): Convert to a "struct explanation" table.
2837 (vcomplaint): Update.
2838
2839 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2840
2841 * x86-64-linux-nat.c (regmap): Removed.
2842 (supply_gregset, fill_gregset): Call
2843 x86_64_linux_(fill,supply)_gregset functions.
2844 * x86-64-linux-tdep.c (USER_*): New defines.
2845 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2846 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2847 New functions.
2848 (fetch_core_registers): Ditto.
2849 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2850 * x86-64-linux-tdep.h: New file.
2851 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2852 and core-regset.o.
2853 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2854
2855 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2856
2857 * x86-64-tdep.c (x86_64_store_return_value): Use
2858 regcache_cooked_write_part instead of regcache_cooked_write.
2859
2860 * configure.host: Add x86_64-*-freebsd*.
2861 * configure.tgt: Add x86_64-*-freebsd*.
2862 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2863 * amd64fbsd-nat.c: New file.
2864 * amd64fbsd-tdep.c: New file.
2865 * config/i386/nm-fbsd64.h: New file.
2866 * config/i386/fbsd64.mh: New file.
2867 * config/i386/fbsd64.mt: New file.
2868
2869 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2870
2871 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2872 `sc_regs_offset' and `sc_fpregs_offset'.
2873 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2874 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2875 (alpha_sigtramp_register_address): Rewrite to use new members of
2876 `struct gdbarch_tdep'.
2877 (alpha_gdbarch_init): Initialize new members of struct
2878 gdbarch_tdep'.
2879 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2880 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2881 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2882 (alphafbsd_pc_in_sigtramp): Implement.
2883 (alphafbsd_sigtramp_offset): New function.
2884 (alphafbsd_sigcontext_addr): New function.
2885 (alphafbsd_init_abi): Initialize signal trampoline related members
2886 of `struct gdbarch_tdep'.
2887 (_initialize_alphafbsd_tdep): Add prototype.
2888
2889 2003-07-11 Theodore A. Roth <troth@openavr.org>
2890
2891 * Makefile.in (install-only): Quote sed expression when generating
2892 transformed_name.
2893
2894 2003-07-11 Richard Henderson <rth@redhat.com>
2895
2896 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2897 * dwarf2-frame.c: Include complaints.h.
2898 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2899 variable initialization; return NULL on error.
2900 (decode_frame_entry): New.
2901
2902 2003-07-11 Andrew Cagney <cagney@redhat.com>
2903
2904 * frame.h (frame_address_in_block): Delete declaration.
2905 * blockframe.c (frame_address_in_block): Delete function.
2906 (get_frame_block): Use get_frame_address_in_block.
2907 (block_innermost_frame): Ditto.
2908 * stack.c (print_frame, backtrace_command_1): Ditto.
2909
2910 * frame.h (get_frame_address_in_block): Declare.
2911 (frame_unwind_address_in_block): Declare.
2912 * frame.c (frame_unwind_address_in_block): New function.
2913 (get_frame_address_in_block): New function.
2914
2915 2003-07-10 Andrew Cagney <cagney@redhat.com>
2916
2917 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2918 pre-default. Note: re-generate has no effect.
2919
2920 2003-07-10 Andrew Cagney <cagney@redhat.com>
2921
2922 * gdbarch.sh: When a variable, but not a function, compare against
2923 0. Fix problem in previous patch.
2924 * gdbarch.c: Re-generate.
2925
2926 2003-07-10 Andrew Cagney <cagney@redhat.com>
2927
2928 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2929 functions against NULL, not 0.
2930 * gdbarch.c: Re-generate.
2931
2932 2003-07-10 Fred Fish <fnf@ninemoons.com>
2933
2934 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2935 null string instead of a null pointer.
2936 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2937
2938 2003-07-09 Michael Snyder <msnyder@redhat.com>
2939
2940 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2941
2942 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2943
2944 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2945 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2946 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2947 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2948 * x86-64-tdep.c: ... from here.
2949
2950 2003-07-09 Andreas Schwab <schwab@suse.de>
2951
2952 * m68k-tdep.h (enum struct_return): Define.
2953 (struct gdbarch_tdep): Add struct_return.
2954 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2955 bytes are padded to the right, not to the left. Pass struct value
2956 address in register %a1, not on stack.
2957 (m68k_use_struct_convention): New function.
2958 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2959 struct_return in tdep to pcc_struct_return.
2960 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2961 reg_struct_return.
2962
2963 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2964
2965 * somread.c (som_symfile_offsets): Fix compilation error.
2966
2967 2003-07-09 Andrew Cagney <cagney@redhat.com>
2968
2969 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2970 Add comments about the checks.
2971
2972 2003-07-08 Andrew Cagney <cagney@redhat.com>
2973
2974 * Makefile.in: Make dependency section headers consistent.
2975 (config_h): Move to $BUILD headers section.
2976 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2977 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2978 (ada-exp.tab.c): Move to YACC/LEX section.
2979 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2980 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2981
2982 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2983
2984 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2985 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2986 of strerror with safe_strerror, use ISO C function definitions,
2987 and replace instances of sprintf with snprintf.
2988
2989 2003-07-07 Andrew Cagney <cagney@redhat.com>
2990
2991 * frame.c (get_prev_frame): Enable check for identical frames.
2992 Update comments. Update error messages.
2993
2994 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2995
2996 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2997
2998 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2999
3000 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3001 sort_symtab_syms, no longer necessary.
3002
3003 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3004
3005 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3006
3007 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3008
3009 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3010 (mips_register_byte): Likewise.
3011
3012 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3013
3014 * Makefile.in (sparc_tdep_h): New.
3015 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3016 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3017 * sparc-linux-nat.c: Include "sparc-tdep.h".
3018 * sparc-nat.c: Likewise.
3019 * sparc-tdep.c: Likewise.
3020 * sparc64nbsd-nat.c: Likewise.
3021 * sparcnbsd-nat.c: Likewise.
3022 * sparcnbsd-tdep.c: Likewise.
3023 * sparc-tdep.h: New file.
3024 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3025 and sparc_npc_regnum.
3026
3027 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3028
3029 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3030 (mips_linux_cannot_store_register): List supported instead of
3031 unsupported registers.
3032
3033 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3034
3035 * disasm.c (dump_insns): Separate instructions from addresses.
3036
3037 2003-07-07 Andreas Schwab <schwab@suse.de>
3038
3039 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3040 dependencies.
3041 * m68k-tdep.c (NUM_FREGS): Delete.
3042 (SIG_PC_FP_OFFSET): Delete.
3043 (TARGET_M68K): Delete.
3044 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3045 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3046 P_MOVEL_SP, P_MOVEML_SP): Define.
3047 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3048 P_TRAP): Delete.
3049 (m68k_register_raw_size): Delete.
3050 (m68k_register_virtual_size): Delete.
3051 (m68k_register_type): Renamed from m68k_register_virtual_type and
3052 add gdbarch argument.
3053 (m68k_store_struct_return): Delete.
3054 (m68k_deprecated_extract_return_value): Delete.
3055 (m68k_deprecated_extract_struct_value_address): Delete.
3056 (m68k_frame_chain): Delete.
3057 (m68k_frame_saved_pc): Delete.
3058 (m68k_fix_call_dummy): Delete.
3059 (m68k_push_dummy_frame): Delete.
3060 (m68k_pop_frame): Delete.
3061 (m68k_extract_return_value): New function.
3062 (m68k_store_return_value): Rewrite using regcache.
3063 (m68k_extract_struct_value_address): Rewrite using regcache.
3064 (m68k_push_dummy_call): New function.
3065 (struct m68k_frame_cache): Define.
3066 (m68k_alloc_frame_cache): New function.
3067 (m68k_analyze_frame_setup): New function.
3068 (m68k_analyze_register_saves): New function.
3069 (m68k_analyze_prologue): New function.
3070 (m68k_skip_prologue): Rewrite using above functions.
3071 (m68k_unwind_pc): New function.
3072 (m68k_frame_cache): New function.
3073 (m68k_frame_this_id): New function.
3074 (m68k_frame_prev_register): New function.
3075 (m68k_frame_unwind): New variable.
3076 (m68k_frame_p): New function.
3077 (m68k_sigtramp_frame_cache): New function.
3078 (m68k_sigtramp_frame_this_id): New function.
3079 (m68k_sigtramp_frame_prev_register): New function.
3080 (m68k_sigtramp_frame_unwind): New variable.
3081 (m68k_sigtramp_frame_p): New function.
3082 (m68k_frame_base_address): New function.
3083 (m68k_frame_base): New function.
3084 (m68k_unwind_dummy_id): New function.
3085 (fill_gregset): Use regcache_collect.
3086 (fill_fpregset): Likewise.
3087 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3088 defined.
3089 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3090 deprecated_init_frame_pc, deprecated_store_struct_return,
3091 deprecated_extract_return_value, deprecated_store_return_value,
3092 deprecated_frame_chain, deprecated_frame_saved_pc,
3093 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3094 deprecated_register_virtual_size,
3095 deprecated_max_register_raw_size,
3096 deprecated_max_register_virtual_size,
3097 deprecated_register_virtual_type, deprecated_register_size,
3098 deprecated_register_byte, deprecated_register_bytes,
3099 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3100 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3101 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3102 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3103 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3104 deprecated_push_dummy_frame, deprecated_pop_frame,
3105 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3106 only if SYSCALL_TRAP is defined. Set extract_return_value,
3107 store_return_value, extract_struct_value_address, register_type,
3108 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3109 predicates.
3110 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3111 M68K_MAX_REGISTER_SIZE): Define.
3112 (struct m68k_sigtramp_info): Define.
3113 (struct gdbarch_tdep): Add get_sigtramp_info.
3114 * m68klinux-nat.c (fetch_register): Use register_size instead of
3115 REGISTER_RAW_SIZE. Don't put assignment in if.
3116 (store_register): Likewise.
3117 (fetch_inferior_registers): Likewise.
3118 (store_inferior_registers): Likewise.
3119 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3120 (m68k_linux_frame_saved_pc): Delete.
3121 (m68k_linux_sigcontext_reg_offset,
3122 m68k_linux_ucontext_reg_offset): Define.
3123 (m68k_linux_get_sigtramp_info): New function.
3124 (m68k_linux_extract_return_value): Rewrite using regcache.
3125 (m68k_linux_store_return_value): Likewise.
3126 (m68k_linux_extract_struct_value_address): Likewise.
3127 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3128 Don't set deprecated_frame_saved_pc,
3129 deprecated_extract_return_value, deprecated_store_return_value,
3130 deprecated_extract_struct_value_address. Set
3131 extract_return_value, store_return_value,
3132 extract_struct_value_address.
3133
3134 2003-07-07 Andrew Cagney <cagney@redhat.com>
3135
3136 * expprint.c: Include "user-regs.h" instead of "frame.h".
3137 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3138 frame_map_regnum_to_name.
3139 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3140 (frame_map_name_to_regnum): Simplify, call
3141 user_reg_map_name_to_regnum.
3142 (frame_map_regnum_to_name): Simplify, call
3143 user_reg_map_regnum_to_name.
3144 (frame_register_unwind): Update.
3145 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3146 (_initialize_frame_reg): Call user_reg_add_builtin.
3147 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3148 (value_of_register): Use value_of_user_reg.
3149 * eval.c (evaluate_subexp_standard): Update.
3150 * parse.c (write_dollar_variable): Update.
3151 * d10v-tdep.c (d10v_print_registers_info): Update.
3152 * infcmd.c (registers_info): Update.
3153 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3154 (builtin_regs_h): Delete macro.
3155 (user_regs_h): Define.
3156 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3157 (builtin-regs.o): Delete target.
3158 (user-regs.o): Specify dependencies.
3159 (expprint.o): Update dependencies.
3160 (findvar.o): Update dependencies.
3161 (frame.o): Update dependencies.
3162 (std-regs.o): Update dependencies.
3163
3164 2003-07-06 Christopher Faylor <cgf@redhat.com>
3165
3166 * win32-nat.c (solib_symbols_add): Use one variable for all section
3167 address stuff. Pass variable rather than address of variable to
3168 safe_symbol_file_add.
3169
3170 2003-07-06 Andreas Schwab <schwab@suse.de>
3171
3172 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3173
3174 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3175
3176 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3177
3178 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3179
3180 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3181
3182 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3183
3184 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3185 * config/i386/nto.mh: New file.
3186 * config/i386/nm-nto.h: New file.
3187 * configure.host: Add i[3456]86-*-nto*.
3188
3189 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3190
3191 * remote-vx.c (vx_add_symbols): Fix compilation error.
3192
3193 2003-07-03 Andrew Cagney <cagney@redhat.com>
3194
3195 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3196 * gdbarch.h, gdbarch.c: Re-generate.
3197 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3198 (legacy_register_name): Declare.
3199 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3200 (REGISTER_NAME): Define.
3201 * sparc-tdep.c (legacy_register_name): New function.
3202 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3203 (REGISTER_NAME): Define.
3204 (hppa64_register_name): Declare.
3205 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3206 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3207 (hppa64_register_name): New function.
3208 (hppa_register_name): New function.
3209 * arch-utils.c (legacy_register_name): Delete.
3210 * arch-utils.h (legacy_register_name): Delete.
3211
3212 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3213
3214 * cli/cli-interp.c (cli_interpreter_resume): Update the
3215 cli_uiout's stream to gdb_stdout.
3216
3217 2003-07-03 Andrew Cagney <cagney@redhat.com>
3218
3219 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3220 predicate.
3221 * gdbarch.h, gdbarch.c: Re-generate.
3222 * regcache.c (init_regcache_descr): Use legacy code when either
3223 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3224
3225 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3226
3227 * NEWS: Move "set logging" entry into GDB 6.0 section.
3228
3229 2003-07-02 Jim Blandy <jimb@redhat.com>
3230
3231 * s390-tdep.c (struct frame_extra_info): new member:
3232 'stack_bought_valid'.
3233 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3234 initialize fextra_info->stack_bought.
3235 (s390_frameless_function_invocation): Don't trust the value of
3236 fextra_info_ptr->stack_bought unless
3237 fextra_info->stack_bought_valid is set.
3238
3239 New S390 prologue analyzer.
3240 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3241 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3242 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3243 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3244 compute_x_addr, s390_on_stack, s390_store,
3245 s390_get_signal_frame_info): New functions.
3246 (S390_NUM_SPILL_SLOTS): New macro.
3247 (s390_get_frame_info): Rewritten.
3248 (is_arg_reg): Deleted.
3249
3250 Break out the decoding of S/390 instructions into separate
3251 functions, to make it more legible, and easier to check
3252 against the spec.
3253 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3254 is_rx, is_rxe): New functions.
3255 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3256 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3257 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3258 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3259 enums for opcode values. (Is this an improvement?)
3260
3261 2003-07-02 Andrew Cagney <cagney@redhat.com>
3262
3263 * i386-tdep.c: Revert change committed as part of trad-frame code
3264 below.
3265
3266 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3267
3268 * breakpoint.c (insert_catchpoint): Make static.
3269
3270 2003-07-02 Andreas Schwab <schwab@suse.de>
3271
3272 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3273 former ia64_push_arguments and ia64_push_return_address, and use
3274 regcache functions instead of read/write_register.
3275 (ia64_gdbarch_init): Set push_dummy_call instead of
3276 deprecated_push_arguments and deprecated_push_return_address.
3277
3278 2003-07-01 Andreas Jaeger <aj@suse.de>
3279
3280 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3281 before the call.
3282 Set %rax only to number of SSE registers used.
3283
3284 2003-07-01 Andrew Cagney <cagney@redhat.com>
3285
3286 * trad-frame.h: Update comments, a -1 .addr is reserved.
3287 (trad_frame_value_p, trad_frame_addr_p): Declare.
3288 (trad_frame_reg_p): Declare.
3289 (trad_frame_set_value): Rename trad_frame_register_value.
3290 (trad_frame_set_unknown): Declare.
3291 * trad-frame.c (trad_frame_realreg_p): New function.
3292 (trad_frame_addr_p, trad_frame_value_p): New function.
3293 (trad_frame_set_unknown): New function.
3294 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3295 (trad_frame_prev_register): Use trad_frame_realreg_p,
3296 trad_frame_addr_p and trad_frame_value_p.
3297 (trad_frame_set_value): Rename trad_frame_register_value.
3298 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3299 and trad_frame_set_value.
3300
3301 2003-06-30 Jim Blandy <jimb@redhat.com>
3302
3303 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3304 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3305 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3306 for 16 registers, and then 32 more bytes.
3307 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3308 New macros.
3309 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3310 Move up in the file, since it's now used by is_simple_arg.
3311 (is_simple_arg): Don't assume registers are four bytes long.
3312 Exclude all double arguments. Extended floats are not simple
3313 args.
3314 (is_power_of_two): New function.
3315 (pass_by_copy_ref): Call is_power_of_two, and check that the
3316 length fits in a register, rather than listing all the acceptable
3317 sizes. Extended floats are not passed by reference.
3318 (s390_push_arguments): Don't assume registers are four bytes long.
3319 Reserve an argument register to point to the buffer for structures
3320 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3321 S390_STACK_FRAME_OVERHEAD.
3322
3323 2003-06-30 Andreas Schwab <schwab@suse.de>
3324
3325 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3326 format error message.
3327
3328 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3329
3330 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3331
3332 2003-06-30 David Carlton <carlton@kealia.com>
3333
3334 Band-aid for PR c++/1245.
3335 * Makefile.in (cp-support.o): Depend on complaints_h.
3336 * cp-support.c: Include complaints.h. Add declaration for
3337 find_last_component.
3338 (cp_find_first_component): Separate code into
3339 cp_find_first_component_aux.
3340 (cp_find_first_component_aux): Call demangled_name_complaint.
3341 (demangled_name_complaint): New.
3342
3343 2003-06-30 Andrew Cagney <cagney@redhat.com>
3344
3345 * remote.c (remote_write_bytes): Explicitly compute and then use
3346 the payload size. Update comments to reflect. Fixes problem of
3347 GDB not sending small packets as found by Fred Fish.
3348
3349 2003-06-30 Andrew Cagney <cagney@redhat.com>
3350
3351 * remote.c (remote_async_wait): Fix -Wformat problem.
3352
3353 2003-06-29 Andrew Cagney <cagney@redhat.com>
3354
3355 * remote.c (remote_wait): Call error, and not warning, when the
3356 packet is corrupt.
3357 (remote_async_wait): Ditto.
3358
3359 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3360
3361 * sparc-tdep.c (sparc_y_regnum): Make external again.
3362
3363 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3364
3365 * cli/cli-logging.c (pop_output_files): Add void to function
3366 definition.
3367
3368 2003-06-29 Andrew Cagney <cagney@redhat.com>
3369
3370 * frame.c (frame_register_unwind): Use unsigned char when dumping
3371 the buffer contents.
3372
3373 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3374
3375 * cli/cli-logging.c: New file.
3376 * cli-out.c (struct ui_out_data): Add original_stream.
3377 (cli_redirect): New function.
3378 (cli_ui_out_impl): Add cli_redirect.
3379 (cli_out_new): Initialize original_stream.
3380 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3381 (uo_redirect, ui_out_redirect): New.
3382 * ui-out.h (struct ui_out_impl): Add redirect member.
3383 (redirect_ftype): New.
3384 (ui_out_redirect): Add prototype.
3385 * Makefile.in: Add rules for cli-logging.c.
3386 * NEWS: Mention "set logging".
3387
3388 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3389
3390 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3391
3392 2003-06-27 Andrew Cagney <cagney@redhat.com>
3393
3394 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3395 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3396 * avr-tdep.c (avr_call_dummy_address): Delete function.
3397 (avr_gdbarch_init): Do not set call_dummy_address.
3398
3399 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3400
3401 * symfile.c (syms_from_objfile): Move variables to inner block.
3402 Move the checks for the non-mainline case a bit earlier to avoid
3403 doing some useless computations.
3404
3405 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3406
3407 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3408
3409 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3410
3411 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3412 sections.
3413
3414 2003-06-26 Michael Chastain <mec@shout.net>
3415
3416 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3417 gdb/testsuite/gdb.c++/pr-1210.exp.
3418
3419 2003-06-26 Andrew Cagney <cagney@redhat.com>
3420
3421 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3422 altivec_expression.h and altivec_registers.h.
3423
3424 2003-06-26 Andrew Cagney <cagney@redhat.com>
3425
3426 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3427 info->mach when MIPS16. Patch suggested by Fred Fish.
3428
3429 2003-06-26 Andrew Cagney <cagney@redhat.com>
3430
3431 * utils.c (internal_vproblem): Print the problem to a reason
3432 buffer and then pass to query. Make the msg variable more local.
3433
3434 2003-06-26 Andrew Cagney <cagney@redhat.com>
3435
3436 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3437 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3438 * gdbarch.h, gdbarch.c: Re-generate.
3439 * frame-base.c (default_frame_args_address): Update. Use
3440 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3441 not available.
3442 (default_frame_locals_address): Ditto for
3443 DEPRECATED_FRAME_LOCALS_ADDRESS.
3444 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3445 (vax_frame_num_args): Update.
3446 (vax_gdbarch_init): Update.
3447 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3448 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3449 * mcore-tdep.c (mcore_gdbarch_init): Update.
3450 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3451 * ia64-tdep.c (ia64_gdbarch_init): Update.
3452 * symtab.h (address_class): Update comments.
3453 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3454 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3455 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3456 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3457 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3458 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3459 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3460 * alpha-mdebug-tdep.c: Update.
3461 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3462
3463 2003-06-26 Andreas Jaeger <aj@suse.de>
3464
3465 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3466 of SSE registers so that varargs functions work. Rework handling
3467 of passing arguments on the stack.
3468 (x86_64_store_return_value): Return double and float values in SSE
3469 register.
3470
3471 2003-06-24 Michael Chastain <mec@shout.net>
3472
3473 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3474 the "constructor breakpoints ignored" bug.
3475
3476 2003-06-25 David Carlton <carlton@kealia.com>
3477
3478 * MAINTAINERS: Update e-mail address.
3479
3480 2003-06-24 Jim Blandy <jimb@redhat.com>
3481
3482 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3483
3484 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3485 function.
3486 (ppc_linux_init_abi): Register it as the
3487 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3488
3489 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3490 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3491 method.
3492
3493 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3494 (ppc64_standard_linkage_target): Use it.
3495
3496 2003-06-23 Andrew Cagney <cagney@redhat.com>
3497
3498 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3499 for 0 "int0" and 4 "int32" sized registers.
3500 * gdbtypes.c (builtin_type_int0): Define.
3501 (build_gdbtypes): Initialize builtin_type_int0.
3502 * gdbtypes.h (builtin_type_int0): Declare.
3503
3504 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3505
3506 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3507 as characters are unsigned.
3508
3509 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3510
3511 PR gdb/1179
3512 * dwarfread.c (struct_type): Skip static fields without crashing.
3513
3514 2003-06-22 Andrew Cagney <cagney@redhat.com>
3515
3516 GDB 6.0 branch created.
3517 * README: Update.
3518 * PROBLEMS: Update. Empty.
3519 * NEWS: Update.
3520
3521 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3522
3523 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3524 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3525
3526 2003-06-22 Andrew Cagney <cagney@redhat.com>
3527
3528 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3529 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3530 Velikov.
3531
3532 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3533
3534 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3535 compilers.
3536
3537 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3538
3539 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3540 argument of val_print.
3541 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3542 to the address argument of baseclass_offset or target_read_memory.
3543 Do add it to the argument of cp_print_value_fields.
3544
3545 2003-06-21 Andrew Cagney <cagney@redhat.com>
3546
3547 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3548 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3549 instead of 0..NUM_REGS.
3550 (mips_register_reggroup_p): New function.
3551 (mips_pseudo_register_write): New function.
3552 (mips_pseudo_register_read): New function.
3553 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3554 based on the register's type.
3555 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3556 cooked.
3557 (mips_get_saved_register): Simplify. Assert that REGNO is a
3558 pseudo / cooked.
3559 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3560 (mips_register_type): Replace mips_register_virtual_type. Map
3561 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3562 when available.
3563 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3564 that the register is cooked / virtual.
3565 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3566 Only get the extra info when needed.
3567 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3568 (mips32_heuristic_proc_desc): Fetch the cooked register.
3569 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3570 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3571 (mips_print_register): Use gdbarch_register_type, instead of
3572 REGISTER_VIRTUAL_TYPE.
3573 (print_gp_register_row): Use gdbarch_register_type, instead of
3574 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3575 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3576 Print the pseudo / cooked registers.
3577 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3578 Print the pseudo / cooked registers.
3579 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3580 REG_NUM is pseudo / cooked.
3581 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3582 (mips_n32n64_xfer_return_value): Ditto.
3583 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3584 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3585 (mips_register_sim_regno): New function.
3586 (mips_gdbarch_init): Set deprecated_register_byte,
3587 register_group_p, pseudo_register_write, pseudo_register_read,
3588 register_sim_regno, and num_pseudo_regs. Set register_type,
3589 instead of register_virtual_type.
3590 * Makefile.in (mips-tdep.o): Update dependencies.
3591 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3592 REGISTER_VIRTUAL_TYPE.
3593 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3594 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3595 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3596 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3597 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3598
3599 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3600
3601 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3602 * cli/cli-cmds.c: Include "gdb_vfork.h".
3603 (shell_escape): Use vfork.
3604
3605 2003-06-21 Andrew Cagney <cagney@redhat.com>
3606
3607 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3608 32 bit floating-point register saves.
3609
3610 * frame.h (deprecated_unwind_get_saved_register): Delete.
3611 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3612 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3613 and deprecated_get_next_frame_hack instead of
3614 deprecated_unwind_get_saved_register.
3615
3616 * mips-tdep.c (mips_dump_tdep): Do not print
3617 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3618
3619 * frame.c (get_frame_register): New function.
3620 (frame_unwind_register_signed): New function.
3621 (get_frame_register_signed): New function.
3622 (frame_unwind_register_unsigned): New function.
3623 (get_frame_register_unsigned): New function.
3624 * frame.h: Add comments on naming schema.
3625 (get_frame_register, frame_unwind_register_signed): Declare.
3626 (get_frame_register_signed, get_frame_register_signed): Declare.
3627 (frame_unwind_register_unsigned): Declare.
3628 (get_frame_register_unsigned): Declare.
3629
3630 2003-06-20 Theodore A. Roth <troth@openavr.org>
3631
3632 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3633
3634 2003-06-20 Theodore A. Roth <troth@openavr.org>
3635
3636 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3637 (avr_read_sp): Ditto.
3638
3639 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3640
3641 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3642 * config/arm/nm-linux.h: Likewise.
3643 * config/arm/tm-linux.h: Likewise.
3644 * config/ia64/nm-linux.h: Likewise.
3645 * config/ia64/tm-ia64.h: Likewise.
3646 * config/s390/tm-linux.h: Likewise.
3647 * config/s390/tm-s390.h: Likewise.
3648 * s390-nat.c: Likewise.
3649 * s390-tdep.c: Likewise.
3650
3651 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3652 * config/ia64/linux.mt: Likewise.
3653 * config/m68k/linux.mh: Likewise.
3654 * config/mips/linux.mt: Likewise.
3655 * config/powerpc/linux.mh: Likewise.
3656 * config/sh/linux.mt: Likewise.
3657
3658 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3659
3660 * solib.c (solib_open): Change tests for whether to search
3661 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3662 comments.
3663
3664 2003-06-19 Theodore A. Roth <troth@openavr.org>
3665
3666 * avr-tdep.c (avr_frame_address): Delete function.
3667 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3668 set_gdbarch_frame_args_address.
3669
3670 2003-06-19 Andrew Cagney <cagney@redhat.com>
3671
3672 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3673 (REGISTER_CONVERT_FROM_TYPE): Delete.
3674 (mips_register_convert_to_type): Delete declaration.
3675 (mips_register_convert_from_type): Delete declaration.
3676 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3677 kernel/.
3678
3679 2003-06-19 Michael Snyder <msnyder@redhat.com>
3680
3681 * linux-nat.h: New file.
3682 * linux-nat.c: Include linux-nat.h.
3683 * lin-lwp.c: Include linux-nat.h.
3684 Move struct lwp_info def to linux-nat.h.
3685 * linux-proc.c: Include linux-nat.h.
3686 (linux_make_note_section): Iterate over lwps instead of threads.
3687 (linux_do_thread_registers): Use lwp instead of merged pid.
3688 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3689 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3690 Add dependency on linux_nat_h.
3691
3692 2003-06-19 Theodore A. Roth <troth@openavr.org>
3693
3694 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3695
3696 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3697
3698 * varobj.c (get_type, get_target_type): Use check_typedef.
3699
3700 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3701
3702 * breakpoint.c (insert_catchpoint): Call internal_error.
3703
3704 2003-06-19 Theodore A. Roth <troth@openavr.org>
3705
3706 * avr-tdep.c (avr_push_dummy_code): Delete function.
3707 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3708
3709 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3710
3711 * arch-utils.c (default_prepare_to_proceed): Remove.
3712 (generic_prepare_to_proceed): Remove.
3713 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3714 (generic_prepare_to_proceed): Remove prototype.
3715 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3716 * gdbarch.c: Regenerate.
3717 * gdbarch.h: Regenerate.
3718 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3719 * hppah-nat.c (hppa_switched_threads): Remove.
3720 * infrun.c (prepare_to_proceed): New static function, copied from
3721 generic_prepare_to_proceed. Remove select_it argument.
3722 (proceed): Call prepare_to_proceed.
3723 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3724 variables.
3725 (ptrace_wait): Don't set the removed variables.
3726 (hppa_switched_threads): Remove.
3727 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3728 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3729 (lin_lwp_prepare_to_proceed): Remove prototype.
3730 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3731 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3732
3733 2003-06-18 Theodore A. Roth <troth@openavr.org>
3734
3735 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3736 trad-frame.h.
3737 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3738 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3739 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3740 (AVR_PROLOGUE_*): Enumerate prologue types.
3741 (struct frame_extra_info): Remove.
3742 (struct avr_unwind_cache): Define.
3743 (avr_write_sp): Delete function.
3744 (avr_read_fp): Ditto.
3745 (avr_init_extra_frame_info): Ditto.
3746 (avr_pop_frame): Ditto.
3747 (avr_frame_saved_pc): Ditto.
3748 (avr_saved_pc_after_call): Ditto.
3749 (avr_push_return_address): Ditto.
3750 (avr_frame_chain): Ditto.
3751 (avr_store_struct_return): Ditto.
3752 (avr_push_arguments): Ditto.
3753 (avr_scan_prologue): Update comments. Changed to set up the info for
3754 cache unwinding. Now returns end of prologue PC.
3755 (avr_skip_prologue): Better handling of functions lacking a prologue
3756 by using avr_scan_prologue.
3757 (avr_scan_arg_moves): New function.
3758 (avr_saved_regs_unwinder): Ditto.
3759 (avr_frame_unwind_cache): Ditto.
3760 (avr_unwind_pc): Ditto.
3761 (avr_frame_this_id): Ditto.
3762 (avr_frame_prev_register): Ditto.
3763 (avr_frame_p): Ditto.
3764 (avr_frame_base_address ): Ditto.
3765 (avr_unwind_dummy_id): Ditto.
3766 (avr_push_dummy_code): Ditto.
3767 (push_stack_item): Ditto.
3768 (pop_stack_item): Ditto.
3769 (avr_push_dummy_call): Ditto.
3770 (struct stack_item): Define.
3771 (avr_frame_unwind): Declare structure.
3772 (avr_frame_base): Ditto.
3773 (avr_gdbarch_init): Remove calls to
3774 set_gdbarch_deprecated_init_frame_pc,
3775 set_gdbarch_deprecated_target_read_fp,
3776 set_gdbarch_deprecated_dummy_write_sp,
3777 set_gdbarch_deprecated_fp_regnum,
3778 set_gdbarch_deprecated_push_arguments,
3779 set_gdbarch_deprecated_push_return_address,
3780 set_gdbarch_deprecated_pop_frame,
3781 set_gdbarch_deprecated_store_struct_return,
3782 set_gdbarch_deprecated_frame_init_saved_regs,
3783 set_gdbarch_deprecated_init_extra_frame_info,
3784 set_gdbarch_deprecated_frame_chain,
3785 set_gdbarch_deprecated_frame_saved_pc,
3786 set_gdbarch_deprecated_saved_pc_after_call.
3787 Add calls to set_gdbarch_push_dummy_call,
3788 set_gdbarch_push_dummy_code,
3789 frame_unwind_append_predicate,
3790 frame_base_set_default,
3791 set_gdbarch_unwind_dummy_id,
3792 set_gdbarch_unwind_pc.
3793 Wrap a long line.
3794
3795 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3796
3797 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3798 registers for H8/300S.
3799 (h8300_print_registers_info): Ditto.
3800 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3801
3802 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3803
3804 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3805 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3806 (lin_lwp_wait): Likewise. Update comments.
3807 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3808 (pull_pid_from_list, linux_record_stopped_pid): New.
3809
3810 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3811
3812 * ada-lang.c (scan_discrim_bound): Name first argument.
3813 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3814 declared by ALL_BLOCK_SYMBOLS.
3815
3816 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3817
3818 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3819 ("regcache.h"): Include it.
3820 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3821
3822 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3823
3824 * NEWS: Mention gdbserver detach change and "disconnect" command.
3825 * infcmd.c (disconnect_command): New function.
3826 (_initialize_infcmd): Add ``disconnect'' command.
3827 * remote.c (remote_async_detach): Delete.
3828 (remote_detach): Merge remote_async_detach.
3829 (remote_disconnect): New.
3830 (init_remote_ops): Set to_disconnect.
3831 (init_remote_cisco_ops): Likewise.
3832 (init_remote_async_ops): Likewise. Use remote_detach.
3833 * target.c (cleanup_target): Default to_disconnect.
3834 (update_current_target): Inherit to_disconnect.
3835 (target_disconnect, debug_to_disconnect): New functions.
3836 (setup_target_debug): Set to_disconnect.
3837 * target.h (struct target_ops): Add to_disconnect.
3838 (target_disconnect): Add prototype.
3839
3840 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3841
3842 * breakpoint.c (insert_catchpoint): New function.
3843 (insert_breakpoints): Use catch_exceptions to call
3844 insert_catchpoint. Disable catchpoints if they fail to insert.
3845
3846 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3847
3848 * symfile.c (reread_symbols): Clear sym_private.
3849
3850 2003-06-17 Andrew Cagney <cagney@redhat.com>
3851
3852 * trad-frame.h (struct frame_info): Add opaque declaration.
3853 * remote-fileio.h (struct cmd_list_element): Add opaque
3854 declaration.
3855 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3856 comments.
3857
3858 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3859
3860 * remote.c (remote_prepare_to_store): Replace call to
3861 deprecated_read_register_bytes with multiple regcache_raw_read
3862 calls.
3863
3864 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3865
3866 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3867 (nto_find_and_open_solib): Likewise.
3868 (nto_init_solib_absolute_prefix): Likewise.
3869 (_initialize_nto_tdep): Fix indentation.
3870
3871 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3872
3873 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3874
3875 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3876
3877 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3878
3879 2003-06-17 Jim Blandy <jimb@redhat.com>
3880
3881 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3882
3883 2003-06-16 Theodore A. Roth <troth@openavr.org>
3884
3885 * avr-tdep.c (avr_extract_return_value): New function.
3886 (avr_gdbarch_init): Set extract_return_value method.
3887
3888 2003-06-16 Andrew Cagney <cagney@redhat.com>
3889
3890 * frame.h (deprecated_get_next_frame_hack): Declare.
3891 * frame.c (legacy_saved_regs_prev_register): Only require
3892 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3893 there are always saved regs.
3894 (deprecated_generic_get_saved_register): Do not require
3895 DEPRECATED_FRAME_INIT_SAVED_REGS.
3896 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3897 use frame ID unwind instead.
3898 (deprecated_get_next_frame_hack): New function.
3899
3900 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3901
3902 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3903 (h8300_push_dummy_call): ...this function. Some minor optimization.
3904 (h8300_push_return_address): Remove.
3905 (h8300_gdbarch_init): Remove calls to
3906 set_gdbarch_deprecated_dummy_write_sp,
3907 set_gdbarch_deprecated_push_arguments and
3908 set_gdbarch_deprecated_push_return_address.
3909 Add call to set_gdbarch_push_dummy_call.
3910
3911 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3912
3913 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3914 (E_PSEUDO_EXR_REGNUM): Ditto.
3915 (h8300_is_argument_spill): Check for instructions moving argument
3916 registers into safe registers.
3917 (h8300_skip_prologue): Check for stm instruction to push registers
3918 used for register variables onto stack.
3919 (gdb_print_insn_h8300): Remove.
3920 (h8300_examine_prologue): Add a comment.
3921 (h8300_register_name): Take pseudo registers into account.
3922 (h8300s_register_name): Ditto.
3923 (h8300sx_register_name): Ditto.
3924 (h8300_print_register): Ditto.
3925 (h8300_print_registers_info): Define "nice" printing order.
3926 (h8300_saved_pc_after_call): Take pseudo registers into account.
3927 (h8300_register_type): Ditto. Return type used for remote connection
3928 when requesting real CCR or EXR register, return actual type when
3929 requesting pseudo CCR or EXR.
3930 (h8300_pseudo_register_read): New function.
3931 (h8300_pseudo_register_write): Ditto.
3932 (h8300_dbg_reg_to_regnum): Ditto.
3933 (h8300s_dbg_reg_to_regnum): Ditto.
3934 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3935 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3936 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3937 set_gdbarch_print_insn architecture dependent.
3938 Call set_gdbarch_pseudo_register_read and
3939 set_gdbarch_pseudo_register_write.
3940 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3941
3942 2003-06-16 Andrew Cagney <cagney@redhat.com>
3943
3944 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3945 * gdbarch.h, gdbarch.c: Re-generate.
3946 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3947 * s390-tdep.c (s390_gdbarch_init): Update.
3948 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3949 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3950 * mips-tdep.c (mips_gdbarch_init): Update.
3951 * mcore-tdep.c (mcore_gdbarch_init): Update.
3952 * cris-tdep.c (cris_gdbarch_init): Update.
3953 * infcall.c (call_function_by_hand): Update.
3954 * ia64-tdep.c (ia64_push_arguments): Update comment.
3955 * frame.c (legacy_get_prev_frame): Do not assume
3956 SAVE_DUMMY_FRAME_TOS_P.
3957 * dummy-frame.c (find_dummy_frame): Update comment.
3958
3959 2003-06-16 Andrew Cagney <cagney@redhat.com>
3960
3961 * regcache.c (do_cooked_read): Do not use register_valid_p.
3962
3963 2003-06-15 Theodore A. Roth <troth@openavr.org>
3964
3965 * avr-tdep.c (avr_register_type): Remove a blank line.
3966 (avr_scan_prologue): Correct some comments.
3967
3968 2003-06-15 Theodore A. Roth <troth@openavr.org>
3969
3970 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3971 prologue types.
3972 Properly scan prologues generated by gcc with the -mcall-prologues
3973 option.
3974 Add code to scan -mcall-prologues for mega devices.
3975
3976 2003-06-15 Theodore A. Roth <troth@openavr.org>
3977
3978 * avr-tdep.c (avr_register_byte): Delete function.
3979 (avr_register_raw_size): Delete function.
3980 (avr_register_virtual_size): Delete function.
3981 (avr_register_virtual_type): Delete function.
3982 (avr_register_type): New function.
3983 (avr_address_to_pointer): Remove unused code.
3984 (avr_read_fp): Need to read FP as two separate bytes due to change to
3985 avr_register_type() usage.
3986 (avr_gdbarch_init): Don't set deprecated_register_size.
3987 Don't set deprecated_register_bytes.
3988 Don't set deprecated_register_byte.
3989 Don't set deprecated_register_raw_size.
3990 Don't set deprecated_max_register_raw_size.
3991 Don't set deprecated_register_virtual_size.
3992 Don't set deprecated_max_register_virtual_size.
3993 Don't set deprecated_register_virtual_type.
3994 Set register_type method.
3995
3996 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3997
3998 * Makefile.in (linux-nat.o): Add rule.
3999 * linux-nat.c: New file.
4000 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4001 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4002 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4003 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4004 * config/arm/linux.mh (NATDEPFILES): Likewise.
4005 * config/i386/linux.mh (NATDEPFILES): Likewise.
4006 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4007 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4008 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4009 * config/mips/linux.mh (NATDEPFILES): Likewise.
4010 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4011 * config/s390/s390.mh (NATDEPFILES): Likewise.
4012 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4013
4014 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4015
4016 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4017 replace out-of-date comment.
4018
4019 2003-06-15 Andrew Cagney <cagney@redhat.com>
4020
4021 * rdi-share/host.h (Fail): Change to a varargs function.
4022 * remote-rdi.c (Fail): Update.
4023
4024 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4025
4026 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4027 (i386_convert_register_p, i386_register_to_value,
4028 i386_register_from_value): Handle types longer than 8 bytes.
4029
4030 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4031
4032 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4033 Move floating-point code to new function in i387-tdep.c.
4034 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4035 New functions containing code moved here from i386-tdep.c.
4036 * i387-tdep.h: Add opaque declaration for `struct type'.
4037 (i387_register_to_value, i387_value_to_register): New prototypes.
4038 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4039 (x86_64_init_abi): Set convert_register_p, register_to_value and
4040 value_to_register here.
4041
4042 2003-06-14 Andrew Cagney <cagney@redhat.com>
4043
4044 * mips-tdep.c (mips_register_to_value): Make static.
4045 (mips_value_to_register): Make static.
4046 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4047 * ia64-tdep.c (ia64_register_raw_size): Make static.
4048 (ia64_register_virtual_size): Make static.
4049 (ia64_register_byte): Make static.
4050 * i387-tdep.c: Include "i387-tdep.h".
4051 (print_387_control_word): Delete function.
4052 (print_387_status_word): Delete function.
4053 (print_387_status_bits): Delete function.
4054 (print_387_control_bits): Delete function.
4055 * Makefile.in (i387-tdep.o): Update dependencies.
4056 * rdi-share/host.h (Fail): Declare.
4057 * remote-rdi.c (Fail): Update to match declaration.
4058
4059 2003-06-14 Andrew Cagney <cagney@redhat.com>
4060
4061 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4062 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4063 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4064 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4065 * README: Delete reference to remote-array.
4066 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4067 (remote-array.o): Delete target.
4068 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4069 * remote-array.c: Delete file.
4070
4071 2003-06-14 Andrew Cagney <cagney@redhat.com>
4072 Mark Kettenis <kettenis@gnu.org>
4073
4074 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4075 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4076 parameter with "frame".
4077 * gdbarch.h, gdbarch.c: Re-generate.
4078 * frame.h (put_frame_register): Declare.
4079 * frame.c (put_frame_register): New function.
4080 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4081 (legacy_register_to_value): Rewrite, use "frame" to get the
4082 register value.
4083 (legacy_value_to_register): Rewrite, use "frame" to find the
4084 register's location before storing.
4085 * arch-utils.h (legacy_convert_register_p): Update.
4086 (legacy_register_to_value, legacy_value_to_register): Update.
4087 * findvar.c (value_from_register): Rewrite, eliminate use of
4088 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4089 "frame" to REGISTER_TO_VALUE.
4090 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4091 lval_reg_frame_relative + lval_register branch of the switch. Do
4092 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4093 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4094 I386_EDI_REGNUM): New defines.
4095 (i386_next_regnum, i386_convert_register_p,
4096 i386_register_to_value, i386_value_to_register): New functions.
4097 (i386_register_convertible, i386_register_convert_to_virtual,
4098 i386_convert_to_raw): Remove functions.
4099 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4100 value_to_register instead of register_convertible,
4101 register_convert_to_virtual and register_convert_to_raw.
4102 * mips-tdep.c (mips_convert_register_p): New function.
4103 (mips_value_to_register): Replace mips_register_convert_from_type.
4104 (mips_register_to_value): Replace mips_register_convert_to_type.
4105 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4106 register_to_value.
4107 * alpha-tdep.c (alpha_convert_register_p): Update.
4108 (alpha_value_to_register): Update, store the register.
4109 (alpha_register_to_value): Update, fetch the register.
4110
4111 2003-06-14 Theodore A. Roth <troth@openavr.org>
4112
4113 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4114 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4115 Don't set deprecated_call_dummy_words.
4116 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4117 Don't set remote_translate_xfer_address.
4118 (avr_io_reg_read_command): Remove commented out debug printf.
4119 Wrap a long line.
4120
4121 2003-06-14 Theodore A. Roth <troth@openavr.org>
4122
4123 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4124 causes gdb to seg fault.
4125
4126 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4127
4128 * sparc-nat.c (fetch_inferior_registers): Correct
4129 a reference to "registers".
4130
4131 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4132
4133 * Makefile.in (exc_request_U_h): Define
4134 (exc_request_S_h): Likewise.
4135 (msg_reply_S_h): Likewise.
4136 (msg_U_h): Likewise.
4137 (notify_S_h): Likewise.
4138 (process_reply_S_h): Likewise.
4139 (gnu-nat.o): Depend on gdb_obstack_h
4140 * gnu-nat.c: Include "gdb_obstack.h".
4141
4142 2003-06-13 Andrew Cagney <cagney@redhat.com>
4143
4144 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4145 * gdbarch.h, gdbarch.c: Re-generate.
4146
4147 2003-06-13 Andrew Cagney <cagney@redhat.com>
4148
4149 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4150 when deprecated REGISTER macros can be deleted.
4151 * gdbarch.h, gdbarch.c: Re-generate.
4152
4153 2003-06-13 Jim Blandy <jimb@redhat.com>
4154
4155 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4156 Linux entry point symbols for _dl_debug_state, too.
4157
4158 2003-06-13 Andrew Cagney <cagney@redhat.com>
4159
4160 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4161 available, do not use the FP register, and always save the TOS.
4162 * dummy-frame.c (dummy_frame_this_id): Do not assert
4163 SAVE_DUMMY_FRAME_TOS.
4164 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4165 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4166 (i386_push_dummy_call): Add 8 to the returned SP.
4167 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4168 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4169 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4170 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4171 (x86_64_push_dummy_call): Return "sp + 16".
4172 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4173 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4174 save_dummy_frame_tos.
4175
4176 2003-06-13 Jim Blandy <jimb@redhat.com>
4177
4178 * frv-tdep.c (frv_use_struct_convention): Delete static
4179 declaration for function deleted in my change of 2003-06-12.
4180
4181 2003-06-13 Theodore A. Roth <troth@openavr.org>
4182
4183 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4184 (avr_pointer_to_address): Shift code addrs left 1 bit.
4185 (avr_convert_from_func_ptr_addr): Delete function since operation is
4186 better handled by avr_address_to_pointer and avr_pointer_to_address.
4187 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4188
4189 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4190
4191 From Kelley Cook <kelleycook@wideopenwest.com>:
4192 * configure.host: Accept i[34567]86 variants.
4193 * configure.tgt: Likewise.
4194 * nlm/configure.in: Likewise.
4195 * nlm/configure: Regenerated.
4196
4197 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4198
4199 * arm-tdep.c (solib-svr4.h): Dont' include it.
4200 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4201 * arm-linux-tdep.c: ... here. Make static.
4202 (arm_linux_init_abi): Register it.
4203 (solib-svr4.h): Include it.
4204 * Makefile.in: Update dependencies.
4205 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4206 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4207
4208 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4209
4210 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4211 indicate registers used for return values.
4212 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4213 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4214 members.
4215 (h8300_init_extra_frame_info): Ditto.
4216 (h8300_frame_locals_address): Removed.
4217 (h8300_frame_args_address): Removed.
4218 (h8300_extract_return_value): Use new regcache structure. Only care
4219 for 16 bit CPUs.
4220 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4221 (h8300_store_return_value): Use new regcache structure. Only care
4222 for 16 bit CPUs.
4223 (h8300h_store_return_value): Same function for 32 bit CPUs.
4224 (h8300_store_struct_return): Removed.
4225 (h8300_extract_struct_value_address): Use new regcache structure.
4226 (h8300h_extract_struct_value_address): Removed.
4227 (h8300_push_dummy_code): New function.
4228 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4229 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4230 set_gdbarch_store_return_value architecture dependent.
4231 Call set_gdbarch_push_dummy_code and
4232 set_gdbarch_extract_struct_value_address.
4233 Remove calls to set_gdbarch_frame_args_address,
4234 set_gdbarch_frame_locals_address,
4235 set_gdbarch_deprecated_store_struct_return,
4236 set_gdbarch_deprecated_extract_return_value,
4237 set_gdbarch_deprecated_extract_struct_value_address,
4238 set_gdbarch_deprecated_call_dummy_words and
4239 set_gdbarch_deprecated_sizeof_call_dummy_words.
4240
4241 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4242
4243 * h8300-tdep.c (h8300_register_byte): Remove.
4244 (h8300h_register_byte): Remove.
4245 (h8300_register_virtual_type): Remove. Substitute by...
4246 (h8300_register_type): New function.
4247 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4248 (h8300h_extract_struct_value_address): Ditto.
4249 (h8300_gdbarch_init): Drop calls to
4250 set_gdbarch_deprecated_register_byte and
4251 set_gdbarch_deprecated_register_virtual_type.
4252 Add call to set_gdbarch_register_type.
4253
4254 2003-06-13 Andrew Cagney <cagney@redhat.com>
4255
4256 * gdbarch.sh: Update comments on registers.
4257 (deprecated_register_byte): Rename register_byte.
4258 (deprecated_register_raw_size): Rename register_raw_size.
4259 (deprecated_register_virtual_size): Rename register_virtual_size.
4260 (deprecated_register_virtual_type): Rename register_virtual_type.
4261 * gdbarch.h, gdbarch.c: Re-generate.
4262 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4263 * vax-tdep.c (vax_gdbarch_init): Update.
4264 * v850-tdep.c (v850_gdbarch_init): Update.
4265 * sparc-tdep.c (sparc_gdbarch_init): Update.
4266 * sh-tdep.c (sh_gdbarch_init): Update.
4267 * s390-tdep.c (s390_gdbarch_init): Update.
4268 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4269 * ns32k-tdep.c: Update.
4270 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4271 * mips-tdep.c (mips_gdbarch_init): Update.
4272 * mcore-tdep.c (mcore_gdbarch_init): Update.
4273 * m68k-tdep.c (m68k_gdbarch_init): Update.
4274 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4275 * ia64-tdep.c (ia64_gdbarch_init): Update.
4276 * hppa-tdep.c (hppa_gdbarch_init): Update.
4277 * h8300-tdep.c (h8300_gdbarch_init): Update.
4278 * frv-tdep.c (frv_gdbarch_init): Update.
4279 * cris-tdep.c (cris_gdbarch_init): Update.
4280 * avr-tdep.c (avr_gdbarch_init): Update.
4281 * alpha-tdep.c (alpha_gdbarch_init): Update.
4282 * arm-tdep.c (arm_gdbarch_init): Update.
4283
4284 2003-06-13 Andrew Cagney <cagney@redhat.com>
4285
4286 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4287 mips_o32_use_struct_convention with always_use_struct_convention.
4288
4289 2003-06-12 David Carlton <carlton@kealia.com>
4290
4291 * cp-namespace.c (cp_set_block_scope): Comment out
4292 processing_has_namespace_info branch.
4293
4294 2003-06-12 Jim Blandy <jimb@redhat.com>
4295
4296 Recognize and skip 64-bit PowerPC Linux linkage functions.
4297 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4298 insn_pattern, insns_match_pattern, d_field, ds_field): New
4299 functions, macros, and types for working with PPC instructions.
4300 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4301 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4302 ppc64_skip_trampoline_code): New functions, variables, and macros
4303 for recognizing and skipping linkage functions.
4304 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4305 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4306
4307 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4308 register offsets for both the 32- and 64-bit interfaces.
4309
4310 Actually finish the job started by my change of 2003-05-29.
4311 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4312 other #definition of this.
4313 (ppc_linux_skip_trampoline_code): Remove declaration.
4314 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4315 static.
4316 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4317 method for GDBARCH.
4318
4319 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4320 'long' on ppc64-*-linux*.
4321
4322 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4323 isn't #defined, assume the register doesn't exist: act as if
4324 tdep->ppc_mq_regnum were -1.
4325
4326 * configure.host, configure.tgt: Add entries for
4327 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4328 powerpc/linux.mt.
4329 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4330 New files.
4331
4332 * arch-utils.c (always_use_struct_convention): New function.
4333 * arch-utils.h (always_use_struct_convention): New prototype.
4334 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4335 (alpha_gdbarch_init): Register always_use_struct_convention,
4336 instead of alpha_use_struct_convention.
4337 * cris-tdep.c (cris_use_struct_convention): Delete.
4338 (cris_gdbarch_init): Register always_use_struct_convention,
4339 instead of cris_use_struct_convention.
4340 * frv-tdep.c (frv_use_struct_convention): Delete.
4341 (frv_gdbarch_init): Register always_use_struct_convention,
4342 instead of frv_use_struct_convention.
4343 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4344 (h8300_gdbarch_init): Register always_use_struct_convention,
4345 instead of h8300_use_struct_convention.
4346 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4347 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4348 instead of mips_o32_use_struct_convention.
4349
4350 2003-06-12 Andrew Cagney <cagney@redhat.com>
4351
4352 * wince.c: Include "mips-tdep.h".
4353 * mips-tdep.h (mips_next_pc): Declare.
4354 * mcore-tdep.c: Make more local functions static.
4355 * Makefile.in (wince.o): Update dependencies.
4356
4357 2003-06-12 David Carlton <carlton@kealia.com>
4358
4359 * symtab.c (lookup_symbol_aux_minsyms): Replace
4360 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4361 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4362 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4363 SYMBOL_NATURAL_NAME.
4364
4365 2003-06-12 Andreas Schwab <schwab@suse.de>
4366
4367 * Makefile.in (tuiDisassem.o): Update dependencies.
4368
4369 2003-06-12 David Carlton <carlton@bactrian.org>
4370
4371 * symtab.h: Delete declaration of make_symbol_overload_list.
4372 Add declaration of lookup_partial_symbol.
4373 * symtab.c (remove_params): Move to cp-support.c.
4374 (overload_list_add_symbol, make_symbol_overload_list)
4375 (sym_return_val_size, sym_return_val_index): Ditto.
4376 (lookup_partial_symbol): Make extern.
4377 * cp-support.h: Add declaration of make_symbol_overload_list.
4378 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4379 symtab.h, and block.h.
4380 (remove_params): Move here from symtab.c.
4381 (overload_list_add_symbol, make_symbol_overload_list)
4382 (sym_return_val_size, sym_return_val_index): Ditto.
4383 * valops.c: Include cp-support.h.
4384 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4385 frame_h, and block_h.
4386 (valops.o): Depend on cp_support_h.
4387
4388 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4389
4390 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4391 substitute by NUM_REGS throughout.
4392 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4393 (h8300s_register_name): New function for H8S registers.
4394 (h8300sx_register_name): Ditto for H8SX registers.
4395 (h8300_print_register): Revise register printing, avoid depending
4396 on 32 bit long.
4397 (h8300_register_byte): Only care for H8/300 registers.
4398 (h8300h_register_byte): New function for any other architecture.
4399 (h8300_register_raw_size): Remove.
4400 (h8300_register_virtual_type): Revise to return actually useful
4401 type.
4402 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4403 (h8300h_extract_struct_value_address): New function for any other
4404 architecture.
4405 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4406 set_gdbarch_register_name, set_gdbarch_register_byte,
4407 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4408 Remove calls to set_gdbarch_deprecated_register_size,
4409 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4410 set_gdbarch_deprecated_max_register_raw_size,
4411 set_gdbarch_register_virtual_size and
4412 set_gdbarch_deprecated_max_register_virtual_size entirely.
4413 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4414 set_gdbarch_long_double_bit.
4415
4416 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4417
4418 * doublest.c (convert_doublest_to_floatformat): When dealing
4419 with the implied integer bit, only alter mant_bits if we are
4420 processing a full 32 bits of mantissa.
4421
4422 2003-06-11 David Carlton <carlton@bactrian.org>
4423
4424 * dictionary.h: New.
4425 * dictionary.c: New.
4426 * block.h: Add opaque declaration for struct dictionary.
4427 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4428 'sym' members.
4429 (BLOCK_DICT): New macro.
4430 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4431 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4432 BLOCK_SHOULD_SORT.
4433 (ALL_BLOCK_SYMBOLS): Update definition.
4434 * Makefile.in (SFILES): Add dictionary.c.
4435 (dictionary_h): New.
4436 (COMMON_OBS): Add dictionary.o.
4437 (dictionary.o): New.
4438 (ada-lang.o): Depend on dictionary_h.
4439 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4440 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4441 (mi-cmd-stack.o): Ditto.
4442 (gdbtk-cmds.o): Update dependencies.
4443 (gdbtk-stack.o): Ditto.
4444 * ada-lang.c: Include dictionary.h.
4445 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4446 (fill_in_ada_prototype, debug_print_block): Ditto.
4447 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4448 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4449 'is_sorted'.
4450 * mdebugread.c: Include dictionary.h.
4451 (struct parse_stack): Delete 'maxsyms' member.
4452 (parse_symbol): Update calls to new_block. Delete calls to
4453 shrink_block. Use dictionary methods.
4454 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4455 Update calls to new_symtab. Don't maintain maxsyms data.
4456 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4457 (add_symbol): Just call dict_add_symbol.
4458 (new_symtab): Delete 'maxsyms' argument.
4459 (new_symtab): Update calls to new_block.
4460 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4461 (shrink_block): Delete function.
4462 (fixup_sigtramp): Update call to new_block. Add symbol via
4463 dict_add_symbol.
4464 * jv-lang.c: Include dictionary.h.
4465 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4466 appropriately. Set class_symtab->free_func. Make sure the
4467 blockvector is big enough to hold two blocks.
4468 (add_class_symtab_symbol): Use dictionary methods.
4469 (free_class_block): New function.
4470 (type_from_class): Replace explicit iteration by
4471 ALL_BLOCK_SYMBOLS.
4472 * symtab.h (struct symtab): Replace 'free_ptr' method by
4473 'free_func'.
4474 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4475 sort_symtab_syms.
4476 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4477 sort_symtab_syms.
4478 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4479 Include dictionary.h.
4480 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4481 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4482 sort_symtab_syms.
4483 * objfiles.c: Include dictionary.h.
4484 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4485 * buildsym.c: Include dictionary.h.
4486 (finish_block): Use dictionary methods.
4487 (end_symtab): Set free_func to NULL, not free_ptr.
4488 * tracepoint.c: Include dictionary.h.
4489 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4490 (scope_info): Ditto.
4491 * stack.c: Include dictionary.h.
4492 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4493 (print_block_frame_labels, print_frame_arg_vars)
4494 (print_frame_args): Ditto.
4495 * symmisc.c (free_symtab_block): Use dictionary methods.
4496 (dump_symtab): Ditto.
4497 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4498 Include dictionary.h.
4499 * symfile.h: Delete declarations of sort_block_syms,
4500 sort_symtab_syms.
4501 * symfile.c (sort_block_syms): Delete.
4502 (sort_symtab_syms): Delete.
4503 * symtab.c: Include dictionary.h.
4504 (lookup_block_symbol): Use dictionary iterators.
4505 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4506 (search_symbols, make_symbol_completion_list): Ditto.
4507 (make_symbol_overload_list): Ditto.
4508 * valops.c (value_of_local): Use dict_empty.
4509 Include dictionary.h.
4510
4511 2003-06-11 J. Brobecker <brobecker@gnat.com>
4512
4513 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4514
4515 2003-06-11 David Carlton <carlton@bactrian.org>
4516
4517 * block.h (BLOCK_SHOULD_SORT): Delete.
4518 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4519 blocks.
4520 * ada-lang.c (ada_add_block_symbols): Ditto.
4521 * symfile.c (sort_block_syms): Delete.
4522 (sort_symtab_syms): Ditto.
4523 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4524 declarations.
4525 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4526 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4527 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4528 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4529 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4530 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4531 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4532
4533 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4534
4535 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4536 bits to 128.
4537
4538 2003-06-11 Andrew Cagney <cagney@redhat.com>
4539
4540 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4541 REGISTER_CONVERTIBLE.
4542 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4543 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4544 * gdbarch.h, gdbarch.c: Re-generate.
4545 * arch-utils.h (deprecated_register_convertible_not): Rename
4546 generic_register_convertible_not.
4547 * arch-utils.c (deprecated_register_convertible_not): Rename
4548 generic_register_convertible.
4549 (legacy_convert_register_p, legacy_register_to_value): Update.
4550 * sh-tdep.c (sh64_push_arguments): Update.
4551 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4552 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4553 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4554 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4555 * arch-utils.c (legacy_value_to_register): Update.
4556 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4557 (rs6000_register_convert_to_raw): Make parameter "from" const.
4558 * mips-tdep.c (mips_gdbarch_init): Update.
4559 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4560 * infcmd.c (default_print_registers_info): Update.
4561 * ia64-tdep.c (ia64_gdbarch_init): Update.
4562 (ia64_register_convert_to_raw): Make parameter "from" const.
4563 * i386-tdep.c (i386_gdbarch_init): Update.
4564 (i386_register_convert_to_raw): Update.
4565
4566 2003-06-11 Andrew Cagney <cagney@redhat.com>
4567
4568 * remote-fileio.c: Include "remote-fileio.h".
4569 * Makefile.in (remote-fileio.o): Update dependencies.
4570 (remote_fileio_h): Fix typo.
4571
4572 2003-06-11 Andrew Cagney <cagney@redhat.com>
4573
4574 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4575 (xstormy16_save_dummy_frame_tos): Make static.
4576 (_initialize_xstormy16_tdep): Add declaration.
4577 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4578 * v850-tdep.c: Make local functions static.
4579 (_initialize_v850_tdep): Add declaration.
4580 * sparc-tdep.c: Make local functions static.
4581 (_initialize_sparc_tdep): Add declaration.
4582 * sh-tdep.c: Make local functions static.
4583 (_initialize_sh_tdep): Add declaration.
4584 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4585 * s390-tdep.c: Make local functions static.
4586 (_initialize_s390_tdep): Add declaration.
4587 * dbxread.c (find_stab_function_addr): Make static.
4588 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4589 * ocd.c (_initialize_remote_ocd): Add declaration.
4590 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4591 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4592 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4593 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4594 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4595 * remote-array.c (_initialize_array): Add declaration.
4596 (_initialize_remote_monitors): Add declaration.
4597 * remote-mips.c: Make local functions static.
4598 (_initialize_remote_mips): Add declaration.
4599 * mcore-tdep.c: Make all local functions static.
4600 (_initialize_mcore_tdep): Add declaration.
4601 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4602 * abug-rom.c (_initialize_abug_rom): Add declaration.
4603 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4604 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4605 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4606 * remote-est.c (_initialize_est): Add declaration.
4607 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4608 (m68hc11_call_dummy_address): Make static.
4609 * ia64-tdep.c: Make local functions static.
4610 (_initialize_ia64_tdep): Add declaration.
4611 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4612 * monitor.c (monitor_wait_filter): Make static.
4613 (_initialize_remote_monitors): Add declaration.
4614 * remote-hms.c (_initialize_remote_hms): Add declaration.
4615 * remote-e7000.c (fetch_regs_from_dump): Make static.
4616 (expect_n): Make static.
4617 (_initialize_remote_e7000): Add declaration.
4618 * ser-e7kpc.c: Always include "defs.h".
4619 (_initialize_ser_e7000pc): Add declaration.
4620 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4621 * cris-tdep.c: Make all but one function static.
4622 (_initialize_cris_tdep): Add declaration.
4623 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4624 * solib.c (update_solib_list): Make static.
4625 (_initialize_solib): Add declaration.
4626 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4627 (_initialize_avr_tdep): Add declaration.
4628 * remote-rdi.c (voiddummy): Make static.
4629 (_initialize_remote_rdi): Add declaration.
4630 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4631 * remote-rdp.c (send_rdp): Make static.
4632 (_initialize_remote_rdp): Add declaration.
4633 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4634
4635 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4636
4637 * remote-fileio.c: Make ari happy.
4638
4639 2003-06-10 J. Brobecker <brobecker@gnat.com>
4640
4641 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4642 fetching the trailing bytes of the buffer we are about to write.
4643
4644 2003-06-10 Andrew Cagney <cagney@redhat.com>
4645
4646 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4647 * Makefile.in (remote-fileio.o): Update dependencies.
4648 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4649 include <setjmp.h>, or <sys/types.h> conditional on USG.
4650 (remote_fio_jmp_buf): Delete global variable.
4651
4652 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4653 Martin M. Hunt <hunt@redhat.com>
4654
4655 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4656 (SFILES): Add remote-fileio.c.
4657 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4658 dependencies for building remote.o.
4659 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4660 * remote-fileio.h: New header file defining remote File-I/O interface.
4661 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4662 static storage class.
4663 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4664 'F' packet.
4665 (_initialize_remote): Call initialize_remote_fileio().
4666 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4667 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4668 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4669 (captured_main): Initialize new ui_files.
4670 * ui-file.c: Add read and fgets input functions.
4671 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4672 (null_file_read): New function.
4673 (ui_file_read): New function.
4674 (set_ui_file_read): New function.
4675 (stdio_file_read): New function.
4676 * ui-file.h: New type ui_file_read_ftype.
4677 (set_ui_file_read): Declare.
4678 (ui_file_read): Declare.
4679
4680 2003-06-09 Andrew Cagney <cagney@redhat.com>
4681
4682 * frame.h (deprecated_unwind_get_saved_register): Rename
4683 generic_unwind_get_saved_register, update comments.
4684 * mips-tdep.c (mips_get_saved_register): Update.
4685 * frame.c (deprecated_unwind_get_saved_register): Update.
4686
4687 2003-06-09 Andrew Cagney <cagney@redhat.com>
4688
4689 * vax-tdep.c (vax_frame_locals_address): Delete function.
4690 (vax_gdbarch_init): Do not set frame_locals_address.
4691 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4692 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4693 * s390-tdep.c (s390_frame_args_address): Delete function.
4694 (s390_gdbarch_init): Do not set frame_args_address or
4695 frame_locals_address.
4696 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4697 (ns32k_gdbarch_init): Do not set frame_locals_address.
4698 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4699 (hppa_frame_locals_address): Delete function.
4700 (hppa_gdbarch_init): Do not set frame_args_address, or
4701 frame_locals_address.
4702 * arm-tdep.c (arm_frame_args_address): Delete.
4703 (arm_frame_locals_address): Delete.
4704 (arm_gdbarch_init): Do not set frame_args_address, or
4705 frame_locals_address.
4706
4707 2003-06-09 Andrew Cagney <cagney@redhat.com>
4708
4709 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4710 * gdbarch.h, gdbarch.c: Re-generate.
4711 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4712 * arch-utils.c (frame_num_args_unknown): Delete function.
4713 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4714 (frame_info): Use FRAME_NUM_ARGS_P.
4715 * arm-tdep.c (arm_frame_num_args): Delete function.
4716 (arm_gdbarch_init): Do not set frame_num_args.
4717 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4718 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4719 (hppa_gdbarch_init): Do not set frame_num_args.
4720 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4721 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4722 frame_num_args to default frame_num_args_unknown.
4723 * v850-tdep.c (v850_gdbarch_init): Ditto.
4724 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4725 * sh-tdep.c (sh_gdbarch_init): Ditto.
4726 * s390-tdep.c (s390_gdbarch_init): Ditto.
4727 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4728 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4729 * mips-tdep.c (mips_gdbarch_init): Ditto.
4730 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4731 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4732 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4733 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4734 * i386-tdep.c (i386_gdbarch_init): Ditto.
4735 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4736 * frv-tdep.c (frv_gdbarch_init): Ditto.
4737 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4738 * cris-tdep.c (cris_gdbarch_init): Ditto.
4739 * avr-tdep.c (avr_gdbarch_init): Ditto.
4740 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4741
4742 2003-06-09 Andrew Cagney <cagney@redhat.com>
4743
4744 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4745 (print_frame_args): Moved to "stack.c".
4746 * stack.c: Include "gdb_assert.h".
4747 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4748 (print_frame_args): Moved from "printcmd.c".
4749 * frame.h (print_frame_args): Delete declaration.
4750 * Makefile.in (stack.o): Update dependencies.
4751
4752 2003-06-08 Andrew Cagney <cagney@redhat.com>
4753
4754 * frame.c (get_prev_frame): Remove reference to
4755 frame_args_address_correct in comments.
4756 * frame-base.c (default_frame_args_address): Delete code
4757 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4758 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4759 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4760 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4761 (vax_frame_args_address_correct): Delete declaration.
4762
4763 2003-06-08 Andrew Cagney <cagney@redhat.com>
4764
4765 * gdbarch.sh (UNWIND_SP): Add.
4766 * gdbarch.h, gdbarch.c: Re-generate.
4767 * frame.c (frame_sp_unwind): New function.
4768 (get_frame_sp): New function.
4769 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4770 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4771 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4772 value.
4773 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4774 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4775
4776 2003-06-08 Andrew Cagney <cagney@redhat.com>
4777
4778 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4779 REMOTE_BREAKPOINT.
4780 * remote.c: Update.
4781 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4782 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4783 * config/m68k/tm-sun3.h: Update.
4784 * config/m68k/tm-m68klynx.h: Update.
4785 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4786
4787 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4788 trad_frame". Update comments.
4789 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4790 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4791 (trad_frame_register_value, trad_frame_prev_register): Update.
4792
4793 2003-06-08 Andrew Cagney <cagney@redhat.com>
4794
4795 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4796 from GCC's acinclude.m4.
4797 * configure.in: Check for getopt's delcaration.
4798 * aclocal.m4, config.in, configure: Re-generate.
4799 * main.c (error_init): Delete declaration.
4800 * defs.h (error_init): Declare.
4801 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4802 (rs6000_convert_from_func_ptr_addr): Make static.
4803 (_initialize_rs6000_tdep): Add declaration.
4804 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4805 (show_commands, set_verbose, show_history): Delete declaration.
4806 * top.h (set_verbose): Add declaration.
4807 (show_history, set_history, show_commands): Add declaration.
4808 (do_restore_instream_cleanup): Add declaration.
4809 * objc-lang.c (specialcmp): Make static.
4810 (print_object_command): Make static.
4811 (find_objc_msgsend): Make static.
4812 (find_objc_msgcall_submethod_helper): Make static.
4813 (find_objc_msgcall_submethod): Make static.
4814 (_initialize_objc_language): Add declaration.
4815 (find_implementation_from_class): Make static.
4816 (find_implementation): Make static.
4817 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4818 * objc-lang.h (lookup_struct_typedef): Add declaration.
4819 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4820 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4821 (do_restore_user_call_depth): Make static.
4822 (do_restore_instream_cleanup): Delete declaration.
4823 (dont_repeat): Delete declaration.
4824 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4825 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4826 * reggroups.c (_initialize_reggroup): Add declaration.
4827 * cp-support.c (_initialize_cp_support): Add declaration.
4828 * cp-abi.c (_initialize_cp_abi): Add declaration.
4829 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4830 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4831 (_initialize_gnu_v3_abi): Add declaration.
4832 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4833 (_initialize_gnu_v2_abi): Add declaration.
4834 * frame-base.c (_initialize_frame_base): Add declaration.
4835 * doublest.c (floatformat_from_length): Make static.
4836 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4837 * frame.c (create_sentinel_frame): Make static.
4838 (_initialize_frame): Add declaration.
4839 * top.c (do_catch_errors): Make static.
4840 (gdb_rl_operate_and_get_next_completion): Make static.
4841 * typeprint.c: Include "typeprint.h".
4842 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4843 (sentinel_frame_this_id): Make static.
4844 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4845 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4846 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4847 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4848 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4849 * maint.c (maintenance_print_architecture): Make static.
4850 * signals/signals.c (_initialize_signals): Add declaration.
4851 * std-regs.c (_initialize_frame_reg): Add declaration.
4852 * jv-exp.y (push_variable): ISO C definition.
4853 (push_qualified_expression_name): Ditto.
4854 * memattr.c (_initialize_mem): Add declaration.
4855 * remote.c (remote_check_watch_resources): Make static.
4856 (remote_stopped_by_watchpoint): Make static.
4857 (remote_stopped_data_address): Make static.
4858 * d10v-tdep.c (nr_dmap_regs): Make static.
4859 (a0_regnum): Make static.
4860 (d10v_frame_unwind_cache): Make static.
4861 (d10v_frame_p): Make static.
4862 * osabi.c (show_osabi): Make static.
4863 (_initialize_gdb_osabi): Add extern declaration.
4864 * gdbtypes.c (make_qualified_type): Make static.
4865 (safe_parse_type): Make static.
4866 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4867 * macrotab.c (macro_bcache_free): Make static.
4868 * interps.c (interp_set_quiet): Make static.
4869 (interpreter_exec_cmd): Make static.
4870 * stack.h (select_frame_command): New file.
4871 * stack.c: Include "stack.h".
4872 (select_frame_command_wrapper): Delete function.
4873 (select_frame_command): Make global.
4874 * infcall.c: Include "infcall.h".
4875 * linespec.c: Include "linespec.h".
4876 * symfile.c (sections_overlap): Make static.
4877 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4878 * charset.c (_initialize_charset): Add missing prototype.
4879 * regcache.c (init_legacy_regcache_descr): Make static.
4880 (do_regcache_xfree): Make static.
4881 (regcache_xfer_part): Make static.
4882 (_initialize_regcache): Add missing prototype.
4883 * breakpoint.c (parse_breakpoint_sals): Make static.
4884 (breakpoint_sals_to_pc): Make static.
4885 * interps.h (clear_interpreter_hooks): ISO C declaration.
4886 * Makefile.in (stack_h): Define.
4887 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4888 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4889
4890 2003-06-08 Andrew Cagney <cagney@redhat.com>
4891
4892 * Makefile.in (d10v-tdep.o): Update dependencies.
4893 (SFILES): Add trad-frame.c.
4894 (trad_frame_h): Define.
4895 (COMMON_OBS): Add trad-frame.o.
4896 (trad-frame.o): Specify dependencies.
4897 * d10v-tdep.c: Include "trad-frame.h".
4898 (saved_regs_unwinder): Delete function.
4899 (d10v_frame_prev_register): Use trad_frame_prev_register.
4900 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4901 trad_frame", delete "regs" and "prev_sp".
4902 (prologue_find_regs): Use trad-frame.
4903 * trad-frame.h, trad-frame.c: New files.
4904
4905 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4906
4907 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4908
4909 2003-06-07 Adam Fedor <fedor@gnu.org>
4910
4911 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4912 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4913 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4914 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4915 resolve_msgsend_super, resolve_msgsend_super_stret):
4916 Use it.
4917
4918 2003-06-07 Andrew Cagney <cagney@redhat.com>
4919
4920 * symfile.h: Re-indent, clean up comments.
4921
4922 2003-06-07 Andrew Cagney <cagney@redhat.com>
4923
4924 * inferior.h (deprecated_write_sp): Replace
4925 generic_target_write_sp.
4926 * regcache.c (deprecated_write_sp): Replace
4927 generic_target_write_sp.
4928 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4929 * vax-tdep.c (vax_gdbarch_init): Update.
4930 * v850-tdep.c (v850_gdbarch_init): Update.
4931 * sparc-tdep.c (sparc_gdbarch_init): Update.
4932 * sh-tdep.c (sh_gdbarch_init): Update.
4933 * s390-tdep.c (s390_gdbarch_init): Update.
4934 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4935 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4936 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4937 * mcore-tdep.c (mcore_gdbarch_init): Update.
4938 * m68k-tdep.c (m68k_gdbarch_init): Update.
4939 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4940 * ia64-tdep.c (ia64_gdbarch_init): Update.
4941 * h8300-tdep.c (h8300_gdbarch_init): Update.
4942 * frv-tdep.c (frv_gdbarch_init): Update.
4943 * cris-tdep.c (cris_gdbarch_init): Update.
4944 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4945
4946 2003-06-07 Andrew Cagney <cagney@redhat.com>
4947
4948 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4949 Assert that PC_REGNUM is valid.
4950 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4951
4952 2003-06-07 Andrew Cagney <cagney@redhat.com>
4953
4954 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4955 * gdbarch.h, gdbarch.c: Regenerate.
4956 * mn10300-tdep.c: Include "gdb_assert.h".
4957 (mn10300_read_fp): New function.
4958 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4959 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4960 * ia64-tdep.c: Include "gdb_assert.h".
4961 (ia64_read_fp): New function.
4962 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4963 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4964 * regcache.c (generic_target_read_sp): Delete function.
4965 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4966 * inferior.h (generic_target_read_sp): Delete declaration.
4967 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4968 generic_target_read_sp.
4969 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4970 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4971 * sh-tdep.c (sh_gdbarch_init): Ditto.
4972 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4973 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4974
4975 2003-06-07 Andrew Cagney <cagney@redhat.com>
4976
4977 * gdbarch.sh: Comment each field of startup_gdbarch.
4978 * gdbarch.h, gdbarch.c: Re-generate.
4979
4980 2003-06-07 Andrew Cagney <cagney@redhat.com>
4981
4982 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4983 * gdbarch.h, gdbarch.c: Re-generate.
4984 * regcache.c: Update comments on read_pc et.al.
4985 (generic_target_read_pc): Delete function.
4986 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4987 * inferior.h (generic_target_read_pc): Delete declaration.
4988 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4989 generic_target_read_pc.
4990 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4991 * sh-tdep.c (sh_gdbarch_init): Ditto.
4992 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4993 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4994
4995 2003-06-07 Andrew Cagney <cagney@redhat.com>
4996
4997 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4998 "index" with "special_local_sect". Use strcmp instead of STREQ.
4999 Append period to coments.
5000
5001 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5002
5003 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5004 (elfstab_offset_sections): Likewise.
5005 * gdb-stabs.h (stab_section_info): Likewise.
5006 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5007 * objfiles.c (objfile_relocate): Likewise.
5008 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5009 * remote.c (get_offsets): Likewise.
5010 (remote_cisco_objfile_relocate): Likewise.
5011 * somread.c (som_symfile_offsets): Likewise.
5012 * symfile.c (alloc_section_addr_info): New function.
5013 (build_section_addr_info_from_section_tab): Use it.
5014 (free_section_addr_info): Adjust.
5015 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5016 (syms_from_objfile): Allocate local_addr dynamically.
5017 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5018 dynamically.
5019 (add_symbol_file_command): Allocate sect_opts dynamically.
5020 (reread_symbols): Avoid use of SECT_OFF_MAX.
5021 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5022 (alloc_section_addr_info): Declare it.
5023 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5024 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5025 dynamically.
5026 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5027
5028 2003-06-06 Andrew Cagney <cagney@redhat.com>
5029
5030 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5031 (d10v_frame_unwind_cache): Do not set "return_pc".
5032
5033 2003-06-06 Michael Snyder <msnyder@redhat.com>
5034
5035 * h8300-tdep.c: Make tidy (long lines).
5036
5037 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5038
5039 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5040 to regcache_collect().
5041
5042 2003-06-05 J. Brobecker <brobecker@gnat.com>
5043
5044 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5045 pc_in_sigtramp multiarch method.
5046 (hppa_hpux_som_init_abi): Use it.
5047 (hppa_hpux_elf_init_abi): Likewise.
5048 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5049 macro has been multiarched.
5050 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5051 macro here, as hppa64 isn't multiarched yet.
5052
5053 2003-06-05 Andrew Cagney <cagney@redhat.com>
5054
5055 * Makefile.in (value_h): Add $(frame_h).
5056 * value.h: Include "frame.h".
5057 (struct value): Replace "frame_addr" with "frame_id".
5058 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5059 * values.c (allocate_value): Use VALUE_FRAME_ID.
5060 (value_copy): Use VALUE_FRAME_ID.
5061 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5062 * valops.c (value_assign): Update. Use frame_find_by_id.
5063
5064 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5065
5066 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5067 in each pass.
5068
5069 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5070
5071 * thread-db.c (check_event): For create/death event breakpoints,
5072 loop through all messages to ensure that we read the message
5073 corresponding to the breakpoint we are at.
5074
5075 2003-06-04 Michael Snyder <msnyder@redhat.com>
5076
5077 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5078
5079 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5080
5081 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5082 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5083 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5084 when handling .eh_frame sections.
5085
5086 2003-06-04 J. Brobecker <brobecker@gnat.com>
5087
5088 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5089 prepare_to_proceed procedure instead of the hppa-specific one.
5090 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5091
5092 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5093
5094 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5095 * config.in: Regenerated.
5096 * configure.in: Add test for syscall function and check for
5097 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5098 * configure: Regenerated.
5099 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5100 <sys/syscall.h>.
5101 (kill_lwp): New function that uses tkill syscall or
5102 uses kill, depending on whether threading model is nptl or not.
5103 All callers of kill() changed to use kill_lwp().
5104 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5105 see if all threads have already exited in the nptl model.
5106 (stop_and_resume_callback): New callback function used by the
5107 lin_lwp_wait thread exit handling code.
5108 (stop_wait_callback): Check for threads already having exited and
5109 delete such threads fromt the lwp list when discovered.
5110 (stop_callback): Don't assert retcode of kill call.
5111
5112 Roland McGrath <roland@redhat.com>
5113 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5114 nptl libthread_db.
5115
5116 2003-06-03 Richard Henderson <rth@redhat.com>
5117
5118 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5119 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5120 (alpha_sigtramp_frame_prev_register): Likewise.
5121 (alpha_heuristic_frame_prev_register): Likewise.
5122 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5123
5124 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5125 alpha-specific register id names.
5126 (alpha_mdebug_frame_unwind_cache): Likewise.
5127 (alpha_mdebug_frame_prev_register): Likewise.
5128
5129 2003-06-03 Richard Henderson <rth@redhat.com>
5130
5131 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5132 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5133 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5134 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5135 unwind routines.
5136 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5137 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5138 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5139
5140 * alpha-linux-tdep.c: Remove unnecessary includes.
5141 * Makefile.in (alpha-linux-tdep.o): Update.
5142
5143 2003-06-03 Richard Henderson <rth@redhat.com>
5144
5145 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5146 (alphabsd_fill_fpreg): Likewise.
5147
5148 2003-06-03 J. Brobecker <brobecker@gnat.com>
5149
5150 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5151 references to struct frame_info fields by calls to the equivalent
5152 accessors. Necessary now that frame_info is opaque.
5153
5154 2003-06-03 J. Brobecker <brobecker@gnat.com>
5155
5156 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5157 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5158 structure, field no longer exists.
5159
5160 2003-06-03 J. Brobecker <brobecker@gnat.com>
5161
5162 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5163 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5164
5165 2003-06-03 J. Brobecker <brobecker@gnat.com>
5166
5167 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5168 references to struct frame_info fields by calls to the equivalent
5169 accessors. Necessary now that frame_info is opaque.
5170
5171 2003-06-03 J. Brobecker <brobecker@gnat.com>
5172
5173 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5174 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5175 structure, field no longer exists.
5176
5177 2003-06-03 Theodore A. Roth <troth@openavr.org>
5178
5179 * remote.c (init_remote_state): Compute sizeof_g_packet by
5180 accumulation of the size of all registers instead of blindly using
5181 DEPRECATED_REGISTER_BYTES.
5182
5183 2003-06-03 Michael Snyder <msnyder@redhat.com>
5184
5185 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5186 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5187 for h8300sx.
5188
5189 2003-06-03 J. Brobecker <brobecker@gnat.com>
5190
5191 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5192 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5193
5194 2003-06-03 Andrew Cagney <cagney@redhat.com>
5195
5196 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5197 (sparc_convert_to_raw): Delete function.
5198 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5199 register_convert_to_virtual.
5200
5201 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5202
5203 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5204 layer if not dealing with a statically-linked threaded program.
5205
5206 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5207
5208 * solib.c (solib_open): Update comment to reflect actual search order.
5209
5210 2003-06-03 Andrew Cagney <cagney@redhat.com>
5211
5212 * frame.c (get_frame_memory_signed): New function.
5213 (get_frame_memory, get_frame_memory_unsigned): New function.
5214 (get_frame_arch): New function.
5215 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5216 (get_frame_memory, get_frame_unsigned_memory): Declare.
5217 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5218 get_frame_memory_unsigned and get_frame_arch.
5219 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5220
5221 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5222
5223 * MAINTAINERS (write after approval): Add myself.
5224
5225 2003-06-03 Jim Blandy <jimb@redhat.com>
5226
5227 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5228 elements of gregset_t are 64 bits each, but access registers
5229 are still 32 bits, so they're packed two per gregset_t
5230 element. Unpack/pack them properly.
5231
5232 2003-06-02 David Carlton <carlton@bactrian.org>
5233
5234 * linespec.c (find_methods): Break out code into
5235 add_matching_methods and add_constructors.
5236 (add_matching_methods): New.
5237 (add_constructors): Ditto.
5238
5239 2003-06-02 Andrew Cagney <cagney@redhat.com>
5240
5241 * sparc-tdep.c (sparc_print_registers): Delete call to
5242 REGISTER_CONVERTIBLE.
5243 (sparc_gdbarch_init): Do not set register_convertible.
5244 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5245 * frv-tdep.c (frv_gdbarch_init): Ditto.
5246 * cris-tdep.c (cris_gdbarch_init): Ditto.
5247
5248 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5249
5250 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5251 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5252 (syms_from_objfile): Ditto.
5253
5254 2003-06-03 Andreas Schwab <schwab@suse.de>
5255
5256 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5257 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5258
5259 2003-06-02 Richard Henderson <rth@redhat.com>
5260
5261 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5262 a member of all_reggroup.
5263
5264 2003-06-02 Richard Henderson <rth@redhat.com>
5265
5266 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5267 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5268 (alpha_lds, alpha_sts): New.
5269 (alpha_convert_register_p): Change from _register_convertible.
5270 (alpha_register_to_value): Change from _convert_to_virtual;
5271 restructure and fail for type sizes other than 4 or 8.
5272 (alpha_value_to_register): Similarly.
5273 (alpha_extract_return_value): Use alpha_sts.
5274 (alpha_store_return_value): Use alpha_lds.
5275 (alpha_gdbarch_init): Update hooks.
5276
5277 2003-06-02 Richard Henderson <rth@redhat.com>
5278
5279 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5280 regnum identifiers.
5281 (alpha_sigtramp_register_address): Likewise.
5282
5283 2003-06-02 Richard Henderson <rth@redhat.com>
5284
5285 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5286 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5287 * alpha-tdep.h: Declare them.
5288
5289 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5290 Remove zerobuf. Don't error on UNIQUE.
5291 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5292 (ALPHA_REGSET_UNIQUE): Provide default.
5293 (supply_gregset): Use alpha_supply_int_regs.
5294 (fill_gregset): Use alpha_fill_int_regs.
5295 (supply_fpregset): Use alpha_supply_fp_regs.
5296 (fill_fpregset): Use alpha_fill_fp_regs.
5297 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5298 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5299 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5300 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5301 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5302 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5303
5304 2003-06-02 Richard Henderson <rth@redhat.com>
5305
5306 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5307
5308 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5309 (alpha_store_return_value): Likewise.
5310
5311 2003-06-02 David Carlton <carlton@math.stanford.edu>
5312
5313 * block.c (contained_in): Add 'const' to arguments.
5314 (block_function): Ditto.
5315 * block.h: Update declarations for block_function and
5316 contained_in.
5317
5318 2003-06-02 David Carlton <carlton@math.stanford.edu>
5319
5320 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5321 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5322 * p-valprint.c (pascal_val_print): Ditto.
5323 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5324
5325 2003-06-02 Richard Henderson <rth@redhat.com>
5326
5327 * alpha-tdep.c (alpha_push_dummy_call): Use
5328 builtin_type_ieee_double_little instead of builtin_type_double.
5329
5330 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5331 sign-extension of 32-bit values.
5332 (alpha_store_return_value): Similarly.
5333
5334 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5335 (alpha_extract_return_value): Likewise.
5336 (alpha_store_return_value): Likewise.
5337
5338 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5339 (alpha_store_return_value): Error on IEEE Quad floats.
5340
5341 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5342 (alpha_extract_struct_value_address): Likewise.
5343 (alpha_store_return_value): Likewise.
5344 (alpha_store_struct_return): Remove.
5345 (alpha_gdbarch_init): Update hook registration to match.
5346
5347 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5348 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5349 macros where appropriate.
5350 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5351 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5352
5353 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5354 for SP, GP; void_func_ptr for PC; non-language-specific types
5355 for all others.
5356 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5357
5358 2003-06-02 Richard Henderson <rth@redhat.com>
5359
5360 * top.h (lim_at_start): Declare.
5361 * main.c (captured_main): Set it.
5362 * top.c (lim_at_start): Define.
5363 (command_loop): Use it instead of &environ.
5364 * event-top.c (command_handler): Likewise.
5365
5366 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5367
5368 * mipsnbsd-tdep.c: Update copyright years.
5369 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5370
5371 2003-06-01 Richard Henderson <rth@redhat.com>
5372
5373 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5374 (alpha-linux-tdep.o): Update dependencies.
5375 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5376 * alpha-mdebug-tdep.c: Remove unneeded includes.
5377
5378 2003-06-01 Richard Henderson <rth@redhat.com>
5379
5380 * alpha-tdep.c (alpha_register_reggroup_p): New.
5381 (alpha_gdbarch_init): Register it.
5382
5383 2003-06-02 Andrew Cagney <cagney@redhat.com>
5384
5385 * dwarfread.c: Eliminate "register"
5386 (decode_die_type): Eliminate assignment within "if".
5387 (struct_type, decode_array_element_type): Ditto.
5388 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5389 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5390 (decode_modified_type, completedieinfo): Ditto.
5391 * block.c: Eliminate "register".
5392 (blockvector_for_pc_sect): Eliminate assignment within "if".
5393 * cp-support.h (struct symbol): Opaque declaration.
5394 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5395
5396 2003-06-01 Richard Henderson <rth@redhat.com>
5397
5398 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5399 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5400
5401 2003-06-01 Adam Fedor <fedor@gnu.org>
5402
5403 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5404 * gdbarch.[ch]: Regenerate.
5405 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5406 (hppa_gdbarch_init): Set it in the gdbarch vector.
5407 * i386-tdep.c (i386_fetch_pointer_argument): New
5408 (i386_gdbarch_init): Set it into gdbarch.
5409 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5410 (rs6000_gdbarch_init): Set it in gdbarch.
5411 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5412 (sparc_gdbarch_init): Set it in gdbarch.
5413
5414 2003-06-01 Andrew Cagney <cagney@redhat.com>
5415
5416 * defs.h (extract_address): Delete declaration.
5417 * findvar.c (extract_address): Delete function.
5418 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5419 extract_address with the inline equivalent,
5420 extract_unsigned_integer.
5421 (xstormy16_extract_struct_value_address): Ditto.
5422 (xstormy16_pointer_to_address): Ditto.
5423 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5424 * v850-tdep.c (v850_push_arguments): Ditto.
5425 (v850_extract_return_value): Ditto.
5426 (v850_extract_struct_value_address): Ditto.
5427 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5428 (sparcnbsd_get_longjmp_target_64): Ditto.
5429 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5430 (get_longjmp_target): Ditto.
5431 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5432 (sh64_extract_struct_value_address): Ditto.
5433 (sh_push_arguments): Ditto.
5434 (sh64_push_arguments): Ditto.
5435 * remote-vxsparc.c (vx_read_register): Ditto.
5436 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5437 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5438 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5439 * mipsv4-nat.c (get_longjmp_target): Ditto.
5440 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5441 * mips-nat.c (get_longjmp_target): Ditto.
5442 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5443 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5444 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5445 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5446 * irix5-nat.c (get_longjmp_target): Ditto.
5447 * irix4-nat.c (get_longjmp_target): Ditto.
5448 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5449 (ia64_push_arguments): Ditto.
5450 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5451 * h8300-tdep.c (h8300_push_arguments): Ditto.
5452 (h8300_store_return_value): Ditto.
5453 (h8300_extract_struct_value_address): Ditto.
5454 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5455 (frv_push_arguments): Ditto.
5456 * avr-tdep.c (avr_pointer_to_address): Ditto.
5457 (avr_push_arguments): Ditto.
5458 * arm-tdep.c (arm_push_dummy_call): Ditto.
5459 (arm_get_longjmp_target): Ditto.
5460 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5461 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5462 (alpha_get_longjmp_target): Ditto.
5463
5464 * solib-irix.c (extract_mips_address): Inline extract_address,
5465 replacing it with extract_signed_integer.
5466 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5467 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5468 (first_link_map_member, open_symbol_file_object): Ditto.
5469 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5470 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5471 (LM_NEXT, LM_NAME): Ditto.
5472
5473 2003-06-01 Richard Henderson <rth@redhat.com>
5474
5475 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5476 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5477 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5478 (alpha_cannot_store_register): Likewise.
5479 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5480 * alpha-nat.c (supply_gregset): Likewise.
5481 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5482
5483 2003-06-01 Andrew Cagney <cagney@redhat.com>
5484
5485 * infcall.c (call_function_by_hand): Update comment on
5486 DEPRECATED_DUMMY_WRITE_SP.
5487
5488 * mips-tdep.c (mips_gdbarch_init): Do not set
5489 deprecated_dummy_write_sp.
5490 (mips_eabi_push_dummy_call): Set the SP register.
5491 (mips_o64_push_dummy_call): Set the SP register.
5492 (mips_o32_push_dummy_call): Set the SP register.
5493 (mips_n32n64_push_dummy_call): Set the SP register.
5494
5495 2003-06-01 Richard Henderson <rth@redhat.com>
5496
5497 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5498 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5499 (supply_gregset): Likewise.
5500 * alpha-tdep.c (alpha_store_return_value): Likewise.
5501 (alpha_get_longjmp_target): Likewise.
5502 (alpha_register_name): Constify array.
5503 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5504 deprecated_register_size, deprecated_register_bytes,
5505 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5506 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5507 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5508
5509 2003-06-01 Richard Henderson <rth@redhat.com>
5510
5511 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5512 from arg_reg_buffer to regcache to avoid double conversion.
5513
5514 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5515
5516 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5517 SP_REGNUM.
5518 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5519 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5520
5521 2003-06-01 Richard Henderson <rth@redhat.com>
5522
5523 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5524 (decode_frame_entry): Set it. Skip FDE augmentation.
5525
5526 2003-06-01 Richard Henderson <rth@redhat.com>
5527
5528 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5529 not overlapping PC_REGNUM.
5530
5531 2003-06-01 Richard Henderson <rth@redhat.com>
5532
5533 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5534 alpha_push_arguments. Don't dump argument register data to
5535 the target stack. Fix float and 128-bit long double semantics.
5536 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5537 (alpha_fix_call_dummy): Remove.
5538 (alpha_call_dummy_words): Remove.
5539 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5540
5541 2003-06-01 Richard Henderson <rth@redhat.com>
5542
5543 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5544
5545 2003-06-01 Andrew Cagney <cagney@redhat.com>
5546
5547 * mips-tdep.c (is_mips16_addr): New function.
5548 (make_mips16_addr, unmake_mips16_addr): New functions.
5549 (pc_is_mips16, mips_fetch_instruction): Use.
5550 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5551 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5552 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5553 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5554 TARGET_MIPS.
5555 * config/mips/tm-mips.h: Update copyright.
5556 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5557 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5558 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5559 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5560 (TM_PRINT_INSN_MACH): Delete.
5561 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5562
5563 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5564 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5565 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5566 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5567 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5568 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5569 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5570 mips*-*-riscos* and mips*-*-sysv* onto mips.
5571 * config/mips/mips64.mt: New file.
5572 * config/mips/mips.mt: New file.
5573 * config/mips/littlemips.mt: Delete file.
5574 * config/mips/decstation.mt: Delete file.
5575 * config/mips/vr4300el.mt: Delete file.
5576 * config/mips/vr5000el.mt: Delete file.
5577 * config/mips/vr5000.mt: Delete file.
5578 * config/mips/vr4100.mt: Delete file.
5579 * config/mips/vr4xxxel.mt: Delete file.
5580 * config/mips/vr4300.mt: Delete file.
5581 * config/mips/vr4xxx.mt: Delete file.
5582 * config/mips/bigmips.mt: Delete file.
5583 * config/mips/bigmips64.mt: Delete file.
5584 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5585 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5586 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5587 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5588 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5589 "tm-bigmips.h".
5590 * config/mips/tm-irix3.h: Ditto.
5591 * config/mips/tm-mipsv4.h: Ditto.
5592 * config/mips/tm-embed.h: Ditto.
5593 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5594 "tm-bigmips64.h".
5595 * config/mips/tm-vr5000el.h: Delete file.
5596 * config/mips/tm-tx39l.h: Delete file.
5597 * config/mips/tm-vr4300el.h: Delete file.
5598 * config/mips/tm-vr4xxxel.h: Delete file.
5599 * config/mips/tm-vr4300.h: Delete file.
5600 * config/mips/tm-vr4100.h: Delete file.
5601 * config/mips/tm-vr4xxx.h: Delete file.
5602 * config/mips/tm-vr5000.h: Delete file.
5603 * config/mips/tm-embedl64.h: Delete file.
5604 * config/mips/tm-embedl.h: Delete file.
5605 * config/mips/tm-embed64.h: Delete file.
5606 * config/mips/tm-bigmips64.h: Delete file.
5607 * config/mips/tm-bigmips.h: Delete file.
5608
5609 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5610
5611 Fix gdb/1216.
5612 * shnbsd-nat.c: Include "sh-tdep.h".
5613
5614 From Richard Henderson <rth@redhat.com>:
5615 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5616
5617 2003-05-31 Andrew Cagney <cagney@redhat.com>
5618
5619 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5620 forward declaration.
5621 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5622 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5623 (mips_find_saved_regs): Use set_reg_offset.
5624 (mips_frame_init_saved_regs): Delete function.
5625 (mips_pop_frame): Call mips_find_saved_regs instead of
5626 DEPRECATED_FRAME_INIT_SAVED_REGS.
5627
5628 2003-05-31 Andrew Cagney <cagney@redhat.com>
5629
5630 * mips-tdep.c (mips_gdbarch_init): Do not set
5631 deprecated_max_register_raw_size, register_virtual_size, and
5632 deprecated_max_register_virtual_size.
5633
5634 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5635
5636 * i386-tdep.c: Include "dwarf2-frame.h".
5637 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5638 * Makefile.in (i386-tdep.o): Update dependencies.
5639
5640 * dwarf2-frame.c, dwarf2-frame.h: New files.
5641 * Makefile.in (SFILES): Add dwarf2-frame.c.
5642 (dwarf2_frame_h): Define.
5643 (COMMON_OBS): Add dwarf2-frame.o.
5644 (dwarf2-frame.o): Add dependencies.
5645
5646 2003-05-31 Andreas Jaeger <aj@suse.de>
5647
5648 * x86-64-linux-nat.c: Fix comment.
5649
5650 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5651
5652 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5653 function signature.
5654
5655 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5656 have a sigcontext_addr handler.
5657 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5658 sigcontext_addr handler.
5659
5660 2003-05-31 Andrew Cagney <cagney@redhat.com>
5661
5662 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5663 (print_fp_register_row): Replace do_fp_register_row.
5664 (mips_print_fp_register): Add "file" and "frame" parameters.
5665 (mips_print_register): Add "file" and "frame" parameters.
5666 (mips_print_registers_info): Replace mips_do_registers_info.
5667 (mips_gdbarch_init): Set print_registers_info instead of
5668 deprecated_do_registers_info.
5669 (mips_read_fp_register_single): Add "frame" parameter.
5670 (mips_read_fp_register_double): Add "frame" parameter.
5671
5672 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5673
5674 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5675 Fixes a bug where GDB would print the wrong register names for
5676 targets without SSE.
5677
5678 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5679 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5680 registers.
5681
5682 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5683 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5684 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5685 TDEP->sc_sp_offset.
5686
5687 From Michal Ludvig <mludvig@suse.cz>:
5688 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5689 and `sc_num_regs'.
5690 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5691 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5692 I386_ST0_REGNUM): Move here from...
5693 * i386-tdep.c: ... here.
5694 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5695 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5696 registers if possible.
5697 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5698 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5699 Remove variables.
5700 (i386bsd_sc_reg_offset): New variable.
5701 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5702 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5703 TDEP->sc_sp_offset.
5704 (i386fbsd_sc_reg_offset): New variable.
5705 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5706 TDEP->sc_num_regs.
5707 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5708 variables.
5709 (i386fbsd4_sc_reg_offset): New variable.
5710 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5711 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5712 TDEP->sc_sp_offset.
5713 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5714 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5715 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5716 Remove variables.
5717 (i386nbsd_sc_reg_offset): New variable.
5718 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5719 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5720 TDEP->sc_sp_offset.
5721 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5722 Remove variables.
5723 (i386obsd_sc_reg_offset): New variable.
5724 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5725 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5726 TDEP->sc_sp_offset.
5727 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5728 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5729 for frame pointer offset in `struct sigcontext'.
5730
5731 2003-05-31 Andrew Cagney <cagney@redhat.com>
5732
5733 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5734 architecture methods call_dummy_words, sizeof_call_dummy_words,
5735 push_return_address, store_struct_return, and fix_call_dummy. Set
5736 push_dummy_call instead of deprecated_push_arguments.
5737 (mips_store_struct_return): Delete function.
5738 (mips_fix_call_dummy): Delete function.
5739 (mips_push_return_address): Delete function.
5740 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5741 RA_REGNUM and T9_REGNUM.
5742 (mips_n32n64_push_dummy_call): Ditto for
5743 mips_n32n64_push_arguments.
5744 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5745 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5746
5747 2003-05-31 Andrew Cagney <cagney@redhat.com>
5748
5749 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5750 "dummy_addr" to "bp_addr".
5751 * infcall.c (call_function_by_hand): Pass "funaddr" to
5752 gdbarch_push_dummy_call.
5753 * gdbarch.h, gdbarch.c: Re-generate.
5754 * i386-tdep.c (i386_push_dummy_call): Update.
5755 * arm-tdep.c (arm_push_dummy_call): Update.
5756 * d10v-tdep.c (d10v_push_dummy_call): Update.
5757
5758 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5759
5760 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5761 variable declarations.
5762 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5763 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5764 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5765 x86_64_init_frame_pc, x86_64_init_frame_pc,
5766 x86_64_function_has_prologue): Remove prototypes.
5767 (X86_64_NUM_GREGS): New define.
5768 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5769 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5770 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5771 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5772 XMM1_REGNUM): Remove defines.
5773 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5774 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5775 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5776 X86_64_XMM1_REGNUM): New defines.
5777 (struct x86_64_register_info): Renamed from `struct
5778 register_info'. Remove `size' member.
5779 (x86_64_register_info_table): Remove variable.
5780 (x86_64_register_info): New variable.
5781 (X86_64_NUM_REGS): New define.
5782 (X86_64_NUM_GREGS): Remove define.
5783 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5784 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5785 Remove variables.
5786 (x86_54_dwarf2_reg_to_regnum): Remove function.
5787 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5788 (x86_64_dwarf_reg_to_regnum): New function.
5789 (x86_64_register_name): Rewrite.
5790 (x86_64_register_raw_size): Remove function.
5791 (x86_64_register_byte_table): Remove variable.
5792 (x86_64_register_byte): Remove function.
5793 (x86_64_register_virtual_type): Remove function.
5794 (x86_64_register_type): New function.
5795 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5796 x86_64_register_convert_to_raw): Remove functions.
5797 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5798 (x86_64_use_struct_convention): Make static. Adjust for renamed
5799 defines.
5800 (x86_64_frame_init_saved_regs): Remove function.
5801 (x86_64_push_arguments): Make static. Change to accept a regcache
5802 as argument.
5803 (x86_64_store_return_value, x86_64_extract_return_value): Make
5804 static. Rewrite based on i386 counterparts.
5805 (x86_64_push_dummy_call): New function.
5806 (X86_64_NUM_SAVED_REGS): New define.
5807 (x86_64_register_number): Remove function.
5808 (x86_64_store_struct_return): Remove function.
5809 (x86_64_frameless_function_invocation,
5810 x86_64_function_has_prologue): Remove functions.
5811 (PROLOG_BUFSIZE): Remove define.
5812 (struct x86_64_frame_cache): New structure.
5813 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5814 x86_64_frame_cache, x86_64_frame_this_id,
5815 x86_64_frame_prev_register, x86_64_frame_p,
5816 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5817 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5818 functions.
5819 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5820 variables.
5821 (x86_64_skip_prologue): Rewrite in terms of
5822 x86_64_analyze_prologue.
5823 (x86_64_frame_base_address): New function.
5824 (x86_64_frame_base): New variable.
5825 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5826 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5827 set deprecated_fp_regnum, deprecated_register_size,
5828 deprecated_register_bytes, register_raw_size, register_byte,
5829 register_virtual_type, register_convertiable,
5830 register_convert_to_virtual, convert_to_raw,
5831 deprecated_get_saved_register, deprecated_target_read_fp,
5832 deprecated_push_arguments, deprecated_push_return_address,
5833 deprecated_pop_frame, deprecated_store_struct_return,
5834 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5835 frameless_function_invocation, deprecated_frame_saved_pc,
5836 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5837 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5838 deprecated_init_frame_pc and virtual_frame_pointer. Call
5839 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5840 and x86_64_frame_p. Call frame_base_set_default to register
5841 x86_64_frame_base.
5842 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5843 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5844 (_initialize_x86_64_tdep): Remove function.
5845 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5846 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5847 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5848 define.
5849 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5850 (x86_64_linux_sigcontext_addr): Rewrite.
5851 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5852 x86_64_linux_frame_saved_pc): Remove functions.
5853 (x86_64_linux_pc_in_sigtramp): Renamed from
5854 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5855 trampoline.
5856 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5857 Remove_functions.
5858 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5859 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5860 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5861 (x86_64_regmap): Rename to regmap.
5862 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5863 x86_64_num_gregs.
5864 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5865 x86_64_regmap.
5866 (x86_64_fxsave_offset): Remove function.
5867 (supply_fpregset): Simply call x86_64_supply_fxsave.
5868 (fill_fpregset): Simply call x86_64_fill_fxsave.
5869 (fetch_inferior_registers, store_inferior_registers): Avoid
5870 asignment in if-statement.
5871 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5872 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5873 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5874 (fetch_core_registers): Remove function.
5875 (linux_elf_core_fns): Remove.
5876 (offsetoff): Don't define.
5877 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5878 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5879 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5880 add core-regset.o.
5881 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5882 protection against multiple includes instead of NM_X86_64_h. Add
5883 various comments. Include "config/nm-linux.h". Don't include
5884 <signal.h>.
5885 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5886 GET_THREAD_SIGNALS): Remove defines.
5887 (x86_64_register_u_addr, kernel_u_size,
5888 lin_thread_get_thread_signals): Remove prototypes.
5889 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5890 [HAVE_LINK_H]: Don't include "solib.h".
5891 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5892 * config/i386/tm-x86-64linux.h: Fix comments.
5893 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5894 x86-64-tdep.o): Update dependencies.
5895
5896 2003-05-30 Andrew Cagney <cagney@redhat.com>
5897
5898 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5899 Change parameter type to a "struct regcache *".
5900
5901 * gdbarch.sh: Regardless of the multi-arch level, always define
5902 the macro when not already defined.
5903 * gdbarch.h, gdbarch.c: Re-generate.
5904
5905 2003-05-30 Richard Henderson <rth@redhat.com>
5906
5907 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5908 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5909 (alpha_mdebug_frame_this_id): Likewise.
5910 (alpha_mdebug_frame_prev_register): Likewise.
5911 (alpha_mdebug_frame_base_address): Likewise.
5912 (alpha_mdebug_frame_locals_address): Likewise.
5913 (alpha_mdebug_frame_args_address): Likewise.
5914 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5915 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5916 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5917 loop increment.
5918 (alpha_heuristic_frame_this_id): Make static.
5919 (alpha_heuristic_frame_prev_register): Likewise.
5920 (alpha_heuristic_frame_base_address): Likewise.
5921 * alpha-tdep.h: Update.
5922
5923 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5924
5925 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5926 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5927 defenitions.
5928 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5929 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5930 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5931 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5932 I386_ST0_REGNUM): New defines.
5933 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5934 codestream_get): Remove define.
5935 (codestream_next_addr, condestream_addr, condestream_buf,
5936 codestream_off, codestream_cnt): Remove variables.
5937 (codestream_fill, codestream_seek, codestream_read): Remove
5938 functions.
5939 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5940 functionality.
5941 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5942 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5943 i386_frame_saved_pc, i386_saved_pc_after_call,
5944 i386_frame_num_args, i386_frame_init_saved_regs,
5945 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5946 i386_push_arguments): Remove functions.
5947 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5948 functionality. Use i386_analyze_prologue instead of
5949 i386_get_frame_setup.
5950 (I386_NUM_SAVED_REGS): New define.
5951 (struct i386_frame_cache): New structure.
5952 (i386_alloc_frame_cache, i386_analyze_struct_return,
5953 i386_skip_probe, i386_analyze_frame_setup,
5954 i386_analyze_register_saves, i386_analyze_prologue,
5955 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5956 i386_frame_prev_register, i386_sigtramp_frame_cache,
5957 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5958 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5959 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5960 New functions.
5961 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5962 New variables.
5963 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5964 I386_EAX_REGNUM and I386_EDX_REGNUM.
5965 (i386_extract_return_value, i386_store_return_value): Use
5966 I386_ST0_REGNUM where appropriate.
5967 (i386_extract_struct_value_address): Rewrite to use extract_address.
5968 (i386_svr4_pc_in_sigtramp): Add comment.
5969 (i386_svr4_sigcontext_addr): Rewrite.
5970 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5971 TDEP->sc_sp_offset.
5972 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5973 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5974 of new defines. Set push_dummy_call, don't set
5975 deprecated_push_arguments, deprecated_push_return_address,
5976 deprecated_pop_frame. Don't set parm_boundary. Don't set
5977 deprecated_frame_chain, deprecated_frame_saved_pc,
5978 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5979 save_dummy_frame_tos, unwind_pc. Call
5980 frame_unwind_append_predicate and frame_base_set_default. Don't
5981 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5982 Don't set frameless_function_invocation. Don't set
5983 deprecated_register_bytes, deprecated_register_size,
5984 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5985 * i386-linux-tdep.c: Fix formatting in some comments.
5986 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5987 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5988 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5989 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5990 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5991 redundant parentheses.
5992 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5993 (i386_linux_sigcontext_addr): Use it. Rewrite.
5994 (find_minsym_and_objfile): Change name of second argument.
5995 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5996 changed. Use frame_pc_unwind instead of
5997 DEPRECATED_SAVED_PC_AFTER_CALL.
5998 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5999 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6000 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6001 unwinder.
6002 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6003 "dummy-frame.h".
6004 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6005 (_initialize_i386_cygwin_tdep): New prototype.
6006 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6007 deprecated_frame_chain_valid.
6008 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6009 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6010 Rely on the SVR4 defaults.
6011 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6012 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6013
6014 2003-05-30 Andrew Cagney <cagney@redhat.com>
6015
6016 * infcall.c (call_function_by_hand): Always call
6017 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6018
6019 2003-05-30 Richard Henderson <rth@redhat.com>
6020
6021 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6022 increment.
6023
6024 2003-05-29 Jim Blandy <jimb@redhat.com>
6025
6026 Use gdbarch methods for solib stuff on PowerPC Linux.
6027 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6028 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6029 show through.
6030 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6031 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6032 giving the same effect as the #definitions above.
6033
6034 2003-05-29 Adam Fedor <fedor@gnu.org>
6035
6036 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6037 (find_implementation_from_class): Replace it with the standard
6038 case i.e. do nothing.
6039
6040 2003-05-29 Richard Henderson <rth@redhat.com>
6041
6042 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6043 (alpha_linux_sigtramp_offset): Use it. Make static.
6044 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6045 update for new frame model.
6046 * alpha-mdebug-tdep.c: New file.
6047 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6048 (alpha_osf1_init_abi): Install it.
6049 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6050 (linked_proc_desc_table): Remove.
6051 (alpha_frame_past_sigtramp_frame): Remove.
6052 (alpha_dynamic_sigtramp_offset): Remove.
6053 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6054 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6055 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6056 (push_sigtramp_desc): Remove.
6057 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6058 (alpha_cannot_store_register): Likewise.
6059 (alpha_sigcontext_addr): Remove.
6060 (alpha_find_saved_regs): Remove.
6061 (alpha_frame_init_saved_regs): Remove.
6062 (alpha_init_frame_pc_first): Remove.
6063 (read_next_frame_reg): Remove.
6064 (alpha_frame_saved_pc): Remove.
6065 (alpha_saved_pc_after_call): Remove.
6066 (temp_proc_desc, temp_saved_regs): Remove.
6067 (alpha_about_to_return): Remove.
6068 (cached_proc_desc): Remove.
6069 (alpha_frame_chain): Remove.
6070 (alpha_print_extra_frame_info): Remove.
6071 (alpha_init_extra_frame_info): Remove.
6072 (alpha_frame_locals_address): Remove.
6073 (alpha_frame_args_address): Remove.
6074 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6075 (alpha_push_dummy_frame): Remove.
6076 (alpha_pop_frame): Remove.
6077 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6078 (alpha_read_insn): New.
6079 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6080 for different insn encodings.
6081 (alpha_in_lenient_prologue): Remove.
6082 (struct alpha_sigtramp_unwind_cache): New.
6083 (alpha_sigtramp_frame_unwind_cache): New.
6084 (alpha_sigtramp_register_address): New.
6085 (alpha_sigtramp_frame_this_id): New.
6086 (alpha_sigtramp_frame_prev_register): New.
6087 (alpha_sigtramp_frame_unwind): New.
6088 (alpha_sigtramp_frame_p): New.
6089 (struct alpha_heuristic_unwind_cache): New.
6090 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6091 don't count nop insns that occur between functions.
6092 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6093 heuristic_proc_desc, but without the mdebug wrapping.
6094 (alpha_heuristic_frame_this_id): New.
6095 (alpha_heuristic_frame_prev_register): New.
6096 (alpha_heuristic_frame_unwind): New.
6097 (alpha_heuristic_frame_p): New.
6098 (alpha_heuristic_frame_base_address): New.
6099 (alpha_heuristic_frame_base): New.
6100 (alpha_unwind_dummy_id): New.
6101 (alpha_unwind_pc): New.
6102 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6103 frame related deprecated initializations; install replacements.
6104 (alpha_dump_tdep): Remove.
6105 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6106 (alpha_read_insn, alpha_after_prologue,
6107 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6108 alpha_heuristic_frame_prev_register,
6109 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6110 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6111 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6112 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6113
6114 2003-05-29 Andrew Cagney <cagney@redhat.com>
6115
6116 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6117 dependant on the availability of ASSERT_FUNCTION.
6118 (ASSERT_FUNCTION): Do not define when there is no function name.
6119
6120 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6121
6122 From Jimi X <jimix@watson.ibm.com>:
6123 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6124
6125 2003-05-28 Jim Blandy <jimb@redhat.com>
6126
6127 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6128 argument to ptrace to int; the system headers should give it the
6129 right type, and pointers don't fit in ints on powerpc64-*-*.
6130
6131 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6132
6133 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6134 DW_TAG_catch_block.
6135
6136 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6137
6138 * stabsread.c (dbx_lookup_type): Make static.
6139 (read_type): Ditto.
6140 (add_undefined_type): Ditto.
6141 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6142 not export.
6143
6144 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6145
6146 * hpread.c (hpread_has_name): Make static.
6147 (hpread_psymtab_to_symtab): Ditto.
6148 (file_exists): Ditto.
6149 (hpread_call_pxdb): Ditto.
6150 (hpread_pxdb_needed): Ditto.
6151 (hpread_quick_traverse): Ditto.
6152 (hpread_get_header): Ditto.
6153 (hpread_get_lntt): Ditto.
6154 (hpread_get_slt): Ditto.
6155 (class_of): Ditto.
6156
6157 2003-05-25 Andreas Schwab <schwab@suse.de>
6158
6159 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6160 stack_align and deprecated_extra_stack_alignment_needed.
6161 (m68k_stack_align): Delete.
6162
6163 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6164 (m68k_register_virtual_size): Likewise.
6165 (altos_skip_prologue): Remove obsolete function.
6166 (isi_frame_num_args): Likewise.
6167 (news_frame_num_args): Likewise.
6168 (m68k_fix_call_dummy): Make static.
6169 (m68k_push_dummy_frame): Likewise.
6170 (m68k_pop_frame): Likewise.
6171 (m68k_skip_prologue): Likewise.
6172 (m68k_frame_init_saved_regs): Likewise.
6173 (m68k_saved_pc_after_call): Likewise.
6174 (m68k_get_longjmp_target): Make multi-arch.
6175 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6176 structure. Register m68k_get_longjmp_target if enabled.
6177 * m68k-tdep.h (struct gdbarch_tdep): Define.
6178 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6179
6180 * Makefile.in (config.status): Also depend on configure.tgt
6181 and configure.host.
6182 (m68klinux-tdep.o): Update dependencies.
6183 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6184 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6185 (M68K_LINUX_JB_PC): Define.
6186 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6187 and take additional parameter.
6188 (m68k_linux_sigtramp_saved_pc): Update.
6189 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6190 m68k_linux_pc_in_sigtramp, in_plt_section,
6191 find_solib_trampoline_target.
6192 * config/m68k/tm-linux.h: Don't include any tm headers.
6193 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6194 (JB_ELEMENT_SIZE): Likewise.
6195 (JB_PC): Likewise.
6196 (GET_LONGJMP_TARGET): Likewise.
6197 (IN_SIGTRAMP): Likewise.
6198 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6199
6200 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6201
6202 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6203 (sparc32_push_arguments): Re-implement by calling
6204 sparc32_do_push_arguments.
6205
6206 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6207
6208 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6209 SPARC_O1_REGNUM): New defines.
6210 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6211 (sparc32_store_return_value): New function.
6212 (sparc_extract_struct_value_address): Rewrite to operate on a
6213 regcache.
6214 (sparc_gdbarch_init): Don't set
6215 deprecated_extract_struct_value_address. Set
6216 extract_struct_value_address instead. Don't set
6217 deprecated_extract_return_value and deprecated_store_return_value
6218 for 32-bit targets. Set extract_return_value and
6219 store_return_value instead.
6220 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6221 DEPRECTAED_EXTRACT_RETURN_VALUE,
6222 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6223 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6224 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6225 (sparc_store_return_value): Remove prototype.
6226 (sparc32_store_return_value): New prototype.
6227 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6228 Adjust prototypes.
6229
6230 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6231
6232 * sparcnbsd-tdep.c: Include "gdb_string.h".
6233
6234 2003-05-23 Andrew Cagney <cagney@redhat.com>
6235
6236 * p-valprint.c (pascal_val_print): Replace extract_address with
6237 the inline equivalent extract_unsigned_integer.
6238 * jv-valprint.c (java_value_print): Ditto.
6239 * ada-valprint.c (ada_val_print_1): Ditto.
6240 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6241
6242 2003-05-23 Theodore A. Roth <troth@openavr.org>
6243
6244 * blockframe.c (frameless_look_for_prologue): Remove unused
6245 after_prologue variable.
6246
6247 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6248
6249 * blockframe.c (get_pc_function_start): Rewrite to avoid
6250 asignments in if-statements.
6251
6252 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6253
6254 Committed by Elena Zannoni <ezannoni@redhat.com>.
6255 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6256 files, don't relocate absolute symbols (and do use mst_abs).
6257
6258 2003-05-23 Andrew Cagney <cagney@redhat.com>
6259
6260 * objc-lang.c: Include "gdb_assert.h".
6261 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6262 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6263 (gdb_check, gdb_check_fatal): Delete functions.
6264 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6265 gdb_assert.
6266 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6267 * Makefile.in (objc-lang.o): Update dependencies.
6268
6269 2003-05-22 Ian Lance Taylor <ian@airs.com>
6270
6271 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6272 with fprintf_filtered, not fprintf_unfiltered.
6273
6274 2003-05-22 Andrew Cagney <cagney@redhat.com>
6275
6276 * stack.c (frame_info): Inline extract_address, replacing it with
6277 extract_unsigned_integer.
6278 * findvar.c (unsigned_pointer_to_address): Ditto.
6279 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6280 * dwarf2expr.c (dwarf2_read_address): Ditto.
6281 * frame.c (frame_pc_unwind): Update comment.
6282 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6283
6284 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6285
6286 * infptrace.c (detach): Call print_sys_errmsg rather than
6287 perror_with_name to issue warning message when errno is non-zero
6288 after calling ptrace detach.
6289
6290 2003-05-21 J. Brobecker <brobecker@gnat.com>
6291
6292 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6293 macro definitions from here...
6294 * hppa-tdep.c: ...to there.
6295
6296 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6297
6298 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6299 register_ptrace_addr(). Fix all callers.
6300
6301 2003-05-21 Andreas Schwab <schwab@suse.de>
6302
6303 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6304 dependencies.
6305 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6306 end.
6307 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6308 (_initialize_m68k_linux_tdep): New function.
6309 (m68k_linux_frame_saved_pc): Make static.
6310 (m68k_linux_extract_return_value): Likewise.
6311 (m68k_linux_store_return_value): Likewise.
6312 (m68k_linux_extract_struct_value_address): Likewise.
6313 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6314 Remove.
6315 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6316 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6317 (DEPRECATED_FRAME_SAVED_PC): Remove.
6318
6319 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6320
6321 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6322 regset numbering rather than our own.
6323
6324 2003-05-19 David Carlton <carlton@bactrian.org>
6325
6326 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6327
6328 2003-05-19 David Carlton <carlton@bactrian.org>
6329
6330 Partial fix for PR c++/827.
6331 * cp-support.h: Include symtab.h.
6332 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6333 * cp-namespace.c: Update contributors.
6334 (cp_lookup_symbol_nonlocal): New.
6335 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6336 (lookup_symbol_file): Ditto.
6337 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6338 * block.h: Declare block_scope, block_using, block_global_block.
6339 * block.c (block_scope): New.
6340 (block_using, block_global_block): Ditto.
6341 * Makefile.in (cp_support_h): Depend on symtab_h.
6342 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6343
6344 2003-05-19 David Carlton <carlton@bactrian.org>
6345
6346 * language.h (struct language_defn): Add 'la_value_of_this'
6347 and 'la_lookup_symbol_nonlocal' members.
6348 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6349 lookup_symbol_static, lookup_symbol_global,
6350 lookup_symbol_aux_block.
6351 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6352 if we should search fields of this and how to do static/global
6353 lookup.
6354 (lookup_symbol_aux_block): Make extern.
6355 (basic_lookup_symbol_nonlocal): New.
6356 (lookup_symbol_static, lookup_symbol_global): Ditto.
6357 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6358 'la_lookup_symbol_nonlocal' members.
6359 * c-lang.c (c_language_defn, cplus_language_defn)
6360 (asm_language_defn, minimal_language_defn): Ditto.
6361 * jv-lang.c (java_language_defn): Ditto.
6362 * language.c (unknown_language_defn, auto_language_defn)
6363 (local_language_defn): Ditto.
6364 * m2-lang.c (m2_language_defn): Ditto.
6365 * objc-lang.c (objc_language_defn): Ditto.
6366 * scm-lang.c (scm_language_defn): Ditto.
6367 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6368 * p-lang.c (pascal_language_defn): Ditto for both.
6369 * Makefile.in (f-lang.o): Depend on value_h.
6370 (p-lang.o): Ditto.
6371
6372 2003-05-19 David Carlton <carlton@bactrian.org>
6373
6374 * block.h: Declare block_static_block.
6375 * block.c (block_static_block): New.
6376 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6377 lookup_symbol_aux_local, calling block_static_block instead.
6378 (lookup_symbol_aux_local): Delete 'static_block' argument.
6379
6380 2003-05-19 David Carlton <carlton@bactrian.org>
6381
6382 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6383
6384 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6385
6386 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6387 register numbers mapping.
6388
6389 2003-05-18 Adam Fedor <fedor@gnu.org>
6390
6391 * symtab.c (completion_list_objc_symbol): New function.
6392 (make_symbol_completion_list): Use it to add ObjC symbols
6393 when looking though the list.
6394 (language_search_unquoted_string): New function.
6395 (make_file_symbol_completion_list): Use it.
6396
6397 2003-05-18 Andreas Schwab <schwab@suse.de>
6398
6399 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6400 dependencies.
6401 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6402 as m68k_linux_extract_return_value.
6403 (DEPRECATED_STORE_RETURN_VALUE): Define as
6404 m68k_linux_store_return_value.
6405 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6406 m68k_linux_extract_struct_value_address.
6407 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6408 get_next_frame, get_frame_base, get_frame_pc.
6409 (m68k_linux_frame_saved_pc): Use get_frame_base.
6410 (m68k_linux_extract_return_value): New function.
6411 (m68k_linux_store_return_value): New function.
6412 (m68k_linux_extract_struct_value_address): New function.
6413 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6414
6415 * c-exp.y (typebase): Remove duplicate occurence of
6416 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6417 of lookup_signed_typename.
6418
6419 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6420
6421 * dwarf2loc.c (find_location_expression): Change type of second
6422 argument to `size_t *'.
6423 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6424 for size variable.
6425
6426 2003-05-18 David Carlton <carlton@bactrian.org>
6427
6428 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6429 'linkage_name'. Add comment.
6430 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6431 'linkage_name'.
6432 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6433 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6434 (lookup_block_symbol): Ditto.
6435
6436 2003-05-16 Andrew Cagney <cagney@redhat.com>
6437
6438 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6439 * gdbarch.h, gdbarch.c: Re-generate.
6440 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6441 * TODO (REGISTER_BYTES): Delete reference.
6442 * alpha-tdep.c (alpha_gdbarch_init): Update.
6443 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6444 * x86-64-tdep.c (x86_64_init_abi): Update.
6445 * vax-tdep.c (vax_gdbarch_init): Update.
6446 * v850-tdep.c (v850_gdbarch_init): Update.
6447 * sparc-tdep.c (sparc_gdbarch_init): Update.
6448 * sh-tdep.c (sh_gdbarch_init): Update.
6449 * s390-tdep.c (s390_gdbarch_init): Update.
6450 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6451 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6452 (ns32k_gdbarch_init_32382): Update.
6453 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6454 * mcore-tdep.c (mcore_gdbarch_init): Update.
6455 * m68k-tdep.c (m68k_gdbarch_init): Update.
6456 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6457 * ia64-tdep.c (ia64_gdbarch_init): Update.
6458 * i386-tdep.c (i386_gdbarch_init): Update.
6459 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6460 * hppa-tdep.c (hppa_gdbarch_init): Update.
6461 * h8300-tdep.c (h8300_gdbarch_init): Update.
6462 * frv-tdep.c (frv_gdbarch_init): Update.
6463 * cris-tdep.c (cris_gdbarch_init): Update.
6464 * avr-tdep.c (avr_gdbarch_init): Update.
6465 * arm-tdep.c (arm_gdbarch_init): Update.
6466 * sparc-tdep.c (sparc_pop_frame): Update.
6467 * rs6000-tdep.c (rs6000_pop_frame): Update.
6468 * remote.c (init_remote_state): Update.
6469 (remote_prepare_to_store): Update.
6470 * remote-vx.c (vx_prepare_to_store): Update.
6471 * remote-sds.c (sds_fetch_registers): Update.
6472 (sds_prepare_to_store): Update.
6473 * remote-array.c: Update.
6474 * regcache.c (init_legacy_regcache_descr): Update.
6475 (init_regcache_descr): Update.
6476 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6477 (mips_o64_extract_return_value): Update.
6478 * irix5-nat.c (fetch_core_registers): Update.
6479 * irix4-nat.c (fetch_core_registers): Update.
6480 * i386-tdep.h: Update.
6481 * hppa-tdep.c (pa_do_registers_info): Update.
6482 (pa_do_strcat_registers_info): Update.
6483 * cris-tdep.c (cris_register_bytes_ok): Update.
6484 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6485 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6486 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6487 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6488 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6489 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6490 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6491 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6492 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6493 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6494 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6495 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6496 (REGISTER_BYTES_OK): Update.
6497 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6498 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6499
6500 2003-05-16 Ian Lance Taylor <ian@airs.com>
6501
6502 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6503 (vax_print_insn, print_insn_arg): Remove static functions.
6504 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6505 print_insn_vax from opcodes library.
6506 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6507
6508 2003-05-15 Andrew Cagney <cagney@redhat.com>
6509
6510 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6511 * target.h (memory_breakpoint_from_pc): Delete declaration.
6512 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6513 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6514 * monitor.c (monitor_insert_breakpoint): Use
6515 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6516 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6517 * gdbarch.h, gdbarch.c: Re-generate.
6518 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6519 (sparc_gdbarch_init): Set breakpoint_from_pc to
6520 sparc_breakpoint_from_pc.
6521 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6522 (BREAKPOINT_FROM_PC): Define.
6523 (sparc_breakpoint_from_pc): Declare.
6524 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6525 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6526 (BREAKPOINT_FROM_PC): Define.
6527 (BREAKPOINT): Delete macro.
6528 * target.h: Update comment.
6529 * s390-tdep.c (s390_gdbarch_init): Update comments.
6530 * remote.c: Update comments.
6531 * remote-mips.c: Update comments.
6532 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6533 * mem-break.c: Update comment.
6534 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6535 (ia64_memory_insert_breakpoint): Update.
6536 * config/sparc/tm-sparc.h: Update comment.
6537 * config/pa/tm-hppa64.h: Update comment.
6538 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6539 (rs6000_breakpoint_from_pc): Update.
6540 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6541 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6542 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6543 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6544 (mips_breakpoint_from_pc): Update.
6545 (mips_dump_tdep): Update.
6546
6547 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6548 * minsyms.c (lookup_minimal_symbol): Inline
6549 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6550
6551 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6552 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6553 * p-lang.c (pascal_printstr): Ditto.
6554 * objc-lang.c (objc_printstr): Ditto.
6555 * m2-lang.c (m2_printstr): Ditto.
6556 * jv-valprint.c (java_print_value_fields): Ditto.
6557 * f-lang.c (f_printstr): Ditto.
6558 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6559 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6560 for repeat_count_threshold.
6561 * Makefile.in (cp-valprint.o): Update dependencies.
6562
6563 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6564
6565 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6566 (examine_prologue): Support looking through leaf functions, knowing
6567 they start with mov r2,r12. Support skipping over indirect stores
6568 of the input registers. Upon hitting a non-nop branch instruction
6569 or predicated instruction, bail out by setting lim_pc to the current
6570 pc value in the loop. At the end, if the lim_pc value is still
6571 beyond our calculated value and we have trust_limit set,
6572 use the lim_pc value.
6573
6574 2003-05-15 Andrew Cagney <cagney@redhat.com>
6575
6576 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6577 generic_find_dummy_frame.
6578 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6579 (deprecated_generic_find_dummy_frame): Update.
6580 (deprecated_read_register_dummy): Update.
6581 * frame.c (deprecated_generic_get_saved_register): Update.
6582
6583 2003-05-15 Theodore A. Roth <troth@openavr.org>
6584
6585 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6586 (avr_gdbarch_init): Set breakpoint_from_pc method.
6587
6588 2003-05-15 Andrew Cagney <cagney@redhat.com>
6589
6590 * regcache.c (build_regcache): Set deprecated_register_valid
6591 directly.
6592 (deprecated_grub_regcache_for_register_valid): Delete function.
6593 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6594 declaration.
6595
6596 2003-05-15 David Carlton <carlton@bactrian.org>
6597
6598 Committed by Elena Zannoni <ezannoni@redhat.com>
6599 * symtab.c (lookup_symbol_aux): Delete calls to
6600 lookup_symbol_aux_minsyms.
6601 (lookup_symbol_aux_minsyms): Comment out function and
6602 prototype. Delete lookup by mangled name.
6603
6604 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6605
6606 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6607 correctly indicate an empty stack and ``stack_allocated'' to the
6608 indicate the number of elements initially allocated.
6609 (dwarf_expr_grow_stack): Simplify method for computing new
6610 stack size. Don't loop infinitely if ``stack_len'' is zero.
6611 (execute_stack_op): Move ``ctx->in_reg'' initialization
6612 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6613 be used in conjuction with DW_OP_piece. Revise error message
6614 accordingly.
6615
6616 2003-05-14 Theodore A. Roth <troth@openavr.org>
6617
6618 * MAINTAINERS: Update my email address.
6619 * avr-tdep.c: Ditto.
6620
6621 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6622
6623 * symtab.h (enum domain_enum): Rename from namespace_enum.
6624 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6625 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6626 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6627 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6628 TYPES_NAMESPACE, METHODS_NAMESPACE.
6629 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6630 (struct symbol, struct partial_symbol): Rename field
6631 'namespace_enum namespace' to 'domain_enum domain'.
6632 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6633 Delete old define kludge for namespace.
6634
6635 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6636 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6637 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6638 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6639 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6640 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6641 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6642 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6643 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6644 occurrences of the above.
6645
6646 2003-05-14 Ian Lance Taylor <ian@airs.com>
6647
6648 * Makefile.in (install-only): Use $(SHELL) when running
6649 mkinstalldirs.
6650
6651 2003-05-13 Ian Lance Taylor <ian@airs.com>
6652
6653 * MAINTAINERS (write after approval): Add myself.
6654
6655 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6656 second and third arguments.
6657 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6658 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6659
6660 2003-05-13 Andrew Cagney <cagney@redhat.com>
6661
6662 * defs.h (store_address): Delete declaration.
6663 findvar.c (store_address): Delete function.
6664 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6665 store_unsigned_integer.
6666 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6667 * v850-tdep.c (v850_push_arguments): Ditto.
6668 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6669 * sh-tdep.c (sh64_get_saved_register): Ditto.
6670 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6671 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6672 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6673 (mips_get_saved_register): Ditto.
6674 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6675 (find_func_descr, ia64_push_arguments): Ditto.
6676 * i386-tdep.c (i386_push_arguments): Ditto.
6677 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6678 * frv-tdep.c (frv_push_arguments): Ditto.
6679 * frame.c (legacy_saved_regs_prev_register): Ditto.
6680 (deprecated_generic_get_saved_register): Ditto.
6681 * findvar.c (unsigned_address_to_pointer): Ditto.
6682 * dwarf2read.c (dwarf2_const_value): Ditto.
6683 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6684 * alpha-tdep.c (alpha_push_arguments): Ditto.
6685
6686 2003-05-12 J. Brobecker <brobecker@gnat.com>
6687
6688 * NEWS: Mention that the hppa-hpux port has been partially
6689 multiarched (32bit ABIT only, so far).
6690
6691 2003-05-11 Andrew Cagney <cagney@redhat.com>
6692
6693 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6694 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6695 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6696 sim/testsuite/sim/arm/misaligned2.ms, and
6697 sim/testsuite/sim/arm/misaligned3.ms.
6698 * disasm.h (struct ui_file): Add opaque struct declaration.
6699 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6700 * frame.h (struct ui_file): Ditto.
6701
6702 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6703
6704 * value.h: Pretty print.
6705
6706 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6707
6708 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6709
6710 2003-05-08 Andrew Cagney <cagney@redhat.com>
6711
6712 * regcache.h (max_register_size): Delete declaration.
6713 * regcache.c (max_register_size): Delete function.
6714 (struct regcache_descr): Delete field "max_register_size".
6715 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6716 registers fit in MAX_REGISTER_SIZE.
6717 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6718 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6719 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6720 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6721 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6722 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6723 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6724 * dve3900-rom.c, hppa-tdep.c: Ditto.
6725
6726 2003-05-08 David Carlton <carlton@math.stanford.edu>
6727
6728 * valops.c (push_word): Fix typo.
6729
6730 2003-05-08 Andrew Cagney <cagney@redhat.com>
6731
6732 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6733 * gdbarch.h: Re-generate.
6734 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6735 (legacy_max_register_raw_size): Delete declaration.
6736 * regcache.c (legacy_max_register_raw_size): Delete function.
6737 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6738 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6739 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6740 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6741 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6742 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6743 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6744 * findvar.c, dwarf2cfi.c: Ditto.
6745
6746 2003-05-08 Andrew Cagney <cagney@redhat.com>
6747
6748 * mips-tdep.c (read_signed_register): New function, moved to here
6749 from "regcache.c".
6750 (read_signed_register_pid): Ditto.
6751 * regcache.c (read_signed_register_pid): Delete function, moved to
6752 "mips-tdep.c".
6753 (read_signed_register): Ditto.
6754 * regcache.h (read_signed_register): Delete declaration.
6755 (read_signed_register_pid): Delete declaration.
6756
6757 2003-05-08 Andrew Cagney <cagney@redhat.com>
6758
6759 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6760 * gdbarch.h: Re-generate.
6761 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6762 (legacy_max_register_virtual_size): Delete declaration.
6763 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6764 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6765 * tracepoint.c (memrange_sortmerge): Ditto.
6766 * sparc-tdep.c (sparc_print_registers): Ditto.
6767 * regcache.c (legacy_max_register_virtual_size): Delete function.
6768
6769 2002-05-08 J. Brobecker <brobecker@gnat.com>
6770
6771 * fork-child.c (escape_bang_in_quoted_argument): New function.
6772 (fork_inferior): Escape '!' characters in quoted arguments
6773 only when needed.
6774
6775 2003-05-08 J. Brobecker <brobecker@gnat.com>
6776
6777 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6778 the language of the CU is not currently supported by GDB.
6779
6780 2003-05-08 J. Brobecker <brobecker@gnat.com>
6781
6782 * defs.h (language): Add language_minimal enum value.
6783 * c-lang.c (minimal_language_defn): New language definition.
6784 (_initialize_c_language): Add the new minimal language to the list
6785 of languages known to GDB.
6786
6787 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6788
6789 * frame.c (get_frame_type): Don't attempt to lazily initialize
6790 frame's unwinder for legacy frames.
6791
6792 2003-05-07 Andrew Cagney <cagney@redhat.com>
6793
6794 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6795 and "regcache" parameters.
6796 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6797
6798 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6799
6800 * dwarf2read.c (dwarf_decode_lines): Only use output of
6801 check_cu_functions() when calling record_line(). Do not update
6802 the current address.
6803
6804 2003-05-07 Andrew Cagney <cagney@redhat.com>
6805
6806 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6807 code.
6808
6809 2003-05-07 Jim Blandy <jimb@redhat.com>
6810
6811 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6812 'maint info symtabs' and 'maint info psymtabs'.
6813 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6814 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6815 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6816 Declarations updated.
6817 * maint.c (maintenance_list_command): Delete.
6818 (_initialize_maint_cmds): Update calls to add_cmd.
6819 * gdbcmd.h (maintenancelistlist): Delete declaration.
6820 * cli/cli-cmds.c (maintenancelistlist): Delete.
6821 (init_cmd_lists): Don't initialize it.
6822 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6823
6824 2003-05-07 Andrew Cagney <cagney@redhat.com>
6825
6826 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6827 "regcache".
6828 (d10v_print_registers_info): Update.
6829 (d10v_dmap_register, d10v_imap_register): Delete functions.
6830 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6831 and "imap_register".
6832 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6833 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6834 * arch-utils.c (generic_remote_translate_xfer_address): Add
6835 "regcache" and "gdbarch" parameters.
6836 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6837 parameter. Change class to multi-arch.
6838 * gdbarch.h, gdbarch.c: Re-generate.
6839 * remote.c (remote_xfer_memory): Use
6840 gdbarch_remote_translate_xfer_address.
6841
6842 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6843
6844 * infrun.c (prev_pc): Move declaration ahead of proceed().
6845 (proceed): Refresh prev_pc value before resuming.
6846 (stop_stepping): Remove code to refresh prev_pc.
6847
6848 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6849
6850 * nto-tdep.c: Removed stray comment.
6851
6852 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6853
6854 * i386-nto-tdep.c: Fix old K&R function definitions.
6855 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6856 Also change add_show_from_set() call to add_setshow_cmd().
6857 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6858
6859 2003-05-05 Andrew Cagney <cagney@redhat.com>
6860
6861 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6862 (fprint_dummy_frames): New function.
6863 (maintenance_print_dummy_frames): New function.
6864 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6865 * frame.c (fprint_frame_id): Make global.
6866 * frame.h (fprint_frame_id): Declare.
6867 * Makefile.in (dummy-frame.o): Update dependencies.
6868
6869 2003-05-05 Andrew Cagney <cagney@redhat.com>
6870
6871 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6872 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6873 SIZEOF_CALL_DUMMY_WORDS.
6874 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6875 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6876 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6877 CALL_DUMMY_BREAKPOINT_OFFSET.
6878 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6879 CALL_DUMMY_START_OFFSET.
6880 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6881 * gdbarch.h, gdbarch.c: Re-generate.
6882 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6883 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6884 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6885 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6886 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6887 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6888 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6889 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6890 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6891 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6892 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6893 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6894 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6895 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6896 * config/sparc/tm-sparc.h: Update.
6897
6898 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6899
6900 * configure.tgt: Add i[3456]86-*-nto*.
6901 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6902 * nto-tdep.c: New file. Neutrino target support routines.
6903 * nto-tdep.h: New file. Neutrino target header.
6904 * config/tm-qnxnto.h: New file.
6905 * config/i386/i386nto.mt: New file.
6906 * config/i386/tm-i386nto.h: New file.
6907
6908 2003-05-04 Andrew Cagney <cagney@redhat.com>
6909
6910 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6911 (load_infrun_state): Ditto.
6912 (struct thread_info): Drop "prev_func_name" field.
6913 * thread.c (load_infrun_state): Update.
6914 (save_infrun_state): Update.
6915 * infrun.c (prev_func_name): Delete variable.
6916 (init_wait_for_inferior): Do not clear prev_func_name.
6917 (stop_stepping, keep_going, context_switch): Do not swap
6918 prev_func_name.
6919 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6920 instead of PC_IN_SIGTRAMP.
6921
6922 2003-05-04 Andrew Cagney <cagney@redhat.com>
6923
6924 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6925 REGISTER_BYTE with register_offset_hack.
6926 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6927 that REGISTER_BYTE is consistent with the regcache.
6928 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6929 * gdbarch.h, gdbarch.c: Regenerate.
6930
6931 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6932
6933 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6934 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6935
6936 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6937
6938 2003-05-03 J. Brobecker <brobecker@gnat.com>
6939
6940 From Thierry Schneider <tpschneider1@yahoo.com>
6941 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6942 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6943 (mi-cmd-symbol.o): Add rule.
6944
6945 2003-05-03 Andrew Cagney <cagney@redhat.com>
6946
6947 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6948 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6949 * gdbarch.h, gdbarch.c: Re-generate.
6950 * d10v-tdep.c (d10v_push_dummy_code): New function.
6951 (d10v_gdbarch_init): Set push_dummy_code.
6952 * infcall.c (legacy_push_dummy_code): New function.
6953 (generic_push_dummy_code): New function.
6954 (push_dummy_code): New function.
6955 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6956 instead of dummy_addr, to push_dummy_call. Move call to
6957 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6958 switch.
6959 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6960
6961 2003-05-03 Andrew Cagney <cagney@redhat.com>
6962
6963 * disasm.h (print_insn): Declare.
6964 * disasm.c (init_gdb_disassemble_info): New function.
6965 (gdb_disassembly): Call init_gdb_disassemble_info.
6966 (gdb_print_insn): New function.
6967 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6968 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6969 * mcore-tdep.c: Include "disasm.h"
6970 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6971 * d10v-tdep.c: Include "disasm.h".
6972 (display_trace): Call gdb_print_insn, instead of print_insn.
6973 (print_insn): Delete function.
6974 * printcmd.c: Include "disasm.h".
6975 (print_insn): Delete function.
6976 (print_formatted): Call gdb_print_insn, instead of print_insn.
6977 * Makefile.in (printcmd.o): Update dependencies.
6978 (mcore-tdep.o, d10v-tdep.o): Ditto.
6979
6980 2003-05-02 Andrew Cagney <cagney@redhat.com>
6981
6982 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6983 PC_REGNUM, re-indent.
6984 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6985 PC_REGNUM isn't set.
6986
6987 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6988 * gdbarch.h, gdbarch.c: Re-generate.
6989 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6990 register_virtual_size, pc_regnum, or register_bytes.
6991 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6992 (d10v_register_type): Use D10V_PC_REGNUM.
6993 (d10v_print_registers_info, d10v_read_pc): Ditto.
6994 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6995 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6996
6997 2003-05-02 David Carlton <carlton@bactrian.org>
6998
6999 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7000 the name with mstrsave.
7001
7002 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7003
7004 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7005 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7006 (host_charset_name, target_charset_name): New vars for use by
7007 set/show commands.
7008 (host_charset_enum, target_charset_enum): New enums for set/show
7009 commands.
7010 (set_charset_sfunc, set_host_charset_sfunc,
7011 set_target_charset_sfunc): New functions.
7012 (set_host_charset, set_target_charset): Make static.
7013 (list_charsets, set_host_charset_command,
7014 set_target_charset_command): Delete functions.
7015 (show_charset_command): Rewrite as....
7016 (show_charset): Hook this up with the set/show command mechanism.
7017 (_initialize_charset): Change names of charsets to match the
7018 set/show enums. Use host_charset_name and target_charset_name.
7019 Use set/show mechanism for charset, host-charset, target-charset
7020 commands. Do not make 'show host-charset' and 'show
7021 target-charset' be aliases of 'show charset'.
7022
7023 * charset.h (set_host_charset, set_target_charset): Don't export,
7024 they are not used outside the file.
7025
7026 2003-05-01 Andrew Cagney <cagney@redhat.com>
7027
7028 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7029 (gdb_disassembly): Make "di" non static, always initialize and
7030 cleanup. Always use dis_asm_read_memory.
7031 (gdb_dis_asm_read_memory): Delete function.
7032
7033 2003-05-01 Andrew Cagney <cagney@redhat.com>
7034
7035 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7036 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7037
7038 2003-04-30 Andrew Cagney <cagney@redhat.com>
7039
7040 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7041 "tm_print_insn_info".
7042 (TARGET_PRINT_INSN_INFO): Delete macro.
7043 (dis_asm_read_memory): Delete function declaration.
7044 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7045 (tm_print_insn_info): Delete variable definition.
7046 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7047 * gdbarch.h, gdbarch.c: Re-generate.
7048 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7049 "deprecated_tm_print_insn_info".
7050 * mcore-tdep.c (mcore_dump_insn): Ditto.
7051 * mips-tdep.c (mips_gdbarch_init): Ditto.
7052 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7053 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7054 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7055 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7056 instead of TARGET_PRINT_INSN_INFO, add comment.
7057 * s390-tdep.c (s390_get_frame_info): Instead of
7058 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7059 (s390_check_function_end, s390_is_sigreturn): Ditto.
7060 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7061 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7062 * disasm.c: Include "gdbcore.h".
7063 (_initialize_disasm): New function, initialize
7064 "deprecated_tm_print_insn_info".
7065 (deprecated_tm_print_insn_info): New variable.
7066 (dis_asm_read_memory): Moved from "corefile.c", made static.
7067 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7068 * Makefile.in (disasm.o): Update dependencies.
7069
7070 2003-04-30 Andrew Cagney <cagney@redhat.com>
7071
7072 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7073
7074 2003-04-29 Adam Fedor <fedor@gnu.org>
7075
7076 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7077 * infcall.c (find_function_addr): Make non-static.
7078 * infcall.h (find_function_addr): Declare.
7079 * Makefile.in (eval.o): Update dependencies.
7080
7081 2003-04-28 Adam Fedor <fedor@gnu.org>
7082
7083 * symtab.c (symbol_find_demangled_name): Check for and demangle
7084 ObjC symbols.
7085 (symbol_init_demangled_name): Init for language_objc as well.
7086
7087 2003-04-28 Andrew Cagney <cagney@redhat.com>
7088
7089 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7090 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7091 * gdbarch.h, gdbarch.c: Re-generate.
7092 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7093 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7094 * inferior.h (deprecated_read_fp): Rename read_fp.
7095 (generic_target_read_fp): Delete declaration.
7096 * regcache.c (generic_target_read_fp): Delete function.
7097 (deprecated_read_fp): Replace read_fp, use
7098 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7099 * d10v-tdep.c (d10v_read_fp): Delete function.
7100 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7101
7102 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7103 deprecated_target_read_fp to generic_target_read_fp.
7104 * sh-tdep.c (sh_gdbarch_init): Ditto.
7105 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7106 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7107 * frv-tdep.c (frv_gdbarch_init): Ditto.
7108
7109 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7110 deprecated_fp_regnum.
7111 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7112 * vax-tdep.c (vax_gdbarch_init): Ditto.
7113 * v850-tdep.c (v850_gdbarch_init): Ditto.
7114 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7115 * sh-tdep.c (sh_gdbarch_init): Ditto.
7116 * s390-tdep.c (s390_gdbarch_init): Ditto.
7117 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7118 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7119 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7120 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7121 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7122 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7123 * i386-tdep.c (i386_gdbarch_init): Ditto.
7124 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7125 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7126 * frv-tdep.c (frv_gdbarch_init): Ditto.
7127 * cris-tdep.c (cris_gdbarch_init): Ditto.
7128 * avr-tdep.c (avr_gdbarch_init): Ditto.
7129 * arm-tdep.c (arm_gdbarch_init): Ditto.
7130 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7131
7132 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7133 * v850-tdep.c (v850_gdbarch_init): Ditto.
7134 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7135 * sh-tdep.c (sh_gdbarch_init): Ditto.
7136 * s390-tdep.c (s390_gdbarch_init): Ditto.
7137 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7138 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7139 * mips-tdep.c (mips_gdbarch_init): Ditto.
7140 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7141 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7142 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7143 * frv-tdep.c (frv_gdbarch_init): Ditto.
7144 * avr-tdep.c (avr_gdbarch_init): Ditto.
7145 * arm-tdep.c (arm_gdbarch_init): Ditto.
7146
7147 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7148 DEPRECATED_FP_REGNUM.
7149 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7150 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7151 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7152 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7153 (sparc32_register_virtual_type): Ditto.
7154 * sh-tdep.c (sh64_frame_chain): Ditto.
7155 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7156 (sh_nofp_frame_init_saved_regs): Ditto.
7157 (sh64_nofp_frame_init_saved_regs): Ditto.
7158 (sh_fp_frame_init_saved_regs): Ditto.
7159 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7160 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7161 * procfs.c (procfs_fetch_registers): Ditto.
7162 (procfs_store_registers): Ditto.
7163 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7164 (store_inferior_registers, fetch_core_registers): Ditto.
7165 (fetch_kcore_registers, clear_regs): Ditto.
7166 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7167 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7168 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7169 * nlm/i386.c (do_status): Ditto.
7170 * mipsv4-nat.c (supply_gregset): Ditto.
7171 * mips-tdep.c: Ditto for comments.
7172 * mips-nat.c (fetch_inferior_registers): Ditto.
7173 (store_inferior_registers, fetch_core_registers): Ditto.
7174 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7175 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7176 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7177 (i386_do_pop_frame, i386_register_type): Ditto.
7178 * hppa-tdep.c (hppa_frame_chain): Ditto.
7179 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7180 (hppa_pop_frame, hppa_read_fp): Ditto.
7181 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7182 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7183 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7184 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7185 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7186 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7187 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7188 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7189 * blockframe.c: Ditto for comments.
7190 * arch-utils.h: Ditto for comments.
7191 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7192 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7193 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7194 * alpha-tdep.h: Ditto for comments.
7195 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7196 (alpha_cannot_store_register): Ditto.
7197 (alpha_push_dummy_frame): Ditto.
7198 * alpha-nat.c (supply_gregset): Ditto.
7199
7200 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7201 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7202 * config/sparc/tm-sparc.h: Update comment.
7203
7204 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7205 deprecated_read_fp instead of TARGET_READ_FP.
7206 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7207 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7208 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7209 deprecated_read_fp instead of read_fp.
7210 * s390-tdep.c (s390_push_arguments): Ditto.
7211 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7212 * frame.h: Ditto in comments.
7213 * frame.c (legacy_get_prev_frame): Ditto.
7214 * dummy-frame.c (dummy_frame_this_id): Ditto.
7215 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7216
7217 2003-04-28 Andrew Cagney <cagney@redhat.com>
7218
7219 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7220 * gdbarch.h, gdbarch.c: Re-generate.
7221 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7222 * vax-tdep.c (_initialize_vax_tdep): Update.
7223 * v850-tdep.c (_initialize_v850_tdep): Update.
7224 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7225 * s390-tdep.c (_initialize_s390_tdep): Update.
7226 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7227 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7228 * mips-tdep.c (_initialize_mips_tdep): Update.
7229 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7230 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7231 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7232 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7233 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7234 * frv-tdep.c (_initialize_frv_tdep): Update.
7235 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7236 (_initialize_cris_tdep): Update.
7237 * arch-utils.c (legacy_print_insn): Update.
7238 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7239
7240 2003-04-26 Adam Fedor <fedor@gnu.org>
7241
7242 * linespec.c (decode_objc): New function to decode ObjC calls
7243 (decode_line_1): Check for ObjC calls (using decode_objc)
7244 * Makefile (linespec.o): Update dependencies.
7245
7246 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7247
7248 * breakpoint.h (struct breakpoint_ops): New.
7249 (struct breakpoint): Add ops member.
7250
7251 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7252 (mention): Use new breakpoint ops member.
7253 (set_raw_breakpoint): Initialize ops field to NULL.
7254 (print_exception_catchpoint, print_one_exception_catchpoint)
7255 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7256 (gnu_v3_exception_catchpoint_ops): New.
7257 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7258
7259 2003-04-25 Adam Fedor <fedor@gnu.org>
7260
7261 * Makefile.in (COMMON_OBS): Add objc-lang.o
7262
7263 2003-04-25 Andrew Cagney <cagney@redhat.com>
7264
7265 * d10v-tdep.c (print_insn): Delete function.
7266 (display_trace): Use TARGET_PRINT_INSN.
7267 (_initialize_d10v_tdep): Do not set tm_print_insn.
7268 (d10v_gdbarch_init): Set print_insn.
7269
7270 2003-04-25 Andrew Cagney <cagney@redhat.com>
7271
7272 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7273 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7274 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7275 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7276 (nr_dmap_regs, a0_regnum): ... new functions.
7277 (d10v_print_registers_info): Use a0_regnum, use register_size.
7278 (d10v_register_byte): Delete function.
7279 (d10v_register_raw_size): Delete function.
7280 (d10v_register_type): Use a0_regnum.
7281 (d10v_print_registers_info): Use a0_regnum.
7282 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7283 (d10v_gdbarch_init): Do not set register_byte or
7284 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7285 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7286 extract_address.
7287 (trace_command): Use XCALLOC.
7288 (print_insn): Delete reference to tm_print_insn.
7289 (saved_regs_unwinder): Use store_unsigned_integer instead of
7290 store_address.
7291 * frame.h (FRAME_OBSTACK_CALLOC): Define
7292
7293 2003-04-25 David Carlton <carlton@bactrian.org>
7294
7295 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7296
7297 2003-04-24 Adam Fedor <fedor@gnu.org>
7298
7299 * objc-lang.c: Include "valprint.h"
7300 * Makefile.in (objc-lang.o): Update dependencies.
7301
7302 2003-04-24 Adam Fedor <fedor@gnu.org>
7303
7304 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7305 architecture dependant compilation and mark as unimplemented
7306 (until they get put in the gdbarch vector).
7307
7308 2003-04-23 David Carlton <carlton@bactrian.org>
7309
7310 * cp-support.c (cp_find_first_component): Accept 'operator' in
7311 more locations.
7312
7313 2003-04-23 Andrew Cagney <cagney@redhat.com>
7314
7315 * infcall.c (call_function_by_hand): Eliminate redundant
7316 indentation. Move "saved_async" and "old_cleanups" to where they
7317 are needed.
7318
7319 2003-04-23 Andrew Cagney <cagney@redhat.com>
7320
7321 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7322 and "buffer". Move the "name" code to where it is needed.
7323
7324 2003-04-23 Andrew Cagney <cagney@redhat.com>
7325
7326 * infcall.c (call_function_by_hand): Move variables "start_sp",
7327 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7328 code to ON_STACK switch branch.
7329
7330 2003-04-23 Andrew Cagney <cagney@redhat.com>
7331
7332 * infcall.c (call_function_by_hand): Make declaration of "i",
7333 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7334 lint.
7335
7336 2003-04-23 Andrew Cagney <cagney@redhat.com>
7337
7338 * infcall.c (call_function_by_hand): Delete variable
7339 "n_method_args". Localize "param_type"'s declaration to the loop
7340 that it is used. Reinstate code assigning to said variable -
7341 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7342 Rationalize code using "param_type".
7343
7344 2003-04-22 Andrew Cagney <cagney@redhat.com>
7345
7346 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7347 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7348 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7349 to DEPRECATED_PUSH_RETURN_ADDRESS.
7350
7351 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7352
7353 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7354 on the DWARF2 register number prior to fetching a register.
7355
7356 2003-04-22 J. Brobecker <brobecker@gnat.com>
7357
7358 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7359 Update all the tests using SOFT_FLOAT considering the fact that
7360 this macro was always set to 0.
7361 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7362 considering the fact that this macro was always set to 0.
7363 * hppa-tdep.h (hppa_store_return_value): Likewise.
7364 (hppa_extract_return_value): Likewise.
7365
7366 2003-04-22 J. Brobecker <brobecker@gnat.com>
7367
7368 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7369 the hppa-pro target only.
7370
7371 2003-04-21 J. Brobecker <brobecker@gnat.com>
7372
7373 Ongoing multi-arch conversion effort for HP/UX:
7374 * config/pa/tm-hppa.h: Move all macro that are no longer
7375 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7376 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7377
7378 2003-04-21 J. Brobecker <brobecker@gnat.com>
7379
7380 * config/pa/tm-hppa.h: Obsolete a section that was only used
7381 for hppa-pro.
7382
7383 2003-04-21 J. Brobecker <brobecker@gnat.com>
7384
7385 Ongoing multi-arch conversion for HP/UX.
7386 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7387 if already defined (allows hppa64 to stay non-multiarched for now).
7388 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7389
7390 2003-04-21 Andrew Cagney <cagney@redhat.com>
7391
7392 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7393
7394 2003-04-21 Andrew Cagney <cagney@redhat.com>
7395
7396 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7397 "i386_num_mmx_regs".
7398
7399 2003-04-21 Andrew Cagney <cagney@redhat.com>
7400
7401 * infcall.c: New file.
7402 * infcall.h: New file.
7403 * valarith.c: Include "infcall.h".
7404 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7405 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7406 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7407 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7408 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7409 (SFILES): Add "infcall.c"
7410 (COMMON_OBS): Add "infcall.o".
7411 (infcall.o): Specify dependencies.
7412 * value.h (call_function_by_hand): Delete declaration.
7413 * inferior.h (run_stack_dummy): Delete declaration.
7414 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7415 (run_stack_dummy): Move to "infcall.c", merged into
7416 call_function_by_hand.
7417 * valops.c (call_function_by_hand): Moved to "infcall.c".
7418 (find_function_addr, value_arg_coerce): Ditto.
7419 (unwindonsignal_p, coerce_float_to_double): Ditto.
7420 (_initialize_valops): Move "set/show coerce-float-to-double", and
7421 "set/show unwindonsignal" commands to "infcall.c".
7422 * v850-tdep.c, target.h: Update comments.
7423 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7424 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7425 (sh64_init_extra_frame_info): Update comments.
7426 * mn10300-tdep.c: Update comments.
7427 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7428 * config/sparc/tm-sparc.h: Update comments.
7429 * breakpoint.h: Update comments.
7430 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7431 * arm-tdep.c: Update comment.
7432
7433 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7434
7435 * i386-tdep.c (i386_num_register_names): New variable.
7436 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7437 (MM0_REGNUM): Remove redundant parentheses in define.
7438 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7439 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7440 i386_mxcsr_regnum_p): Remove redundant parentheses.
7441 (i386_register_name): Use i386_num_register_names.
7442
7443 * i386-tdep.c (i386_extract_return_value,
7444 i386_store_return_value): Correct check for availability of
7445 floating-point registers.
7446
7447 * i386-tdep.c (i386_frame_num_args): Remove function.
7448 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7449
7450 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7451 mmx_regnum_to_fp_regnum. Adjust all callers.
7452
7453 * i386-tdep.c (i386_get_longjmp_target): Use
7454 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7455 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7456 extract_address.
7457
7458 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7459
7460 * core-regset.c: Update comments to reflect reality. Re-order
7461 includes.
7462 (fetch_core_registers): Use switch instead of if. Remove
7463 redundant prototype.
7464
7465 2003-04-18 Jim Blandy <jimb@redhat.com>
7466
7467 * s390-tdep.c (s390_frame_align): New function.
7468 (s390_gdbarch_init): Register it with the gdbarch object.
7469
7470 2003-04-17 Richard Henderson <rth@redhat.com>
7471
7472 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7473
7474 2003-04-17 Michael Snyder <msnyder@redhat.com>
7475 Karen Bennet <bennet@redhat.com>
7476
7477 Committed by Elena Zannoni <ezannoni@redhat.com>
7478 * gdb_gcore.sh: New script to create a core dump of a process.
7479
7480 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7481
7482 * values.c (value_being_returned): Don't fetch the return
7483 value if the return type is void.
7484
7485 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7486
7487 * thread-db.c: Reindented.
7488
7489 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7490
7491 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7492 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7493 as types.
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7520
7521 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7522 the size of ``long double'' to 16, instead of 8.
7523
7524 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7525
7526 * i386-linux-nat.c: Add some whitespace to make things more
7527 readable.
7528 (fetch_register, store_register, fetch_inferior_registers,
7529 store_inferior_registers): Get rid of assignment in if-statement.
7530 (store_register): Fix typo in error message.
7531
7532 2003-04-16 Andrew Cagney <cagney@redhat.com>
7533
7534 * utils.c (xmmalloc): Always allocate something, matches
7535 libiberty/xmalloc's semantics.
7536 (xmrealloc, xmcalloc): Ditto.
7537
7538 2003-04-16 Andrew Cagney <cagney@redhat.com>
7539
7540 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7541 update comments.
7542 (get_frame_type): Initialize unwind and type when needed.
7543 (get_frame_id, frame_register_unwind): Ditto.
7544
7545 2003-04-16 Andrew Cagney <cagney@redhat.com>
7546
7547 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7548 obsolete.
7549 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7550 * sparcl-stub.c: Obsolete file.
7551 * config/sparc/tm-sparclet.h: Obsolete file.
7552 * sparclet-stub.c: Obsolete file.
7553 * sparclet-rom.c: Obsolete file.
7554 * sparcl-tdep.c: Obsolete file.
7555 * config/sparc/tm-sparclite.h: Obsolete file.
7556 * config/sparc/sparclite.mt: Obsolete file.
7557 * config/sparc/sparclet.mt: Obsolete file.
7558 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7559 sparc86x-*-* obsolete.
7560
7561 2003-04-15 David Carlton <carlton@math.stanford.edu>
7562
7563 * Makefile.in (SFILES): Add cp-namespace.c.
7564 (COMMON_OBS): Add cp-namespace.o.
7565 (block.o): Depend on gdb_obstack_h and cp_support_h.
7566 (buildsym.o): Depend on cp_support_h.
7567 (cp-namespace.o): New.
7568 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7569 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7570 (dwarf2read.o): Depend on cp_support_h.
7571 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7572 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7573 processing_current_namespace.
7574 (read_namespace): Update processing_current_namespace; check for
7575 anonymous namespaces.
7576 (dwarf2_name): New function.
7577 (dwarf2_extension): Ditto.
7578 * cp-support.h: Update copyright, contributors.
7579 Add inclusion guards.
7580 Add opaque declaration for structs obstack, block, symbol.
7581 (struct using_direct): New struct.
7582 Add declarations for cp_find_first_component,
7583 cp_entire_prefix_len, processing_has_namespace_info,
7584 processing_current_namespace, cp_is_anonymous,
7585 cp_add_using_directive, cp_initialize_namespace,
7586 cp_finalize_namespace, cp_set_block_scope,
7587 cp_scan_for_anonymous_namespaces.
7588 * cp-namespace.c: New file.
7589 * cp-support.c: Update copyright.
7590 Include ctype.h, gdb_assert.h, gdbcmd.h.
7591 New variable maint_cplus_cmd_list.
7592 (cp_find_first_component): New function.
7593 (cp_entire_prefix_len, maint_cplus_command)
7594 (first_component_command, _initialize_cp_support): Ditto.
7595 * buildsym.c: Include cp-support.h.
7596 New variable using_list.
7597 (add_symbol_to_list): Check for anonymous namespaces.
7598 (finish_block): Set block's scope.
7599 (start_symtab): Initialize C++ namespace support.
7600 (end_symtab): Finalize C++ namespace support.
7601 * block.h: Add opaque declarations for structs
7602 block_namespace_info, using_direct, and obstack.
7603 Add declarations for block_set_scope and block_set_using.
7604 (struct block): Add 'language_specific' member.
7605 (BLOCK_NAMESPACE): New macro.
7606 * block.c: Include gdb_obstack.h and cp-support.h.
7607 (struct block_namespace_info): New struct.
7608 (block_set_scope): New function.
7609 (block_set_using, block_initialize_namespace): Ditto.
7610
7611 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7612
7613 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7614 (locate_base): Return early if there aren't any link map offsets.
7615 (svr4_solib_create_inferior_hook): Warn if shared library support
7616 is unavailable.
7617
7618 2003-04-14 David Carlton <carlton@math.stanford.edu>
7619
7620 * symtab.c (symbol_set_names): Add prefix when storing Java names
7621 in hash table. Fix for PR java/1039.
7622
7623 2003-04-14 David Carlton <carlton@math.stanford.edu>
7624
7625 * symtab.c (symbol_set_names): Rename 'name' arg to
7626 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7627 * symtab.h: Change 'name' argument in declaration of
7628 symbol_set_names to 'linkage_name'.
7629 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7630
7631 2003-04-14 Andrew Cagney <cagney@redhat.com>
7632
7633 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7634 return the fully sign-extended register value.
7635 (get_frame_pointer): Ditto.
7636 (mips_pop_frame): Initialize "proc_desc" after checking for a
7637 dummy frame.
7638
7639 2003-04-14 Andrew Cagney <cagney@redhat.com>
7640
7641 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7642 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7643 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7644 (mips_push_register): Delete function.
7645 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7646 PUSH_FP_REGNUM.
7647
7648 2003-04-14 Jim Blandy <jimb@redhat.com>
7649
7650 * symmisc.c: #include "gdb_regex.h".
7651 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7652 functions.
7653 * maint.c (maintenance_list_command): New function.
7654 (_initialize_maint_cmds): Register the above as commands.
7655 * symtab.h (maintenance_list_symtabs,
7656 maintenance_list_psymtabs): New declarations.
7657 * cli/cli-cmds.c (maintenancelistlist): New variable.
7658 (init_cmd_lists): Initialize it.
7659 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7660 * gdbcmd.h (maintenancelistlist): New declaration.
7661 * Makefile.in (symmisc.o): Update dependencies.
7662
7663 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7664
7665 * s390-nat.c: Include asm/types.h for addr_t.
7666
7667 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7668
7669 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7670 actually incoming type.
7671
7672 2003-04-13 Andrew Cagney <cagney@redhat.com>
7673
7674 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7675 get_next_frame and get_frame_saved_regs.
7676
7677 2003-04-13 Andrew Cagney <cagney@redhat.com>
7678
7679 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7680 of gdbarch_num_regs.
7681
7682 2003-04-13 Andrew Cagney <cagney@redhat.com>
7683
7684 * frame.h: Mention what replaced what in "struct frame_info".
7685 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7686 deprecated_update_frame_base_hack and
7687 deprecated_update_frame_pc_hack.
7688 * hppa-tdep.c: Ditto.
7689
7690 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7691
7692 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7693 to read_reg and update its comment. Remove regnum member.
7694 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7695 Don't call read_reg when setting in_reg. Call read_reg to get
7696 the frame base if it's in a register. Return the register number
7697 on the stack instead of in the context. Remove extra arguments
7698 to read_reg.
7699 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7700 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7701 the register number on the expression stack.
7702 (needs_frame_read_reg): Remove extra arguments.
7703
7704 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7705
7706 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7707 made non-static.
7708 (execute_stack_op): All callers updated.
7709 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7710 * dwarf2loc.c (find_location_expression): New function.
7711 (dwarf_expr_frame_base): Call it.
7712 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7713 (dwarf2_tracepoint_var_ref): New function, broken out from
7714 locexpr_tracepoint_var_ref.
7715 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7716 Make static.
7717 (loclist_read_variable, loclist_read_needs_frame): New functions.
7718 (loclist_describe_location, loclist_tracepoint_var_ref): New
7719 functions.
7720 (dwarf2_loclist_funcs): New struct location_funcs.
7721 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7722 (struct dwarf2_locexpr_baton): Add comments.
7723 (dwarf2_loclist_funcs): New extern.
7724 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7725 base_address and base_known.
7726 (dwarf_loc_buffer): New variable.
7727 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7728 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7729 (dwarf2_has_info): Initialize dwarf_loc_offset.
7730 (dwarf2_build_psymtabs): Read in .debug_loc.
7731 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7732 DWARF_LOC_SIZE.
7733 (psymtab_to_symtab_1): Likewise. Move base address calculation
7734 here, from...
7735 (dwarf2_get_pc_bounds): ... here. Use the base address from
7736 cu_header.
7737 (dwarf2_symbol_mark_computed): Handle location lists.
7738
7739 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7740
7741 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7742 if the linkage name demangled successfully.
7743
7744 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7745
7746 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7747 disassmbly_flavour): Removed.
7748
7749 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7750
7751 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7752
7753 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7754
7755 2003-04-12 Andrew Cagney <cagney@redhat.com>
7756
7757 * frame.h (struct frame_info): Move definition from here ...
7758 * frame.c (struct frame_info): ... to here.
7759
7760 2003-04-12 Andrew Cagney <cagney@redhat.com>
7761
7762 * gdbthread.h (save_infrun_state): Delete parameter
7763 "prev_func_start".
7764 (struct thread_info): Delete field "prev_func_start".
7765 (load_infrun_state): Ditto.
7766 * thread.c (load_infrun_state, save_infrun_state): Update.
7767 * infrun.c (prev_func_start): Delete variable.
7768 (context_switch, init_wait_for_inferior): Update.
7769 (stop_stepping, keep_going): Update.
7770
7771 2003-04-12 Andrew Cagney <cagney@redhat.com>
7772
7773 * gdbarch.sh: Add missing opaque declarations.
7774 * gdbarch.h: Regnerate.
7775 * symtab.h: Add missing opaque declarations.
7776 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7777 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7778 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7779 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7780 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7781 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7782 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7783 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7784 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7785 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7786 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7787 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7788 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7789
7790 2003-04-11 Andrew Cagney <cagney@redhat.com>
7791
7792 * frame.c (get_frame_id): Return this frame's "id".
7793 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7794 function start.
7795 (legacy_saved_regs_this_id): Replace function body with
7796 internal-error.
7797 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7798 FRAME_OBSTACK_ZALLOC.
7799 (create_new_frame): Mark the frame ID as valid.
7800
7801 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7802
7803 * Makefile.in (libbfd_h): Added missing setting.
7804 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7805 according to the selected ABI.
7806
7807 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7808
7809 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7810
7811 2003-04-11 Andrew Cagney <cagney@redhat.com>
7812
7813 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7814 SAVED_PC_AFTER_CALL.
7815 * gdbarch.h, gdbarch.c: Regenerate.
7816 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7817 * x86-64-tdep.c (x86_64_init_abi): Update.
7818 * vax-tdep.c (vax_gdbarch_init): Update.
7819 * v850-tdep.c (v850_gdbarch_init): Update.
7820 * sparc-tdep.c (sparc_gdbarch_init): Update.
7821 * sh-tdep.c (sh_gdbarch_init): Update.
7822 * s390-tdep.c (s390_gdbarch_init): Update.
7823 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7824 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7825 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7826 * mips-tdep.c (mips_gdbarch_init): Update.
7827 * mcore-tdep.c (mcore_gdbarch_init): Update.
7828 * m68k-tdep.c (m68k_gdbarch_init): Update.
7829 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7830 * ia64-tdep.c (ia64_gdbarch_init): Update.
7831 (ia64_saved_pc_after_call): Update declaration.
7832 * i386ly-tdep.c (i386lynx_init_abi): Update.
7833 * i386-tdep.c (i386_gdbarch_init): Update.
7834 * hppa-tdep.c (hppa_gdbarch_init): Update.
7835 * h8300-tdep.c (h8300_gdbarch_init): Update.
7836 * frv-tdep.c (frv_gdbarch_init): Update.
7837 * cris-tdep.c (cris_gdbarch_init): Update.
7838 * avr-tdep.c (avr_gdbarch_init): Update.
7839 * arm-tdep.c (arm_gdbarch_init): Update.
7840 * alpha-tdep.c (alpha_gdbarch_init): Update.
7841 * ns32knbsd-nat.c (frame_num_args): Update.
7842 * ns32k-tdep.c (umax_frame_num_args): Update.
7843 * mips-tdep.c (mips_init_frame_pc_first): Update.
7844 * infrun.c (step_over_function): Update.
7845 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7846 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7847 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7848 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7849 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7850 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7851 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7852 * arch-utils.c (init_frame_pc_default): Update.
7853 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7854 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7855 declaration.
7856
7857 2003-04-11 Andrew Cagney <cagney@redhat.com>
7858
7859 * i387-tdep.c: Update copyright.
7860 (i387_to_double): Delete function.
7861 (double_to_i387): Delete function.
7862
7863 2003-04-10 Andrew Cagney <cagney@redhat.com>
7864
7865 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7866 frame's function's address. Simplify.
7867 (d10v_frame_unwind_cache): Check that the frame's function is
7868 non-zero.
7869
7870 2003-04-10 Jim Blandy <jimb@redhat.com>
7871
7872 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7873 call to set_gdbarch_deprecated_push_arguments.
7874
7875 2003-04-10 Andrew Cagney <cagney@redhat.com>
7876
7877 * frame.c (fprint_frame_id): New function.
7878 (fprint_frame_type, fprint_frame): New function.
7879 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7880 (create_sentinel_frame, get_frame_id): Ditto.
7881 (frame_id_p, frame_id_eq): Ditto.
7882 (frame_id_inner, create_new_frame): Ditto.
7883 (legacy_get_prev_frame, get_prev_frame): Ditto.
7884 (deprecated_update_frame_pc_hack): Ditto.
7885 (frame_register_unwind): Ditto.
7886 (deprecated_update_frame_base_hack): Ditto.
7887
7888 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7889
7890 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7891 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7892 frame_chain function.
7893 * Makefile.in: Add dependencies due to above change.
7894
7895 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7896
7897 * blockframe.c (legacy_frame_chain_valid): Move call to
7898 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7899 inside_entry_file.
7900
7901 2003-04-09 Andrew Cagney <cagney@redhat.com>
7902
7903 * frame.h (struct frame_id): Replace "pc" and "base" with
7904 "stack_addr" and "code_addr". Update comments.
7905 (frame_id_build): Update parameter names and comment.
7906 (struct frame_info): Replace "id_p" and "id" with "this_id".
7907 * dummy-frame.c (dummy_frame_this_id): Update.
7908 * breakpoint.c (print_one_breakpoint): Update.
7909 * frame.c (get_frame_id): Update.
7910 (get_frame_base, frame_id_build): Update.
7911 (create_sentinel_frame, legacy_get_prev_frame): Update.
7912 (deprecated_update_frame_base_hack): Update.
7913 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7914 (frame_id_inner): Ditto.
7915
7916 2003-04-09 Andrew Cagney <cagney@redhat.com>
7917
7918 * defs.h (gdb_print_host_address): Make "addr" parameter a
7919 pointer constant.
7920 * utils.c (gdb_print_host_address): Update.
7921
7922 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7923
7924 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7925 register number for R0 is 0.
7926
7927 2003-04-09 J. Brobecker <brobecker@gnat.com>
7928
7929 * frame.h (struct gdbarch): Add opaque structure definition
7930 to avoid a compilation warning on LynxOS 4.0.
7931
7932 2003-04-09 Andrew Cagney <cagney@redhat.com>
7933
7934 * frame.h (struct frame_info): Delete field "pc". Replace
7935 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7936 structure.
7937 * frame.c (frame_pc_unwind): Update.
7938 (create_sentinel_frame): Do not set "pc".
7939 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7940 (get_frame_pc): Call frame_pc_unwind.
7941 (deprecated_update_frame_pc_hack): Update.
7942 (create_new_frame): Use "pc" not "->pc".
7943
7944 2003-04-09 Andrew Cagney <cagney@redhat.com>
7945
7946 * frame.c (get_frame_id): Eliminate code updating "frame".
7947 (legacy_get_prev_frame): Ditto.
7948 (get_frame_base): Return id.base directly.
7949 (deprecated_update_frame_base_hack): Update "id.base".
7950 * frame.h (struct frame_info): Delete field "frame".
7951
7952 2003-04-09 Andrew Cagney <cagney@redhat.com>
7953
7954 * NEWS: Mention that the "Sequent family" is obsolete.
7955 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7956 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7957 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7958 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7959 * config/i386/tm-ptx4.h: Obsolete file.
7960 * config/i386/tm-ptx.h: Obsolete file.
7961 * symm-tdep.c: Obsolete file.
7962 * config/i386/symmetry.mt: Obsolete file.
7963 * config/i386/tm-symmetry.h: Obsolete file.
7964 * symm-nat.c: Obsolete file.
7965 * config/i386/nm-symmetry.h: Obsolete file.
7966 * config/i386/xm-symmetry.h: Obsolete file.
7967 * config/i386/symmetry.mh: Obsolete file.
7968 * config/i386/nm-ptx4.h: Obsolete file.
7969 * config/i386/ptx4.mh: Obsolete file.
7970 * config/i386/ptx.mt: Obsolete file.
7971 * config/i386/ptx.mh: Obsolete file.
7972 * config/i386/xm-ptx4.h: Obsolete file.
7973 * config/i386/xm-ptx.h: Obsolete file.
7974
7975 2003-04-09 Andrew Cagney <cagney@redhat.com>
7976
7977 Obsolete mips*-*-mach3*.
7978 * NEWS: Mention that mips*-*-mach3* is obsolete.
7979 * m3-nat.c: Obsolete file.
7980 * config/nm-m3.h: Obsolete file.
7981 * config/mips/tm-mipsm3.h: Obsolete file.
7982 * config/mips/mipsm3.mt: Obsolete file.
7983 * config/mips/mipsm3.mh: Obsolete file.
7984 * config/mips/xm-mipsm3.h: Obsolete file.
7985 * mipsm3-nat.c: Obsolete file.
7986 * configure.host: Obsolete mips-dec-mach3*.
7987 * configure.tgt: Obsolete mips*-*-mach3*.
7988
7989 2003-04-09 Andrew Cagney <cagney@redhat.com>
7990
7991 * doublest.h: Update copyright.
7992 (deprecated_store_floating, deprecated_extract_floating): Rename
7993 store_floating and extract_floating. Update comments.
7994 * doublest.c: Update copyright.
7995 (extract_floating_by_length): Replace extract_floating.
7996 (store_floating_by_length): Replace store_floating.
7997 (deprecated_extract_floating): New function.
7998 (deprecated_store_floating): New function.
7999 (extract_typed_floating): Call extract_floating_by_length.
8000 (store_typed_floating): Call store_floating_by_length.
8001 * x86-64-tdep.c (x86_64_store_return_value): Update.
8002 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8003 (sh64_extract_return_value): Update.
8004 (sh_sh4_register_convert_to_virtual): Update.
8005 (sh_sh64_register_convert_to_virtual): Update.
8006 (sh_sh4_register_convert_to_raw): Update.
8007 (sh_sh64_register_convert_to_raw): Update.
8008 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8009 (rs6000_register_convert_to_raw): Update.
8010 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8011 (ia64_register_convert_to_raw): Update.
8012 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8013 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8014 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8015 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8016 (alpha_register_convert_to_raw): Update.
8017
8018 2003-04-08 Andrew Cagney <cagney@redhat.com>
8019
8020 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8021 * gdbarch.h, gdbarch.c: Re-generate.
8022 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8023 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8024 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8025 conditionally, use frame_pc_unwind as an alternative. Add
8026 comments.
8027 * arch-utils.c (init_frame_pc_default): Only call
8028 SAVED_PC_AFTER_CALL when available.
8029
8030 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8031
8032 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8033 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8034 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8035 (start_remote): Ditto.
8036 (handle_inferior_event): Ditto.
8037 (save_inferior_status): Ditto.
8038 (restore_inferior_status): Ditto.
8039 * infcmd.c (attach_command): Ditto.
8040 * fork-child.c (startup_inferior): Ditto.
8041 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8042 * alpha-tdep.c (heuristic_proc_start): Ditto.
8043 * mips-tdep.c (heuristic_proc_start): Ditto.
8044 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8045 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8046 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8047 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8048 * remote-vx.c (vx_create_inferior): Ditto.
8049
8050 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8051
8052 * infrun.c (stop_soon_quietly): Make it an enum, to better
8053 override the default behavior of handle_inferior_event.
8054 (clear_proceed_status): Update uses of stop_soon_quietly to
8055 reflect that it is now an enum.
8056 (start_remote): Ditto.
8057 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8058 is set to handle the new GNU/Linux kernel behavior for
8059 attach/sigstop. Update uses of stop_soon_quietly.
8060 * inferior.h (enum stop_kind): New enum.
8061 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8062 Reset normal handle_inferior_event behavior, afterwards.
8063 * fork-child.c (startup_inferior): Update.
8064 * alpha-tdep.c (heuristic_proc_start): Update.
8065 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8066 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8067 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8068 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8069 * remote-vx.c (vx_create_inferior): Update.
8070 * mips-tdep.c (heuristic_proc_start): Update.
8071
8072 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8073
8074 * disasm.c (dump_insns): Move variables inside loop, or they will
8075 be freed more than once, causing wild memory corruptions.
8076 (gdb_disassembly): Look for the substring "-thread",
8077 instead of "-threads" in the target name, to make sure to find
8078 the 'multi-thread' target. Also, make sure we do the right thing
8079 with the "core" target.
8080
8081 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8082
8083 * mips-tdep.c (mips_print_fp_register): New function, created from
8084 do_fp_register_row(). Registers are now (also) printed as hex.
8085 Only one register is printed per row.
8086 (mips_print_register, do_fp_register_row): Print floating point
8087 registers with mips_print_fp_register().
8088
8089 2003-04-06 Andrew Cagney <cagney@redhat.com>
8090
8091 * valprint.h (inspect_it): Add extern declaration.
8092 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8093 (selectors_info, classes_info): Ditto.
8094 (find_objc_msgcall): Fix indentation.
8095 (objc_printstr): Delete extern declarations.
8096
8097 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8098
8099 2003-04-06 Andrew Cagney <cagney@redhat.com>
8100
8101 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8102 Update comment.
8103 * frame.c (legacy_saved_regs_this_id): Update.
8104 (legacy_get_prev_frame): Update.
8105 * xstormy16-tdep.c: Update comment.
8106 * sparc-tdep.c (sparc_frame_chain): Update comment.
8107 * blockframe.c (legacy_frame_chain_valid): Update.
8108
8109 2003-04-06 Andrew Cagney <cagney@redhat.com>
8110
8111 * valprint.c (val_print_type_code_int): Delete #ifdef
8112 PRINT_TYPELESS_INTEGER code.
8113
8114 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8115 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8116 multi-arch definition.
8117 * gdbarch.h: Re-generate.
8118
8119 2003-04-05 Andrew Cagney <cagney@redhat.com>
8120
8121 Eliminate FRAME_FIND_SAVED_REGS.
8122 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8123 Change FSR parameter to a pointer.
8124 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8125 Assume FSR parameter is a pointer.
8126 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8127 Make fsr a pointer.
8128 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8129 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8130 saved_regs a pointer.
8131 (hppa_frame_saved_pc): Ditto.
8132 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8133 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8134 pointer.
8135 (restore_pc_queue): Make fsr a pointer.
8136 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8137 (hppa_frame_chain): Make saved_regs a pointer, call
8138 hppa_frame_init_saved_regs.
8139 * sparc-tdep.c: Include "gdb_assert.h".
8140 (sparc_frame_find_saved_regs): Replace internal_error with
8141 gdb_assert.
8142 * remote-vxsparc.c (vx_read_register): Delete reference to
8143 FRAME_FIND_SAVED_REGS.
8144 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8145 * gdbarch.h: Regenerate.
8146 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8147 (deprecated_get_frame_saved_regs): Delete declaration.
8148 (struct frame_saved_regs): Delete definition.
8149 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8150 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8151 (hppa_frame_find_saved_regs): Delete declaration.
8152 (FRAME_FIND_SAVED_REGS): Delete macro.
8153 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8154 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8155 FRAME_FIND_SAVED_REGS in comment.
8156
8157 2003-04-05 Andrew Cagney <cagney@redhat.com>
8158
8159 * frame.c (frame_func_unwind, get_frame_func): New functions.
8160 * frame.h (get_frame_func, frame_func_unwind): Declare.
8161 (struct frame_info): Add field "prev_func" for caching the
8162 previous frame's function address.
8163 * arm-tdep.c (arm_frameless_function_invocation): Combine
8164 get_pc_function_start and get_frame_pc into get_frame_func.
8165 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8166 (sh64_nofp_frame_init_saved_regs): Ditto.
8167 * s390-tdep.c (s390_function_start): Ditto.
8168 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8169 (rs6000_frameless_function_invocation): Ditto.
8170 (rs6000_frame_saved_pc): Ditto.
8171 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8172 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8173 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8174 (i386_frame_init_saved_regs): Ditto.
8175 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8176 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8177 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8178 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8179 * blockframe.c (frameless_look_for_prologue): Ditto.
8180
8181 2003-04-05 Andrew Cagney <cagney@redhat.com>
8182
8183 * frame.c (legacy_get_prev_frame): Link prev to next at the
8184 function start. Update comments.
8185
8186 2003-04-05 Andrew Cagney <cagney@redhat.com>
8187
8188 * frame.c (get_frame_id): Update comment.
8189 (legacy_get_prev_frame): Update comment.
8190 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8191 * gdbarch.h: Regenerate.
8192 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8193 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8194
8195 2003-04-05 Andrew Cagney <cagney@redhat.com>
8196
8197 * stack.c (print_frame_info): Use get_frame_pc.
8198
8199 2003-04-04 Andrew Cagney <cagney@redhat.com>
8200
8201 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8202 the frame's type from the unwinder.
8203 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8204 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8205 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8206 (get_frame_base_address): Use get_frame_type.
8207 (get_frame_locals_address, get_frame_args_address): Ditto.
8208 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8209 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8210 (struct frame_info): Add comment explaining why the frame contains
8211 a "type" field.
8212 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8213 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8214 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8215 NORMAL_FRAME.
8216 * frame-unwind.h: Include "frame.h".
8217 (struct frame_unwind): Add "type" field.
8218 * Makefile.in (frame_unwind_h): Add $(frame_h).
8219
8220 2003-04-04 Andrew Cagney <cagney@redhat.com>
8221
8222 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8223 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8224 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8225 get_frame_base.
8226 (d10v_unwind_dummy_id): Use frame_id_build.
8227 * frame.c (find_frame_sal): Use get_frame_pc.
8228 (create_new_frame): Use deprecated_update_frame_pc_hack and
8229 deprecated_update_frame_base_hack.
8230 (create_sentinel_frame): Add comment about ->pc going away.
8231 (get_prev_frame): Add comment about ->pc going away.
8232 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8233 frame_id_build, deprecated_update_frame_pc_hack and
8234 deprecated_update_frame_base_hack.
8235 (select_frame): Use get_frame_pc.
8236 (legacy_saved_regs_this_id): Use frame_id_build.
8237
8238 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8239
8240 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8241 signed integer case.
8242 (classify_argument): Handle enumerations and references.
8243
8244 2003-04-04 Andrew Cagney <cagney@redhat.com>
8245
8246 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8247 ID to NULL.
8248
8249 2003-04-01 Adam Fedor <fedor@gnu.org>
8250
8251 * gdb/objc-lang.c (selectors_info): Replace calls to
8252 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8253 SYMBOL_NATURAL_NAME.
8254 (classes_info, find_methods): Likewise.
8255
8256 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8257
8258 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8259 ``mach'' to the value determined by bfd_default_set_arch_mach().
8260
8261 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8262
8263 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8264 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8265 (mi-cmd-file.o): Update dependencies.
8266
8267 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8268
8269 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8270 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8271
8272 2003-04-01 Adam Fedor <fedor@gnu.org>
8273
8274 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8275 * language.h (struct language_defn): Add la_demangle.
8276 (language_demangle): Declare.
8277 * language.c (language_demangle): New function.
8278 (unk_lang_demangle): Likewise.
8279 (unknown_language_defn, auto_language_defn, local_language_defn):
8280 Add ukn_lang_demangle.
8281 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8282 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8283 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8284 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8285 * jv-lang.c (java_demangle): New function
8286 (java_language_defn): Use it for la_demangle element.
8287 * objc-lang.c (objc_demangle): Add options argument
8288 (objc_language_defn): Use objc_demangle for la_demangle element.
8289 * maint.c (maintenance_demangle): Replace switch with
8290 call to language_demangle.
8291 * utils.c (fprintf_symbol_filtered): Likewise.
8292
8293 2003-04-01 Andrew Cagney <cagney@redhat.com>
8294
8295 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8296 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8297 PRINT_TYPELESS_INTEGER.
8298 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8299 PUSH_RETURN_ADDRESS.
8300
8301 2003-04-01 Andrew Cagney <cagney@redhat.com>
8302
8303 * Makefile.in (d10v-tdep.o): Update dependencies.
8304 * d10v-tdep.c: Include "frame-base.h".
8305 (d10v_frame_unwind): Make constant.
8306 (d10v_frame_base_address): New function.
8307 (d10v_frame_base): New variable.
8308 (d10v_gdbarch_init): Set frame_base default.
8309 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8310 comment for base.
8311 (d10v_frame_unwind_cache): Set and use "prev_sp".
8312 (d10v_frame_this_id): Use the previous frame's inner most stack
8313 address and this frame's func address for the frame ID. Use
8314 frame_id_build. Don't analyze beyond the current instruction.
8315
8316 2003-04-01 Andrew Cagney <cagney@redhat.com>
8317
8318 * frame.h (get_frame_locals_address, get_frame_args_address):
8319 Refer to the base address, instead of the address of the first
8320 local or parameter.
8321
8322 2003-04-01 Andrew Cagney <cagney@redhat.com>
8323
8324 Add frame debug info addresses:
8325 * frame-base.c: New file.
8326 * frame-base.h: New file.
8327 * frame.h (struct frame_base): Add opaque declaration.
8328 (get_frame_base): Update comment.
8329 (get_frame_base_address): Declare.
8330 (get_frame_locals_address): Declare.
8331 (get_frame_args_address): Declare.
8332 (struct frame_info): Add "base" and "base_cache". Update
8333 comments on the unwinder.
8334 * frame.c: Include "frame-base.h".
8335 (get_frame_locals_address): New function.
8336 (get_frame_base_address): New function.
8337 (get_frame_args_address): New function.
8338 * findvar.c (read_var_value): Use get_frame_locals_address and
8339 get_frame_args_address.
8340 * stack.c (frame_info): Use get_frame_locals_address and
8341 get_frame_args_address.
8342 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8343 moved to "frame-base.c".
8344 * printcmd.c (print_frame_nameless_args): Ditto.
8345 * symtab.h (address_class): Update comments.
8346 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8347 get_frame_base_address.
8348 * dwarf2expr.c (execute_stack_op): Ditto.
8349 * Makefile.in (frame_base_h): Define.
8350 (frame.o): Update dependencies.
8351 (frame-base.o): Add dependencies.
8352 (SFILES): Add frame-base.c.
8353 (COMMON_OBS): Add frame-base.o.
8354
8355 2003-04-01 Andrew Cagney <cagney@redhat.com>
8356
8357 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8358 CALL_DUMMY_LENGTH): Ditto.
8359 * gdbarch.c: Re-generate.
8360 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8361 (CALL_DUMMY_LENGTH): Delete macro.
8362 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8363 * arm-tdep.c (arm_gdbarch_init): Ditto.
8364 * avr-tdep.c (avr_gdbarch_init): Ditto.
8365 * cris-tdep.c (cris_gdbarch_init): Ditto.
8366 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8367 * frv-tdep.c (frv_gdbarch_init): Ditto.
8368 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8369 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8370 * i386-tdep.c (i386_gdbarch_init): Ditto.
8371 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8372 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8373 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8374 * mips-tdep.c (mips_gdbarch_init): Ditto.
8375 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8376 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8377 * s390-tdep.c (s390_gdbarch_init): Ditto.
8378 * sh-tdep.c (sh_gdbarch_init): Ditto.
8379 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8380 * v850-tdep.c (v850_gdbarch_init): Ditto.
8381 * vax-tdep.c (vax_gdbarch_init): Ditto.
8382 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8383
8384 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8385
8386 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8387
8388 2003-04-01 Andrew Cagney <cagney@redhat.com>
8389
8390 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8391 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8392 * gdbarch.h, gdbarch.c: Re-generate.
8393 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8394 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8395 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8396 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8397 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8398 * infcmd.c (run_stack_dummy): Simplify assuming
8399 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8400 * infrun.c (handle_inferior_event): Ditto.
8401 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8402 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8403 * arm-tdep.c (arm_gdbarch_init): Ditto.
8404 * avr-tdep.c (avr_gdbarch_init): Ditto.
8405 * cris-tdep.c (cris_gdbarch_init): Ditto.
8406 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8407 * frv-tdep.c (frv_gdbarch_init): Ditto.
8408 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8409 * i386-tdep.c (i386_gdbarch_init): Ditto.
8410 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8411 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8412 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8413 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8414 * mips-tdep.c (mips_gdbarch_init): Ditto.
8415 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8416 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8417 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8418 * s390-tdep.c (s390_gdbarch_init): Ditto.
8419 * sh-tdep.c (sh_gdbarch_init): Ditto.
8420 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8421 * v850-tdep.c (v850_gdbarch_init): Ditto.
8422 * vax-tdep.c (vax_gdbarch_init): Ditto.
8423 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8424
8425 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8426
8427 * symfile.c (symfile_relocate_debug_section): Update call to
8428 bfd_simple_get_relocated_section_contents.
8429
8430 2003-03-31 Andrew Cagney <cagney@redhat.com>
8431
8432 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8433 * gdbarch.h, gdbarch.c: Regenerate.
8434 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8435 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8436 available.
8437 * frame.h (generic_fix_call_dummy): Delete declaration.
8438 * dummy-frame.h: Update comment.
8439 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8440 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8441 fix_call_dummy.
8442 * sh-tdep.c (sh_gdbarch_init): Ditto.
8443 * s390-tdep.c (s390_gdbarch_init): Ditto.
8444 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8445 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8446 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8447 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8448 * i386-tdep.c (i386_gdbarch_init): Ditto.
8449 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8450 * frv-tdep.c (frv_gdbarch_init): Ditto.
8451 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8452 * cris-tdep.c (cris_gdbarch_init): Ditto.
8453 * avr-tdep.c (avr_gdbarch_init): Ditto.
8454 * arm-tdep.c (arm_gdbarch_init): Ditto.
8455
8456 2003-03-31 J. Brobecker <brobecker@gnat.com>
8457
8458 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8459 (INIT_FRAME_AP): Likewise.
8460 (EXTRA_FRAME_INFO): Likewise.
8461
8462 2003-03-31 Andrew Cagney <cagney@redhat.com>
8463
8464 * gdbarch.sh: Include "symfile.h".
8465 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8466 * gdbarch.h, gdbarch.c: Re-generate.
8467 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8468 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8469 call_dummy_address, the default is at entry_point_address.
8470 * v850-tdep.c (v850_gdbarch_init): Ditto.
8471 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8472 * sh-tdep.c (sh_gdbarch_init): Ditto.
8473 * s390-tdep.c (s390_gdbarch_init): Ditto.
8474 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8475 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8476 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8477 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8478 * i386-tdep.c (i386_gdbarch_init): Ditto.
8479 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8480 * frv-tdep.c (frv_gdbarch_init): Ditto.
8481 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8482 * cris-tdep.c (cris_gdbarch_init): Ditto.
8483 * arm-tdep.c (arm_gdbarch_init): Ditto.
8484
8485 2003-03-31 Andrew Cagney <cagney@redhat.com>
8486
8487 * gdbarch.sh (CALL_DUMMY_P): Delete.
8488 * gdbarch.h, gdbarch.c: Re-generate.
8489 * inferior.h (CALL_DUMMY_P): Delete macro.
8490 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8491 * vax-tdep.c (vax_gdbarch_init): Update.
8492 * v850-tdep.c (v850_gdbarch_init): Update.
8493 * sparc-tdep.c (sparc_gdbarch_init): Update.
8494 * sh-tdep.c (sh_gdbarch_init): Update.
8495 * s390-tdep.c (s390_gdbarch_init): Update.
8496 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8497 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8498 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8499 * mips-tdep.c (mips_gdbarch_init): Update.
8500 * mcore-tdep.c (mcore_gdbarch_init): Update.
8501 * m68k-tdep.c (m68k_gdbarch_init): Update.
8502 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8503 * ia64-tdep.c (ia64_gdbarch_init): Update.
8504 * i386-tdep.c (i386_gdbarch_init): Update.
8505 * h8300-tdep.c (h8300_gdbarch_init): Update.
8506 * frv-tdep.c (frv_gdbarch_init): Update.
8507 * d10v-tdep.c (d10v_gdbarch_init): Update.
8508 * cris-tdep.c (cris_gdbarch_init): Update.
8509 * breakpoint.c (deprecated_frame_in_dummy): Update.
8510 * avr-tdep.c (avr_gdbarch_init): Update.
8511 * alpha-tdep.c (alpha_gdbarch_init): Update.
8512 * arm-tdep.c (arm_gdbarch_init): Update.
8513 * dummy-frame.c (dummy_frame_this_id): Update comments.
8514 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8515 * frame.c (legacy_get_prev_frame): Ditto.
8516 * valops.c (call_function_by_hand): Delete function.
8517 (hand_function_call): Rename to call_function_by_hand
8518
8519 2003-03-30 Andrew Cagney <cagney@redhat.com>
8520
8521 2002-11-10 Klee Dienes <kdienes@apple.com>
8522 * value.h (struct value): Update comment.
8523
8524 2003-03-30 Andrew Cagney <cagney@redhat.com>
8525
8526 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8527 D10V_FP_REGNUM.
8528 (d10v_gdbarch_init): Do not set fp_regnum.
8529
8530 * frame.c (get_frame_base): Force ID initialization.
8531 (get_prev_frame): Move computation of the frame ID from here ...
8532 (get_frame_id): ... to here.
8533 (legacy_get_prev_frame): Mark the frame ID as valid.
8534 * frame.h (struct frame_info): Add field "id_p".
8535
8536 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8537
8538 * i386-tdep.c (i386_store_struct_return): Removed.
8539 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8540
8541 2003-03-30 Andrew Cagney <cagney@redhat.com>
8542
8543 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8544 * gdbarch.h, gdbarch.c: Regenerate.
8545 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8546 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8547 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8548 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8549 * i386-tdep.c (i386_gdbarch_init): Ditto.
8550 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8551 * cris-tdep.c (cris_gdbarch_init): Ditto.
8552 * vax-tdep.c (vax_gdbarch_init): Ditto.
8553 * s390-tdep.c (s390_gdbarch_init): Ditto.
8554 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8555 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8556 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8557 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8558 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8559 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8560 * sparc-tdep.c (sparc_gdbarch_init): Update.
8561 * sh-tdep.c (sh_gdbarch_init): Update.
8562 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8563 * mips-tdep.c (mips_gdbarch_init): Update.
8564 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8565 * ia64-tdep.c (ia64_gdbarch_init): Update.
8566 * frv-tdep.c (frv_gdbarch_init): Update.
8567 * avr-tdep.c (avr_gdbarch_init): Update.
8568 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8569 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8570 instead of when push_dummy_call is not available.
8571
8572 2003-03-30 Andrew Cagney <cagney@redhat.com>
8573
8574 * infttrace.c: Include "gdbthread.h".
8575 (parent_attach_all): Fix function signature.
8576 (call_ptrace): Update call.
8577 * Makefile.in (infttrace.o): Update dependencies.
8578
8579 2003-03-30 Andrew Cagney <cagney@redhat.com>
8580
8581 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8582 PUSH_RETURN_ADDRESS.
8583 * gdbarch.h, gdbarch.c: Regenerate.
8584 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8585 * x86-64-tdep.c (x86_64_init_abi): Update.
8586 * v850-tdep.c (v850_gdbarch_init): Update.
8587 * sparc-tdep.c (sparc_gdbarch_init): Update.
8588 * sh-tdep.c (sh_gdbarch_init): Update.
8589 * s390-tdep.c (s390_gdbarch_init): Update.
8590 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8591 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8592 * mips-tdep.c (mips_gdbarch_init): Update.
8593 * mcore-tdep.c (mcore_gdbarch_init): Update.
8594 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8595 * ia64-tdep.c (ia64_gdbarch_init): Update.
8596 * i386-tdep.c (i386_gdbarch_init): Update.
8597 * h8300-tdep.c (h8300_gdbarch_init): Update.
8598 * frv-tdep.c (frv_gdbarch_init): Update.
8599 * cris-tdep.c (cris_gdbarch_init): Update.
8600 * avr-tdep.c (avr_gdbarch_init): Update.
8601 * arm-tdep.c (arm_gdbarch_init): Update.
8602 * valops.c (hand_function_call): Update.
8603
8604 2003-03-29 Andrew Cagney <cagney@redhat.com>
8605
8606 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8607 sizeof_call_dummy_words.
8608 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8609 define.
8610 * gdbarch.h: Regenerate.
8611
8612 2003-03-29 Andrew Cagney <cagney@redhat.com>
8613
8614 * infttrace.h: New file.
8615 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8616 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8617 (hpread_read_doc_function_type): Detect an initialized type1.
8618 (hpread_quick_traverse): Initialize mod_name_string.
8619 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8620 (som_solib_get_solib_by_pc): Declare.
8621 (so_lib_thread_start_addr): Declare.
8622 (no_shared_libraries): Declare.
8623 * somread.c (init_import_symbols): Make static. Add forward
8624 declaration.
8625 * config/pa/nm-hppah.h: Include "infttrace.h" for
8626 parent_attach_all.
8627 (hppa_insert_hw_watchpoint): Declare.
8628 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8629 * hppah-nat.c: Include "gdb_string.h".
8630 (parent_attach_all): Delete extern declaration, moved to
8631 "infttrace.h".
8632 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8633 int.
8634 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8635 * Makefile.in (infttrace_h): Define.
8636 (hpread.o): Update dependencies.
8637 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8638 * hppa-hpux-tdep.c: Include "gdb_string.h".
8639 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8640 * infrun.c (handle_inferior_event): Always initialize
8641 stepped_after_stopped_by_watchpoint. Add default and remove
8642 fallthrough in switch statement.
8643 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8644 parameter to int.
8645 (hppa_remove_hw_watchpoint): Ditto.
8646
8647 2003-03-29 Andrew Cagney <cagney@redhat.com>
8648
8649 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8650 offset.
8651
8652 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8653
8654 * arm-tdep.c (arm_push_arguments): Delete.
8655 (struct stack_item): New type.
8656 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8657 (arm_store_struct_return): Delte.
8658 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8659 arm_push_arguments or arm_store_struct_return.
8660
8661 2003-03-28 Andrew Cagney <cagney@redhat.com>
8662
8663 * Makefile.in (d10v-tdep.o): Update dependencies.
8664 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8665 * d10v-tdep.c: Include "remote.h".
8666 (target_resume_hook): Delete extern declaration.
8667 (target_wait_loop_hook): Ditto.
8668 (tdisassemble_command): Eliminate assignment in "if" conditional.
8669 (d10v_ts2_register_sim_regno): Eliminate call to
8670 legacy_register_sim_regno.
8671 (d10v_ts3_register_sim_regno): Ditto.
8672
8673 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8674
8675 * thread.c: Reindented.
8676 * lin-lwp.c: Ditto.
8677 * linux-proc.c: Ditto.
8678
8679 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8680
8681 * MAINTAINERS (write after approval): Add myself.
8682
8683 2003-03-27 Theodore A. Roth <troth@openavr.org>
8684
8685 * objc-exp.y: Add missing semi-colons.
8686
8687 2003-03-27 Andrew Cagney <cagney@redhat.com>
8688
8689 * regcache.c (write_sp): Delete function and references.
8690 * inferior.h (write_sp): Delete declaration.
8691 * valops.c (hand_function_call): Replace write_sp with
8692 TARGET_WRITE_SP.
8693 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8694 (sparc_pop_frame): Ditto.
8695
8696 2003-03-27 Andrew Cagney <cagney@redhat.com>
8697
8698 * NEWS: Mention removal of support for hppa*-*-bsd* and
8699 hppa*-*-osf* natives, and hppa*-*-pro* target.
8700 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8701 * config/pa/xm-pa.h: Obsolete file.
8702 * config/pa/xm-hppab.h: Obsolete file.
8703 * config/pa/nm-hppab.h: Obsolete file.
8704 * config/pa/tm-hppab.h: Obsolete file.
8705 * config/pa/tm-hppao.h: Obsolete file.
8706 * config/pa/nm-hppao.h: Obsolete file.
8707 * config/pa/tm-pro.h: Obsolete file.
8708 * config/pa/hppaosf.mt: Obsolete file.
8709 * config/pa/hppaosf.mh: Obsolete file.
8710 * config/pa/hppapro.mt: Obsolete file.
8711 * config/pa/hppabsd.mt: Obsolete file.
8712 * config/pa/hppabsd.mh: Obsolete file.
8713 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8714 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8715 hppa*-*-osf*.
8716
8717 2003-03-27 Andrew Cagney <cagney@redhat.com>
8718
8719 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8720 push_arguments. Don't set push_return_address or write_sp.
8721 (d10v_push_dummy_call): Replace d10v_push_arguments.
8722 (d10v_push_return_address, d10v_write_sp): Delete function,
8723 handled by push_dummy_call.
8724
8725 2003-03-26 Andrew Cagney <cagney@redhat.com>
8726
8727 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8728 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8729 regcache and dummy_addr parameters.
8730 * gdbarch.h, gdbarch.c: Re-generate.
8731 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8732 available; assume it will handle stack alignment and return
8733 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8734 legacy_push_arguments.
8735 (legacy_push_arguments): Rename default_push_arguments.
8736 * value.h (legacy_push_arguments): Rename default_push_arguments.
8737 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8738 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8739 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8740 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8741 * config/i386/tm-symmetry.h: Update.
8742 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8743 * x86-64-tdep.c (x86_64_init_abi): Update.
8744 * v850-tdep.c (v850_gdbarch_init): Update.
8745 * sparc-tdep.c (sparc_gdbarch_init): Update.
8746 * sh-tdep.c (sh_gdbarch_init): Update.
8747 * s390-tdep.c (s390_gdbarch_init): Update.
8748 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8749 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8750 * mips-tdep.c (mips_gdbarch_init): Update.
8751 * mcore-tdep.c (mcore_gdbarch_init): Update.
8752 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8753 * ia64-tdep.c (ia64_gdbarch_init): Update.
8754 * i386-tdep.c (i386_gdbarch_init): Update.
8755 * hppa-tdep.c (hppa_gdbarch_init): Update.
8756 * h8300-tdep.c (h8300_gdbarch_init): Update.
8757 * frv-tdep.c (frv_gdbarch_init): Update.
8758 * d10v-tdep.c (d10v_gdbarch_init): Update.
8759 * cris-tdep.c (cris_gdbarch_init): Update.
8760 * avr-tdep.c (avr_gdbarch_init): Update.
8761 * arm-tdep.c (arm_gdbarch_init): Update.
8762 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8763 * alpha-tdep.c (alpha_gdbarch_init): Update.
8764
8765 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8766
8767 * signals/signals.c (do_target_signal_to_host): Correct realtime
8768 signal range test.
8769
8770 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8771
8772 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8773 (struct sal_chain, map_catch_names): Remove.
8774 (catch_exception_command_1): Don't call
8775 handle_gnu_4_16_catch_command.
8776
8777 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8778
8779 From Mark Dettinger <dettinge@de.ibm.com>:
8780 * dwarf2cfi.c (read_2u): Increment pointer by two.
8781
8782 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8783
8784 * signals/signals.c: Fix typos in last change.
8785
8786 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8787
8788 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8789 not already defined. Use __SIGRTMIN if available.
8790 (target_signal_from_host): Remove SIGRTMIN block.
8791 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8792 the signal is within the realtime range.
8793
8794 2003-03-25 Adam Fedor <fedor@gnu.org>
8795
8796 * Makefile.in (infrun.o): Add $(language_h)
8797 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8798 for language specific trampolines.
8799 * language.h (struct language_defn): Add skip_trampoline.
8800 (skip_language_trampoline): Declare.
8801 * language.c (unk_lang_trampoline, skip_language_trampoline):
8802 New functions.
8803 (unknown_language_defn, auto_language_defn, local_language_defn):
8804 Add ukn_lang_trampoline.
8805 * ada-lang.c (ada_language_defn): Add NULL for language
8806 specific skip_trampoline.
8807 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8808 scm-lang.c: Likewise.
8809 * objc-lang.c (objc_skip_trampoline): New function.
8810 (objc_language_defn): Add objc_skip_trampoline.
8811
8812 2003-03-25 Andrew Cagney <cagney@redhat.com>
8813
8814 * frame.c (get_prev_frame): Delay validating a frame's ID -
8815 non-NULL, didn't go backwards - until an attempt to unwind it to
8816 the previous frame.
8817
8818 2003-03-25 Andrew Cagney <cagney@redhat.com>
8819
8820 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8821 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8822 * gdbarch.h, gdbarch.c: Re-generate.
8823 * config/sparc/tm-sparc.h
8824 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8825 * sparc-tdep.c (sparc_gdbarch_init): Set
8826 deprecated_extra_stack_alignment_needed.
8827 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8828 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8829 extra_stack_alignment_needed.
8830 * v850-tdep.c (v850_gdbarch_init): Ditto.
8831 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8832 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8833 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8834 * cris-tdep.c (cris_gdbarch_init): Ditto.
8835 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8836 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8837
8838 2003-03-25 Andrew Cagney <cagney@redhat.com>
8839
8840 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8841 STORE_STRUCT_RETURN.
8842 * gdbarch.h, gdbarch.c: Regenerate.
8843 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8844 (d10v_push_arguments): Set the struct return register.
8845 (d10v_gdbarch_init): Update.
8846 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8847 * x86-64-tdep.c (x86_64_init_abi): Update.
8848 * vax-tdep.c (vax_gdbarch_init): Update.
8849 * v850-tdep.c (v850_gdbarch_init): Update.
8850 * sparc-tdep.c (sparc_gdbarch_init): Update.
8851 * sh-tdep.c (sh_gdbarch_init): Update.
8852 * s390-tdep.c (s390_gdbarch_init): Update.
8853 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8854 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8855 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8856 * mips-tdep.c (mips_gdbarch_init): Update.
8857 * mcore-tdep.c (mcore_gdbarch_init): Update.
8858 * m68k-tdep.c (m68k_gdbarch_init): Update.
8859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8860 * ia64-tdep.c (ia64_gdbarch_init): Update.
8861 * i386-tdep.c (i386_gdbarch_init): Update.
8862 * hppa-tdep.c (hppa_gdbarch_init): Update.
8863 * h8300-tdep.c (h8300_gdbarch_init): Update.
8864 * frv-tdep.c (frv_gdbarch_init): Update.
8865 * cris-tdep.c (cris_gdbarch_init): Update.
8866 * avr-tdep.c (avr_gdbarch_init): Update.
8867 * arm-tdep.c (arm_gdbarch_init): Update.
8868 * alpha-tdep.c (alpha_gdbarch_init): Update.
8869
8870 2003-03-25 Andrew Cagney <cagney@redhat.com>
8871
8872 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8873 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8874 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8875 * gdbarch.h, gdbarch.c: Regenerate.
8876 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8877 call_dummy_stack_adjust_p.
8878 * vax-tdep.c (vax_gdbarch_init): Ditto.
8879 * v850-tdep.c (v850_gdbarch_init): Ditto.
8880 * sh-tdep.c (sh_gdbarch_init): Ditto.
8881 * s390-tdep.c (s390_gdbarch_init): Ditto.
8882 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8883 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8884 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8885 * mips-tdep.c (mips_gdbarch_init): Ditto.
8886 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8887 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8888 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8889 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8890 * i386-tdep.c (i386_gdbarch_init): Ditto.
8891 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8892 * frv-tdep.c (frv_gdbarch_init): Ditto.
8893 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8894 * cris-tdep.c (cris_gdbarch_init): Ditto.
8895 * avr-tdep.c (avr_gdbarch_init): Ditto.
8896 * arm-tdep.c (arm_gdbarch_init): Ditto.
8897 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8898 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8899 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8900 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8901 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8902 call_dummy_stack_adjust_p.
8903 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8904 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8905 * sparc-tdep.c (sparc32_push_arguments): Update.
8906 * valops.c (hand_function_call): Update.
8907
8908 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8909
8910 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8911 set_gdbarch_char_signed.
8912
8913 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8914
8915 PR cli/548
8916 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8917
8918 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8919
8920 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8921 (_initialize_arm_tdep): Don't set tm_print_insn.
8922
8923 2003-03-24 Adam Fedor <fedor@gnu.org>
8924
8925 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8926 * objc-lang.h: Add multiple inclusion protection.
8927 (start_msglist, add_msglist, end_msglist): Additional declarations.
8928
8929 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8930
8931 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8932 value was renamed to ARM_FLOAT_SOFT_FPA.
8933
8934 2003-03-23 Andrew Cagney <cagney@redhat.com>
8935
8936 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8937 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8938 * gdbarch.h, gdbarch.c: Regenerate.
8939 * valops.c (hand_function_call): Update.
8940 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8941 * frame.c (legacy_saved_regs_this_id): Update.
8942 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8943 * dummy-frame.h: Update.
8944 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8945 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8946 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8947 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8948 * config/m68k/tm-sun3.h: Update.
8949 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8950 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8951 * x86-64-tdep.c (x86_64_init_abi): Update.
8952 * vax-tdep.c (vax_gdbarch_init): Update.
8953 * v850-tdep.c (v850_gdbarch_init): Update.
8954 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8955 * sh-tdep.c (sh_gdbarch_init): Update.
8956 * s390-tdep.c (s390_gdbarch_init): Update.
8957 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8958 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8959 (frame_get_saved_regs): Update.
8960 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8961 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8962 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8963 * mips-tdep.c (mips_gdbarch_init): Update.
8964 * mcore-tdep.c (mcore_gdbarch_init): Update.
8965 * m68k-tdep.c (m68k_gdbarch_init): Update.
8966 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8967 * ia64-tdep.c (ia64_gdbarch_init): Update.
8968 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8969 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8970 (i386_interix_back_one_frame): Update.
8971 * hppa-tdep.c (hppa_gdbarch_init): Update.
8972 (hppa_init_extra_frame_info): Update.
8973 * h8300-tdep.c (h8300_gdbarch_init): Update.
8974 * frv-tdep.c (frv_gdbarch_init): Update.
8975 * cris-tdep.c (cris_gdbarch_init): Update.
8976 * avr-tdep.c (avr_gdbarch_init): Update.
8977 * arm-tdep.c (arm_gdbarch_init): Update.
8978 * alpha-tdep.c (alpha_gdbarch_init): Update.
8979
8980 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8981
8982 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8983 (arm_get_fp_model): Declare.
8984 * arm-tdep.c (fp_model_strings): New string array.
8985 (arm_fp_model, current_fp_model): New variables.
8986 (arm_get_fp_model): New function.
8987 (arm_set_fp): New function.
8988 (set_fp_model_sfunc): New function.
8989 (show_fp_model): New function.
8990 (_initialize_arm_tdep): Add new command to set/show the FPU.
8991 (arm_extract_return_value): Use arm_get_fp_model.
8992 (arm_store_return_value): Likewise.
8993 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8994 to initialize the floating-point data types.
8995 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8996 model is FPA.
8997
8998 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8999
9000 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9001 the current setting of each value.
9002 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9003 new_set and new_show. Use add_setshow_cmd_full and
9004 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9005 commands and add new version as subcommands of "set/show arm".
9006
9007 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9008
9009 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9010 (set_arm_command, show_arm_command): New functions.
9011 (_initialize_arm_tdep): Add them.
9012 (num_disassembly_options): Renamed from num_flavor_options.
9013 (valid_disassembly_styles): Renamed from valid_flavors.
9014 (disassembly_style): Renamed from disassembly_flavor.
9015 (set_disassembly_style_sfunc): Renamed from
9016 set_disassembly_flavor_sfunc.
9017 (set_disassembly_style): Renamed from set_disassembly_flavor.
9018 (arm_othernames): Updated.
9019 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9020 command. Add "set/show arm disassembly" commands. Deprecate
9021 "othernames" command.
9022
9023 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9024
9025 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9026 (arm-tdep.o): Depend on elf_arm_h.
9027
9028 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9029
9030 * Makefile.in (coff_internal_h): Define.
9031 (arm-tdep.o): Update dependencies.
9032
9033 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9034
9035 * arm-tdep.c (prologue_cache): Delete.
9036 (check_prologue_cache, save_prologue_cache): Delete.
9037 (arm_scan_prologue): Don't check or update the prologue_cache.
9038 (arm_gdb_arch_init): Don't initialize it.
9039 (_initialize_arm_tdep): Likewise.
9040
9041 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9042
9043 * MAINTAINERS (tui): Maintainer of tui code.
9044
9045 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9046
9047 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9048 (i386-cygwin-tdep.o): Add dependencies.
9049 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9050 * i386-cygwin-tdep.c: New file.
9051 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9052 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9053
9054 2003-03-20 Andrew Cagney <cagney@redhat.com>
9055
9056 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9057 (handle_inferior_event): Remove code calling
9058 DYNAMIC_TRAMPOLINE_NEXTPC.
9059
9060 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9061 already has a full path.
9062
9063 * main.c (gdb_main): Return 1.
9064 (captured_main): Call error to report an invalid interpreter.
9065
9066 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9067 * alpha-osf1-tdep.c: Include "gdb_string.h".
9068
9069 2003-03-19 J. Brobecker <brobecker@gnat.com>
9070
9071 Continuing work to convert the hppa targets to multiarch partial.
9072
9073 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9074 method, now that hppa_push_dummy_frame has a conformant prototype.
9075 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9076 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9077 for the switch to multiarch partial.
9078
9079 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9080
9081 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9082 when iss is issNull.
9083
9084 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9085
9086 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9087 NUM_REGS bounds check.
9088
9089 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9090
9091 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9092 * mips-tdep.c (gdb_assert.h): Include.
9093 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9094 (mips_register_name): Handle integer registers explicitly. Add
9095 bounds checking.
9096 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9097 (mips_lsi33k_reg_names): Don't list integer registers; they're
9098 handled by mips_register_name() now.
9099 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9100 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9101 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9102 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9103 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9104
9105 2003-03-18 Andrew Cagney <cagney@redhat.com>
9106
9107 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9108 a void pointer.
9109 * gdbtypes.h (print_scalar_formatted): Update declaration.
9110 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9111
9112 2003-03-18 J. Brobecker <brobecker@gnat.com>
9113
9114 * infrun.c (observer.h): Add #include.
9115 (normal_stop): Add call to observer_notify_normal_stop.
9116 * Makefile.in (infrun.o): Add dependency on observer.h.
9117
9118 2003-03-18 J. Brobecker <brobecker@gnat.com>
9119
9120 Continuing work to convert the hppa targets to multiarch partial.
9121 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9122 parameter. Reformat comment.
9123 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9124 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9125 to match new profile.
9126
9127 2003-03-18 J. Brobecker <brobecker@gnat.com>
9128
9129 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9130 appear to be working in any case.
9131
9132 2003-03-18 J. Brobecker <brobecker@gnat.com>
9133
9134 * observer.c (observer_test_first_observer): New static variable.
9135 (observer_test_second_observer): Likewise.
9136 (observer_test_third_observer): Likewise.
9137 (observer_test_first_notification_function): New static function.
9138 (observer_test_second_notification_function): Likewise.
9139 (observer_test_third_notification_function): Likewise.
9140
9141 2003-03-17 J. Brobecker <brobecker@gnat.com>
9142
9143 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9144 * somsolib.c (gdb_assert.h): Likewise.
9145 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9146 (somsolib.o): Likewise.
9147
9148 2003-03-17 Andrew Cagney <cagney@redhat.com>
9149
9150 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9151 BFD. Simplify setting of di.endian.
9152
9153 2003-03-17 Andrew Cagney <cagney@redhat.com>
9154
9155 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9156 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9157
9158 From Elena Zannoni <ezannoni@redhat.com>
9159 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9160 vector and floating-point parameters.
9161 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9162 convention.
9163 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9164
9165 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9166
9167 * MAINTAINERS: Remove my name from several maintainership roles.
9168
9169 2003-03-17 Andrew Cagney <cagney@redhat.com>
9170
9171 Fix frame off-by-one bug.
9172 * frame-unwind.h (frame_this_id_ftype): Replace
9173 frame_unwind_id_ftype.
9174 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9175 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9176 with "prev_register".
9177 * frame-unwind.c (frame_unwind_find_by_pc): Return
9178 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9179 comment.
9180 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9181 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9182 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9183 (dummy_frame_unwind): Update.
9184 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9185 sentinel_frame_register_unwind.
9186 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9187 (sentinel_frame_unwinder): Update.
9188 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9189 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9190 * frame.c (create_sentinel_frame): Update. Initialize
9191 "prologue_cache" instead of "unwind_cache".
9192 (frame_register_unwind): Call this frame's prev_register with the
9193 next frame and this frame's prologue cache.
9194 (get_prev_frame): Simplify. Always call prev frame's this_id with
9195 this frame and prev frame's prologue cache. Document that this
9196 call is shifted one to the left when compared to the
9197 frame_register_unwind call.
9198 (legacy_saved_regs_prev_register): Replace
9199 frame_saved_regs_register_unwind.
9200 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9201 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9202 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9203 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9204 (d10v_frame_unwind): Update.
9205 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9206 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9207 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9208 "saved_regs" with "this_saved_regs".
9209
9210 2003-03-16 Andrew Cagney <cagney@redhat.com>
9211
9212 * frame.c (frame_pop): Don't call target_store_registers. Fix
9213 problem reported by Mark Kettenis.
9214
9215 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9216
9217 * i386-tdep.c (i386_register_type): Renamed from
9218 i386_register_virtual_type. Adjust function signature.
9219 (i386_gdbarch_init): Set register_type instead of
9220 deprecated_max_register_raw_size,
9221 deprecated_max_register_virtual_size and register_virtual_type.
9222
9223 2003-03-14 Andrew Cagney <cagney@redhat.com>
9224
9225 * frame.c (get_prev_frame): When a legacy frame, always call
9226 legacy_get_prev_frame. Simplify unwind code using assumption that
9227 the unwinder is new.
9228 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9229 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9230 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9231
9232 2003-03-14 Andrew Cagney <cagney@redhat.com>
9233
9234 * frame.c (get_saved_register): Delete function.
9235 * frame.h (get_saved_register): Delete declaration.
9236 * xstormy16-tdep.c: Update comment.
9237 * regcache.h: Update comments.
9238 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9239 get_saved_register and extract_address, use
9240 frame_read_unsigned_register.
9241 (sparc_frame_saved_pc): Ditto.
9242 (sparc_get_saved_register): Instead of get_saved_register, use
9243 frame_register.
9244 (sparc_pop_frame): Ditto.
9245 * findvar.c: Update comments.
9246 (value_of_register): Call frame_register instead of
9247 get_saved_register.
9248 (value_from_register): Ditto.
9249 * config/sparc/tm-sparc.h: Update comment.
9250 * breakpoint.c: Update comment.
9251
9252 2003-03-14 Andrew Cagney <cagney@redhat.com>
9253
9254 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9255 GET_SAVED_REGISTER.
9256 * gdbarch.h, gdbarch.c: Re-generate.
9257 * frame.h: Update comments.
9258 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9259 * x86-64-tdep.c (x86_64_init_abi): Update.
9260 * sparc-tdep.c (sparc_gdbarch_init): Update.
9261 * sh-tdep.c (sh_gdbarch_init): Update.
9262 * mips-tdep.c (mips_gdbarch_init): Update.
9263 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9264 * cris-tdep.c (cris_gdbarch_init): Update.
9265 * ia64-tdep.c (ia64_gdbarch_init): Update.
9266 * frame.c (frame_register): Update.
9267 (get_saved_register): Update.
9268 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9269
9270 2003-03-13 Andrew Cagney <cagney@redhat.com>
9271
9272 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9273 * gdbarch.h, gdbarch.c: Regenerate.
9274 * valops.c (hand_function_call): Update comment.
9275 * stack.c (return_command): Update comment.
9276 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9277 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9278 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9279 * x86-64-tdep.c (x86_64_init_abi): Update.
9280 * vax-tdep.c (vax_gdbarch_init): Update.
9281 * v850-tdep.c (v850_gdbarch_init): Update.
9282 * sparc-tdep.c (sparc_gdbarch_init): Update.
9283 * sh-tdep.c (sh_gdbarch_init): Update.
9284 * s390-tdep.c (s390_gdbarch_init): Update.
9285 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9286 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9287 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9288 * mips-tdep.c (mips_gdbarch_init): Update.
9289 * mcore-tdep.c (mcore_gdbarch_init): Update.
9290 * m68k-tdep.c (m68k_gdbarch_init): Update.
9291 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9292 * ia64-tdep.c (ia64_gdbarch_init): Update.
9293 * i386-tdep.c (i386_gdbarch_init): Update.
9294 * hppa-tdep.c (hppa_gdbarch_init): Update.
9295 * h8300-tdep.c (h8300_gdbarch_init): Update.
9296 * frv-tdep.c (frv_gdbarch_init): Update.
9297 * cris-tdep.c (cris_gdbarch_init): Update.
9298 * avr-tdep.c (avr_gdbarch_init): Update.
9299 * arm-tdep.c (arm_gdbarch_init): Update.
9300 * alpha-tdep.c (alpha_gdbarch_init): Update.
9301
9302 2003-03-13 Andrew Cagney <cagney@redhat.com>
9303
9304 * frame.c (legacy_frame_p): New function.
9305 (get_prev_frame): Use legacy_frame_p.
9306 * frame.h (legacy_frame_p): Declare.
9307
9308 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9309
9310 * MAINTAINERS (write after approval): Alphabetically
9311 listing corrected.
9312
9313 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9314
9315 * MAINTAINERS (write after approval): Add myself.
9316
9317 2003-03-12 Andrew Cagney <cagney@redhat.com>
9318
9319 * frame.c (get_prev_frame): Rename the frame parameter to
9320 "this_frame".
9321 (get_next_frame, legacy_get_prev_frame): Ditto.
9322
9323 2003-03-12 Andrew Cagney <cagney@redhat.com>
9324
9325 * frame.c (get_current_frame): Check target_has_registers before
9326 checking target_has_stack.
9327 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9328 instead of deprecated_selected_frame.
9329 * findvar.c (value_of_register): Pass "frame", not
9330 deprecated_selected_frame, to value_of_builtin_reg.
9331
9332 2003-03-12 Andrew Cagney <cagney@redhat.com>
9333
9334 * regcache.c (regcache_cooked_write_signed): New function.
9335 (regcache_cooked_write_unsigned): New function.
9336 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9337 (regcache_cooked_read_signed): Fix regnum in range assertion.
9338 * regcache.h (regcache_cooked_write_signed): Declare.
9339 (regcache_cooked_write_unsigned): Declare.
9340
9341 2003-03-12 Andrew Cagney <cagney@redhat.com>
9342
9343 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9344 * gdbarch.h, gdbarch.c: Re-generate.
9345 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9346 * x86-64-tdep.h: Update.
9347 * x86-64-tdep.c (x86_64_init_abi): Update.
9348 * v850-tdep.c (v850_gdbarch_init): Update.
9349 * sparc-tdep.c (sparc_gdbarch_init): Update.
9350 * sh-tdep.c (sh_gdbarch_init): Update.
9351 * s390-tdep.c (s390_gdbarch_init): Update.
9352 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9353 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9354 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9355 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9356 * mips-tdep.c (mips_gdbarch_init): Update.
9357 * mcore-tdep.c (mcore_gdbarch_init): Update.
9358 * m68k-tdep.c (m68k_gdbarch_init): Update.
9359 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9360 * ia64-tdep.c (ia64_gdbarch_init): Update.
9361 * i386-tdep.c (i386_gdbarch_init): Update.
9362 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9363 * hppa-tdep.c (hppa_gdbarch_init): Update.
9364 * h8300-tdep.c (h8300_gdbarch_init): Update.
9365 * frv-tdep.c (frv_gdbarch_init): Update.
9366 * cris-tdep.c (cris_gdbarch_init): Update.
9367 * avr-tdep.c (avr_gdbarch_init): Update.
9368 * arm-tdep.c (arm_gdbarch_init): Update.
9369 * alpha-tdep.c (alpha_gdbarch_init): Update.
9370 * sh-tdep.c (sh_init_extra_frame_info): Update.
9371 (sh64_init_extra_frame_info): Update.
9372 * ns32knbsd-nat.c (frame_num_args): Update.
9373 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9374 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9375 (xstormy16_frame_chain_valid): Update.
9376 * vax-tdep.c (vax_saved_pc_after_call): Update.
9377 * v850-tdep.c (v850_frame_chain): Update.
9378 (v850_pop_frame): Update.
9379 (v850_init_extra_frame_info): Update.
9380 * sparc-tdep.c (setup_arbitrary_frame): Update.
9381 * ns32k-tdep.c (umax_frame_num_args): Update.
9382 * s390-tdep.c (s390_pop_frame_regular): Update.
9383 * mn10300-tdep.c (mn10300_frame_chain): Update.
9384 (mn10300_pop_frame_regular): Update.
9385 (mn10300_init_extra_frame_info): Update.
9386 * mips-tdep.c (mips_init_frame_pc_first): Update.
9387 (mips_frame_chain): Update.
9388 (mips_pop_frame): Update.
9389 * mcore-tdep.c (mcore_frame_chain): Update.
9390 (mcore_pop_frame): Update.
9391 (mcore_init_extra_frame_info): Update.
9392 * arch-utils.c (init_frame_pc_default): Update.
9393 * m68k-tdep.c (isi_frame_num_args): Update.
9394 (delta68_frame_num_args): Update.
9395 (news_frame_num_args): Update.
9396 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9397 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9398 (alpha_frame_chain): Update.
9399 (alpha_pop_frame): Update.
9400 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9401 (hppa_init_extra_frame_info): Update.
9402 (hppa_frame_chain): Update.
9403 (hppa_frame_chain_valid): Update.
9404 * cris-tdep.c (cris_init_extra_frame_info): Update.
9405 * avr-tdep.c (avr_init_extra_frame_info): Update.
9406 * arm-tdep.c (arm_frame_chain_valid): Update.
9407 (arm_init_extra_frame_info): Update.
9408 (arm_pop_frame): Update.
9409 * frame.c (frame_pc_unwind): Update.
9410 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9411 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9412 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9413 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9414 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9415 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9416
9417 2003-03-12 Andrew Cagney <cagney@redhat.com>
9418
9419 Eliminate the need for POP_FRAME.
9420 * frame.c (do_frame_unwind_register): New function.
9421 (frame_pop): When no POP_FRAME, pop the frame using register
9422 unwind and a scratch regcache.
9423 (frame_saved_regs_pop): Delete function.
9424 (trad_frame_unwinder): Update.
9425 * d10v-tdep.c (d10v_frame_pop): Delete function.
9426 (d10v_frame_unwind): Update.
9427 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9428 (sentinel_frame_unwinder): Update.
9429 * dummy-frame.c (dummy_frame_pop): Delete function.
9430 (dummy_frame_unwind): Update.
9431 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9432 (struct frame_unwind): Update.
9433
9434 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9435
9436 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9437 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9438 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9439 Do range checks on register number obtained from debugging info.
9440 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9441 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9442 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9443 mapping function.
9444 (do_fp_register_row): Fix typo which caused double type to be
9445 used when attempting to unpack a float.
9446
9447 2003-03-11 J. Brobecker <brobecker@gnat.com>
9448
9449 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9450
9451 2003-03-11 Andrew Cagney <cagney@redhat.com>
9452
9453 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9454 frame. Problem found by Corinna Vinschen.
9455
9456 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9457
9458 * doublest.c (floatformat_from_length): Accept also
9459 the real size of 'long double' type.
9460
9461 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9462
9463 From Klee Dienes <kdienes@apple.com>:
9464 * breakpoint.c (bpstat_copy): Copy the command lines as well
9465 as the old value, to match what is freed in bpstat_clear.
9466
9467 2003-03-10 David Carlton <carlton@math.stanford.edu>
9468
9469 * minsyms.c (add_minsym_to_hash_table): Replace
9470 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9471 (compare_minimal_symbols, compact_minimal_symbols)
9472 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9473 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9474 of DEPRECATED_SYMBOL_MATCHES_NAME.
9475 (lookup_minimal_symbol_solib_trampoline): Ditto.
9476
9477 2003-03-10 Andrew Cagney <cagney@redhat.com>
9478
9479 * regcache.h (regcache_cooked_read_ftype): Define.
9480 (regcache_save, regcache_restore): Add a cooked_read parameter.
9481 * regcache.c (regcache_save, regcache_restore): Update.
9482 (do_cooked_read): New function.
9483 (regcache_cpy): Pass do_cooked_read to regcache_save and
9484 regcache_restore.
9485
9486 2003-03-10 Andrew Cagney <cagney@redhat.com>
9487
9488 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9489 * gdbarch.h, gdbarch.c: Re-generate.
9490 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9491 * x86-64-tdep.h: Update.
9492 * x86-64-tdep.c (x86_64_init_abi): Update.
9493 * v850-tdep.c (v850_gdbarch_init): Update.
9494 * sparc-tdep.c (sparc_gdbarch_init): Update.
9495 * sh-tdep.c (sh_gdbarch_init): Update.
9496 * s390-tdep.c (s390_gdbarch_init): Update.
9497 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9498 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9499 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9500 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9501 * mips-tdep.c (mips_gdbarch_init): Update.
9502 * mcore-tdep.c (mcore_gdbarch_init): Update.
9503 * m68k-tdep.c (m68k_gdbarch_init): Update.
9504 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9505 * ia64-tdep.c (ia64_gdbarch_init): Update.
9506 * i386-tdep.c (i386_gdbarch_init): Update.
9507 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9508 * hppa-tdep.c (hppa_gdbarch_init): Update.
9509 * h8300-tdep.c (h8300_gdbarch_init): Update.
9510 * frv-tdep.c (frv_gdbarch_init): Update.
9511 * cris-tdep.c (cris_gdbarch_init): Update.
9512 * avr-tdep.c (avr_gdbarch_init): Update.
9513 * arm-tdep.c (arm_gdbarch_init): Update.
9514 * alpha-tdep.c (alpha_gdbarch_init): Update.
9515 * sh-tdep.c (sh_init_extra_frame_info): Update.
9516 (sh64_init_extra_frame_info): Update.
9517 * ns32knbsd-nat.c (frame_num_args): Update.
9518 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9519 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9520 (xstormy16_frame_chain_valid): Update.
9521 * vax-tdep.c (vax_saved_pc_after_call): Update.
9522 * v850-tdep.c (v850_frame_chain): Update.
9523 (v850_pop_frame): Update.
9524 (v850_init_extra_frame_info): Update.
9525 * sparc-tdep.c (setup_arbitrary_frame): Update.
9526 * ns32k-tdep.c (umax_frame_num_args): Update.
9527 * s390-tdep.c (s390_pop_frame_regular): Update.
9528 * mn10300-tdep.c (mn10300_frame_chain): Update.
9529 (mn10300_pop_frame_regular): Update.
9530 (mn10300_init_extra_frame_info): Update.
9531 * mips-tdep.c (mips_init_frame_pc_first): Update.
9532 (mips_frame_chain): Update.
9533 (mips_pop_frame): Update.
9534 * mcore-tdep.c (mcore_frame_chain): Update.
9535 (mcore_pop_frame): Update.
9536 (mcore_init_extra_frame_info): Update.
9537 * arch-utils.c (init_frame_pc_default): Update.
9538 * m68k-tdep.c (isi_frame_num_args): Update.
9539 (delta68_frame_num_args): Update.
9540 (news_frame_num_args): Update.
9541 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9542 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9543 (alpha_frame_chain): Update.
9544 (alpha_pop_frame): Update.
9545 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9546 (hppa_init_extra_frame_info): Update.
9547 (hppa_frame_chain): Update.
9548 (hppa_frame_chain_valid): Update.
9549 * cris-tdep.c (cris_init_extra_frame_info): Update.
9550 * avr-tdep.c (avr_init_extra_frame_info): Update.
9551 * arm-tdep.c (arm_frame_chain_valid): Update.
9552 (arm_init_extra_frame_info): Update.
9553 (arm_pop_frame): Update.
9554 * frame.c (frame_pc_unwind): Update.
9555 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9556 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9557 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9558 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9559 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9560 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9561
9562 2003-03-10 Andrew Cagney <cagney@redhat.com>
9563
9564 * gdbarch.sh (gdbarch_unwind_pc): New method.
9565 * gdbarch.h, gdbarch.c: Regenerate.
9566 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9567 but use read_pc and FRAME_SAVED_PC as fall backs.
9568 (frame_saved_regs_pc_unwind): Delete function.
9569 (trad_frame_unwinder): Update.
9570 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9571 (struct frame_unwind): Update.
9572 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9573 (dummy_frame_unwind): Update.
9574 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9575 (sentinel_frame_unwinder): Update.
9576 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9577 (d10v_frame_unwind): Update.
9578 (d10v_unwind_pc): New function.
9579 (d10v_gdbarch_init): Set unwind_pc.
9580
9581 2003-03-10 Andrew Cagney <cagney@redhat.com>
9582
9583 * gdbarch.h: Re-generate.
9584
9585 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9586 PC.
9587 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9588 the PC register.
9589
9590 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9591
9592 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9593
9594 2003-03-08 Andrew Cagney <cagney@redhat.com>
9595
9596 * cli-out.c: Update copyright.
9597 (cli_out_data): Define typedef. Use instead of ui_out_data.
9598
9599 2003-03-08 Andrew Cagney <cagney@redhat.com>
9600
9601 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9602 the result.
9603
9604 2003-03-07 Andrew Cagney <cagney@redhat.com>
9605
9606 * gdbarch.sh: Don't generate two macro definitions when an
9607 undefined macro taking no arguments.
9608 * gdbarch.h: Regenerate.
9609
9610 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9611
9612 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9613 (x86_64_unwind_dummy_id): New functions.
9614 (x86_64_init_abi): Register these two new functions.
9615
9616 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9617
9618 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9619 (x86_64_skip_prologue): Move prologue detection to
9620 separate function.
9621 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9622
9623 2003-03-05 Andrew Cagney <cagney@redhat.com>
9624
9625 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9626 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9627 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9628 to use unwind_dummy_id when a dummy frame.
9629 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9630 predicate.
9631 * gdbarch.h, gdbarch.c: Regneerate.
9632
9633 2003-03-05 Andrew Cagney <cagney@redhat.com>
9634
9635 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9636 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9637 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9638 values.
9639
9640 2003-03-05 Andrew Cagney <cagney@redhat.com>
9641
9642 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9643 (struct d10v_unwind_cache): Delete field "frameless". Replace
9644 "next_addr" with "sp_offset". Add "r11_offset".
9645 (d10v_frame_unwind_cache): Update.
9646 (prologue_find_regs): Update. When "mv r11, sp", save the
9647 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9648 RN was saved in r11_offset.
9649
9650 2003-03-05 Andrew Cagney <cagney@redhat.com>
9651
9652 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9653 cached PC value in the next frame.
9654
9655 2003-03-05 Andrew Cagney <cagney@redhat.com>
9656
9657 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9658 "id_unwind_cache" with "id".
9659 (frame_id_unwind): Delete declaration.
9660 * frame.c (frame_id_unwind): Delete function.
9661 (get_prev_frame): Call the frame id unwind method directly. Store
9662 the returned next frame's ID value in NEXT_FRAME. Note that there
9663 is a problem with the wrong unwind ID being called with the wrong
9664 unwind cache.
9665
9666 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9667
9668 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9669
9670 2003-03-05 James Ingham <jingham@apple.com>
9671 Daniel Jacobowitz <drow@mvista.com>
9672
9673 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9674 (auto_cp_abi): New variable.
9675 (current_cp_abi, num_cp_abis): Make static.
9676 (CP_ABI_MAX): Define.
9677 (cp_abis): Turn into an array.
9678 (value_virtual_fn_field): Fix formatting.
9679 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9680 takes a pointer.
9681 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9682 (list_cp_abis, _initialize_cp_abi): New functions.
9683 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9684 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9685 switch_to_cp_abi. Update prototype for register_cp_abi.
9686 * Makefile.in (cp-abi.o): Update dependencies.
9687 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9688 instead of switch_to_cp_abi.
9689 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9690 register_cp_abi.
9691 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9692 register_cp_abi.
9693 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9694
9695 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9696
9697 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9698 * dwarf2loc.c: Include "regcache.h".
9699 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9700 register_size.
9701 * Makefile.in (dwarf2loc.o): Update dependencies.
9702
9703 2003-03-04 Theodore A. Roth <troth@openavr.org>
9704
9705 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9706 number of io registers reported by remote target is not a multiple of
9707 step.
9708
9709 2003-03-04 David Carlton <carlton@math.stanford.edu>
9710
9711 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9712 (lookup_symbol_aux_psymtabs): Update call to
9713 lookup_partial_symbol.
9714 (lookup_transparent_type, find_main_psymtab)
9715 (make_symbol_overload_list): Ditto.
9716
9717 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9718
9719 * MAINTAINERS (Write after approval): Update my email address.
9720
9721 2003-03-03 Andrew Cagney <cagney@redhat.com>
9722
9723 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9724 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9725 predicate. Replace MAX_REGISTER_RAW_SIZE.
9726 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9727 MAX_REGISTER_VIRTUAL_SIZE.
9728 * regcache.c (legacy_max_register_raw_size): New function.
9729 (legacy_max_register_virtual_size): New function.
9730 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9731 (MAX_REGISTER_RAW_SIZE): Define.
9732 (legacy_max_register_raw_size): Declare.
9733 (legacy_max_register_virtual_size): Declare.
9734 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9735 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9736 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9737 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9738 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9739 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9740 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9741 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9742 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9743 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9744 * vax-tdep.c (vax_gdbarch_init): Update.
9745 * v850-tdep.c (v850_gdbarch_init): Update.
9746 * sparc-tdep.c (sparc_gdbarch_init): Update.
9747 * sh-tdep.c (sh_gdbarch_init): Update.
9748 * s390-tdep.c (s390_gdbarch_init): Update.
9749 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9750 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9751 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9752 * mips-tdep.c (mips_gdbarch_init): Update.
9753 * mcore-tdep.c (mcore_gdbarch_init): Update.
9754 * m68k-tdep.c (m68k_gdbarch_init): Update.
9755 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9756 * ia64-tdep.c (ia64_gdbarch_init): Update.
9757 * i386-tdep.c (i386_gdbarch_init): Update.
9758 * hppa-tdep.c (hppa_gdbarch_init): Update.
9759 * h8300-tdep.c (h8300_gdbarch_init): Update.
9760 * frv-tdep.c (frv_gdbarch_init): Update.
9761 * cris-tdep.c (cris_gdbarch_init): Update.
9762 * avr-tdep.c (avr_gdbarch_init): Update.
9763 * arm-tdep.c (arm_gdbarch_init): Update.
9764 * alpha-tdep.c (alpha_gdbarch_init): Update.
9765 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9766 max_register_raw_size or max_register_virtual_size.
9767
9768 2003-03-03 David Carlton <carlton@math.stanford.edu>
9769
9770 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9771 SYMBOL_MATCHES_NAME, add comment.
9772 (SYMBOL_MATCHES_NATURAL_NAME): New.
9773 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9774 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9775 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9776 * symtab.c (lookup_partial_symbol): Use
9777 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9778 unhelpful comment.
9779 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9780 SYMBOL_MATCHES_NAME.
9781 Fix for PR c++/33.
9782
9783 2003-03-03 David Carlton <carlton@math.stanford.edu>
9784
9785 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9786 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9787 by regexp matching against SYMBOL_NATURAL_NAME.
9788
9789 2003-03-03 David Carlton <carlton@math.stanford.edu>
9790
9791 * linespec.c (find_method): Extract code into collect_methods.
9792 (collect_methods): New.
9793
9794 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9795
9796 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9797 get_frame_base.
9798
9799 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9800 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9801
9802 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9803
9804 * arch-utils.c (generic_register_byte): Fix to use the loop index
9805 and not regnum when summing the size of all registers up to regnum.
9806
9807 2003-03-01 Andrew Cagney <cagney@redhat.com>
9808
9809 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9810 FRAME_INIT_SAVED_REGS.
9811 * gdbarch.h, gdbarch.c: Regenerate.
9812 * stack.c (frame_info): Update.
9813 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9814 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9815 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9816 * ns32k-tdep.c (ns32k_pop_frame): Update.
9817 * mips-tdep.c (mips_pop_frame): Update.
9818 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9819 * ia64-tdep.c (ia64_frame_chain): Update.
9820 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9821 (ia64_frameless_function_invocation): Update.
9822 (ia64_init_extra_frame_info): Update.
9823 (ia64_pop_frame_regular): Update.
9824 * frame.h (struct frame_info): Update comment.
9825 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9826 * frame.c (frame_saved_regs_register_unwind): Update.
9827 (frame_saved_regs_register_unwind): Update.
9828 (deprecated_generic_get_saved_register): Update.
9829 * cris-tdep.c: Update comment.
9830 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9831 Rename macro.
9832 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9833 * x86-64-tdep.c (x86_64_init_abi): Update.
9834 * vax-tdep.c (vax_gdbarch_init): Update.
9835 * v850-tdep.c (v850_gdbarch_init): Update.
9836 * sparc-tdep.c (sparc_gdbarch_init): Update.
9837 * sh-tdep.c (sh_gdbarch_init): Update.
9838 * s390-tdep.c (s390_gdbarch_init): Update.
9839 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9840 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9841 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9842 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9843 * mips-tdep.c (mips_gdbarch_init): Update.
9844 * mcore-tdep.c (mcore_gdbarch_init): Update.
9845 * m68k-tdep.c (m68k_gdbarch_init): Update.
9846 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9847 * ia64-tdep.c (ia64_gdbarch_init): Update.
9848 * i386-tdep.c (i386_gdbarch_init): Update.
9849 * frv-tdep.c (frv_gdbarch_init): Update.
9850 * avr-tdep.c (avr_gdbarch_init): Update.
9851 * arm-tdep.c (arm_gdbarch_init): Update.
9852 * alpha-tdep.c (alpha_gdbarch_init): Update.
9853
9854 2003-03-01 Andrew Cagney <cagney@redhat.com>
9855
9856 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9857 option enum and switch. When no windows, set the interpreter to
9858 INTERP_CONSOLE.
9859
9860 2003-03-01 Andrew Cagney <cagney@redhat.com>
9861
9862 * main.c (captured_main): Replace magic option characters with an
9863 enum.
9864
9865 2003-03-01 Andrew Cagney <cagney@redhat.com>
9866
9867 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9868 INIT_EXTRA_FRAME_INFO.
9869 * gdbarch.h, gdbarch.c: Regenerate.
9870 * arm-tdep.c: Update comments.
9871 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9872 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9873 * frame.h, avr-tdep.c: Ditto.
9874 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9875 (create_new_frame, legacy_get_prev_frame): Ditto.
9876 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9877 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9878 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9879 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9880 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9881 * v850-tdep.c (v850_gdbarch_init): Ditto.
9882 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9883 * sh-tdep.c (sh_gdbarch_init): Ditto.
9884 * s390-tdep.c (s390_gdbarch_init): Ditto.
9885 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9886 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9887 * mips-tdep.c (mips_gdbarch_init): Ditto.
9888 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9889 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9890 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9891 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9892 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9893 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9894 * frv-tdep.c (frv_gdbarch_init): Ditto.
9895 * cris-tdep.c (cris_gdbarch_init): Ditto.
9896 * avr-tdep.c (avr_gdbarch_init): Ditto.
9897 * arm-tdep.c (arm_gdbarch_init): Ditto.
9898 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9899 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9900
9901 2003-03-01 Andrew Cagney <cagney@redhat.com>
9902
9903 * gdbarch.sh (register_type): New function with predicate.
9904 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9905 * gdbarch.h, gdbarch.c: Re-generate.
9906 * arch-utils.c (generic_register_byte): Use generic_register_size.
9907 (generic_register_size): When available, use
9908 gdbarch_register_type.
9909 * regcache.c (init_regcache_descr): When available, initialize the
9910 register type array using gdbarch_register_type. If the
9911 architecture supplies gdbarch_register_type, do not use the legacy
9912 regcache layout.
9913 * d10v-tdep.c (d10v_register_type): Replace
9914 d10v_register_virtual_type.
9915 (d10v_gdbarch_init): Set register_type instead of
9916 register_virtual_type.
9917
9918 2003-03-01 Andrew Cagney <cagney@redhat.com>
9919
9920 * Makefile.in (ax-gdb.o): Update dependencies.
9921 * ax-gdb.c: Include "regcache.h".
9922 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9923 * findvar.c (value_of_register): Ditto.
9924 * infcmd.c (default_print_registers_info): Ditto.
9925
9926 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9927
9928 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9929 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9930
9931 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9932
9933 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9934 of STREQ.
9935
9936 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9937
9938 * Makefile.in (dwarf2loc.o): Update dependencies.
9939 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9940 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9941 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9942 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9943 (locexpr_tracepoint_var_ref): New function.
9944 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9945
9946 2003-02-28 Andrew Cagney <cagney@redhat.com>
9947
9948 * regcache.c (register_size): New function.
9949 * regcache.h (register_size): Declare
9950 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9951 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9952
9953 2003-02-28 David Carlton <carlton@math.stanford.edu>
9954
9955 * linespec.c (decode_compound): Extract code into find_method.
9956 (find_method): New.
9957
9958 2003-02-28 J. Brobecker <brobecker@gnat.com>
9959
9960 * Makefile.in: Add rules to build and link in observer.o.
9961
9962 2003-02-27 J. Brobecker <brobecker@gnat.com>
9963
9964 * observer.c: Minor comments edits.
9965
9966 2003-02-27 J. Brobecker <brobecker@gnat.com>
9967
9968 * observer.h, observer.c: New file.
9969
9970 2003-02-27 Andrew Cagney <cagney@redhat.com>
9971
9972 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9973
9974 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9975
9976 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9977 (M6812_OP_STS_EXT): Likewise.
9978 (m6811_prologue): Use the above to recognize prologue.
9979 (m6812_prologue): Likewise.
9980
9981 2003-02-27 David Carlton <carlton@math.stanford.edu>
9982
9983 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9984 SYMBOL_PRINT_NAME.
9985 (compare_psymbols): Ditto.
9986 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9987
9988 2003-02-27 Michael Snyder <msnyder@redhat.com>
9989
9990 * f-lang.c (build_fortran_types): New function.
9991 (_initialize_f_language): Gdbarch-register built-in fortran types.
9992 * doublest.c (extract_floating): Fix warning text.
9993
9994 2003-02-27 Andrew Cagney <cagney@redhat.com>
9995
9996 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9997 predicate. Replaces PUSH_DUMMY_FRAME.
9998 * gdbarch.h, gdbarch.c: Regnerate.
9999 * valops.c (hand_function_call): Update. Call
10000 generic_push_dummy_frame directly.
10001 * vax-tdep.c (vax_gdbarch_init): Update.
10002 * sparc-tdep.c (sparc_gdbarch_init): Update.
10003 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10004 * m68k-tdep.c (m68k_gdbarch_init): Update.
10005 * hppa-tdep.c (hppa_gdbarch_init): Update.
10006 * alpha-tdep.c (alpha_gdbarch_init): Update.
10007 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10008 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10009 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10010 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10011 push_dummy_frame to generic_push_dummy_frame.
10012 * v850-tdep.c (v850_gdbarch_init): Ditto.
10013 * sh-tdep.c (sh_gdbarch_init): Ditto.
10014 * s390-tdep.c (s390_gdbarch_init): Ditto.
10015 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10016 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10017 * mips-tdep.c (mips_gdbarch_init): Ditto.
10018 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10019 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10020 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10021 * i386-tdep.c (i386_gdbarch_init): Ditto.
10022 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10023 * frv-tdep.c (frv_gdbarch_init): Ditto.
10024 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10025 * cris-tdep.c (cris_gdbarch_init): Ditto.
10026 * avr-tdep.c (avr_gdbarch_init): Ditto.
10027 * arm-tdep.c (arm_gdbarch_init): Ditto.
10028
10029 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10030
10031 * mips-tdep.c (show_mips_abi): New function.
10032 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10033 command ``show mips abi''.
10034
10035 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10036
10037 From Elena Zannoni <ezannoni@redhat.com>
10038 * dbxread.c (process_one_symbol): Only record line 0 if one or
10039 more sline entries have been seen for the function.
10040
10041 2003-02-26 Michael Chastain <mec@shout.net>
10042
10043 * configure: Regenerate with autoconf 000227.
10044
10045 2003-02-26 Michael Chastain <mec@shout.net>
10046
10047 Close PR build/660.
10048 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10049 for old libc5/glibc.
10050 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10051
10052 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10053
10054 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10055 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10056
10057 2003-02-26 Michael Chastain <mec@shout.net>
10058
10059 * configure.in: New variable HAVE_UINTPTR_T.
10060 * configure, config.in: Regenerated.
10061
10062 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10063
10064 Fix PR build/1097.
10065 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10066
10067 2003-02-25 Andrew Cagney <cagney@redhat.com>
10068
10069 * frame.c (get_prev_frame): Add comment on check for
10070 inside_entry_func. Only check for inside_entry_file when not a
10071 dummy and not a sentinel. Check that the new frame is not inner
10072 to the old frame.
10073
10074 2003-02-25 Andrew Cagney <cagney@redhat.com>
10075
10076 * frame.c (frame_debug): New variable.
10077 (_initialize_frame): Add "set/show debug frame" command.
10078 (get_prev_frame): When frame_debug, print reason why unwind
10079 failed.
10080
10081 2003-02-25 Michael Chastain <mec@shout.net>
10082
10083 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10084 to avoid uintptr_t definition problems.
10085
10086 2003-02-25 David Carlton <carlton@math.stanford.edu>
10087
10088 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10089 (SYMBOL_LINKAGE_NAME): Ditto.
10090 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10091 SYMBOL_LINKAGE_NAME.
10092 (struct general_symbol_info): Expand comment.
10093 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10094 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10095 (SYMBOL_MATCHES_REGEXP): Ditto.
10096 * symtab.c (symbol_natural_name): New function.
10097 * objfiles.h: Replace all uses of SYMBOL_NAME by
10098 DEPRECATED_SYMBOL_NAME.
10099 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10100 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10101 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10102 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10103 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10104 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10105 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10106 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10107 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10108 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10109 * ada-exp.y: Ditto.
10110 * ada-exp.y: Update copyright.
10111 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10112 * cp-valprint.c: Ditto.
10113
10114 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10115
10116 * infptrace.c (detach): Do not flag error if ptrace detach fails
10117 and errno is set to ESRCH.
10118
10119 2003-02-24 Andrew Cagney <cagney@redhat.com>
10120
10121 * infptrace.c (udot_info): Change type of udot_off to long. Use
10122 paddr when printing udot_off's value.
10123
10124 2003-02-24 David Carlton <carlton@math.stanford.edu>
10125
10126 * symtab.c (make_symbol_overload_list): Only read in partial
10127 symtabs containing a matching partial symbol.
10128
10129 2003-02-24 David Carlton <carlton@math.stanford.edu>
10130
10131 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10132 do the comparison, not strcmp.
10133 * symfile.c (compare_psymbols): Ditto.
10134 * defs.h: Declare strcmp_iw_ordered.
10135 * utils.c (strcmp_iw_ordered): New function.
10136
10137 2003-02-24 Jim Blandy <jimb@redhat.com>
10138
10139 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10140 support, shared libs): Remove my name from here, to better reflect
10141 reality.
10142
10143 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10144
10145 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10146 (target_ops): Add to_have_continuable_watchpoint.
10147 * target.c (update_current_target): Add INHERIT line for
10148 to_have_continuable_watchpoint.
10149 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10150 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10151 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10152 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10153
10154 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10155
10156 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10157 maintainership.
10158
10159 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10160
10161 * solib.c (solib_open): Call target defined search function after
10162 failing with solib-search-path.
10163 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10164 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10165
10166 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10167
10168 * MAINTAINERS: Add myself to Write After section.
10169
10170 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10171
10172 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10173
10174 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10175
10176 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10177 (m68hc11_add_reggroups): New function.
10178 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10179 (m68hc11_gdbarch_init): Install the reggroups.
10180 (_initialize_m68hc11_tdep): Initialize them.
10181
10182 2003-02-21 James E Wilson <wilson@tuliptree.org>
10183
10184 * MAINTAINERS: Update my email address.
10185
10186 2003-02-21 David Carlton <carlton@math.stanford.edu>
10187
10188 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10189
10190 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10191
10192 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10193 * symtab.h: Add opaque declarations of struct axs_value and
10194 struct agent_expr.
10195 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10196 (struct location_funcs): New type.
10197 (struct symbol): Add "loc" to aux_value.
10198 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10199 * dwarf2read.c: Include "dwarf2expr.h".
10200 (dwarf2_symbol_mark_computed): New function.
10201 (read_func_scope): Use it.
10202 (var_decode_location): New function.
10203 (new_symbol): Use it.
10204 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10205
10206 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10207 (dwarf2expr_h, dwarf2loc_h): New variables.
10208 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10209 (dwarf2expr.o, dwarf2loc.o): New rules.
10210 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10211 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10212 LOC_COMPUTED_ARG.
10213 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10214 * m2-exp.y (yylex): Likewise.
10215 * printcmd.c (address_info, print_frame_args): Likewise.
10216 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10217 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10218 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10219 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10220 * symtab.c (lookup_block_symbol): Likewise.
10221
10222 2003-02-20 Adam Fedor <fedor@gnu.org>
10223
10224 * symtab.h: Remove objc_specific struct
10225 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10226 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10227 Have language_objc use cplus_specific struct.
10228
10229 2003-02-20 Tom Tromey <tromey@redhat.com>
10230
10231 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10232 TYPE_NAME, when printing a String value. PR java/1075.
10233
10234 2003-02-20 Adam Fedor <fedor@gnu.org>
10235
10236 * objc-lang.h (find_methods): Remove declaration.
10237 * objc-lang.c (find_methods): Make static.
10238
10239 2003-02-20 Christopher Faylor <cgf@redhat.com>
10240
10241 * win32-nat.c (get_image_name): Check return value from
10242 ReadProcessMemory.
10243 (child_xfer_memory): Ditto.
10244
10245 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10246
10247 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10248 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10249 '${exec_prefix}' (in addition to the expansion thereof) as
10250 relocatable.
10251 * configure: Rebuilt.
10252
10253 2003-02-20 David Carlton <carlton@math.stanford.edu>
10254
10255 * symtab.c (search_symbols): Revert the search_symbols part of my
10256 2002-12-23 patch. Add comment.
10257
10258 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10259
10260 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10261 * dbxread.c (elfstab_build_psymtabs): Don't call
10262 install_minimal_symbols.
10263 (stabsect_build_psymtabs): Likewise.
10264 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10265 earlier.
10266 * somread.c (som_symfile_read): Call install_minimal_symbols
10267 and do_cleanups earlier.
10268 * nlmread.c (nlm_symfile_read): Likewise.
10269 * mdebugread.c (elfmdebug_build_psymtabs): Call
10270 install_minimal_symbols and make appropriate cleanups.
10271
10272 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10273
10274 * solib.c (reload_shared_libraries): New function.
10275 (_initialize_solib): Add callbacks for ``set solib-search-path''
10276 and ``set solib-absolute-prefix''.
10277
10278 2003-02-20 David Carlton <carlton@math.stanford.edu>
10279
10280 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10281 expand comment.
10282 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10283 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10284 * ada-typeprint.c (ada_typedef_print): Ditto.
10285 * ax-gdb.c (gen_var_ref): Ditto.
10286 * breakpoint.c (print_one_breakpoint): Ditto.
10287 * buildsym.c (finish_block): Ditto.
10288 * c-valprint.c (c_val_print): Ditto.
10289 * expprint.c (print_subexp): Ditto.
10290 * findvar.c (locate_var_value): Ditto.
10291 * infcmd.c (jump_command): Ditto.
10292 * linespec.c (decode_line_2, decode_compound): Ditto.
10293 * maint.c (maintenance_translate_address): Ditto.
10294 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10295 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10296 Ditto.
10297 * p-valprint.c (pascal_val_print): Ditto.
10298 * stabsread.c (define_symbol): Ditto.
10299 * stack.c (print_frame, frame_info, print_block_frame_locals)
10300 (print_frame_arg_vars, return_command): Ditto.
10301 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10302 * symmisc.c (print_symbol): Ditto.
10303 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10304 (compare_search_syms, print_symbol_info, print_msymbol_info)
10305 (rbreak_command): Ditto.
10306 * tracepoint.c (tracepoints_info): Ditto.
10307 * typeprint.c (typedef_print): Ditto.
10308 * valops.c (value_of_variable, hand_function_call): Ditto.
10309 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10310 * ada-typeprint.c: Update Copyright.
10311 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10312 * tracepoint.c, cli/cli-cmds.c: Ditto.
10313
10314 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10315
10316 * frame.c (generic_unwind_get_saved_register): Make non-static.
10317 * frame.h (generic_unwind_get_saved_register): Declare.
10318 * mips-tdep.c (read_next_frame_reg): Fetch register from
10319 current regcache when frame is NULL.
10320 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10321 that must be NULL.
10322 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10323 instead of frame_register_unwind().
10324
10325 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10326
10327 * remote-sim.c (gdbsim_insert_breakpoint)
10328 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10329 code.
10330
10331 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10332
10333 * remote.c (_initialize_remote): Add commands "set/show remote
10334 hardware-watchpoint-limit" and "set/show remote
10335 hardware-breakpoint-limit".
10336 (remote_hw_watchpoint_limit): Initialize to -1.
10337 (remote_hw_breakpoint_limit): Ditto.
10338 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10339
10340 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10341
10342 * coff-pe-read.c: New file - support reading of minimal symbols from a
10343 portable executable using the export table.
10344 * coff-pe-read.h: New file.
10345 * coffread.c: Include coff-pe-read.h.
10346 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10347 debugging symbols found.
10348 * Makefile.in (SFILES): Add coff-pe-read.o.
10349 (coff_pe_read_h): Define.
10350 (COMMON_OBS): Add coff-pe-read.o.
10351 (coffread.o): Add coff_pe_read_h dependency.
10352 (coff-pe-read.o): New target.
10353
10354 2003-02-19 David Carlton <carlton@math.stanford.edu>
10355
10356 * Makefile.in (SFILES): Add block.c.
10357 (block_h): New.
10358 (COMMON_OBS): Add block.o.
10359 (block.o): New.
10360 (x86-64-tdep.o): Add $(block_h).
10361 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10362 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10363 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10364 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10365 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10366 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10367 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10368 * value.h: Add opaque declaration for struct block.
10369 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10370 * ada-lang.h: Ditto.
10371 * x86-64-tdep.c: #include "block.h"
10372 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10373 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10374 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10375 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10376 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10377 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10378 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10379 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10380 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10381 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10382 * symtab.c (block_function): Ditto.
10383 (contained_in): Ditto.
10384 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10385 block.h. Add opaque declaration for struct block.
10386 * symtab.h: Move block_function and contained_in declarations to
10387 block.h. Add opaque declarations for struct block, struct
10388 blockvector.
10389 (struct block): Move to block.h.
10390 (struct blockvector): Ditto.
10391 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10392 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10393 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10394 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10395 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10396 Ditto.
10397 * block.c: New file.
10398 * block.h: New file.
10399
10400 2003-02-19 Theodore A. Roth <troth@openavr.org>
10401
10402 * avr-tdep.c (avr_extract_return_value): Remove function.
10403 (avr_store_return_value): Remove function.
10404 (avr_extract_struct_value_address): Remove function.
10405 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10406
10407 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10408
10409 * rs6000-tdep.c: Include "gdb_assert.h".
10410 (registers_e500): Add "acc" and "spefscr".
10411 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10412 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10413 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10414 really is "r0".
10415 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10416
10417 2003-02-18 Keith Seitz <keiths@redhat.com>
10418
10419 * Makefile.in: Add gdbtk-interps.c.
10420
10421 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10422
10423 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10424 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10425
10426 2003-02-18 Andrew Cagney <cagney@redhat.com>
10427
10428 * symtab.h (struct objfile): Add opaque declaration.
10429
10430 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10431
10432 From Jim Ingham <jingham@apple.com>:
10433 * dbxread.c (process_one_symbol): Use last_function_start rather
10434 than function_start_offset to find the real beginning of the
10435 current function. The latter is just the text section offset on
10436 some systems, the former is always the real function start.
10437
10438 2003-02-17 Andrew Cagney <cagney@redhat.com>
10439
10440 * configure.in: Revert ${target} != ${host}.
10441
10442 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10443
10444 * configure.in (Makefile): Use the test ${target} != ${host},
10445 instead of the absence of the "nm.h" file, to determine of the
10446 configuration non-native.
10447 * configure: Regenerate.
10448
10449 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10450
10451 From Brian Ford <ford@vss.fsi.com>
10452
10453 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10454 conditionalize tui_active test.
10455 (lookup_cmd_1): Ditto.
10456
10457 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10458
10459 * configure.in: Add check for _etext.
10460 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10461 available.
10462 * config.in, configure: regenerated.
10463
10464 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10465
10466 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10467
10468 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10469
10470 * main.c (tui_version): Delete variable.
10471 (captured_main): When --tui, set interpreter_p to "tui" instead of
10472 enabling tui_version.
10473 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10474 tui_version.
10475 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10476 * cli/cli-cmds.c (disassemble_command): Ditto.
10477 * defs.h (tui_version): Delete declaration.
10478 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10479 (tui-interp.o): Add rules.
10480 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10481
10482 2003-02-14 Christopher Faylor <cgf@redhat.com>
10483
10484 * win32-nat.c (register_loaded_dll): Correctly set address range for
10485 just-loaded dll.
10486
10487 2003-02-12 Jason Molenda (jmolenda@apple.com)
10488
10489 * symmisc.c (print_objfile_statistics): Include information about
10490 the number of psymtabs and symtabs in each object file.
10491
10492 2003-02-13 Keith R Seitz <keiths@redhat.com>
10493
10494 * main.h (struct captured_main_args): Add interpreter_p.
10495 * main.c (captured_main): Initialize interpreter_p from context.
10496 * gdb.c (main): Set interpreter_p argument.
10497 * Makefile.in (gdb.o): Add dependency for interps.h.
10498
10499 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10500
10501 * event-top.c (cli_command_loop): Delete declaration.
10502 (_initialize_event_loop): Delete function setting event_loop_hook.
10503 * event-top.h (cli_command_loop): Declare. Update copyright.
10504 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10505 * interps.c (current_interp_command_loop): When event_loop_p, call
10506 cli_command_loop.
10507
10508 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10509
10510 * interps.h (interp_command_loop_ftype): Change return type to
10511 void.
10512
10513 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10514
10515 * x86-64-tdep.c (x86_64_extract_return_value)
10516 (x86_64_store_return_value): Use regcache instead of regbuf.
10517 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10518 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10519
10520 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10521
10522 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10523 * aclocal.m4: Regenerate.
10524 * configure: Regenerate.
10525
10526 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10527 TCL_LD_SEARCH_FLAGS.
10528
10529 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10530
10531 * dwarf2cfi.c: Reindented.
10532
10533 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10534
10535 * interps.c (clear_interpreter_hooks): Convert function definition
10536 to ISO C.
10537
10538 2003-02-07 David Carlton <carlton@math.stanford.edu>
10539
10540 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10541
10542 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10543
10544 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10545 (struct type): ...to here.
10546 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10547 field.
10548 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10549 (replace_type): Set length on all type variants for a given type.
10550
10551 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10552
10553 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10554 <sys/stat.h>.
10555 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10556
10557 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10558
10559 * Makefile.in (symm-nat.o): Update dependencies.
10560 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10561 (lynx-nat.o, ia64-linux-nat.): Ditto.
10562 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10563 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10564 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10565
10566 * Makefile.in (inflow_h): Define.
10567 (procfs.o, inflow.o, procfs.o): Update dependencies.
10568 * inftarg.c (child_stop): Delete extern declaration of
10569 inferior_process_group. Include "inflow.h".
10570 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10571 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10572 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10573 (our_process_group, inferior_process_group): Extern declarations.
10574
10575 * procfs.c: Include "gdb_assert.h".
10576
10577 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10578 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10579 * jv-typeprint.c (java_type_print_base): Ditto.
10580 * typeprint.c (typedef_print): Eliminate STREQ.
10581 * cli/cli-script.c (define_command, define_command): Ditto.
10582 * main.c (captured_main): Ditto.
10583 * values.c (lookup_internalvar): Ditto.
10584 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10585 within `if' conditional.
10586 * linespec.c (decode_line_2): Ditto.
10587 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10588 (bfd_openw_with_cleanup): Ditto.
10589
10590 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10591
10592 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10593 legacy_extract_return_value and store_return_value to
10594 legacy_return_value.
10595
10596 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10597
10598 * win32-nat.c (get_relocated_section_addrs): New function. Find
10599 section load addresses for symbol handling in relocated DLLs.
10600 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10601
10602 2003-02-05 Fred Fish <fnf@intrinsity.com>
10603
10604 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10605 '=' and '!='.
10606 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10607 with '&' and '=='.
10608 (angel_RDI_info): Ditto.
10609 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10610 with '&' and '!='.
10611 (threads_continue_all_with_signals): Ditto.
10612
10613 2003-02-05 Jim Ingham <jingham@apple.com>
10614 Keith Seitz <keiths@redhat.com>
10615 Elena Zannoni <ezannoni@redhat.com>
10616 Andrew Cagney <ac131313@redhat.com>
10617
10618 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10619 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10620 (SUBDIR_MI_OBS): Add "mi-interp.o".
10621 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10622 (SFILES): Add "interps.c".
10623 (COMMON_OBS): Add "interps.o".
10624 (interps_h, mi_main_h): Define.
10625 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10626 (mi-main.o, main.o, event-top.o): Update dependencies.
10627 * cli/cli-interp.c: New file.
10628 * interps.h, interps.c: New files.
10629 * top.c: (gdb_init): Don't install the default interpreter, handed
10630 by captured_main.
10631 * main.c: Include "interps.h".
10632 (interpreter_p): Note that it should malloc'ed.
10633 (captured_command_loop): Call current_interp_command_loop.
10634 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10635 xfree and xstrdup when updating interpreter_p. Install the
10636 default interpreter. Add hack to stop mi1's copyright notice
10637 being encoded.
10638 * event-top.h (gdb_setup_readline): Declare.
10639 (gdb_disable_readline): Declare.
10640 * event-top.c: Include "interps.h".
10641 (display_gdb_prompt): Call current_interp_display_prompt_p.
10642 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10643 gdb_stdlog, and gdb_stdtarg.
10644 (_initialize_event_loop): Don't call gdb_setup_readline.
10645 * cli-out.c (cli_out_set_stream): New function.
10646 * cli-out.h (cli_out_set_stream): Declare.
10647
10648 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10649
10650 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10651 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10652 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10653 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10654 config/i386/i386v42mp.mt: Removed.
10655
10656 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10657
10658 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10659 GDB_OSABI_SOLARIS.
10660
10661 2003-02-05 Michael Chastain <mec@shout.net>
10662
10663 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10664 2.12.1 and earlier versions.
10665
10666 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10667
10668 Remove orphaned hosts, targets and files.
10669 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10670 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10671 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10672 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10673 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10674 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10675 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10676 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10677 * config/sparc/tm-sp64sim.h: Delete.
10678 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10679 hosts.
10680 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10681 mips*-dec-mach3* targets.
10682
10683 2003-02-04 Michael Chastain <mec@shout.net>
10684
10685 * NEWS: Fix typo: sepcifying -> specifying.
10686
10687 2003-02-04 Michael Chastain <mec@shout.net>
10688
10689 * dwarfread.c: Add documentation on the state of dwarf-1,
10690 looking towards obsoletion.
10691
10692 2003-02-03 Michael Chastain <mec@shout.net>
10693
10694 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10695 gdb/testsuite/gdb.c++/pr-1023.exp.
10696
10697 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10698
10699 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10700 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10701
10702 * utils.c (init_page_info): Delete reference to MPW in comments.
10703 * main.c (captured_main): Delete #ifdef MPW.
10704
10705 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10706
10707 * NEWS: Note that the m32r-*-elf* is obsolete.
10708 * monitor.c (monitor_expect): Obsolete reference to m32r.
10709 * configure.tgt: Mark m32r-*-elf* as obsolete.
10710 * MAINTAINERS: Mark m32k as obsolete.
10711 * m32r-rom.c: Obsolete file.
10712 * config/m32r/m32r.mt: Obsolete file.
10713 * config/m32r/tm-m32r.h: Obsolete file.
10714 * m32r-stub.c: Obsolete file.
10715 * m32r-tdep.c: Obsolete file.
10716
10717 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10718
10719 * NEWS: Mention that the z8k-zilog-none is obsolete.
10720 * MAINTAINERS: Mark z8k as obsolete.
10721 * configure.tgt: Obsolete the z8k-*-coff* target.
10722 * config/z8k/z8k.mt: Obsolete file.
10723 * config/z8k/tm-z8k.h: Obsolete file.
10724 * z8k-tdep.c: Obsolete file.
10725
10726 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10727
10728 * NEWS: Mention that the mn10200-elf is obsolete.
10729 * configure.tgt: Obsolete mn10200-*-* target.
10730 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10731 mention that the mn10200 is obsolete.
10732 * breakpoint.h: Ditto.
10733 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10734 * config/mn10200/mn10200.mt: Obsolete file.
10735 * config/mn10200/tm-mn10200.h: Obsolete file.
10736 * mn10200-tdep.c: Obsolete file.
10737
10738 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10739
10740 * MAINTAINERS: Mark h8500 as obsolete.
10741 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10742 * findvar.c (value_from_register): Ditto.
10743 * h8500-tdep.c: Mark file as obsolete.
10744 * config/h8500/h8500.mt: Ditto.
10745 * config/h8500/tm-h8500.h: Ditto.
10746 * NEWS: Mention that h8500 is obsolete.
10747
10748 2003-02-04 David Carlton <carlton@math.stanford.edu>
10749
10750 * objfiles.c (allocate_objfile): Always set name. Add comment at
10751 start of function.
10752 * jv-lang.c (get_dynamics_objfile): Add comment.
10753
10754 2003-02-04 David Carlton <carlton@math.stanford.edu>
10755
10756 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10757 * printcmd.c (build_address_symbolic): Replace uses of
10758 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10759 SYMBOL_NAME, and asm_demangle.
10760 Update copyright.
10761
10762 2003-02-04 David Carlton <carlton@math.stanford.edu>
10763
10764 * linespec.c (decode_compound): Extract code into
10765 lookup_prefix_sym.
10766 (lookup_prefix_sym): New function.
10767
10768 2003-02-04 David Carlton <carlton@math.stanford.edu>
10769
10770 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10771 FLOAT_COERCION_BADNESS.
10772 * gdbtypes.c (rank_one_type): Replace all uses of
10773 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10774
10775 2003-02-04 Jim Blandy <jimb@redhat.com>
10776
10777 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10778 section, let dwarf_macinfo_section point to it, not
10779 dwarf_loc_section.
10780
10781 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10782
10783 Pointed out by Anton Blanchard <anton@samba.org>.
10784 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10785 (ppc_linux_at_sigtramp_return_path): Use it.
10786
10787 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10788
10789 * defs.h (streq): Add prototype.
10790 * utils.c (streq): New function.
10791
10792 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10793 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10794 * mdebugread.c (new_symbol): Likewise.
10795 * stabsread.c (define_symbol): Likewise.
10796 * coffread.c (process_coff_symbol): Likewise.
10797 * dwarfread.c (new_symbol): Likewise.
10798
10799 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10800 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10801 here.
10802 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10803 SYMBOL_INIT_DEMANGLED_NAME.
10804 * objfiles.c: Include "hashtab.h".
10805 (allocate_objfile): Call htab_set_functions_ex for the
10806 demangled_names_hash.
10807 (free_objfile): Call htab_delete for the demangled_names_hash.
10808 * objfiles.h (struct htab): Add declaration.
10809 (struct objfile): Add demangled_names_hash.
10810 * symfile.c: Include "hashtab.h".
10811 (reread_symbols): Call htab_delete for the demangled_names_hash.
10812 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10813 SYMBOL_NAME in the bcache.
10814 * symtab.c: Include "hashtab.h". Update comments.
10815 (create_demangled_names_hash, symbol_set_names): New functions.
10816 (symbol_find_demangled_name): New function, broken out from
10817 symbol_init_demangled_names.
10818 (symbol_init_demangled_names): Use it.
10819 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10820 (SYMBOL_SET_NAMES): New macro.
10821 (symbol_set_names): Add prototype.
10822
10823 2003-02-03 Jim Blandy <jimb@redhat.com>
10824
10825 Use a single, consistent representation for an empty minimal
10826 symbol table in an objfile.
10827 * objfiles.c (terminate_minimal_symbol_table): New function.
10828 (allocate_objfile): Call it.
10829 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10830 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10831 non-NULL.
10832 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10833 objfile has minimal symbols, compare minimal_symbol_count to zero,
10834 instead of comparing msymbols with NULL.
10835 * objfiles.c (have_minimal_symbols): Same.
10836 * solib-sunos.c (solib_add_common_symbols): Call
10837 terminate_minimal_symbol_table.
10838 * symfile.c (reread_symbols): Same.
10839
10840 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10841
10842 * s390-tdep.c (s390_address_class_type_flags)
10843 (s390_address_class_type_flags_to_name)
10844 (s390_address_class_name_to_type_flags): New functions.
10845 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10846 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10847
10848 2003-02-03 Michael Snyder <msnyder@redhat.com>
10849
10850 * arm-tdep.c: Fix spell-o in comment.
10851
10852 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10853
10854 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10855 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10856 error messages to contain BFD filename.
10857
10858 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10859
10860 Fix PR gdb/742 gdb/743 gdb/877
10861 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10862 (do_mixed_source_and_assembly): Use
10863 make_cleanup_ui_out_tuple_begin_end and
10864 make_cleanup_ui_out_tuple_begin_end.
10865 (do_mixed_source_and_assembly): Ditto.
10866 * thread.c (do_captured_list_thread_ids): Ditto.
10867 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10868 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10869 ui_out_tuple_end): Delete prototypes.
10870 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10871 ui_out_list_end, ui_out_tuple_end): Delete.
10872
10873 From Kevin Buettner <kevinb@redhat.com>:
10874 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10875 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10876 (do_cleanup_table_end): New functions.
10877 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10878 Use cleanups to invoke_ui_out_tuple_end().
10879 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10880 * cli/cli-setshow.c (cmd_show_list): Use
10881 make_cleanup_ui_out_tuple_begin_end.
10882
10883 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10884
10885 * frame.c (frame_unwind_register): New function.
10886 (frame_unwind_unsigned_register): Use.
10887 (frame_unwind_signed_register): Use.
10888 (frame_read_register): New function.
10889 * frame.h (frame_unwind_register): Declare.
10890 (frame_read_register): Declare.
10891
10892 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10893 and frame_unwind_register instead of read_memory, write_register
10894 and deprecated_write_register_bytes.
10895
10896 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10897
10898 * frame.h: Note that namelen can be negative.
10899 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10900 NAME's length.
10901
10902 * NEWS: Mention that the d10v's `regs' command is deprecated.
10903 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10904 (d10v_print_registers_info): New function.
10905 (show_regs): Call d10v_print_registers_info.
10906 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10907
10908 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10909
10910 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10911 lost in the previous patch.
10912
10913 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10914
10915 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10916 * stack.c (print_frame_info_base): Output complete FRAME tuple
10917 for synthesized frames.
10918
10919 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10920
10921 * mips-nat.c (zerobuf): Delete.
10922 (fetch_inferior_registers): Alloc local zerobuf.
10923 (fetch_core_registers): Alloc local zerobuf.
10924 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10925 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10926 * thread-db.c (thread_db_store_registers): Ditto.
10927 * sh-tdep.c (sh_do_register): Ditto.
10928 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10929 * remote-sim.c (gdbsim_store_register): Ditto.
10930 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10931 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10932 * monitor.c (monitor_supply_register): Ditto.
10933 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10934 * mips-nat.c (fetch_inferior_registers): Ditto.
10935 * m68klinux-nat.c (fetch_register): Ditto.
10936 * lynx-nat.c (fetch_inferior_registers): Ditto.
10937 (fetch_inferior_registers): Ditto.
10938 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10939 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10940 (hpux_thread_store_registers): Ditto.
10941 * hppah-nat.c (fetch_register): Ditto.
10942 * hppab-nat.c (fetch_register): Ditto.
10943 * hppa-tdep.c (pa_register_look_aside): Ditto.
10944 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10945 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10946
10947 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10948
10949 * gdbarch.sh: Explictly specify all method levels. When a
10950 variable with an empty level, provide a non-multi-arch default.
10951 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10952 * gdbarch.h: Re-generate.
10953 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10954 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10955
10956 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10957
10958 * defs.h (host_pointer_to_address): Delete declaration.
10959 (address_to_host_pointer): Delete declaration.
10960 * utils.c (host_pointer_to_address): Delete function.
10961 (address_to_host_pointer): Delete function.
10962 * procfs.c (procfs_address_to_host_pointer): New function.
10963 * procfs.c (proc_set_watchpoint): Use.
10964 (procfs_can_use_hw_breakpoint): Update comments.
10965 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10966 (som_solib_add): Use.
10967 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10968 * hppa-tdep.c (unwind_command): Use.
10969
10970 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10971
10972 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10973 strlen d_name.
10974
10975 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10976 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10977 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10978 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10979 (define_symbol): Update.
10980 * symfile.c (generic_load): Remove references to nindy.
10981 * symtab.c: Remove references to nindy.
10982
10983 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10984
10985 * infcmd.c (print_float_info): Delete code conditional on
10986 FLOAT_INFO.
10987 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10988 * config/m68k/nm-apollo68b.h: Ditto.
10989 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10990 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10991 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10992
10993 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10994
10995 * config/i386/tm-i386os9k.h: Removed.
10996
10997 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10998 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10999 they're identical to i[3456]86-*-sysv* now.
11000 * config/i386/i386v32.mh: Removed.
11001 * config/i386/xm-i386v32.h: Removed.
11002 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11003
11004 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11005
11006 * config/i386/i386dgux.mh: Removed.
11007 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11008
11009 * configure.in: Fix typo.
11010 * configure: Regenerated.
11011
11012 2003-01-31 David Carlton <carlton@math.stanford.edu>
11013
11014 * dwarf2read.c (dwarf2_locate_sections): Set
11015 dwarf_ranges_section.
11016
11017 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11018
11019 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11020 * utils.c: Update comments documenting legitimate uses of PTR.
11021
11022 * utils.c: Re-indent.
11023
11024 * config/djgpp/fnchange.lst: Delete nindy files.
11025 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11026 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11027 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11028 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11029 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11030 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11031 * Makefile.in (init.c): Remove nindy references.
11032 (saber_gdb): Delete rule.
11033 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11034 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11035 and a68v-nat.c.
11036 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11037 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11038 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11039 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11040 nindy-share/stop.h.
11041 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11042 * saber.suppress: Delete file.
11043
11044 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11045
11046 * dbxread.c (stabs_data): New static variable.
11047 (fill_symbuf): Support an in-memory buffer for stabs data.
11048 (stabs_seek): New function.
11049 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11050 (read_ofile_symtab): Use stabs_seek.
11051 (elfstab_build_psymtabs): Take an asection* instead of
11052 an offset and size. Relocate the stabs data if necessary.
11053 Save the section* for dbx_psymtab_to_symtab.
11054 * dwarf2read.c: Add section variables for each debug section.
11055 (dwarf2_locate_sections): Fill them in.
11056 (dwarf2_read_section): Take an asection* argument.
11057 Relocate the section contents if necessary.
11058 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11059 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11060 it to dwarf2_read_section.
11061 (dwarf2_build_frame_info): Update callers.
11062 * elfread.c (elf_symfile_read): Update call to
11063 elfstab_build_psymtabs.
11064 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11065 (DBX_STAB_SECTION): New macro.
11066 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11067 * symfile.c (symfile_dummy_outputs): New function.
11068 (symfile_relocate_debug_section): New function.
11069 * symfile.h (symfile_relocate_debug_section): Add prototype.
11070
11071 2003-01-31 Richard Henderson <rth@redhat.com>
11072
11073 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11074 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11075 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11076 * alpha-tdep.c (alpha_register_name): Add "unique".
11077 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11078 (ALPHA_UNIQUE_REGNUM): New.
11079 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11080
11081 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11082
11083 * README: Remove reference to Ericsson 1800 monitor.
11084 * Makefile.in (remote-es.o): Delete rule.
11085 (ALLDEPFILES): Delete remote-es.c.
11086 * remote-es.c: Delete file.
11087 * config/m68k/es1800.mt: Delete file.
11088 * config/djgpp/fnchange.lst: Update.
11089 * configure.tgt: Delete m68*-ericsson-* target.
11090
11091 2003-01-31 Adam Fedor <fedor@gnu.org>
11092
11093 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11094 Remove duplicate/shadowing variable of same name.
11095
11096 2003-01-30 Jim Blandy <jimb@redhat.com>
11097
11098 * symfile.c (find_separate_debug_file): Assert that the objfile's
11099 directory name we compute ends with a slash, and then assume that
11100 that's so everywhere we use it.
11101
11102 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11103
11104 * valops.c (value_assign): Flush frame cache after stores to memory
11105 also.
11106
11107 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11108
11109 * Makefile.in (mon960-rom.o): Delete rule.
11110 * mon960-rom.c: Delete file.
11111
11112 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11113
11114 * d10v-tdep.c: Include "frame-unwind.h".
11115 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11116 list.
11117 (next_addr, uses_frame): Delete.
11118 (struct d10v_unwind_cache): Define.
11119 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11120 Use info instead of next_addr and uses_frame globals.
11121 (d10v_frame_init_saved_regs): Delete function.
11122 (d10v_init_extra_frame_info): Delete function.
11123 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11124 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11125 init_frame_pc or frame_saved_pc.
11126 (d10v_pop_frame): Delete function.
11127 (do_d10v_pop_frame): Delete function.
11128 (d10v_frame_chain): Delete function.
11129 (d10v_frame_chain_valid): Delete function.
11130 (d10v_frame_pc_unwind): New function.
11131 (d10v_frame_id_unwind): New function.
11132 (saved_regs_unwinder): New function.
11133 (d10v_frame_register_unwind): New function.
11134 (d10v_frame_pop): New function.
11135 (d10v_frame_unwind): New variable.
11136 (d10v_frame_p): New function.
11137 (d10v_frame_saved_pc): Delete function.
11138 * Makefile.in (d10v-tdep.o): Update dependencies.
11139
11140 2003-01-30 J. Brobecker <brobecker@gnat.com>
11141
11142 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11143 causing some regressions due to a change in the default value
11144 for this macro.
11145
11146 2003-01-29 Richard Henderson <rth@redhat.com>
11147 Elena Zannoni <ezannoni@redhat.com>
11148 Daniel Jacobowitz <drow@mvista.com>
11149
11150 Fix PR gdb/961.
11151 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11152 variables.
11153 (RANGES_SECTION): New.
11154 (dwarf_ranges_buffer): New variable.
11155 (struct comp_unit_head): Add member "die".
11156 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11157 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11158 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11159 (dwarf2_locate_sections): Likewise.
11160 (dwarf2_build_psymtabs): Read .debug_ranges.
11161 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11162 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11163 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11164 Look for DW_AT_ranges and return the bounding box.
11165
11166 2003-01-29 Brian Ford <ford@vss.fsi.com>
11167
11168 * win32-nat.c (cygwin_pid): Removed as unused.
11169 (child_attach): Try fall back to Cygwin pid.
11170
11171 2003-01-29 Jim Blandy <jimb@redhat.com>
11172
11173 * objfiles.h (struct objfile): Doc fix.
11174
11175 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11176
11177 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11178 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11179 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11180 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11181 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11182 (FRAME_SAVED_PC): Change to a function with predicate.
11183 * gdbarch.h, gdbarch.c: Re-generate.
11184
11185 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11186
11187 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11188
11189 * complaints.c (complain): Delete function.
11190 * complaints.h (struct deprecated_complaint): Delete definition.
11191 (complain): Delete declaration.
11192
11193 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11194
11195 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11196 dummy frames.
11197
11198 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11199
11200 * sentinel-frame.h, sentinel-frame.c: New files.
11201 * Makefile.in (frame.o): Update dependencies.
11202 (SFILES): Add sentinel-frame.c.
11203 (sentinel_frame_h): Define.
11204 (COMMON_OBS): Add sentinel-frame.o.
11205 (sentinel-frame.o): Specify dependencies.
11206 * frame.c: Include "sentinel-frame.h".
11207 (frame_register_unwind): Rewrite assuming that there is always a a
11208 ->next frame.
11209 (frame_register, generic_unwind_get_saved_register): Ditto.
11210 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11211 (create_sentinel_frame, unwind_to_current_frame): New functions.
11212 (get_current_frame): Rewrite using create_sentinel_frame and
11213 unwind_to_current_frame. When possible, always create a frame.
11214 (create_new_frame): Set next to the sentinel frame.
11215 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11216 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11217 ID cache when necessary.
11218 (frame_saved_regs_id_unwind): Use frame_relative_level.
11219 (deprecated_generic_get_saved_register): Use frame_relative_level,
11220 get_frame_saved_regs, get_frame_pc, get_frame_base and
11221 get_next_frame.
11222 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11223 frame_register.
11224
11225 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11226
11227 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11228
11229 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11230
11231 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11232 (maintenance_set_profile_cmd): Use error () instead of warning ().
11233
11234 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11235
11236 * configure.in: Check that -pg works if using --enable-profiling.
11237 Check for monstartup and _mcleanup regardless of --enable-profiling.
11238 * maint.c: Check for monstartup and _mcleanup before using them.
11239 * config.in: Regenerated.
11240 * configure: Regenerated.
11241
11242 2003-01-24 Nick Clifton <nickc@redhat.com>
11243
11244 * Add sh2e support:
11245
11246 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11247
11248 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11249 (sh2e_show_regs): New.
11250 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11251 * config/sh/tm-sh.h: Added sh2e to comments.
11252
11253 2003-01-23 Jim Blandy <jimb@redhat.com>
11254
11255 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11256 symbols found)" message here; we haven't checked for a separate
11257 debug info file yet, so we don't know yet.
11258 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11259 we've looked everywhere. Also, there's no need to print a special
11260 message when we're loading the separate debug info file: the one
11261 symbol_file_add prints is fine.
11262
11263 2003-01-23 Alexander Larsson <alexl@redhat.com>
11264 Jim Blandy <jimb@redhat.com>
11265
11266 Add support for executables whose debug info has been separated
11267 out into a separate file, leaving only a link behind.
11268 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11269 and separate_debug_objfile_backlink.
11270 (put_objfile_before): New declaration.
11271 * symfile.c: #include "filenames.h".
11272 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11273 debug info in a separate file, read that, too. Save the addrs
11274 argument, so we can use it again to read the separated debug info;
11275 syms_from_objfile modifies the table we pass it.
11276 (reread_symbols): After re-reading an objfile, call
11277 reread_separate_symbols to refresh its separate debug info
11278 objfile, if it has one.
11279 (reread_separate_symbols, find_separate_debug_file,
11280 get_debug_link_info, separate_debug_file_exists): New functions.
11281 (debug_file_directory): New global var.
11282 (_initialize_symfile): Initialize debug_file_directory, and
11283 provide the new `set debug-file-directory' command to let the user
11284 change it.
11285 * objfiles.c (free_objfile): If this objfile has its debug info in
11286 a separate objfile, free that one too. If this is itself a
11287 separate debug info objfile, clear our parent's backlink.
11288 (put_objfile_before): New function.
11289 * utils.c (gnu_debuglink_crc32): New function.
11290 * defs.h (gnu_debuglink_crc32): New declaration.
11291 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11292 * configure.in: Handle --with-separate-debug-dir config option.
11293 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11294 * acconfig.h (DEBUGDIR): New macro.
11295 * configure, aclocal.m4, config.in: Regenerated.
11296
11297 2003-01-22 Jim Blandy <jimb@redhat.com>
11298
11299 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11300 like the old symbol_file_add, but taking new arguments: you can
11301 now pass in either a `struct section_addr_info' list to say where
11302 each section is loaded, or a `struct section_offsets' table. Pass
11303 these new arguments through to syms_from_objfile as appropriate.
11304 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11305 with the appropriate quiescent values for the new arguments.
11306
11307 * symfile.c: #include "gdb_assert.h".
11308 (syms_from_objfile): Add the ability to pass in a section offset
11309 table directly, as an alternative to the section_addr_info table.
11310 Document arguments better.
11311 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11312 * symfile.h (syms_from_objfile): Update declaration.
11313 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11314 syms_from_objfile.
11315 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11316
11317 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11318
11319 Original patch by Tom Tromey <tromey@cygnus.com> and
11320 Jason Molenda <jmolenda@apple.com>.
11321 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11322 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11323 * NEWS: Mention profiling.
11324 * configure.in (--enable-gdbtk): Fix typo.
11325 (--enable-profiling): New. Set PROFILE_CFLAGS.
11326 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11327 Fill in function.
11328 (profiling_state): New variable.
11329 (mcleanup_wrapper): New function.
11330 (_initialize_maint): Remove NOTYET, fix call to
11331 add_setshow_boolean_cmd for "maint set profile".
11332 * configure: Regenerated.
11333
11334 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11335
11336 * Makefile.in (install-gdbtk): Install PNG images too.
11337
11338 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11339
11340 * exec.c (text_start): Delete global variable.
11341 (exec_file_attach): Make text_start local to the function.
11342 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11343 * valops.c (hand_function_call): Delete code that handles
11344 BEFORE_TEXT_END and AFTER_TEXT_END.
11345 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11346 of CALL_DUMMY_LOCATION.
11347 * gdbarch.c: Regenerate.
11348 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11349 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11350 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11351 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11352 (text_end): Delete extern declaration.
11353
11354 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11355
11356 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11357 * blockframe.c (backtrace_below_main): Move to "frame.c".
11358 (frame_chain_valid): Delete check for backtrace_below_main.
11359 (_initialize_blockframe): Delete initialization, move ``set
11360 backtrace-below-main'' command to "frame.c".
11361 (do_flush_frames_sfunc): Delete function.
11362 * frame.c: Include "command.h" and "gdbcmd.h".
11363 (frame_type_from_pc): New function.
11364 (create_new_frame): Use frame_type_from_pc.
11365 (legacy_get_prev_frame): New function.
11366 (get_prev_frame): Rewrite. When an old style frame, call
11367 legacy_get_prev_frame. Otherwize, unwind the PC first.
11368 (_initialize_frame): Add ``set backtrace-below-main'' command.
11369 * Makefile.in (frame.o): Update dependencies.
11370
11371 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11372
11373 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11374 DEPRECATED_REGISTERS_INFO.
11375
11376 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11377
11378 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11379 Maintainers'. Update `Various Maintainers'.
11380
11381 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11382
11383 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11384 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11385 Suppress actual parameters when `-'.
11386 * gdbarch.h, gdbarch.c: Regenerate.
11387
11388 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11389
11390 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11391 code handling dummy frames.
11392
11393 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11394
11395 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11396 (struct frame_unwind): Add field pop.
11397 * frame.h (frame_pop): Declare.
11398 * frame.c (frame_saved_regs_pop): New function.
11399 (trad_frame_unwinder): Add frame_saved_regs_pop.
11400 (frame_pop): New function.
11401 * dummy-frame.c (dummy_frame_pop): New function.
11402 (discard_innermost_dummy): New function.
11403 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11404 (dummy_frame_unwind): Add dummy_frame_pop.
11405 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11406 * valops.c (hand_function_call): Ditto.
11407 * stack.c (return_command): Ditto.
11408
11409 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11410
11411 * cris-tdep.c: Fix function declaration indentation.
11412 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11413 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11414 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11415 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11416 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11417 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11418
11419 2003-01-18 Michael Chastain <mec@shout.net>
11420
11421 * README (Unpacking and Installation -- quick overview):
11422 Warn against ".../gdb-5.3/gdb/configure".
11423
11424 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11425
11426 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11427 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11428 (struct frame_unwind): Declare opaque.
11429 (dummy_frame_p): Declare function.
11430 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11431 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11432 * dummy-frame.c: Include "frame-unwind.h".
11433 (dummy_frame_p): New function.
11434 (dummy_frame_unwind): New variable.
11435 * frame.c: Include "frame-unwind.h".
11436 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11437 to use the new unwind field.
11438 (set_unwind_by_pc): Delete function.
11439 (create_new_frame, get_prev_frame): Set unwind field using
11440 frame_unwind_find_by_pc.
11441 (trad_frame_unwind, trad_frame_unwinder): New variables.
11442 * frame.h (trad_frame_unwind): Declare variable.
11443 (frame_id_unwind_ftype): Delete declaration.
11444 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11445 (struct frame_unwind): Declare opaque.
11446 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11447 register_unwind with a single unwind pointer.
11448 * frame-unwind.h, frame-unwind.c: New files.
11449 * Makefile.in (SFILES): Add frame-unwind.c.
11450 (frame_unwind_h): Define.
11451 (COMMON_OBS): Add frame-unwind.o.
11452 (frame-unwind.o): Specify dependencies.
11453 (frame.o, dummy-frame.o): Update dependencies.
11454
11455 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11456
11457 * ada-valprint.c: Eliminate PTR.
11458 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11459 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11460 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11461 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11462 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11463 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11464 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11465
11466 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11467
11468 * main.c (captured_main): Don't use PTR.
11469 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11470 * gdbtypes.c (lookup_primitive_typename): Ditto.
11471 (lookup_struct_elt_type): Ditto.
11472 * f-valprint.c (info_common_command): Ditto.
11473 (list_all_visible_commons): Ditto.
11474 * jv-typeprint.c (java_type_print_base): Ditto.
11475
11476 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11477 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11478 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11479 i386-interix-nat.c and i386-interix-tdep.c. Rename
11480 m68klinux-nat.c and m68klinux-tdep.c. Rename
11481 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11482 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11483 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11484 * main.c (captured_main): Use xfree, not free.
11485
11486 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11487
11488 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11489 ID back using a parameter.
11490 * frame.c (frame_id_unwind): Update call.
11491 (frame_saved_regs_id_unwind): Update.
11492 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11493 * dummy-frame.h (struct frame_id): Add opaque declaration.
11494 (dummy_frame_id_unwind): Update declaration.
11495
11496 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11497
11498 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11499
11500 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11501
11502 * MAINTAINERS (Stephen P. Smith): Updated email address.
11503
11504 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11505
11506 Fix PR gdb/898
11507 * breakpoint.c (until_break_command): Add new argument. Use it to
11508 decide whether to stop only at the current frame or not.
11509 * breakpoint.h (until_break_command): Update prototype.
11510 * infcmd.c (until_command): Add new argument to until_break_command
11511 call.
11512 (advance_command): New function.
11513 (_initialize_infcmd): Update help string for 'until' command.
11514 Add new 'advance' command.
11515
11516 2003-01-14 David Carlton <carlton@math.stanford.edu>
11517
11518 * linespec.c (decode_line_1): Normalize comments.
11519 (set_flags): Ditto.
11520 (locate_first_half): Ditto.
11521 (decode_compound): Ditto.
11522 (symtab_from_filename): Ditto.
11523 (decode_all_digits): Ditto.
11524 (decode_dollar): Ditto.
11525 (find_methods): Ditto.
11526 (find_toplevel_char): Ditto.
11527
11528 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11529
11530 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11531 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11532 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11533 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11534 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11535 * language.c, language.h, m32r-tdep.c: Update copyright.
11536 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11537 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11538 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11539 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11540 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11541 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11542
11543 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11544
11545 * stabsread.h (process_later, resolve_cfront_continuation):
11546 Obsolete.
11547 Update copyright years.
11548 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11549 Update copyright year.
11550 * dbxread.c(struct cont_elem): Obsolete.
11551 (process_later, process_now): Obsolete functions.
11552 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11553 Update copyright year.
11554 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11555 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11556 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11557 (parse_partial_symbols): Obsolete cfront support.
11558 * stabsread.c
11559 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11560 macros.
11561 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11562 read_cfront_baseclasses, read_cfront_member_functions,
11563 resolve_cfront_continuation,read_cfront_static_fields,
11564 copy_cfront_struct_fields): Obsolete functions.
11565 (define_symbol, read_one_struct_field): Obsolete cfront support.
11566 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11567 Update Copyright year.
11568
11569 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11570
11571 * stack.c (print_frame_info, print_stack_frame_base_stub,
11572 print_stack_frame_base, show_and_print_stack_frame_stub,
11573 show_and_print_stack_frame, print_only_stack_frame_stub,
11574 print_only_stack_frame): Delete functions.
11575 (print_stack_frame_stub): Call print_frame_info instead of
11576 print_frame_info_base.
11577 (print_frame_info_base): Rename to print_frame_info.
11578 (backtrace_command_1): Call print_frame_info, instead of
11579 print_frame_info_base.
11580 (current_frame_command): Call print_stack_frame, instead of
11581 print_only_stack_frame.
11582 (frame_command): Call print_stack_frame, instead of
11583 show_and_print_stack_frame.
11584 (up_command): Ditto.
11585 (down_command): Ditto.
11586 * frame.h (print_only_stack_frame): Delete prototype.
11587 * infrun.c (normal_stop): Call print_stack_frame, instead of
11588 show_and_print_stack_frame.
11589 * thread.c (info_threads_command): Call print_stack_frame, instead
11590 of print_only_stack_frame.
11591
11592 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11593
11594 * README (Graphical interface to GDB): Update URL. Point at
11595 gdb/links/.
11596
11597 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11598 version match.
11599
11600 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11601
11602 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11603 lines.
11604
11605 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11606
11607 * thread-db.c (attach_thread): Prototype.
11608 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11609 thread information (ti), and valid flags (th_valid, ti_valid).
11610 (attach_thread): Move target_pid_to_str call to after the thread
11611 is added to GDB's list. Initialize the cache.
11612 (thread_get_info_callback, thread_db_map_id2thr)
11613 (thread_db_get_info): New functions.
11614 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11615 (thread_db_store_registers, thread_db_thread_alive)
11616 (thread_db_get_thread_local_address): Use them.
11617 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11618 of calling error() for threads in unknown state.
11619
11620 (clear_lwpid_callback): New function.
11621 (thread_db_resume): Use it to clear the cache.
11622
11623 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11624
11625 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11626 (resume_callback): Remove dead code.
11627
11628 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11629
11630 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11631 predicate.
11632 * gdbarch.h, gdbarch.c: Regenerate.
11633 * stack.c (frame_info): Only initialize the saved registers when
11634 FRAME_INIT_SAVED_REGS_P.
11635 * frame.c (frame_saved_regs_register_unwind): Assert
11636 FRAME_INIT_SAVED_REGS_P.
11637 (deprecated_generic_get_saved_register): Ditto.
11638
11639 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11640
11641 * source.c (openp): Squelch warning about "filename".
11642
11643 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11644
11645 * source.c (openp): If the file does not exist don't necessarily
11646 search the path.
11647
11648 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11649
11650 Fix PR gdb/872.
11651 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11652 (integer_types_same_name_p): New function.
11653 (rank_one_type): Use it.
11654 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11655
11656 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11657
11658 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11659 variables.
11660 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11661 * configure.in: Add --with-sysroot.
11662 * configure: Regenerated.
11663 * main.c (gdb_sysroot): New variable.
11664 (captured_main): Initialize gdb_sysroot.
11665 * defs.h (gdb_sysroot): New extern declaration.
11666 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11667
11668 2003-01-12 Michael Chastain <mec@shout.net>
11669
11670 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11671
11672 2003-01-12 Michael Chastain <mec@shout.net>
11673
11674 * top.c (print_gdb_version): Bump copyright year to 2003.
11675
11676 2003-01-12 David Carlton <carlton@bactrian.org>
11677
11678 * linespec.c (symtab_from_filename): Rename variable 's' to
11679 'file_symtab'.
11680
11681 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11682
11683 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11684 dummy frame.
11685 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11686
11687 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11688
11689 * d10v-tdep.c: Include "gdb_assert.h".
11690 (d10v_store_return_value): Rewrite to match current interface.
11691 (d10v_extract_struct_value_address): Ditto.
11692 (d10v_extract_return_value): Ditto.
11693 (d10v_gdbarch_init): Set store_restore_value,
11694 extract_struct_value_address and extract_return_value.
11695
11696 2003-01-12 J. Brobecker <brobecker@gnat.com>
11697
11698 * hpread.c (set_namestring): New procedure replacing the
11699 SET_NAMESTRING macro.
11700 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11701 by calls to set_namestring.
11702
11703 2003-01-11 J. Brobecker <brobecker@gnat.com>
11704
11705 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11706 a compilation warning.
11707 (hpread_process_one_debug_symbol): Likewise.
11708
11709 2003-01-10 David Carlton <carlton@math.stanford.edu>
11710
11711 * linespec.c (decode_line_1): Rename variable 's' to
11712 'file_symtab'.
11713 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11714 (decode_dollar): Ditto.
11715 (decode_variable): Ditto.
11716 (symbol_found): Ditto.
11717
11718 2003-01-09 Michael Chastain <mec@shout.net>
11719
11720 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11721
11722 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11723
11724 * win32-nat.c (set_process_privilege): New function.
11725 (child_attach): Call set_process_privilege() to enable the
11726 SE_DEBUG_NAME user privilege if available in process token.
11727
11728 2003-01-10 J. Brobecker <brobecker@gnat.com>
11729
11730 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11731 compilation error in the previous revision.
11732
11733 2003-01-09 David Carlton <carlton@math.stanford.edu>
11734
11735 * linespec.c: Update copyright.
11736
11737 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11738
11739 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11740 than inferior_ptid.
11741 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11742
11743 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11744
11745 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11746 Update comments.
11747 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11748 (frame_saved_regs_zalloc): Update.
11749 (frame_saved_regs_register_unwind): Update.
11750 (create_new_frame): Update.
11751 (get_prev_frame): Update.
11752 (frame_extra_info_zalloc): Update.
11753 (deprecated_get_frame_saved_regs): Update.
11754 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11755 * cris-tdep.c: Update comment.
11756
11757 * somsolib.h: Fix function indentation.
11758 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11759 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11760 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11761 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11762 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11763
11764 * infrun.c (follow_fork): Use ISO C definition.
11765 * expprint.c (print_subexp): Use xfree instead of free.
11766 * charset.c: Include "gdb_string.h" instead of <string.h>.
11767 (register_iconv_charsets): Use ISO C definition.
11768 (host_charset, target_charset): Ditto.
11769 * Makefile.in (charset.o): Update dependencies.
11770 (mi-cmd-env.o): Update dependencies.
11771
11772 2003-01-08 Andrew Cagney <cagney@redhat.com>
11773
11774 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11775 get_frame_base.
11776
11777 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11778
11779 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11780 build directories. Save edited gdb output in Mbuild.log. If a
11781 build fails, remove any final GDB executable.
11782
11783 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11784
11785 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11786 replacing hex constants with function names and stripping leading
11787 file name directory prefixes.
11788
11789 2003-01-08 Andrew Cagney <cagney@redhat.com>
11790
11791 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11792 get_frame_base.
11793
11794 2003-01-08 David Carlton <carlton@math.stanford.edu>
11795
11796 * linespec.c (decode_line_1): Move code into decode_variable.
11797 (decode_variable): New function.
11798
11799 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11800
11801 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11802
11803 2003-01-08 Andrew Cagney <cagney@redhat.com>
11804
11805 * cris-tdep.c (cris_frame_init_saved_regs): Use
11806 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11807 saved_regs buffer.
11808 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11809 (sh64_nofp_frame_init_saved_regs): Ditto.
11810 (sh_fp_frame_init_saved_regs): Ditto.
11811 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11812 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11813 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11814 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11815
11816 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11817
11818 * minsyms.c (lookup_minimal_symbol): Update comment.
11819 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11820 (lookup_minimal_symbol_solib_trampoline): Likewise.
11821
11822 2003-01-08 Andrew Cagney <cagney@redhat.com>
11823
11824 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11825 frame_relative_level.
11826
11827 * alpha-tdep.c: Use get_frame_extra_info.
11828 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11829 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11830 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11831 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11832
11833 * alpha-tdep.c: Use get_next_frame.
11834 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11835 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11836 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11837 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11838 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11839 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11840 * xstormy16-tdep.c: Ditto.
11841
11842 2003-01-07 Andrew Cagney <cagney@redhat.com>
11843
11844 * alpha-tdep.c: Use get_frame_base.
11845 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11846 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11847 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11848 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11849 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11850 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11851 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11852 * config/sparc/tm-sparc.h: Ditto.
11853
11854 2003-01-07 Andrew Cagney <cagney@redhat.com>
11855
11856 * frame.c (deprecated_get_frame_context): New function.
11857 (deprecated_set_frame_context): New function.
11858 * frame.h (deprecated_get_frame_context): Declare.
11859 (deprecated_set_frame_context): Declare.
11860 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11861 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11862
11863 2003-01-07 Andrew Cagney <cagney@redhat.com>
11864
11865 * frame.c (deprecated_set_frame_next_hack): New function.
11866 (deprecated_set_frame_prev_hack): New function.
11867 * frame.h (deprecated_set_frame_next_hack): Declare.
11868 (deprecated_set_frame_prev_hack): Declare.
11869 * mcore-tdep.c (analyze_dummy_frame): Use
11870 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11871 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11872
11873 2003-01-07 David Carlton <carlton@math.stanford.edu>
11874
11875 * linespec.c (decode_line_1): Move code into decode_dollar.
11876 (decode_dollar): New function.
11877
11878 2003-01-07 Andrew Cagney <cagney@redhat.com>
11879
11880 * arm-tdep.c (arm_init_extra_frame_info): Use
11881 deprecated_update_frame_base_hack.
11882 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11883 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11884 (fix_frame_pointer): Ditto.
11885 (mn10300_analyze_prologue): Ditto.
11886
11887 2003-01-07 Andrew Cagney <cagney@redhat.com>
11888
11889 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11890 extra_info using frame_extra_info_zalloc.
11891 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11892 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11893 (sh64_init_extra_frame_info): Ditto.
11894 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11895 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11896 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11897 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11898 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11899 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11900 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11901 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11902 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11903 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11904 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11905 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11906
11907 * mn10300-tdep.c (analyze_dummy_frame): Use
11908 deprecated_set_frame_extra_info_hack.
11909 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11910
11911 2003-01-07 J. Brobecker <brobecker@gnat.com>
11912
11913 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11914 class is not scText. These do not define "real" procedures.
11915 (parse_partial_symbols): Likewise.
11916
11917 2003-01-06 Michael Snyder <msnyder@redhat.com>
11918
11919 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11920
11921 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11922
11923 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11924 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11925 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11926 deprecated_frame_xmalloc_with_cleanup.
11927 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11928 deprecated_frame_xmalloc.
11929 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11930 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11931
11932 2003-01-06 Andrew Cagney <cagney@redhat.com>
11933
11934 * x86-64-linux-tdep.c: Include "osabi.h".
11935 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11936
11937 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11938
11939 2003-01-06 Andrew Cagney <cagney@redhat.com>
11940
11941 * MAINTAINERS (Target Instruction Set Architectures): Update
11942 arm-elf. Can be built with -Werror, has been multiarched.
11943
11944 * value.h (unpack_long): Make buffer parameter constant.
11945 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11946 * scm-lang.h (scm_parse): Ditto.
11947 * defs.h (extract_typed_address, extract_address): Ditto.
11948 (extract_long_unsigned_integer): Ditto.
11949 * inferior.h (unsigned_pointer_to_address): Ditto.
11950 (signed_pointer_to_address): Ditto.
11951 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11952 * gdbarch.h, gdbarch.c: Regenerate.
11953 * findvar.c (extract_long_unsigned_integer): Update.
11954 (extract_address): Update.
11955 (extract_typed_address): Update.
11956 (unsigned_pointer_to_address): Update.
11957 * values.c (unpack_long): Update.
11958 (unpack_double): Update.
11959 (unpack_pointer): Update.
11960 (unpack_field_as_long): Update.
11961 * d10v-tdep.c (d10v_pointer_to_address): Update.
11962 * avr-tdep.c (avr_pointer_to_address): Update.
11963 * scm-lang.c (scm_unpack): Update.
11964 * findvar.c (signed_pointer_to_address): Update.
11965
11966 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11967
11968 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11969 since it is in i386-tdep.c.
11970
11971 2003-01-06 J. Brobecker <brobecker@gnat.com>
11972
11973 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11974 failure introduced in the previous change.
11975
11976 2003-01-05 Michael Chastain <mec@shout.net>
11977
11978 * README: Remove references to deleted remote-*.c files:
11979 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11980 remote-nrom.c, remote-os9k.c, remote-udi.c.
11981
11982 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11983
11984 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11985 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11986 i386_get_longjmp_target.
11987
11988 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11989
11990 * arm-tdep.c (prologue_cache): Change to a pointer.
11991 (_initialize_arm_tdep): Allocate prologue_cache.
11992 (check_prologue_cache): Update.
11993 (save_prologue_cache): Update.
11994 (arm_gdbarch_init): Update.
11995
11996 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11997
11998 * stabsread.c (update_method_name_from_physname): Call complaint()
11999 instead of error.
12000
12001 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12002
12003 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12004 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12005 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12006
12007 * blockframe.c: Include "gdbcmd.h" and "command.h".
12008 (backtrace_below_main): New variable.
12009 (file_frame_chain_valid, func_frame_chain_valid)
12010 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12011 (generic_func_frame_chain_valid): Remove functions.
12012 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12013 (_initialize_blockframe): New function.
12014 * Makefile.in (blockframe.o): Update dependencies.
12015 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12016 comment. Call frame_chain_valid ().
12017 * frame.h: Remove old prototypes. Add prototype for
12018 frame_chain_valid and update comments to match.
12019 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12020 Remove old comment.
12021 * gdbarch.h: Regenerated.
12022 * gdbarch.c: Regenerated.
12023
12024 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12025 set_gdbarch_frame_chain_valid.
12026 * avr-tdep.c (avr_gdbarch_init): Likewise.
12027 * cris-tdep.c (cris_gdbarch_init): Likewise.
12028 * frv-tdep.c (frv_gdbarch_init): Likewise.
12029 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12030 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12031 (i386_nw_init_abi): Likewise.
12032 (i386_gdbarch_init): Likewise.
12033 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12034 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12035 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12036 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12037 * mips-tdep.c (mips_gdbarch_init): Likewise.
12038 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12039 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12040 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12041 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12042 * s390-tdep.c (s390_gdbarch_init): Likewise.
12043 * sh-tdep.c (sh_gdbarch_init): Likewise.
12044 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12045 * v850-tdep.c (v850_gdbarch_init): Likewise.
12046 * vax-tdep.c (vax_gdbarch_init): Likewise.
12047 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12048
12049 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12050 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12051 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12052 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12053 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12054 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12055 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12056 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12057
12058 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12059
12060 * Makefile.in (acconfig_h): Remove incorrect macro.
12061 (config_h): Define.
12062 (osabi.o): Update dependencies.
12063 * configure.tgt: Set gdb_osabi based on target triplet.
12064 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12065 * configure: Regenerated.
12066 * config.in: Regenerated.
12067 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12068 (GDB_OSABI_DEFAULT): Define if not already defined.
12069 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12070 (set_osabi_string): New variables.
12071 (gdbarch_register_osabi): Add new OS ABI to
12072 gdb_osabi_available_names.
12073 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12074 (set_osabi, show_osabi): New functions.
12075 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12076
12077 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12078
12079 * arch-utils.c (gdbarch_info_init): Set osabi to
12080 GDB_OSABI_UNINITIALIZED.
12081 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12082 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12083 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12084 * gdbarch.c: Regenerated.
12085 * gdbarch.h: Regenerated.
12086 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12087 there's no BFD.
12088 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12089 * osabi.h (enum gdb_osabi): Move to defs.h.
12090 (gdbarch_init_osabi): Update prototype.
12091 * defs.h (enum gdb_osabi): Moved here.
12092 * Makefile.in: Update dependencies.
12093
12094 * alpha-tdep.h: Don't include "osabi.h".
12095 (struct gdbarch_tdep): Remove osabi member.
12096 * alpha-tdep.c: Include "osabi.h".
12097 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12098 iterate over arches. Update call to gdbarch_init_osabi.
12099 (alpha_dump_tdep): Don't dump osabi.
12100 * alpha-linux-tdep.c: Include "osabi.h".
12101 * alpha-osf1-tdep.c: Include "osabi.h".
12102 * alphafbsd-tdep.c: Include "osabi.h".
12103 * alphanbsd-tdep.c: Include "osabi.h".
12104
12105 * arm-tdep.h: Don't include "osabi.h".
12106 (struct gdbarch_tdep): Remove osabi member.
12107 * arm-tdep.c: Include "osabi.h".
12108 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12109 iterate over arches. Update call to gdbarch_init_osabi.
12110 (arm_dump_tdep): Don't dump osabi.
12111 * arm-linux-tdep.c: Include "osabi.h".
12112 * armnbsd-tdep.c: Include "osabi.h".
12113
12114 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12115 Update call to gdbarch_init_osabi.
12116
12117 * i386-tdep.h: Don't include "osabi.h".
12118 (struct gdbarch_tdep): Remove osabi member.
12119 * i386-tdep.c: Include "osabi.h".
12120 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12121 iterate over arches. Update call to gdbarch_init_osabi.
12122 (i386_dump_tdep): Don't dump osabi.
12123 * i386-linux-tdep.c: Include "osabi.h".
12124 * i386-sol2-tdep.c: Include "osabi.h".
12125 * i386bsd-tdep.c: Include "osabi.h".
12126 * i386gnu-tdep.c: Include "osabi.h".
12127 * i386ly-tdep.c: Include "osabi.h".
12128 * i386nbsd-tdep.c: Include "osabi.h".
12129 * i386obsd-tdep.c: Include "osabi.h".
12130
12131 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12132 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12133 check osabi when iterating over arches. Update call to
12134 gdbarch_init_osabi.
12135 (mips_dump_tdep): Don't dump osabi.
12136
12137 * ns32k-tdep.h: Don't include "osabi.h".
12138 (struct gdbarch_tdep): Remove.
12139 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12140 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12141 allocate tdep. Update call to gdbarch_init_osabi.
12142 (ns32k_dump_tdep): Remove.
12143 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12144 * ns32knbsd-tdep.c: Include "osabi.h".
12145
12146 * ppc-tdep.h: Don't include "osabi.h".
12147 (struct gdbarch_tdep): Remove osabi member.
12148 * rs6000-tdep.c: Include "osabi.h".
12149 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12150 osabi when iterating over arches. Update call to
12151 gdbarch_init_osabi.
12152 (rs6000_dump_tdep): Don't dump osabi.
12153 * ppc-linux-tdep.c: Include "osabi.h".
12154 * ppcnbsd-tdep.c: Include "osabi.h".
12155
12156 * sh-tdep.h: Don't include "osabi.h".
12157 (struct gdbarch_tdep): Remove osabi member.
12158 * sh-tdep.c: Include "osabi.h".
12159 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12160 iterate over arches. Update call to gdbarch_init_osabi.
12161 (sh_dump_tdep): Don't dump osabi.
12162 * shnbsd-tdep.c: Include "osabi.h".
12163
12164 * sparc-tdep.c: Include "osabi.h".
12165 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12166 iterate over arches. Update call to gdbarch_init_osabi.
12167 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12168 tdep structure.
12169
12170 * vax-tdep.h: Don't include "osabi.h".
12171 (struct gdbarch_tdep): Remove.
12172 * vax-tdep.c: Include "osabi.h".
12173 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12174 iterate over arches. Don't allocate tdep. Update call
12175 to gdbarch_init_osabi.
12176 (vax_dump_tdep): Remove.
12177 (_initialize_vax_tdep): Update call to gdbarch_register.
12178
12179 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12180
12181 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12182 entirely.
12183 (breakpoint_re_set_one): Don't fetch the value for a disabled
12184 watchpoint.
12185
12186 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12187
12188 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12189 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12190 (COERCE_FLOAT_TO_DOUBLE): Remove.
12191 * gdbarch.c: Regenerate.
12192 * gdbarch.h: Regenerate.
12193 * Makefile.in: Remove value_h from gdbarch_h.
12194 * valops.c (coerce_float_to_double): New variable.
12195 (default_coerce_float_to_double): Remove.
12196 (standard_coerce_float_to_double): Remove.
12197 (value_arg_coerce): Use coerce_float_to_double.
12198 (_initialize_valops): Add "set coerce-float-to-double".
12199 * value.h (default_coerce_float_to_double): Remove prototype.
12200 (standard_coerce_float_to_double): Remove prototype.
12201
12202 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12203 prototyped.
12204 * mdebugread.c (parse_symbol): Likewise.
12205 * stabsread.c (define_symbol): Mark all functions as prototyped.
12206
12207 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12208 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12209 set_gdbarch_coerce_float_to_double.
12210 * arm-tdep.c (arm_gdbarch_init): Likewise.
12211 * frv-tdep.c (frv_gdbarch_init): Likewise.
12212 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12213 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12214 * mips-tdep.c (mips_gdbarch_init): Likewise.
12215 (mips_coerce_float_to_double): Remove.
12216 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12217 (rs6000_coerce_float_to_double): Remove.
12218 * s390-tdep.c (s390_gdbarch_init): Likewise.
12219 * sh-tdep.c (sh_gdbarch_init): Likewise.
12220 (sh_coerce_float_to_double): Remove.
12221 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12222 (sparc_coerce_float_to_double): Remove.
12223 * v850-tdep.c (v850_gdbarch_init): Likewise.
12224 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12225 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12226 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12227 (hppa_coerce_float_to_double): Remove prototype.
12228 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12229
12230 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12231
12232 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12233
12234 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12235
12236 Suggested by Stewart Brown <sb24@avaya.com>:
12237 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12238 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12239 (c_type_print_varspec_suffix): Likewise.
12240
12241 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12242
12243 * configure.in: Don't set and AC_SUBST SUBDIRS.
12244 * configure: Regenerated.
12245
12246 * configure.in: Remove code dealing with shared libraries.
12247 * Makefile.in: Remove HLDFLAGS and HLDENV.
12248 * configure: Regenerated.
12249
12250 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12251
12252 * frame.c (deprecated_frame_xmalloc): New function.
12253 (deprecated_set_frame_saved_regs_hack): New function.
12254 (deprecated_set_frame_extra_info_hack): New function.
12255 * frame.h (deprecated_frame_xmalloc): Declare.
12256 (deprecated_set_frame_saved_regs_hack): Declare.
12257 (deprecated_set_frame_extra_info_hack): Declare.
12258
12259 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12260
12261 * configure.in: Move code that provides the --enable-gdbtk option
12262 right after the code that handles the --enable-tui option, and
12263 polish it somewhat.
12264 * configure: Regenerated.
12265
12266 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12267 AC_CHECK_FUNCS and remove the old check for pread64.
12268 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12269 * acconfig.h (_GNU_SOURCE): Add.
12270 (HAVE_PREAD64): Remove.
12271 * configure, aclocal.m4, config.in: Regenerated.
12272
12273 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12274
12275 * alpha-tdep.c: Use get_frame_saved_regs.
12276 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12277 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12278 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12279 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12280 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12281
12282 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12283
12284 * configure.in: Remove all use of the SUBDIRS variable; add
12285 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12286 code providing the --enable-multi-ice option, and move it right in
12287 front of the code that checks whether gdbserver is supported.
12288 Polish that too.
12289 * configure: Regenerated.
12290 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12291 @SUBDIRS@.
12292
12293 2003-01-03 Andrew Cagney <cagney@redhat.com>
12294
12295 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12296 * avr-tdep.c, cris-tdep.c: Ditto.
12297 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12298 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12299
12300 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12301
12302 * configure.in: Remove --enable-netrom option.
12303 * configure: Regenerated.
12304
12305 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12306
12307 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12308 declaration for `struct re_pattern_buffer' instead.
12309 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12310
12311 2003-01-03 J. Brobecker <brobecker@gnat.com>
12312
12313 * mdebugread.c (parse_symbol): Count until the stEnd matching
12314 the structure name.
12315
12316 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12317
12318 * configure.in: Remove --with-cpu option.
12319 subscripts. Remove evil changequotes here.
12320 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12321 * config.in, configure: Regenerated.
12322
12323 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12324 * configure.in: Cleanup section that sources GDB and BFD configure
12325 subscripts. Remove evil changequotes here.
12326 * config.in, configure: Regenerated.
12327
12328 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12329
12330 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12331 frame accessor methods.
12332 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12333 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12334 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12335 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12336 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12337 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12338 * z8k-tdep.c: Ditto.
12339
12340 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12341
12342 * configure.in: Remove UI_OUT configuration code.
12343 * ada-lang.c: Update assuming UI_OUT is always true.
12344 * Makefile.in (UIOUT_CFLAGS): Remove.
12345 * configure: Regenerated.
12346 * TODO: Remove blurb about elimination of -DUI_OUT.
12347
12348 * configure.in: Move code that provides the --enable-gdbcli,
12349 --enable-gdbmi options right before the code that handles the
12350 --enable-tui option. Polish a bit.
12351 * configure: Regenerated.
12352
12353 * configure.in: Rewrite check for GNU regex and the
12354 --without-included regex option, and move it into the "Checks for
12355 library functions" section. This makes us use the system regex
12356 again by default on systems with version 2 of the GNU C library.
12357 This was apparently broken.
12358 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12359 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12360 * config.in, configure: Regenerated.
12361
12362 * configure.in: Move code that provides the --enable-tui option
12363 before the "Checks for libraries" section. Polish the code
12364 somewhat and set need_curses to yes if we build the TUI. Rewrite
12365 code that looks for a library providing termcap functionality to
12366 match more closely what's done in the Readline library, and move
12367 it into to the "Checks for libraries" section.
12368 * configure: Regenerated.
12369 * Makefile.in (TERMCAP): Remove variable.
12370 * config/i386/go32.mh (TERMCAP): Remove variable.
12371
12372 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12373
12374 * MAINTAINERS: Mention gdb_mbuild.sh.
12375 * gdb_mbuild.sh: Rewrite.
12376
12377 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12378
12379 * configure.in: Fix typo in last change.
12380 * config.in, configure: Regenerated.
12381
12382 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12383
12384 * valarith.c (value_binop): Delete obsolete code and comments.
12385 * configure.host: Ditto.
12386 * buildsym.h (make_blockvector): Ditto.
12387 * buildsym.c (make_blockvector): Ditto.
12388 * defs.h (enum language): Ditto.
12389 (chill_demangle): Ditto.
12390 * elfread.c (elf_symtab_read): Ditto.
12391 * dwarfread.c (CHILL_PRODUCER): Ditto.
12392 (set_cu_language): Ditto.
12393 (handle_producer): Ditto.
12394 * expprint.c (print_subexp): Ditto.
12395 * gdbtypes.c (chill_varying_type): Ditto.
12396 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12397 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12398 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12399 (chill_varying_type): Ditto.
12400 * language.h (_LANG_chill): Ditto.
12401 * language.c (binop_result_type, integral_type): Ditto.
12402 (character_type, string_type, structured_type): Ditto.
12403 (lang_bool_type, binop_type_check): Ditto.
12404 * stabsread.h (os9k_stabs): Ditto.
12405 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12406 (define_symbol, read_type, read_struct_fields): Ditto.
12407 (read_array_type, read_enum_type, read_huge_number): Ditto.
12408 (read_range_type, start_stabs): Ditto.
12409 * symfile.c (init_filename_language_table): Ditto.
12410 (add_psymbol_with_dem_name_to_list): Ditto.
12411 * symtab.c (symbol_init_language_specific): Ditto.
12412 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12413 * symtab.h (struct general_symbol_info): Ditto.
12414 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12415 * typeprint.c (typedef_print): Ditto.
12416 * utils.c (fprintf_symbol_filtered): Ditto.
12417 * valops.c (value_cast, search_struct_field, value_slice): Delete
12418 obsolete code.
12419 (varying_to_slice): Delete function.
12420 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12421 (varying_to_slice): Delete declaration.
12422 * MAINTAINERS: Update.
12423
12424 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12425
12426 * configure.in: Reorganize "Checks for library functions section"
12427 a bit. Remove check for `btowc' and `isascii' functions.
12428 * configure: Regenerated.
12429
12430 * acconfig.h (_MSE_INT_H): Remove.
12431 * configure.in: Create "Checks for header files" section, and move
12432 appropriate tests there. Don't check for objlist.h, wchar.h,
12433 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12434 misdetection fix. Also add "Checks for types", "Checks for
12435 compiler characteristics" and "Checks for library functions"
12436 sections.
12437 * config.in, configure: Regenerated.
12438
12439 * configure.in: Create "Checks for programs" section, and move
12440 appropriate tests there.
12441
12442 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12443
12444 * configure.in: Create "Checks for libraries" section, and move
12445 appropriate tests there. Cleanup check for wctype in libw. Use
12446 AC_SEARCH_LIBS to see whether we need libsocket.
12447 * configure: Regenerated.
12448
12449 For older changes see ChangeLog-2002
12450 \f
12451 Local Variables:
12452 mode: change-log
12453 left-margin: 8
12454 fill-column: 74
12455 version-control: never
12456 End: