2003-09-25 David Carlton <carlton@kealia.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
79c2c32d
DC
12003-09-25 David Carlton <carlton@kealia.com>
2
3 * c-exp.y: Include cp-support.h. Add qualified_type.
4 (yylex): Delete nested type hack; add comments.
5 * cp-namespace.c (cp_lookup_nested_type): New function.
6 * cp-support.h: Declare cp_lookup_nested_type.
7 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
8 instead of value_struct_elt_for_reference.
9 * valops.c: Include cp-support.h.
10 (value_aggregate_elt): New function.
11 (value_namespace_elt): Ditto.
12 (value_struct_elt_for_reference): Make static.
13 * value.h: Delete declaration of value_struct_elt_for_reference;
14 add declaration for value_aggregate_elt.
15 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
16 (valops.o): Ditto.
17
898c62f5
DJ
182003-09-25 Daniel Jacobowitz <drow@mvista.com>
19
20 * stack.c: Include "reggroups.h".
21 (frame_info): Only display registers in all_reggroup.
22 * Makefile.in (stack.o): Update dependencies.
23
28cd8767
JG
242003-09-25 Jerome Guitton <guitton@act-europe.fr>
25
26 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
27 "add ip, sp #n" in the prologue.
28 (arm_scan_prologue): Ditto.
29
a4ab2b5d
JG
302003-09-25 Jerome Guitton <guitton@act-europe.fr>
31
32 * MAINTAINERS (write after approval): Add myself.
33
3f244638
AS
342003-09-25 Andreas Schwab <schwab@suse.de>
35
36 * m68k-tdep.c: Include "dwarf2-frame.h".
37 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
38 * Makefile.in (m68k-tdep.o): Update dependencies.
39
1c0159e0
CV
402003-09-25 Corinna Vinschen <vinschen@redhat.com>
41
42 * sh-tdep.c (struct frame_extra_info): Remove.
43 (struct sh_frame_cache): New structure.
44 (GET_SOURCE_REG): New macro extracting source register of an opcode.
45 (GET_TARGET_REG): Ditto but target register.
46 (GET_PUSHED_REG): Remove.
47 (IS_MOV_ARG_TO_REG): New macro.
48 (IS_MOV_ARG_TO_IND_R14): New macro.
49 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
50 (IS_MOVW_PCREL_TO_REG): New macro.
51 (IS_MOVL_PCREL_TO_REG): New macro.
52 (IS_SUB_REG_FROM_SP): New macro.
53 (IS_ARG_MOV): Remove.
54 (IS_MOV_TO_R14): Remove.
55 (IS_RESTORE_FP): New macro.
56 (IS_RTS): New macro.
57 (IS_LDS): New macro.
58 (IS_MOV_FP_SP): New macro.
59 (IS_ADD_REG_TO_FP): New macro.
60 (IS_ADD_IMM_FP): New macro.
61 (sh_skip_prologue_hard_way): Remove.
62 (sh_saved_pc_after_call): Remove.
63 (sh_frame_chain): Remove.
64 (sh_find_callers_reg): Remove.
65 (sh_nofp_frame_init_saved_regs): Remove.
66 (sh_fp_frame_init_saved_regs): Remove.
67 (sh_init_extra_frame_info): Remove.
68 (sh_analyze_prologue): New function.
69 (sh_skip_prologue): Remove deprecated code. Rely on new function
70 sh_analyze_prologue when after_prologue fails.
71 (sh_frame_saved_pc): Remove.
72 (sh_alloc_frame_cache): New function.
73 (sh_frame_cache): Ditto.
74 (sh_frame_prev_register): Ditto.
75 (sh_frame_this_id): Ditto.
76 (sh_frame_unwind): New structure defining the heuristic frame
77 sniffer interface.
78 (sh_frame_sniffer): New function.
79 (sh_unwind_sp): Ditto.
80 (sh_unwind_pc): Ditto.
81 (sh_unwind_dummy_id): Ditto.
82 (sh_frame_base_address): Ditto.
83 (sh_frame_base): New structure defining new frame base code.
84 (sh_in_function_epilogue_p): New function.
85 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
86 code and to call all new code instead. Initialize dwarf2 and
87 heuristic frame sniffer.
88
5f9769d1
PH
892003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
90
91 * parser-defs.h (struct exp_descriptor): New definition, containing
92 language-specific info for printing, prefixifying, dumping, and
93 evaluating expressions.
94 (exp_descriptor_standard): Declare new variable.
95 (print_subexp): Make global and declare here (from expprint.c).
96 (dump_subexp): Ditto.
97 (dump_subexp_body_standard): Declare.
98 (operator_length_standard): Declare.
99 (op_name_standard): Declare.
100 (print_subexp): Declare.
101 (print_subexp_standard): Declare.
102
103 * language.h (struct language_defn): Add la_exp_desc field to hold
104 pointer to table for language-specific operators.
105 Remove evaluate_exp field, which is now in struct exp_descriptor.
106
107 * parse.c (operator_length): Move most code to new
108 operator_length_standard function. Use language-specific information.
109 (operator_length_standard): New function taking most code from
110 operator_length.
111 (exp_descriptor_standard): New constant.
112
113 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
114 and OP_EXTENDED_LAST.
115
116 * expprint.c (print_subexp): Use language-specific print_subexp.
117 Make global; remove static declaration.
118 Move most code to print_subexp_standard.
119 (print_subexp_standard): New function, containing code formerly in
120 print_subexp.
121 (op_name): Add expression to argument signature.
122 Use langauge-specific op_name.
123 Move most code to op_name_standard.
124 (op_name_standard): New function, containing code formerly in op_name.
125 (dump_subexp): Use new version of op_name function.
126 Use language-specific dump_subexp_body, and move most existing code to
127 dump_subexp_body_standard.
128 (dump_raw_expression): Use new op_name interface.
129 (dump_subexp_body): Move most code to dump_subexp_body_standard.
130 (dump_subexp_body_standard): New function, containing code formerly
131 in dump_subexp_body.
132
133 * language.c (unknown_language): Add default la_exp_desc field and
134 remove evaluate_exp field.
135 (auto_language): Ditto.
136 (local_language): Ditto.
137 * f-lang.c (f_language_defn): Ditto.
138 * c-lang.c (c_language_defn): Ditto.
139 (cplus_language_defn): Ditto.
140 (asm_language_defn): Ditto.
141 (minimal_language_defn): Ditto.
142 * p-lang.c (pascal_language_defn): Ditto.
143 * m2-lang.c (m2_language_defn): Ditto.
144 * objc-lang.c (objc_language_defn): Ditto.
145
146 * jv-lang.c (exp_descriptor_java): New variable, containing
147 Java-specific expression evaluator.
148 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
149 field.
150 * scm-lang.c (exp_descriptor_scm): New variable, containing
151 Scheme-specific expression evaluator.
152 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
153 field.
154 * objc-lang.c (print_object_command): Take evaluate_exp from the
155 la_exp_desc field.
156
157 * Makefile.in (eval.o): Add dependency on parser-defs.h.
158
159 * eval.c: Include parser-defs.h for the full declaration of
160 la_exp_desc's type.
161 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
162
24daaebc
PH
1632003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
164
165 * parser-defs.h (operator_length): Declare.
166
167 * parse.c (length_of_subexp): Use operator_length to get operator
168 lengths and arities for operators.
169 Move most code to new operator_length function.
170 (operator_length): New function absorbing most code from
171 length_of_subexp.
172 (prefixify_subexp): Remove large case and use operator_length instead.
173 (parse_exp_1): Use renamings:
174 dump_prefix_expression => dump_raw_expression and
175 dump_postfix_expression => dump_prefix_expression.
176
177 * expression.h (dump_prefix_expression): Rename to ...
178 (dump_raw_expression): New name.
179 (dump_postfix_expression): Rename to ...
180 (dump_prefix_expression): New name.
181
182 * expprint.c (dump_subexp): Make global. Add comment.
183 Move most existing code to dump_subexp_body.
184 (dump_subexp_body): New function.
185 (dump_prefix_expression): Rename to dump_raw_expression.
186 Remove attempt to print the expression via print_expression: it can't
187 work before the expression is prefixified.
188 (dump_raw_expression): Renamed from dump_prefix_expression.
189 (dump_postfix_expression): Rename to dump_prefix_expression, since
190 that's what it does.
191 Remove 'note' parameter, since this routine must be used on
192 prefixified expression.
193 (dump_prefix_expression): Renamed from dump_postfix_expression.
194
8c2957c4
JB
1952003-09-22 Jim Blandy <jimb@redhat.com>
196
197 * dwarf2read.c (read_array_type): When building the type for an
198 array of unspecified length, make sure to choose the upper bound
199 so that the array's total length comes out to be zero --- that's
200 how we represent such arrays.
201
592e3010
MC
2022003-09-22 Michael Chastain <mec@shout.net>
203
204 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
205
365c70b1
JJ
2062003-09-22 Jeff Johnston <jjohnstn@redhat.com>
207
208 * top.c (quit_force): Fix indirect call to quit_target so
209 a struct qt_args pointer is passed.
210
5d6eb653
AC
2112003-09-22 Andrew Cagney <cagney@redhat.com>
212
213 * arch-utils.h (init_frame_pc_noop): Delete declaration.
214 * arch-utils.c (init_frame_pc_noop): Delete function.
215 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
216 "init_frame_pc".
217 * mips-tdep.c (mips_gdbarch_init): Ditto.
218 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
219 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
220 declaration.
221 (DEPRECATED_INIT_FRAME_PC): Delete macro.
222 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
223 declaration.
224 (DEPRECATED_INIT_FRAME_PC): Delete macro.
225
b222a67f
AG
2262003-09-22 Anthony Green <green@redhat.com>
227
228 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
229 declaration.
230
d5b5ac79
AC
2312003-09-20 Andrew Cagney <cagney@redhat.com>
232
deafb061
AC
233 * breakpoint.c: Eliminate ARGSUSED.
234 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
235 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
236 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
237 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
238 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
239 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
240 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
241 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
242 * wince.c, remote-vx.c: Ditto.
243
d5b5ac79
AC
244 * cli/cli-script.c: Remove "register" attributes.
245 * config/pa/tm-hppa.h: Ditto.
246 * cli/cli-decode.c: Ditto.
247 * cli/cli-cmds.c: Ditto.
248
c6316faa
AC
2492003-09-19 Andrew Cagney <cagney@redhat.com>
250
251 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
252 DEPRECATED_NPC_REGNUM.
253 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
254
f4f99b11
CF
2552003-09-19 Christopher Faylor <cgf@redhat.com>
256
257 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
258
1708f284
JB
2592003-09-19 Jim Blandy <jimb@redhat.com>
260
261 * macrotab.c (macro_include): Use the correct comparison to find
262 the appropriate place for this inclusion in the list.
263
b9fbf434
AC
2642003-09-19 Andrew Cagney <cagney@redhat.com>
265
266 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
267 (DEPRECATED_HPUX_TEXT_END): Define.
268 (deprecated_hpux_text_end): Declare.
269 (struct target_ops): Declare opaque.
270 * hppah-nat.c (text_end): Make static.
271 (deprecated_hpux_text_end): New function.
272 * exec.c (text_end): Delete global variable.
273 (NEED_TEXT_START_END): Do not define.
274 (exec_file_attach): Replace code computing "text_end" code with
275 call to DEPRECATED_HPUX_TEXT_END.
276
5b03f266
AC
2772003-09-19 Andrew Cagney <cagney@redhat.com>
278
279 * utils.c (align_up, align_down): New functions.
280 * defs.h (align_up, align_down): Declare.
281 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
282 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
283 and "align_down".
284 (round_up, round_down): Delete functions.
285 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
286 "align_down".
287 (ROUND_DOWN, ROUND_UP): Delete macros.
288 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
289 * h8300-tdep.c: Replace "round_up" and "round_down" with
290 "align_up" and "align_down".
291 (round_up, round_down): Delete macros.
292 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
293 "align_down".
294 (ROUND_UP, ROUND_DOWN): Delete macros.
295
51db5742
JB
2962003-09-18 J. Brobecker <brobecker@gnat.com>
297
298 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
299 hard-coded constant. Use the proper machine name instead.
300
77949794
AC
3012003-09-17 Andrew Cagney <cagney@redhat.com>
302
303 * sparc-tdep.c (legacy_register_name): Delete function.
304 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
305 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
306 * infcmd.c (gdb_register_name): Delete variable.
307 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
308 REGISTER_NAME and "tm.h".
309 * gdbarch.h, gdbarch.c: Regenerate.
310 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
311 REGISTER_NAMES in comments.
312 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
313 * m68klinux-nat.c (regmap): Ditto.
314
b55c33cc
JB
3152003-09-17 Jim Blandy <jimb@redhat.com>
316
317 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
318
957e27ac
AC
3192003-09-17 Andrew Cagney <cagney@redhat.com>
320
321 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
322 (ppcnbsd_init_abi): Set "use_struct_convention" to
323 "ppcnbsd_use_struct_convention".
324
192cb3d4
MK
3252003-09-17 Mark Kettenis <kettenis@gnu.org>
326
327 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
328 * gdbarch.h, gdbarch.c: Regenerate.
329 (stabs_argument_has_addr): New architecture method.
330 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
331 * arch-utils.c: Include "buildsym.h".
332 (default_stabs_argument_has_addr): New function.
333 * stabsread.c (define_symbol): Use stabs_argument_has_addr
334 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
335
efe59759
AC
3362003-09-17 Andrew Cagney <cagney@redhat.com>
337
338 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
339 * gdbarch.h, gdbarch.c: Regenerate.
340 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
341 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
342 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
343 * sparcnbsd-tdep.c: Update.
344
62700349
AC
3452003-09-17 Andrew Cagney <cagney@redhat.com>
346
347 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
348 * gdbarch.h, gdbarch.c: Regenerate.
349 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
350 * d10v-tdep.c, frame.c: Update.
351 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
352 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
353 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
354 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
355 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
356 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
357 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
358 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
359 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
360 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
361 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
362 * config/pa/nm-hppah.h: Update.
363
b9ff3018
AC
3642003-09-16 Andrew Cagney <cagney@redhat.com>
365
366 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
367 "use_struct_convention" to "ppc_linux_use_struct_convention".
368 (ppc_linux_use_struct_convention): New function.
369 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
370 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
371 "rs6000_use_struct_convention".
372 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
373 declaration.
374 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
375 Delete function.
376
aa1ee363
AC
3772003-09-16 Andrew Cagney <cagney@redhat.com>
378
379 * buildsym.c: Remove more occurances of "register".
380 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
381 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
382 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
383 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
384 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
385 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
386 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
387 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
388
f2ea0907
CV
3892003-09-16 Corinna Vinschen <vinschen@redhat.com>
390
391 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
392 numbers to enumeration values.
393 * sh-tdep.c: Accomodate above change.
394 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
395 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
396 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
397 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
398 (IS_FPUSH): Rename from IS_FMOV.
399 (sh_extract_struct_value_address): Remove useless comment.
400 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
401 instead of own local values.
402 (sh_dump_tdep): Remove.
403 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
404 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
405
1c704f11
AC
4062003-09-15 Andrew Cagney <cagney@redhat.com>
407
408 * doublest.c (convert_floatformat_to_doublest): No longer need to
409 cast "exp_bias" to an int. Reverts 2002-12-04 change.
410
ac79b88b
DJ
4112003-09-15 Daniel Jacobowitz <drow@mvista.com>
412
413 * values.c (unpack_double): Call floatformat_is_valid.
414
1c671366
MK
4152003-09-15 Mark Kettenis <kettenis@gnu.org>
416
de5227fb
MK
417 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
418 ps_strings into a long.
419
1c671366
MK
420 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
421 _initialize_am64fbsd_nat.
422
a604369a
KB
4232003-09-15 Kevin Buettner <kevinb@redhat.com>
424
425 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
426 associated with DW_AT_ranges attribute is out of bounds.
427
b3cacbee
DL
4282003-09-15 David Lecomber <dsl@sources.redhat.com>
429
430 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
431
d0f37bb2
MC
4322003-09-14 Michael Chastain <mec@shout.net>
433
434 * config/m68k/nm-apollo68v.h: Delete.
435 * config/m68k/xm-apollo68v.h: Delete.
436
69517000
AC
4372003-09-14 Andrew Cagney <cagney@redhat.com>
438
439 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
440 * dcache.c: Update copyrights and descriptions.
441 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
442
ef8b349d
AC
4432003-09-14 Andrew Cagney <cagney@redhat.com>
444
445 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
446 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
447
52f0bd74
AC
4482003-09-14 Andrew Cagney <cagney@redhat.com>
449
450 * alpha-nat.c: Remove some occurances of "register".
451 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
452 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
453 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
454 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
455 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
456 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
457 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
458 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
459 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
460 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
461 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
462 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
463 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
464 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
465 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
466 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
467 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
468 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
469 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
470 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
471 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
472 * values.c, vax-tdep.c, xcoffread.c: Ditto.
473
4a4b3fed
AC
4742003-09-13 Andrew Cagney <cagney@redhat.com>
475
476 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
477 * ppc-tdep.h (struct regcache): Declare opaque.
478 * objfiles.h (struct objfile_data): Declare opaque.
479 * cp-support.h (struct objfile): Declare opaque.
480 * linux-nat.h (target_waitstatus): Declare opaque.
481
2110b94f
MK
4822003-09-14 Mark Kettenis <kettenis@gnu.org>
483
1c671366
MK
484 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
485 (stabs_argument_has_addr): New architecture method.
486 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
487 * arch-utils.c: Include "buildsym.h".
488 (default_stabs_argument_has_addr): New function.
489 * stabsread.c (define_symbol): Use stabs_argument_has_addr
490 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
491
2110b94f
MK
492 * cris-tdep.c (cris_gdbarch_init): Set
493 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
494 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
495 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
496 * mips-tdep.c (mips_gdbarch_init): Likewise.
497 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
498 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
499
48436ce6
AC
5002003-09-13 Andrew Cagney <cagney@redhat.com>
501
502 * values.c (using_struct_return): Delete "function" and "funcaddr"
503 parameters.
504 * value.h (using_struct_return): Update declaration.
505 * infcmd.c (finish_command_continuation): Update.
506 (finish_command): Update.
507 * infcall.c (call_function_by_hand): Update.
508 * eval.c (evaluate_subexp_standard): Update.
509
403d9909
CF
5102003-09-13 Christopher Faylor <cgf@redhat.com>
511
512 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
513 SSE registers since gdb will not operate correctly without this.
514 Restore include file ordering munged in previous change.
515 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
516
ebf7d56b
MK
5172003-09-13 Mark Kettenis <kettenis@gnu.org>
518
8e823e25
MK
519 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
520 REG_STRUCT_HAS_ADDR.
521 * gdbarch.c, gdbarch.h: Updated.
522 * infcall.c (call_function_by_hand): Update.
523 * stabsread.c (define_symbol): Updated.
524
ebf7d56b
MK
525 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
526
d3f13f72
CF
5272003-09-12 Christopher Faylor <cgf@redhat.com>
528
529 * win32-nat.c: Reorganize so that defines used by target headers are
530 actually defined by the system headers.
531 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
532 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
533
14f75137
JB
5342003-09-12 Jim Blandy <jimb@redhat.com>
535
d646061f
JB
536 * dbxread.c (read_dbx_symtab): Don't report an internal error if
537 the file has no .data, .bss, or .rodata sections. Instead wait
538 until we see a variable alleged to live in one of those sections.
539
2a13f9bc
JB
540 * dbxread.c (read_dbx_symtab): If we have no .data section and no
541 .bss section, presume that any variables we find live in the
542 .rodata section.
543
4f49b26b
JB
544 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
545 offsets for global and static variables.
546
14f75137
JB
547 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
548 symbol types are, by definition, in the .data section, so it is
549 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
550 If there is no .data section, there should be no N_DATA or N_DATA
551 | N_EXT symbols.
552
212c460c
MK
5532003-09-12 Mark Kettenis <kettenis@gnu.org>
554
555 * amd64fbsd-tdep.c: Fix sigtramp recognition.
556 (amd64fbsd_sigcontext_addr): Rewrite.
557 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
558 with correct values.
559 (amd64fbsd_sc_reg_offset): Initialize with correct values.
560 (amd64fbsd_init_abi): Fix typo.
561
68856ea3
AC
5622003-09-12 Andrew Cagney <cagney@redhat.com>
563
564 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
565 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
566
627b3ba2
AC
5672003-09-12 Andrew Cagney <cagney@redhat.com>
568
569 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
570 "entry_file_highpc". Update comments.
571 * defs.h (deprecated_inside_entry_file): Rename
572 "inside_entry_file".
573 * blockframe.c (deprecated_inside_entry_file): Rename
574 "inside_entry_file".
575 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
576 * vax-tdep.c (vax_frame_chain): Update.
577 * sh64-tdep.c (sh64_frame_chain): Update.
578 * sh-tdep.c (sh_frame_chain): Update.
579 * rs6000-tdep.c (rs6000_frame_chain): Update.
580 * ns32k-tdep.c (ns32k_frame_chain): Update.
581 * mips-tdep.c (mips_frame_chain): Update.
582 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
583 * m32r-tdep.c (m32r_frame_this_id): Update.
584 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
585 * frv-tdep.c (frv_frame_this_id): Update.
586 * d10v-tdep.c (d10v_frame_this_id): Update.
587 * cris-tdep.c (cris_frame_chain): Update.
588 * blockframe.c (legacy_frame_chain_valid): Update.
589 * avr-tdep.c (avr_frame_this_id): Update.
590 * arm-tdep.c (arm_prologue_this_id): Update.
591 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
592 * objfiles.c (objfile_relocate): Update.
593 * mipsread.c (mipscoff_symfile_read): Update.
594 (mipscoff_symfile_read): Update.
595 * mdebugread.c (parse_partial_symbols): Update.
596 * dwarfread.c (read_file_scope): Update.
597 * dwarf2read.c (read_file_scope): Update.
598 * dbxread.c (read_dbx_symtab): Update.
599 (read_dbx_symtab): Update.
600 * coffread.c (complete_symtab): Update.
601
b0abbc58
JJ
6022003-09-12 Jeff Johnston <jjohnstn@redhat.com>
603
604 * top.c (quit_target): New static helper function.
605 (quit_force): Moved code to quit_target(). Call quit_target()
606 via catch_errors() to catch errors during quit.
607
a1632d59
DC
6082003-09-11 David Carlton <carlton@kealia.com>
609
610 * buildsym.c (finish_block): Use allocate_block to allocate the
611 block.
612 * mdebugread.c (new_block): Add FIXME.
613
5c4e30ca
DC
6142003-09-11 David Carlton <carlton@kealia.com>
615
616 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
617 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
618 (recursive_dump_type): Ditto.
619 * printcmd.c (print_formatted): Ditto.
620 * typeprint.c (print_type_scalar): Ditto.
621 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
622 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
623 * cp-support.h: Declare cp_check_possible_namespace_symbols,
624 maint_cplus_cmd_list.
625 * cp-support.c: Make maint_cplus_cmd_list extern.
626 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
627 command.h.
628 (lookup_symbol_file): Look in possible namespace blocks when
629 appropriate.
630 (initialize_namespace_symtab): New.
631 (get_possible_namespace_block, free_namespace_block)
632 (check_possible_namespace_symbols)
633 (check_possible_namespace_symbols_loop)
634 (check_one_possible_namespace_symbol)
635 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
636 (_initialize_cp_namespace): Ditto.
637 * block.h: Declare allocate_block.
638 * block.c (allocate_block): New.
639 * jv-lang.c (get_java_class_symtab): Allocate blocks via
640 allocate_block.
641 * symfile.h: Update declaration of add_psymbol_to_list.
642 * symfile.c (add_psymbol_to_list): Return the partial symbol in
643 question.
644 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
645 scan_partial_symbols_call.
646 (scan_partial_symbols): Add NAMESPACE argument; update calls to
647 helper functions.
648 (add_partial_symbol): If necessary, scan mangled names for names
649 of namespaces.
650 (add_partial_namespace): Add NAMESPACE argument; generate partial
651 symbols associated to namespaces.
652 (add_partial_enumeration): Add NAMESPACE argument.
653 (new_symbol): Allow namespace syms.
654 (read_namespace): Generate namespace syms.
655 * objfiles.h: Add opaque declaration of struct symtab.
656 (struct objfile): Add cp_namespace_symtab member.
657 * objfiles.c (allocate_objfile): Set
658 objfile->cp_namespace_symtab.
659 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
660 dictionary_h, command_h.
661
33a7c2fc
AC
6622003-09-11 Andrew Cagney <cagney@redhat.com>
663
664 * rs6000-tdep.c (rs6000_push_dummy_call): Use
665 regcache_raw_write_signed to set SP_REGNUM, move the operation to
666 near the function's end.
667 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
668 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
669 regcache_raw_write_signed to set SP_REGNUM.
670
63cd24fe
EZ
6712003-09-11 Elena Zannoni <ezannoni@redhat.com>
672
673 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
674 orig_addrs is set up properly.
675
f27dd7fd
AC
6762003-09-11 Andrew Cagney <cagney@redhat.com>
677
678 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
679 * gdbarch.h, gdbarch.c: Re-generate.
680 * infcall.c (call_function_by_hand): Update.
681 * hppa-tdep.c (hppa_push_arguments): Update.
682 * ada-lang.c (place_on_stack): Update.
683 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
684 * sparc-tdep.c (sparc_gdbarch_init): Update.
685 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
686 * hppa-tdep.c (hppa_gdbarch_init): Update.
687 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
688 stack_align.
689
f630a401
DJ
6902003-09-11 Daniel Jacobowitz <drow@mvista.com>
691
692 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
693 register do need a frame.
694
0ddabb4c
AC
6952003-09-11 Andrew Cagney <cagney@redhat.com>
696
697 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
698 buildable since GDB 5.0.
699 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
700 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
701 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
702 * irix4-nat.c: Delete file.
703 * config/mips/irix4.mh: Delete file.
704 * config/mips/irix3.mh: Delete file.
705 * config/mips/irix3.mt: Delete file.
706 * config/mips/tm-irix3.h: Delete file.
707 * config/mips/nm-irix3.h: Delete file.
708 * config/mips/xm-irix3.h: Delete file.
709 * config/mips/nm-irix4.h: Delete file.
710 * config/mips/xm-irix4.h: Delete file.
711 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
712
fde2cceb
JB
7132003-09-10 J. Brobecker <brobecker@gnat.com>
714
715 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
716 * Makefile.in (hppa-tdep.o): Update dependencies.
717
66f667f5
JW
7182003-09-10 James E Wilson <wilson@specifixinc.com>
719
ef5fd69f
JW
720 * MAINTAINERS: Change my e-mail address. Move to paper trail
721 section.
66f667f5 722
53e8aaea
KB
7232003-09-10 Kevin Buettner <kevinb@redhat.com>
724
725 * MAINTAINERS (frv): New ISA entry.
726
dcc6aaff
KB
7272003-09-10 Kevin Buettner <kevinb@redhat.com>
728
729 * frv-tdep.c (dis-asm.h): Include.
730 * Makefile.in (frv-tdep.o): Update dependencies.
731
932644f0
JJ
7322003-09-09 Jeff Johnston <jjohnstn@redhat.com>
733
734 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
735 Fix typo for high range of floating registers.
736
91c24f0a
DC
7372003-09-09 David Carlton <carlton@kealia.com>
738
739 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
740 highpc initialization here out of scan_partial_symbols.
741 (scan_partial_symbols): Restructure into a recursive version,
742 calling add_partial_namespace and add_partial_enumeration when
743 appropriate.
744 (add_partial_namespace): New.
745 (add_partial_enumeration, locate_pdi_sibling): Ditto.
746
c9263853
AC
7472003-09-09 Andrew Cagney <cagney@redhat.com>
748
e56a0ecc
AC
749 * rs6000-tdep.c (ppc_push_return_address): Delete function.
750 (rs6000_push_dummy_call): Set LR to BP_ADDR.
751 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
752 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
753
794a477a
AC
754 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
755 (rs6000_push_dummy_call): Set the "TOC" register.
756
c9263853
AC
757 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
758 methods "max_register_raw_size", "max_register_virtual_size" or
759 "register_virtual_size".
760
afa7d0b2
ILT
7612003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
762
763 * MAINTAINERS: Update my e-mail address.
764
7a41266b
AC
7652003-09-09 Andrew Cagney <cagney@redhat.com>
766
767 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
768 (rs6000_push_dummy_call): Store the struct return address.
769 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
770
77b2b6d4
AC
7712003-09-09 Andrew Cagney <cagney@redhat.com>
772
773 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
774 "ppc_sysv_abi_push_arguments".
775 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
776 "ppc_sysv_abi_push_arguments".
777 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
778 instead of "push_arguments".
779 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
780
e8a7b686
AC
7812003-09-09 Andrew Cagney <cagney@redhat.com>
782
783 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
784 instead of CALL_DUMMY_ADDRESS.
785
f86f5ca3
PH
7862003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
787
788 * p-lang.c: Eliminate "register".
789 * c-lang.c: Ditto.
790 * expprint.c: Ditto.
791 * f-lang.c: Ditto.
792 * jv-lang.c: Ditto.
793 * language.c: Ditto.
794 * m2-lang.c: Ditto.
795 * parse.c: Ditto.
796 * scm-lang.c: Ditto.
797 * objc-lang.c: Ditto.
798
83ee270e
NC
7992003-09-09 Nick Clifton <nickc@redhat.com>
800
801 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
802
a89aa300
AC
8032003-09-04 Andrew Cagney <cagney@redhat.com>
804
805 * avr-tdep.c: Include "dis-asm.h".
806 * cris-tdep.c: Include "dis-asm.h".
807 (cris_delayed_get_disassembler): Use "struct disassemble_info"
808 instead of corresponding typedef.
809 * h8300-tdep.c: Include "dis-asm.h".
810 * ia64-tdep.c: Include "dis-asm.h".
811 * i386-tdep.c: Include "dis-asm.h".
812 (i386_print_insn): Use "struct disassemble_info" instead of
813 corresponding typedef.
814 * m68k-tdep.c: Include "dis-asm.h".
815 * mcore-tdep.c: Include "dis-asm.h".
816 * mips-tdep.c: Include "dis-asm.h".
817 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
818 instead of corresponding typedef.
819 * ns32k-tdep.c: Include "dis-asm.h".
820 * s390-tdep.c: Include "dis-asm.h".
821 * sparc-tdep.c: Include "dis-asm.h".
822 * vax-tdep.c: Include "dis-asm.h".
823 * v850-tdep.c: Include "dis-asm.h".
824 * mn10300-tdep.c: Include "dis-asm.h".
825 * rs6000-tdep.c: Include "dis-asm.h".
826 * xstormy16-tdep.c: Include "dis-asm.h".
827 (_initialize_xstormy16_tdep): Delete "extern" declaration of
828 print_insn_xstormy16.
829 * Makefile.in (v850-tdep.o): Update dependencies.
830 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
831 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
832 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
833 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
834 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
835 (gdbarch_h): Remove $(dis_asm_h).
836 * disasm.c: Include "dis-asm.h".
837 (dis_asm_read_memory): Use "struct disassemble_info" instead of
838 corresponding typedef.
839 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
840 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
841 * gdbarch.sh: Do not include "dis-asm.h".
842 (struct disassemble_info): Declare opaque.
843 (TARGET_PRINT_INSN): Update declaration.
844 * gdbarch.h, gdbarch.c: Re-generate.
845
88a82a65
AC
8462003-09-08 Andrew Cagney <cagney@redhat.com>
847
848 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
849 CALL_DUMMY_ADDRESS, change to a predicate.
850 * gdbarch.h, gdbarch.c: Re-generate.
851 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
852 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
853 * infcall.c (call_function_by_hand): Ditto.
854 * sparc-tdep.c (sparc_push_return_address): Ditto.
855 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
856 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
857 CALL_DUMMY_ADDRESS with entry_point_address.
858 * v850-tdep.c (v850_push_return_address): Ditto.
859 * s390-tdep.c (s390_push_return_address): Ditto.
860 * rs6000-tdep.c (ppc_push_return_address): Ditto.
861 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
862 * mcore-tdep.c (mcore_push_return_address): Ditto.
863 * cris-tdep.c (cris_push_return_address): Ditto.
864 * arm-tdep.c (arm_push_return_address): Ditto.
865
3e2c4033
AC
8662003-09-08 Andrew Cagney <cagney@redhat.com>
867
868 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
869 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
870 and REG_UNMODIFIED to REG_SAME_VALUE.
871 (execute_cfa_program): Update.
872 (dwarf2_frame_cache): Update. Initialize table to
873 REG_UNSPECIFIED, complain if CFI fails to specify a register's
874 location.
875 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
876
39efb398
AC
8772003-09-08 Andrew Cagney <cagney@redhat.com>
878
879 * gnu-nat.c: Remove "inline" function attribute.
880 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
881
f5cb5aca
KB
8822003-09-08 Kevin Buettner <kevinb@redhat.com>
883
884 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
885 target.
886
1cb761c7
KB
8872003-09-08 Kevin Buettner <kevinb@redhat.com>
888
889 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
890 (frame_extra_info): Rename this struct to frv_unwind_cache.
891 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
892 Add fields ``prev_sp'' and ``base''.
893 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
894 (frv_saved_pc_after_call, frv_init_extra_frame_info)
895 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
896 Delete.
897 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
898 Revise all callers. Fill in the unwind cache argument and make
899 other adjustments to account for new frame mechanisms.
900 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
901 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
902 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
903 (frv_frame_unwind, frv_frame_base): New structs.
904 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
905 additional arguments expected by this method and adjust function
906 body accordingly.
907 (frv_gdbarch_init): Remove calls to the following functions:
908 set_gdbarch_deprecated_init_frame_pc(),
909 set_gdbarch_deprecated_saved_pc_after_call(),
910 set_gdbarch_deprecated_frame_chain(),
911 set_gdbarch_deprecated_frame_saved_pc(),
912 set_gdbarch_deprecated_frame_init_saved_regs(),
913 set_gdbarch_deprecated_push_arguments(),
914 set_gdbarch_deprecated_push_return_address(),
915 set_gdbarch_deprecated_pop_frame(),
916 set_gdbarch_deprecated_call_dummy_words(),
917 set_gdbarch_deprecated_sizeof_call_dummy_words(),
918 set_gdbarch_deprecated_init_extra_frame_info(),
919 set_gdbarch_deprecated_dummy_write_sp(), and
920 set_gdbarch_deprecated_pc_in_call_dummy().
921 Add calls to the following functions:
922 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
923 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
924 frame_base_set_default().
925 * Makefile.in (frv-tdep.o): Update dependencies.
926
68f6cf99
MK
9272003-09-09 Mark Kettenis <kettenis@gnu.org>
928
929 * dwarf2-frame.c (read_encoded_value): Add support for
930 DW_EH_PE_aligned encoding.
931
73b65bb0
DJ
9322003-09-08 Daniel Jacobowitz <drow@mvista.com>
933
934 * infrun.c (normal_stop): Don't print a message if the inferior
935 has exited.
936
7c8a5605
JB
9372003-09-08 Jim Blandy <jimb@redhat.com>
938
939 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
940 * dbxread.c: #include "gdb_assert.h".
941 (read_dbx_symtab): If the objfile has no .data section, use the
942 section index for the .bss section instead.
943
7dd88986
DJ
9442003-09-08 Daniel Jacobowitz <drow@mvista.com>
945
946 * frame.c (deprecated_safe_get_selected_frame): New function.
947 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
948 * findvar.c (read_var_value): Call it.
949
55ff77ac
CV
9502003-09-08 Corinna Vinschen <vinschen@redhat.com>
951
952 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
953 (sh64-tdep.o): Add dependencies.
954 * configure.tgt: Add FIXME to sh-*-linux*.
955 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
956 (sh_gdbarch_init): Always set correct sh_show_regs function
957 pointer. Call sh64_gdbarch_init() if machine type is sh5.
958 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
959 * sh64-tdep.c: New file, containing all sh64 related code from
960 sh-tdep.c.
961 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
962 * config/sh/linux.mt (TDEPFILES): Ditto.
963 * config/sh/nbsd.mt (TDEPFILES): Ditto.
964 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
965 * config/sh/wince.mt (TDEPFILES): Ditto.
966
bfb39158
DJ
9672003-09-07 Daniel Jacobowitz <drow@mvista.com>
968
969 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
970 (stop_wait_callback): Handle !lp->signalled also.
971 (lin_lwp_has_pending, flush_callback): New functions.
972 (lin_lwp_wait): Call flush_callback.
973 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
974 (linux_proc_pending_signals): New function.
975 * linux-nat.h (linux_proc_pending_signals): Add prototype.
976
9407de8e
DJ
9772003-09-07 Daniel Jacobowitz <drow@mvista.com>
978
979 From Nick Kelsey <nickk@ubicom.com>:
980 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
981 when the stop PC is at the beginning of a function also.
982
2ef47cd0
DJ
9832003-09-06 Daniel Jacobowitz <drow@mvista.com>
984
985 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
986 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
987
6f4492c8
MK
9882003-09-06 Mark Kettenis <kettenis@gnu.org>
989
990 * sol-thread.c: Include "gdb_string.h".
991
d3420b2f
MK
9922003-09-03 Mark Kettenis <m.kettenis@osp.nl>
993
994 * gcore.c: Reorder include files in alphabetical order. Include
995 "gdb_assert.h". Various coding style fixes.
996 (derive_stack_segment, derive_heap_segment): Replace check for
997 non-null BOTTOM and TOP with gdb_assert.
998 (derive_heap_segment): Replace check for successful creation of
999 ZERO with gdb_assert.
1000 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1001
5220ea4c
AC
10022003-09-04 Andrew Cagney <cagney@redhat.com>
1003
1004 * thread-db.c (verbose_dlsym): New function.
1005 (thread_db_load): Use verbose_dlsym
1006 (thread_db_new_objfile): Print that libthread_db was loaded, and
1007 that thread debugging was enabled.
1008
6e8c2c06
AC
10092003-09-04 Andrew Cagney <cagney@redhat.com>
1010
1011 * configure.tgt: Add "mips64*-*-*" target. Delete
1012 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1013 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1014 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1015 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1016 mips*-sony-*, and mips64*-*-elf* targets.
1017 * config/mips/embedl.mt: Delete file.
1018 * config/mips/embedl64.mt: Delete file.
1019 * config/mips/mips.mt: Delete file.
1020 * config/mips/mips64.mt: Delete file.
1021 * config/mips/tm-embed.h: Delete file.
1022 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1023 * config/mips/embed64.mt: Delete out-of-date comment.
1024
3a3bc038
AC
10252003-09-04 Andrew Cagney <cagney@redhat.com>
1026
1027 * hppa-tdep.c (hppa_gdbarch_init): Set
1028 "have_nonsteppable_watchpoint".
1029 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1030 * mips-tdep.c (mips_dump_tdep): Do not print
1031 HAVE_NONSTEPPABLE_WATCHPOINT.
1032 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1033 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1034 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1035 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1036
a957e642
CV
10372003-09-04 Corinna Vinschen <vinschen@redhat.com>
1038
1039 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1040 unused code. Add comment.
1041
a6fbcf2f
CV
10422003-09-04 Corinna Vinschen <vinschen@redhat.com>
1043
1044 * breakpoint.c (watchpoint_check): Check for pc being in an
1045 epilogue if watchpoint frame couldn't be found.
1046
c14a44d5
AC
10472003-09-04 Andrew Cagney <cagney@redhat.com>
1048
1049 * Makefile.in: Re-generate all dependencies.
1050
f6c40618
AC
10512003-09-03 Andrew Cagney <cagney@redhat.com>
1052
1053 * arch-utils.h (legacy_print_insn): Delete declaration.
1054 * arch-utils.c (legacy_print_insn): Delete function.
1055 * disasm.c (deprecated_tm_print_insn_info): Delete.
1056 (_initialize_disasm): Delete function, contained code initializing
1057 deprecated_tm_print_insn_info.
1058 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1059 (deprecated_tm_print_insn_info): Delete.
1060 (TARGET_PRINT_INSN): Do not provide a default.
1061 * gdbarch.h, gdbarch.c: Re-generate.
1062
242e8be5
AC
10632003-09-03 Andrew Cagney <cagney@redhat.com>
1064
1065 * disasm.c (fprintf_disasm): New function.
1066 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1067 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1068 reverts 2003-08-14 change.
1069 (_initialize_disasm): Call "init_disassemble_info", instead of
1070 INIT_DISASSEMBLE_INFO_NO_ARCH.
1071
3ffc3dda
MS
10722003-09-03 Michael Snyder <msnyder@redhat.com>
1073
1074 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1075
52d16ba8
AC
10762003-09-03 Andrew Cagney <cagney@redhat.com>
1077
1078 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1079 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1080 * symfile.c (syms_from_objfile): Update.
1081 (reread_symbols): `Update
1082 * exec.c (exec_file_attach): Update.
1083 (exec_file_attach): Update.
1084 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1085 2003-08-29 change.
1086 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1087
eb5492fa
DJ
10882003-09-03 Daniel Jacobowitz <drow@mvista.com>
1089
1090 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1091 trad-frame.h.
1092 (arm_get_cache): Delete macro.
1093 (struct arm_prologue_cache): Update comments. Make saved_regs into
1094 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1095 to prev_sp.
1096 (thumb_scan_prologue): Update for cache changes. Don't call
1097 DEPRECATED_PC_IN_CALL_DUMMY.
1098 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1099 argument and use it in desperation search for our prologue. Do not
1100 search past the specified PC.
1101 (arm_make_prologue_cache): Simplify.
1102
1103 (arm_prologue_this_id, arm_prologue_prev_register)
1104 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1105 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1106 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1107 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1108 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1109
1110 (arm_frame_chain_valid, arm_find_callers_reg)
1111 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1112 (arm_pop_frame): Delete obsolete methods.
1113 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1114
1115 (arm_gdbarch_init): Update for new frame methods. Register prologue
1116 and sigtramp unwinders. Set the default frame base method.
1117
1118 * Makefile.in (arm-tdep.o): Update dependencies.
1119 * varobj.c (find_frame_addr_in_frame_chain): Call
1120 get_frame_base_address.
1121 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1122
24de872b
DJ
11232003-09-03 Daniel Jacobowitz <drow@mvista.com>
1124
1125 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1126 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1127 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1128 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1129 Take NEXT_FRAME and CACHE arguments. Call
1130 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1131 Set unwound_pc in CACHE instead of modifying the frame argument.
1132 Don't bother checking the frame type when looking for sigtramp
1133 frames.
1134 (arm_make_prologue_cache, arm_frame_chain)
1135 (arm_init_extra_frame_info): New functions.
1136
9b8d791a
DJ
11372003-09-03 Daniel Jacobowitz <drow@mvista.com>
1138
1139 * arm-tdep.c (arm_get_cache): Define.
1140 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1141 unwound_sp, unwound_pc, and saved_regs.
1142 (thumb_scan_prologue): Take a cache instead of the frame.
1143 (arm_scan_prologue): Likewise.
1144 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1145 instead of a temporary frame.
1146 (arm_init_extra_frame_info): Allocate and use a cache.
1147 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1148
7ee3275f
AC
11492003-09-03 Andrew Cagney <cagney@redhat.com>
1150
1151 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1152 * config/mips/wince.mt (TM_CLIBS): Ditto.
1153 * config/sh/wince.mt (TM_CLIBS): Ditto.
1154 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1155 * config/sparc/sp64.mt (CC): Delete.
1156
57b29be7
AC
11572003-09-03 Andrew Cagney <cagney@redhat.com>
1158
1159 * defs.h: Do not include "arch-utils.h".
1160 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1161 GDB_MULTI_ARCH_PURE.
1162 * configure.in (GDB_MULTI_ARCH): Do not define.
1163 * configure, config.in: Regenerate.
1164 * configure.tgt: Do not set variable "gdb_multi_arch".
1165 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1166 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1167 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1168 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1169 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1170 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1171 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1172 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1173 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1174 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1175 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1176 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1177 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1178 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1179 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1180 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1181 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1182 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1183
12e035e2
MC
11842003-08-30 Michael Chastain <mec@shout.net>
1185
1186 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1187 * config/m68k/nm-hp300hpux.h: Delete.
1188 * config/m68k/tm-hp300hpux.h: Delete.
1189 * config/m68k/xm-hp300hpux.h: Delete.
1190 * config/m68k/xm-hp300bsd.h: Delete.
1191 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1192 tm-hp300hpux.h, xm-hp300hpux.h.
1193 * somsolib.c: Remove comment about hp300 shared libraries.
1194
bda34dc2
MK
11952003-08-31 Mark Kettenis <kettenis@gnu.org>
1196
5bca7895
MK
1197 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1198 Only define PTRACE_GET_THREAD_AREA is not already defined.
1199 Various style fixes in code and comments and some additional
1200 spelling fixes in comments. Move after functions dealing with
1201 debug registers.
1202 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1203 Fix coding-style.
1204
bda34dc2
MK
1205 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1206 frame_unwind_register_unsigned instead of
1207 frame_unwind_unsigned_register.
1208
c890192f
MK
12092003-08-30 Mark Kettenis <kettenis@gnu.org>
1210
1211 * configure.in: Search for gethostbyname in libnsl.
1212 * configure: Regenerated.
1213
60fac5b8
MK
12142003-08-29 Mark Kettenis <kettenis@gnu.org>
1215
e294916c
MK
1216 * configure.in: Remove redundant AC_MSG_RESULT in check for
1217 uintptr_t in stdint.h.
1218 * configure: Regenerated.
1219
c40d267a
MK
1220 * amd64-nat.h (struct regcache): Add opaque declaration.
1221
60fac5b8
MK
1222 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1223 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1224 Change "register array" to "register cache" in comments.
1225 (x86_64_linux_gregset64_reg_offset): New variable.
1226 (GETREGS_SUPPLIES): Remove macro.
1227 (supply_gregset): Call amd64_supply_native_gregset instead of
1228 x86_64_linux_supply_gregset.
1229 (fill_gregset): Rename `regno' to `regnum'. Call
1230 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1231 (store_regs): Rename `regno' to `regnum'.
1232 (store_fpregs): Rename `regno' to `regnum'.
1233 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1234 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1235 Reorganize function a bit.
1236 (store_inferior_registers): Rename `regno' to `regnum'. Use
1237 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1238 Reorganize function a bit.
1239 (_initialize_x86_64_linux_nat): New function.
1240 * config/i386/x86-64linux.mh.
1241
546143b6
AC
12422003-08-29 Andrew Cagney <cagney@redhat.com>
1243
1244 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1245 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1246 (target_remove_watchpoint): Delete macro.
1247 (target_insert_watchpoint): Delete macro.
1248 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1249 (remote_mips_stopped_by_watchpoint): Delete declaration.
1250 (remote_mips_remove_watchpoint): Delete declaration.
1251 (remote_mips_set_watchpoint): Delete declaration.
1252 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1253 * remote-mips.c (_initialize_remote_mips): Set
1254 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1255 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1256 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1257 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1258 (mips_stopped_by_watchpoint): Rename
1259 remote_mips_stopped_by_watchpoint.
1260 (mips_can_hardware_watchpoint): Rename
1261 remote_mips_can_use_hardware_watchpoint, update function
1262 signature.
1263
7bace51b
MK
12642003-08-29 Mark Kettenis <kettenis@gnu.org>
1265
b0f5c6f2
MK
1266 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1267 USER_DS. We haven't given them a register number yet.
1268
2a6d284d
MK
1269 * amd64-nat.h: New file.
1270 * amd64-nat.c: New file.
1271 * amd64fbsd-nat.c: Include "amd64-nat.h".
1272 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1273 (amd64fbsd32_r_reg_offset): New variable.
1274 (supply_gregset): Simply call amd64_supply_native_gregset.
1275 (fill_gregset): Rename `regno' to `regnum'. Simply call
1276 amd64_collect_native_gregset.
1277 (fill_fpregset): Rename `regno' to `regnum'.
1278 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1279 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1280 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1281 `fpregset_t'. Call amd64_supply_native_gregset instead of
1282 supply_gregset. Call x86_64_supply_fxsave instead of
1283 supply_fpregset.
1284 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1285 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1286 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1287 `fpregset_t'. Call amd64_collect_native_gregset instead of
1288 fill_gregset. Call x86_64_collect_fxsave instead of
1289 fill_fpregset.
1290 (_initialize_am64fbsd_nat): Initialize
1291 amd64_native_gregset32_reg_offset and
1292 amd64_native_gregset64_reg_offset.
1293 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1294
a16d75cc
MK
1295 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1296 null pointer. Fix typo in comment.
1297
7bace51b
MK
1298 * regcache.c (supply_register): Reimplement to call
1299 regcache_raw_supply.
1300 (regcache_collect): Reimplement by calling regcache_raw_collect.
1301
9a661b68
MK
13022003-08-28 Mark Kettenis <kettenis@gnu.org>
1303
1304 * regcache.c (register_buffer): Consitify first argument.
1305 (regcache_raw_supply, regcache_raw_collect): New
1306 functions.
1307
e94cc8fa
DJ
13082003-08-28 Daniel Jacobowitz <drow@mvista.com>
1309
1310 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1311 by Nathan J. Williams.
1312
c64bd0ce
DJ
13132003-08-28 Daniel Jacobowitz <drow@mvista.com>
1314
1315 * lin-lwp.c (wait_lwp): New function, copied from
1316 stop_wait_callback. Clean up.
1317 (stop_wait_callback): Use wait_lwp.
1318
e5ab0dce
AC
13192003-08-28 Andrew Cagney <cagney@redhat.com>
1320
1321 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1322 flavour and disassembler options.
1323 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1324 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1325 deprecated_tm_print_insn_info.
1326
a788de9b
AC
13272003-08-27 Andrew Cagney <cagney@redhat.com>
1328
1329 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1330 Use target_read_memory.
1331 (s390_get_frame_info): Update. Do not reference
1332 deprecated_tm_print_insn_info.
1333 (s390_check_function_end, s390_is_sigreturn): Ditto.
1334
36482093
AC
13352003-08-27 Andrew Cagney <cagney@redhat.com>
1336
1337 * Makefile.in (cris-tdep.o): Update dependencies.
1338 * cris-tdep.c: Include "gdb_assert.h".
1339 (cris_gdbarch_init): Set print_insn.
1340 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1341 (cris_delayed_get_disassembler): Simplify, directly call the
1342 disassembler returned by cris_get_disassembler.
1343 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1344 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1345 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1346 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1347 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1348 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1349 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1350 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1351 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1352 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1353 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1354 (gdb_print_insn_sparc): Delete function.
1355 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1356 deprecated_tm_print_insn_info.
1357 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1358 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1359 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1360 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1361 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1362 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1363 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1364 (s390_gdbarch_init): Set print_insn.
1365
0285512f
AC
13662003-08-27 Andrew Cagney <cagney@redhat.com>
1367
1368 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1369 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1370 * infcall.c (call_function_by_hand): Convert the entry point
1371 address into a code address.
1372
cdcd5552
AC
13732003-08-27 Andrew Cagney <cagney@redhat.com>
1374
1375 * dsrec.c: Include "gdb_string.h".
1376 * Makefile.in (dsrec.o): Update dependencies.
1377
e85cddad
MC
13782003-08-27 Michael Chastain <mec@shout.net>
1379
1380 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1381
8bbfbb23
AC
13822003-08-27 Andrew Cagney <cagney@redhat.com>
1383
1384 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1385 (alpha_osf1_init_abi): Do not set call_dummy_address.
1386
ba058b66
DC
13872003-08-27 David Carlton <carlton@kealia.com>
1388
1389 From Randolph Chung <tausq@debian.org>:
1390 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1391 compiles with -Wformat-nonliteral -Werror.
1392
87f84c9d
JB
13932003-08-26 Jim Blandy <jimb@redhat.com>
1394
1395 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1396 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1397 bfd_lookup_symbol, since we only want symbols in code sections.
1398 (look_for_base): Pass zero as the SECT_FLAGS argument to
1399 bfd_lookup_symbol, since we're not concerned about which section
1400 the symbol is in.
1401
102d615a
JJ
14022003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1403
1404 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1405 we are frameless or the return address register is already known.
1406
cc7ad3ea
AC
14072003-08-26 Andrew Cagney <cagney@redhat.com>
1408
1409 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1410 in size. Add comments.
1411
af8b88dd
JJ
14122003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1413
1414 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1415 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1416
e0a4f5a1
JM
14172003-08-26 Jason Merrill <jason@redhat.com>
1418
1419 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1420 case out of #ifdef MIPS block.
1421
4ae9ee8e
DJ
14222003-08-25 Daniel Jacobowitz <drow@mvista.com>
1423
1424 PR java/1322
1425 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1426 available before calling SECT_OFF_TEXT.
3c164570 1427 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1428
004d836a
JJ
14292003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1430
1431 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1432 bof, and nat0-nat127 as pseudo-registers.
1433 (ia64_frame_cache): New struct used to cache frame info.
1434 (ia64_register_reggroup_p): New routine used to override default
1435 register grouping so registers without names are still saved and
1436 restored.
1437 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1438 pseudo values.
1439 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1440 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1441 (ia64_alloc_frame_cache): New routine to create a new
1442 ia64_frame_cache.
1443 (examine_prologue): Change prototype to add next_frame pointer.
1444 Assume frameless until otherwise proven. Verify that the cfm for
1445 current frame matches the cfm that should occur for the prologues
1446 alloc insn and if equal, mark as not frameless. At end of routine,
1447 if not frameless, calculate registers for the previous frame and store
1448 in the cache, if a cache is provided.
1449 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1450 and pass 0 for next_frame.
1451 (ia64_store_return_value): Change to use convert_typed_floating()
1452 instead of calling ia64_convert_to_raw().
1453 (ia64_extract_return_value): Change to use convert_typed_floating()
1454 instead of calling ia64_convert_to_virtual().
1455 (ia64_frame_cache): New routine to support new frame model.
1456 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1457 (ia64_frame_sniffer): Ditto.
1458 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1459 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1460 (ia64_sigtramp_frame_prev_register): Ditto.
1461 (ia64_sigtramp_frame_sniffer): Ditto.
1462 (ia64_frame_base_address): Ditto.
1463 (ia64_extract_struct_value_address): Change to issue error message.
1464 (ia64_frame_align): New routine to align sp.
1465 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1466 (ia64_push_arguments): Removed. Logic moved to
1467 ia64_push_dummy_call().
1468 (ia64_push_return_address): Ditto.
1469 (ia64_unwind_dummy_id): New function.
1470 (ia64_unwind_pc): Ditto.
1471 (ia64_convert_register_p): Ditto.
1472 (ia64_register_to_value): Ditto.
1473 (ia64_value_to_register): Ditto.
1474 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1475 (ia64_register_byte, ia64_register_raw_size): Ditto.
1476 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1477 (ia64_saved_pc_after_call): Ditto.
1478 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1479 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1480 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1481 (ia64_register_convert_to_raw): Ditto.
1482 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1483 (ia64_init_extra_frame_info): Ditto.
1484 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1485 (ia64_gdbarch_init): Remove registering of deprecated functions that
1486 are no longer used. Add registration of new gdbarch functions.
1487 Remove registering deprecated_write_sp. Replace
1488 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1489 Delete set_gdbarch_deprecated_register_convertible(),
1490 set_gdbarch_deprecated_register_convert_to_virtual(), and
1491 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1492 set_gdbarch_deprecated_register_size(),
1493 set_gdbarch_deprecated_register_bytes(),
1494 set_gdbarch_pcregnum(),
1495 set_gdbarch_deprecated_register_byte(),
1496 set_gdbarch_deprecated_register_raw_size(),
1497 set_gdbarch_deprecated_max_register_raw_size(),
1498 set_gdbarch_deprecated_register_virtual_size(),
1499 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1500 Replace set_gdbarch_deprecated_extract_return_value() with
1501 set_gdbarch_extract_return_value(). Remove calls to:
1502 set_gdbarch_deprecated_saved_pc_after_call();
1503 set_gdbarch_deprecated_frame_chain(),
1504 set_gdbarch_deprecated_frame_saved_pc(),
1505 set_gdbarch_deprecated_frame_init_saved_regs(),
1506 set_gdbarch_deprecated_get_saved_register(),
1507 set_gdbarch_deprecated_call_dummy_words(),
1508 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1509 set_gdbarch_deprecated_init_extra_frame_info(),
1510 set_gdbarch_deprecated_frame_args_address(),
1511 set_gdbarch_deprecated_frame_locals_address(),
1512 and set_gdbarch_deprecated_dummy_write_sp().
1513 Add set_gdbarch_convert_register_p(),
1514 set_gdbarch_register_to_value(),
1515 set_gdbarch_value_to_register(),
1516 set_gdbarch_push_dummy_call(),
1517 set_gdbarch_frame_align(),
1518 set_gdbarch_unwind_dummy_id(),
1519 set_gdbarch_unwind_pc(),
1520 frame_unwind_append_sniffer(),
1521 frame_unwind_append_sniffer(),
1522 and frame_base_set_default().
1523
aede7613
CD
15242003-08-25 Chris Demetriou <cgd@broadcom.com>
1525
1526 * configure.tgt: Document need for special "mipsisa64" handling.
1527 (mipsisa64*-*-linux64): Handle as target linux64.
1528 (mipsisa64*-*-*): Handle as target embed64.
1529
43c3a82e
MC
15302003-08-18 Michael Chastain <mec@shout.net>
1531
1532 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1533 objfile bug.
1534
6564f77d
MK
15352003-08-24 Mark Kettenis <kettenis@gnu.org>
1536
2de139ba
MK
1537 * i387-tdep.h: Update copyright date.
1538 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1539
6564f77d
MK
1540 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1541 CFLAGS games to reflect reality.
1542
42cf1509
AC
15432003-08-24 Andrew Cagney <cagney@redhat.com>
1544
1545 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1546 GDB_MULTI_ARCH is always non-zero.
1547 * osabi.c (_initialize_gdb_osabi): Ditto.
1548 (gdbarch_init_osabi): Ditto.
1549 * sparc-tdep.c: Ditto for #if code.
1550
0485f6ad
MK
15512003-08-23 Mark Kettenis <kettenis@gnu.org>
1552
1553 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1554 Update comments.
1555 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1556 comments.
1557 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1558 x86_64_supply_fxsave.
1559 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1560 x86_64_supply_fxsave.
1561 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1562 x86_64_supply_fxsave.
1563
c7716133
AJ
15642003-08-23 Andreas Jaeger <aj@suse.de>
1565
1566 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1567 i387_supply_fxsave.
1568
ed504bdf
MK
15692003-08-23 Mark Kettenis <kettenis@gnu.org>
1570
1571 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1572 i387_supply_register.
1573 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1574 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1575 i387_supply_fsave.
1576 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1577 i387_supply_fxsave.
1578 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1579 i387_supply_fsave.
1580 * i386bsd-nat.c (supply_fpregset): Adjust call to
1581 i387_supply_fsave.
1582 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1583 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1584 supply_fpregset.
1585 (store_inferior_registers): Remove extraneous whitespace. Call
1586 i387_fill_fsave instead of fill_fpregset.
1587 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1588 (supply_fpregset): Likewise.
1589 * i386v4-nat.c (supply_fpregset): Adjust call to
1590 i387_supply_fsave.
1591 * i386-interix-nat.c (supply_fpregset): Adjust call to
1592 i387_supply_fsave.
1593 * i386-linux-nat.c (supply_fpregset): Adjust call to
1594 i387_supply_fsave.
1595 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1596 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1597 i387supply_fsave and i387_supply_fxsave.
1598 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1599 Incorporate code from `i387_supply_register.
1600 (i387_supply_register): Remove.
1601 (i387_supply_fxsave): Add `regnum' argument.
1602 Update comments.
1603 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1604 prototype.
1605 (i387_supply_register): remove prototype.
1606 Update comments.
1607
4be5d520
MC
16082003-08-22 Michael Chastain <mec@shout.net>
1609
1610 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1611 Add lines for files in gdb/testsuite/gdb.cp/* that are
1612 still not 8.3 unique.
1613
7ed85d26
DJ
16142003-08-22 Daniel Jacobowitz <drow@mvista.com>
1615
1616 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1617 TYPE_VPTR_FIELDNO is valid.
1618
eb0d3137
MK
16192003-08-19 Mark Kettenis <kettenis@gnu.org>
1620
1621 * utils.c (set_width_command): Remove prototypes.
1622 (set_screen_size): New prototype.
1623 (init_page_info): Simplify by fetching the screen size from
1624 Readline. Call set_screen_size.
1625 (set_screen_size): New function.
1626 (set_width): Add missing whitespace in comment.
1627 (set_width_command): Call set_screen_size.
1628 (set_height_command): New function.
1629 (initialize_utils): Fix formatting. Make "set height" command
1630 call set_height_command. Remove redundant code that turns off
1631 pagination if output isn't a terminal. Remove redundant call to
1632 set_width_command.
1633
7e6d0ac8
MK
16342003-08-22 Mark Kettenis <kettenis@gnu.org>
1635
3567a8ea
MK
1636 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1637 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1638 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1639 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1640 `case' keyword.
1641 (sparc64_register_info): Give the reister with number
1642 SPARC64_STATE_REGNUM a name.
1643 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1644 %asi and %ccr.
1645 (sparc64_push_dummy_call): Take BIAS into account when checking
1646 stcak alignment.
1647 (sparc_software_single_step): Remove assertions that check whether
1648 NPC and NNPC were zero.
1649 (sparc_supply_rwindow): Make public. Merge functionality with
1650 sparc64_supply_rwindow.
1651 (sparc_fill_rwindow): Make public. Merge functionality with
1652 sparc64_fill_rwindow.
1653 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1654 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1655 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1656 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1657 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1658
7e6d0ac8
MK
1659 * reggroups.c: Add whitespace after declarations of local
1660 variables in functions.
1661
72e5f484
MC
16622003-08-21 Michael Chastain <mec@shout.net>
1663
1664 * gdbtypes.h: Change array bound type from an int to enum.
1665
435ac228
AC
16662003-08-21 Andrew Cagney <cagney@redhat.com>
1667
1668 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1669 * config/sparc/tm-sparc.h: Ditto.
1670 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1671 unconditionally.
1672 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1673
0d0e1a63
MK
16742003-07-13 Mark Kettenis <kettenis@gnu.org>
1675
1676 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1677 (register_objfile_data, set_objfile_data, objfile_data): New
1678 prototypes.
1679 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1680 prototypes.
1681 (allocate_objfile): Call objfile_alloc_data.
1682 (free_objfile): Call objfile_free_data.
1683 (struct objfile_data): New.
1684 (struct objfile_data_registration): New.
1685 (struct objfile_data_registry): New.
1686 (objfile_data_registry): New variable.
1687 (register_objfile_data): New function.
1688 (objfile_alloc_data, objfile_free_data): New functions.
1689 (set_objfile_data, objfile_data): New functions.
1690 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1691 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1692 (_initialize_dwarf2_frame): New function and prototype.
1693
d90cf509
AC
16942003-08-21 Andrew Cagney <cagney@redhat.com>
1695
1696 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1697 a specific architecture.
1698 * arch-utils.h (set_architecture_from_arch_mach): Delete
1699 declaration.
1700 (target_architecture_hook): Delete declaration.
1701 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1702 (default_float_format): Assume GDB_MULTI_ARCH.
1703 (default_double_format): Assume GDB_MULTI_ARCH.
1704 (set_endian_from_file): Delete function.
1705 (arch_ok): Delete function.
1706 (set_arch): Delete function.
1707 (set_architecture_from_arch_mach): Delete function.
1708 (set_architecture_from_file): Delete function.
1709 (set_architecture): Assume GDB_MULTI_ARCH.
1710 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1711
8b39fe56
MK
17122003-08-21 Mark Kettenis <kettenis@gnu.org>
1713
1714 Rewrite FreeBSD/sparc64 native configuration.
1715 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1716 * sparc64fbsd-nat.c: New file.
1717 * sparc64fbsd-tdep.c: New file.
1718 * sparc64-tdep.c sparc64-tdep.h: New files.
1719 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1720 sparc64fbsd-tdep.o): New dependencies.
1721 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1722 and sparc64fbsd-tdep.c.
1723 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1724 * config/sparc/fbsd.mh: Remove copyright notice.
1725 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1726 sparcbsd-nat.o.
1727 * config/sparc/fbsd.mt: Remove copyright notice.
1728 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1729 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1730 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1731 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1732 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1733 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1734 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1735 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1736 "sparc/tm-sp64.h".
1737 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1738 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1739
a7f19c79
MC
17402003-08-21 Michael Chastain <mec@shout.net>
1741
1742 * symtab.h: Add doco on the space critical structures and
1743 some measurements of space usage.
1744
da08ea5b
MS
17452003-08-21 Michael Snyder <msnyder@redhat.com>
1746
1747 * tracepoint.c (trace_dump_command): Trace break address
1748 is subject to DECR_PC_AFTER_BREAK.
1749 (set_traceframe_context): Make "trace_line" an int.
1750 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1751
6df2bf50
MS
17522003-08-20 Michael Snyder <msnyder@redhat.com>
1753
1754 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1755 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1756 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1757 argument passing.
1758 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1759 functions, replace sh_push_dummy_call.
1760 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1761
0955bbf0
MC
17622003-08-20 Michael Chastain <mec@shout.net>
1763
1764 * gdbtypes.h (struct main_type): Rearrange to save space.
1765
260a4188
MS
17662003-08-20 Michael Snyder <msnyder@redhat.com>
1767
1768 * trad-frame.c: Comment typo fix.
1769
8baa6f92
KB
17702003-08-20 Michael Snyder <msnyder@redhat.com>
1771 Kevin Buettner <kevinb@redhat.com>
1772
1773 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1774 (frv_frame_init_saved_regs): Add declaration.
1775 (frame_extra_info): Add new field ``saved_regs''.
1776 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1777 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1778 Update frame related code.
1779 (frv_extract_struct_value_address): Adjust formatting.
1780 * Makefile.in (frv-tdep.o): Update dependencies.
1781 * config/frv/tm-frv.h (target_insert_watchpoint)
1782 (target_remove_watchpoint, target_insert_hw_breakpoint)
1783 (target_remove_hw_breakpoint): Delete these macros.
1784 (remote_insert_watchpoint, remote_remove_watchpoint)
1785 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1786 these declarations.
1787
87193939
MC
17882003-08-20 Michael Chastain <mec@shout.net>
1789
1790 * defs.h (ENUM_BITFIELD): New macro.
1791 * symtab.h (ENUM_BITFIELD): Use it.
1792 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1793
062103ba
SA
17942003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1795
1796 * MAINTAINERS (write after approval): Add myself.
1797
8b148df9
AC
17982003-08-18 Andrew Cagney <cagney@redhat.com>
1799
1800 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1801 * gdbarch.h, gdbarch.c: Re-generate.
1802 * infcall.c (call_function_by_hand): Adjust the SP by
1803 frame_red_zone_size before allocating any stack space.
1804 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1805 * x86-64-tdep.c (x86_64_frame_align): New function.
1806 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1807
1808 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1809 Remove code adjusting SP so that it skips over the Red Zone.
1810
954a4db8
MK
18112003-08-18 Mark Kettenis <kettenis@gnu.org>
1812
1813 * NEWS (New native configurations): Mention FreeBSD/amd64.
1814
1a241548
AC
18152003-08-18 Andrew Cagney <cagney@redhat.com>
1816
1817 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1818 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1819 "m68k_frame_p".
1820 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1821
f82b2acd
MK
18222003-08-18 Mark Kettenis <kettenis@gnu.org>
1823
1824 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1825
4056d258
ML
18262003-08-18 Michal Ludvig <mludvig@suse.cz>
1827
1828 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1829 Define.
1830 * i386-linux-nat.c: Include "linux-nat.h".
1831 (child_post_startup_inferior): New function.
1832
99ab4326
MK
18332003-08-18 Mark Kettenis <kettenis@gnu.org>
1834
1835 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1836 at the start of a frameless function. This probably fixes PR
1837 backtrace/1338.
1838
c8d5f0d6
MC
18392003-08-17 Michael Chastain <mec@shout.net>
1840
1841 * symfile.c (find_sym_fns): Remove special case for apollo target.
1842
9016a515
DJ
18432003-08-17 Daniel Jacobowitz <drow@mvista.com>
1844
1845 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1846 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1847 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1848 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1849 (linux_supports_tracevforkdone): New function.
1850 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1851 TRACEVFORKDONE.
1852 (child_follow_fork): Handle vfork.
1853 (linux_handle_extended_wait): Likewise. Also handle exec.
1854 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1855 * NEWS: Mention fork tracing.
1856
c538c11c
DJ
18572003-08-17 Daniel Jacobowitz <drow@mvista.com>
1858
1859 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1860
4de4c07c
DJ
18612003-08-17 Daniel Jacobowitz <drow@mvista.com>
1862
1863 * Makefile.in (i386-linux-nat.o): Update dependencies.
1864 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1865 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1866 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1867 * i386-linux-nat.c: Include "linux-nat.h".
1868 (child_post_startup_inferior): New function.
1869 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1870 * infptrace.c (kill_inferior): Wrap in #ifdef.
1871 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1872 attaching to each LWP.
1873 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1874 (init_lin_lwp_ops): Fill in some more operations.
1875 * linux-nat.h (linux_enable_event_reporting)
1876 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1877 prototypes.
1878 * linux-nat.c (linux_enable_event_reporting): New function.
1879 (child_post_attach, linux_child_post_startup_inferior)
1880 (child_post_startup_inferior, child_follow_fork)
1881 (linux_handle_extended_wait, kill_inferior): New functions.
1882
7996bcec
AC
18832003-08-16 Andrew Cagney <cagney@redhat.com>
1884
1885 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1886 * gdbarch.h, gdbarch.c: Re-generate.
1887
3d48a7a0
MK
18882003-08-16 Mark Kettenis <kettenis@gnu.org>
1889
1890 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1891
7989c619
AC
18922003-08-16 Andrew Cagney <cagney@redhat.com>
1893
1894 * NEWS: Mention that "set prompt-escape-char" was deleted.
1895 * top.c (get_prompt_1): Delete function.
1896 (gdb_prompt_escape):
1897 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1898 prompt-escape-char" command.
1899 (MAX_PROMPT_SIZE): Delete macro.
1900 (get_prompt): Simplify, do not call get_prompt_1.
1901
07978cd8
AC
19022003-08-16 Andrew Cagney <cagney@redhat.com>
1903
1904 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1905 -Werror. -Wformat-nonliteral problems.
1906
3ff7cf9e
JB
19072003-08-15 J. Brobecker <brobecker@gnat.com>
1908
1909 Further multiarching work mostly for hppa64-*-hpux11:
1910 * hppa-tdep.h: New file.
1911 * hppa-tdep.c: #include hppa-tdep.c.
1912 (hppa32_num_regs): Renamed from hppa_num_regs.
1913 (hppa64_num_regs): New constant.
1914 (hppa64_call_dummy_breakpoint_offset): New constant.
1915 (hppa32_call_dummy_length): New constant.
1916 (hppa64_call_dummy_length): New constant.
1917 (hppa32_stack_align): Make name 32bit explicit.
1918 (hppa32_register_virtual_type): Likewise.
1919 (hppa32_extract_return_value): Likewise.
1920 (hppa32_use_struct_convention): Likewise.
1921 (hppa32_store_return_value): Likewise.
1922 (hppa64_register_virtual_type): New function.
1923 (hppa64_extract_return_value): New function.
1924 (hppa64_use_struct_convention): New function.
1925 (hppa64_store_return_value): New function.
1926 (hppa_frame_locals_address): Remove declaration, function does
1927 not exist anymore.
1928 (hppa_register_byte): Add support for PA64 ABI.
1929 (hppa_gdbarch_init): Add support for PA64 ABI.
1930 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1931 Make name 32bit explicit.
1932 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1933 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1934 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1935 (hppa64_hpux_frame_base_before_sigtramp): New function.
1936 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1937 * config/pa/tm-hppa64.h: Remove macros that are no longer
1938 necessary now that the gdbarch vector is properly setup.
1939 Transform some macros into function calls. Some minor cleanup.
1940 * config/pa/tm-hppah.h: Update function calls in macros
1941 following the function renaming in hppa-hpux-tdep.c.
1942 * Makefile.in (hppa_tdep_h): New variable.
1943 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1944
5d05ca6d
MS
19452003-08-14 Michael Snyder <msnyder@redhat.com>
1946
1947 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1948
37ba2569
JB
19492003-08-13 J. Brobecker <brobecker@gnat.com>
1950
1951 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1952 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1953 routine.
1954
aed7f26a
MS
19552003-08-13 Michael Snyder <msnyder@redhat.com>
1956
1957 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1958 (frv_saved_pc_after_call): Use deprecated ftype.
1959 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1960 (frv_remote_translate_xfer_address): Remove.
1961 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1962
752d4ac1
JB
19632003-08-13 J. Brobecker <brobecker@gnat.com>
1964
1965 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1966 initialization after the common gdbarch initialization, not before.
1967
1426ac1d
JB
19682003-08-13 J. Brobecker <brobecker@gnat.com>
1969
1970 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1971 (ADDR_BITS_REMOVE): Remove, redundant.
1972
b6fbdd1d
JB
19732003-08-13 J. Brobecker <brobecker@gnat.com>
1974
1975 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1976 gdbarch method to clear the 2 low bits of text addresses.
1977
44160db3
AC
19782003-08-12 Andrew Cagney <cagney@redhat.com>
1979
1980 * Makefile.in (dsrec.o): Update dependencies.
1981 * dsrec.c: Include "gdb_assert.h".
1982 (make_srec): Use snprintf instead of sprintf, use a literal format
1983 string.
1984
bcf7d3ca
AC
19852003-08-12 Andrew Cagney <cagney@redhat.com>
1986
1987 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1988 FRAME_OBSTACK_ZALLOC.
1989
49ed40de
KB
19902003-08-12 Kevin Buettner <kevinb@redhat.com>
1991
1992 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1993 SSE registers.
1994
b246147c
MK
19952003-08-10 Mark Kettenis <kettenis@gnu.org>
1996
1997 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1998 amd64fbsd_sc_reg_offset): Add extern declarations.
1999 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2000 declarations.
2001
d95fdc0d
BE
20022003-08-11 Ben Elliston <bje@wasabisystems.com>
2003
2004 * MAINTAINERS (write after approval): Update my mail address.
2005
cf6a0e73
AC
20062003-08-10 Andrew Cagney <cagney@redhat.com>
2007
2008 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2009
f837910f
MK
20102003-08-10 Mark Kettenis <kettenis@gnu.org>
2011
e2dbbd2d
MK
2012 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2013 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2014 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2015 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2016 i386bsd_sc_reg_offset): Add extern declarations.
2017 * i386obsd-nat.c: Include "i386-tdep.h"
2018 (_initialize_i386obsd_nat): Remove extern declarations.
2019 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2020 declarations.
2021 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2022 declarations.
2023
f837910f
MK
2024 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2025 instead of frame_read_register.
2026 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2027 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2028 SP_REGNUM.
2029 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2030 instead of frame_unwind_unsigned_register. Use
2031 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2032 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2033 instead of read_register. Use builtin_type_void_data_ptr instead
2034 of builtin_type_void_func_ptr when extracting the address of the
2035 jmp_buf.
2036 (i386_extract_return_value, i386_store_return_value,
2037 i386_pseudo_register_read, i386_pseudo_register_write): Use
2038 register_size instead REGISTER_RAW_SIZE.
2039
edcf254d
AC
20402003-08-10 Andrew Cagney <cagney@redhat.com>
2041
2042 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2043 sprintf. Make "name" constant.
2044
26604a34
MK
20452003-08-10 Mark Kettenis <kettenis@gnu.org>
2046
192285c6
MK
2047 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2048 instead of frame_read_register.
f837910f
MK
2049 (i387_print_float_info): Use get_frame_register and
2050 get_frame_register_unsigned instead of frame_register_read.
192285c6 2051
f0925262
MK
2052 * i386fbsd-nat.c: Include "i386-tdep.h".
2053 (child_resume): Make `eflags' an ULONGEST. Use
2054 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2055 instead of register_read and register_write.
2056
a144416f
MK
2057 * i386bsd-nat.c (fetch_inferior_registers,
2058 store_inferior_registers): Don't use && at the end of a line.
2059 (_initialize_i386bsd_nat): Fix typo.
2060
fec74868
MK
2061 * frame.c (_initialize_frame): Add missing backslash.
2062
87232496
MK
2063 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2064 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2065 and supply_register instead of manipulating the register buffer
2066 directly.
2067
c9b9de0b
MK
2068 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2069 * config/i386/nm-i386sol2.h
2070 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2071
26604a34
MK
2072 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2073 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2074 instructions that GCC likes to mingle into the prologue. Fixes
2075 gdb/1253 and gdb/1255.
2076
25d29d70
AC
20772003-08-09 Andrew Cagney <cagney@redhat.com>
2078
2079 Fix GDB PR cli/926.
2080 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2081 * command.h (add_setshow_uinteger_cmd): Declare.
2082 * frame.c (set_backtrace_cmd): New function.
2083 (show_backtrace_cmd): New function.
2084 * frame.c (_initialize_frame): Replace "set/show
2085 backtrace-below-main" with "set/show backtrace past-main". Add
2086 command "set/show backtrace limit".
2087 (backtrace_past_main): Rename "backtrace_below_main".
2088 (backtrace_limit): New variable.
2089 (get_prev_frame): Update. Check the backtrace_limit.
2090
9ebf4acf
AC
20912003-08-09 Andrew Cagney <cagney@redhat.com>
2092
2093 * defs.h (xstrprintf): Declare.
2094 * utils.c (xstrprintf): New function.
2095 * breakpoint.c (insert_breakpoints): Replace sprintf and
2096 non-literal format strings, with xstrprintf and cleanups.
2097 (delete_breakpoint,breakpoint_re_set): Ditto.
2098 (commands_command, insert_breakpoints): Ditto.
2099 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2100 (break_at_finish_command_1): Ditto.
2101
3771659b
AC
21022003-08-09 Andrew Cagney <cagney@redhat.com>
2103
2104 * MAINTAINERS (language support): List Adam Fedor as Objective C
2105 maintainer.
2106
b4263afa
JB
21072003-08-08 J. Brobecker <brobecker@gnat.com>
2108
2109 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2110 are now multiarched.
2111
d84defb1
JB
21122003-08-08 J. Brobecker <brobecker@gnat.com>
2113
2114 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2115 longer necessary now that hppa64 is partially multiarch'ed.
2116
f786f615
AC
21172003-08-08 Andrew Cagney <cagney@redhat.com>
2118
2119 * interps.c (interp_set): Check for a NULL "old_interp".
2120
c938e9b0
L
21212003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2122
2123 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2124 (install-only): Support DESTDIR.
2125 (uninstall): Likewise.
2126 (install-gdbtk): Likewise.
2127
9a146a11
EZ
21282003-08-08 Elena Zannoni <ezannoni@redhat.com>
2129
2130 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2131 contains something meaningful at all times.
2132
2133Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2134
62599e99 2135 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2136
56296155
BC
2137Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2138
62599e99 2139 * MAINTAINERS (write after approval): Added self.
56296155 2140
9710e734
AC
21412003-08-07 Andrew Cagney <cagney@redhat.com>
2142
2143 * inferior.h (AT_SYMBOL): Define.
2144 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2145 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2146 * mips-tdep.c (mips_call_dummy_address): Delete function.
2147 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2148 set call_dummy_address.
2149
98b3ab73
AC
21502003-08-07 Andrew Cagney <cagney@redhat.com>
2151
2152 * language.c (op_error): Delete function.
2153 (binop_type_check): Delete function.
2154 * language.h (type_op_error, range_op_error): Delete macros.
2155 (op_error): Delete declaration.
2156
2fcf52f0
AC
21572003-08-07 Andrew Cagney <cagney@redhat.com>
2158
2159 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2160
abd4220e 21612003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2162
abd4220e 2163 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2164 (x86_64_push_arguments): Skip the red zone.
abd4220e 2165
9dd5f34f
AC
21662003-08-05 Andrew Cagney <cagney@redhat.com>
2167
2168 * reggroups.c (reggroup_next): Check for the final entry.
2169
e5e78edc
AC
21702003-08-04 Andrew Cagney <cagney@redhat.com>
2171
ab4e3d93
AC
2172 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2173 * cli/cli-script.c (define_command): Call query directly, instead
2174 of passing it a buffer.
2175 * ocd.c (ocd_error): Pass error a constant format string.
2176 * remote-mips.c (mips_error): Use fputs_filtered.
2177
1062ca82
AC
2178 * solib-svr4.c (_initialize_svr4_solib): Update
2179 register_gdbarch_data call.
2180 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2181
fcc1c85c
AC
2182 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2183 (register_gdbarch_data): Delete "free" parameter. Update
2184 comments.
2185 * gdbarch.h, gdbarch.c: Re-generate.
2186 * reggroups.c (_initialize_reggroup): Update.
2187 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2188 * frame-base.c (_initialize_frame_base): Update.
2189 * frame-unwind.c (_initialize_frame_unwind): Update.
2190 * user-regs.c (_initialize_user_regs): Update.
2191 * remote.c (_initialize_remote): Update.
2192 * regcache.c (_initialize_regcache): Update.
2193
116f06ea
AC
2194 * regcache.c (xfree_regcache_descr): Delete function.
2195 (_initialize_regcache): Update call to register_gdbarch_data.
2196 (init_regcache_descr, init_legacy_regcache_descr): Use
2197 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2198
e5e78edc
AC
2199 * remote.c (free_remote_state): Delete function.
2200 (_initialize_remote): Update register_gdbarch_data.
2201 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2202 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2203
6c7d17ba
AC
22042003-08-04 Andrew Cagney <cagney@redhat.com>
2205
2206 * reggroups.c (struct reggroup_el): Define.
2207 (struct reggroups): Delete field "nr_group". Replace array
2208 "group" with a "first" to "last" linked list.
2209 (reggroups_init): Update. Allocate using gdbarch's obstack.
2210 (reggroups_free): Delete function.
2211 (add_group): Update. Add "el" parameter.
2212 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2213 (default_groups): Update.
2214 (reggroup_next): Replace reggroups.
2215 (reggroups_dump): Update.
2216 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2217 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2218 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2219
89b7795b
DJ
22202003-08-04 Daniel Jacobowitz <drow@mvista.com>
2221
2222 * Makefile.in (tui-interp.o): Update dependencies.
2223
306d9ac5
DC
22242003-08-04 David Carlton <carlton@kealia.com>
2225
2226 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2227 to internal_error call.
2228 * source.c (forward_search_command): Add "%s" format argument.
2229 (reverse_search_command): Ditto.
2230 * top.c (quit_confirm): Ditto.
2231 * cli/cli-setshow.c (do_setshow_command): Ditto.
2232 * cp-valprint.c (cp_print_class_method): Replace
2233 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2234 (cp_print_class_member): Ditto.
2235 * event-top.c (command_line_handler): Ditto.
2236 * linux-proc.c (linux_info_proc_cmd): Ditto.
2237 * p-typeprint.c (pascal_type_print_base): Ditto.
2238 * p-valprint.c (pascal_object_print_class_method): Ditto.
2239 (pascal_object_print_class_member): Ditto.
2240 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2241 * remote.c (remote_cisco_section_offsets): Ditto.
2242 * top.c (command_line_input): Ditto.
2243 * utils.c (vwarning,error_stream,quit): Ditto.
2244 * valprint.c (print_floating,print_binary_chars)
2245 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2246
57bfe177
AC
22472003-08-04 Andrew Cagney <cagney@redhat.com>
2248
2249 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2250
e546b999
AC
22512003-08-02 Andrew Cagney <cagney@redhat.com>
2252
2253 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2254 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2255 amd64fbsd-nat.c.
2256
91092ee5
AC
22572003-08-02 Andrew Cagney <cagney@redhat.com>
2258
2259 * Makefile.in: Update all dependencies and definitions.
2260
889f28e2
AF
22612003-08-02 Adam Fedor <fedor@gnu.org>
2262
2263 * linespec.c (is_objc_method_format): New function
2264 (decode_line_1, locate_first_half): Use it.
2265 Fixes PR objc/1298
2266
880bc914
AC
22672003-08-01 Andrew Cagney <cagney@redhat.com>
2268
2269 * NEWS: Mention that m32r is multi-arch.
2270 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2271 * configure.tgt: Recognize m32r-*-*.
2272 * config/m32r/tm-m32r.h: Delete file.
2273 * config/m32r/m32r.mt: New file.
2274 * m32r-rom.c (m32r_upload_command): Use hostent only when
2275 gethostname succeeds, in order to avoid a compilation
2276 warning.
2277 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2278 compiler warning.
2279
19f59343
MS
22802003-08-01 Michael Snyder <msnyder@redhat.com>
2281
2282 * sh-tdep.c (sh_frame_align): New gdbarch method.
2283 (sh_gdbarch_init): Set up frame_align method.
2284
4e7d7511
MS
22852003-07-31 Michael Snyder <msnyder@redhat.com>
2286
2287 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2288 which is already covered by the new frames infrastructure.
2289
63022984
AC
22902003-07-31 Andrew Cagney <cagney@redhat.com>
2291
2292 * user-regs.c (struct user_reg): Add "next" link.
2293 (struct user_regs): Replace "user" with "first" and "last" links.
2294 (append_user_reg): Add pre-allocated "reg" parameter.
2295 (builtin_user_regs): Provide initial value for "last".
2296 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2297 (user_regs_init): Allocate memory from the gdbarch obstack.
2298 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2299 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2300 linked list.
2301 (usernum_to_user_reg): New function.
2302 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2303 (value_of_user_reg): Use usernum_to_user_reg.
2304 (user_regs_free): Delete function.
2305 (_initialize_user_regs): Update register_gdbarch_data call.
2306
7cf6e574
DJ
23072003-07-31 Daniel Jacobowitz <drow@mvista.com>
2308
2309 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2310
c48a845b
MS
23112003-07-30 Michael Snyder <msnyder@redhat.com>
2312
4e7d7511 2313 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2314 * infcall.c (call_function_by_hand): Pass struct_addr to
2315 value_being_returned.
2316 * infcmd.c (print_return_value): Pass zero as struct_addr.
2317 * values.c (value_being_returned): If struct_addr is passed,
2318 use it instead of trying to recover it from the inferior.
2319
f0d8db19
KB
23202003-07-30 Kevin Buettner <kevinb@redhat.com>
2321
2322 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2323 the prologue analyzer won't need to attempt to extract the pc
2324 value from the woefully incomplete dummy frame.
2325 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2326 possible. Disable code which modifies the frame.
2327
e5c113a1
AC
23282003-07-28 Andrew Cagney <cagney@redhat.com>
2329
2330 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2331 to level 2.
2332 (annotate_breakpoints_table, annotate_record): Ditto.
2333 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2334 (annotate_field_name_end, annotate_field_value): Ditto.
2335 (annotate_field_end, annotate_frame_source_begin): Ditto.
2336 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2337 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2338 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2339 (annotate_frame_address_end, annotate_frame_address): Ditto.
2340 (annotate_frame_args, annotate_frame_end): Ditto.
2341 (annotate_frame_where, annotate_arg_begin): Ditto.
2342 (annotate_arg_name_end, annotate_arg_value): Ditto.
2343 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2344 (annotate_function_call, annotate_signal_name): Ditto.
2345 (annotate_signal_string, annotate_signal_name_end): Ditto.
2346 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2347 (annotate_value_begin, annotate_value_history_value): Ditto.
2348 (annotate_value_history_end, annotate_value_end): Ditto.
2349 (annotate_display_begin, annotate_display_number_end): Ditto.
2350 (annotate_display_format, annotate_display_expression): Ditto.
2351 (annotate_display_expression_end, annotate_display_value): Ditto.
2352 (annotate_display_end, annotate_array_section_begin): Ditto.
2353 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2354 (annotate_elt, annotate_array_section_end): Ditto.
2355
bb1db049
AC
23562003-07-28 Andrew Cagney <cagney@redhat.com>
2357
2358 * regcache.c (struct regcache_descr): Update comments on
2359 nr_raw_registers.
2360 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2361 sizeof_raw_register_valid_p.
2362 (init_regcache_descr): Set nr_raw_registers and
2363 sizeof_raw_register_valid_p before calling
2364 init_legacy_regcache_descr.
2365
20e6603c
AC
23662003-07-28 Andrew Cagney <cagney@redhat.com>
2367
2368 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2369 MOD NUM_REGS.
2370
db742940
DJ
23712003-07-28 Daniel Jacobowitz <drow@mvista.com>
2372
2373 * thread.c (info_threads_command): Use get_selected_frame ().
2374 Check that there is at least one non-sentinel frame.
2375
ce7f4371
SC
23762003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2377
2378 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2379 (m68hc11_pop_frame): Remove.
2380 (m68hc11_frame_saved_pc): Remove.
2381 (m68hc11_frame_chain): Remove.
2382 (m68hc11_frame_init_saved_regs): Remove.
2383 (m68hc11_init_extra_frame_info): Remove.
2384 (m68hc11_store_struct_return): Remove.
2385 (m68hc11_saved_pc_after_call): Remove.
2386
1ea653ae
SC
23872003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2388
2389 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2390 frame unwind information.
2391 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2392 and adapted for frame unwinding.
2393 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2394 (m68hc11_unwind_pc): New function.
2395 (m68hc11_frame_unwind_cache): New function to analyze frames.
2396 (m68hc11_frame_this_id): New function to create new frame struct.
2397 (m68hc11_frame_prev_register): New function to unwind a register from
2398 the frame.
2399 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2400 (m68hc11_frame_p): New function for the above.
2401 (m68hc11_frame_base_address): New function to return fp of frame.
2402 (m68hc11_frame_args_address): Update for frame.
2403 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2404 (m68hc11_unwind_sp): New function.
2405 (m68hc11_unwind_dummy_id): New function.
2406 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2407 calls.
2408
c8a7f6ac
SC
24092003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2410
2411 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2412 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2413 when we are beyond the current pc.
2414
3dc990bf
SC
24152003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2416
2417 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2418 from m68hc11_push_arguments.
2419 (m68hc11_push_arguments): Remove.
2420 (m68hc11_push_return_address): Remove.
2421 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2422 handlers; remove deprecated_extra_stack_alignment_needed.
2423
222e5d1d
AC
24242003-07-27 Andrew Cagney <cagney@redhat.com>
2425
2426 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2427 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2428 REAL_PC and not the pointer.
2429 * hppa-hpux-tdep.c: Include frame.h
2430
a7e9a47e
AC
24312003-07-27 Andrew Cagney <cagney@redhat.com>
2432
2433 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2434 GDB_MULTI_ACH_PARTIAL.
2435
7e3dd49e
AC
24362003-07-27 Andrew Cagney <cagney@redhat.com>
2437
2438 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2439 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2440 operator at start and not end of line.
2441 (decode_prologue): Ditto.
2442 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2443 frame_unwind_register_unsigned instead of
2444 frame_unwind_unsigned_register.
2445 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2446 read_register.
2447 (m32r_push_dummy_call): Use register_size instead of
2448 REGISTER_RAW_SIZE.
2449 (m32r_frame_sniffer): Replace m32r_frame_p.
2450 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2451 * m32r-rom.c (report_transfer_performance): Delete extern
2452 declaration.
2453 (m32r_load, m32r_upload_command): Use print_transfer_performance
2454 instead of report_transfer_performance.
2455 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2456 / add_show_from_set.
2457
0880807f
AC
24582003-07-26 Andrew Cagney <cagney@redhat.com>
2459
2460 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2461 store_return_value and extract_struct_value_address.
2462
64ae9269
DJ
24632003-07-26 Daniel Jacobowitz <drow@mvista.com>
2464
2465 PR c++/1267
2466 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2467 NULL, default to the section containing PC.
2468
e286caf2
SC
24692003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2470
2471 * NEWS: Mention "regs" deprecated for m68hc11 too.
2472
2473 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2474 (m68hc11_print_register): New function to print out one register.
2475 (m68hc11_print_registers_info): New function to print registers.
2476 (show_regs): Deprecate and use the above.
2477 (m68hc11_gdbarch_init): Install the print_registers_info.
2478
705b278b
JJ
24792003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2480
2481 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2482 that we have a SIGTRAP before returning non-zero.
2483
63cd4198
EZ
24842003-07-23 Michal Ludvig <mludvig@suse.cz>
2485 Elena Zannoni <ezannoni@redhat.com>
2486
2487 * linespec.c (decode_line_2): Avoid crash if
2488 find_function_start_sal() returns empty record.
2489
6926787d
AS
24902003-07-23 Andreas Schwab <schwab@suse.de>
2491
2492 * ia64-tdep.c (ia64_print_insn): New function.
2493 (ia64_gdbarch_init): Set print_insn to it.
2494 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2495 deprecated_tm_print_insn_info.
2496
708cc1b6
MS
24972003-07-22 Michael Snyder <msnyder@redhat.com>
2498
2499 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2500 handle 8-bit returns (long long).
2501 (h8300h_extract_return_value): Ditto.
2502 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2503
aebd7893
AC
25042003-07-22 Andrew Cagney <cagney@redhat.com>
2505
2506 * gdbarch.c Include "gdb_obstack.h".
2507 (struct gdbarch): Add an "obstack".
2508 (alloc_gdbarch_data): Allocate the gdbarch data using
2509 GDBARCH_OBSTACK_CALLOC.
2510 (free_gdbarch_data): Delete function.
2511 (gdbarch_obstack_zalloc): New function.
2512 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2513 Assert that the architecture is not initialized.
2514 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2515 vector from the obstack.
2516 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2517 architecture obstack.
2518 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2519 (set_gdbarch_data): Assert that the data is not initialized.
2520 (struct gdbarch_data): Delete member "free".
2521 (register_gdbarch_data): Do not initialize "free".
2522 * gdbarch.h, gdbarch.c: Re-generate.
2523
153721e6
AC
25242003-07-22 Andrew Cagney <cagney@redhat.com>
2525
2526 * configure.in (build_warnings): Add -Wformat-nonliteral.
2527 * configure: Re-generate.
2528
c193f044 25292003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2530
2531 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2532
c3228f12
EZ
25332003-07-22 Elena Zannoni <ezannoni@redhat.com>
2534
2535 * findvar.c (read_var_value): Remove case for thread local storage
2536 variables. It is now entirely handled by the dwarf2 location
2537 expression code.
2538 * printcmd.c (address_info): Ditto.
2539 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2540 enumeration value.
2541 (struct symbol): Remove objfile field, which was used by
2542 LOC_THREAD_LOCAL_STATIC only.
2543 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2544 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2545 usage of objfile pointer.
2546 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2547 thread local variables.
2548 Add include of objfiles.h.
2549 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2550 storage variables.
2551 * Makefile.in (dwarf2loc.o): Update dependencies.
2552
aef9bcd2
AC
25532003-07-22 Andrew Cagney <cagney@redhat.com>
2554
2555 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2556 get_frame_base.
2557 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2558 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2559 (struct value): Add opaque declaration.
2560 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2561
d95a8903
AC
25622003-07-21 Andrew Cagney <cagney@redhat.com>
2563
2564 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2565 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2566
4db73d49
SC
25672003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2568
2569 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2570 regcache_cooked_read_unsigned instead of read_register.
2571 (m68hc11_saved_pc_after_call): Likewise.
2572 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2573 instead of write_register.
2574 (m68hc11_register_type): New function.
2575 (m68hc11_register_virtual_type): Remove.
2576 (m68hc11_store_return_value): Convert to use the regcache.
2577 (m68hc11_extract_struct_value_address): Likewise.
2578 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2579 m68hc11_register_type; undeprecate store_return_value and
2580 extract_struct_value_address.
2581
ef2b8fcd
SC
25822003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2583
2584 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2585 and translate to use regcache.
2586 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2587
625b0b97
AC
25882003-07-18 Andrew Cagney <cagney@redhat.com>
2589
2590 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2591 * gdbarch.h, gdbarch.c: Re-generate.
2592 * i386-tdep.c (i386_gdbarch_init): Do not set
2593 DWARF2_BUILD_FRAME_INFO.
2594 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2595 unconditionally.
2596 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2597 DWARF2_BUILD_FRAME_INFO.
2598
22b0d388
AC
25992003-07-18 Andrew Cagney <cagney@redhat.com>
2600
2601 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2602 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2603
1ce5d6dd
AC
26042003-07-18 Andrew Cagney <cagney@redhat.com>
2605
2606 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2607 frame_unwind_address_in_block, instead of frame_pc_unwind.
2608 (dwarf2_frame_cache): Ditto.
2609
e6e5e94c
AC
26102003-07-18 Andrew Cagney <cagney@redhat.com>
2611
2612 * user-regs.h (struct gdbarch): Declare opaque.
2613 * ui-out.h (struct ui_file): Declare opaque.
2614 * dwarf2-frame.h (struct frame_info): Declare opaque.
2615
5483d879
KW
26162003-07-18 Kris Warkentin <kewarken@qnx.com>
2617
2618 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2619 #include "...".
2620 (procfs_meminfo): Change strerror to safe_strerror.
2621 (procfs_can_run): Remove K&R badness.
2622
278a7cf7
MS
26232003-07-17 Michael Snyder <msnyder@redhat.com>
2624
2625 * remote-sim.c: Comment typo fix.
2626
606e3b82
AC
26272003-07-17 Andrew Cagney <cagney@redhat.com>
2628
2629 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2630 configure.
2631 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2632 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2633 GDB_MULTI_ARCH_PARTIAL.
2634
c43af07c
EZ
26352003-07-17 Elena Zannoni <ezannoni@redhat.com>
2636
2637 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2638 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2639 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2640
3b85b0f1
TR
26412003-07-16 Theodore A. Roth <troth@openavr.org>
2642
2643 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2644 found.
2645 (avr_frame_unwind_cache): Don't unwind FP for main.
2646 Update a comment.
2647 Save the computed prev_sp.
2648 (avr_saved_regs_unwinder): Remove function.
2649 (avr_frame_prev_register): Use PC unwind logic from
2650 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2651
336d1bba
AC
26522003-07-16 Andrew Cagney <cagney@redhat.com>
2653
2654 * frame-base.h (frame_base_p_ftype): Delete definition.
2655 (frame_base_append_predicate): Delete declaration.
2656 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2657 (frame_unwind_append_predicate): Delete declaration.
2658 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2659 (append_predicate): Delete parameter "p".
2660 (frame_unwind_append_predicate): Delete function.
2661 (frame_unwind_append_sniffer): Update call to append_predicate.
2662 (frame_unwind_free): Delete function.
2663 (_initialize_frame_unwind): Pass NULL as "free" to
2664 register_gdbarch_data.
2665 (frame_unwind_init): Append the dummy_frame_sniffer.
2666 (frame_unwind_find_by_frame): Simplify.
2667 * frame-base.c (struct frame_base_table): Delete field "p".
2668 (append_predicate): Delete parameter "p".
2669 (frame_base_append_predicate): Delete function.
2670 (frame_base_append_sniffer): Update call to append_predicate.
2671 (frame_base_free): Delete function.
2672 (frame_base_find_by_frame): Simplify.
2673 (_initialize_frame_base): Pass NULL as "free" to
2674 register_gdbarch_data.
2675 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2676 (x86_64_sigtramp_frame_sniffer): Replace
2677 "x86_64_sigtramp_frame_p".
2678 (x86_64_init_abi): Set the frame unwind sniffers.
2679 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2680 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2681 (m68k_gdbarch_init): Set the frame unwind sniffers.
2682 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2683 "i386_sigtramp_frame_p".
2684 (i386_frame_sniffer): Replace "i386_frame_p".
2685 (i386_gdbarch_init): Set the frame unwind sniffers.
2686 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2687 (avr_gdbarch_init): Set the frame unwind sniffers.
2688 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2689 "alpha_sigtramp_frame_p"
2690 (alpha_heuristic_frame_sniffer): Replace
2691 "alpha_heuristic_frame_p".
2692 (alpha_gdbarch_init): Set the frame unwind sniffers.
2693 (alpha_dwarf2_init_abi): Ditto.
2694 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2695 "alpha_debug_frame_p".
2696 (alpha_mdebug_frame_base_sniffer): Replace
2697 "alpha_mdebug_frame_base_p".
2698 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2699 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2700 (d10v_gdbarch_init): Set the frame unwind sniffer.
2701 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2702 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2703 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2704 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2705 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2706 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2707
48db5a3c
CV
27082003-07-16 Michael Snyder <msnyder@redhat.com>
2709
2710 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2711 should go thru sh_dsp_register_sim_regno, else the dsp regs
2712 will not get the right values.
2713
27142003-07-16 Corinna Vinschen <vinschen@redhat.com>
2715
2716 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2717 deprecated_store_floating by call to store_typed_floating.
2718 (sh_sh4_register_convert_to_raw): Substitute call to
2719 deprecated_extract_floating by call to extract_typed_floating.
2720
27212003-07-16 Corinna Vinschen <vinschen@redhat.com>
2722
2723 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2724
27252003-07-16 Corinna Vinschen <vinschen@redhat.com>
2726
2727 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2728 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2729 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2730 as possible.
2731 (do_pseudo_register): Remove.
2732 (sh_push_dummy_code): New function.
2733 (sh64_store_struct_return): Rename from sh_store_struct_return.
2734 Only called for sh64 now.
2735 (sh_extract_struct_value_address): Regcache'ify.
2736 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2737 and accomodate new tasks.
2738 (sh64_push_return_address): Rename from sh_push_return_address.
2739 Only called for sh64 now.
2740 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2741 Regcache'ify.
2742 (sh3e_sh4_extract_return_value): Regcache'ify.
2743 (sh_default_store_return_value): Ditto.
2744 (sh3e_sh4_store_return_value): Ditto.
2745 (sh_default_register_byte): Remove.
2746 (sh_sh4_register_byte): Remove.
2747 (sh_default_register_raw_size): Remove.
2748 (sh_sh4_register_raw_size): Remove.
2749 (sh_register_virtual_size): Remove.
2750 (sh_sh3e_register_virtual_type): Remove.
2751 (sh_sh3e_register_type): New function.
2752 (sh_sh4_register_virtual_type): Remove.
2753 (sh_sh4_register_type): New function.
2754 (sh_default_register_virtual_type): Remove.
2755 (sh_default_register_type): New function.
2756 (do_fv_register_info): Add parameters to accomodate call from
2757 sh_print_registers_info.
2758 (do_dr_register_info): Ditto.
2759 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2760 Add parameters to accomodate call from sh_print_registers_info.
2761 (sh_do_fp_register): Ditto.
2762 (sh64_do_pseudo_register): Call do_dr_register_info,
2763 do_fv_register_info and sh_do_fp_register with default parameters.
2764 (sh_do_register): Add parameters to accomodate call from
2765 sh_print_registers_info.
2766 (sh_print_register): Ditto.
2767 (sh_print_registers_info): Rename from sh_do_registers_info.
2768 Add parameters to be used as gdbarch_print_registers_info
2769 implementation. Accomodate removed do_pseudo_register function
2770 pointer.
2771 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2772 function pointer. Call sh_print_register with default parameters.
2773 (sh64_do_registers_info): Call sh_print_registers_info instead of
2774 sh_do_registers_info.
2775 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2776 detection of deprecated vs. non-deprecated functionality.
2777 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2778 function pointer assignments by direct function calls.
2779
e8a89fe2
AC
27802003-07-15 Andrew Cagney <cagney@redhat.com>
2781
2782 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2783 (frame_register_unwind, create_new_frame): Ditto.
2784 (legacy_get_prev_frame, get_frame_type): Ditto.
2785 (get_frame_base_address): Use frame_base_find_by_frame.
2786 (get_frame_locals_address): Use frame_base_find_by_frame.
2787 (get_frame_args_address): Use frame_base_find_by_frame.
2788 * frame-base.h (frame_base_sniffer_ftype): Declare.
2789 (frame_base_append_sniffer): Declare.
2790 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2791 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2792 (frame_base_append_sniffer): New function.
2793 (frame_base_append_predicate): Add a NULL sniffer.
2794 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2795 (struct frame_base_table): Add "sniffer".
2796 (frame_base_free): Free the "sniffer" table.
2797 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2798 (frame_unwind_append_sniffer): Declare.
2799 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2800 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2801 (struct frame_unwind_table): Add "sniffer", delete "middle".
2802 (append_predicate): Add "sniffer" parameter, append the sniffer.
2803 (frame_unwind_init): Update append_predicate call.
2804 (frame_unwind_append_sniffer): New function.
2805 (frame_unwind_append_predicate): Update append_predicate call.
2806 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2807
0714963c
AC
28082003-07-15 Andrew Cagney <cagney@redhat.com>
2809
2810 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2811 before code inhibiting repeated unwind attempts. Add to
2812 commentary on that test's problems.
2813 * blockframe.c (inside_main_func): Look for "main" in the minimal
2814 symbol table.
2815 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2816 identical.
2817
d9170e22
AC
28182003-07-15 Andrew Cagney <cagney@redhat.com>
2819
2820 * complaints.c (struct explanation): Define.
2821 (struct complaints): Change type of "explanation" to "struct
2822 explanation".
2823 (symfile_explanations): Convert to a "struct explanation" table.
2824 (vcomplaint): Update.
2825
eba29c8c
ML
28262003-07-15 Michal Ludvig <mludvig@suse.cz>
2827
2828 * x86-64-linux-nat.c (regmap): Removed.
2829 (supply_gregset, fill_gregset): Call
2830 x86_64_linux_(fill,supply)_gregset functions.
2831 * x86-64-linux-tdep.c (USER_*): New defines.
2832 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2833 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2834 New functions.
2835 (fetch_core_registers): Ditto.
2836 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2837 * x86-64-linux-tdep.h: New file.
2838 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2839 and core-regset.o.
2840 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2841
68cc0bfb
MK
28422003-07-13 Mark Kettenis <kettenis@gnu.org>
2843
88a115f7
MK
2844 * x86-64-tdep.c (x86_64_store_return_value): Use
2845 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2846
68cc0bfb
MK
2847 * configure.host: Add x86_64-*-freebsd*.
2848 * configure.tgt: Add x86_64-*-freebsd*.
2849 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2850 * amd64fbsd-nat.c: New file.
2851 * amd64fbsd-tdep.c: New file.
2852 * config/i386/nm-fbsd64.h: New file.
2853 * config/i386/fbsd64.mh: New file.
2854 * config/i386/fbsd64.mt: New file.
2855
138e7be5
MK
28562003-07-11 Mark Kettenis <kettenis@gnu.org>
2857
2858 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2859 `sc_regs_offset' and `sc_fpregs_offset'.
2860 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2861 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2862 (alpha_sigtramp_register_address): Rewrite to use new members of
2863 `struct gdbarch_tdep'.
2864 (alpha_gdbarch_init): Initialize new members of struct
2865 gdbarch_tdep'.
2866 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2867 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2868 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2869 (alphafbsd_pc_in_sigtramp): Implement.
2870 (alphafbsd_sigtramp_offset): New function.
2871 (alphafbsd_sigcontext_addr): New function.
2872 (alphafbsd_init_abi): Initialize signal trampoline related members
2873 of `struct gdbarch_tdep'.
2874 (_initialize_alphafbsd_tdep): Add prototype.
2875
95303a68
TR
28762003-07-11 Theodore A. Roth <troth@openavr.org>
2877
ba292e4c
TR
2878 * Makefile.in (install-only): Quote sed expression when generating
2879 transformed_name.
95303a68 2880
6896c0c7
RH
28812003-07-11 Richard Henderson <rth@redhat.com>
2882
2883 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2884 * dwarf2-frame.c: Include complaints.h.
2885 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2886 variable initialization; return NULL on error.
2887 (decode_frame_entry): New.
2888
8edd5d01
AC
28892003-07-11 Andrew Cagney <cagney@redhat.com>
2890
c4a09524
AC
2891 * frame.h (frame_address_in_block): Delete declaration.
2892 * blockframe.c (frame_address_in_block): Delete function.
2893 (get_frame_block): Use get_frame_address_in_block.
2894 (block_innermost_frame): Ditto.
2895 * stack.c (print_frame, backtrace_command_1): Ditto.
2896
8edd5d01
AC
2897 * frame.h (get_frame_address_in_block): Declare.
2898 (frame_unwind_address_in_block): Declare.
2899 * frame.c (frame_unwind_address_in_block): New function.
2900 (get_frame_address_in_block): New function.
2901
f7968451
AC
29022003-07-10 Andrew Cagney <cagney@redhat.com>
2903
2904 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2905 pre-default. Note: re-generate has no effect.
2906
ae99b398
AC
29072003-07-10 Andrew Cagney <cagney@redhat.com>
2908
2909 * gdbarch.sh: When a variable, but not a function, compare against
2910 0. Fix problem in previous patch.
2911 * gdbarch.c: Re-generate.
2912
956ac328
AC
29132003-07-10 Andrew Cagney <cagney@redhat.com>
2914
2915 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2916 functions against NULL, not 0.
2917 * gdbarch.c: Re-generate.
2918
287c3240
FF
29192003-07-10 Fred Fish <fnf@ninemoons.com>
2920
2921 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2922 null string instead of a null pointer.
2923 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2924
32f63c4b
MS
29252003-07-09 Michael Snyder <msnyder@redhat.com>
2926
2927 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2928
402ecd56
MK
29292003-07-09 Mark Kettenis <kettenis@gnu.org>
2930
2931 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2932 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2933 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2934 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2935 * x86-64-tdep.c: ... from here.
2936
c481dac7
AS
29372003-07-09 Andreas Schwab <schwab@suse.de>
2938
2939 * m68k-tdep.h (enum struct_return): Define.
2940 (struct gdbarch_tdep): Add struct_return.
2941 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2942 bytes are padded to the right, not to the left. Pass struct value
2943 address in register %a1, not on stack.
2944 (m68k_use_struct_convention): New function.
2945 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2946 struct_return in tdep to pcc_struct_return.
2947 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2948 reg_struct_return.
2949
64176fa3
JB
29502003-07-09 Joel Brobecker <brobecker@gnat.com>
2951
2952 * somread.c (som_symfile_offsets): Fix compilation error.
2953
96a4ee76
AC
29542003-07-09 Andrew Cagney <cagney@redhat.com>
2955
2956 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2957 Add comments about the checks.
2958
1517c6d1
AC
29592003-07-08 Andrew Cagney <cagney@redhat.com>
2960
2961 * Makefile.in: Make dependency section headers consistent.
2962 (config_h): Move to $BUILD headers section.
2963 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2964 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2965 (ada-exp.tab.c): Move to YACC/LEX section.
2966 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2967 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2968
dc5dd1eb
KW
29692003-07-08 Kris Warkentin <kewarken@qnx.com>
2970
2971 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2972 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2973 of strerror with safe_strerror, use ISO C function definitions,
2974 and replace instances of sprintf with snprintf.
dc5dd1eb 2975
612dde91
AC
29762003-07-07 Andrew Cagney <cagney@redhat.com>
2977
2978 * frame.c (get_prev_frame): Enable check for identical frames.
2979 Update comments. Update error messages.
2980
492c11d3
JB
29812003-07-07 Joel Brobecker <brobecker@gnat.com>
2982
2983 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2984
376a5a49
JB
29852003-07-07 Joel Brobecker <brobecker@gnat.com>
2986
2987 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2988 sort_symtab_syms, no longer necessary.
2989
22b4a9ad
JB
29902003-07-07 Joel Brobecker <brobecker@gnat.com>
2991
2992 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2993
5bbcb741
JB
29942003-07-07 Joel Brobecker <brobecker@gnat.com>
2995
2996 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2997 (mips_register_byte): Likewise.
2998
c139e7d9
DJ
29992003-07-07 Daniel Jacobowitz <drow@mvista.com>
3000
3001 * Makefile.in (sparc_tdep_h): New.
3002 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3003 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3004 * sparc-linux-nat.c: Include "sparc-tdep.h".
3005 * sparc-nat.c: Likewise.
3006 * sparc-tdep.c: Likewise.
3007 * sparc64nbsd-nat.c: Likewise.
3008 * sparcnbsd-nat.c: Likewise.
3009 * sparcnbsd-tdep.c: Likewise.
3010 * sparc-tdep.h: New file.
3011 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3012 and sparc_npc_regnum.
3013
fd8f87c5
DJ
30142003-07-07 Daniel Jacobowitz <drow@mvista.com>
3015
3016 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3017 (mips_linux_cannot_store_register): List supported instead of
3018 unsupported registers.
3019
13adf674
DJ
30202003-07-07 Daniel Jacobowitz <drow@mvista.com>
3021
3022 * disasm.c (dump_insns): Separate instructions from addresses.
3023
8de307e0
AS
30242003-07-07 Andreas Schwab <schwab@suse.de>
3025
3026 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3027 dependencies.
3028 * m68k-tdep.c (NUM_FREGS): Delete.
3029 (SIG_PC_FP_OFFSET): Delete.
3030 (TARGET_M68K): Delete.
3031 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3032 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3033 P_MOVEL_SP, P_MOVEML_SP): Define.
3034 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3035 P_TRAP): Delete.
3036 (m68k_register_raw_size): Delete.
3037 (m68k_register_virtual_size): Delete.
3038 (m68k_register_type): Renamed from m68k_register_virtual_type and
3039 add gdbarch argument.
3040 (m68k_store_struct_return): Delete.
3041 (m68k_deprecated_extract_return_value): Delete.
3042 (m68k_deprecated_extract_struct_value_address): Delete.
3043 (m68k_frame_chain): Delete.
3044 (m68k_frame_saved_pc): Delete.
3045 (m68k_fix_call_dummy): Delete.
3046 (m68k_push_dummy_frame): Delete.
3047 (m68k_pop_frame): Delete.
3048 (m68k_extract_return_value): New function.
3049 (m68k_store_return_value): Rewrite using regcache.
3050 (m68k_extract_struct_value_address): Rewrite using regcache.
3051 (m68k_push_dummy_call): New function.
3052 (struct m68k_frame_cache): Define.
3053 (m68k_alloc_frame_cache): New function.
3054 (m68k_analyze_frame_setup): New function.
3055 (m68k_analyze_register_saves): New function.
3056 (m68k_analyze_prologue): New function.
3057 (m68k_skip_prologue): Rewrite using above functions.
3058 (m68k_unwind_pc): New function.
3059 (m68k_frame_cache): New function.
3060 (m68k_frame_this_id): New function.
3061 (m68k_frame_prev_register): New function.
3062 (m68k_frame_unwind): New variable.
3063 (m68k_frame_p): New function.
3064 (m68k_sigtramp_frame_cache): New function.
3065 (m68k_sigtramp_frame_this_id): New function.
3066 (m68k_sigtramp_frame_prev_register): New function.
3067 (m68k_sigtramp_frame_unwind): New variable.
3068 (m68k_sigtramp_frame_p): New function.
3069 (m68k_frame_base_address): New function.
3070 (m68k_frame_base): New function.
3071 (m68k_unwind_dummy_id): New function.
3072 (fill_gregset): Use regcache_collect.
3073 (fill_fpregset): Likewise.
3074 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3075 defined.
3076 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3077 deprecated_init_frame_pc, deprecated_store_struct_return,
3078 deprecated_extract_return_value, deprecated_store_return_value,
3079 deprecated_frame_chain, deprecated_frame_saved_pc,
3080 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3081 deprecated_register_virtual_size,
3082 deprecated_max_register_raw_size,
3083 deprecated_max_register_virtual_size,
3084 deprecated_register_virtual_type, deprecated_register_size,
3085 deprecated_register_byte, deprecated_register_bytes,
3086 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3087 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3088 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3089 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3090 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3091 deprecated_push_dummy_frame, deprecated_pop_frame,
3092 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3093 only if SYSCALL_TRAP is defined. Set extract_return_value,
3094 store_return_value, extract_struct_value_address, register_type,
3095 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3096 predicates.
3097 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3098 M68K_MAX_REGISTER_SIZE): Define.
3099 (struct m68k_sigtramp_info): Define.
3100 (struct gdbarch_tdep): Add get_sigtramp_info.
3101 * m68klinux-nat.c (fetch_register): Use register_size instead of
3102 REGISTER_RAW_SIZE. Don't put assignment in if.
3103 (store_register): Likewise.
3104 (fetch_inferior_registers): Likewise.
3105 (store_inferior_registers): Likewise.
3106 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3107 (m68k_linux_frame_saved_pc): Delete.
3108 (m68k_linux_sigcontext_reg_offset,
3109 m68k_linux_ucontext_reg_offset): Define.
3110 (m68k_linux_get_sigtramp_info): New function.
3111 (m68k_linux_extract_return_value): Rewrite using regcache.
3112 (m68k_linux_store_return_value): Likewise.
3113 (m68k_linux_extract_struct_value_address): Likewise.
3114 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3115 Don't set deprecated_frame_saved_pc,
3116 deprecated_extract_return_value, deprecated_store_return_value,
3117 deprecated_extract_struct_value_address. Set
3118 extract_return_value, store_return_value,
3119 extract_struct_value_address.
3120
eb8bc282
AC
31212003-07-07 Andrew Cagney <cagney@redhat.com>
3122
3123 * expprint.c: Include "user-regs.h" instead of "frame.h".
3124 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3125 frame_map_regnum_to_name.
3126 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3127 (frame_map_name_to_regnum): Simplify, call
3128 user_reg_map_name_to_regnum.
3129 (frame_map_regnum_to_name): Simplify, call
3130 user_reg_map_regnum_to_name.
3131 (frame_register_unwind): Update.
3132 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3133 (_initialize_frame_reg): Call user_reg_add_builtin.
3134 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3135 (value_of_register): Use value_of_user_reg.
3136 * eval.c (evaluate_subexp_standard): Update.
3137 * parse.c (write_dollar_variable): Update.
3138 * d10v-tdep.c (d10v_print_registers_info): Update.
3139 * infcmd.c (registers_info): Update.
3140 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3141 (builtin_regs_h): Delete macro.
3142 (user_regs_h): Define.
3143 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3144 (builtin-regs.o): Delete target.
3145 (user-regs.o): Specify dependencies.
3146 (expprint.o): Update dependencies.
3147 (findvar.o): Update dependencies.
3148 (frame.o): Update dependencies.
3149 (std-regs.o): Update dependencies.
3150
9f476a01
CF
31512003-07-06 Christopher Faylor <cgf@redhat.com>
3152
3153 * win32-nat.c (solib_symbols_add): Use one variable for all section
3154 address stuff. Pass variable rather than address of variable to
3155 safe_symbol_file_add.
3156
a731b831
AS
31572003-07-06 Andreas Schwab <schwab@suse.de>
3158
3159 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3160
9f83329d
JB
31612003-07-04 Joel Brobecker <brobecker@gnat.com>
3162
3163 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3164
27e28cc5
KW
31652003-07-04 Kris Warkentin <kewarken@qnx.com>
3166
3167 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3168
31692003-07-04 Kris Warkentin <kewarken@qnx.com>
3170
3171 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3172 * config/i386/nto.mh: New file.
3173 * config/i386/nm-nto.h: New file.
3174 * configure.host: Add i[3456]86-*-nto*.
3175
100f2e98
JB
31762003-07-03 Joel Brobecker <brobecker@gnat.com>
3177
3178 * remote-vx.c (vx_add_symbols): Fix compilation error.
3179
e23457df
AC
31802003-07-03 Andrew Cagney <cagney@redhat.com>
3181
3182 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3183 * gdbarch.h, gdbarch.c: Re-generate.
3184 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3185 (legacy_register_name): Declare.
3186 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3187 (REGISTER_NAME): Define.
3188 * sparc-tdep.c (legacy_register_name): New function.
3189 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3190 (REGISTER_NAME): Define.
3191 (hppa64_register_name): Declare.
3192 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3193 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3194 (hppa64_register_name): New function.
3195 (hppa_register_name): New function.
3196 * arch-utils.c (legacy_register_name): Delete.
3197 * arch-utils.h (legacy_register_name): Delete.
3198
38caaeec
DJ
31992003-07-03 Daniel Jacobowitz <drow@mvista.com>
3200
3201 * cli/cli-interp.c (cli_interpreter_resume): Update the
3202 cli_uiout's stream to gdb_stdout.
3203
dadd712e
AC
32042003-07-03 Andrew Cagney <cagney@redhat.com>
3205
3206 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3207 predicate.
3208 * gdbarch.h, gdbarch.c: Re-generate.
3209 * regcache.c (init_regcache_descr): Use legacy code when either
3210 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3211
c7f1390e
DJ
32122003-07-02 Daniel Jacobowitz <drow@mvista.com>
3213
3214 * NEWS: Move "set logging" entry into GDB 6.0 section.
3215
4bc8c588
JB
32162003-07-02 Jim Blandy <jimb@redhat.com>
3217
a9dd42f1
JB
3218 * s390-tdep.c (struct frame_extra_info): new member:
3219 'stack_bought_valid'.
3220 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3221 initialize fextra_info->stack_bought.
3222 (s390_frameless_function_invocation): Don't trust the value of
3223 fextra_info_ptr->stack_bought unless
3224 fextra_info->stack_bought_valid is set.
3225
4bc8c588
JB
3226 New S390 prologue analyzer.
3227 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3228 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3229 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3230 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3231 compute_x_addr, s390_on_stack, s390_store,
3232 s390_get_signal_frame_info): New functions.
3233 (S390_NUM_SPILL_SLOTS): New macro.
3234 (s390_get_frame_info): Rewritten.
3235 (is_arg_reg): Deleted.
3236
3237 Break out the decoding of S/390 instructions into separate
3238 functions, to make it more legible, and easier to check
3239 against the spec.
3240 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3241 is_rx, is_rxe): New functions.
3242 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3243 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3244 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3245 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3246 enums for opcode values. (Is this an improvement?)
3247
fd13a04a
AC
32482003-07-02 Andrew Cagney <cagney@redhat.com>
3249
3250 * i386-tdep.c: Revert change committed as part of trad-frame code
3251 below.
3252
3f8091c1
DJ
32532003-07-02 Daniel Jacobowitz <drow@mvista.com>
3254
3255 * breakpoint.c (insert_catchpoint): Make static.
3256
8dd5115e
AS
32572003-07-02 Andreas Schwab <schwab@suse.de>
3258
3259 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3260 former ia64_push_arguments and ia64_push_return_address, and use
3261 regcache functions instead of read/write_register.
3262 (ia64_gdbarch_init): Set push_dummy_call instead of
3263 deprecated_push_arguments and deprecated_push_return_address.
3264
a2229c23
AJ
32652003-07-01 Andreas Jaeger <aj@suse.de>
3266
3267 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3268 before the call.
3269 Set %rax only to number of SSE registers used.
3270
3b3850e8
AC
32712003-07-01 Andrew Cagney <cagney@redhat.com>
3272
3273 * trad-frame.h: Update comments, a -1 .addr is reserved.
3274 (trad_frame_value_p, trad_frame_addr_p): Declare.
3275 (trad_frame_reg_p): Declare.
3276 (trad_frame_set_value): Rename trad_frame_register_value.
3277 (trad_frame_set_unknown): Declare.
3278 * trad-frame.c (trad_frame_realreg_p): New function.
3279 (trad_frame_addr_p, trad_frame_value_p): New function.
3280 (trad_frame_set_unknown): New function.
3281 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3282 (trad_frame_prev_register): Use trad_frame_realreg_p,
3283 trad_frame_addr_p and trad_frame_value_p.
3284 (trad_frame_set_value): Rename trad_frame_register_value.
3285 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3286 and trad_frame_set_value.
a2229c23 3287
4d819d0e
JB
32882003-06-30 Jim Blandy <jimb@redhat.com>
3289
3290 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3291 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3292 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3293 for 16 registers, and then 32 more bytes.
3294 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3295 New macros.
3296 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3297 Move up in the file, since it's now used by is_simple_arg.
3298 (is_simple_arg): Don't assume registers are four bytes long.
3299 Exclude all double arguments. Extended floats are not simple
3300 args.
3301 (is_power_of_two): New function.
3302 (pass_by_copy_ref): Call is_power_of_two, and check that the
3303 length fits in a register, rather than listing all the acceptable
3304 sizes. Extended floats are not passed by reference.
3305 (s390_push_arguments): Don't assume registers are four bytes long.
3306 Reserve an argument register to point to the buffer for structures
3307 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3308 S390_STACK_FRAME_OVERHEAD.
3309
1ad828f1
AS
33102003-06-30 Andreas Schwab <schwab@suse.de>
3311
3312 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3313 format error message.
3314
39b00981
JB
33152003-06-30 Joel Brobecker <brobecker@gnat.com>
3316
3317 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3318
b2a7f303
DC
33192003-06-30 David Carlton <carlton@kealia.com>
3320
3321 Band-aid for PR c++/1245.
3322 * Makefile.in (cp-support.o): Depend on complaints_h.
3323 * cp-support.c: Include complaints.h. Add declaration for
3324 find_last_component.
3325 (cp_find_first_component): Separate code into
3326 cp_find_first_component_aux.
3327 (cp_find_first_component_aux): Call demangled_name_complaint.
3328 (demangled_name_complaint): New.
3329
a257b5bb
AC
33302003-06-30 Andrew Cagney <cagney@redhat.com>
3331
3332 * remote.c (remote_write_bytes): Explicitly compute and then use
3333 the payload size. Update comments to reflect. Fixes problem of
3334 GDB not sending small packets as found by Fred Fish.
3335
0a2cfde4
AC
33362003-06-30 Andrew Cagney <cagney@redhat.com>
3337
3338 * remote.c (remote_async_wait): Fix -Wformat problem.
3339
3fcb8548
AC
33402003-06-29 Andrew Cagney <cagney@redhat.com>
3341
3342 * remote.c (remote_wait): Call error, and not warning, when the
3343 packet is corrupt.
3344 (remote_async_wait): Ditto.
3345
9f9970a3
DJ
33462003-06-29 Daniel Jacobowitz <drow@mvista.com>
3347
3348 * sparc-tdep.c (sparc_y_regnum): Make external again.
3349
83a8ccca
DJ
33502003-06-29 Daniel Jacobowitz <drow@mvista.com>
3351
3352 * cli/cli-logging.c (pop_output_files): Add void to function
3353 definition.
3354
d2cf594a
AC
33552003-06-29 Andrew Cagney <cagney@redhat.com>
3356
3357 * frame.c (frame_register_unwind): Use unsigned char when dumping
3358 the buffer contents.
3359
0fac0b41
DJ
33602003-06-28 Daniel Jacobowitz <drow@mvista.com>
3361
3362 * cli/cli-logging.c: New file.
3363 * cli-out.c (struct ui_out_data): Add original_stream.
3364 (cli_redirect): New function.
3365 (cli_ui_out_impl): Add cli_redirect.
3366 (cli_out_new): Initialize original_stream.
3367 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3368 (uo_redirect, ui_out_redirect): New.
3369 * ui-out.h (struct ui_out_impl): Add redirect member.
3370 (redirect_ftype): New.
3371 (ui_out_redirect): Add prototype.
3372 * Makefile.in: Add rules for cli-logging.c.
3373 * NEWS: Mention "set logging".
3374
88a07d7c
EZ
33752003-06-27 Elena Zannoni <ezannoni@redhat.com>
3376
3377 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3378
4eb58876
AC
33792003-06-27 Andrew Cagney <cagney@redhat.com>
3380
3381 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3382 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3383 * avr-tdep.c (avr_call_dummy_address): Delete function.
3384 (avr_gdbarch_init): Do not set call_dummy_address.
3385
1549f619
EZ
33862003-06-27 Elena Zannoni <ezannoni@redhat.com>
3387
3388 * symfile.c (syms_from_objfile): Move variables to inner block.
3389 Move the checks for the non-mainline case a bit earlier to avoid
3390 doing some useless computations.
3391
3cb3398d
EZ
33922003-06-27 Elena Zannoni <ezannoni@redhat.com>
3393
3394 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3395
3799ccc6
EZ
33962003-06-26 Elena Zannoni <ezannoni@redhat.com>
3397
3398 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3399 sections.
3400
ce1f6491
MC
34012003-06-26 Michael Chastain <mec@shout.net>
3402
3403 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3404 gdb/testsuite/gdb.c++/pr-1210.exp.
3405
d958dfd0
AC
34062003-06-26 Andrew Cagney <cagney@redhat.com>
3407
3408 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3409 altivec_expression.h and altivec_registers.h.
3410
d31431ed
AC
34112003-06-26 Andrew Cagney <cagney@redhat.com>
3412
3413 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3414 info->mach when MIPS16. Patch suggested by Fred Fish.
3415
714b1282
AC
34162003-06-26 Andrew Cagney <cagney@redhat.com>
3417
3418 * utils.c (internal_vproblem): Print the problem to a reason
3419 buffer and then pass to query. Make the msg variable more local.
3420
42efa47a
AC
34212003-06-26 Andrew Cagney <cagney@redhat.com>
3422
3423 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3424 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3425 * gdbarch.h, gdbarch.c: Re-generate.
3426 * frame-base.c (default_frame_args_address): Update. Use
3427 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3428 not available.
3429 (default_frame_locals_address): Ditto for
3430 DEPRECATED_FRAME_LOCALS_ADDRESS.
3431 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3432 (vax_frame_num_args): Update.
3433 (vax_gdbarch_init): Update.
3434 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3435 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3436 * mcore-tdep.c (mcore_gdbarch_init): Update.
3437 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3438 * ia64-tdep.c (ia64_gdbarch_init): Update.
3439 * symtab.h (address_class): Update comments.
3440 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3441 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3442 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3443 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3444 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3445 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3446 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3447 * alpha-mdebug-tdep.c: Update.
3448 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3449
8ffd9b1b
AJ
34502003-06-26 Andreas Jaeger <aj@suse.de>
3451
3452 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3453 of SSE registers so that varargs functions work. Rework handling
3454 of passing arguments on the stack.
3455 (x86_64_store_return_value): Return double and float values in SSE
3456 register.
3457
e8ac10a6
MC
34582003-06-24 Michael Chastain <mec@shout.net>
3459
3460 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3461 the "constructor breakpoints ignored" bug.
3462
986af8e6
DC
34632003-06-25 David Carlton <carlton@kealia.com>
3464
3465 * MAINTAINERS: Update e-mail address.
3466
d64558a5
JB
34672003-06-24 Jim Blandy <jimb@redhat.com>
3468
e538d2d7
JB
3469 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3470
02631ec0
JB
3471 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3472 function.
3473 (ppc_linux_init_abi): Register it as the
3474 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3475
e716d87a
JB
3476 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3477 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3478 method.
3479
d64558a5
JB
3480 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3481 (ppc64_standard_linkage_target): Use it.
3482
449a5da4
AC
34832003-06-23 Andrew Cagney <cagney@redhat.com>
3484
3485 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3486 for 0 "int0" and 4 "int32" sized registers.
3487 * gdbtypes.c (builtin_type_int0): Define.
3488 (build_gdbtypes): Initialize builtin_type_int0.
3489 * gdbtypes.h (builtin_type_int0): Declare.
3490
b2a02dda
SC
34912003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3492
3493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3494 as characters are unsigned.
3495
fba3138e
DJ
34962003-06-22 Daniel Jacobowitz <drow@mvista.com>
3497
3498 PR gdb/1179
3499 * dwarfread.c (struct_type): Skip static fields without crashing.
3500
f6c8180b
AC
35012003-06-22 Andrew Cagney <cagney@redhat.com>
3502
3503 GDB 6.0 branch created.
f2c06f52
AC
3504 * README: Update.
3505 * PROBLEMS: Update. Empty.
3506 * NEWS: Update.
f6c8180b 3507
ae822768
DJ
35082003-06-22 Daniel Jacobowitz <drow@mvista.com>
3509
3510 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3511 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3512
261de166
AC
35132003-06-22 Andrew Cagney <cagney@redhat.com>
3514
3515 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3516 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3517 Velikov.
3518
30e94205
DJ
35192003-06-22 Daniel Jacobowitz <drow@mvista.com>
3520
3521 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3522 compilers.
3523
9e14d721
DJ
35242003-06-21 Daniel Jacobowitz <drow@mvista.com>
3525
3526 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3527 argument of val_print.
3528 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3529 to the address argument of baseclass_offset or target_read_memory.
3530 Do add it to the argument of cp_print_value_fields.
3531
a4b8ebc8
AC
35322003-06-21 Andrew Cagney <cagney@redhat.com>
3533
3534 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3535 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3536 instead of 0..NUM_REGS.
3537 (mips_register_reggroup_p): New function.
3538 (mips_pseudo_register_write): New function.
3539 (mips_pseudo_register_read): New function.
3540 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3541 based on the register's type.
3542 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3543 cooked.
3544 (mips_get_saved_register): Simplify. Assert that REGNO is a
3545 pseudo / cooked.
3546 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3547 (mips_register_type): Replace mips_register_virtual_type. Map
3548 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3549 when available.
3550 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3551 that the register is cooked / virtual.
3552 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3553 Only get the extra info when needed.
3554 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3555 (mips32_heuristic_proc_desc): Fetch the cooked register.
3556 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3557 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3558 (mips_print_register): Use gdbarch_register_type, instead of
3559 REGISTER_VIRTUAL_TYPE.
3560 (print_gp_register_row): Use gdbarch_register_type, instead of
3561 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3562 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3563 Print the pseudo / cooked registers.
3564 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3565 Print the pseudo / cooked registers.
3566 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3567 REG_NUM is pseudo / cooked.
3568 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3569 (mips_n32n64_xfer_return_value): Ditto.
3570 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3571 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3572 (mips_register_sim_regno): New function.
3573 (mips_gdbarch_init): Set deprecated_register_byte,
3574 register_group_p, pseudo_register_write, pseudo_register_read,
3575 register_sim_regno, and num_pseudo_regs. Set register_type,
3576 instead of register_virtual_type.
3577 * Makefile.in (mips-tdep.o): Update dependencies.
3578 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3579 REGISTER_VIRTUAL_TYPE.
3580 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3581 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3582 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3583 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3584 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3585
325ed089
DJ
35862003-06-21 Daniel Jacobowitz <drow@mvista.com>
3587
3588 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3589 * cli/cli-cmds.c: Include "gdb_vfork.h".
3590 (shell_escape): Use vfork.
3591
f0e7d0e8
AC
35922003-06-21 Andrew Cagney <cagney@redhat.com>
3593
c57bb9fa
AC
3594 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3595 32 bit floating-point register saves.
3596
6e51443a
AC
3597 * frame.h (deprecated_unwind_get_saved_register): Delete.
3598 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3599 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3600 and deprecated_get_next_frame_hack instead of
3601 deprecated_unwind_get_saved_register.
3602
ed183c7c
AC
3603 * mips-tdep.c (mips_dump_tdep): Do not print
3604 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3605
f0e7d0e8
AC
3606 * frame.c (get_frame_register): New function.
3607 (frame_unwind_register_signed): New function.
3608 (get_frame_register_signed): New function.
3609 (frame_unwind_register_unsigned): New function.
3610 (get_frame_register_unsigned): New function.
3611 * frame.h: Add comments on naming schema.
3612 (get_frame_register, frame_unwind_register_signed): Declare.
3613 (get_frame_register_signed, get_frame_register_signed): Declare.
3614 (frame_unwind_register_unsigned): Declare.
3615 (get_frame_register_unsigned): Declare.
3616
2224d941
TR
36172003-06-20 Theodore A. Roth <troth@openavr.org>
3618
3619 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3620
8619218d
TR
36212003-06-20 Theodore A. Roth <troth@openavr.org>
3622
3623 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3624 (avr_read_sp): Ditto.
3625
0b1b50c0
DJ
36262003-06-20 Daniel Jacobowitz <drow@mvista.com>
3627
3628 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3629 * config/arm/nm-linux.h: Likewise.
3630 * config/arm/tm-linux.h: Likewise.
3631 * config/ia64/nm-linux.h: Likewise.
3632 * config/ia64/tm-ia64.h: Likewise.
3633 * config/s390/tm-linux.h: Likewise.
3634 * config/s390/tm-s390.h: Likewise.
3635 * s390-nat.c: Likewise.
3636 * s390-tdep.c: Likewise.
3637
3638 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3639 * config/ia64/linux.mt: Likewise.
3640 * config/m68k/linux.mh: Likewise.
3641 * config/mips/linux.mt: Likewise.
3642 * config/powerpc/linux.mh: Likewise.
3643 * config/sh/linux.mt: Likewise.
3644
c8c18e65
KW
36452003-06-19 Kris Warkentin <kewarken@qnx.com>
3646
3647 * solib.c (solib_open): Change tests for whether to search
3648 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3649 comments.
3650
dcccef2e
TR
36512003-06-19 Theodore A. Roth <troth@openavr.org>
3652
3653 * avr-tdep.c (avr_frame_address): Delete function.
3654 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3655 set_gdbarch_frame_args_address.
3656
5861a190
AC
36572003-06-19 Andrew Cagney <cagney@redhat.com>
3658
3659 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3660 (REGISTER_CONVERT_FROM_TYPE): Delete.
3661 (mips_register_convert_to_type): Delete declaration.
3662 (mips_register_convert_from_type): Delete declaration.
3663 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3664 kernel/.
3665
0274a8ce
MS
36662003-06-19 Michael Snyder <msnyder@redhat.com>
3667
3668 * linux-nat.h: New file.
3669 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 3670 * lin-lwp.c: Include linux-nat.h.
0274a8ce 3671 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 3672 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
3673 (linux_make_note_section): Iterate over lwps instead of threads.
3674 (linux_do_thread_registers): Use lwp instead of merged pid.
3675 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 3676 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
3677 Add dependency on linux_nat_h.
3678
adf5f719
TR
36792003-06-19 Theodore A. Roth <troth@openavr.org>
3680
3681 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3682
6766a268
DJ
36832003-06-19 Daniel Jacobowitz <drow@mvista.com>
3684
3685 * varobj.c (get_type, get_target_type): Use check_typedef.
3686
1171114a
DJ
36872003-06-19 Daniel Jacobowitz <drow@mvista.com>
3688
3689 * breakpoint.c (insert_catchpoint): Call internal_error.
3690
adcf68a2
TR
36912003-06-19 Theodore A. Roth <troth@openavr.org>
3692
3693 * avr-tdep.c (avr_push_dummy_code): Delete function.
3694 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3695
ea67f13b
DJ
36962003-06-19 Daniel Jacobowitz <drow@mvista.com>
3697
3698 * arch-utils.c (default_prepare_to_proceed): Remove.
3699 (generic_prepare_to_proceed): Remove.
3700 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3701 (generic_prepare_to_proceed): Remove prototype.
3702 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3703 * gdbarch.c: Regenerate.
3704 * gdbarch.h: Regenerate.
3705 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3706 * hppah-nat.c (hppa_switched_threads): Remove.
3707 * infrun.c (prepare_to_proceed): New static function, copied from
3708 generic_prepare_to_proceed. Remove select_it argument.
3709 (proceed): Call prepare_to_proceed.
3710 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3711 variables.
3712 (ptrace_wait): Don't set the removed variables.
3713 (hppa_switched_threads): Remove.
3714 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3715 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3716 (lin_lwp_prepare_to_proceed): Remove prototype.
3717 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3718 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3719
4add8633
TR
37202003-06-18 Theodore A. Roth <troth@openavr.org>
3721
3722 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3723 trad-frame.h.
3724 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3725 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3726 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3727 (AVR_PROLOGUE_*): Enumerate prologue types.
3728 (struct frame_extra_info): Remove.
3729 (struct avr_unwind_cache): Define.
3730 (avr_write_sp): Delete function.
3731 (avr_read_fp): Ditto.
3732 (avr_init_extra_frame_info): Ditto.
3733 (avr_pop_frame): Ditto.
3734 (avr_frame_saved_pc): Ditto.
3735 (avr_saved_pc_after_call): Ditto.
3736 (avr_push_return_address): Ditto.
3737 (avr_frame_chain): Ditto.
3738 (avr_store_struct_return): Ditto.
3739 (avr_push_arguments): Ditto.
3740 (avr_scan_prologue): Update comments. Changed to set up the info for
3741 cache unwinding. Now returns end of prologue PC.
3742 (avr_skip_prologue): Better handling of functions lacking a prologue
3743 by using avr_scan_prologue.
3744 (avr_scan_arg_moves): New function.
3745 (avr_saved_regs_unwinder): Ditto.
3746 (avr_frame_unwind_cache): Ditto.
3747 (avr_unwind_pc): Ditto.
3748 (avr_frame_this_id): Ditto.
3749 (avr_frame_prev_register): Ditto.
3750 (avr_frame_p): Ditto.
3751 (avr_frame_base_address ): Ditto.
3752 (avr_unwind_dummy_id): Ditto.
3753 (avr_push_dummy_code): Ditto.
3754 (push_stack_item): Ditto.
3755 (pop_stack_item): Ditto.
3756 (avr_push_dummy_call): Ditto.
3757 (struct stack_item): Define.
3758 (avr_frame_unwind): Declare structure.
3759 (avr_frame_base): Ditto.
3760 (avr_gdbarch_init): Remove calls to
3761 set_gdbarch_deprecated_init_frame_pc,
3762 set_gdbarch_deprecated_target_read_fp,
3763 set_gdbarch_deprecated_dummy_write_sp,
3764 set_gdbarch_deprecated_fp_regnum,
3765 set_gdbarch_deprecated_push_arguments,
3766 set_gdbarch_deprecated_push_return_address,
3767 set_gdbarch_deprecated_pop_frame,
3768 set_gdbarch_deprecated_store_struct_return,
3769 set_gdbarch_deprecated_frame_init_saved_regs,
3770 set_gdbarch_deprecated_init_extra_frame_info,
3771 set_gdbarch_deprecated_frame_chain,
3772 set_gdbarch_deprecated_frame_saved_pc,
3773 set_gdbarch_deprecated_saved_pc_after_call.
3774 Add calls to set_gdbarch_push_dummy_call,
3775 set_gdbarch_push_dummy_code,
3776 frame_unwind_append_predicate,
3777 frame_base_set_default,
3778 set_gdbarch_unwind_dummy_id,
3779 set_gdbarch_unwind_pc.
3780 Wrap a long line.
3781
7be04a68
MS
37822003-06-18 Corinna Vinschen <vinschen@redhat.com>
3783
3784 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3785 registers for H8/300S.
3786 (h8300_print_registers_info): Ditto.
8ffd9b1b 3787 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3788
ae087d01
DJ
37892003-06-18 Daniel Jacobowitz <drow@mvista.com>
3790
3791 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3792 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3793 (lin_lwp_wait): Likewise. Update comments.
3794 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3795 (pull_pid_from_list, linux_record_stopped_pid): New.
3796
07d8f827
SC
37972003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3798
3799 * ada-lang.c (scan_discrim_bound): Name first argument.
3800 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3801 declared by ALL_BLOCK_SYMBOLS.
3802
7cb47b14
SC
38032003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3804
3805 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3806 ("regcache.h"): Include it.
3807 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3808
6ad8ae5c
DJ
38092003-06-17 Daniel Jacobowitz <drow@mvista.com>
3810
3811 * NEWS: Mention gdbserver detach change and "disconnect" command.
3812 * infcmd.c (disconnect_command): New function.
3813 (_initialize_infcmd): Add ``disconnect'' command.
3814 * remote.c (remote_async_detach): Delete.
3815 (remote_detach): Merge remote_async_detach.
3816 (remote_disconnect): New.
3817 (init_remote_ops): Set to_disconnect.
3818 (init_remote_cisco_ops): Likewise.
3819 (init_remote_async_ops): Likewise. Use remote_detach.
3820 * target.c (cleanup_target): Default to_disconnect.
3821 (update_current_target): Inherit to_disconnect.
3822 (target_disconnect, debug_to_disconnect): New functions.
3823 (setup_target_debug): Set to_disconnect.
3824 * target.h (struct target_ops): Add to_disconnect.
3825 (target_disconnect): Add prototype.
3826
687595f9
DJ
38272003-06-17 Daniel Jacobowitz <drow@mvista.com>
3828
3829 * breakpoint.c (insert_catchpoint): New function.
3830 (insert_breakpoints): Use catch_exceptions to call
3831 insert_catchpoint. Disable catchpoints if they fail to insert.
3832
29239a8f
DJ
38332003-06-17 Daniel Jacobowitz <drow@mvista.com>
3834
3835 * symfile.c (reread_symbols): Clear sym_private.
3836
2cdf3c63
AC
38372003-06-17 Andrew Cagney <cagney@redhat.com>
3838
3839 * trad-frame.h (struct frame_info): Add opaque declaration.
3840 * remote-fileio.h (struct cmd_list_element): Add opaque
3841 declaration.
3842 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3843 comments.
3844
cf0e1e0d
DJ
38452003-06-17 Daniel Jacobowitz <drow@mvista.com>
3846
3847 * remote.c (remote_prepare_to_store): Replace call to
3848 deprecated_read_register_bytes with multiple regcache_raw_read
3849 calls.
3850
192cdb19
KW
38512003-06-17 Kris Warkentin <kewarken@qnx.com>
3852
3853 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3854 (nto_find_and_open_solib): Likewise.
3855 (nto_init_solib_absolute_prefix): Likewise.
3856 (_initialize_nto_tdep): Fix indentation.
3857
89929b45
KW
38582003-06-17 Kris Warkentin <kewarken@qnx.com>
3859
3860 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3861
46019f27
KW
38622003-06-17 Kris Warkentin <kewarken@qnx.com>
3863
3864 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3865
1a38736e
JB
38662003-06-17 Jim Blandy <jimb@redhat.com>
3867
3868 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3869
3605c34a
TR
38702003-06-16 Theodore A. Roth <troth@openavr.org>
3871
3872 * avr-tdep.c (avr_extract_return_value): New function.
3873 (avr_gdbarch_init): Set extract_return_value method.
3874
870b3035
AC
38752003-06-16 Andrew Cagney <cagney@redhat.com>
3876
3877 * frame.h (deprecated_get_next_frame_hack): Declare.
3878 * frame.c (legacy_saved_regs_prev_register): Only require
3879 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3880 there are always saved regs.
3881 (deprecated_generic_get_saved_register): Do not require
3882 DEPRECATED_FRAME_INIT_SAVED_REGS.
3883 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3884 use frame ID unwind instead.
3885 (deprecated_get_next_frame_hack): New function.
3886
63d47a7d
CV
38872003-06-16 Corinna Vinschen <vinschen@redhat.com>
3888
3889 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3890 (h8300_push_dummy_call): ...this function. Some minor optimization.
3891 (h8300_push_return_address): Remove.
3892 (h8300_gdbarch_init): Remove calls to
3893 set_gdbarch_deprecated_dummy_write_sp,
3894 set_gdbarch_deprecated_push_arguments and
3895 set_gdbarch_deprecated_push_return_address.
3896 Add call to set_gdbarch_push_dummy_call.
3897
4bb1dc5e
CV
38982003-06-16 Corinna Vinschen <vinschen@redhat.com>
3899
3900 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3901 (E_PSEUDO_EXR_REGNUM): Ditto.
3902 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3903 registers into safe registers.
4bb1dc5e
CV
3904 (h8300_skip_prologue): Check for stm instruction to push registers
3905 used for register variables onto stack.
3906 (gdb_print_insn_h8300): Remove.
3907 (h8300_examine_prologue): Add a comment.
3908 (h8300_register_name): Take pseudo registers into account.
3909 (h8300s_register_name): Ditto.
3910 (h8300sx_register_name): Ditto.
3911 (h8300_print_register): Ditto.
3912 (h8300_print_registers_info): Define "nice" printing order.
3913 (h8300_saved_pc_after_call): Take pseudo registers into account.
3914 (h8300_register_type): Ditto. Return type used for remote connection
3915 when requesting real CCR or EXR register, return actual type when
3916 requesting pseudo CCR or EXR.
3917 (h8300_pseudo_register_read): New function.
3918 (h8300_pseudo_register_write): Ditto.
3919 (h8300_dbg_reg_to_regnum): Ditto.
3920 (h8300s_dbg_reg_to_regnum): Ditto.
3921 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3922 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3923 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3924 set_gdbarch_print_insn architecture dependent.
3925 Call set_gdbarch_pseudo_register_read and
3926 set_gdbarch_pseudo_register_write.
3927 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3928
a59fe496
AC
39292003-06-16 Andrew Cagney <cagney@redhat.com>
3930
3931 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3932 * gdbarch.h, gdbarch.c: Re-generate.
3933 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3934 * s390-tdep.c (s390_gdbarch_init): Update.
3935 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3936 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3937 * mips-tdep.c (mips_gdbarch_init): Update.
3938 * mcore-tdep.c (mcore_gdbarch_init): Update.
3939 * cris-tdep.c (cris_gdbarch_init): Update.
3940 * infcall.c (call_function_by_hand): Update.
3941 * ia64-tdep.c (ia64_push_arguments): Update comment.
3942 * frame.c (legacy_get_prev_frame): Do not assume
3943 SAVE_DUMMY_FRAME_TOS_P.
3944 * dummy-frame.c (find_dummy_frame): Update comment.
3945
6f4e5a41
AC
39462003-06-16 Andrew Cagney <cagney@redhat.com>
3947
3948 * regcache.c (do_cooked_read): Do not use register_valid_p.
3949
72fab697
TR
39502003-06-15 Theodore A. Roth <troth@openavr.org>
3951
3952 * avr-tdep.c (avr_register_type): Remove a blank line.
3953 (avr_scan_prologue): Correct some comments.
3954
e3d8b004
TR
39552003-06-15 Theodore A. Roth <troth@openavr.org>
3956
3957 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3958 prologue types.
8ffd9b1b 3959 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3960 option.
3961 Add code to scan -mcall-prologues for mega devices.
3962
866b76ea
TR
39632003-06-15 Theodore A. Roth <troth@openavr.org>
3964
3965 * avr-tdep.c (avr_register_byte): Delete function.
3966 (avr_register_raw_size): Delete function.
3967 (avr_register_virtual_size): Delete function.
3968 (avr_register_virtual_type): Delete function.
3969 (avr_register_type): New function.
3970 (avr_address_to_pointer): Remove unused code.
3971 (avr_read_fp): Need to read FP as two separate bytes due to change to
3972 avr_register_type() usage.
3973 (avr_gdbarch_init): Don't set deprecated_register_size.
3974 Don't set deprecated_register_bytes.
3975 Don't set deprecated_register_byte.
3976 Don't set deprecated_register_raw_size.
3977 Don't set deprecated_max_register_raw_size.
3978 Don't set deprecated_register_virtual_size.
3979 Don't set deprecated_max_register_virtual_size.
3980 Don't set deprecated_register_virtual_type.
3981 Set register_type method.
3982
3993f6b1
DJ
39832003-06-15 Daniel Jacobowitz <drow@mvista.com>
3984
3985 * Makefile.in (linux-nat.o): Add rule.
3986 * linux-nat.c: New file.
3987 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3988 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3989 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3990 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3991 * config/arm/linux.mh (NATDEPFILES): Likewise.
3992 * config/i386/linux.mh (NATDEPFILES): Likewise.
3993 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3994 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3995 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3996 * config/mips/linux.mh (NATDEPFILES): Likewise.
3997 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3998 * config/s390/s390.mh (NATDEPFILES): Likewise.
3999 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4000
786a90bb
MK
40012003-06-15 Mark Kettenis <kettenis@gnu.org>
4002
4003 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4004 replace out-of-date comment.
4005
3bd3f01e
AC
40062003-06-15 Andrew Cagney <cagney@redhat.com>
4007
4008 * rdi-share/host.h (Fail): Change to a varargs function.
4009 * remote-rdi.c (Fail): Update.
8ffd9b1b 4010
de5b9bb9
MK
40112003-06-15 Mark Kettenis <kettenis@gnu.org>
4012
4013 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4014 (i386_convert_register_p, i386_register_to_value,
4015 i386_register_from_value): Handle types longer than 8 bytes.
4016
d532c08f
MK
40172003-06-15 Mark Kettenis <kettenis@gnu.org>
4018
4019 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4020 Move floating-point code to new function in i387-tdep.c.
4021 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4022 New functions containing code moved here from i386-tdep.c.
4023 * i387-tdep.h: Add opaque declaration for `struct type'.
4024 (i387_register_to_value, i387_value_to_register): New prototypes.
4025 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4026 (x86_64_init_abi): Set convert_register_p, register_to_value and
4027 value_to_register here.
8ffd9b1b 4028
42c466d7
AC
40292003-06-14 Andrew Cagney <cagney@redhat.com>
4030
4031 * mips-tdep.c (mips_register_to_value): Make static.
4032 (mips_value_to_register): Make static.
4033 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4034 * ia64-tdep.c (ia64_register_raw_size): Make static.
4035 (ia64_register_virtual_size): Make static.
4036 (ia64_register_byte): Make static.
4037 * i387-tdep.c: Include "i387-tdep.h".
4038 (print_387_control_word): Delete function.
4039 (print_387_status_word): Delete function.
4040 (print_387_status_bits): Delete function.
4041 (print_387_control_bits): Delete function.
4042 * Makefile.in (i387-tdep.o): Update dependencies.
4043 * rdi-share/host.h (Fail): Declare.
4044 * remote-rdi.c (Fail): Update to match declaration.
4045
2a9cda49
AC
40462003-06-14 Andrew Cagney <cagney@redhat.com>
4047
4048 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4049 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4050 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4051 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4052 * README: Delete reference to remote-array.
4053 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4054 (remote-array.o): Delete target.
4055 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4056 * remote-array.c: Delete file.
4057
ff2e87ac
AC
40582003-06-14 Andrew Cagney <cagney@redhat.com>
4059 Mark Kettenis <kettenis@gnu.org>
4060
4061 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4062 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4063 parameter with "frame".
4064 * gdbarch.h, gdbarch.c: Re-generate.
4065 * frame.h (put_frame_register): Declare.
4066 * frame.c (put_frame_register): New function.
4067 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4068 (legacy_register_to_value): Rewrite, use "frame" to get the
4069 register value.
4070 (legacy_value_to_register): Rewrite, use "frame" to find the
4071 register's location before storing.
4072 * arch-utils.h (legacy_convert_register_p): Update.
4073 (legacy_register_to_value, legacy_value_to_register): Update.
4074 * findvar.c (value_from_register): Rewrite, eliminate use of
4075 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4076 "frame" to REGISTER_TO_VALUE.
4077 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4078 lval_reg_frame_relative + lval_register branch of the switch. Do
4079 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4080 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4081 I386_EDI_REGNUM): New defines.
4082 (i386_next_regnum, i386_convert_register_p,
4083 i386_register_to_value, i386_value_to_register): New functions.
4084 (i386_register_convertible, i386_register_convert_to_virtual,
4085 i386_convert_to_raw): Remove functions.
4086 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4087 value_to_register instead of register_convertible,
4088 register_convert_to_virtual and register_convert_to_raw.
4089 * mips-tdep.c (mips_convert_register_p): New function.
4090 (mips_value_to_register): Replace mips_register_convert_from_type.
4091 (mips_register_to_value): Replace mips_register_convert_to_type.
4092 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4093 register_to_value.
4094 * alpha-tdep.c (alpha_convert_register_p): Update.
4095 (alpha_value_to_register): Update, store the register.
4096 (alpha_register_to_value): Update, fetch the register.
4097
98be1e77
TR
40982003-06-14 Theodore A. Roth <troth@openavr.org>
4099
4100 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4101 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4102 Don't set deprecated_call_dummy_words.
4103 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4104 Don't set remote_translate_xfer_address.
4105 (avr_io_reg_read_command): Remove commented out debug printf.
4106 Wrap a long line.
4107
57bc6122
TR
41082003-06-14 Theodore A. Roth <troth@openavr.org>
4109
4110 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4111 causes gdb to seg fault.
4112
eb01fc62
DJ
41132003-06-14 Daniel Jacobowitz <drow@mvista.com>
4114
4115 * sparc-nat.c (fetch_inferior_registers): Correct
4116 a reference to "registers".
4117
3b3e6bee
DJ
41182003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4119
4120 * Makefile.in (exc_request_U_h): Define
4121 (exc_request_S_h): Likewise.
4122 (msg_reply_S_h): Likewise.
4123 (msg_U_h): Likewise.
4124 (notify_S_h): Likewise.
4125 (process_reply_S_h): Likewise.
4126 (gnu-nat.o): Depend on gdb_obstack_h
4127 * gnu-nat.c: Include "gdb_obstack.h".
4128
b8de8283
AC
41292003-06-13 Andrew Cagney <cagney@redhat.com>
4130
4131 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4132 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4133
f3be58bc
AC
41342003-06-13 Andrew Cagney <cagney@redhat.com>
4135
4136 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4137 when deprecated REGISTER macros can be deleted.
4138 * gdbarch.h, gdbarch.c: Re-generate.
4139
4c0122c8
JB
41402003-06-13 Jim Blandy <jimb@redhat.com>
4141
4142 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4143 Linux entry point symbols for _dl_debug_state, too.
4144
3e210248
AC
41452003-06-13 Andrew Cagney <cagney@redhat.com>
4146
4147 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4148 available, do not use the FP register, and always save the TOS.
4149 * dummy-frame.c (dummy_frame_this_id): Do not assert
4150 SAVE_DUMMY_FRAME_TOS.
4151 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4152 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4153 (i386_push_dummy_call): Add 8 to the returned SP.
4154 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4155 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4156 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4157 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4158 (x86_64_push_dummy_call): Return "sp + 16".
4159 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4160 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4161 save_dummy_frame_tos.
4162
0b65af49
JB
41632003-06-13 Jim Blandy <jimb@redhat.com>
4164
4165 * frv-tdep.c (frv_use_struct_convention): Delete static
4166 declaration for function deleted in my change of 2003-06-12.
4167
4ea2465e
TR
41682003-06-13 Theodore A. Roth <troth@openavr.org>
4169
4170 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4171 (avr_pointer_to_address): Shift code addrs left 1 bit.
4172 (avr_convert_from_func_ptr_addr): Delete function since operation is
4173 better handled by avr_address_to_pointer and avr_pointer_to_address.
4174 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4175
1581182a
MK
41762003-06-13 Mark Kettenis <kettenis@gnu.org>
4177
4178 From Kelley Cook <kelleycook@wideopenwest.com>:
4179 * configure.host: Accept i[34567]86 variants.
4180 * configure.tgt: Likewise.
4181 * nlm/configure.in: Likewise.
4182 * nlm/configure: Regenerated.
4183
7aa1783e
RE
41842003-06-13 Richard Earnshaw <rearnsha@arm.com>
4185
4186 * arm-tdep.c (solib-svr4.h): Dont' include it.
4187 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4188 * arm-linux-tdep.c: ... here. Make static.
4189 (arm_linux_init_abi): Register it.
4190 (solib-svr4.h): Include it.
4191 * Makefile.in: Update dependencies.
4192 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4193 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4194
0261a0d0
CV
41952003-06-13 Corinna Vinschen <vinschen@redhat.com>
4196
4197 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4198 indicate registers used for return values.
4199 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4200 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4201 members.
4202 (h8300_init_extra_frame_info): Ditto.
4203 (h8300_frame_locals_address): Removed.
4204 (h8300_frame_args_address): Removed.
4205 (h8300_extract_return_value): Use new regcache structure. Only care
4206 for 16 bit CPUs.
4207 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4208 (h8300_store_return_value): Use new regcache structure. Only care
4209 for 16 bit CPUs.
4210 (h8300h_store_return_value): Same function for 32 bit CPUs.
4211 (h8300_store_struct_return): Removed.
4212 (h8300_extract_struct_value_address): Use new regcache structure.
4213 (h8300h_extract_struct_value_address): Removed.
4214 (h8300_push_dummy_code): New function.
4215 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4216 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4217 set_gdbarch_store_return_value architecture dependent.
4218 Call set_gdbarch_push_dummy_code and
4219 set_gdbarch_extract_struct_value_address.
4220 Remove calls to set_gdbarch_frame_args_address,
4221 set_gdbarch_frame_locals_address,
4222 set_gdbarch_deprecated_store_struct_return,
4223 set_gdbarch_deprecated_extract_return_value,
4224 set_gdbarch_deprecated_extract_struct_value_address,
4225 set_gdbarch_deprecated_call_dummy_words and
4226 set_gdbarch_deprecated_sizeof_call_dummy_words.
4227
055c394a
CV
42282003-06-13 Corinna Vinschen <vinschen@redhat.com>
4229
4230 * h8300-tdep.c (h8300_register_byte): Remove.
4231 (h8300h_register_byte): Remove.
4232 (h8300_register_virtual_type): Remove. Substitute by...
4233 (h8300_register_type): New function.
4234 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4235 (h8300h_extract_struct_value_address): Ditto.
4236 (h8300_gdbarch_init): Drop calls to
4237 set_gdbarch_deprecated_register_byte and
4238 set_gdbarch_deprecated_register_virtual_type.
4239 Add call to set_gdbarch_register_type.
4240
9c04cab7
AC
42412003-06-13 Andrew Cagney <cagney@redhat.com>
4242
4243 * gdbarch.sh: Update comments on registers.
4244 (deprecated_register_byte): Rename register_byte.
4245 (deprecated_register_raw_size): Rename register_raw_size.
4246 (deprecated_register_virtual_size): Rename register_virtual_size.
4247 (deprecated_register_virtual_type): Rename register_virtual_type.
4248 * gdbarch.h, gdbarch.c: Re-generate.
4249 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4250 * vax-tdep.c (vax_gdbarch_init): Update.
4251 * v850-tdep.c (v850_gdbarch_init): Update.
4252 * sparc-tdep.c (sparc_gdbarch_init): Update.
4253 * sh-tdep.c (sh_gdbarch_init): Update.
4254 * s390-tdep.c (s390_gdbarch_init): Update.
4255 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4256 * ns32k-tdep.c: Update.
4257 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4258 * mips-tdep.c (mips_gdbarch_init): Update.
4259 * mcore-tdep.c (mcore_gdbarch_init): Update.
4260 * m68k-tdep.c (m68k_gdbarch_init): Update.
4261 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4262 * ia64-tdep.c (ia64_gdbarch_init): Update.
4263 * hppa-tdep.c (hppa_gdbarch_init): Update.
4264 * h8300-tdep.c (h8300_gdbarch_init): Update.
4265 * frv-tdep.c (frv_gdbarch_init): Update.
4266 * cris-tdep.c (cris_gdbarch_init): Update.
4267 * avr-tdep.c (avr_gdbarch_init): Update.
4268 * alpha-tdep.c (alpha_gdbarch_init): Update.
4269 * arm-tdep.c (arm_gdbarch_init): Update.
4270
b060cbea
AC
42712003-06-13 Andrew Cagney <cagney@redhat.com>
4272
4273 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4274 mips_o32_use_struct_convention with always_use_struct_convention.
4275
0fc9922a
DC
42762003-06-12 David Carlton <carlton@kealia.com>
4277
4278 * cp-namespace.c (cp_set_block_scope): Comment out
4279 processing_has_namespace_info branch.
4280
1fd35568
JB
42812003-06-12 Jim Blandy <jimb@redhat.com>
4282
f470a70a
JB
4283 Recognize and skip 64-bit PowerPC Linux linkage functions.
4284 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4285 insn_pattern, insns_match_pattern, d_field, ds_field): New
4286 functions, macros, and types for working with PPC instructions.
4287 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4288 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4289 ppc64_skip_trampoline_code): New functions, variables, and macros
4290 for recognizing and skipping linkage functions.
4291 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4292 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4293
49ff75ad
JB
4294 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4295 register offsets for both the 32- and 64-bit interfaces.
4296
bd918c83
JB
4297 Actually finish the job started by my change of 2003-05-29.
4298 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4299 other #definition of this.
4300 (ppc_linux_skip_trampoline_code): Remove declaration.
4301 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4302 static.
4303 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4304 method for GDBARCH.
4305
4306 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4307 'long' on ppc64-*-linux*.
4308
f8c59253
JB
4309 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4310 isn't #defined, assume the register doesn't exist: act as if
4311 tdep->ppc_mq_regnum were -1.
4312
8fbb30b1
JB
4313 * configure.host, configure.tgt: Add entries for
4314 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4315 powerpc/linux.mt.
4316 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4317 New files.
4318
1fd35568
JB
4319 * arch-utils.c (always_use_struct_convention): New function.
4320 * arch-utils.h (always_use_struct_convention): New prototype.
4321 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4322 (alpha_gdbarch_init): Register always_use_struct_convention,
4323 instead of alpha_use_struct_convention.
4324 * cris-tdep.c (cris_use_struct_convention): Delete.
4325 (cris_gdbarch_init): Register always_use_struct_convention,
4326 instead of cris_use_struct_convention.
4327 * frv-tdep.c (frv_use_struct_convention): Delete.
4328 (frv_gdbarch_init): Register always_use_struct_convention,
4329 instead of frv_use_struct_convention.
4330 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4331 (h8300_gdbarch_init): Register always_use_struct_convention,
4332 instead of h8300_use_struct_convention.
e3305dd9 4333 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4334 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4335 instead of mips_o32_use_struct_convention.
4336
e14e6e9c
AC
43372003-06-12 Andrew Cagney <cagney@redhat.com>
4338
4339 * wince.c: Include "mips-tdep.h".
4340 * mips-tdep.h (mips_next_pc): Declare.
4341 * mcore-tdep.c: Make more local functions static.
4342 * Makefile.in (wince.o): Update dependencies.
4343
2335f48e
DC
43442003-06-12 David Carlton <carlton@kealia.com>
4345
4346 * symtab.c (lookup_symbol_aux_minsyms): Replace
4347 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4348 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4349 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4350 SYMBOL_NATURAL_NAME.
4351
f70a7d61
AS
43522003-06-12 Andreas Schwab <schwab@suse.de>
4353
4354 * Makefile.in (tuiDisassem.o): Update dependencies.
4355
b6429628
DC
43562003-06-12 David Carlton <carlton@bactrian.org>
4357
4358 * symtab.h: Delete declaration of make_symbol_overload_list.
4359 Add declaration of lookup_partial_symbol.
4360 * symtab.c (remove_params): Move to cp-support.c.
4361 (overload_list_add_symbol, make_symbol_overload_list)
4362 (sym_return_val_size, sym_return_val_index): Ditto.
4363 (lookup_partial_symbol): Make extern.
4364 * cp-support.h: Add declaration of make_symbol_overload_list.
4365 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4366 symtab.h, and block.h.
4367 (remove_params): Move here from symtab.c.
4368 (overload_list_add_symbol, make_symbol_overload_list)
4369 (sym_return_val_size, sym_return_val_index): Ditto.
4370 * valops.c: Include cp-support.h.
4371 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4372 frame_h, and block_h.
4373 (valops.o): Depend on cp_support_h.
4374
084edea5
CV
43752003-06-12 Corinna Vinschen <vinschen@redhat.com>
4376
4377 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4378 substitute by NUM_REGS throughout.
4379 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4380 (h8300s_register_name): New function for H8S registers.
4381 (h8300sx_register_name): Ditto for H8SX registers.
4382 (h8300_print_register): Revise register printing, avoid depending
4383 on 32 bit long.
0261a0d0 4384 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4385 (h8300h_register_byte): New function for any other architecture.
4386 (h8300_register_raw_size): Remove.
4387 (h8300_register_virtual_type): Revise to return actually useful
4388 type.
4389 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4390 (h8300h_extract_struct_value_address): New function for any other
4391 architecture.
4392 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4393 set_gdbarch_register_name, set_gdbarch_register_byte,
4394 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4395 Remove calls to set_gdbarch_deprecated_register_size,
4396 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4397 set_gdbarch_deprecated_max_register_raw_size,
4398 set_gdbarch_register_virtual_size and
4399 set_gdbarch_deprecated_max_register_virtual_size entirely.
4400 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4401 set_gdbarch_long_double_bit.
4402
06194148
JJ
44032003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4404
8ffd9b1b
AJ
4405 * doublest.c (convert_doublest_to_floatformat): When dealing
4406 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4407 processing a full 32 bits of mantissa.
4408
de4f826b
DC
44092003-06-11 David Carlton <carlton@bactrian.org>
4410
4411 * dictionary.h: New.
4412 * dictionary.c: New.
4413 * block.h: Add opaque declaration for struct dictionary.
4414 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4415 'sym' members.
4416 (BLOCK_DICT): New macro.
4417 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4418 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4419 BLOCK_SHOULD_SORT.
4420 (ALL_BLOCK_SYMBOLS): Update definition.
4421 * Makefile.in (SFILES): Add dictionary.c.
4422 (dictionary_h): New.
4423 (COMMON_OBS): Add dictionary.o.
4424 (dictionary.o): New.
4425 (ada-lang.o): Depend on dictionary_h.
4426 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4427 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4428 (mi-cmd-stack.o): Ditto.
4429 (gdbtk-cmds.o): Update dependencies.
4430 (gdbtk-stack.o): Ditto.
4431 * ada-lang.c: Include dictionary.h.
4432 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4433 (fill_in_ada_prototype, debug_print_block): Ditto.
4434 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4435 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4436 'is_sorted'.
4437 * mdebugread.c: Include dictionary.h.
4438 (struct parse_stack): Delete 'maxsyms' member.
4439 (parse_symbol): Update calls to new_block. Delete calls to
4440 shrink_block. Use dictionary methods.
4441 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4442 Update calls to new_symtab. Don't maintain maxsyms data.
4443 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4444 (add_symbol): Just call dict_add_symbol.
4445 (new_symtab): Delete 'maxsyms' argument.
4446 (new_symtab): Update calls to new_block.
4447 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4448 (shrink_block): Delete function.
4449 (fixup_sigtramp): Update call to new_block. Add symbol via
4450 dict_add_symbol.
4451 * jv-lang.c: Include dictionary.h.
4452 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4453 appropriately. Set class_symtab->free_func. Make sure the
4454 blockvector is big enough to hold two blocks.
4455 (add_class_symtab_symbol): Use dictionary methods.
4456 (free_class_block): New function.
4457 (type_from_class): Replace explicit iteration by
4458 ALL_BLOCK_SYMBOLS.
4459 * symtab.h (struct symtab): Replace 'free_ptr' method by
4460 'free_func'.
4461 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4462 sort_symtab_syms.
4463 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4464 sort_symtab_syms.
4465 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4466 Include dictionary.h.
4467 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4468 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4469 sort_symtab_syms.
4470 * objfiles.c: Include dictionary.h.
4471 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4472 * buildsym.c: Include dictionary.h.
4473 (finish_block): Use dictionary methods.
4474 (end_symtab): Set free_func to NULL, not free_ptr.
4475 * tracepoint.c: Include dictionary.h.
4476 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4477 (scope_info): Ditto.
4478 * stack.c: Include dictionary.h.
4479 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4480 (print_block_frame_labels, print_frame_arg_vars)
4481 (print_frame_args): Ditto.
4482 * symmisc.c (free_symtab_block): Use dictionary methods.
4483 (dump_symtab): Ditto.
4484 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4485 Include dictionary.h.
4486 * symfile.h: Delete declarations of sort_block_syms,
4487 sort_symtab_syms.
4488 * symfile.c (sort_block_syms): Delete.
4489 (sort_symtab_syms): Delete.
4490 * symtab.c: Include dictionary.h.
4491 (lookup_block_symbol): Use dictionary iterators.
4492 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4493 (search_symbols, make_symbol_completion_list): Ditto.
4494 (make_symbol_overload_list): Ditto.
4495 * valops.c (value_of_local): Use dict_empty.
4496 Include dictionary.h.
4497
a31f978c
JB
44982003-06-11 J. Brobecker <brobecker@gnat.com>
4499
4500 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4501
526e70c0
DC
45022003-06-11 David Carlton <carlton@bactrian.org>
4503
4504 * block.h (BLOCK_SHOULD_SORT): Delete.
4505 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4506 blocks.
4507 * ada-lang.c (ada_add_block_symbols): Ditto.
4508 * symfile.c (sort_block_syms): Delete.
4509 (sort_symtab_syms): Ditto.
4510 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4511 declarations.
4512 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4513 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4514 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4515 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4516 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4517 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4518 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4519
33c08150
JJ
45202003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4521
8ffd9b1b 4522 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4523 bits to 128.
4524
781a750d
AC
45252003-06-11 Andrew Cagney <cagney@redhat.com>
4526
4527 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4528 REGISTER_CONVERTIBLE.
4529 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4530 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4531 * gdbarch.h, gdbarch.c: Re-generate.
4532 * arch-utils.h (deprecated_register_convertible_not): Rename
4533 generic_register_convertible_not.
4534 * arch-utils.c (deprecated_register_convertible_not): Rename
4535 generic_register_convertible.
4536 (legacy_convert_register_p, legacy_register_to_value): Update.
4537 * sh-tdep.c (sh64_push_arguments): Update.
4538 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4539 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4540 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4541 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4542 * arch-utils.c (legacy_value_to_register): Update.
4543 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4544 (rs6000_register_convert_to_raw): Make parameter "from" const.
4545 * mips-tdep.c (mips_gdbarch_init): Update.
4546 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4547 * infcmd.c (default_print_registers_info): Update.
4548 * ia64-tdep.c (ia64_gdbarch_init): Update.
4549 (ia64_register_convert_to_raw): Make parameter "from" const.
4550 * i386-tdep.c (i386_gdbarch_init): Update.
4551 (i386_register_convert_to_raw): Update.
4552
cd90e54f
AC
45532003-06-11 Andrew Cagney <cagney@redhat.com>
4554
4555 * remote-fileio.c: Include "remote-fileio.h".
4556 * Makefile.in (remote-fileio.o): Update dependencies.
4557 (remote_fileio_h): Fix typo.
4558
a78f21af
AC
45592003-06-11 Andrew Cagney <cagney@redhat.com>
4560
4561 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4562 (xstormy16_save_dummy_frame_tos): Make static.
4563 (_initialize_xstormy16_tdep): Add declaration.
4564 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4565 * v850-tdep.c: Make local functions static.
4566 (_initialize_v850_tdep): Add declaration.
4567 * sparc-tdep.c: Make local functions static.
4568 (_initialize_sparc_tdep): Add declaration.
4569 * sh-tdep.c: Make local functions static.
4570 (_initialize_sh_tdep): Add declaration.
4571 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4572 * s390-tdep.c: Make local functions static.
4573 (_initialize_s390_tdep): Add declaration.
4574 * dbxread.c (find_stab_function_addr): Make static.
4575 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4576 * ocd.c (_initialize_remote_ocd): Add declaration.
4577 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4578 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4579 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4580 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4581 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4582 * remote-array.c (_initialize_array): Add declaration.
4583 (_initialize_remote_monitors): Add declaration.
4584 * remote-mips.c: Make local functions static.
4585 (_initialize_remote_mips): Add declaration.
4586 * mcore-tdep.c: Make all local functions static.
4587 (_initialize_mcore_tdep): Add declaration.
4588 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4589 * abug-rom.c (_initialize_abug_rom): Add declaration.
4590 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4591 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4592 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4593 * remote-est.c (_initialize_est): Add declaration.
4594 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4595 (m68hc11_call_dummy_address): Make static.
4596 * ia64-tdep.c: Make local functions static.
4597 (_initialize_ia64_tdep): Add declaration.
4598 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4599 * monitor.c (monitor_wait_filter): Make static.
4600 (_initialize_remote_monitors): Add declaration.
4601 * remote-hms.c (_initialize_remote_hms): Add declaration.
4602 * remote-e7000.c (fetch_regs_from_dump): Make static.
4603 (expect_n): Make static.
4604 (_initialize_remote_e7000): Add declaration.
4605 * ser-e7kpc.c: Always include "defs.h".
4606 (_initialize_ser_e7000pc): Add declaration.
4607 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4608 * cris-tdep.c: Make all but one function static.
4609 (_initialize_cris_tdep): Add declaration.
4610 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4611 * solib.c (update_solib_list): Make static.
4612 (_initialize_solib): Add declaration.
4613 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4614 (_initialize_avr_tdep): Add declaration.
4615 * remote-rdi.c (voiddummy): Make static.
4616 (_initialize_remote_rdi): Add declaration.
4617 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4618 * remote-rdp.c (send_rdp): Make static.
4619 (_initialize_remote_rdp): Add declaration.
4620 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4621
cbcdb1f5
CV
46222003-06-11 Corinna Vinschen <vinschen@redhat.com>
4623
4624 * remote-fileio.c: Make ari happy.
4625
a191ea8d
JB
46262003-06-10 J. Brobecker <brobecker@gnat.com>
4627
4628 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4629 fetching the trailing bytes of the buffer we are about to write.
4630
0ef75e11
AC
46312003-06-10 Andrew Cagney <cagney@redhat.com>
4632
4633 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4634 * Makefile.in (remote-fileio.o): Update dependencies.
4635 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4636 include <setjmp.h>, or <sys/types.h> conditional on USG.
4637 (remote_fio_jmp_buf): Delete global variable.
4638
449092f6 46392003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 4640 Martin M. Hunt <hunt@redhat.com>
449092f6 4641
559fa028
AC
4642 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4643 (SFILES): Add remote-fileio.c.
4644 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4645 dependencies for building remote.o.
449092f6
CV
4646 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4647 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 4648 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
4649 static storage class.
4650 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4651 'F' packet.
4652 (_initialize_remote): Call initialize_remote_fileio().
4653 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
4654 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4655 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4656 (captured_main): Initialize new ui_files.
4657 * ui-file.c: Add read and fgets input functions.
4658 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4659 (null_file_read): New function.
4660 (ui_file_read): New function.
4661 (set_ui_file_read): New function.
4662 (stdio_file_read): New function.
4663 * ui-file.h: New type ui_file_read_ftype.
4664 (set_ui_file_read): Declare.
4665 (ui_file_read): Declare.
4666
248de703
AC
46672003-06-09 Andrew Cagney <cagney@redhat.com>
4668
4669 * frame.h (deprecated_unwind_get_saved_register): Rename
4670 generic_unwind_get_saved_register, update comments.
4671 * mips-tdep.c (mips_get_saved_register): Update.
4672 * frame.c (deprecated_unwind_get_saved_register): Update.
4673
0ed8aa57
AC
46742003-06-09 Andrew Cagney <cagney@redhat.com>
4675
4676 * vax-tdep.c (vax_frame_locals_address): Delete function.
4677 (vax_gdbarch_init): Do not set frame_locals_address.
4678 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4679 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4680 * s390-tdep.c (s390_frame_args_address): Delete function.
4681 (s390_gdbarch_init): Do not set frame_args_address or
4682 frame_locals_address.
4683 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4684 (ns32k_gdbarch_init): Do not set frame_locals_address.
4685 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4686 (hppa_frame_locals_address): Delete function.
4687 (hppa_gdbarch_init): Do not set frame_args_address, or
4688 frame_locals_address.
4689 * arm-tdep.c (arm_frame_args_address): Delete.
4690 (arm_frame_locals_address): Delete.
4691 (arm_gdbarch_init): Do not set frame_args_address, or
4692 frame_locals_address.
4693
983a287a
AC
46942003-06-09 Andrew Cagney <cagney@redhat.com>
4695
4696 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4697 * gdbarch.h, gdbarch.c: Re-generate.
4698 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4699 * arch-utils.c (frame_num_args_unknown): Delete function.
4700 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4701 (frame_info): Use FRAME_NUM_ARGS_P.
4702 * arm-tdep.c (arm_frame_num_args): Delete function.
4703 (arm_gdbarch_init): Do not set frame_num_args.
4704 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4705 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4706 (hppa_gdbarch_init): Do not set frame_num_args.
4707 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4708 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4709 frame_num_args to default frame_num_args_unknown.
4710 * v850-tdep.c (v850_gdbarch_init): Ditto.
4711 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4712 * sh-tdep.c (sh_gdbarch_init): Ditto.
4713 * s390-tdep.c (s390_gdbarch_init): Ditto.
4714 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4715 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4716 * mips-tdep.c (mips_gdbarch_init): Ditto.
4717 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4718 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4719 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4720 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4721 * i386-tdep.c (i386_gdbarch_init): Ditto.
4722 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4723 * frv-tdep.c (frv_gdbarch_init): Ditto.
4724 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4725 * cris-tdep.c (cris_gdbarch_init): Ditto.
4726 * avr-tdep.c (avr_gdbarch_init): Ditto.
4727 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4728
8d3b0994
AC
47292003-06-09 Andrew Cagney <cagney@redhat.com>
4730
4731 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4732 (print_frame_args): Moved to "stack.c".
4733 * stack.c: Include "gdb_assert.h".
4734 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4735 (print_frame_args): Moved from "printcmd.c".
4736 * frame.h (print_frame_args): Delete declaration.
4737 * Makefile.in (stack.o): Update dependencies.
4738
25e3a86b
AC
47392003-06-08 Andrew Cagney <cagney@redhat.com>
4740
4741 * frame.c (get_prev_frame): Remove reference to
4742 frame_args_address_correct in comments.
4743 * frame-base.c (default_frame_args_address): Delete code
4744 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4745 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4746 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4747 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4748 (vax_frame_args_address_correct): Delete declaration.
4749
a9e5fdc2
AC
47502003-06-08 Andrew Cagney <cagney@redhat.com>
4751
4752 * gdbarch.sh (UNWIND_SP): Add.
4753 * gdbarch.h, gdbarch.c: Re-generate.
4754 * frame.c (frame_sp_unwind): New function.
4755 (get_frame_sp): New function.
4756 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4757 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4758 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4759 value.
4760 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4761 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4762
8983bd83
AC
47632003-06-08 Andrew Cagney <cagney@redhat.com>
4764
7fec2c59
AC
4765 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4766 REMOTE_BREAKPOINT.
4767 * remote.c: Update.
4768 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4769 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4770 * config/m68k/tm-sun3.h: Update.
4771 * config/m68k/tm-m68klynx.h: Update.
4772 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4773
8983bd83
AC
4774 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4775 trad_frame". Update comments.
4776 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4777 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4778 (trad_frame_register_value, trad_frame_prev_register): Update.
4779
b9362cc7
AC
47802003-06-08 Andrew Cagney <cagney@redhat.com>
4781
4782 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4783 from GCC's acinclude.m4.
4784 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4785 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4786 * main.c (error_init): Delete declaration.
4787 * defs.h (error_init): Declare.
4788 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4789 (rs6000_convert_from_func_ptr_addr): Make static.
4790 (_initialize_rs6000_tdep): Add declaration.
4791 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4792 (show_commands, set_verbose, show_history): Delete declaration.
4793 * top.h (set_verbose): Add declaration.
4794 (show_history, set_history, show_commands): Add declaration.
4795 (do_restore_instream_cleanup): Add declaration.
4796 * objc-lang.c (specialcmp): Make static.
4797 (print_object_command): Make static.
4798 (find_objc_msgsend): Make static.
4799 (find_objc_msgcall_submethod_helper): Make static.
4800 (find_objc_msgcall_submethod): Make static.
4801 (_initialize_objc_language): Add declaration.
4802 (find_implementation_from_class): Make static.
4803 (find_implementation): Make static.
4804 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4805 * objc-lang.h (lookup_struct_typedef): Add declaration.
4806 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4807 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4808 (do_restore_user_call_depth): Make static.
4809 (do_restore_instream_cleanup): Delete declaration.
4810 (dont_repeat): Delete declaration.
4811 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4812 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4813 * reggroups.c (_initialize_reggroup): Add declaration.
4814 * cp-support.c (_initialize_cp_support): Add declaration.
4815 * cp-abi.c (_initialize_cp_abi): Add declaration.
4816 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4817 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4818 (_initialize_gnu_v3_abi): Add declaration.
4819 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4820 (_initialize_gnu_v2_abi): Add declaration.
4821 * frame-base.c (_initialize_frame_base): Add declaration.
4822 * doublest.c (floatformat_from_length): Make static.
4823 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4824 * frame.c (create_sentinel_frame): Make static.
4825 (_initialize_frame): Add declaration.
4826 * top.c (do_catch_errors): Make static.
4827 (gdb_rl_operate_and_get_next_completion): Make static.
4828 * typeprint.c: Include "typeprint.h".
4829 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4830 (sentinel_frame_this_id): Make static.
4831 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4832 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4833 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4834 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4835 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4836 * maint.c (maintenance_print_architecture): Make static.
4837 * signals/signals.c (_initialize_signals): Add declaration.
4838 * std-regs.c (_initialize_frame_reg): Add declaration.
4839 * jv-exp.y (push_variable): ISO C definition.
4840 (push_qualified_expression_name): Ditto.
4841 * memattr.c (_initialize_mem): Add declaration.
4842 * remote.c (remote_check_watch_resources): Make static.
4843 (remote_stopped_by_watchpoint): Make static.
4844 (remote_stopped_data_address): Make static.
4845 * d10v-tdep.c (nr_dmap_regs): Make static.
4846 (a0_regnum): Make static.
4847 (d10v_frame_unwind_cache): Make static.
4848 (d10v_frame_p): Make static.
4849 * osabi.c (show_osabi): Make static.
4850 (_initialize_gdb_osabi): Add extern declaration.
4851 * gdbtypes.c (make_qualified_type): Make static.
4852 (safe_parse_type): Make static.
4853 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4854 * macrotab.c (macro_bcache_free): Make static.
4855 * interps.c (interp_set_quiet): Make static.
4856 (interpreter_exec_cmd): Make static.
4857 * stack.h (select_frame_command): New file.
4858 * stack.c: Include "stack.h".
4859 (select_frame_command_wrapper): Delete function.
4860 (select_frame_command): Make global.
4861 * infcall.c: Include "infcall.h".
4862 * linespec.c: Include "linespec.h".
4863 * symfile.c (sections_overlap): Make static.
4864 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4865 * charset.c (_initialize_charset): Add missing prototype.
4866 * regcache.c (init_legacy_regcache_descr): Make static.
4867 (do_regcache_xfree): Make static.
4868 (regcache_xfer_part): Make static.
4869 (_initialize_regcache): Add missing prototype.
4870 * breakpoint.c (parse_breakpoint_sals): Make static.
4871 (breakpoint_sals_to_pc): Make static.
4872 * interps.h (clear_interpreter_hooks): ISO C declaration.
4873 * Makefile.in (stack_h): Define.
4874 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4875 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4876
a0f267c7
AC
48772003-06-08 Andrew Cagney <cagney@redhat.com>
4878
4879 * Makefile.in (d10v-tdep.o): Update dependencies.
4880 (SFILES): Add trad-frame.c.
4881 (trad_frame_h): Define.
4882 (COMMON_OBS): Add trad-frame.o.
4883 (trad-frame.o): Specify dependencies.
4884 * d10v-tdep.c: Include "trad-frame.h".
4885 (saved_regs_unwinder): Delete function.
4886 (d10v_frame_prev_register): Use trad_frame_prev_register.
4887 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4888 trad_frame", delete "regs" and "prev_sp".
4889 (prologue_find_regs): Use trad-frame.
4890 * trad-frame.h, trad-frame.c: New files.
4891
4538b4f4
MK
48922003-06-08 Mark Kettenis <kettenis@gnu.org>
4893
4894 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4895
a0273b2f
AF
48962003-06-07 Adam Fedor <fedor@gnu.org>
4897
4898 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4899 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4900 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4901 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4902 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4903 Use it.
4904
3a6c3343
AC
49052003-06-07 Andrew Cagney <cagney@redhat.com>
4906
4907 * symfile.h: Re-indent, clean up comments.
4908
b46e02f6
AC
49092003-06-07 Andrew Cagney <cagney@redhat.com>
4910
4911 * inferior.h (deprecated_write_sp): Replace
4912 generic_target_write_sp.
4913 * regcache.c (deprecated_write_sp): Replace
4914 generic_target_write_sp.
4915 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4916 * vax-tdep.c (vax_gdbarch_init): Update.
4917 * v850-tdep.c (v850_gdbarch_init): Update.
4918 * sparc-tdep.c (sparc_gdbarch_init): Update.
4919 * sh-tdep.c (sh_gdbarch_init): Update.
4920 * s390-tdep.c (s390_gdbarch_init): Update.
4921 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4922 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4923 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4924 * mcore-tdep.c (mcore_gdbarch_init): Update.
4925 * m68k-tdep.c (m68k_gdbarch_init): Update.
4926 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4927 * ia64-tdep.c (ia64_gdbarch_init): Update.
4928 * h8300-tdep.c (h8300_gdbarch_init): Update.
4929 * frv-tdep.c (frv_gdbarch_init): Update.
4930 * cris-tdep.c (cris_gdbarch_init): Update.
4931 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4932
a42e117c
AC
49332003-06-07 Andrew Cagney <cagney@redhat.com>
4934
4935 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4936 Assert that PC_REGNUM is valid.
4937 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4938
bd1ce8ba
AC
49392003-06-07 Andrew Cagney <cagney@redhat.com>
4940
4941 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4942 * gdbarch.h, gdbarch.c: Regenerate.
4943 * mn10300-tdep.c: Include "gdb_assert.h".
4944 (mn10300_read_fp): New function.
4945 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4946 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4947 * ia64-tdep.c: Include "gdb_assert.h".
4948 (ia64_read_fp): New function.
4949 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4950 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4951 * regcache.c (generic_target_read_sp): Delete function.
4952 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4953 * inferior.h (generic_target_read_sp): Delete declaration.
4954 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4955 generic_target_read_sp.
4956 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4957 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4958 * sh-tdep.c (sh_gdbarch_init): Ditto.
4959 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4960 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4961
ec5cbaec
AC
49622003-06-07 Andrew Cagney <cagney@redhat.com>
4963
4964 * gdbarch.sh: Comment each field of startup_gdbarch.
4965 * gdbarch.h, gdbarch.c: Re-generate.
4966
cde9ea48
AC
49672003-06-07 Andrew Cagney <cagney@redhat.com>
4968
4969 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4970 * gdbarch.h, gdbarch.c: Re-generate.
4971 * regcache.c: Update comments on read_pc et.al.
4972 (generic_target_read_pc): Delete function.
4973 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4974 * inferior.h (generic_target_read_pc): Delete declaration.
4975 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4976 generic_target_read_pc.
4977 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4978 * sh-tdep.c (sh_gdbarch_init): Ditto.
4979 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4980 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4981
9a90a780
AC
49822003-06-07 Andrew Cagney <cagney@redhat.com>
4983
4984 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4985 "index" with "special_local_sect". Use strcmp instead of STREQ.
4986 Append period to coments.
4987
a39a16c4
MM
49882003-06-06 Mark Mitchell <mark@codesourcery.com>
4989
4990 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4991 (elfstab_offset_sections): Likewise.
4992 * gdb-stabs.h (stab_section_info): Likewise.
4993 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4994 * objfiles.c (objfile_relocate): Likewise.
4995 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4996 * remote.c (get_offsets): Likewise.
4997 (remote_cisco_objfile_relocate): Likewise.
4998 * somread.c (som_symfile_offsets): Likewise.
4999 * symfile.c (alloc_section_addr_info): New function.
5000 (build_section_addr_info_from_section_tab): Use it.
5001 (free_section_addr_info): Adjust.
5002 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5003 (syms_from_objfile): Allocate local_addr dynamically.
5004 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5005 dynamically.
5006 (add_symbol_file_command): Allocate sect_opts dynamically.
5007 (reread_symbols): Avoid use of SECT_OFF_MAX.
5008 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5009 (alloc_section_addr_info): Declare it.
5010 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5011 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5012 dynamically.
5013 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5014
20c6c2f8
AC
50152003-06-06 Andrew Cagney <cagney@redhat.com>
5016
5017 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5018 (d10v_frame_unwind_cache): Do not set "return_pc".
5019
884a26c8
MS
50202003-06-06 Michael Snyder <msnyder@redhat.com>
5021
5022 * h8300-tdep.c: Make tidy (long lines).
5023
088ce440
ML
50242003-06-06 Michal Ludvig <mludvig@suse.cz>
5025
8ffd9b1b 5026 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5027 to regcache_collect().
5028
7d773d96
JB
50292003-06-05 J. Brobecker <brobecker@gnat.com>
5030
5031 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5032 pc_in_sigtramp multiarch method.
5033 (hppa_hpux_som_init_abi): Use it.
5034 (hppa_hpux_elf_init_abi): Likewise.
5035 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5036 macro has been multiarched.
5037 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5038 macro here, as hppa64 isn't multiarched yet.
5039
1df6926e
AC
50402003-06-05 Andrew Cagney <cagney@redhat.com>
5041
5042 * Makefile.in (value_h): Add $(frame_h).
5043 * value.h: Include "frame.h".
5044 (struct value): Replace "frame_addr" with "frame_id".
5045 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5046 * values.c (allocate_value): Use VALUE_FRAME_ID.
5047 (value_copy): Use VALUE_FRAME_ID.
5048 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5049 * valops.c (value_assign): Update. Use frame_find_by_id.
5050
6b53acc6
ML
50512003-06-05 Michal Ludvig <mludvig@suse.cz>
5052
5053 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5054 in each pass.
5055
4d9850d3
JJ
50562003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5057
5058 * thread-db.c (check_event): For create/death event breakpoints,
5059 loop through all messages to ensure that we read the message
5060 corresponding to the breakpoint we are at.
5061
8efca6ba
MS
50622003-06-04 Michael Snyder <msnyder@redhat.com>
5063
5064 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5065
0912c7f2
MK
50662003-06-04 Mark Kettenis <kettenis@gnu.org>
5067
5068 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5069 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5070 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5071 when handling .eh_frame sections.
5072
4e370325
JB
50732003-06-04 J. Brobecker <brobecker@gnat.com>
5074
5075 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5076 prepare_to_proceed procedure instead of the hppa-specific one.
5077 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5078
b757528f 50792003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5080
b757528f
JJ
5081 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5082 * config.in: Regenerated.
5083 * configure.in: Add test for syscall function and check for
5084 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5085 * configure: Regenerated.
5086 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5087 <sys/syscall.h>.
5088 (kill_lwp): New function that uses tkill syscall or
5089 uses kill, depending on whether threading model is nptl or not.
5090 All callers of kill() changed to use kill_lwp().
5091 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5092 see if all threads have already exited in the nptl model.
5093 (stop_and_resume_callback): New callback function used by the
5094 lin_lwp_wait thread exit handling code.
5095 (stop_wait_callback): Check for threads already having exited and
5096 delete such threads fromt the lwp list when discovered.
5097 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5098
b757528f
JJ
5099 Roland McGrath <roland@redhat.com>
5100 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5101 nptl libthread_db.
5102
087779b1
RH
51032003-06-03 Richard Henderson <rth@redhat.com>
5104
b21fd293
RH
5105 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5106 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5107 (alpha_sigtramp_frame_prev_register): Likewise.
5108 (alpha_heuristic_frame_prev_register): Likewise.
5109 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5110
8ffd9b1b 5111 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5112 alpha-specific register id names.
5113 (alpha_mdebug_frame_unwind_cache): Likewise.
5114 (alpha_mdebug_frame_prev_register): Likewise.
5115
baa490c4
RH
51162003-06-03 Richard Henderson <rth@redhat.com>
5117
5118 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5119 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5120 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5121 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5122 unwind routines.
5123 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5124 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5125 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5126
5127 * alpha-linux-tdep.c: Remove unnecessary includes.
5128 * Makefile.in (alpha-linux-tdep.o): Update.
5129
51302003-06-03 Richard Henderson <rth@redhat.com>
5131
5132 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5133 (alphabsd_fill_fpreg): Likewise.
5134
f534e522
JB
51352003-06-03 J. Brobecker <brobecker@gnat.com>
5136
5137 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5138 references to struct frame_info fields by calls to the equivalent
5139 accessors. Necessary now that frame_info is opaque.
5140
4035536b
JB
51412003-06-03 J. Brobecker <brobecker@gnat.com>
5142
5143 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5144 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5145 structure, field no longer exists.
5146
0bd79c5c
JB
51472003-06-03 J. Brobecker <brobecker@gnat.com>
5148
5149 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5150 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5151
37bb6d9f
JB
51522003-06-03 J. Brobecker <brobecker@gnat.com>
5153
5154 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5155 references to struct frame_info fields by calls to the equivalent
5156 accessors. Necessary now that frame_info is opaque.
5157
852ee05c
JB
51582003-06-03 J. Brobecker <brobecker@gnat.com>
5159
5160 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5161 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5162 structure, field no longer exists.
5163
7d58c67d
TR
51642003-06-03 Theodore A. Roth <troth@openavr.org>
5165
8ffd9b1b 5166 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5167 accumulation of the size of all registers instead of blindly using
5168 DEPRECATED_REGISTER_BYTES.
5169
0a48e7e8
MS
51702003-06-03 Michael Snyder <msnyder@redhat.com>
5171
5172 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5173 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5174 for h8300sx.
5175
9798ab0d
JB
51762003-06-03 J. Brobecker <brobecker@gnat.com>
5177
5178 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5179 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5180
00b037e2
AC
51812003-06-03 Andrew Cagney <cagney@redhat.com>
5182
5183 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5184 (sparc_convert_to_raw): Delete function.
5185 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5186 register_convert_to_virtual.
5187
043b2f77
JJ
51882003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5189
5190 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5191 layer if not dealing with a statically-linked threaded program.
5192
f43caff8
KW
51932003-06-03 Kris Warkentin <kewarken@qnx.com>
5194
5195 * solib.c (solib_open): Update comment to reflect actual search order.
5196
ae1e7417
AC
51972003-06-03 Andrew Cagney <cagney@redhat.com>
5198
5199 * frame.c (get_frame_memory_signed): New function.
5200 (get_frame_memory, get_frame_memory_unsigned): New function.
5201 (get_frame_arch): New function.
5202 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5203 (get_frame_memory, get_frame_unsigned_memory): Declare.
5204 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5205 get_frame_memory_unsigned and get_frame_arch.
5206 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5207
cb123844
RG
52082003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5209
5210 * MAINTAINERS (write after approval): Add myself.
5211
1bb792e9
JB
52122003-06-03 Jim Blandy <jimb@redhat.com>
5213
5214 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5215 elements of gregset_t are 64 bits each, but access registers
5216 are still 32 bits, so they're packed two per gregset_t
5217 element. Unpack/pack them properly.
5218
aee8d8ba
DC
52192003-06-02 David Carlton <carlton@bactrian.org>
5220
5221 * linespec.c (find_methods): Break out code into
5222 add_matching_methods and add_constructors.
5223 (add_matching_methods): New.
5224 (add_constructors): Ditto.
5225
bf7488d2
AC
52262003-06-02 Andrew Cagney <cagney@redhat.com>
5227
bf7488d2
AC
5228 * sparc-tdep.c (sparc_print_registers): Delete call to
5229 REGISTER_CONVERTIBLE.
5230 (sparc_gdbarch_init): Do not set register_convertible.
5231 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5232 * frv-tdep.c (frv_gdbarch_init): Ditto.
5233 * cris-tdep.c (cris_gdbarch_init): Ditto.
5234
adedef68
EZ
52352003-06-02 Elena Zannoni <ezannoni@redhat.com>
5236
8ffd9b1b 5237 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5238 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5239 (syms_from_objfile): Ditto.
5240
650fcc91
AS
52412003-06-03 Andreas Schwab <schwab@suse.de>
5242
5243 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5244 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5245
df4a182b
RH
52462003-06-02 Richard Henderson <rth@redhat.com>
5247
5248 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5249 a member of all_reggroup.
5250
c483c494
RH
52512003-06-02 Richard Henderson <rth@redhat.com>
5252
5253 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5254 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5255 (alpha_lds, alpha_sts): New.
5256 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5257 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5258 restructure and fail for type sizes other than 4 or 8.
5259 (alpha_value_to_register): Similarly.
5260 (alpha_extract_return_value): Use alpha_sts.
5261 (alpha_store_return_value): Use alpha_lds.
5262 (alpha_gdbarch_init): Update hooks.
5263
b38b6be2
RH
52642003-06-02 Richard Henderson <rth@redhat.com>
5265
5266 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5267 regnum identifiers.
5268 (alpha_sigtramp_register_address): Likewise.
5269
98a8e1e5
RH
52702003-06-02 Richard Henderson <rth@redhat.com>
5271
5272 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5273 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5274 * alpha-tdep.h: Declare them.
5275
5276 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5277 Remove zerobuf. Don't error on UNIQUE.
5278 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5279 (ALPHA_REGSET_UNIQUE): Provide default.
5280 (supply_gregset): Use alpha_supply_int_regs.
5281 (fill_gregset): Use alpha_fill_int_regs.
5282 (supply_fpregset): Use alpha_supply_fp_regs.
5283 (fill_fpregset): Use alpha_fill_fp_regs.
5284 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5285 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5286 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5287 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5288 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5289 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5290
67dfac52
RH
52912003-06-02 Richard Henderson <rth@redhat.com>
5292
f75d70cc
RH
5293 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5294
67dfac52
RH
5295 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5296 (alpha_store_return_value): Likewise.
5297
0cf566ec
DC
52982003-06-02 David Carlton <carlton@math.stanford.edu>
5299
5300 * block.c (contained_in): Add 'const' to arguments.
5301 (block_function): Ditto.
5302 * block.h: Update declarations for block_function and
5303 contained_in.
5304
cdef89d0
DC
53052003-06-02 David Carlton <carlton@math.stanford.edu>
5306
5307 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5308 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5309 * p-valprint.c (pascal_val_print): Ditto.
5310 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5311
72667056
RH
53122003-06-02 Richard Henderson <rth@redhat.com>
5313
98a8e1e5
RH
5314 * alpha-tdep.c (alpha_push_dummy_call): Use
5315 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5316
8ffd9b1b 5317 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5318 sign-extension of 32-bit values.
5319 (alpha_store_return_value): Similarly.
0ede8eca 5320
98a8e1e5
RH
5321 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5322 (alpha_extract_return_value): Likewise.
5323 (alpha_store_return_value): Likewise.
7b5e1cb3 5324
98a8e1e5
RH
5325 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5326 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5327
98a8e1e5
RH
5328 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5329 (alpha_extract_struct_value_address): Likewise.
5330 (alpha_store_return_value): Likewise.
5331 (alpha_store_struct_return): Remove.
5332 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5333
98a8e1e5
RH
5334 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5335 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5336 macros where appropriate.
5337 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5338 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5339
98a8e1e5
RH
5340 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5341 for SP, GP; void_func_ptr for PC; non-language-specific types
5342 for all others.
5343 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5344
6dd77b81
RH
53452003-06-02 Richard Henderson <rth@redhat.com>
5346
5347 * top.h (lim_at_start): Declare.
5348 * main.c (captured_main): Set it.
5349 * top.c (lim_at_start): Define.
5350 (command_loop): Use it instead of &environ.
5351 * event-top.c (command_handler): Likewise.
5352
f4dbdb54
JT
53532003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5354
5355 * mipsnbsd-tdep.c: Update copyright years.
5356 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5357
8f285956
RH
53582003-06-01 Richard Henderson <rth@redhat.com>
5359
98a8e1e5
RH
5360 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5361 (alpha-linux-tdep.o): Update dependencies.
5362 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5363 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5364
615967cb
RH
53652003-06-01 Richard Henderson <rth@redhat.com>
5366
98a8e1e5
RH
5367 * alpha-tdep.c (alpha_register_reggroup_p): New.
5368 (alpha_gdbarch_init): Register it.
615967cb 5369
b59661bd
AC
53702003-06-02 Andrew Cagney <cagney@redhat.com>
5371
5372 * dwarfread.c: Eliminate "register"
5373 (decode_die_type): Eliminate assignment within "if".
5374 (struct_type, decode_array_element_type): Ditto.
5375 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5376 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5377 (decode_modified_type, completedieinfo): Ditto.
5378 * block.c: Eliminate "register".
5379 (blockvector_for_pc_sect): Eliminate assignment within "if".
5380 * cp-support.h (struct symbol): Opaque declaration.
5381 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5382
5ef165c2
RH
53832003-06-01 Richard Henderson <rth@redhat.com>
5384
98a8e1e5
RH
5385 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5386 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5387
143985b7
AF
53882003-06-01 Adam Fedor <fedor@gnu.org>
5389
5390 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5391 * gdbarch.[ch]: Regenerate.
5392 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5393 (hppa_gdbarch_init): Set it in the gdbarch vector.
5394 * i386-tdep.c (i386_fetch_pointer_argument): New
5395 (i386_gdbarch_init): Set it into gdbarch.
5396 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5397 (rs6000_gdbarch_init): Set it in gdbarch.
5398 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5399 (sparc_gdbarch_init): Set it in gdbarch.
5400
ae0167b9
AC
54012003-06-01 Andrew Cagney <cagney@redhat.com>
5402
7c0b4a20
AC
5403 * defs.h (extract_address): Delete declaration.
5404 * findvar.c (extract_address): Delete function.
5405 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5406 extract_address with the inline equivalent,
5407 extract_unsigned_integer.
5408 (xstormy16_extract_struct_value_address): Ditto.
5409 (xstormy16_pointer_to_address): Ditto.
5410 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5411 * v850-tdep.c (v850_push_arguments): Ditto.
5412 (v850_extract_return_value): Ditto.
5413 (v850_extract_struct_value_address): Ditto.
5414 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5415 (sparcnbsd_get_longjmp_target_64): Ditto.
5416 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5417 (get_longjmp_target): Ditto.
5418 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5419 (sh64_extract_struct_value_address): Ditto.
5420 (sh_push_arguments): Ditto.
5421 (sh64_push_arguments): Ditto.
5422 * remote-vxsparc.c (vx_read_register): Ditto.
5423 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5424 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5425 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5426 * mipsv4-nat.c (get_longjmp_target): Ditto.
5427 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5428 * mips-nat.c (get_longjmp_target): Ditto.
5429 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5430 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5431 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5432 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5433 * irix5-nat.c (get_longjmp_target): Ditto.
5434 * irix4-nat.c (get_longjmp_target): Ditto.
5435 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5436 (ia64_push_arguments): Ditto.
5437 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5438 * h8300-tdep.c (h8300_push_arguments): Ditto.
5439 (h8300_store_return_value): Ditto.
5440 (h8300_extract_struct_value_address): Ditto.
5441 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5442 (frv_push_arguments): Ditto.
5443 * avr-tdep.c (avr_pointer_to_address): Ditto.
5444 (avr_push_arguments): Ditto.
5445 * arm-tdep.c (arm_push_dummy_call): Ditto.
5446 (arm_get_longjmp_target): Ditto.
5447 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5448 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5449 (alpha_get_longjmp_target): Ditto.
5450
ae0167b9
AC
5451 * solib-irix.c (extract_mips_address): Inline extract_address,
5452 replacing it with extract_signed_integer.
5453 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5454 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5455 (first_link_map_member, open_symbol_file_object): Ditto.
5456 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5457 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5458 (LM_NEXT, LM_NAME): Ditto.
5459
44d88583
RH
54602003-06-01 Richard Henderson <rth@redhat.com>
5461
98a8e1e5
RH
5462 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5463 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5464 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5465 (alpha_cannot_store_register): Likewise.
5466 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5467 * alpha-nat.c (supply_gregset): Likewise.
5468 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5469
310e9b6a
AC
54702003-06-01 Andrew Cagney <cagney@redhat.com>
5471
5472 * infcall.c (call_function_by_hand): Update comment on
5473 DEPRECATED_DUMMY_WRITE_SP.
5474
5475 * mips-tdep.c (mips_gdbarch_init): Do not set
5476 deprecated_dummy_write_sp.
5477 (mips_eabi_push_dummy_call): Set the SP register.
5478 (mips_o64_push_dummy_call): Set the SP register.
5479 (mips_o32_push_dummy_call): Set the SP register.
5480 (mips_n32n64_push_dummy_call): Set the SP register.
5481
5ab84872
RH
54822003-06-01 Richard Henderson <rth@redhat.com>
5483
98a8e1e5
RH
5484 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5485 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5486 (supply_gregset): Likewise.
5487 * alpha-tdep.c (alpha_store_return_value): Likewise.
5488 (alpha_get_longjmp_target): Likewise.
5489 (alpha_register_name): Constify array.
5490 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5491 deprecated_register_size, deprecated_register_bytes,
5492 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5493 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5494 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5495
09cc52fd
RH
54962003-06-01 Richard Henderson <rth@redhat.com>
5497
5498 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5499 from arg_reg_buffer to regcache to avoid double conversion.
5500
c7f16359
MK
55012003-06-01 Mark Kettenis <kettenis@gnu.org>
5502
5503 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5504 SP_REGNUM.
5505 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5506 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5507
7131cb6e
RH
55082003-06-01 Richard Henderson <rth@redhat.com>
5509
98a8e1e5
RH
5510 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5511 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5512
f3e0f90b
RH
55132003-06-01 Richard Henderson <rth@redhat.com>
5514
98a8e1e5
RH
5515 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5516 not overlapping PC_REGNUM.
f3e0f90b 5517
c88e30c0
RH
55182003-06-01 Richard Henderson <rth@redhat.com>
5519
98a8e1e5
RH
5520 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5521 alpha_push_arguments. Don't dump argument register data to
5522 the target stack. Fix float and 128-bit long double semantics.
5523 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5524 (alpha_fix_call_dummy): Remove.
5525 (alpha_call_dummy_words): Remove.
5526 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5527
f1a559ae
RH
55282003-06-01 Richard Henderson <rth@redhat.com>
5529
5530 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5531
5e045346
AC
55322003-06-01 Andrew Cagney <cagney@redhat.com>
5533
95404a3e
AC
5534 * mips-tdep.c (is_mips16_addr): New function.
5535 (make_mips16_addr, unmake_mips16_addr): New functions.
5536 (pc_is_mips16, mips_fetch_instruction): Use.
5537 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5538 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5539 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5540 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5541 TARGET_MIPS.
5542 * config/mips/tm-mips.h: Update copyright.
5543 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5544 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5545 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5546 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5547 (TM_PRINT_INSN_MACH): Delete.
5548 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5549
5e045346
AC
5550 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5551 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5552 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5553 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5554 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5555 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5556 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5557 mips*-*-riscos* and mips*-*-sysv* onto mips.
5558 * config/mips/mips64.mt: New file.
5559 * config/mips/mips.mt: New file.
5560 * config/mips/littlemips.mt: Delete file.
5561 * config/mips/decstation.mt: Delete file.
5562 * config/mips/vr4300el.mt: Delete file.
5563 * config/mips/vr5000el.mt: Delete file.
5564 * config/mips/vr5000.mt: Delete file.
5565 * config/mips/vr4100.mt: Delete file.
5566 * config/mips/vr4xxxel.mt: Delete file.
5567 * config/mips/vr4300.mt: Delete file.
5568 * config/mips/vr4xxx.mt: Delete file.
5569 * config/mips/bigmips.mt: Delete file.
5570 * config/mips/bigmips64.mt: Delete file.
5571 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5572 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5573 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5574 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5575 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5576 "tm-bigmips.h".
5577 * config/mips/tm-irix3.h: Ditto.
5578 * config/mips/tm-mipsv4.h: Ditto.
5579 * config/mips/tm-embed.h: Ditto.
5580 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5581 "tm-bigmips64.h".
5582 * config/mips/tm-vr5000el.h: Delete file.
5583 * config/mips/tm-tx39l.h: Delete file.
5584 * config/mips/tm-vr4300el.h: Delete file.
5585 * config/mips/tm-vr4xxxel.h: Delete file.
5586 * config/mips/tm-vr4300.h: Delete file.
5587 * config/mips/tm-vr4100.h: Delete file.
5588 * config/mips/tm-vr4xxx.h: Delete file.
5589 * config/mips/tm-vr5000.h: Delete file.
5590 * config/mips/tm-embedl64.h: Delete file.
5591 * config/mips/tm-embedl.h: Delete file.
5592 * config/mips/tm-embed64.h: Delete file.
5593 * config/mips/tm-bigmips64.h: Delete file.
5594 * config/mips/tm-bigmips.h: Delete file.
5595
2473a4a9
MK
55962003-06-01 Mark Kettenis <kettenis@gnu.org>
5597
97a5b208
MK
5598 Fix gdb/1216.
5599 * shnbsd-nat.c: Include "sh-tdep.h".
5600
2473a4a9
MK
5601 From Richard Henderson <rth@redhat.com>:
5602 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5603
e0f7ec59
AC
56042003-05-31 Andrew Cagney <cagney@redhat.com>
5605
5606 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5607 forward declaration.
5608 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5609 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5610 (mips_find_saved_regs): Use set_reg_offset.
5611 (mips_frame_init_saved_regs): Delete function.
5612 (mips_pop_frame): Call mips_find_saved_regs instead of
5613 DEPRECATED_FRAME_INIT_SAVED_REGS.
5614
68dcc709
AC
56152003-05-31 Andrew Cagney <cagney@redhat.com>
5616
5617 * mips-tdep.c (mips_gdbarch_init): Do not set
5618 deprecated_max_register_raw_size, register_virtual_size, and
5619 deprecated_max_register_virtual_size.
5620
cfc14b3a
MK
56212003-05-31 Mark Kettenis <kettenis@gnu.org>
5622
6405b0a6
MK
5623 * i386-tdep.c: Include "dwarf2-frame.h".
5624 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5625 * Makefile.in (i386-tdep.o): Update dependencies.
5626
cfc14b3a
MK
5627 * dwarf2-frame.c, dwarf2-frame.h: New files.
5628 * Makefile.in (SFILES): Add dwarf2-frame.c.
5629 (dwarf2_frame_h): Define.
5630 (COMMON_OBS): Add dwarf2-frame.o.
5631 (dwarf2-frame.o): Add dependencies.
5632
6a2751d2
AJ
56332003-05-31 Andreas Jaeger <aj@suse.de>
5634
5635 * x86-64-linux-nat.c: Fix comment.
5636
1c3545ae
MK
56372003-05-31 Mark Kettenis <kettenis@gnu.org>
5638
10f93086
MK
5639 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5640 function signature.
5641
1c3545ae
MK
5642 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5643 have a sigcontext_addr handler.
5644 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5645 sigcontext_addr handler.
5646
e11c53d2
AC
56472003-05-31 Andrew Cagney <cagney@redhat.com>
5648
5649 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5650 (print_fp_register_row): Replace do_fp_register_row.
5651 (mips_print_fp_register): Add "file" and "frame" parameters.
5652 (mips_print_register): Add "file" and "frame" parameters.
5653 (mips_print_registers_info): Replace mips_do_registers_info.
5654 (mips_gdbarch_init): Set print_registers_info instead of
5655 deprecated_do_registers_info.
5656 (mips_read_fp_register_single): Add "frame" parameter.
5657 (mips_read_fp_register_double): Add "frame" parameter.
5658
a3386186
MK
56592003-05-31 Mark Kettenis <kettenis@gnu.org>
5660
70913449
MK
5661 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5662 Fixes a bug where GDB would print the wrong register names for
5663 targets without SSE.
5664
2b5e0749
MK
5665 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5666 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5667 registers.
5668
5669 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5670 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5671 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5672 TDEP->sc_sp_offset.
5673
a3386186
MK
5674 From Michal Ludvig <mludvig@suse.cz>:
5675 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5676 and `sc_num_regs'.
5677 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5678 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5679 I386_ST0_REGNUM): Move here from...
5680 * i386-tdep.c: ... here.
5681 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5682 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5683 registers if possible.
5684 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5685 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5686 Remove variables.
5687 (i386bsd_sc_reg_offset): New variable.
5688 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5689 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5690 TDEP->sc_sp_offset.
5691 (i386fbsd_sc_reg_offset): New variable.
5692 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5693 TDEP->sc_num_regs.
5694 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5695 variables.
5696 (i386fbsd4_sc_reg_offset): New variable.
5697 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5698 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5699 TDEP->sc_sp_offset.
5700 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5701 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5702 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5703 Remove variables.
5704 (i386nbsd_sc_reg_offset): New variable.
5705 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5706 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5707 TDEP->sc_sp_offset.
5708 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5709 Remove variables.
5710 (i386obsd_sc_reg_offset): New variable.
5711 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5712 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5713 TDEP->sc_sp_offset.
5714 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5715 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5716 for frame pointer offset in `struct sigcontext'.
5717
25ab4790
AC
57182003-05-31 Andrew Cagney <cagney@redhat.com>
5719
5720 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5721 architecture methods call_dummy_words, sizeof_call_dummy_words,
5722 push_return_address, store_struct_return, and fix_call_dummy. Set
5723 push_dummy_call instead of deprecated_push_arguments.
5724 (mips_store_struct_return): Delete function.
5725 (mips_fix_call_dummy): Delete function.
5726 (mips_push_return_address): Delete function.
5727 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5728 RA_REGNUM and T9_REGNUM.
5729 (mips_n32n64_push_dummy_call): Ditto for
5730 mips_n32n64_push_arguments.
5731 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5732 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5733
6a65450a
AC
57342003-05-31 Andrew Cagney <cagney@redhat.com>
5735
5736 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5737 "dummy_addr" to "bp_addr".
5738 * infcall.c (call_function_by_hand): Pass "funaddr" to
5739 gdbarch_push_dummy_call.
5740 * gdbarch.h, gdbarch.c: Re-generate.
5741 * i386-tdep.c (i386_push_dummy_call): Update.
5742 * arm-tdep.c (arm_push_dummy_call): Update.
5743 * d10v-tdep.c (d10v_push_dummy_call): Update.
5744
c4f35dd8
MK
57452003-05-31 Mark Kettenis <kettenis@gnu.org>
5746
5747 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5748 variable declarations.
5749 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5750 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5751 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5752 x86_64_init_frame_pc, x86_64_init_frame_pc,
5753 x86_64_function_has_prologue): Remove prototypes.
5754 (X86_64_NUM_GREGS): New define.
5755 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5756 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5757 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5758 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5759 XMM1_REGNUM): Remove defines.
5760 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5761 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5762 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5763 X86_64_XMM1_REGNUM): New defines.
5764 (struct x86_64_register_info): Renamed from `struct
5765 register_info'. Remove `size' member.
5766 (x86_64_register_info_table): Remove variable.
5767 (x86_64_register_info): New variable.
5768 (X86_64_NUM_REGS): New define.
5769 (X86_64_NUM_GREGS): Remove define.
5770 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5771 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5772 Remove variables.
5773 (x86_54_dwarf2_reg_to_regnum): Remove function.
5774 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5775 (x86_64_dwarf_reg_to_regnum): New function.
5776 (x86_64_register_name): Rewrite.
5777 (x86_64_register_raw_size): Remove function.
5778 (x86_64_register_byte_table): Remove variable.
5779 (x86_64_register_byte): Remove function.
5780 (x86_64_register_virtual_type): Remove function.
5781 (x86_64_register_type): New function.
5782 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5783 x86_64_register_convert_to_raw): Remove functions.
5784 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5785 (x86_64_use_struct_convention): Make static. Adjust for renamed
5786 defines.
5787 (x86_64_frame_init_saved_regs): Remove function.
5788 (x86_64_push_arguments): Make static. Change to accept a regcache
5789 as argument.
5790 (x86_64_store_return_value, x86_64_extract_return_value): Make
5791 static. Rewrite based on i386 counterparts.
5792 (x86_64_push_dummy_call): New function.
5793 (X86_64_NUM_SAVED_REGS): New define.
5794 (x86_64_register_number): Remove function.
5795 (x86_64_store_struct_return): Remove function.
5796 (x86_64_frameless_function_invocation,
5797 x86_64_function_has_prologue): Remove functions.
5798 (PROLOG_BUFSIZE): Remove define.
5799 (struct x86_64_frame_cache): New structure.
5800 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5801 x86_64_frame_cache, x86_64_frame_this_id,
5802 x86_64_frame_prev_register, x86_64_frame_p,
5803 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5804 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5805 functions.
5806 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5807 variables.
5808 (x86_64_skip_prologue): Rewrite in terms of
5809 x86_64_analyze_prologue.
5810 (x86_64_frame_base_address): New function.
5811 (x86_64_frame_base): New variable.
5812 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5813 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5814 set deprecated_fp_regnum, deprecated_register_size,
5815 deprecated_register_bytes, register_raw_size, register_byte,
5816 register_virtual_type, register_convertiable,
5817 register_convert_to_virtual, convert_to_raw,
5818 deprecated_get_saved_register, deprecated_target_read_fp,
5819 deprecated_push_arguments, deprecated_push_return_address,
5820 deprecated_pop_frame, deprecated_store_struct_return,
5821 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5822 frameless_function_invocation, deprecated_frame_saved_pc,
5823 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5824 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5825 deprecated_init_frame_pc and virtual_frame_pointer. Call
5826 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5827 and x86_64_frame_p. Call frame_base_set_default to register
5828 x86_64_frame_base.
5829 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5830 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5831 (_initialize_x86_64_tdep): Remove function.
5832 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5833 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5834 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5835 define.
5836 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5837 (x86_64_linux_sigcontext_addr): Rewrite.
5838 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5839 x86_64_linux_frame_saved_pc): Remove functions.
5840 (x86_64_linux_pc_in_sigtramp): Renamed from
5841 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5842 trampoline.
5843 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5844 Remove_functions.
5845 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5846 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5847 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5848 (x86_64_regmap): Rename to regmap.
5849 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5850 x86_64_num_gregs.
5851 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5852 x86_64_regmap.
5853 (x86_64_fxsave_offset): Remove function.
5854 (supply_fpregset): Simply call x86_64_supply_fxsave.
5855 (fill_fpregset): Simply call x86_64_fill_fxsave.
5856 (fetch_inferior_registers, store_inferior_registers): Avoid
5857 asignment in if-statement.
5858 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5859 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5860 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5861 (fetch_core_registers): Remove function.
5862 (linux_elf_core_fns): Remove.
5863 (offsetoff): Don't define.
5864 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5865 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5866 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5867 add core-regset.o.
5868 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5869 protection against multiple includes instead of NM_X86_64_h. Add
5870 various comments. Include "config/nm-linux.h". Don't include
5871 <signal.h>.
5872 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5873 GET_THREAD_SIGNALS): Remove defines.
5874 (x86_64_register_u_addr, kernel_u_size,
5875 lin_thread_get_thread_signals): Remove prototypes.
5876 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5877 [HAVE_LINK_H]: Don't include "solib.h".
5878 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5879 * config/i386/tm-x86-64linux.h: Fix comments.
5880 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5881 x86-64-tdep.o): Update dependencies.
5882
c25083af
AC
58832003-05-30 Andrew Cagney <cagney@redhat.com>
5884
c8f55a7b
AC
5885 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5886 Change parameter type to a "struct regcache *".
5887
c25083af
AC
5888 * gdbarch.sh: Regardless of the multi-arch level, always define
5889 the macro when not already defined.
5890 * gdbarch.h, gdbarch.c: Re-generate.
5891
fbe586ae
RH
58922003-05-30 Richard Henderson <rth@redhat.com>
5893
5894 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5895 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5896 (alpha_mdebug_frame_this_id): Likewise.
5897 (alpha_mdebug_frame_prev_register): Likewise.
5898 (alpha_mdebug_frame_base_address): Likewise.
5899 (alpha_mdebug_frame_locals_address): Likewise.
5900 (alpha_mdebug_frame_args_address): Likewise.
5901 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5902 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5903 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5904 loop increment.
5905 (alpha_heuristic_frame_this_id): Make static.
5906 (alpha_heuristic_frame_prev_register): Likewise.
5907 (alpha_heuristic_frame_base_address): Likewise.
5908 * alpha-tdep.h: Update.
5909
acd5c798
MK
59102003-05-30 Mark Kettenis <kettenis@gnu.org>
5911
5912 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5913 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5914 defenitions.
5915 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5916 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5917 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5918 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5919 I386_ST0_REGNUM): New defines.
5920 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5921 codestream_get): Remove define.
5922 (codestream_next_addr, condestream_addr, condestream_buf,
5923 codestream_off, codestream_cnt): Remove variables.
5924 (codestream_fill, codestream_seek, codestream_read): Remove
5925 functions.
5926 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5927 functionality.
5928 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5929 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5930 i386_frame_saved_pc, i386_saved_pc_after_call,
5931 i386_frame_num_args, i386_frame_init_saved_regs,
5932 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5933 i386_push_arguments): Remove functions.
5934 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5935 functionality. Use i386_analyze_prologue instead of
5936 i386_get_frame_setup.
5937 (I386_NUM_SAVED_REGS): New define.
5938 (struct i386_frame_cache): New structure.
5939 (i386_alloc_frame_cache, i386_analyze_struct_return,
5940 i386_skip_probe, i386_analyze_frame_setup,
5941 i386_analyze_register_saves, i386_analyze_prologue,
5942 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5943 i386_frame_prev_register, i386_sigtramp_frame_cache,
5944 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5945 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5946 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5947 New functions.
5948 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5949 New variables.
5950 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5951 I386_EAX_REGNUM and I386_EDX_REGNUM.
5952 (i386_extract_return_value, i386_store_return_value): Use
5953 I386_ST0_REGNUM where appropriate.
5954 (i386_extract_struct_value_address): Rewrite to use extract_address.
5955 (i386_svr4_pc_in_sigtramp): Add comment.
5956 (i386_svr4_sigcontext_addr): Rewrite.
5957 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5958 TDEP->sc_sp_offset.
5959 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5960 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5961 of new defines. Set push_dummy_call, don't set
5962 deprecated_push_arguments, deprecated_push_return_address,
5963 deprecated_pop_frame. Don't set parm_boundary. Don't set
5964 deprecated_frame_chain, deprecated_frame_saved_pc,
5965 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5966 save_dummy_frame_tos, unwind_pc. Call
5967 frame_unwind_append_predicate and frame_base_set_default. Don't
5968 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5969 Don't set frameless_function_invocation. Don't set
5970 deprecated_register_bytes, deprecated_register_size,
5971 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5972 * i386-linux-tdep.c: Fix formatting in some comments.
5973 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5974 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5975 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5976 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5977 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5978 redundant parentheses.
5979 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5980 (i386_linux_sigcontext_addr): Use it. Rewrite.
5981 (find_minsym_and_objfile): Change name of second argument.
5982 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5983 changed. Use frame_pc_unwind instead of
5984 DEPRECATED_SAVED_PC_AFTER_CALL.
5985 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5986 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5987 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5988 unwinder.
5989 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5990 "dummy-frame.h".
5991 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5992 (_initialize_i386_cygwin_tdep): New prototype.
5993 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5994 deprecated_frame_chain_valid.
5995 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5996 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5997 Rely on the SVR4 defaults.
5998 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5999 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6000
c89b70f1
AC
60012003-05-30 Andrew Cagney <cagney@redhat.com>
6002
6003 * infcall.c (call_function_by_hand): Always call
6004 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6005
85b32d22
RH
60062003-05-30 Richard Henderson <rth@redhat.com>
6007
c89b70f1
AC
6008 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6009 increment.
85b32d22 6010
bfe51b1e
JB
60112003-05-29 Jim Blandy <jimb@redhat.com>
6012
6013 Use gdbarch methods for solib stuff on PowerPC Linux.
6014 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6015 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6016 show through.
6017 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6018 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6019 giving the same effect as the #definitions above.
6020
1abf022c
AF
60212003-05-29 Adam Fedor <fedor@gnu.org>
6022
6023 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6024 (find_implementation_from_class): Replace it with the standard
6025 case i.e. do nothing.
6026
d2427a71
RH
60272003-05-29 Richard Henderson <rth@redhat.com>
6028
6029 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6030 (alpha_linux_sigtramp_offset): Use it. Make static.
6031 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6032 update for new frame model.
6033 * alpha-mdebug-tdep.c: New file.
6034 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6035 (alpha_osf1_init_abi): Install it.
6036 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6037 (linked_proc_desc_table): Remove.
6038 (alpha_frame_past_sigtramp_frame): Remove.
6039 (alpha_dynamic_sigtramp_offset): Remove.
6040 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6041 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6042 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6043 (push_sigtramp_desc): Remove.
6044 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6045 (alpha_cannot_store_register): Likewise.
6046 (alpha_sigcontext_addr): Remove.
6047 (alpha_find_saved_regs): Remove.
6048 (alpha_frame_init_saved_regs): Remove.
6049 (alpha_init_frame_pc_first): Remove.
6050 (read_next_frame_reg): Remove.
6051 (alpha_frame_saved_pc): Remove.
6052 (alpha_saved_pc_after_call): Remove.
6053 (temp_proc_desc, temp_saved_regs): Remove.
6054 (alpha_about_to_return): Remove.
6055 (cached_proc_desc): Remove.
6056 (alpha_frame_chain): Remove.
6057 (alpha_print_extra_frame_info): Remove.
6058 (alpha_init_extra_frame_info): Remove.
6059 (alpha_frame_locals_address): Remove.
6060 (alpha_frame_args_address): Remove.
6061 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6062 (alpha_push_dummy_frame): Remove.
6063 (alpha_pop_frame): Remove.
6064 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6065 (alpha_read_insn): New.
6066 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6067 for different insn encodings.
6068 (alpha_in_lenient_prologue): Remove.
6069 (struct alpha_sigtramp_unwind_cache): New.
6070 (alpha_sigtramp_frame_unwind_cache): New.
6071 (alpha_sigtramp_register_address): New.
6072 (alpha_sigtramp_frame_this_id): New.
6073 (alpha_sigtramp_frame_prev_register): New.
6074 (alpha_sigtramp_frame_unwind): New.
6075 (alpha_sigtramp_frame_p): New.
6076 (struct alpha_heuristic_unwind_cache): New.
6077 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6078 don't count nop insns that occur between functions.
6079 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6080 heuristic_proc_desc, but without the mdebug wrapping.
6081 (alpha_heuristic_frame_this_id): New.
6082 (alpha_heuristic_frame_prev_register): New.
6083 (alpha_heuristic_frame_unwind): New.
6084 (alpha_heuristic_frame_p): New.
6085 (alpha_heuristic_frame_base_address): New.
6086 (alpha_heuristic_frame_base): New.
6087 (alpha_unwind_dummy_id): New.
6088 (alpha_unwind_pc): New.
6089 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6090 frame related deprecated initializations; install replacements.
6091 (alpha_dump_tdep): Remove.
6092 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6093 (alpha_read_insn, alpha_after_prologue,
6094 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6095 alpha_heuristic_frame_prev_register,
6096 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6097 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6098 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6099 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6100
93ec1121
AC
61012003-05-29 Andrew Cagney <cagney@redhat.com>
6102
6103 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6104 dependant on the availability of ASSERT_FUNCTION.
6105 (ASSERT_FUNCTION): Do not define when there is no function name.
6106
98f08d3d
KB
61072003-05-29 Kevin Buettner <kevinb@redhat.com>
6108
6109 From Jimi X <jimix@watson.ibm.com>:
6110 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6111
0897f59b
JB
61122003-05-28 Jim Blandy <jimb@redhat.com>
6113
6114 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6115 argument to ptrace to int; the system headers should give it the
6116 right type, and pointers don't fit in ints on powerpc64-*-*.
6117
14898363
L
61182003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6119
6120 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6121 DW_TAG_catch_block.
6122
a7a48797
EZ
61232003-05-26 Elena Zannoni <ezannoni@redhat.com>
6124
6125 * stabsread.c (dbx_lookup_type): Make static.
6126 (read_type): Ditto.
6127 (add_undefined_type): Ditto.
6128 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6129 not export.
6130
f5479e9c
EZ
61312003-05-26 Elena Zannoni <ezannoni@redhat.com>
6132
6133 * hpread.c (hpread_has_name): Make static.
6134 (hpread_psymtab_to_symtab): Ditto.
6135 (file_exists): Ditto.
6136 (hpread_call_pxdb): Ditto.
6137 (hpread_pxdb_needed): Ditto.
6138 (hpread_quick_traverse): Ditto.
6139 (hpread_get_header): Ditto.
6140 (hpread_get_lntt): Ditto.
6141 (hpread_get_slt): Ditto.
6142 (class_of): Ditto.
6143
eb2e12d7
AS
61442003-05-25 Andreas Schwab <schwab@suse.de>
6145
78bf922a
AS
6146 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6147 stack_align and deprecated_extra_stack_alignment_needed.
6148 (m68k_stack_align): Delete.
6149
eb2e12d7
AS
6150 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6151 (m68k_register_virtual_size): Likewise.
6152 (altos_skip_prologue): Remove obsolete function.
6153 (isi_frame_num_args): Likewise.
6154 (news_frame_num_args): Likewise.
6155 (m68k_fix_call_dummy): Make static.
6156 (m68k_push_dummy_frame): Likewise.
6157 (m68k_pop_frame): Likewise.
6158 (m68k_skip_prologue): Likewise.
6159 (m68k_frame_init_saved_regs): Likewise.
6160 (m68k_saved_pc_after_call): Likewise.
6161 (m68k_get_longjmp_target): Make multi-arch.
6162 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6163 structure. Register m68k_get_longjmp_target if enabled.
6164 * m68k-tdep.h (struct gdbarch_tdep): Define.
6165 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6166
6167 * Makefile.in (config.status): Also depend on configure.tgt
6168 and configure.host.
6169 (m68klinux-tdep.o): Update dependencies.
6170 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6171 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6172 (M68K_LINUX_JB_PC): Define.
6173 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6174 and take additional parameter.
6175 (m68k_linux_sigtramp_saved_pc): Update.
6176 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6177 m68k_linux_pc_in_sigtramp, in_plt_section,
6178 find_solib_trampoline_target.
6179 * config/m68k/tm-linux.h: Don't include any tm headers.
6180 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6181 (JB_ELEMENT_SIZE): Likewise.
6182 (JB_PC): Likewise.
6183 (GET_LONGJMP_TARGET): Likewise.
6184 (IN_SIGTRAMP): Likewise.
6185 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6186
eb2c22dc
MK
61872003-05-25 Mark Kettenis <kettenis@gnu.org>
6188
6189 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6190 (sparc32_push_arguments): Re-implement by calling
6191 sparc32_do_push_arguments.
6192
44b7b84e
MK
61932003-05-25 Mark Kettenis <kettenis@gnu.org>
6194
6195 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6196 SPARC_O1_REGNUM): New defines.
6197 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6198 (sparc32_store_return_value): New function.
6199 (sparc_extract_struct_value_address): Rewrite to operate on a
6200 regcache.
6201 (sparc_gdbarch_init): Don't set
6202 deprecated_extract_struct_value_address. Set
6203 extract_struct_value_address instead. Don't set
6204 deprecated_extract_return_value and deprecated_store_return_value
6205 for 32-bit targets. Set extract_return_value and
6206 store_return_value instead.
6207 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6208 DEPRECTAED_EXTRACT_RETURN_VALUE,
6209 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6210 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6211 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6212 (sparc_store_return_value): Remove prototype.
6213 (sparc32_store_return_value): New prototype.
6214 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6215 Adjust prototypes.
6216
f6ad61e3
MK
62172003-05-24 Mark Kettenis <kettenis@gnu.org>
6218
6219 * sparcnbsd-tdep.c: Include "gdb_string.h".
6220
b276f1bb
AC
62212003-05-23 Andrew Cagney <cagney@redhat.com>
6222
6223 * p-valprint.c (pascal_val_print): Replace extract_address with
6224 the inline equivalent extract_unsigned_integer.
6225 * jv-valprint.c (java_value_print): Ditto.
6226 * ada-valprint.c (ada_val_print_1): Ditto.
6227 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6228
e76c5fcc
TR
62292003-05-23 Theodore A. Roth <troth@openavr.org>
6230
6231 * blockframe.c (frameless_look_for_prologue): Remove unused
6232 after_prologue variable.
6233
2cdd89cb
MK
62342003-05-23 Mark Kettenis <kettenis@gnu.org>
6235
6236 * blockframe.c (get_pc_function_start): Rewrite to avoid
6237 asignments in if-statements.
6238
182d43bc
EZ
62392003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6240
6241 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6242 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6243 files, don't relocate absolute symbols (and do use mst_abs).
6244
e8f3fcdd
AC
62452003-05-23 Andrew Cagney <cagney@redhat.com>
6246
6247 * objc-lang.c: Include "gdb_assert.h".
6248 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6249 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6250 (gdb_check, gdb_check_fatal): Delete functions.
6251 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6252 gdb_assert.
6253 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6254 * Makefile.in (objc-lang.o): Update dependencies.
6255
3c23e6fb
ILT
62562003-05-22 Ian Lance Taylor <ian@airs.com>
6257
6258 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6259 with fprintf_filtered, not fprintf_unfiltered.
6260
af1342ab
AC
62612003-05-22 Andrew Cagney <cagney@redhat.com>
6262
6263 * stack.c (frame_info): Inline extract_address, replacing it with
6264 extract_unsigned_integer.
6265 * findvar.c (unsigned_pointer_to_address): Ditto.
6266 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6267 * dwarf2expr.c (dwarf2_read_address): Ditto.
6268 * frame.c (frame_pc_unwind): Update comment.
6269 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6270
47e242ec
JJ
62712003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6272
6273 * infptrace.c (detach): Call print_sys_errmsg rather than
6274 perror_with_name to issue warning message when errno is non-zero
6275 after calling ptrace detach.
6276
e2ac8128
JB
62772003-05-21 J. Brobecker <brobecker@gnat.com>
6278
6279 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6280 macro definitions from here...
6281 * hppa-tdep.c: ...to there.
6282
92b3541e
KB
62832003-05-20 Kevin Buettner <kevinb@redhat.com>
6284
6285 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6286 register_ptrace_addr(). Fix all callers.
6287
55809acb
AS
62882003-05-21 Andreas Schwab <schwab@suse.de>
6289
6290 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6291 dependencies.
6292 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6293 end.
6294 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6295 (_initialize_m68k_linux_tdep): New function.
6296 (m68k_linux_frame_saved_pc): Make static.
6297 (m68k_linux_extract_return_value): Likewise.
6298 (m68k_linux_store_return_value): Likewise.
6299 (m68k_linux_extract_struct_value_address): Likewise.
6300 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6301 Remove.
6302 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6303 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6304 (DEPRECATED_FRAME_SAVED_PC): Remove.
6305
0fbc10f7
KW
63062003-05-20 Kris Warkentin <kewarken@qnx.com>
6307
6308 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6309 regset numbering rather than our own.
6310
58da2eb2
DC
63112003-05-19 David Carlton <carlton@bactrian.org>
6312
6313 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6314
1fcb5155
DC
63152003-05-19 David Carlton <carlton@bactrian.org>
6316
6317 Partial fix for PR c++/827.
6318 * cp-support.h: Include symtab.h.
6319 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6320 * cp-namespace.c: Update contributors.
6321 (cp_lookup_symbol_nonlocal): New.
6322 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6323 (lookup_symbol_file): Ditto.
6324 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6325 * block.h: Declare block_scope, block_using, block_global_block.
6326 * block.c (block_scope): New.
6327 (block_using, block_global_block): Ditto.
6328 * Makefile.in (cp_support_h): Depend on symtab_h.
6329 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6330
5f9a71c3
DC
63312003-05-19 David Carlton <carlton@bactrian.org>
6332
6333 * language.h (struct language_defn): Add 'la_value_of_this'
6334 and 'la_lookup_symbol_nonlocal' members.
6335 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6336 lookup_symbol_static, lookup_symbol_global,
6337 lookup_symbol_aux_block.
6338 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6339 if we should search fields of this and how to do static/global
6340 lookup.
6341 (lookup_symbol_aux_block): Make extern.
6342 (basic_lookup_symbol_nonlocal): New.
6343 (lookup_symbol_static, lookup_symbol_global): Ditto.
6344 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6345 'la_lookup_symbol_nonlocal' members.
6346 * c-lang.c (c_language_defn, cplus_language_defn)
6347 (asm_language_defn, minimal_language_defn): Ditto.
6348 * jv-lang.c (java_language_defn): Ditto.
6349 * language.c (unknown_language_defn, auto_language_defn)
6350 (local_language_defn): Ditto.
6351 * m2-lang.c (m2_language_defn): Ditto.
6352 * objc-lang.c (objc_language_defn): Ditto.
6353 * scm-lang.c (scm_language_defn): Ditto.
6354 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6355 * p-lang.c (pascal_language_defn): Ditto for both.
6356 * Makefile.in (f-lang.o): Depend on value_h.
6357 (p-lang.o): Ditto.
6358
89a9d1b1
DC
63592003-05-19 David Carlton <carlton@bactrian.org>
6360
6361 * block.h: Declare block_static_block.
6362 * block.c (block_static_block): New.
6363 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6364 lookup_symbol_aux_local, calling block_static_block instead.
6365 (lookup_symbol_aux_local): Delete 'static_block' argument.
6366
eed3f8ab
DC
63672003-05-19 David Carlton <carlton@bactrian.org>
6368
6369 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6370
a09d8bda
ML
63712003-05-19 Michal Ludvig <mludvig@suse.cz>
6372
6373 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6374 register numbers mapping.
6375
69636828
AF
63762003-05-18 Adam Fedor <fedor@gnu.org>
6377
6378 * symtab.c (completion_list_objc_symbol): New function.
6379 (make_symbol_completion_list): Use it to add ObjC symbols
6380 when looking though the list.
6381 (language_search_unquoted_string): New function.
6382 (make_file_symbol_completion_list): Use it.
6383
55baeb84
AS
63842003-05-18 Andreas Schwab <schwab@suse.de>
6385
d0b45d99
AS
6386 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6387 dependencies.
6388 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6389 as m68k_linux_extract_return_value.
6390 (DEPRECATED_STORE_RETURN_VALUE): Define as
6391 m68k_linux_store_return_value.
6392 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6393 m68k_linux_extract_struct_value_address.
6394 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6395 get_next_frame, get_frame_base, get_frame_pc.
6396 (m68k_linux_frame_saved_pc): Use get_frame_base.
6397 (m68k_linux_extract_return_value): New function.
6398 (m68k_linux_store_return_value): New function.
6399 (m68k_linux_extract_struct_value_address): New function.
6400 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6401
55baeb84
AS
6402 * c-exp.y (typebase): Remove duplicate occurence of
6403 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6404 of lookup_signed_typename.
55baeb84 6405
b6b08ebf
MK
64062003-05-18 Mark Kettenis <kettenis@gnu.org>
6407
6408 * dwarf2loc.c (find_location_expression): Change type of second
6409 argument to `size_t *'.
6410 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6411 for size variable.
6412
5ad1c190
DC
64132003-05-18 David Carlton <carlton@bactrian.org>
6414
6415 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6416 'linkage_name'. Add comment.
6417 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6418 'linkage_name'.
6419 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6420 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6421 (lookup_block_symbol): Ditto.
6422
b8b527c5
AC
64232003-05-16 Andrew Cagney <cagney@redhat.com>
6424
6425 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6426 * gdbarch.h, gdbarch.c: Re-generate.
6427 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6428 * TODO (REGISTER_BYTES): Delete reference.
6429 * alpha-tdep.c (alpha_gdbarch_init): Update.
6430 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6431 * x86-64-tdep.c (x86_64_init_abi): Update.
6432 * vax-tdep.c (vax_gdbarch_init): Update.
6433 * v850-tdep.c (v850_gdbarch_init): Update.
6434 * sparc-tdep.c (sparc_gdbarch_init): Update.
6435 * sh-tdep.c (sh_gdbarch_init): Update.
6436 * s390-tdep.c (s390_gdbarch_init): Update.
6437 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6438 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6439 (ns32k_gdbarch_init_32382): Update.
6440 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6441 * mcore-tdep.c (mcore_gdbarch_init): Update.
6442 * m68k-tdep.c (m68k_gdbarch_init): Update.
6443 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6444 * ia64-tdep.c (ia64_gdbarch_init): Update.
6445 * i386-tdep.c (i386_gdbarch_init): Update.
6446 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6447 * hppa-tdep.c (hppa_gdbarch_init): Update.
6448 * h8300-tdep.c (h8300_gdbarch_init): Update.
6449 * frv-tdep.c (frv_gdbarch_init): Update.
6450 * cris-tdep.c (cris_gdbarch_init): Update.
6451 * avr-tdep.c (avr_gdbarch_init): Update.
6452 * arm-tdep.c (arm_gdbarch_init): Update.
6453 * sparc-tdep.c (sparc_pop_frame): Update.
6454 * rs6000-tdep.c (rs6000_pop_frame): Update.
6455 * remote.c (init_remote_state): Update.
6456 (remote_prepare_to_store): Update.
6457 * remote-vx.c (vx_prepare_to_store): Update.
6458 * remote-sds.c (sds_fetch_registers): Update.
6459 (sds_prepare_to_store): Update.
6460 * remote-array.c: Update.
6461 * regcache.c (init_legacy_regcache_descr): Update.
6462 (init_regcache_descr): Update.
6463 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6464 (mips_o64_extract_return_value): Update.
6465 * irix5-nat.c (fetch_core_registers): Update.
6466 * irix4-nat.c (fetch_core_registers): Update.
6467 * i386-tdep.h: Update.
6468 * hppa-tdep.c (pa_do_registers_info): Update.
6469 (pa_do_strcat_registers_info): Update.
6470 * cris-tdep.c (cris_register_bytes_ok): Update.
6471 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6472 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6473 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6474 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6475 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6476 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6477 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6478 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6479 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6480 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6481 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6482 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6483 (REGISTER_BYTES_OK): Update.
6484 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6485 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6486
ee2842e2
ILT
64872003-05-16 Ian Lance Taylor <ian@airs.com>
6488
6489 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6490 (vax_print_insn, print_insn_arg): Remove static functions.
6491 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6492 print_insn_vax from opcodes library.
6493 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6494
973177d3
AC
64952003-05-15 Andrew Cagney <cagney@redhat.com>
6496
aaab4dba
AC
6497 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6498 * target.h (memory_breakpoint_from_pc): Delete declaration.
6499 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6500 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6501 * monitor.c (monitor_insert_breakpoint): Use
6502 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6503 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6504 * gdbarch.h, gdbarch.c: Re-generate.
6505 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6506 (sparc_gdbarch_init): Set breakpoint_from_pc to
6507 sparc_breakpoint_from_pc.
6508 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6509 (BREAKPOINT_FROM_PC): Define.
6510 (sparc_breakpoint_from_pc): Declare.
6511 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6512 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6513 (BREAKPOINT_FROM_PC): Define.
6514 (BREAKPOINT): Delete macro.
6515 * target.h: Update comment.
6516 * s390-tdep.c (s390_gdbarch_init): Update comments.
6517 * remote.c: Update comments.
6518 * remote-mips.c: Update comments.
6519 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6520 * mem-break.c: Update comment.
6521 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6522 (ia64_memory_insert_breakpoint): Update.
6523 * config/sparc/tm-sparc.h: Update comment.
6524 * config/pa/tm-hppa64.h: Update comment.
6525 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6526 (rs6000_breakpoint_from_pc): Update.
6527 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6528 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6529 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6530 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6531 (mips_breakpoint_from_pc): Update.
6532 (mips_dump_tdep): Update.
6533
e06963ff
AC
6534 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6535 * minsyms.c (lookup_minimal_symbol): Inline
6536 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6537
973177d3
AC
6538 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6539 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6540 * p-lang.c (pascal_printstr): Ditto.
6541 * objc-lang.c (objc_printstr): Ditto.
6542 * m2-lang.c (m2_printstr): Ditto.
6543 * jv-valprint.c (java_print_value_fields): Ditto.
6544 * f-lang.c (f_printstr): Ditto.
6545 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6546 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6547 for repeat_count_threshold.
6548 * Makefile.in (cp-valprint.o): Update dependencies.
6549
5ea2bd7f 65502003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6551
5ea2bd7f
JJ
6552 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6553 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6554 they start with mov r2,r12. Support skipping over indirect stores
6555 of the input registers. Upon hitting a non-nop branch instruction
6556 or predicated instruction, bail out by setting lim_pc to the current
6557 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6558 beyond our calculated value and we have trust_limit set,
6559 use the lim_pc value.
6560
cc8c88f3
AC
65612003-05-15 Andrew Cagney <cagney@redhat.com>
6562
6563 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6564 generic_find_dummy_frame.
6565 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6566 (deprecated_generic_find_dummy_frame): Update.
6567 (deprecated_read_register_dummy): Update.
6568 * frame.c (deprecated_generic_get_saved_register): Update.
6569
909cd28e
TR
65702003-05-15 Theodore A. Roth <troth@openavr.org>
6571
6572 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6573 (avr_gdbarch_init): Set breakpoint_from_pc method.
6574
b923b08d
AC
65752003-05-15 Andrew Cagney <cagney@redhat.com>
6576
6577 * regcache.c (build_regcache): Set deprecated_register_valid
6578 directly.
6579 (deprecated_grub_regcache_for_register_valid): Delete function.
6580 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6581 declaration.
6582
ae2f03ac 65832003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
6584
6585 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
6586 * symtab.c (lookup_symbol_aux): Delete calls to
6587 lookup_symbol_aux_minsyms.
6588 (lookup_symbol_aux_minsyms): Comment out function and
6589 prototype. Delete lookup by mangled name.
ae2f03ac 6590
18ec9831
KB
65912003-05-14 Kevin Buettner <kevinb@redhat.com>
6592
6593 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6594 correctly indicate an empty stack and ``stack_allocated'' to the
6595 indicate the number of elements initially allocated.
6596 (dwarf_expr_grow_stack): Simplify method for computing new
6597 stack size. Don't loop infinitely if ``stack_len'' is zero.
6598 (execute_stack_op): Move ``ctx->in_reg'' initialization
6599 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6600 be used in conjuction with DW_OP_piece. Revise error message
6601 accordingly.
6602
de18ac1f
TR
66032003-05-14 Theodore A. Roth <troth@openavr.org>
6604
6605 * MAINTAINERS: Update my email address.
6606 * avr-tdep.c: Ditto.
6607
176620f1
EZ
66082003-05-14 Elena Zannoni <ezannoni@redhat.com>
6609
6610 * symtab.h (enum domain_enum): Rename from namespace_enum.
6611 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6612 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6613 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6614 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6615 TYPES_NAMESPACE, METHODS_NAMESPACE.
6616 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6617 (struct symbol, struct partial_symbol): Rename field
6618 'namespace_enum namespace' to 'domain_enum domain'.
6619 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6620 Delete old define kludge for namespace.
6621
6622 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6623 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6624 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6625 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6626 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6627 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6628 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6629 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6630 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6631 occurrences of the above.
6632
b7f31508
ILT
66332003-05-14 Ian Lance Taylor <ian@airs.com>
6634
6635 * Makefile.in (install-only): Use $(SHELL) when running
6636 mkinstalldirs.
6637
2fdbdd39
ILT
66382003-05-13 Ian Lance Taylor <ian@airs.com>
6639
a208d82c
ILT
6640 * MAINTAINERS (write after approval): Add myself.
6641
2fdbdd39
ILT
6642 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6643 second and third arguments.
6644 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6645 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6646
fbd9dcd3
AC
66472003-05-13 Andrew Cagney <cagney@redhat.com>
6648
6649 * defs.h (store_address): Delete declaration.
6650 findvar.c (store_address): Delete function.
6651 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6652 store_unsigned_integer.
6653 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6654 * v850-tdep.c (v850_push_arguments): Ditto.
6655 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6656 * sh-tdep.c (sh64_get_saved_register): Ditto.
6657 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6658 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6659 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6660 (mips_get_saved_register): Ditto.
6661 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6662 (find_func_descr, ia64_push_arguments): Ditto.
6663 * i386-tdep.c (i386_push_arguments): Ditto.
6664 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6665 * frv-tdep.c (frv_push_arguments): Ditto.
6666 * frame.c (legacy_saved_regs_prev_register): Ditto.
6667 (deprecated_generic_get_saved_register): Ditto.
6668 * findvar.c (unsigned_address_to_pointer): Ditto.
6669 * dwarf2read.c (dwarf2_const_value): Ditto.
6670 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6671 * alpha-tdep.c (alpha_push_arguments): Ditto.
6672
6760f9e6
JB
66732003-05-12 J. Brobecker <brobecker@gnat.com>
6674
6675 * NEWS: Mention that the hppa-hpux port has been partially
6676 multiarched (32bit ABIT only, so far).
6677
30e221b4
AC
66782003-05-11 Andrew Cagney <cagney@redhat.com>
6679
6680 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6681 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6682 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6683 sim/testsuite/sim/arm/misaligned2.ms, and
6684 sim/testsuite/sim/arm/misaligned3.ms.
6685 * disasm.h (struct ui_file): Add opaque struct declaration.
6686 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6687 * frame.h (struct ui_file): Ditto.
6688
dea7f9ba
MK
66892003-05-11 Mark Kettenis <kettenis@gnu.org>
6690
6691 * value.h: Pretty print.
6692
01986c48
MK
66932003-05-10 Mark Kettenis <kettenis@gnu.org>
6694
6695 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6696
123a958e
AC
66972003-05-08 Andrew Cagney <cagney@redhat.com>
6698
6699 * regcache.h (max_register_size): Delete declaration.
6700 * regcache.c (max_register_size): Delete function.
6701 (struct regcache_descr): Delete field "max_register_size".
6702 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6703 registers fit in MAX_REGISTER_SIZE.
6704 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6705 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6706 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6707 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6708 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6709 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6710 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6711 * dve3900-rom.c, hppa-tdep.c: Ditto.
6712
eb294659
DC
67132003-05-08 David Carlton <carlton@math.stanford.edu>
6714
6715 * valops.c (push_word): Fix typo.
6716
d9d9c31f
AC
67172003-05-08 Andrew Cagney <cagney@redhat.com>
6718
6719 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6720 * gdbarch.h: Re-generate.
6721 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6722 (legacy_max_register_raw_size): Delete declaration.
6723 * regcache.c (legacy_max_register_raw_size): Delete function.
6724 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6725 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6726 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6727 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6728 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6729 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6730 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6731 * findvar.c, dwarf2cfi.c: Ditto.
6732
22540ece
AC
67332003-05-08 Andrew Cagney <cagney@redhat.com>
6734
6735 * mips-tdep.c (read_signed_register): New function, moved to here
6736 from "regcache.c".
6737 (read_signed_register_pid): Ditto.
6738 * regcache.c (read_signed_register_pid): Delete function, moved to
6739 "mips-tdep.c".
6740 (read_signed_register): Ditto.
6741 * regcache.h (read_signed_register): Delete declaration.
6742 (read_signed_register_pid): Delete declaration.
6743
0c92afe8
AC
67442003-05-08 Andrew Cagney <cagney@redhat.com>
6745
6746 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6747 * gdbarch.h: Re-generate.
6748 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6749 (legacy_max_register_virtual_size): Delete declaration.
6750 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6751 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6752 * tracepoint.c (memrange_sortmerge): Ditto.
6753 * sparc-tdep.c (sparc_print_registers): Ditto.
6754 * regcache.c (legacy_max_register_virtual_size): Delete function.
6755
6037b830
JB
67562002-05-08 J. Brobecker <brobecker@gnat.com>
6757
6758 * fork-child.c (escape_bang_in_quoted_argument): New function.
6759 (fork_inferior): Escape '!' characters in quoted arguments
6760 only when needed.
6761
5d62c8b1
JB
67622003-05-08 J. Brobecker <brobecker@gnat.com>
6763
6764 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6765 the language of the CU is not currently supported by GDB.
6766
20a0e81d
JB
67672003-05-08 J. Brobecker <brobecker@gnat.com>
6768
6769 * defs.h (language): Add language_minimal enum value.
6770 * c-lang.c (minimal_language_defn): New language definition.
6771 (_initialize_c_language): Add the new minimal language to the list
6772 of languages known to GDB.
6773
710ee10a
KB
67742003-05-08 Kevin Buettner <kevinb@redhat.com>
6775
6776 * frame.c (get_frame_type): Don't attempt to lazily initialize
6777 frame's unwinder for legacy frames.
6778
1750fa04
AC
67792003-05-07 Andrew Cagney <cagney@redhat.com>
6780
6781 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6782 and "regcache" parameters.
6783 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6784
ddf9f258 67852003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6786
6787 * dwarf2read.c (dwarf_decode_lines): Only use output of
6788 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6789 the current address.
6790
87767c29
AC
67912003-05-07 Andrew Cagney <cagney@redhat.com>
6792
6793 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6794 code.
6795
5e7b2f39
JB
67962003-05-07 Jim Blandy <jimb@redhat.com>
6797
6798 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6799 'maint info symtabs' and 'maint info psymtabs'.
6800 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6801 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6802 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6803 Declarations updated.
6804 * maint.c (maintenance_list_command): Delete.
6805 (_initialize_maint_cmds): Update calls to add_cmd.
6806 * gdbcmd.h (maintenancelistlist): Delete declaration.
6807 * cli/cli-cmds.c (maintenancelistlist): Delete.
6808 (init_cmd_lists): Don't initialize it.
6809 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6810
f6684c31
AC
68112003-05-07 Andrew Cagney <cagney@redhat.com>
6812
6813 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6814 "regcache".
6815 (d10v_print_registers_info): Update.
6816 (d10v_dmap_register, d10v_imap_register): Delete functions.
6817 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6818 and "imap_register".
6819 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6820 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6821 * arch-utils.c (generic_remote_translate_xfer_address): Add
6822 "regcache" and "gdbarch" parameters.
6823 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6824 parameter. Change class to multi-arch.
6825 * gdbarch.h, gdbarch.c: Re-generate.
6826 * remote.c (remote_xfer_memory): Use
6827 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6828
e4846b08
JJ
68292003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6830
6831 * infrun.c (prev_pc): Move declaration ahead of proceed().
6832 (proceed): Refresh prev_pc value before resuming.
6833 (stop_stepping): Remove code to refresh prev_pc.
6834
6b71b8ac
KW
68352003-05-06 Kris Warkentin <kewarken@qnx.com>
6836
6837 * nto-tdep.c: Removed stray comment.
6838
47979a4b
KW
68392003-05-06 Kris Warkentin <kewarken@qnx.com>
6840
6841 * i386-nto-tdep.c: Fix old K&R function definitions.
6842 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6843 Also change add_show_from_set() call to add_setshow_cmd().
6844 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6845
00905d52
AC
68462003-05-05 Andrew Cagney <cagney@redhat.com>
6847
6848 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6849 (fprint_dummy_frames): New function.
6850 (maintenance_print_dummy_frames): New function.
6851 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6852 * frame.c (fprint_frame_id): Make global.
6853 * frame.h (fprint_frame_id): Declare.
6854 * Makefile.in (dummy-frame.o): Update dependencies.
6855
b1e29e33
AC
68562003-05-05 Andrew Cagney <cagney@redhat.com>
6857
6858 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6859 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6860 SIZEOF_CALL_DUMMY_WORDS.
6861 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6862 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6863 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6864 CALL_DUMMY_BREAKPOINT_OFFSET.
6865 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6866 CALL_DUMMY_START_OFFSET.
6867 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6868 * gdbarch.h, gdbarch.c: Re-generate.
6869 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6870 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6871 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6872 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6873 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6874 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6875 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6876 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6877 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6878 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6879 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6880 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6881 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6882 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6883 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6884
68852003-05-05 Kris Warkentin <kewarken@qnx.com>
6886
6887 * configure.tgt: Add i[3456]86-*-nto*.
6888 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6889 * nto-tdep.c: New file. Neutrino target support routines.
6890 * nto-tdep.h: New file. Neutrino target header.
6891 * config/tm-qnxnto.h: New file.
6892 * config/i386/i386nto.mt: New file.
6893 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6894
0ce3d317
AC
68952003-05-04 Andrew Cagney <cagney@redhat.com>
6896
6897 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6898 (load_infrun_state): Ditto.
6899 (struct thread_info): Drop "prev_func_name" field.
6900 * thread.c (load_infrun_state): Update.
6901 (save_infrun_state): Update.
6902 * infrun.c (prev_func_name): Delete variable.
6903 (init_wait_for_inferior): Do not clear prev_func_name.
6904 (stop_stepping, keep_going, context_switch): Do not swap
6905 prev_func_name.
6906 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6907 instead of PC_IN_SIGTRAMP.
6908
46654a5b
AC
69092003-05-04 Andrew Cagney <cagney@redhat.com>
6910
6911 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6912 REGISTER_BYTE with register_offset_hack.
6913 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6914 that REGISTER_BYTE is consistent with the regcache.
6915 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6916 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6917
14b08c1b
MK
69182003-05-04 Mark Kettenis <kettenis@gnu.org>
6919
04c8243f
MK
6920 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6921 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6922
14b08c1b
MK
6923 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6924
c7a11e01
JB
69252003-05-03 J. Brobecker <brobecker@gnat.com>
6926
6927 From Thierry Schneider <tpschneider1@yahoo.com>
6928 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6929 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6930 (mi-cmd-symbol.o): Add rule.
6931
7043d8dc
AC
69322003-05-03 Andrew Cagney <cagney@redhat.com>
6933
6934 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6935 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6936 * gdbarch.h, gdbarch.c: Re-generate.
6937 * d10v-tdep.c (d10v_push_dummy_code): New function.
6938 (d10v_gdbarch_init): Set push_dummy_code.
6939 * infcall.c (legacy_push_dummy_code): New function.
6940 (generic_push_dummy_code): New function.
6941 (push_dummy_code): New function.
6942 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6943 instead of dummy_addr, to push_dummy_call. Move call to
6944 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6945 switch.
6946 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6947
92bf2b80
AC
69482003-05-03 Andrew Cagney <cagney@redhat.com>
6949
6950 * disasm.h (print_insn): Declare.
6951 * disasm.c (init_gdb_disassemble_info): New function.
6952 (gdb_disassembly): Call init_gdb_disassemble_info.
6953 (gdb_print_insn): New function.
6954 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6955 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6956 * mcore-tdep.c: Include "disasm.h"
6957 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6958 * d10v-tdep.c: Include "disasm.h".
6959 (display_trace): Call gdb_print_insn, instead of print_insn.
6960 (print_insn): Delete function.
6961 * printcmd.c: Include "disasm.h".
6962 (print_insn): Delete function.
6963 (print_formatted): Call gdb_print_insn, instead of print_insn.
6964 * Makefile.in (printcmd.o): Update dependencies.
6965 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6966
27d94c49
AC
69672003-05-02 Andrew Cagney <cagney@redhat.com>
6968
82de1e5b
AC
6969 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6970 PC_REGNUM, re-indent.
6971 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6972 PC_REGNUM isn't set.
6973
27d94c49
AC
6974 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6975 * gdbarch.h, gdbarch.c: Re-generate.
6976 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6977 register_virtual_size, pc_regnum, or register_bytes.
6978 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6979 (d10v_register_type): Use D10V_PC_REGNUM.
6980 (d10v_print_registers_info, d10v_read_pc): Ditto.
6981 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6982 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6983
a9c0dc7f
DC
69842003-05-02 David Carlton <carlton@bactrian.org>
6985
6986 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6987 the name with mstrsave.
6988
e33d66ec
EZ
69892003-05-02 Elena Zannoni <ezannoni@redhat.com>
6990
6991 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6992 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6993 (host_charset_name, target_charset_name): New vars for use by
6994 set/show commands.
6995 (host_charset_enum, target_charset_enum): New enums for set/show
6996 commands.
6997 (set_charset_sfunc, set_host_charset_sfunc,
6998 set_target_charset_sfunc): New functions.
6999 (set_host_charset, set_target_charset): Make static.
7000 (list_charsets, set_host_charset_command,
7001 set_target_charset_command): Delete functions.
7002 (show_charset_command): Rewrite as....
7003 (show_charset): Hook this up with the set/show command mechanism.
7004 (_initialize_charset): Change names of charsets to match the
7005 set/show enums. Use host_charset_name and target_charset_name.
7006 Use set/show mechanism for charset, host-charset, target-charset
7007 commands. Do not make 'show host-charset' and 'show
7008 target-charset' be aliases of 'show charset'.
7009
7010 * charset.h (set_host_charset, set_target_charset): Don't export,
7011 they are not used outside the file.
7012
2b6fd0d8
AC
70132003-05-01 Andrew Cagney <cagney@redhat.com>
7014
7015 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7016 (gdb_disassembly): Make "di" non static, always initialize and
7017 cleanup. Always use dis_asm_read_memory.
7018 (gdb_dis_asm_read_memory): Delete function.
7019
6ae2f580
AC
70202003-05-01 Andrew Cagney <cagney@redhat.com>
7021
7022 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7023 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7024
810ecf9f
AC
70252003-04-30 Andrew Cagney <cagney@redhat.com>
7026
7027 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7028 "tm_print_insn_info".
7029 (TARGET_PRINT_INSN_INFO): Delete macro.
7030 (dis_asm_read_memory): Delete function declaration.
7031 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7032 (tm_print_insn_info): Delete variable definition.
7033 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7034 * gdbarch.h, gdbarch.c: Re-generate.
7035 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7036 "deprecated_tm_print_insn_info".
7037 * mcore-tdep.c (mcore_dump_insn): Ditto.
7038 * mips-tdep.c (mips_gdbarch_init): Ditto.
7039 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7040 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7041 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7042 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7043 instead of TARGET_PRINT_INSN_INFO, add comment.
7044 * s390-tdep.c (s390_get_frame_info): Instead of
7045 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7046 (s390_check_function_end, s390_is_sigreturn): Ditto.
7047 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7048 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7049 * disasm.c: Include "gdbcore.h".
7050 (_initialize_disasm): New function, initialize
7051 "deprecated_tm_print_insn_info".
7052 (deprecated_tm_print_insn_info): New variable.
7053 (dis_asm_read_memory): Moved from "corefile.c", made static.
7054 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7055 * Makefile.in (disasm.o): Update dependencies.
7056
07020390
AC
70572003-04-30 Andrew Cagney <cagney@redhat.com>
7058
7059 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7060
a9fa03de
AF
70612003-04-29 Adam Fedor <fedor@gnu.org>
7062
7063 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7064 * infcall.c (find_function_addr): Make non-static.
7065 * infcall.h (find_function_addr): Declare.
7066 * Makefile.in (eval.o): Update dependencies.
7067
1bae87b9
AF
70682003-04-28 Adam Fedor <fedor@gnu.org>
7069
7070 * symtab.c (symbol_find_demangled_name): Check for and demangle
7071 ObjC symbols.
7072 (symbol_init_demangled_name): Init for language_objc as well.
7073
0ba6dca9
AC
70742003-04-28 Andrew Cagney <cagney@redhat.com>
7075
7076 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7077 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7078 * gdbarch.h, gdbarch.c: Re-generate.
7079 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7080 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7081 * inferior.h (deprecated_read_fp): Rename read_fp.
7082 (generic_target_read_fp): Delete declaration.
7083 * regcache.c (generic_target_read_fp): Delete function.
7084 (deprecated_read_fp): Replace read_fp, use
7085 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7086 * d10v-tdep.c (d10v_read_fp): Delete function.
7087 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7088
7089 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7090 deprecated_target_read_fp to generic_target_read_fp.
7091 * sh-tdep.c (sh_gdbarch_init): Ditto.
7092 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7093 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7094 * frv-tdep.c (frv_gdbarch_init): Ditto.
7095
7096 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7097 deprecated_fp_regnum.
7098 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7099 * vax-tdep.c (vax_gdbarch_init): Ditto.
7100 * v850-tdep.c (v850_gdbarch_init): Ditto.
7101 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7102 * sh-tdep.c (sh_gdbarch_init): Ditto.
7103 * s390-tdep.c (s390_gdbarch_init): Ditto.
7104 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7105 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7106 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7107 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7108 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7109 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7110 * i386-tdep.c (i386_gdbarch_init): Ditto.
7111 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7112 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7113 * frv-tdep.c (frv_gdbarch_init): Ditto.
7114 * cris-tdep.c (cris_gdbarch_init): Ditto.
7115 * avr-tdep.c (avr_gdbarch_init): Ditto.
7116 * arm-tdep.c (arm_gdbarch_init): Ditto.
7117 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7118
7119 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7120 * v850-tdep.c (v850_gdbarch_init): Ditto.
7121 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7122 * sh-tdep.c (sh_gdbarch_init): Ditto.
7123 * s390-tdep.c (s390_gdbarch_init): Ditto.
7124 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7125 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7126 * mips-tdep.c (mips_gdbarch_init): Ditto.
7127 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7128 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7129 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7130 * frv-tdep.c (frv_gdbarch_init): Ditto.
7131 * avr-tdep.c (avr_gdbarch_init): Ditto.
7132 * arm-tdep.c (arm_gdbarch_init): Ditto.
7133
7134 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7135 DEPRECATED_FP_REGNUM.
7136 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7137 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7138 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7139 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7140 (sparc32_register_virtual_type): Ditto.
7141 * sh-tdep.c (sh64_frame_chain): Ditto.
7142 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7143 (sh_nofp_frame_init_saved_regs): Ditto.
7144 (sh64_nofp_frame_init_saved_regs): Ditto.
7145 (sh_fp_frame_init_saved_regs): Ditto.
7146 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7147 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7148 * procfs.c (procfs_fetch_registers): Ditto.
7149 (procfs_store_registers): Ditto.
7150 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7151 (store_inferior_registers, fetch_core_registers): Ditto.
7152 (fetch_kcore_registers, clear_regs): Ditto.
7153 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7154 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7155 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7156 * nlm/i386.c (do_status): Ditto.
7157 * mipsv4-nat.c (supply_gregset): Ditto.
7158 * mips-tdep.c: Ditto for comments.
7159 * mips-nat.c (fetch_inferior_registers): Ditto.
7160 (store_inferior_registers, fetch_core_registers): Ditto.
7161 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7162 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7163 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7164 (i386_do_pop_frame, i386_register_type): Ditto.
7165 * hppa-tdep.c (hppa_frame_chain): Ditto.
7166 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7167 (hppa_pop_frame, hppa_read_fp): Ditto.
7168 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7169 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7170 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7171 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7172 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7173 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7174 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7175 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7176 * blockframe.c: Ditto for comments.
7177 * arch-utils.h: Ditto for comments.
7178 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7179 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7180 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7181 * alpha-tdep.h: Ditto for comments.
7182 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7183 (alpha_cannot_store_register): Ditto.
7184 (alpha_push_dummy_frame): Ditto.
7185 * alpha-nat.c (supply_gregset): Ditto.
7186
7187 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7188 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7189 * config/sparc/tm-sparc.h: Update comment.
7190
7191 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7192 deprecated_read_fp instead of TARGET_READ_FP.
7193 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7194 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7195 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7196 deprecated_read_fp instead of read_fp.
7197 * s390-tdep.c (s390_push_arguments): Ditto.
7198 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7199 * frame.h: Ditto in comments.
7200 * frame.c (legacy_get_prev_frame): Ditto.
7201 * dummy-frame.c (dummy_frame_this_id): Ditto.
7202 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7203
d7a27068
AC
72042003-04-28 Andrew Cagney <cagney@redhat.com>
7205
7206 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7207 * gdbarch.h, gdbarch.c: Re-generate.
7208 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7209 * vax-tdep.c (_initialize_vax_tdep): Update.
7210 * v850-tdep.c (_initialize_v850_tdep): Update.
7211 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7212 * s390-tdep.c (_initialize_s390_tdep): Update.
7213 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7214 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7215 * mips-tdep.c (_initialize_mips_tdep): Update.
7216 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7217 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7218 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7219 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7220 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7221 * frv-tdep.c (_initialize_frv_tdep): Update.
7222 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7223 (_initialize_cris_tdep): Update.
7224 * arch-utils.c (legacy_print_insn): Update.
7225 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7226
d2630e69
AF
72272003-04-26 Adam Fedor <fedor@gnu.org>
7228
7229 * linespec.c (decode_objc): New function to decode ObjC calls
7230 (decode_line_1): Check for ObjC calls (using decode_objc)
7231 * Makefile (linespec.o): Update dependencies.
7232
3086aeae
DJ
72332003-04-26 Daniel Jacobowitz <drow@mvista.com>
7234
7235 * breakpoint.h (struct breakpoint_ops): New.
7236 (struct breakpoint): Add ops member.
7237
7238 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7239 (mention): Use new breakpoint ops member.
7240 (set_raw_breakpoint): Initialize ops field to NULL.
7241 (print_exception_catchpoint, print_one_exception_catchpoint)
7242 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7243 (gnu_v3_exception_catchpoint_ops): New.
7244 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7245
1fbec6c3
AF
72462003-04-25 Adam Fedor <fedor@gnu.org>
7247
7248 * Makefile.in (COMMON_OBS): Add objc-lang.o
7249
0ef21242
AC
72502003-04-25 Andrew Cagney <cagney@redhat.com>
7251
7252 * d10v-tdep.c (print_insn): Delete function.
7253 (display_trace): Use TARGET_PRINT_INSN.
7254 (_initialize_d10v_tdep): Do not set tm_print_insn.
7255 (d10v_gdbarch_init): Set print_insn.
7256
f75493ed
AC
72572003-04-25 Andrew Cagney <cagney@redhat.com>
7258
7259 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7260 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7261 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7262 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7263 (nr_dmap_regs, a0_regnum): ... new functions.
7264 (d10v_print_registers_info): Use a0_regnum, use register_size.
7265 (d10v_register_byte): Delete function.
7266 (d10v_register_raw_size): Delete function.
7267 (d10v_register_type): Use a0_regnum.
7268 (d10v_print_registers_info): Use a0_regnum.
7269 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7270 (d10v_gdbarch_init): Do not set register_byte or
7271 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7272 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7273 extract_address.
7274 (trace_command): Use XCALLOC.
7275 (print_insn): Delete reference to tm_print_insn.
7276 (saved_regs_unwinder): Use store_unsigned_integer instead of
7277 store_address.
7278 * frame.h (FRAME_OBSTACK_CALLOC): Define
7279
2202b100
DC
72802003-04-25 David Carlton <carlton@bactrian.org>
7281
7282 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7283
4e45ca2e
AF
72842003-04-24 Adam Fedor <fedor@gnu.org>
7285
7286 * objc-lang.c: Include "valprint.h"
7287 * Makefile.in (objc-lang.o): Update dependencies.
7288
93de3e7f
AF
72892003-04-24 Adam Fedor <fedor@gnu.org>
7290
8ffd9b1b 7291 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7292 architecture dependant compilation and mark as unimplemented
7293 (until they get put in the gdbarch vector).
7294
0f20eeea
DC
72952003-04-23 David Carlton <carlton@bactrian.org>
7296
7297 * cp-support.c (cp_find_first_component): Accept 'operator' in
7298 more locations.
7299
74cfe982
AC
73002003-04-23 Andrew Cagney <cagney@redhat.com>
7301
7302 * infcall.c (call_function_by_hand): Eliminate redundant
7303 indentation. Move "saved_async" and "old_cleanups" to where they
7304 are needed.
8ffd9b1b 7305
52557533
AC
73062003-04-23 Andrew Cagney <cagney@redhat.com>
7307
7308 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7309 and "buffer". Move the "name" code to where it is needed.
7310
158775de
AC
73112003-04-23 Andrew Cagney <cagney@redhat.com>
7312
7313 * infcall.c (call_function_by_hand): Move variables "start_sp",
7314 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7315 code to ON_STACK switch branch.
8ffd9b1b 7316
ebc7896c
AC
73172003-04-23 Andrew Cagney <cagney@redhat.com>
7318
7319 * infcall.c (call_function_by_hand): Make declaration of "i",
7320 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7321 lint.
7322
d727590f
AC
73232003-04-23 Andrew Cagney <cagney@redhat.com>
7324
7325 * infcall.c (call_function_by_hand): Delete variable
7326 "n_method_args". Localize "param_type"'s declaration to the loop
7327 that it is used. Reinstate code assigning to said variable -
7328 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7329 Rationalize code using "param_type".
7330
d585e13a
AC
73312003-04-22 Andrew Cagney <cagney@redhat.com>
7332
7333 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7334 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7335 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7336 to DEPRECATED_PUSH_RETURN_ADDRESS.
7337
051caad9
KB
73382003-04-22 Kevin Buettner <kevinb@redhat.com>
7339
7340 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7341 on the DWARF2 register number prior to fetching a register.
7342
77296879
JB
73432003-04-22 J. Brobecker <brobecker@gnat.com>
7344
7345 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7346 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7347 this macro was always set to 0.
77296879
JB
7348 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7349 considering the fact that this macro was always set to 0.
7350 * hppa-tdep.h (hppa_store_return_value): Likewise.
7351 (hppa_extract_return_value): Likewise.
7352
4252f1df
JB
73532003-04-22 J. Brobecker <brobecker@gnat.com>
7354
7355 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7356 the hppa-pro target only.
7357
14604c6b
JB
73582003-04-21 J. Brobecker <brobecker@gnat.com>
7359
7360 Ongoing multi-arch conversion effort for HP/UX:
7361 * config/pa/tm-hppa.h: Move all macro that are no longer
7362 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7363 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7364
77eb01d1
JB
73652003-04-21 J. Brobecker <brobecker@gnat.com>
7366
7367 * config/pa/tm-hppa.h: Obsolete a section that was only used
7368 for hppa-pro.
7369
61995b3b
JB
73702003-04-21 J. Brobecker <brobecker@gnat.com>
7371
7372 Ongoing multi-arch conversion for HP/UX.
7373 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7374 if already defined (allows hppa64 to stay non-multiarched for now).
7375 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7376
4aa79dcc
AC
73772003-04-21 Andrew Cagney <cagney@redhat.com>
7378
7379 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7380
0f751ff2
AC
73812003-04-21 Andrew Cagney <cagney@redhat.com>
7382
7383 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7384 "i386_num_mmx_regs".
7385
04714b91
AC
73862003-04-21 Andrew Cagney <cagney@redhat.com>
7387
7388 * infcall.c: New file.
7389 * infcall.h: New file.
7390 * valarith.c: Include "infcall.h".
7391 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7392 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7393 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7394 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7395 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7396 (SFILES): Add "infcall.c"
7397 (COMMON_OBS): Add "infcall.o".
7398 (infcall.o): Specify dependencies.
7399 * value.h (call_function_by_hand): Delete declaration.
7400 * inferior.h (run_stack_dummy): Delete declaration.
7401 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7402 (run_stack_dummy): Move to "infcall.c", merged into
7403 call_function_by_hand.
7404 * valops.c (call_function_by_hand): Moved to "infcall.c".
7405 (find_function_addr, value_arg_coerce): Ditto.
7406 (unwindonsignal_p, coerce_float_to_double): Ditto.
7407 (_initialize_valops): Move "set/show coerce-float-to-double", and
7408 "set/show unwindonsignal" commands to "infcall.c".
7409 * v850-tdep.c, target.h: Update comments.
7410 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7411 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7412 (sh64_init_extra_frame_info): Update comments.
7413 * mn10300-tdep.c: Update comments.
7414 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7415 * config/sparc/tm-sparc.h: Update comments.
7416 * breakpoint.h: Update comments.
7417 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7418 * arm-tdep.c: Update comment.
7419
f9d3c2a8
MK
74202003-04-19 Mark Kettenis <kettenis@gnu.org>
7421
c40e1eab
MK
7422 * i386-tdep.c (i386_num_register_names): New variable.
7423 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7424 (MM0_REGNUM): Remove redundant parentheses in define.
7425 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7426 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7427 i386_mxcsr_regnum_p): Remove redundant parentheses.
7428 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7429
94ea66b3
MK
7430 * i386-tdep.c (i386_extract_return_value,
7431 i386_store_return_value): Correct check for availability of
7432 floating-point registers.
7433
54299a1d
MK
7434 * i386-tdep.c (i386_frame_num_args): Remove function.
7435 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7436
c86c27af
MK
7437 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7438 mmx_regnum_to_fp_regnum. Adjust all callers.
7439
f9d3c2a8
MK
7440 * i386-tdep.c (i386_get_longjmp_target): Use
7441 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7442 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7443 extract_address.
7444
94ba74a9
MK
74452003-04-19 Mark Kettenis <kettenis@gnu.org>
7446
7447 * core-regset.c: Update comments to reflect reality. Re-order
7448 includes.
7449 (fetch_core_registers): Use switch instead of if. Remove
7450 redundant prototype.
7451
4074e13c
JB
74522003-04-18 Jim Blandy <jimb@redhat.com>
7453
7454 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7455 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7456
e3ab4aba
RH
74572003-04-17 Richard Henderson <rth@redhat.com>
7458
7459 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7460
627bf7c1
EZ
74612003-04-17 Michael Snyder <msnyder@redhat.com>
7462 Karen Bennet <bennet@redhat.com>
7463
7464 Committed by Elena Zannoni <ezannoni@redhat.com>
7465 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7466
514621a9
EZ
74672003-04-17 Elena Zannoni <ezannoni@redhat.com>
7468
7469 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7470 value if the return type is void.
514621a9 7471
b4acd559
JJ
74722003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7473
7474 * thread-db.c: Reindented.
8ffd9b1b 7475
530b167e 74762003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7477
7478 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7479 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7480 as types.
7481
0a48e7e8
MS
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
8ffd9b1b 7505
ab9fe00e
KB
75062003-04-16 Kevin Buettner <kevinb@redhat.com>
7507
610a3745 7508 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7509 the size of ``long double'' to 16, instead of 8.
7510
e64a344c
MK
75112003-04-16 Mark Kettenis <kettenis@gnu.org>
7512
7513 * i386-linux-nat.c: Add some whitespace to make things more
7514 readable.
7515 (fetch_register, store_register, fetch_inferior_registers,
7516 store_inferior_registers): Get rid of assignment in if-statement.
7517 (store_register): Fix typo in error message.
7518
25d41031
AC
75192003-04-16 Andrew Cagney <cagney@redhat.com>
7520
7521 * utils.c (xmmalloc): Always allocate something, matches
7522 libiberty/xmalloc's semantics.
7523 (xmrealloc, xmcalloc): Ditto.
7524
c50901fd
AC
75252003-04-16 Andrew Cagney <cagney@redhat.com>
7526
7527 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7528 update comments.
7529 (get_frame_type): Initialize unwind and type when needed.
7530 (get_frame_id, frame_register_unwind): Ditto.
7531
f81824a9
AC
75322003-04-16 Andrew Cagney <cagney@redhat.com>
7533
7534 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7535 obsolete.
7536 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7537 * sparcl-stub.c: Obsolete file.
7538 * config/sparc/tm-sparclet.h: Obsolete file.
7539 * sparclet-stub.c: Obsolete file.
7540 * sparclet-rom.c: Obsolete file.
7541 * sparcl-tdep.c: Obsolete file.
7542 * config/sparc/tm-sparclite.h: Obsolete file.
7543 * config/sparc/sparclite.mt: Obsolete file.
7544 * config/sparc/sparclet.mt: Obsolete file.
7545 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7546 sparc86x-*-* obsolete.
7547
9219021c
DC
75482003-04-15 David Carlton <carlton@math.stanford.edu>
7549
7550 * Makefile.in (SFILES): Add cp-namespace.c.
7551 (COMMON_OBS): Add cp-namespace.o.
7552 (block.o): Depend on gdb_obstack_h and cp_support_h.
7553 (buildsym.o): Depend on cp_support_h.
7554 (cp-namespace.o): New.
7555 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7556 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7557 (dwarf2read.o): Depend on cp_support_h.
7558 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7559 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7560 processing_current_namespace.
7561 (read_namespace): Update processing_current_namespace; check for
7562 anonymous namespaces.
7563 (dwarf2_name): New function.
7564 (dwarf2_extension): Ditto.
7565 * cp-support.h: Update copyright, contributors.
7566 Add inclusion guards.
7567 Add opaque declaration for structs obstack, block, symbol.
7568 (struct using_direct): New struct.
7569 Add declarations for cp_find_first_component,
7570 cp_entire_prefix_len, processing_has_namespace_info,
7571 processing_current_namespace, cp_is_anonymous,
7572 cp_add_using_directive, cp_initialize_namespace,
7573 cp_finalize_namespace, cp_set_block_scope,
7574 cp_scan_for_anonymous_namespaces.
7575 * cp-namespace.c: New file.
7576 * cp-support.c: Update copyright.
7577 Include ctype.h, gdb_assert.h, gdbcmd.h.
7578 New variable maint_cplus_cmd_list.
7579 (cp_find_first_component): New function.
7580 (cp_entire_prefix_len, maint_cplus_command)
7581 (first_component_command, _initialize_cp_support): Ditto.
7582 * buildsym.c: Include cp-support.h.
7583 New variable using_list.
7584 (add_symbol_to_list): Check for anonymous namespaces.
7585 (finish_block): Set block's scope.
7586 (start_symtab): Initialize C++ namespace support.
7587 (end_symtab): Finalize C++ namespace support.
7588 * block.h: Add opaque declarations for structs
7589 block_namespace_info, using_direct, and obstack.
7590 Add declarations for block_set_scope and block_set_using.
7591 (struct block): Add 'language_specific' member.
7592 (BLOCK_NAMESPACE): New macro.
7593 * block.c: Include gdb_obstack.h and cp-support.h.
7594 (struct block_namespace_info): New struct.
7595 (block_set_scope): New function.
7596 (block_set_using, block_initialize_namespace): Ditto.
7597
d5a921c9
KB
75982003-04-14 Kevin Buettner <kevinb@redhat.com>
7599
7600 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7601 (locate_base): Return early if there aren't any link map offsets.
7602 (svr4_solib_create_inferior_hook): Warn if shared library support
7603 is unavailable.
7604
d2a52b27
DC
76052003-04-14 David Carlton <carlton@math.stanford.edu>
7606
7607 * symtab.c (symbol_set_names): Add prefix when storing Java names
7608 in hash table. Fix for PR java/1039.
7609
980cae7a
DC
76102003-04-14 David Carlton <carlton@math.stanford.edu>
7611
7612 * symtab.c (symbol_set_names): Rename 'name' arg to
7613 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7614 * symtab.h: Change 'name' argument in declaration of
7615 symbol_set_names to 'linkage_name'.
7616 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7617
e227b13c
AC
76182003-04-14 Andrew Cagney <cagney@redhat.com>
7619
7620 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7621 return the fully sign-extended register value.
7622 (get_frame_pointer): Ditto.
7623 (mips_pop_frame): Initialize "proc_desc" after checking for a
7624 dummy frame.
7625
36712a20
AC
76262003-04-14 Andrew Cagney <cagney@redhat.com>
7627
7628 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7629 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7630 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7631 (mips_push_register): Delete function.
7632 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7633 PUSH_FP_REGNUM.
7634
44ea7b70
JB
76352003-04-14 Jim Blandy <jimb@redhat.com>
7636
7637 * symmisc.c: #include "gdb_regex.h".
7638 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7639 functions.
7640 * maint.c (maintenance_list_command): New function.
7641 (_initialize_maint_cmds): Register the above as commands.
7642 * symtab.h (maintenance_list_symtabs,
7643 maintenance_list_psymtabs): New declarations.
7644 * cli/cli-cmds.c (maintenancelistlist): New variable.
7645 (init_cmd_lists): Initialize it.
7646 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7647 * gdbcmd.h (maintenancelistlist): New declaration.
7648 * Makefile.in (symmisc.o): Update dependencies.
7649
2d0c7962
EZ
76502003-04-14 Elena Zannoni <ezannoni@redhat.com>
7651
7652 * s390-nat.c: Include asm/types.h for addr_t.
7653
1947a811
CV
76542003-04-14 Corinna Vinschen <vinschen@redhat.com>
7655
7656 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7657 actually incoming type.
7658
adb616d7
AC
76592003-04-13 Andrew Cagney <cagney@redhat.com>
7660
7661 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7662 get_next_frame and get_frame_saved_regs.
7663
9b5e151c
AC
76642003-04-13 Andrew Cagney <cagney@redhat.com>
7665
7666 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7667 of gdbarch_num_regs.
7668
ef6e7e13
AC
76692003-04-13 Andrew Cagney <cagney@redhat.com>
7670
7671 * frame.h: Mention what replaced what in "struct frame_info".
7672 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7673 deprecated_update_frame_base_hack and
7674 deprecated_update_frame_pc_hack.
7675 * hppa-tdep.c: Ditto.
7676
61fbb938
DJ
76772003-04-13 Daniel Jacobowitz <drow@mvista.com>
7678
7679 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7680 to read_reg and update its comment. Remove regnum member.
7681 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7682 Don't call read_reg when setting in_reg. Call read_reg to get
7683 the frame base if it's in a register. Return the register number
7684 on the stack instead of in the context. Remove extra arguments
7685 to read_reg.
7686 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7687 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7688 the register number on the expression stack.
7689 (needs_frame_read_reg): Remove extra arguments.
7690
0d53c4c4
DJ
76912003-04-13 Daniel Jacobowitz <drow@mvista.com>
7692
7693 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7694 made non-static.
7695 (execute_stack_op): All callers updated.
7696 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7697 * dwarf2loc.c (find_location_expression): New function.
7698 (dwarf_expr_frame_base): Call it.
7699 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7700 (dwarf2_tracepoint_var_ref): New function, broken out from
7701 locexpr_tracepoint_var_ref.
7702 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7703 Make static.
7704 (loclist_read_variable, loclist_read_needs_frame): New functions.
7705 (loclist_describe_location, loclist_tracepoint_var_ref): New
7706 functions.
7707 (dwarf2_loclist_funcs): New struct location_funcs.
7708 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7709 (struct dwarf2_locexpr_baton): Add comments.
7710 (dwarf2_loclist_funcs): New extern.
7711 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7712 base_address and base_known.
7713 (dwarf_loc_buffer): New variable.
7714 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7715 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7716 (dwarf2_has_info): Initialize dwarf_loc_offset.
7717 (dwarf2_build_psymtabs): Read in .debug_loc.
7718 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7719 DWARF_LOC_SIZE.
7720 (psymtab_to_symtab_1): Likewise. Move base address calculation
7721 here, from...
7722 (dwarf2_get_pc_bounds): ... here. Use the base address from
7723 cu_header.
7724 (dwarf2_symbol_mark_computed): Handle location lists.
7725
6aca59a3
DJ
77262003-04-13 Daniel Jacobowitz <drow@mvista.com>
7727
7728 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7729 if the linkage name demangled successfully.
7730
aca1fcd0
MK
77312003-04-13 Mark Kettenis <kettenis@gnu.org>
7732
97095916
MK
7733 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7734 disassmbly_flavour): Removed.
7735
aca1fcd0
MK
7736 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7737
562a961f
MK
77382003-04-13 Mark Kettenis <kettenis@gnu.org>
7739
7740 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7741
bd013d54
AC
77422003-04-12 Andrew Cagney <cagney@redhat.com>
7743
7744 * frame.h (struct frame_info): Move definition from here ...
7745 * frame.c (struct frame_info): ... to here.
7746
167ef8b1
AC
77472003-04-12 Andrew Cagney <cagney@redhat.com>
7748
7749 * gdbthread.h (save_infrun_state): Delete parameter
7750 "prev_func_start".
7751 (struct thread_info): Delete field "prev_func_start".
7752 (load_infrun_state): Ditto.
7753 * thread.c (load_infrun_state, save_infrun_state): Update.
7754 * infrun.c (prev_func_start): Delete variable.
7755 (context_switch, init_wait_for_inferior): Update.
7756 (stop_stepping, keep_going): Update.
7757
da3331ec
AC
77582003-04-12 Andrew Cagney <cagney@redhat.com>
7759
7760 * gdbarch.sh: Add missing opaque declarations.
7761 * gdbarch.h: Regnerate.
7762 * symtab.h: Add missing opaque declarations.
7763 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7764 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7765 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7766 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7767 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7768 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7769 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7770 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7771 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7772 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7773 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7774 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7775 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7776
18adea3f
AC
77772003-04-11 Andrew Cagney <cagney@redhat.com>
7778
7779 * frame.c (get_frame_id): Return this frame's "id".
7780 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7781 function start.
7782 (legacy_saved_regs_this_id): Replace function body with
7783 internal-error.
7784 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7785 FRAME_OBSTACK_ZALLOC.
7786 (create_new_frame): Mark the frame ID as valid.
7787
2252e863
AO
77882003-04-11 Alexandre Oliva <aoliva@redhat.com>
7789
7790 * Makefile.in (libbfd_h): Added missing setting.
7791 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7792 according to the selected ABI.
7793
a8245ab8
JJ
77942003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7795
7796 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7797
6913c89a
AC
77982003-04-11 Andrew Cagney <cagney@redhat.com>
7799
7800 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7801 SAVED_PC_AFTER_CALL.
7802 * gdbarch.h, gdbarch.c: Regenerate.
7803 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7804 * x86-64-tdep.c (x86_64_init_abi): Update.
7805 * vax-tdep.c (vax_gdbarch_init): Update.
7806 * v850-tdep.c (v850_gdbarch_init): Update.
7807 * sparc-tdep.c (sparc_gdbarch_init): Update.
7808 * sh-tdep.c (sh_gdbarch_init): Update.
7809 * s390-tdep.c (s390_gdbarch_init): Update.
7810 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7811 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7812 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7813 * mips-tdep.c (mips_gdbarch_init): Update.
7814 * mcore-tdep.c (mcore_gdbarch_init): Update.
7815 * m68k-tdep.c (m68k_gdbarch_init): Update.
7816 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7817 * ia64-tdep.c (ia64_gdbarch_init): Update.
7818 (ia64_saved_pc_after_call): Update declaration.
7819 * i386ly-tdep.c (i386lynx_init_abi): Update.
7820 * i386-tdep.c (i386_gdbarch_init): Update.
7821 * hppa-tdep.c (hppa_gdbarch_init): Update.
7822 * h8300-tdep.c (h8300_gdbarch_init): Update.
7823 * frv-tdep.c (frv_gdbarch_init): Update.
7824 * cris-tdep.c (cris_gdbarch_init): Update.
7825 * avr-tdep.c (avr_gdbarch_init): Update.
7826 * arm-tdep.c (arm_gdbarch_init): Update.
7827 * alpha-tdep.c (alpha_gdbarch_init): Update.
7828 * ns32knbsd-nat.c (frame_num_args): Update.
7829 * ns32k-tdep.c (umax_frame_num_args): Update.
7830 * mips-tdep.c (mips_init_frame_pc_first): Update.
7831 * infrun.c (step_over_function): Update.
7832 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7833 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7834 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7835 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7836 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7837 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7838 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7839 * arch-utils.c (init_frame_pc_default): Update.
7840 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7841 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7842 declaration.
8ffd9b1b 7843
38edeab8
AC
78442003-04-11 Andrew Cagney <cagney@redhat.com>
7845
7846 * i387-tdep.c: Update copyright.
7847 (i387_to_double): Delete function.
7848 (double_to_i387): Delete function.
7849
81f8a206
AC
78502003-04-10 Andrew Cagney <cagney@redhat.com>
7851
7852 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7853 frame's function's address. Simplify.
7854 (d10v_frame_unwind_cache): Check that the frame's function is
7855 non-zero.
7856
6e691f7a
JB
78572003-04-10 Jim Blandy <jimb@redhat.com>
7858
7859 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7860 call to set_gdbarch_deprecated_push_arguments.
7861
7f78e237
AC
78622003-04-10 Andrew Cagney <cagney@redhat.com>
7863
7864 * frame.c (fprint_frame_id): New function.
7865 (fprint_frame_type, fprint_frame): New function.
7866 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7867 (create_sentinel_frame, get_frame_id): Ditto.
7868 (frame_id_p, frame_id_eq): Ditto.
7869 (frame_id_inner, create_new_frame): Ditto.
7870 (legacy_get_prev_frame, get_prev_frame): Ditto.
7871 (deprecated_update_frame_pc_hack): Ditto.
7872 (frame_register_unwind): Ditto.
7873 (deprecated_update_frame_base_hack): Ditto.
7874
f870b49b
CV
78752003-04-10 Corinna Vinschen <vinschen@redhat.com>
7876
7877 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7878 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7879 frame_chain function.
7880 * Makefile.in: Add dependencies due to above change.
7881
7c86889b
CV
78822003-04-10 Corinna Vinschen <vinschen@redhat.com>
7883
7884 * blockframe.c (legacy_frame_chain_valid): Move call to
7885 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7886 inside_entry_file.
7887
d0a55772
AC
78882003-04-09 Andrew Cagney <cagney@redhat.com>
7889
7890 * frame.h (struct frame_id): Replace "pc" and "base" with
7891 "stack_addr" and "code_addr". Update comments.
7892 (frame_id_build): Update parameter names and comment.
7893 (struct frame_info): Replace "id_p" and "id" with "this_id".
7894 * dummy-frame.c (dummy_frame_this_id): Update.
7895 * breakpoint.c (print_one_breakpoint): Update.
7896 * frame.c (get_frame_id): Update.
7897 (get_frame_base, frame_id_build): Update.
7898 (create_sentinel_frame, legacy_get_prev_frame): Update.
7899 (deprecated_update_frame_base_hack): Update.
7900 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7901 (frame_id_inner): Ditto.
7902
ac16bf07
AC
79032003-04-09 Andrew Cagney <cagney@redhat.com>
7904
7905 * defs.h (gdb_print_host_address): Make "addr" parameter a
7906 pointer constant.
7907 * utils.c (gdb_print_host_address): Update.
7908
366cfc9e
KB
79092003-04-09 Kevin Buettner <kevinb@redhat.com>
7910
7911 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7912 register number for R0 is 0.
7913
cd983b5c
JB
79142003-04-09 J. Brobecker <brobecker@gnat.com>
7915
7916 * frame.h (struct gdbarch): Add opaque structure definition
7917 to avoid a compilation warning on LynxOS 4.0.
7918
d1340264
AC
79192003-04-09 Andrew Cagney <cagney@redhat.com>
7920
7921 * frame.h (struct frame_info): Delete field "pc". Replace
7922 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7923 structure.
7924 * frame.c (frame_pc_unwind): Update.
7925 (create_sentinel_frame): Do not set "pc".
7926 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7927 (get_frame_pc): Call frame_pc_unwind.
7928 (deprecated_update_frame_pc_hack): Update.
7929 (create_new_frame): Use "pc" not "->pc".
7930
90a6fffb
AC
79312003-04-09 Andrew Cagney <cagney@redhat.com>
7932
7933 * frame.c (get_frame_id): Eliminate code updating "frame".
7934 (legacy_get_prev_frame): Ditto.
7935 (get_frame_base): Return id.base directly.
7936 (deprecated_update_frame_base_hack): Update "id.base".
7937 * frame.h (struct frame_info): Delete field "frame".
7938
2fbce691
AC
79392003-04-09 Andrew Cagney <cagney@redhat.com>
7940
7941 * NEWS: Mention that the "Sequent family" is obsolete.
7942 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7943 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7944 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7945 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7946 * config/i386/tm-ptx4.h: Obsolete file.
7947 * config/i386/tm-ptx.h: Obsolete file.
7948 * symm-tdep.c: Obsolete file.
7949 * config/i386/symmetry.mt: Obsolete file.
7950 * config/i386/tm-symmetry.h: Obsolete file.
7951 * symm-nat.c: Obsolete file.
7952 * config/i386/nm-symmetry.h: Obsolete file.
7953 * config/i386/xm-symmetry.h: Obsolete file.
7954 * config/i386/symmetry.mh: Obsolete file.
7955 * config/i386/nm-ptx4.h: Obsolete file.
7956 * config/i386/ptx4.mh: Obsolete file.
7957 * config/i386/ptx.mt: Obsolete file.
7958 * config/i386/ptx.mh: Obsolete file.
7959 * config/i386/xm-ptx4.h: Obsolete file.
7960 * config/i386/xm-ptx.h: Obsolete file.
7961
78c43945
AC
79622003-04-09 Andrew Cagney <cagney@redhat.com>
7963
7964 Obsolete mips*-*-mach3*.
7965 * NEWS: Mention that mips*-*-mach3* is obsolete.
7966 * m3-nat.c: Obsolete file.
7967 * config/nm-m3.h: Obsolete file.
7968 * config/mips/tm-mipsm3.h: Obsolete file.
7969 * config/mips/mipsm3.mt: Obsolete file.
7970 * config/mips/mipsm3.mh: Obsolete file.
7971 * config/mips/xm-mipsm3.h: Obsolete file.
7972 * mipsm3-nat.c: Obsolete file.
7973 * configure.host: Obsolete mips-dec-mach3*.
7974 * configure.tgt: Obsolete mips*-*-mach3*.
7975
f1908289
AC
79762003-04-09 Andrew Cagney <cagney@redhat.com>
7977
7978 * doublest.h: Update copyright.
7979 (deprecated_store_floating, deprecated_extract_floating): Rename
7980 store_floating and extract_floating. Update comments.
7981 * doublest.c: Update copyright.
7982 (extract_floating_by_length): Replace extract_floating.
7983 (store_floating_by_length): Replace store_floating.
7984 (deprecated_extract_floating): New function.
7985 (deprecated_store_floating): New function.
7986 (extract_typed_floating): Call extract_floating_by_length.
7987 (store_typed_floating): Call store_floating_by_length.
7988 * x86-64-tdep.c (x86_64_store_return_value): Update.
7989 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7990 (sh64_extract_return_value): Update.
7991 (sh_sh4_register_convert_to_virtual): Update.
7992 (sh_sh64_register_convert_to_virtual): Update.
7993 (sh_sh4_register_convert_to_raw): Update.
7994 (sh_sh64_register_convert_to_raw): Update.
7995 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7996 (rs6000_register_convert_to_raw): Update.
7997 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7998 (ia64_register_convert_to_raw): Update.
7999 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8000 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8001 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8002 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8003 (alpha_register_convert_to_raw): Update.
8004
4443bd83
AC
80052003-04-08 Andrew Cagney <cagney@redhat.com>
8006
8007 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8008 * gdbarch.h, gdbarch.c: Re-generate.
8009 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8010 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8011 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8012 conditionally, use frame_pc_unwind as an alternative. Add
8013 comments.
8014 * arch-utils.c (init_frame_pc_default): Only call
8015 SAVED_PC_AFTER_CALL when available.
8016
c0236d92
EZ
80172003-04-08 Elena Zannoni <ezannoni@redhat.com>
8018
fbe586ae 8019 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8020 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8021 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8022 (start_remote): Ditto.
8023 (handle_inferior_event): Ditto.
8024 (save_inferior_status): Ditto.
8025 (restore_inferior_status): Ditto.
8026 * infcmd.c (attach_command): Ditto.
8027 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8028 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8029 * alpha-tdep.c (heuristic_proc_start): Ditto.
8030 * mips-tdep.c (heuristic_proc_start): Ditto.
8031 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8032 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8033 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8034 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8035 * remote-vx.c (vx_create_inferior): Ditto.
8036
80372003-04-08 Elena Zannoni <ezannoni@redhat.com>
8038
8039 * infrun.c (stop_soon_quietly): Make it an enum, to better
8040 override the default behavior of handle_inferior_event.
8041 (clear_proceed_status): Update uses of stop_soon_quietly to
8042 reflect that it is now an enum.
8043 (start_remote): Ditto.
8044 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8045 is set to handle the new GNU/Linux kernel behavior for
8046 attach/sigstop. Update uses of stop_soon_quietly.
8047 * inferior.h (enum stop_kind): New enum.
8048 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8049 Reset normal handle_inferior_event behavior, afterwards.
8050 * fork-child.c (startup_inferior): Update.
8051 * alpha-tdep.c (heuristic_proc_start): Update.
8052 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8053 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8054 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8055 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8056 * remote-vx.c (vx_create_inferior): Update.
8057 * mips-tdep.c (heuristic_proc_start): Update.
8058
1211bce3
EZ
80592003-04-07 Elena Zannoni <ezannoni@redhat.com>
8060
8061 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8062 be freed more than once, causing wild memory corruptions.
1211bce3 8063 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8064 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8065 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8066 with the "core" target.
1211bce3 8067
f0ef6b29
KB
80682003-04-07 Kevin Buettner <kevinb@redhat.com>
8069
8070 * mips-tdep.c (mips_print_fp_register): New function, created from
8071 do_fp_register_row(). Registers are now (also) printed as hex.
8072 Only one register is printed per row.
8073 (mips_print_register, do_fp_register_row): Print floating point
8074 registers with mips_print_fp_register().
8075
8cf71652
AC
80762003-04-06 Andrew Cagney <cagney@redhat.com>
8077
5e488a7b
AC
8078 * valprint.h (inspect_it): Add extern declaration.
8079 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8080 (selectors_info, classes_info): Ditto.
8081 (find_objc_msgcall): Fix indentation.
8082 (objc_printstr): Delete extern declarations.
8083
8cf71652
AC
8084 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8085
e6ba3bc9
AC
80862003-04-06 Andrew Cagney <cagney@redhat.com>
8087
8088 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8089 Update comment.
8090 * frame.c (legacy_saved_regs_this_id): Update.
8091 (legacy_get_prev_frame): Update.
8092 * xstormy16-tdep.c: Update comment.
8093 * sparc-tdep.c (sparc_frame_chain): Update comment.
8094 * blockframe.c (legacy_frame_chain_valid): Update.
8095
55e1d7e7
AC
80962003-04-06 Andrew Cagney <cagney@redhat.com>
8097
996179ee
AC
8098 * valprint.c (val_print_type_code_int): Delete #ifdef
8099 PRINT_TYPELESS_INTEGER code.
8100
55e1d7e7
AC
8101 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8102 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8103 multi-arch definition.
8104 * gdbarch.h: Re-generate.
8105
43bd9a9e
AC
81062003-04-05 Andrew Cagney <cagney@redhat.com>
8107
8108 Eliminate FRAME_FIND_SAVED_REGS.
8109 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8110 Change FSR parameter to a pointer.
8111 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8112 Assume FSR parameter is a pointer.
8113 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8114 Make fsr a pointer.
8115 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8116 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8117 saved_regs a pointer.
8118 (hppa_frame_saved_pc): Ditto.
8119 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8120 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8121 pointer.
8122 (restore_pc_queue): Make fsr a pointer.
8123 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8124 (hppa_frame_chain): Make saved_regs a pointer, call
8125 hppa_frame_init_saved_regs.
8126 * sparc-tdep.c: Include "gdb_assert.h".
8127 (sparc_frame_find_saved_regs): Replace internal_error with
8128 gdb_assert.
8129 * remote-vxsparc.c (vx_read_register): Delete reference to
8130 FRAME_FIND_SAVED_REGS.
8131 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8132 * gdbarch.h: Regenerate.
8133 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8134 (deprecated_get_frame_saved_regs): Delete declaration.
8135 (struct frame_saved_regs): Delete definition.
8136 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8137 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8138 (hppa_frame_find_saved_regs): Delete declaration.
8139 (FRAME_FIND_SAVED_REGS): Delete macro.
8140 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8141 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8142 FRAME_FIND_SAVED_REGS in comment.
8143
be41e9f4
AC
81442003-04-05 Andrew Cagney <cagney@redhat.com>
8145
8146 * frame.c (frame_func_unwind, get_frame_func): New functions.
8147 * frame.h (get_frame_func, frame_func_unwind): Declare.
8148 (struct frame_info): Add field "prev_func" for caching the
8149 previous frame's function address.
8150 * arm-tdep.c (arm_frameless_function_invocation): Combine
8151 get_pc_function_start and get_frame_pc into get_frame_func.
8152 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8153 (sh64_nofp_frame_init_saved_regs): Ditto.
8154 * s390-tdep.c (s390_function_start): Ditto.
8155 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8156 (rs6000_frameless_function_invocation): Ditto.
8157 (rs6000_frame_saved_pc): Ditto.
8158 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8159 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8160 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8161 (i386_frame_init_saved_regs): Ditto.
8162 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8163 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8164 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8165 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8166 * blockframe.c (frameless_look_for_prologue): Ditto.
8167
a01dd7cc
AC
81682003-04-05 Andrew Cagney <cagney@redhat.com>
8169
8170 * frame.c (legacy_get_prev_frame): Link prev to next at the
8171 function start. Update comments.
8172
5e5592e6
AC
81732003-04-05 Andrew Cagney <cagney@redhat.com>
8174
8175 * frame.c (get_frame_id): Update comment.
8176 (legacy_get_prev_frame): Update comment.
8177 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8178 * gdbarch.h: Regenerate.
8179 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8180 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8181
6fba5002
AC
81822003-04-05 Andrew Cagney <cagney@redhat.com>
8183
8184 * stack.c (print_frame_info): Use get_frame_pc.
8185
7df05f2b
AC
81862003-04-04 Andrew Cagney <cagney@redhat.com>
8187
8188 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8189 the frame's type from the unwinder.
8190 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8191 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8192 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8193 (get_frame_base_address): Use get_frame_type.
8194 (get_frame_locals_address, get_frame_args_address): Ditto.
8195 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8196 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8197 (struct frame_info): Add comment explaining why the frame contains
8198 a "type" field.
8199 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8200 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8201 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8202 NORMAL_FRAME.
8203 * frame-unwind.h: Include "frame.h".
8204 (struct frame_unwind): Add "type" field.
8205 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8206
11889732
AC
82072003-04-04 Andrew Cagney <cagney@redhat.com>
8208
8209 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8210 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8211 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8212 get_frame_base.
8213 (d10v_unwind_dummy_id): Use frame_id_build.
8214 * frame.c (find_frame_sal): Use get_frame_pc.
8215 (create_new_frame): Use deprecated_update_frame_pc_hack and
8216 deprecated_update_frame_base_hack.
8217 (create_sentinel_frame): Add comment about ->pc going away.
8218 (get_prev_frame): Add comment about ->pc going away.
8219 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8220 frame_id_build, deprecated_update_frame_pc_hack and
8221 deprecated_update_frame_base_hack.
8222 (select_frame): Use get_frame_pc.
8223 (legacy_saved_regs_this_id): Use frame_id_build.
8224
50c46a0d
EZ
82252003-04-04 Elena Zannoni <ezannoni@redhat.com>
8226
fbe586ae
RH
8227 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8228 signed integer case.
8229 (classify_argument): Handle enumerations and references.
50c46a0d 8230
50bbdbd9
AC
82312003-04-04 Andrew Cagney <cagney@redhat.com>
8232
8233 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8234 ID to NULL.
8235
36018d2e
AF
82362003-04-01 Adam Fedor <fedor@gnu.org>
8237
8238 * gdb/objc-lang.c (selectors_info): Replace calls to
8239 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8240 SYMBOL_NATURAL_NAME.
8241 (classes_info, find_methods): Likewise.
8242
35cec841
KB
82432003-04-03 Kevin Buettner <kevinb@redhat.com>
8244
8245 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8246 ``mach'' to the value determined by bfd_default_set_arch_mach().
8247
43136899
BR
82482003-04-02 Bob Rossi <bob_rossi@cox.net>
8249
8250 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8251 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8252 (mi-cmd-file.o): Update dependencies.
8253
040b99fd
KB
82542003-04-01 Kevin Buettner <kevinb@redhat.com>
8255
8256 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8257 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8258
9a3d7dfd
AF
82592003-04-01 Adam Fedor <fedor@gnu.org>
8260
8261 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8262 * language.h (struct language_defn): Add la_demangle.
8263 (language_demangle): Declare.
8264 * language.c (language_demangle): New function.
8265 (unk_lang_demangle): Likewise.
8266 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8267 Add ukn_lang_demangle.
9a3d7dfd 8268 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8269 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8270 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8271 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8272 * jv-lang.c (java_demangle): New function
8273 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8274 * objc-lang.c (objc_demangle): Add options argument
8275 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8276 * maint.c (maintenance_demangle): Replace switch with
8277 call to language_demangle.
8278 * utils.c (fprintf_symbol_filtered): Likewise.
8279
5e074003
AC
82802003-04-01 Andrew Cagney <cagney@redhat.com>
8281
8282 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8283 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8284 PRINT_TYPELESS_INTEGER.
8285 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8286 PUSH_RETURN_ADDRESS.
8287
270cb5d6
AC
82882003-04-01 Andrew Cagney <cagney@redhat.com>
8289
8290 * Makefile.in (d10v-tdep.o): Update dependencies.
8291 * d10v-tdep.c: Include "frame-base.h".
8292 (d10v_frame_unwind): Make constant.
8293 (d10v_frame_base_address): New function.
8294 (d10v_frame_base): New variable.
8295 (d10v_gdbarch_init): Set frame_base default.
8296 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8297 comment for base.
8298 (d10v_frame_unwind_cache): Set and use "prev_sp".
8299 (d10v_frame_this_id): Use the previous frame's inner most stack
8300 address and this frame's func address for the frame ID. Use
8301 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8302
6bfb3e36
AC
83032003-04-01 Andrew Cagney <cagney@redhat.com>
8304
8305 * frame.h (get_frame_locals_address, get_frame_args_address):
8306 Refer to the base address, instead of the address of the first
8307 local or parameter.
8ffd9b1b 8308
da62e633
AC
83092003-04-01 Andrew Cagney <cagney@redhat.com>
8310
8311 Add frame debug info addresses:
8312 * frame-base.c: New file.
8313 * frame-base.h: New file.
8314 * frame.h (struct frame_base): Add opaque declaration.
8315 (get_frame_base): Update comment.
8316 (get_frame_base_address): Declare.
8317 (get_frame_locals_address): Declare.
8318 (get_frame_args_address): Declare.
8319 (struct frame_info): Add "base" and "base_cache". Update
8320 comments on the unwinder.
8321 * frame.c: Include "frame-base.h".
8322 (get_frame_locals_address): New function.
8323 (get_frame_base_address): New function.
8324 (get_frame_args_address): New function.
8325 * findvar.c (read_var_value): Use get_frame_locals_address and
8326 get_frame_args_address.
8327 * stack.c (frame_info): Use get_frame_locals_address and
8328 get_frame_args_address.
8329 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8330 moved to "frame-base.c".
8331 * printcmd.c (print_frame_nameless_args): Ditto.
8332 * symtab.h (address_class): Update comments.
8333 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8334 get_frame_base_address.
8335 * dwarf2expr.c (execute_stack_op): Ditto.
8336 * Makefile.in (frame_base_h): Define.
8337 (frame.o): Update dependencies.
8338 (frame-base.o): Add dependencies.
8339 (SFILES): Add frame-base.c.
8340 (COMMON_OBS): Add frame-base.o.
8341
3d30e9c2
AC
83422003-04-01 Andrew Cagney <cagney@redhat.com>
8343
8344 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8345 CALL_DUMMY_LENGTH): Ditto.
8346 * gdbarch.c: Re-generate.
8347 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8348 (CALL_DUMMY_LENGTH): Delete macro.
8349 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8350 * arm-tdep.c (arm_gdbarch_init): Ditto.
8351 * avr-tdep.c (avr_gdbarch_init): Ditto.
8352 * cris-tdep.c (cris_gdbarch_init): Ditto.
8353 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8354 * frv-tdep.c (frv_gdbarch_init): Ditto.
8355 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8356 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8357 * i386-tdep.c (i386_gdbarch_init): Ditto.
8358 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8359 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8360 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8361 * mips-tdep.c (mips_gdbarch_init): Ditto.
8362 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8363 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8364 * s390-tdep.c (s390_gdbarch_init): Ditto.
8365 * sh-tdep.c (sh_gdbarch_init): Ditto.
8366 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8367 * v850-tdep.c (v850_gdbarch_init): Ditto.
8368 * vax-tdep.c (vax_gdbarch_init): Ditto.
8369 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8370
ce0c7262
CV
83712003-04-01 Corinna Vinschen <vinschen@redhat.com>
8372
8373 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8374
73dd234f
AC
83752003-04-01 Andrew Cagney <cagney@redhat.com>
8376
8377 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8378 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8379 * gdbarch.h, gdbarch.c: Re-generate.
8380 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8381 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8382 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8383 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8384 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8385 * infcmd.c (run_stack_dummy): Simplify assuming
8386 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8387 * infrun.c (handle_inferior_event): Ditto.
8388 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8389 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8390 * arm-tdep.c (arm_gdbarch_init): Ditto.
8391 * avr-tdep.c (avr_gdbarch_init): Ditto.
8392 * cris-tdep.c (cris_gdbarch_init): Ditto.
8393 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8394 * frv-tdep.c (frv_gdbarch_init): Ditto.
8395 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8396 * i386-tdep.c (i386_gdbarch_init): Ditto.
8397 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8398 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8399 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8400 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8401 * mips-tdep.c (mips_gdbarch_init): Ditto.
8402 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8403 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8404 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8405 * s390-tdep.c (s390_gdbarch_init): Ditto.
8406 * sh-tdep.c (sh_gdbarch_init): Ditto.
8407 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8408 * v850-tdep.c (v850_gdbarch_init): Ditto.
8409 * vax-tdep.c (vax_gdbarch_init): Ditto.
8410 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8411
97606a13
DJ
84122003-04-01 Daniel Jacobowitz <drow@mvista.com>
8413
8414 * symfile.c (symfile_relocate_debug_section): Update call to
8415 bfd_simple_get_relocated_section_contents.
8416
e8ab51f7
AC
84172003-03-31 Andrew Cagney <cagney@redhat.com>
8418
8419 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8420 * gdbarch.h, gdbarch.c: Regenerate.
8421 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8422 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8423 available.
8424 * frame.h (generic_fix_call_dummy): Delete declaration.
8425 * dummy-frame.h: Update comment.
8426 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8427 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8428 fix_call_dummy.
8429 * sh-tdep.c (sh_gdbarch_init): Ditto.
8430 * s390-tdep.c (s390_gdbarch_init): Ditto.
8431 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8432 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8433 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8434 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8435 * i386-tdep.c (i386_gdbarch_init): Ditto.
8436 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8437 * frv-tdep.c (frv_gdbarch_init): Ditto.
8438 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8439 * cris-tdep.c (cris_gdbarch_init): Ditto.
8440 * avr-tdep.c (avr_gdbarch_init): Ditto.
8441 * arm-tdep.c (arm_gdbarch_init): Ditto.
8442
018d1b48
JB
84432003-03-31 J. Brobecker <brobecker@gnat.com>
8444
8445 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8446 (INIT_FRAME_AP): Likewise.
8447 (EXTRA_FRAME_INFO): Likewise.
8448
e9a2674e
AC
84492003-03-31 Andrew Cagney <cagney@redhat.com>
8450
8451 * gdbarch.sh: Include "symfile.h".
8452 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8453 * gdbarch.h, gdbarch.c: Re-generate.
8454 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8455 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8456 call_dummy_address, the default is at entry_point_address.
8457 * v850-tdep.c (v850_gdbarch_init): Ditto.
8458 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8459 * sh-tdep.c (sh_gdbarch_init): Ditto.
8460 * s390-tdep.c (s390_gdbarch_init): Ditto.
8461 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8462 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8463 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8464 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8465 * i386-tdep.c (i386_gdbarch_init): Ditto.
8466 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8467 * frv-tdep.c (frv_gdbarch_init): Ditto.
8468 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8469 * cris-tdep.c (cris_gdbarch_init): Ditto.
8470 * arm-tdep.c (arm_gdbarch_init): Ditto.
8471
e8a8712a
AC
84722003-03-31 Andrew Cagney <cagney@redhat.com>
8473
8474 * gdbarch.sh (CALL_DUMMY_P): Delete.
8475 * gdbarch.h, gdbarch.c: Re-generate.
8476 * inferior.h (CALL_DUMMY_P): Delete macro.
8477 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8478 * vax-tdep.c (vax_gdbarch_init): Update.
8479 * v850-tdep.c (v850_gdbarch_init): Update.
8480 * sparc-tdep.c (sparc_gdbarch_init): Update.
8481 * sh-tdep.c (sh_gdbarch_init): Update.
8482 * s390-tdep.c (s390_gdbarch_init): Update.
8483 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8484 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8485 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8486 * mips-tdep.c (mips_gdbarch_init): Update.
8487 * mcore-tdep.c (mcore_gdbarch_init): Update.
8488 * m68k-tdep.c (m68k_gdbarch_init): Update.
8489 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8490 * ia64-tdep.c (ia64_gdbarch_init): Update.
8491 * i386-tdep.c (i386_gdbarch_init): Update.
8492 * h8300-tdep.c (h8300_gdbarch_init): Update.
8493 * frv-tdep.c (frv_gdbarch_init): Update.
8494 * d10v-tdep.c (d10v_gdbarch_init): Update.
8495 * cris-tdep.c (cris_gdbarch_init): Update.
8496 * breakpoint.c (deprecated_frame_in_dummy): Update.
8497 * avr-tdep.c (avr_gdbarch_init): Update.
8498 * alpha-tdep.c (alpha_gdbarch_init): Update.
8499 * arm-tdep.c (arm_gdbarch_init): Update.
8500 * dummy-frame.c (dummy_frame_this_id): Update comments.
8501 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8502 * frame.c (legacy_get_prev_frame): Ditto.
8503 * valops.c (call_function_by_hand): Delete function.
8504 (hand_function_call): Rename to call_function_by_hand
8505
ed234cf8
AC
85062003-03-30 Andrew Cagney <cagney@redhat.com>
8507
8508 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8509 * value.h (struct value): Update comment.
ed234cf8 8510
06c77151
AC
85112003-03-30 Andrew Cagney <cagney@redhat.com>
8512
6c2b5168
AC
8513 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8514 D10V_FP_REGNUM.
8515 (d10v_gdbarch_init): Do not set fp_regnum.
8516
06c77151
AC
8517 * frame.c (get_frame_base): Force ID initialization.
8518 (get_prev_frame): Move computation of the frame ID from here ...
8519 (get_frame_id): ... to here.
8520 (legacy_get_prev_frame): Mark the frame ID as valid.
8521 * frame.h (struct frame_info): Add field "id_p".
8522
97a1a11c
MK
85232003-03-30 Mark Kettenis <kettenis@gnu.org>
8524
8525 * i386-tdep.c (i386_store_struct_return): Removed.
8526 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8527
6c0e89ed
AC
85282003-03-30 Andrew Cagney <cagney@redhat.com>
8529
8530 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8531 * gdbarch.h, gdbarch.c: Regenerate.
8532 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8533 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8534 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8535 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8536 * i386-tdep.c (i386_gdbarch_init): Ditto.
8537 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8538 * cris-tdep.c (cris_gdbarch_init): Ditto.
8539 * vax-tdep.c (vax_gdbarch_init): Ditto.
8540 * s390-tdep.c (s390_gdbarch_init): Ditto.
8541 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8542 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8543 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8544 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8545 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8546 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8547 * sparc-tdep.c (sparc_gdbarch_init): Update.
8548 * sh-tdep.c (sh_gdbarch_init): Update.
8549 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8550 * mips-tdep.c (mips_gdbarch_init): Update.
8551 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8552 * ia64-tdep.c (ia64_gdbarch_init): Update.
8553 * frv-tdep.c (frv_gdbarch_init): Update.
8554 * avr-tdep.c (avr_gdbarch_init): Update.
8555 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8556 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8557 instead of when push_dummy_call is not available.
8ffd9b1b 8558
f7dd6af2
AC
85592003-03-30 Andrew Cagney <cagney@redhat.com>
8560
8561 * infttrace.c: Include "gdbthread.h".
8562 (parent_attach_all): Fix function signature.
8563 (call_ptrace): Update call.
8564 * Makefile.in (infttrace.o): Update dependencies.
8565
28f617b3
AC
85662003-03-30 Andrew Cagney <cagney@redhat.com>
8567
8568 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8569 PUSH_RETURN_ADDRESS.
8570 * gdbarch.h, gdbarch.c: Regenerate.
8571 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8572 * x86-64-tdep.c (x86_64_init_abi): Update.
8573 * v850-tdep.c (v850_gdbarch_init): Update.
8574 * sparc-tdep.c (sparc_gdbarch_init): Update.
8575 * sh-tdep.c (sh_gdbarch_init): Update.
8576 * s390-tdep.c (s390_gdbarch_init): Update.
8577 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8578 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8579 * mips-tdep.c (mips_gdbarch_init): Update.
8580 * mcore-tdep.c (mcore_gdbarch_init): Update.
8581 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8582 * ia64-tdep.c (ia64_gdbarch_init): Update.
8583 * i386-tdep.c (i386_gdbarch_init): Update.
8584 * h8300-tdep.c (h8300_gdbarch_init): Update.
8585 * frv-tdep.c (frv_gdbarch_init): Update.
8586 * cris-tdep.c (cris_gdbarch_init): Update.
8587 * avr-tdep.c (avr_gdbarch_init): Update.
8588 * arm-tdep.c (arm_gdbarch_init): Update.
8589 * valops.c (hand_function_call): Update.
8590
4d628cd7
AC
85912003-03-29 Andrew Cagney <cagney@redhat.com>
8592
8593 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8594 sizeof_call_dummy_words.
8595 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8596 define.
8597 * gdbarch.h: Regenerate.
8ffd9b1b 8598
65e82032
AC
85992003-03-29 Andrew Cagney <cagney@redhat.com>
8600
8601 * infttrace.h: New file.
8602 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8603 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8604 (hpread_read_doc_function_type): Detect an initialized type1.
8605 (hpread_quick_traverse): Initialize mod_name_string.
8606 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8607 (som_solib_get_solib_by_pc): Declare.
8608 (so_lib_thread_start_addr): Declare.
8609 (no_shared_libraries): Declare.
8610 * somread.c (init_import_symbols): Make static. Add forward
8611 declaration.
8612 * config/pa/nm-hppah.h: Include "infttrace.h" for
8613 parent_attach_all.
8614 (hppa_insert_hw_watchpoint): Declare.
8615 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8616 * hppah-nat.c: Include "gdb_string.h".
8617 (parent_attach_all): Delete extern declaration, moved to
8618 "infttrace.h".
8619 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8620 int.
8621 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8622 * Makefile.in (infttrace_h): Define.
8623 (hpread.o): Update dependencies.
8624 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8625 * hppa-hpux-tdep.c: Include "gdb_string.h".
8626 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8627 * infrun.c (handle_inferior_event): Always initialize
8628 stepped_after_stopped_by_watchpoint. Add default and remove
8629 fallthrough in switch statement.
8630 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8631 parameter to int.
8632 (hppa_remove_hw_watchpoint): Ditto.
8633
2c3bbe77
AC
86342003-03-29 Andrew Cagney <cagney@redhat.com>
8635
8636 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8637 offset.
8638
2dd604e7
RE
86392003-03-29 Richard Earnshaw <rearnsha@arm.com>
8640
8641 * arm-tdep.c (arm_push_arguments): Delete.
8642 (struct stack_item): New type.
8643 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8644 (arm_store_struct_return): Delte.
8645 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8646 arm_push_arguments or arm_store_struct_return.
8647
e8933a55
AC
86482003-03-28 Andrew Cagney <cagney@redhat.com>
8649
8650 * Makefile.in (d10v-tdep.o): Update dependencies.
8651 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8652 * d10v-tdep.c: Include "remote.h".
8653 (target_resume_hook): Delete extern declaration.
8654 (target_wait_loop_hook): Ditto.
8655 (tdisassemble_command): Eliminate assignment in "if" conditional.
8656 (d10v_ts2_register_sim_regno): Eliminate call to
8657 legacy_register_sim_regno.
8658 (d10v_ts3_register_sim_regno): Ditto.
8659
6949171e
JJ
86602003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8661
8662 * thread.c: Reindented.
8663 * lin-lwp.c: Ditto.
8664 * linux-proc.c: Ditto.
8665
98c7071f
BR
86662003-03-28 Bob Rossi <bob_rossi@cox.net>
8667
fbe586ae 8668 * MAINTAINERS (write after approval): Add myself.
98c7071f 8669
5edc9ca6
TR
86702003-03-27 Theodore A. Roth <troth@openavr.org>
8671
8672 * objc-exp.y: Add missing semi-colons.
8673
378bfd1b
AC
86742003-03-27 Andrew Cagney <cagney@redhat.com>
8675
8676 * regcache.c (write_sp): Delete function and references.
8677 * inferior.h (write_sp): Delete declaration.
8678 * valops.c (hand_function_call): Replace write_sp with
8679 TARGET_WRITE_SP.
8680 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8681 (sparc_pop_frame): Ditto.
8ffd9b1b 8682
56056df7
AC
86832003-03-27 Andrew Cagney <cagney@redhat.com>
8684
8685 * NEWS: Mention removal of support for hppa*-*-bsd* and
8686 hppa*-*-osf* natives, and hppa*-*-pro* target.
8687 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8688 * config/pa/xm-pa.h: Obsolete file.
8689 * config/pa/xm-hppab.h: Obsolete file.
8690 * config/pa/nm-hppab.h: Obsolete file.
8691 * config/pa/tm-hppab.h: Obsolete file.
8692 * config/pa/tm-hppao.h: Obsolete file.
8693 * config/pa/nm-hppao.h: Obsolete file.
8694 * config/pa/tm-pro.h: Obsolete file.
8695 * config/pa/hppaosf.mt: Obsolete file.
8696 * config/pa/hppaosf.mh: Obsolete file.
8697 * config/pa/hppapro.mt: Obsolete file.
8698 * config/pa/hppabsd.mt: Obsolete file.
8699 * config/pa/hppabsd.mh: Obsolete file.
8700 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8701 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8702 hppa*-*-osf*.
8703
5873a88d
AC
87042003-03-27 Andrew Cagney <cagney@redhat.com>
8705
8706 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8707 push_arguments. Don't set push_return_address or write_sp.
8708 (d10v_push_dummy_call): Replace d10v_push_arguments.
8709 (d10v_push_return_address, d10v_write_sp): Delete function,
8710 handled by push_dummy_call.
8711
b81774d8
AC
87122003-03-26 Andrew Cagney <cagney@redhat.com>
8713
8714 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8715 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8716 regcache and dummy_addr parameters.
8717 * gdbarch.h, gdbarch.c: Re-generate.
8718 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8719 available; assume it will handle stack alignment and return
8720 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8721 legacy_push_arguments.
8722 (legacy_push_arguments): Rename default_push_arguments.
8723 * value.h (legacy_push_arguments): Rename default_push_arguments.
8724 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8725 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8726 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8727 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8728 * config/i386/tm-symmetry.h: Update.
8729 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8730 * x86-64-tdep.c (x86_64_init_abi): Update.
8731 * v850-tdep.c (v850_gdbarch_init): Update.
8732 * sparc-tdep.c (sparc_gdbarch_init): Update.
8733 * sh-tdep.c (sh_gdbarch_init): Update.
8734 * s390-tdep.c (s390_gdbarch_init): Update.
8735 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8736 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8737 * mips-tdep.c (mips_gdbarch_init): Update.
8738 * mcore-tdep.c (mcore_gdbarch_init): Update.
8739 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8740 * ia64-tdep.c (ia64_gdbarch_init): Update.
8741 * i386-tdep.c (i386_gdbarch_init): Update.
8742 * hppa-tdep.c (hppa_gdbarch_init): Update.
8743 * h8300-tdep.c (h8300_gdbarch_init): Update.
8744 * frv-tdep.c (frv_gdbarch_init): Update.
8745 * d10v-tdep.c (d10v_gdbarch_init): Update.
8746 * cris-tdep.c (cris_gdbarch_init): Update.
8747 * avr-tdep.c (avr_gdbarch_init): Update.
8748 * arm-tdep.c (arm_gdbarch_init): Update.
8749 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8750 * alpha-tdep.c (alpha_gdbarch_init): Update.
8751
f541410f
DJ
87522003-03-26 Daniel Jacobowitz <drow@mvista.com>
8753
8754 * signals/signals.c (do_target_signal_to_host): Correct realtime
8755 signal range test.
8756
69f567ae
DJ
87572003-03-26 Daniel Jacobowitz <drow@mvista.com>
8758
8759 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8760 (struct sal_chain, map_catch_names): Remove.
8761 (catch_exception_command_1): Don't call
8762 handle_gnu_4_16_catch_command.
8763
d5d14a5a
DJ
87642003-03-26 Daniel Jacobowitz <drow@mvista.com>
8765
8766 From Mark Dettinger <dettinge@de.ibm.com>:
8767 * dwarf2cfi.c (read_2u): Increment pointer by two.
8768
bdd73e22
DJ
87692003-03-26 Daniel Jacobowitz <drow@mvista.com>
8770
8771 * signals/signals.c: Fix typos in last change.
8772
960cb555
DJ
87732003-03-26 Daniel Jacobowitz <drow@mvista.com>
8774
8775 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8776 not already defined. Use __SIGRTMIN if available.
8777 (target_signal_from_host): Remove SIGRTMIN block.
8778 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8779 the signal is within the realtime range.
8780
f636b87d
AF
87812003-03-25 Adam Fedor <fedor@gnu.org>
8782
8783 * Makefile.in (infrun.o): Add $(language_h)
8784 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8785 for language specific trampolines.
8786 * language.h (struct language_defn): Add skip_trampoline.
8787 (skip_language_trampoline): Declare.
8788 * language.c (unk_lang_trampoline, skip_language_trampoline):
8789 New functions.
8790 (unknown_language_defn, auto_language_defn, local_language_defn):
8791 Add ukn_lang_trampoline.
8792 * ada-lang.c (ada_language_defn): Add NULL for language
8793 specific skip_trampoline.
8794 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8795 scm-lang.c: Likewise.
8796 * objc-lang.c (objc_skip_trampoline): New function.
8797 (objc_language_defn): Add objc_skip_trampoline.
8798
28f617b3 87992003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
8800
8801 * frame.c (get_prev_frame): Delay validating a frame's ID -
8802 non-NULL, didn't go backwards - until an attempt to unwind it to
8803 the previous frame.
8804
f933a9c5
AC
88052003-03-25 Andrew Cagney <cagney@redhat.com>
8806
8807 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8808 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8809 * gdbarch.h, gdbarch.c: Re-generate.
8810 * config/sparc/tm-sparc.h
8811 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8812 * sparc-tdep.c (sparc_gdbarch_init): Set
8813 deprecated_extra_stack_alignment_needed.
8814 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8815 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8816 extra_stack_alignment_needed.
8817 * v850-tdep.c (v850_gdbarch_init): Ditto.
8818 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8819 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8820 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8821 * cris-tdep.c (cris_gdbarch_init): Ditto.
8822 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8823 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8824
4183d812
AC
88252003-03-25 Andrew Cagney <cagney@redhat.com>
8826
8827 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8828 STORE_STRUCT_RETURN.
8829 * gdbarch.h, gdbarch.c: Regenerate.
8830 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8831 (d10v_push_arguments): Set the struct return register.
8832 (d10v_gdbarch_init): Update.
8833 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8834 * x86-64-tdep.c (x86_64_init_abi): Update.
8835 * vax-tdep.c (vax_gdbarch_init): Update.
8836 * v850-tdep.c (v850_gdbarch_init): Update.
8837 * sparc-tdep.c (sparc_gdbarch_init): Update.
8838 * sh-tdep.c (sh_gdbarch_init): Update.
8839 * s390-tdep.c (s390_gdbarch_init): Update.
8840 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8841 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8842 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8843 * mips-tdep.c (mips_gdbarch_init): Update.
8844 * mcore-tdep.c (mcore_gdbarch_init): Update.
8845 * m68k-tdep.c (m68k_gdbarch_init): Update.
8846 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8847 * ia64-tdep.c (ia64_gdbarch_init): Update.
8848 * i386-tdep.c (i386_gdbarch_init): Update.
8849 * hppa-tdep.c (hppa_gdbarch_init): Update.
8850 * h8300-tdep.c (h8300_gdbarch_init): Update.
8851 * frv-tdep.c (frv_gdbarch_init): Update.
8852 * cris-tdep.c (cris_gdbarch_init): Update.
8853 * avr-tdep.c (avr_gdbarch_init): Update.
8854 * arm-tdep.c (arm_gdbarch_init): Update.
8855 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8856
1bf6d5cc
AC
88572003-03-25 Andrew Cagney <cagney@redhat.com>
8858
8859 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8860 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8861 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8862 * gdbarch.h, gdbarch.c: Regenerate.
8863 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8864 call_dummy_stack_adjust_p.
8865 * vax-tdep.c (vax_gdbarch_init): Ditto.
8866 * v850-tdep.c (v850_gdbarch_init): Ditto.
8867 * sh-tdep.c (sh_gdbarch_init): Ditto.
8868 * s390-tdep.c (s390_gdbarch_init): Ditto.
8869 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8870 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8871 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8872 * mips-tdep.c (mips_gdbarch_init): Ditto.
8873 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8874 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8875 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8876 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8877 * i386-tdep.c (i386_gdbarch_init): Ditto.
8878 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8879 * frv-tdep.c (frv_gdbarch_init): Ditto.
8880 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8881 * cris-tdep.c (cris_gdbarch_init): Ditto.
8882 * avr-tdep.c (avr_gdbarch_init): Ditto.
8883 * arm-tdep.c (arm_gdbarch_init): Ditto.
8884 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8885 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8886 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8887 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8888 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8889 call_dummy_stack_adjust_p.
8890 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8891 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8892 * sparc-tdep.c (sparc32_push_arguments): Update.
8893 * valops.c (hand_function_call): Update.
8894
71c08af0
CV
88952003-03-25 Corinna Vinschen <vinschen@redhat.com>
8896
8897 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8898 set_gdbarch_char_signed.
8899
30757f90
RE
89002003-03-25 Richard Earnshaw <rearnsha@arm.com>
8901
8902 PR cli/548
8903 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8904
03d48a7d
RE
89052003-03-25 Richard Earnshaw <rearnsha@arm.com>
8906
8907 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8908 (_initialize_arm_tdep): Don't set tm_print_insn.
8909
2cf6873c
AF
89102003-03-24 Adam Fedor <fedor@gnu.org>
8911
8912 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8913 * objc-lang.h: Add multiple inclusion protection.
8914 (start_msglist, add_msglist, end_msglist): Additional declarations.
8915
17c0759e
RE
89162003-03-24 Richard Earnshaw <rearnsha@arm.com>
8917
8918 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8919 value was renamed to ARM_FLOAT_SOFT_FPA.
8920
618ce49f
AC
89212003-03-23 Andrew Cagney <cagney@redhat.com>
8922
8923 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8924 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8925 * gdbarch.h, gdbarch.c: Regenerate.
8926 * valops.c (hand_function_call): Update.
8927 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8928 * frame.c (legacy_saved_regs_this_id): Update.
8929 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8930 * dummy-frame.h: Update.
8931 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8932 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8933 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8934 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8935 * config/m68k/tm-sun3.h: Update.
8936 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8937 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8938 * x86-64-tdep.c (x86_64_init_abi): Update.
8939 * vax-tdep.c (vax_gdbarch_init): Update.
8940 * v850-tdep.c (v850_gdbarch_init): Update.
8941 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8942 * sh-tdep.c (sh_gdbarch_init): Update.
8943 * s390-tdep.c (s390_gdbarch_init): Update.
8944 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8945 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8946 (frame_get_saved_regs): Update.
8947 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8948 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8949 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8950 * mips-tdep.c (mips_gdbarch_init): Update.
8951 * mcore-tdep.c (mcore_gdbarch_init): Update.
8952 * m68k-tdep.c (m68k_gdbarch_init): Update.
8953 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8954 * ia64-tdep.c (ia64_gdbarch_init): Update.
8955 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8956 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8957 (i386_interix_back_one_frame): Update.
8958 * hppa-tdep.c (hppa_gdbarch_init): Update.
8959 (hppa_init_extra_frame_info): Update.
8960 * h8300-tdep.c (h8300_gdbarch_init): Update.
8961 * frv-tdep.c (frv_gdbarch_init): Update.
8962 * cris-tdep.c (cris_gdbarch_init): Update.
8963 * avr-tdep.c (avr_gdbarch_init): Update.
8964 * arm-tdep.c (arm_gdbarch_init): Update.
8965 * alpha-tdep.c (alpha_gdbarch_init): Update.
8966
fd50bc42
RE
89672003-03-22 Richard Earnshaw <rearnsha@arm.com>
8968
8969 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8970 (arm_get_fp_model): Declare.
8971 * arm-tdep.c (fp_model_strings): New string array.
8972 (arm_fp_model, current_fp_model): New variables.
8973 (arm_get_fp_model): New function.
8974 (arm_set_fp): New function.
8975 (set_fp_model_sfunc): New function.
8976 (show_fp_model): New function.
8977 (_initialize_arm_tdep): Add new command to set/show the FPU.
8978 (arm_extract_return_value): Use arm_get_fp_model.
8979 (arm_store_return_value): Likewise.
8980 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8981 to initialize the floating-point data types.
8982 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8983 model is FPA.
8984
26304000
RE
89852003-03-22 Richard Earnshaw <rearnsha@arm.com>
8986
8987 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8988 the current setting of each value.
8989 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8990 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8991 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8992 commands and add new version as subcommands of "set/show arm".
8993
afd7eef0
RE
89942003-03-22 Richard Earnshaw <rearnsha@arm.com>
8995
8996 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8997 (set_arm_command, show_arm_command): New functions.
8998 (_initialize_arm_tdep): Add them.
8999 (num_disassembly_options): Renamed from num_flavor_options.
9000 (valid_disassembly_styles): Renamed from valid_flavors.
9001 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9002 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9003 set_disassembly_flavor_sfunc.
9004 (set_disassembly_style): Renamed from set_disassembly_flavor.
9005 (arm_othernames): Updated.
9006 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9007 command. Add "set/show arm disassembly" commands. Deprecate
9008 "othernames" command.
9009
299a7944
RE
90102003-03-22 Richard Earnshaw <rearnsha@arm.com>
9011
9012 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9013 (arm-tdep.o): Depend on elf_arm_h.
9014
c1dac9e6
RE
90152003-03-22 Richard Earnshaw <rearnsha@arm.com>
9016
9017 * Makefile.in (coff_internal_h): Define.
9018 (arm-tdep.o): Update dependencies.
9019
2702d96c
RE
90202003-03-22 Richard Earnshaw <rearnsha@arm.com>
9021
9022 * arm-tdep.c (prologue_cache): Delete.
9023 (check_prologue_cache, save_prologue_cache): Delete.
9024 (arm_scan_prologue): Don't check or update the prologue_cache.
9025 (arm_gdb_arch_init): Don't initialize it.
9026 (_initialize_arm_tdep): Likewise.
9027
27d5d74b
SC
90282003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9029
9030 * MAINTAINERS (tui): Maintainer of tui code.
9031
1762d96d
CV
90322003-03-21 Corinna Vinschen <vinschen@redhat.com>
9033
9034 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9035 (i386-cygwin-tdep.o): Add dependencies.
9036 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9037 * i386-cygwin-tdep.c: New file.
9038 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9039 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9040
4c2e2391
AC
90412003-03-20 Andrew Cagney <cagney@redhat.com>
9042
f20d38b7
AC
9043 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9044 (handle_inferior_event): Remove code calling
9045 DYNAMIC_TRAMPOLINE_NEXTPC.
9046
0022b738
AC
9047 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9048 already has a full path.
9049
864dbc90
AC
9050 * main.c (gdb_main): Return 1.
9051 (captured_main): Call error to report an invalid interpreter.
9052
4c2e2391
AC
9053 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9054 * alpha-osf1-tdep.c: Include "gdb_string.h".
9055
5ef7553b
JB
90562003-03-19 J. Brobecker <brobecker@gnat.com>
9057
9058 Continuing work to convert the hppa targets to multiarch partial.
9059
9060 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9061 method, now that hppa_push_dummy_frame has a conformant prototype.
9062 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9063 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9064 for the switch to multiarch partial.
9065
7bde8967
KB
90662003-03-19 Kevin Buettner <kevinb@redhat.com>
9067
9068 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9069 when iss is issNull.
9070
b006a9e9
KB
90712003-03-18 Kevin Buettner <kevinb@redhat.com>
9072
9073 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9074 NUM_REGS bounds check.
9075
5e2e9765
KB
90762003-03-18 Kevin Buettner <kevinb@redhat.com>
9077
9078 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9079 * mips-tdep.c (gdb_assert.h): Include.
9080 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9081 (mips_register_name): Handle integer registers explicitly. Add
9082 bounds checking.
9083 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9084 (mips_lsi33k_reg_names): Don't list integer registers; they're
9085 handled by mips_register_name() now.
9086 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9087 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9088 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9089 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9090 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9091
a2867626
AC
90922003-03-18 Andrew Cagney <cagney@redhat.com>
9093
9094 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9095 a void pointer.
9096 * gdbtypes.h (print_scalar_formatted): Update declaration.
9097 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9098
06600e06
JB
90992003-03-18 J. Brobecker <brobecker@gnat.com>
9100
9101 * infrun.c (observer.h): Add #include.
9102 (normal_stop): Add call to observer_notify_normal_stop.
9103 * Makefile.in (infrun.o): Add dependency on observer.h.
9104
7daf4f5b
JB
91052003-03-18 J. Brobecker <brobecker@gnat.com>
9106
9107 Continuing work to convert the hppa targets to multiarch partial.
9108 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9109 parameter. Reformat comment.
9110 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9111 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9112 to match new profile.
9113
3371ccc0
JB
91142003-03-18 J. Brobecker <brobecker@gnat.com>
9115
9116 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9117 appear to be working in any case.
9118
4fbe891e
JB
91192003-03-18 J. Brobecker <brobecker@gnat.com>
9120
9121 * observer.c (observer_test_first_observer): New static variable.
9122 (observer_test_second_observer): Likewise.
9123 (observer_test_third_observer): Likewise.
9124 (observer_test_first_notification_function): New static function.
9125 (observer_test_second_notification_function): Likewise.
9126 (observer_test_third_notification_function): Likewise.
9127
a7ff40e7
JB
91282003-03-17 J. Brobecker <brobecker@gnat.com>
9129
9130 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9131 * somsolib.c (gdb_assert.h): Likewise.
9132 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9133 (somsolib.o): Likewise.
9134
26ca4152
AC
91352003-03-17 Andrew Cagney <cagney@redhat.com>
9136
9137 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9138 BFD. Simplify setting of di.endian.
9139
0a613259
AC
91402003-03-17 Andrew Cagney <cagney@redhat.com>
9141
9142 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9143 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9144
9145 From Elena Zannoni <ezannoni@redhat.com>
9146 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9147 vector and floating-point parameters.
9148 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9149 convention.
9150 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9151
1132738f
FN
91522003-03-17 Fernando Nasser <fnasser@redhat.com>
9153
9154 * MAINTAINERS: Remove my name from several maintainership roles.
9155
6dc42492
AC
91562003-03-17 Andrew Cagney <cagney@redhat.com>
9157
9158 Fix frame off-by-one bug.
9159 * frame-unwind.h (frame_this_id_ftype): Replace
9160 frame_unwind_id_ftype.
9161 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9162 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9163 with "prev_register".
9164 * frame-unwind.c (frame_unwind_find_by_pc): Return
9165 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9166 comment.
9167 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9168 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9169 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9170 (dummy_frame_unwind): Update.
9171 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9172 sentinel_frame_register_unwind.
9173 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9174 (sentinel_frame_unwinder): Update.
9175 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9176 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9177 * frame.c (create_sentinel_frame): Update. Initialize
9178 "prologue_cache" instead of "unwind_cache".
9179 (frame_register_unwind): Call this frame's prev_register with the
9180 next frame and this frame's prologue cache.
9181 (get_prev_frame): Simplify. Always call prev frame's this_id with
9182 this frame and prev frame's prologue cache. Document that this
9183 call is shifted one to the left when compared to the
9184 frame_register_unwind call.
9185 (legacy_saved_regs_prev_register): Replace
9186 frame_saved_regs_register_unwind.
9187 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9188 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9189 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9190 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9191 (d10v_frame_unwind): Update.
9192 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9193 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9194 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9195 "saved_regs" with "this_saved_regs".
9196
efd710d6
AC
91972003-03-16 Andrew Cagney <cagney@redhat.com>
9198
9199 * frame.c (frame_pop): Don't call target_store_registers. Fix
9200 problem reported by Mark Kettenis.
9201
4e259f09
MK
92022003-03-16 Mark Kettenis <kettenis@gnu.org>
9203
9204 * i386-tdep.c (i386_register_type): Renamed from
9205 i386_register_virtual_type. Adjust function signature.
9206 (i386_gdbarch_init): Set register_type instead of
9207 deprecated_max_register_raw_size,
9208 deprecated_max_register_virtual_size and register_virtual_type.
9209
055bb976
AC
92102003-03-14 Andrew Cagney <cagney@redhat.com>
9211
9212 * frame.c (get_prev_frame): When a legacy frame, always call
9213 legacy_get_prev_frame. Simplify unwind code using assumption that
9214 the unwinder is new.
9215 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9216 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9217 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9218
ac2adee5
AC
92192003-03-14 Andrew Cagney <cagney@redhat.com>
9220
9221 * frame.c (get_saved_register): Delete function.
9222 * frame.h (get_saved_register): Delete declaration.
9223 * xstormy16-tdep.c: Update comment.
9224 * regcache.h: Update comments.
9225 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9226 get_saved_register and extract_address, use
9227 frame_read_unsigned_register.
9228 (sparc_frame_saved_pc): Ditto.
9229 (sparc_get_saved_register): Instead of get_saved_register, use
9230 frame_register.
9231 (sparc_pop_frame): Ditto.
9232 * findvar.c: Update comments.
9233 (value_of_register): Call frame_register instead of
9234 get_saved_register.
9235 (value_from_register): Ditto.
9236 * config/sparc/tm-sparc.h: Update comment.
9237 * breakpoint.c: Update comment.
9238
129c1cd6
AC
92392003-03-14 Andrew Cagney <cagney@redhat.com>
9240
9241 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9242 GET_SAVED_REGISTER.
9243 * gdbarch.h, gdbarch.c: Re-generate.
9244 * frame.h: Update comments.
9245 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9246 * x86-64-tdep.c (x86_64_init_abi): Update.
9247 * sparc-tdep.c (sparc_gdbarch_init): Update.
9248 * sh-tdep.c (sh_gdbarch_init): Update.
9249 * mips-tdep.c (mips_gdbarch_init): Update.
9250 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9251 * cris-tdep.c (cris_gdbarch_init): Update.
9252 * ia64-tdep.c (ia64_gdbarch_init): Update.
9253 * frame.c (frame_register): Update.
9254 (get_saved_register): Update.
9255 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9256
749b82f6
AC
92572003-03-13 Andrew Cagney <cagney@redhat.com>
9258
9259 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9260 * gdbarch.h, gdbarch.c: Regenerate.
9261 * valops.c (hand_function_call): Update comment.
9262 * stack.c (return_command): Update comment.
9263 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9264 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9265 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9266 * x86-64-tdep.c (x86_64_init_abi): Update.
9267 * vax-tdep.c (vax_gdbarch_init): Update.
9268 * v850-tdep.c (v850_gdbarch_init): Update.
9269 * sparc-tdep.c (sparc_gdbarch_init): Update.
9270 * sh-tdep.c (sh_gdbarch_init): Update.
9271 * s390-tdep.c (s390_gdbarch_init): Update.
9272 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9273 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9274 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9275 * mips-tdep.c (mips_gdbarch_init): Update.
9276 * mcore-tdep.c (mcore_gdbarch_init): Update.
9277 * m68k-tdep.c (m68k_gdbarch_init): Update.
9278 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9279 * ia64-tdep.c (ia64_gdbarch_init): Update.
9280 * i386-tdep.c (i386_gdbarch_init): Update.
9281 * hppa-tdep.c (hppa_gdbarch_init): Update.
9282 * h8300-tdep.c (h8300_gdbarch_init): Update.
9283 * frv-tdep.c (frv_gdbarch_init): Update.
9284 * cris-tdep.c (cris_gdbarch_init): Update.
9285 * avr-tdep.c (avr_gdbarch_init): Update.
9286 * arm-tdep.c (arm_gdbarch_init): Update.
9287 * alpha-tdep.c (alpha_gdbarch_init): Update.
9288
1594fa56
AC
92892003-03-13 Andrew Cagney <cagney@redhat.com>
9290
9291 * frame.c (legacy_frame_p): New function.
9292 (get_prev_frame): Use legacy_frame_p.
9293 * frame.h (legacy_frame_p): Declare.
9294
7717fda3
V
92952003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9296
fbe586ae 9297 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9298 listing corrected.
9299
0c67cbe9
V
93002003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9301
fbe586ae 9302 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9303
03febf99
AC
93042003-03-12 Andrew Cagney <cagney@redhat.com>
9305
9306 * frame.c (get_prev_frame): Rename the frame parameter to
9307 "this_frame".
9308 (get_next_frame, legacy_get_prev_frame): Ditto.
9309
0a1e1ca1
AC
93102003-03-12 Andrew Cagney <cagney@redhat.com>
9311
9312 * frame.c (get_current_frame): Check target_has_registers before
9313 checking target_has_stack.
9314 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9315 instead of deprecated_selected_frame.
9316 * findvar.c (value_of_register): Pass "frame", not
9317 deprecated_selected_frame, to value_of_builtin_reg.
9318
a66a9c23
AC
93192003-03-12 Andrew Cagney <cagney@redhat.com>
9320
9321 * regcache.c (regcache_cooked_write_signed): New function.
9322 (regcache_cooked_write_unsigned): New function.
9323 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9324 (regcache_cooked_read_signed): Fix regnum in range assertion.
9325 * regcache.h (regcache_cooked_write_signed): Declare.
9326 (regcache_cooked_write_unsigned): Declare.
9327
8bedc050
AC
93282003-03-12 Andrew Cagney <cagney@redhat.com>
9329
9330 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9331 * gdbarch.h, gdbarch.c: Re-generate.
9332 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9333 * x86-64-tdep.h: Update.
9334 * x86-64-tdep.c (x86_64_init_abi): Update.
9335 * v850-tdep.c (v850_gdbarch_init): Update.
9336 * sparc-tdep.c (sparc_gdbarch_init): Update.
9337 * sh-tdep.c (sh_gdbarch_init): Update.
9338 * s390-tdep.c (s390_gdbarch_init): Update.
9339 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9340 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9341 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9342 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9343 * mips-tdep.c (mips_gdbarch_init): Update.
9344 * mcore-tdep.c (mcore_gdbarch_init): Update.
9345 * m68k-tdep.c (m68k_gdbarch_init): Update.
9346 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9347 * ia64-tdep.c (ia64_gdbarch_init): Update.
9348 * i386-tdep.c (i386_gdbarch_init): Update.
9349 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9350 * hppa-tdep.c (hppa_gdbarch_init): Update.
9351 * h8300-tdep.c (h8300_gdbarch_init): Update.
9352 * frv-tdep.c (frv_gdbarch_init): Update.
9353 * cris-tdep.c (cris_gdbarch_init): Update.
9354 * avr-tdep.c (avr_gdbarch_init): Update.
9355 * arm-tdep.c (arm_gdbarch_init): Update.
9356 * alpha-tdep.c (alpha_gdbarch_init): Update.
9357 * sh-tdep.c (sh_init_extra_frame_info): Update.
9358 (sh64_init_extra_frame_info): Update.
9359 * ns32knbsd-nat.c (frame_num_args): Update.
9360 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9361 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9362 (xstormy16_frame_chain_valid): Update.
9363 * vax-tdep.c (vax_saved_pc_after_call): Update.
9364 * v850-tdep.c (v850_frame_chain): Update.
9365 (v850_pop_frame): Update.
9366 (v850_init_extra_frame_info): Update.
9367 * sparc-tdep.c (setup_arbitrary_frame): Update.
9368 * ns32k-tdep.c (umax_frame_num_args): Update.
9369 * s390-tdep.c (s390_pop_frame_regular): Update.
9370 * mn10300-tdep.c (mn10300_frame_chain): Update.
9371 (mn10300_pop_frame_regular): Update.
9372 (mn10300_init_extra_frame_info): Update.
9373 * mips-tdep.c (mips_init_frame_pc_first): Update.
9374 (mips_frame_chain): Update.
9375 (mips_pop_frame): Update.
9376 * mcore-tdep.c (mcore_frame_chain): Update.
9377 (mcore_pop_frame): Update.
9378 (mcore_init_extra_frame_info): Update.
9379 * arch-utils.c (init_frame_pc_default): Update.
9380 * m68k-tdep.c (isi_frame_num_args): Update.
9381 (delta68_frame_num_args): Update.
9382 (news_frame_num_args): Update.
9383 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9384 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9385 (alpha_frame_chain): Update.
9386 (alpha_pop_frame): Update.
9387 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9388 (hppa_init_extra_frame_info): Update.
9389 (hppa_frame_chain): Update.
9390 (hppa_frame_chain_valid): Update.
9391 * cris-tdep.c (cris_init_extra_frame_info): Update.
9392 * avr-tdep.c (avr_init_extra_frame_info): Update.
9393 * arm-tdep.c (arm_frame_chain_valid): Update.
9394 (arm_init_extra_frame_info): Update.
9395 (arm_pop_frame): Update.
9396 * frame.c (frame_pc_unwind): Update.
9397 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9398 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9399 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9400 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9401 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9402 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9403
7a25a7c1
AC
94042003-03-12 Andrew Cagney <cagney@redhat.com>
9405
9406 Eliminate the need for POP_FRAME.
9407 * frame.c (do_frame_unwind_register): New function.
9408 (frame_pop): When no POP_FRAME, pop the frame using register
9409 unwind and a scratch regcache.
9410 (frame_saved_regs_pop): Delete function.
9411 (trad_frame_unwinder): Update.
9412 * d10v-tdep.c (d10v_frame_pop): Delete function.
9413 (d10v_frame_unwind): Update.
9414 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9415 (sentinel_frame_unwinder): Update.
9416 * dummy-frame.c (dummy_frame_pop): Delete function.
9417 (dummy_frame_unwind): Update.
9418 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9419 (struct frame_unwind): Update.
9420
2f38ef89
KB
94212003-03-11 Kevin Buettner <kevinb@redhat.com>
9422
9423 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9424 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9425 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9426 Do range checks on register number obtained from debugging info.
9427 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9428 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9429 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9430 mapping function.
9431 (do_fp_register_row): Fix typo which caused double type to be
9432 used when attempting to unpack a float.
9433
552f4abf
JB
94342003-03-11 J. Brobecker <brobecker@gnat.com>
9435
9436 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9437
e0d2ae16
AC
94382003-03-11 Andrew Cagney <cagney@redhat.com>
9439
9440 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9441 frame. Problem found by Corinna Vinschen.
9442
ddbfdd06
PM
94432003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9444
9445 * doublest.c (floatformat_from_length): Accept also
9446 the real size of 'long double' type.
9447
088b2ddc 94482003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9449
088b2ddc 9450 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9451 * breakpoint.c (bpstat_copy): Copy the command lines as well
9452 as the old value, to match what is freed in bpstat_clear.
9453
f56f77c1
DC
94542003-03-10 David Carlton <carlton@math.stanford.edu>
9455
9456 * minsyms.c (add_minsym_to_hash_table): Replace
9457 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9458 (compare_minimal_symbols, compact_minimal_symbols)
9459 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9460 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9461 of DEPRECATED_SYMBOL_MATCHES_NAME.
9462 (lookup_minimal_symbol_solib_trampoline): Ditto.
9463
5602984a
AC
94642003-03-10 Andrew Cagney <cagney@redhat.com>
9465
9466 * regcache.h (regcache_cooked_read_ftype): Define.
9467 (regcache_save, regcache_restore): Add a cooked_read parameter.
9468 * regcache.c (regcache_save, regcache_restore): Update.
9469 (do_cooked_read): New function.
9470 (regcache_cpy): Pass do_cooked_read to regcache_save and
9471 regcache_restore.
9472
8bedc050
AC
94732003-03-10 Andrew Cagney <cagney@redhat.com>
9474
9475 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9476 * gdbarch.h, gdbarch.c: Re-generate.
9477 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9478 * x86-64-tdep.h: Update.
9479 * x86-64-tdep.c (x86_64_init_abi): Update.
9480 * v850-tdep.c (v850_gdbarch_init): Update.
9481 * sparc-tdep.c (sparc_gdbarch_init): Update.
9482 * sh-tdep.c (sh_gdbarch_init): Update.
9483 * s390-tdep.c (s390_gdbarch_init): Update.
9484 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9485 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9486 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9487 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9488 * mips-tdep.c (mips_gdbarch_init): Update.
9489 * mcore-tdep.c (mcore_gdbarch_init): Update.
9490 * m68k-tdep.c (m68k_gdbarch_init): Update.
9491 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9492 * ia64-tdep.c (ia64_gdbarch_init): Update.
9493 * i386-tdep.c (i386_gdbarch_init): Update.
9494 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9495 * hppa-tdep.c (hppa_gdbarch_init): Update.
9496 * h8300-tdep.c (h8300_gdbarch_init): Update.
9497 * frv-tdep.c (frv_gdbarch_init): Update.
9498 * cris-tdep.c (cris_gdbarch_init): Update.
9499 * avr-tdep.c (avr_gdbarch_init): Update.
9500 * arm-tdep.c (arm_gdbarch_init): Update.
9501 * alpha-tdep.c (alpha_gdbarch_init): Update.
9502 * sh-tdep.c (sh_init_extra_frame_info): Update.
9503 (sh64_init_extra_frame_info): Update.
9504 * ns32knbsd-nat.c (frame_num_args): Update.
9505 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9506 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9507 (xstormy16_frame_chain_valid): Update.
9508 * vax-tdep.c (vax_saved_pc_after_call): Update.
9509 * v850-tdep.c (v850_frame_chain): Update.
9510 (v850_pop_frame): Update.
9511 (v850_init_extra_frame_info): Update.
9512 * sparc-tdep.c (setup_arbitrary_frame): Update.
9513 * ns32k-tdep.c (umax_frame_num_args): Update.
9514 * s390-tdep.c (s390_pop_frame_regular): Update.
9515 * mn10300-tdep.c (mn10300_frame_chain): Update.
9516 (mn10300_pop_frame_regular): Update.
9517 (mn10300_init_extra_frame_info): Update.
9518 * mips-tdep.c (mips_init_frame_pc_first): Update.
9519 (mips_frame_chain): Update.
9520 (mips_pop_frame): Update.
9521 * mcore-tdep.c (mcore_frame_chain): Update.
9522 (mcore_pop_frame): Update.
9523 (mcore_init_extra_frame_info): Update.
9524 * arch-utils.c (init_frame_pc_default): Update.
9525 * m68k-tdep.c (isi_frame_num_args): Update.
9526 (delta68_frame_num_args): Update.
9527 (news_frame_num_args): Update.
9528 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9529 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9530 (alpha_frame_chain): Update.
9531 (alpha_pop_frame): Update.
9532 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9533 (hppa_init_extra_frame_info): Update.
9534 (hppa_frame_chain): Update.
9535 (hppa_frame_chain_valid): Update.
9536 * cris-tdep.c (cris_init_extra_frame_info): Update.
9537 * avr-tdep.c (avr_init_extra_frame_info): Update.
9538 * arm-tdep.c (arm_frame_chain_valid): Update.
9539 (arm_init_extra_frame_info): Update.
9540 (arm_pop_frame): Update.
9541 * frame.c (frame_pc_unwind): Update.
9542 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9543 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9544 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9545 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9546 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9547 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9548
12cc2063
AC
95492003-03-10 Andrew Cagney <cagney@redhat.com>
9550
9551 * gdbarch.sh (gdbarch_unwind_pc): New method.
9552 * gdbarch.h, gdbarch.c: Regenerate.
9553 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9554 but use read_pc and FRAME_SAVED_PC as fall backs.
9555 (frame_saved_regs_pc_unwind): Delete function.
9556 (trad_frame_unwinder): Update.
9557 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9558 (struct frame_unwind): Update.
9559 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9560 (dummy_frame_unwind): Update.
9561 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9562 (sentinel_frame_unwinder): Update.
9563 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9564 (d10v_frame_unwind): Update.
9565 (d10v_unwind_pc): New function.
9566 (d10v_gdbarch_init): Set unwind_pc.
9567
ef840a37
AC
95682003-03-10 Andrew Cagney <cagney@redhat.com>
9569
a2ce2e56
AC
9570 * gdbarch.h: Re-generate.
9571
ef840a37
AC
9572 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9573 PC.
9574 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9575 the PC register.
9576
08f3424b
MK
95772003-03-08 Mark Kettenis <kettenis@gnu.org>
9578
9579 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9580
1248ede2
AC
95812003-03-08 Andrew Cagney <cagney@redhat.com>
9582
9583 * cli-out.c: Update copyright.
9584 (cli_out_data): Define typedef. Use instead of ui_out_data.
9585
f49bacc8
AC
95862003-03-08 Andrew Cagney <cagney@redhat.com>
9587
9588 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9589 the result.
9590
9b05f993
AC
95912003-03-07 Andrew Cagney <cagney@redhat.com>
9592
9593 * gdbarch.sh: Don't generate two macro definitions when an
9594 undefined macro taking no arguments.
9595 * gdbarch.h: Regenerate.
8ffd9b1b 9596
166f4c7b
ML
95972002-03-07 Michal Ludvig <mludvig@suse.cz>
9598
9599 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9600 (x86_64_unwind_dummy_id): New functions.
9601 (x86_64_init_abi): Register these two new functions.
9602
6d686a84
ML
96032003-03-07 Michal Ludvig <mludvig@suse.cz>
9604
9605 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 9606 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
9607 separate function.
9608 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9609
6314f104
AC
96102003-03-05 Andrew Cagney <cagney@redhat.com>
9611
9612 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9613 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9614 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9615 to use unwind_dummy_id when a dummy frame.
9616 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9617 predicate.
9618 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9619
ceea5145
AC
96202003-03-05 Andrew Cagney <cagney@redhat.com>
9621
9622 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9623 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9624 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9625 values.
9626
0d843116
AC
96272003-03-05 Andrew Cagney <cagney@redhat.com>
9628
9629 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9630 (struct d10v_unwind_cache): Delete field "frameless". Replace
9631 "next_addr" with "sp_offset". Add "r11_offset".
9632 (d10v_frame_unwind_cache): Update.
9633 (prologue_find_regs): Update. When "mv r11, sp", save the
9634 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9635 RN was saved in r11_offset.
9636
b2579786
AC
96372003-03-05 Andrew Cagney <cagney@redhat.com>
9638
9639 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9640 cached PC value in the next frame.
9641
218e5956
AC
96422003-03-05 Andrew Cagney <cagney@redhat.com>
9643
9644 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9645 "id_unwind_cache" with "id".
9646 (frame_id_unwind): Delete declaration.
9647 * frame.c (frame_id_unwind): Delete function.
9648 (get_prev_frame): Call the frame id unwind method directly. Store
9649 the returned next frame's ID value in NEXT_FRAME. Note that there
9650 is a problem with the wrong unwind ID being called with the wrong
9651 unwind cache.
9652
ed363b1b
DJ
96532003-03-05 Daniel Jacobowitz <drow@mvista.com>
9654
9655 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9656
fe1f4a5e
DJ
96572003-03-05 James Ingham <jingham@apple.com>
9658 Daniel Jacobowitz <drow@mvista.com>
9659
9660 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9661 (auto_cp_abi): New variable.
9662 (current_cp_abi, num_cp_abis): Make static.
9663 (CP_ABI_MAX): Define.
9664 (cp_abis): Turn into an array.
9665 (value_virtual_fn_field): Fix formatting.
9666 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9667 takes a pointer.
9668 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9669 (list_cp_abis, _initialize_cp_abi): New functions.
9670 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9671 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9672 switch_to_cp_abi. Update prototype for register_cp_abi.
9673 * Makefile.in (cp-abi.o): Update dependencies.
9674 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9675 instead of switch_to_cp_abi.
9676 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9677 register_cp_abi.
9678 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9679 register_cp_abi.
9680 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9681
e4adbba9
DJ
96822003-03-05 Daniel Jacobowitz <drow@mvista.com>
9683
9684 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9685 * dwarf2loc.c: Include "regcache.h".
9686 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9687 register_size.
9688 * Makefile.in (dwarf2loc.o): Update dependencies.
9689
91ccbfc1
TR
96902003-03-04 Theodore A. Roth <troth@openavr.org>
9691
9692 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9693 number of io registers reported by remote target is not a multiple of
9694 step.
9695
3d4e8fd2
DC
96962003-03-04 David Carlton <carlton@math.stanford.edu>
9697
9698 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9699 (lookup_symbol_aux_psymtabs): Update call to
9700 lookup_partial_symbol.
9701 (lookup_transparent_type, find_main_psymtab)
9702 (make_symbol_overload_list): Ditto.
9703
ed42d87b
KH
97042003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9705
9706 * MAINTAINERS (Write after approval): Update my email address.
9707
a0ed5532
AC
97082003-03-03 Andrew Cagney <cagney@redhat.com>
9709
9710 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9711 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9712 predicate. Replace MAX_REGISTER_RAW_SIZE.
9713 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9714 MAX_REGISTER_VIRTUAL_SIZE.
9715 * regcache.c (legacy_max_register_raw_size): New function.
9716 (legacy_max_register_virtual_size): New function.
9717 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9718 (MAX_REGISTER_RAW_SIZE): Define.
9719 (legacy_max_register_raw_size): Declare.
9720 (legacy_max_register_virtual_size): Declare.
9721 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9722 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9723 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9724 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9725 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9726 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9727 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9728 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9729 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9730 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9731 * vax-tdep.c (vax_gdbarch_init): Update.
9732 * v850-tdep.c (v850_gdbarch_init): Update.
9733 * sparc-tdep.c (sparc_gdbarch_init): Update.
9734 * sh-tdep.c (sh_gdbarch_init): Update.
9735 * s390-tdep.c (s390_gdbarch_init): Update.
9736 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9737 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9738 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9739 * mips-tdep.c (mips_gdbarch_init): Update.
9740 * mcore-tdep.c (mcore_gdbarch_init): Update.
9741 * m68k-tdep.c (m68k_gdbarch_init): Update.
9742 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9743 * ia64-tdep.c (ia64_gdbarch_init): Update.
9744 * i386-tdep.c (i386_gdbarch_init): Update.
9745 * hppa-tdep.c (hppa_gdbarch_init): Update.
9746 * h8300-tdep.c (h8300_gdbarch_init): Update.
9747 * frv-tdep.c (frv_gdbarch_init): Update.
9748 * cris-tdep.c (cris_gdbarch_init): Update.
9749 * avr-tdep.c (avr_gdbarch_init): Update.
9750 * arm-tdep.c (arm_gdbarch_init): Update.
9751 * alpha-tdep.c (alpha_gdbarch_init): Update.
9752 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9753 max_register_raw_size or max_register_virtual_size.
9754
8e437497
DC
97552003-03-03 David Carlton <carlton@math.stanford.edu>
9756
9757 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9758 SYMBOL_MATCHES_NAME, add comment.
9759 (SYMBOL_MATCHES_NATURAL_NAME): New.
9760 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9761 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9762 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9763 * symtab.c (lookup_partial_symbol): Use
9764 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9765 unhelpful comment.
9766 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9767 SYMBOL_MATCHES_NAME.
9768 Fix for PR c++/33.
9769
25120b0d
DC
97702003-03-03 David Carlton <carlton@math.stanford.edu>
9771
9772 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9773 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9774 by regexp matching against SYMBOL_NATURAL_NAME.
9775
78a11fb4
DC
97762003-03-03 David Carlton <carlton@math.stanford.edu>
9777
9778 * linespec.c (find_method): Extract code into collect_methods.
9779 (collect_methods): New.
9780
645dd519
MK
97812003-03-02 Mark Kettenis <kettenis@gnu.org>
9782
b4700d91
MK
9783 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9784 get_frame_base.
9785
645dd519
MK
9786 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9787 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9788
0aa7e1aa
SC
97892003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9790
8ffd9b1b 9791 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9792 and not regnum when summing the size of all registers up to regnum.
9793
f30ee0bc
AC
97942003-03-01 Andrew Cagney <cagney@redhat.com>
9795
9796 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9797 FRAME_INIT_SAVED_REGS.
9798 * gdbarch.h, gdbarch.c: Regenerate.
9799 * stack.c (frame_info): Update.
9800 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9801 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9802 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9803 * ns32k-tdep.c (ns32k_pop_frame): Update.
9804 * mips-tdep.c (mips_pop_frame): Update.
9805 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9806 * ia64-tdep.c (ia64_frame_chain): Update.
9807 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9808 (ia64_frameless_function_invocation): Update.
9809 (ia64_init_extra_frame_info): Update.
9810 (ia64_pop_frame_regular): Update.
9811 * frame.h (struct frame_info): Update comment.
9812 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9813 * frame.c (frame_saved_regs_register_unwind): Update.
9814 (frame_saved_regs_register_unwind): Update.
9815 (deprecated_generic_get_saved_register): Update.
9816 * cris-tdep.c: Update comment.
9817 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9818 Rename macro.
9819 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9820 * x86-64-tdep.c (x86_64_init_abi): Update.
9821 * vax-tdep.c (vax_gdbarch_init): Update.
9822 * v850-tdep.c (v850_gdbarch_init): Update.
9823 * sparc-tdep.c (sparc_gdbarch_init): Update.
9824 * sh-tdep.c (sh_gdbarch_init): Update.
9825 * s390-tdep.c (s390_gdbarch_init): Update.
9826 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9827 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9828 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9829 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9830 * mips-tdep.c (mips_gdbarch_init): Update.
9831 * mcore-tdep.c (mcore_gdbarch_init): Update.
9832 * m68k-tdep.c (m68k_gdbarch_init): Update.
9833 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9834 * ia64-tdep.c (ia64_gdbarch_init): Update.
9835 * i386-tdep.c (i386_gdbarch_init): Update.
9836 * frv-tdep.c (frv_gdbarch_init): Update.
9837 * avr-tdep.c (avr_gdbarch_init): Update.
9838 * arm-tdep.c (arm_gdbarch_init): Update.
9839 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9840
42fa7c0f
AC
98412003-03-01 Andrew Cagney <cagney@redhat.com>
9842
9843 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9844 option enum and switch. When no windows, set the interpreter to
9845 INTERP_CONSOLE.
8ffd9b1b 9846
49c7e338
AC
98472003-03-01 Andrew Cagney <cagney@redhat.com>
9848
9849 * main.c (captured_main): Replace magic option characters with an
9850 enum.
9851
e9582e71
AC
98522003-03-01 Andrew Cagney <cagney@redhat.com>
9853
9854 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9855 INIT_EXTRA_FRAME_INFO.
9856 * gdbarch.h, gdbarch.c: Regenerate.
9857 * arm-tdep.c: Update comments.
9858 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9859 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9860 * frame.h, avr-tdep.c: Ditto.
9861 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9862 (create_new_frame, legacy_get_prev_frame): Ditto.
9863 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9864 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9865 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9866 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9867 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9868 * v850-tdep.c (v850_gdbarch_init): Ditto.
9869 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9870 * sh-tdep.c (sh_gdbarch_init): Ditto.
9871 * s390-tdep.c (s390_gdbarch_init): Ditto.
9872 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9873 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9874 * mips-tdep.c (mips_gdbarch_init): Ditto.
9875 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9876 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9877 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9878 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9879 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9880 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9881 * frv-tdep.c (frv_gdbarch_init): Ditto.
9882 * cris-tdep.c (cris_gdbarch_init): Ditto.
9883 * avr-tdep.c (avr_gdbarch_init): Ditto.
9884 * arm-tdep.c (arm_gdbarch_init): Ditto.
9885 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9886 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9887
35cac7cf
AC
98882003-03-01 Andrew Cagney <cagney@redhat.com>
9889
9890 * gdbarch.sh (register_type): New function with predicate.
9891 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9892 * gdbarch.h, gdbarch.c: Re-generate.
9893 * arch-utils.c (generic_register_byte): Use generic_register_size.
9894 (generic_register_size): When available, use
9895 gdbarch_register_type.
9896 * regcache.c (init_regcache_descr): When available, initialize the
9897 register type array using gdbarch_register_type. If the
9898 architecture supplies gdbarch_register_type, do not use the legacy
9899 regcache layout.
9900 * d10v-tdep.c (d10v_register_type): Replace
9901 d10v_register_virtual_type.
9902 (d10v_gdbarch_init): Set register_type instead of
9903 register_virtual_type.
9904
7b83296f
AC
99052003-03-01 Andrew Cagney <cagney@redhat.com>
9906
9907 * Makefile.in (ax-gdb.o): Update dependencies.
9908 * ax-gdb.c: Include "regcache.h".
9909 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9910 * findvar.c (value_of_register): Ditto.
9911 * infcmd.c (default_print_registers_info): Ditto.
9912
eadc1c87
MK
99132003-03-01 Mark Kettenis <kettenis@gnu.org>
9914
9915 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9916 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9917
14143612
MK
99182003-03-01 Mark Kettenis <kettenis@gnu.org>
9919
9920 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9921 of STREQ.
9922
a55cc764
DJ
99232003-02-28 Daniel Jacobowitz <drow@mvista.com>
9924
9925 * Makefile.in (dwarf2loc.o): Update dependencies.
9926 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9927 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9928 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9929 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9930 (locexpr_tracepoint_var_ref): New function.
9931 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9932
08a617da
AC
99332003-02-28 Andrew Cagney <cagney@redhat.com>
9934
9935 * regcache.c (register_size): New function.
9936 * regcache.h (register_size): Declare
9937 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9938 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9939
4224873a
DC
99402003-02-28 David Carlton <carlton@math.stanford.edu>
9941
9942 * linespec.c (decode_compound): Extract code into find_method.
9943 (find_method): New.
9944
ccdc5d7f
JB
99452003-02-28 J. Brobecker <brobecker@gnat.com>
9946
9947 * Makefile.in: Add rules to build and link in observer.o.
9948
974e8ced
JB
99492003-02-27 J. Brobecker <brobecker@gnat.com>
9950
9951 * observer.c: Minor comments edits.
9952
7a28f973
JB
99532003-02-27 J. Brobecker <brobecker@gnat.com>
9954
9955 * observer.h, observer.c: New file.
9956
27cddce2
AC
99572003-02-27 Andrew Cagney <cagney@redhat.com>
9958
9959 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9960
b94a41a1
SC
99612003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9962
9963 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9964 (M6812_OP_STS_EXT): Likewise.
9965 (m6811_prologue): Use the above to recognize prologue.
9966 (m6812_prologue): Likewise.
9967
c8be8951
DC
99682003-02-27 David Carlton <carlton@math.stanford.edu>
9969
9970 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9971 SYMBOL_PRINT_NAME.
9972 (compare_psymbols): Ditto.
9973 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9974
d05bb1fc
MS
99752003-02-27 Michael Snyder <msnyder@redhat.com>
9976
4e845cd3
MS
9977 * f-lang.c (build_fortran_types): New function.
9978 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9979 * doublest.c (extract_floating): Fix warning text.
9980
f3824013
AC
99812003-02-27 Andrew Cagney <cagney@redhat.com>
9982
9983 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9984 predicate. Replaces PUSH_DUMMY_FRAME.
9985 * gdbarch.h, gdbarch.c: Regnerate.
9986 * valops.c (hand_function_call): Update. Call
9987 generic_push_dummy_frame directly.
9988 * vax-tdep.c (vax_gdbarch_init): Update.
9989 * sparc-tdep.c (sparc_gdbarch_init): Update.
9990 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9991 * m68k-tdep.c (m68k_gdbarch_init): Update.
9992 * hppa-tdep.c (hppa_gdbarch_init): Update.
9993 * alpha-tdep.c (alpha_gdbarch_init): Update.
9994 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9995 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9996 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9997 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9998 push_dummy_frame to generic_push_dummy_frame.
9999 * v850-tdep.c (v850_gdbarch_init): Ditto.
10000 * sh-tdep.c (sh_gdbarch_init): Ditto.
10001 * s390-tdep.c (s390_gdbarch_init): Ditto.
10002 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10003 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10004 * mips-tdep.c (mips_gdbarch_init): Ditto.
10005 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10006 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10007 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10008 * i386-tdep.c (i386_gdbarch_init): Ditto.
10009 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10010 * frv-tdep.c (frv_gdbarch_init): Ditto.
10011 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10012 * cris-tdep.c (cris_gdbarch_init): Ditto.
10013 * avr-tdep.c (avr_gdbarch_init): Ditto.
10014 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10015
ad188201
KB
100162003-02-26 Kevin Buettner <kevinb@redhat.com>
10017
10018 * mips-tdep.c (show_mips_abi): New function.
10019 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10020 command ``show mips abi''.
10021
6b37567a 100222003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10023
6b37567a 10024 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10025 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10026 more sline entries have been seen for the function.
10027
d3e0a5bf
MC
100282003-02-26 Michael Chastain <mec@shout.net>
10029
10030 * configure: Regenerate with autoconf 000227.
10031
18972eea
MC
100322003-02-26 Michael Chastain <mec@shout.net>
10033
10034 Close PR build/660.
10035 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10036 for old libc5/glibc.
10037 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10038
0bbde931
KW
100392003-02-26 Kris Warkentin <kewarken@qnx.com>
10040
10041 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10042 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10043
27ca5dad
MC
100442003-02-26 Michael Chastain <mec@shout.net>
10045
10046 * configure.in: New variable HAVE_UINTPTR_T.
10047 * configure, config.in: Regenerated.
10048
6f88d630
DJ
100492003-02-26 Daniel Jacobowitz <drow@mvista.com>
10050
10051 Fix PR build/1097.
10052 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10053
b14185ce
AC
100542003-02-25 Andrew Cagney <cagney@redhat.com>
10055
10056 * frame.c (get_prev_frame): Add comment on check for
10057 inside_entry_func. Only check for inside_entry_file when not a
10058 dummy and not a sentinel. Check that the new frame is not inner
10059 to the old frame.
10060
ac2bd0a9
AC
100612003-02-25 Andrew Cagney <cagney@redhat.com>
10062
10063 * frame.c (frame_debug): New variable.
10064 (_initialize_frame): Add "set/show debug frame" command.
10065 (get_prev_frame): When frame_debug, print reason why unwind
10066 failed.
10067
b18a0fd2
MC
100682003-02-25 Michael Chastain <mec@shout.net>
10069
10070 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10071 to avoid uintptr_t definition problems.
10072
22abf04a
DC
100732003-02-25 David Carlton <carlton@math.stanford.edu>
10074
10075 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10076 (SYMBOL_LINKAGE_NAME): Ditto.
10077 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10078 SYMBOL_LINKAGE_NAME.
10079 (struct general_symbol_info): Expand comment.
10080 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10081 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10082 (SYMBOL_MATCHES_REGEXP): Ditto.
10083 * symtab.c (symbol_natural_name): New function.
10084 * objfiles.h: Replace all uses of SYMBOL_NAME by
10085 DEPRECATED_SYMBOL_NAME.
10086 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10087 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10088 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10089 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10090 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10091 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10092 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10093 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10094 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10095 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10096 * ada-exp.y: Ditto.
10097 * ada-exp.y: Update copyright.
10098 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10099 * cp-valprint.c: Ditto.
10100
1a5848f6
JJ
101012003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10102
10103 * infptrace.c (detach): Do not flag error if ptrace detach fails
10104 and errno is set to ESRCH.
10105
7343d46a
AC
101062003-02-24 Andrew Cagney <cagney@redhat.com>
10107
10108 * infptrace.c (udot_info): Change type of udot_off to long. Use
10109 paddr when printing udot_off's value.
10110
49fa1dc2
DC
101112003-02-24 David Carlton <carlton@math.stanford.edu>
10112
10113 * symtab.c (make_symbol_overload_list): Only read in partial
10114 symtabs containing a matching partial symbol.
10115
0fe19209
DC
101162003-02-24 David Carlton <carlton@math.stanford.edu>
10117
10118 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10119 do the comparison, not strcmp.
10120 * symfile.c (compare_psymbols): Ditto.
10121 * defs.h: Declare strcmp_iw_ordered.
10122 * utils.c (strcmp_iw_ordered): New function.
10123
8e3ee7b5
JB
101242003-02-24 Jim Blandy <jimb@redhat.com>
10125
10126 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10127 support, shared libs): Remove my name from here, to better reflect
10128 reality.
10129
7df1a324
KW
101302003-02-24 Kris Warkentin <kewarken@qnx.com>
10131
10132 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10133 (target_ops): Add to_have_continuable_watchpoint.
10134 * target.c (update_current_target): Add INHERIT line for
10135 to_have_continuable_watchpoint.
10136 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10137 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10138 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10139 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10140
d1c76907
EZ
101412003-02-24 Elena Zannoni <ezannoni@redhat.com>
10142
10143 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10144 maintainership.
10145
2610b0bf
KW
101462003-02-24 Kris Warkentin <kewarken@qnx.com>
10147
f46169db
KW
10148 * solib.c (solib_open): Call target defined search function after
10149 failing with solib-search-path.
10150 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10151 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10152
9a3c34fe
KW
101532003-02-24 Kris Warkentin <kewarken@qnx.com>
10154
f46169db 10155 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10156
2417dd25
SC
101572003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10158
10159 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10160
b631436b
SC
101612003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10162
10163 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10164 (m68hc11_add_reggroups): New function.
10165 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10166 (m68hc11_gdbarch_init): Install the reggroups.
10167 (_initialize_m68hc11_tdep): Initialize them.
10168
0aa8c1e4
JW
101692003-02-21 James E Wilson <wilson@tuliptree.org>
10170
10171 * MAINTAINERS: Update my email address.
10172
50ceaba5
DC
101732003-02-21 David Carlton <carlton@math.stanford.edu>
10174
10175 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10176
4c2df51b
DJ
101772003-02-21 Daniel Jacobowitz <drow@mvista.com>
10178
10179 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10180 * symtab.h: Add opaque declarations of struct axs_value and
10181 struct agent_expr.
10182 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10183 (struct location_funcs): New type.
10184 (struct symbol): Add "loc" to aux_value.
10185 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10186 * dwarf2read.c: Include "dwarf2expr.h".
10187 (dwarf2_symbol_mark_computed): New function.
10188 (read_func_scope): Use it.
10189 (var_decode_location): New function.
10190 (new_symbol): Use it.
10191 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10192
10193 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10194 (dwarf2expr_h, dwarf2loc_h): New variables.
10195 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10196 (dwarf2expr.o, dwarf2loc.o): New rules.
10197 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10198 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10199 LOC_COMPUTED_ARG.
10200 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10201 * m2-exp.y (yylex): Likewise.
10202 * printcmd.c (address_info, print_frame_args): Likewise.
10203 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10204 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10205 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10206 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10207 * symtab.c (lookup_block_symbol): Likewise.
10208
5784d15e
AF
102092003-02-20 Adam Fedor <fedor@gnu.org>
10210
10211 * symtab.h: Remove objc_specific struct
10212 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10213 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10214 Have language_objc use cplus_specific struct.
10215
d4cad8db
TT
102162003-02-20 Tom Tromey <tromey@redhat.com>
10217
10218 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10219 TYPE_NAME, when printing a String value. PR java/1075.
10220
2f9a90b4
AF
102212003-02-20 Adam Fedor <fedor@gnu.org>
10222
d38074a8 10223 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10224 * objc-lang.c (find_methods): Make static.
2f9a90b4 10225
6f17862b
CF
102262003-02-20 Christopher Faylor <cgf@redhat.com>
10227
10228 * win32-nat.c (get_image_name): Check return value from
10229 ReadProcessMemory.
10230 (child_xfer_memory): Ditto.
10231
715d1656
AO
102322003-02-20 Alexandre Oliva <aoliva@redhat.com>
10233
10234 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10235 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10236 '${exec_prefix}' (in addition to the expansion thereof) as
10237 relocatable.
10238 * configure: Rebuilt.
10239
b1262a02
DC
102402003-02-20 David Carlton <carlton@math.stanford.edu>
10241
10242 * symtab.c (search_symbols): Revert the search_symbols part of my
10243 2002-12-23 patch. Add comment.
10244
7134143f
DJ
102452002-02-20 Daniel Jacobowitz <drow@mvista.com>
10246
10247 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10248 * dbxread.c (elfstab_build_psymtabs): Don't call
10249 install_minimal_symbols.
10250 (stabsect_build_psymtabs): Likewise.
10251 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10252 earlier.
10253 * somread.c (som_symfile_read): Call install_minimal_symbols
10254 and do_cleanups earlier.
10255 * nlmread.c (nlm_symfile_read): Likewise.
10256 * mdebugread.c (elfmdebug_build_psymtabs): Call
10257 install_minimal_symbols and make appropriate cleanups.
10258
cf466558
KB
102592003-02-20 Kevin Buettner <kevinb@redhat.com>
10260
10261 * solib.c (reload_shared_libraries): New function.
10262 (_initialize_solib): Add callbacks for ``set solib-search-path''
10263 and ``set solib-absolute-prefix''.
10264
de5ad195
DC
102652003-02-20 David Carlton <carlton@math.stanford.edu>
10266
10267 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10268 expand comment.
10269 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10270 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10271 * ada-typeprint.c (ada_typedef_print): Ditto.
10272 * ax-gdb.c (gen_var_ref): Ditto.
10273 * breakpoint.c (print_one_breakpoint): Ditto.
10274 * buildsym.c (finish_block): Ditto.
10275 * c-valprint.c (c_val_print): Ditto.
10276 * expprint.c (print_subexp): Ditto.
10277 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10278 * infcmd.c (jump_command): Ditto.
10279 * linespec.c (decode_line_2, decode_compound): Ditto.
10280 * maint.c (maintenance_translate_address): Ditto.
10281 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10282 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10283 Ditto.
8ffd9b1b
AJ
10284 * p-valprint.c (pascal_val_print): Ditto.
10285 * stabsread.c (define_symbol): Ditto.
de5ad195 10286 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10287 (print_frame_arg_vars, return_command): Ditto.
10288 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10289 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10290 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10291 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10292 (rbreak_command): Ditto.
10293 * tracepoint.c (tracepoints_info): Ditto.
10294 * typeprint.c (typedef_print): Ditto.
10295 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10296 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10297 * ada-typeprint.c: Update Copyright.
10298 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10299 * tracepoint.c, cli/cli-cmds.c: Ditto.
10300
f796e4be
KB
103012003-02-20 Kevin Buettner <kevinb@redhat.com>
10302
10303 * frame.c (generic_unwind_get_saved_register): Make non-static.
10304 * frame.h (generic_unwind_get_saved_register): Declare.
10305 * mips-tdep.c (read_next_frame_reg): Fetch register from
10306 current regcache when frame is NULL.
10307 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10308 that must be NULL.
10309 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10310 instead of frame_register_unwind().
10311
836cc9f4
AC
103122003-02-20 Andrew Cagney <ac131313@redhat.com>
10313
10314 * remote-sim.c (gdbsim_insert_breakpoint)
10315 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10316 code.
10317
501eef12
AC
103182003-02-20 Andrew Cagney <ac131313@redhat.com>
10319
10320 * remote.c (_initialize_remote): Add commands "set/show remote
10321 hardware-watchpoint-limit" and "set/show remote
10322 hardware-breakpoint-limit".
10323 (remote_hw_watchpoint_limit): Initialize to -1.
10324 (remote_hw_breakpoint_limit): Ditto.
10325 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10326
1b6bc7e0
CF
103272003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10328
10329 * coff-pe-read.c: New file - support reading of minimal symbols from a
10330 portable executable using the export table.
10331 * coff-pe-read.h: New file.
10332 * coffread.c: Include coff-pe-read.h.
10333 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10334 debugging symbols found.
10335 * Makefile.in (SFILES): Add coff-pe-read.o.
10336 (coff_pe_read_h): Define.
10337 (COMMON_OBS): Add coff-pe-read.o.
10338 (coffread.o): Add coff_pe_read_h dependency.
10339 (coff-pe-read.o): New target.
10340
fe898f56
DC
103412003-02-19 David Carlton <carlton@math.stanford.edu>
10342
10343 * Makefile.in (SFILES): Add block.c.
10344 (block_h): New.
10345 (COMMON_OBS): Add block.o.
10346 (block.o): New.
10347 (x86-64-tdep.o): Add $(block_h).
10348 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10349 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10350 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10351 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10352 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10353 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10354 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10355 * value.h: Add opaque declaration for struct block.
10356 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10357 * ada-lang.h: Ditto.
10358 * x86-64-tdep.c: #include "block.h"
10359 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10360 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10361 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10362 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10363 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10364 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10365 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10366 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10367 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10368 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10369 * symtab.c (block_function): Ditto.
10370 (contained_in): Ditto.
10371 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10372 block.h. Add opaque declaration for struct block.
10373 * symtab.h: Move block_function and contained_in declarations to
10374 block.h. Add opaque declarations for struct block, struct
10375 blockvector.
10376 (struct block): Move to block.h.
10377 (struct blockvector): Ditto.
10378 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10379 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10380 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10381 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10382 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10383 Ditto.
10384 * block.c: New file.
10385 * block.h: New file.
10386
173345b5
TR
103872003-02-19 Theodore A. Roth <troth@openavr.org>
10388
10389 * avr-tdep.c (avr_extract_return_value): Remove function.
10390 (avr_store_return_value): Remove function.
10391 (avr_extract_struct_value_address): Remove function.
10392 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10393
338ef23d
AC
103942003-02-19 Andrew Cagney <ac131313@redhat.com>
10395
10396 * rs6000-tdep.c: Include "gdb_assert.h".
10397 (registers_e500): Add "acc" and "spefscr".
10398 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10399 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10400 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10401 really is "r0".
10402 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10403
5412f5f3
KS
104042003-02-18 Keith Seitz <keiths@redhat.com>
10405
10406 * Makefile.in: Add gdbtk-interps.c.
10407
881324eb
KB
104082003-02-18 Kevin Buettner <kevinb@redhat.com>
10409
10410 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10411 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10412
6a2f5abf
AC
104132003-02-18 Andrew Cagney <cagney@redhat.com>
10414
10415 * symtab.h (struct objfile): Add opaque declaration.
10416
54c7009d
EZ
104172003-02-18 Elena Zannoni <ezannoni@redhat.com>
10418
10419 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10420 * dbxread.c (process_one_symbol): Use last_function_start rather
10421 than function_start_offset to find the real beginning of the
10422 current function. The latter is just the text section offset on
10423 some systems, the former is always the real function start.
54c7009d 10424
7ee6d7eb
AC
104252003-02-17 Andrew Cagney <cagney@redhat.com>
10426
10427 * configure.in: Revert ${target} != ${host}.
10428
2846da9b
AC
104292003-02-17 Andrew Cagney <ac131313@redhat.com>
10430
10431 * configure.in (Makefile): Use the test ${target} != ${host},
10432 instead of the absence of the "nm.h" file, to determine of the
10433 configuration non-native.
10434 * configure: Regenerate.
8ffd9b1b 10435
3b27aeea
EZ
104362003-02-14 Elena Zannoni <ezannoni@redhat.com>
10437
fbe586ae 10438 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10439
10440 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10441 conditionalize tui_active test.
10442 (lookup_cmd_1): Ditto.
10443
b0b1c2c0
MK
104442003-02-14 Mark Kettenis <kettenis@gnu.org>
10445
10446 * configure.in: Add check for _etext.
10447 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10448 available.
10449 * config.in, configure: regenerated.
10450
8f05cde5
DJ
104512003-02-14 Daniel Jacobowitz <drow@mvista.com>
10452
10453 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10454
021e7609
AC
104552003-02-14 Andrew Cagney <ac131313@redhat.com>
10456
10457 * main.c (tui_version): Delete variable.
10458 (captured_main): When --tui, set interpreter_p to "tui" instead of
10459 enabling tui_version.
10460 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10461 tui_version.
10462 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10463 * cli/cli-cmds.c (disassemble_command): Ditto.
10464 * defs.h (tui_version): Delete declaration.
10465 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10466 (tui-interp.o): Add rules.
10467 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10468
e325dcec
CF
104692003-02-14 Christopher Faylor <cgf@redhat.com>
10470
36ffb041 10471 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10472 just-loaded dll.
10473
c4f90d87
JM
104742003-02-12 Jason Molenda (jmolenda@apple.com)
10475
fbe586ae
RH
10476 * symmisc.c (print_objfile_statistics): Include information about
10477 the number of psymtabs and symtabs in each object file.
c4f90d87 10478
e46e5ccd
KS
104792003-02-13 Keith R Seitz <keiths@redhat.com>
10480
10481 * main.h (struct captured_main_args): Add interpreter_p.
10482 * main.c (captured_main): Initialize interpreter_p from context.
10483 * gdb.c (main): Set interpreter_p argument.
10484 * Makefile.in (gdb.o): Add dependency for interps.h.
10485
fe97fe9c
AC
104862003-02-12 Andrew Cagney <ac131313@redhat.com>
10487
10488 * event-top.c (cli_command_loop): Delete declaration.
10489 (_initialize_event_loop): Delete function setting event_loop_hook.
10490 * event-top.h (cli_command_loop): Declare. Update copyright.
10491 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10492 * interps.c (current_interp_command_loop): When event_loop_p, call
10493 cli_command_loop.
10494
1cdac4ef
AC
104952003-02-12 Andrew Cagney <ac131313@redhat.com>
10496
10497 * interps.h (interp_command_loop_ftype): Change return type to
10498 void.
10499
48037ead
ML
105002003-02-12 Michal Ludvig <mludvig@suse.cz>
10501
10502 * x86-64-tdep.c (x86_64_extract_return_value)
10503 (x86_64_store_return_value): Use regcache instead of regbuf.
10504 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10505 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10506
033afc63
AC
105072003-02-11 Andrew Cagney <ac131313@redhat.com>
10508
10509 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10510 * aclocal.m4: Regenerate.
10511 * configure: Regenerate.
10512
10513 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10514 TCL_LD_SEARCH_FLAGS.
10515
40d02bca
ML
105162003-02-10 Michal Ludvig <mludvig@suse.cz>
10517
10518 * dwarf2cfi.c: Reindented.
10519
11308a41
AC
105202003-02-09 Andrew Cagney <ac131313@redhat.com>
10521
10522 * interps.c (clear_interpreter_hooks): Convert function definition
10523 to ISO C.
10524
e1c1c0f6
DC
105252003-02-07 David Carlton <carlton@math.stanford.edu>
10526
10527 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10528
ab5d3da6
KB
105292003-02-07 Kevin Buettner <kevinb@redhat.com>
10530
10531 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10532 (struct type): ...to here.
10533 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10534 field.
10535 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10536 (replace_type): Set length on all type variants for a given type.
10537
b8a92b82
AC
105382003-02-07 Andrew Cagney <ac131313@redhat.com>
10539
10540 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10541 <sys/stat.h>.
10542 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10543
5cb316ef
AC
105442003-02-06 Andrew Cagney <ac131313@redhat.com>
10545
2555fe1a
AC
10546 * Makefile.in (symm-nat.o): Update dependencies.
10547 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10548 (lynx-nat.o, ia64-linux-nat.): Ditto.
10549 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10550 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10551 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10552
44270758
AC
10553 * Makefile.in (inflow_h): Define.
10554 (procfs.o, inflow.o, procfs.o): Update dependencies.
10555 * inftarg.c (child_stop): Delete extern declaration of
10556 inferior_process_group. Include "inflow.h".
10557 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10558 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10559 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10560 (our_process_group, inferior_process_group): Extern declarations.
10561
df8f7274
AC
10562 * procfs.c: Include "gdb_assert.h".
10563
5cb316ef
AC
10564 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10565 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10566 * jv-typeprint.c (java_type_print_base): Ditto.
10567 * typeprint.c (typedef_print): Eliminate STREQ.
10568 * cli/cli-script.c (define_command, define_command): Ditto.
10569 * main.c (captured_main): Ditto.
10570 * values.c (lookup_internalvar): Ditto.
10571 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10572 within `if' conditional.
10573 * linespec.c (decode_line_2): Ditto.
10574 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10575 (bfd_openw_with_cleanup): Ditto.
10576
2a28ccea
MK
105772003-02-07 Mark Kettenis <kettenis@gnu.org>
10578
10579 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10580 legacy_extract_return_value and store_return_value to
10581 legacy_return_value.
10582
786b8124
CF
105832003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10584
10585 * win32-nat.c (get_relocated_section_addrs): New function. Find
10586 section load addresses for symbol handling in relocated DLLs.
10587 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10588
b871e4ec
FF
105892003-02-05 Fred Fish <fnf@intrinsity.com>
10590
10591 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10592 '=' and '!='.
10593 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10594 with '&' and '=='.
10595 (angel_RDI_info): Ditto.
10596 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10597 with '&' and '!='.
10598 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 10599
4389a95a 106002003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
10601 Keith Seitz <keiths@redhat.com>
10602 Elena Zannoni <ezannoni@redhat.com>
10603 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
10604
10605 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10606 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10607 (SUBDIR_MI_OBS): Add "mi-interp.o".
10608 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10609 (SFILES): Add "interps.c".
10610 (COMMON_OBS): Add "interps.o".
10611 (interps_h, mi_main_h): Define.
10612 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10613 (mi-main.o, main.o, event-top.o): Update dependencies.
10614 * cli/cli-interp.c: New file.
10615 * interps.h, interps.c: New files.
10616 * top.c: (gdb_init): Don't install the default interpreter, handed
10617 by captured_main.
10618 * main.c: Include "interps.h".
10619 (interpreter_p): Note that it should malloc'ed.
10620 (captured_command_loop): Call current_interp_command_loop.
10621 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10622 xfree and xstrdup when updating interpreter_p. Install the
10623 default interpreter. Add hack to stop mi1's copyright notice
10624 being encoded.
10625 * event-top.h (gdb_setup_readline): Declare.
10626 (gdb_disable_readline): Declare.
10627 * event-top.c: Include "interps.h".
10628 (display_gdb_prompt): Call current_interp_display_prompt_p.
10629 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10630 gdb_stdlog, and gdb_stdtarg.
10631 (_initialize_event_loop): Don't call gdb_setup_readline.
10632 * cli-out.c (cli_out_set_stream): New function.
10633 * cli-out.h (cli_out_set_stream): Declare.
10634
ff3b5810
MK
106352003-02-06 Mark Kettenis <kettenis@gnu.org>
10636
10637 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10638 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10639 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10640 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10641 config/i386/i386v42mp.mt: Removed.
10642
5b729aa5
MK
106432003-02-05 Mark Kettenis <kettenis@gnu.org>
10644
10645 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10646 GDB_OSABI_SOLARIS.
10647
8cc15142
MC
106482003-02-05 Michael Chastain <mec@shout.net>
10649
10650 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10651 2.12.1 and earlier versions.
10652
5aa5d4b9
AC
106532003-02-05 Andrew Cagney <ac131313@redhat.com>
10654
10655 Remove orphaned hosts, targets and files.
10656 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10657 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10658 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10659 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10660 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10661 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10662 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10663 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10664 * config/sparc/tm-sp64sim.h: Delete.
10665 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10666 hosts.
10667 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10668 mips*-dec-mach3* targets.
10669
b68767c1
MC
106702003-02-04 Michael Chastain <mec@shout.net>
10671
10672 * NEWS: Fix typo: sepcifying -> specifying.
10673
5ae7ca1d
MC
106742003-02-04 Michael Chastain <mec@shout.net>
10675
10676 * dwarfread.c: Add documentation on the state of dwarf-1,
10677 looking towards obsoletion.
10678
d08a4280
MC
106792003-02-03 Michael Chastain <mec@shout.net>
10680
10681 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10682 gdb/testsuite/gdb.c++/pr-1023.exp.
10683
e9be73e4
AC
106842003-02-04 Andrew Cagney <ac131313@redhat.com>
10685
10686 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10687 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10688
10689 * utils.c (init_page_info): Delete reference to MPW in comments.
10690 * main.c (captured_main): Delete #ifdef MPW.
10691
05d57f6f
AC
106922003-02-04 Andrew Cagney <ac131313@redhat.com>
10693
8ffd9b1b 10694 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
10695 * monitor.c (monitor_expect): Obsolete reference to m32r.
10696 * configure.tgt: Mark m32r-*-elf* as obsolete.
10697 * MAINTAINERS: Mark m32k as obsolete.
10698 * m32r-rom.c: Obsolete file.
10699 * config/m32r/m32r.mt: Obsolete file.
10700 * config/m32r/tm-m32r.h: Obsolete file.
10701 * m32r-stub.c: Obsolete file.
10702 * m32r-tdep.c: Obsolete file.
10703
8b0e5691
AC
107042003-02-04 Andrew Cagney <ac131313@redhat.com>
10705
10706 * NEWS: Mention that the z8k-zilog-none is obsolete.
10707 * MAINTAINERS: Mark z8k as obsolete.
10708 * configure.tgt: Obsolete the z8k-*-coff* target.
10709 * config/z8k/z8k.mt: Obsolete file.
10710 * config/z8k/tm-z8k.h: Obsolete file.
10711 * z8k-tdep.c: Obsolete file.
10712
67f16606
AC
107132003-02-04 Andrew Cagney <ac131313@redhat.com>
10714
10715 * NEWS: Mention that the mn10200-elf is obsolete.
10716 * configure.tgt: Obsolete mn10200-*-* target.
10717 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10718 mention that the mn10200 is obsolete.
10719 * breakpoint.h: Ditto.
10720 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10721 * config/mn10200/mn10200.mt: Obsolete file.
10722 * config/mn10200/tm-mn10200.h: Obsolete file.
10723 * mn10200-tdep.c: Obsolete file.
10724
fd2299bd
AC
107252003-02-04 Andrew Cagney <ac131313@redhat.com>
10726
10727 * MAINTAINERS: Mark h8500 as obsolete.
10728 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10729 * findvar.c (value_from_register): Ditto.
10730 * h8500-tdep.c: Mark file as obsolete.
10731 * config/h8500/h8500.mt: Ditto.
10732 * config/h8500/tm-h8500.h: Ditto.
10733 * NEWS: Mention that h8500 is obsolete.
10734
eb9a305d
DC
107352003-02-04 David Carlton <carlton@math.stanford.edu>
10736
10737 * objfiles.c (allocate_objfile): Always set name. Add comment at
10738 start of function.
10739 * jv-lang.c (get_dynamics_objfile): Add comment.
10740
406fc7fb
DC
107412003-02-04 David Carlton <carlton@math.stanford.edu>
10742
10743 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10744 * printcmd.c (build_address_symbolic): Replace uses of
10745 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10746 SYMBOL_NAME, and asm_demangle.
10747 Update copyright.
10748
93d91629
DC
107492003-02-04 David Carlton <carlton@math.stanford.edu>
10750
10751 * linespec.c (decode_compound): Extract code into
10752 lookup_prefix_sym.
10753 (lookup_prefix_sym): New function.
10754
1c5cb38e
DC
107552003-02-04 David Carlton <carlton@math.stanford.edu>
10756
10757 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10758 FLOAT_COERCION_BADNESS.
10759 * gdbtypes.c (rank_one_type): Replace all uses of
10760 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10761
0cf824c9
JB
107622003-02-04 Jim Blandy <jimb@redhat.com>
10763
10764 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10765 section, let dwarf_macinfo_section point to it, not
10766 dwarf_loc_section.
10767
a2d356b0
DJ
107682003-02-04 Daniel Jacobowitz <drow@mvista.com>
10769
10770 Pointed out by Anton Blanchard <anton@samba.org>.
10771 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10772 (ppc_linux_at_sigtramp_return_path): Use it.
10773
2de7ced7
DJ
107742003-02-04 Daniel Jacobowitz <drow@mvista.com>
10775
10776 * defs.h (streq): Add prototype.
10777 * utils.c (streq): New function.
10778
10779 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10780 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10781 * mdebugread.c (new_symbol): Likewise.
10782 * stabsread.c (define_symbol): Likewise.
10783 * coffread.c (process_coff_symbol): Likewise.
10784 * dwarfread.c (new_symbol): Likewise.
10785
10786 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10787 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10788 here.
10789 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10790 SYMBOL_INIT_DEMANGLED_NAME.
10791 * objfiles.c: Include "hashtab.h".
10792 (allocate_objfile): Call htab_set_functions_ex for the
10793 demangled_names_hash.
10794 (free_objfile): Call htab_delete for the demangled_names_hash.
10795 * objfiles.h (struct htab): Add declaration.
10796 (struct objfile): Add demangled_names_hash.
10797 * symfile.c: Include "hashtab.h".
10798 (reread_symbols): Call htab_delete for the demangled_names_hash.
10799 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10800 SYMBOL_NAME in the bcache.
10801 * symtab.c: Include "hashtab.h". Update comments.
10802 (create_demangled_names_hash, symbol_set_names): New functions.
10803 (symbol_find_demangled_name): New function, broken out from
10804 symbol_init_demangled_names.
10805 (symbol_init_demangled_names): Use it.
10806 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10807 (SYMBOL_SET_NAMES): New macro.
10808 (symbol_set_names): Add prototype.
10809
15831452
JB
108102003-02-03 Jim Blandy <jimb@redhat.com>
10811
10812 Use a single, consistent representation for an empty minimal
10813 symbol table in an objfile.
10814 * objfiles.c (terminate_minimal_symbol_table): New function.
10815 (allocate_objfile): Call it.
10816 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10817 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10818 non-NULL.
15831452
JB
10819 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10820 objfile has minimal symbols, compare minimal_symbol_count to zero,
10821 instead of comparing msymbols with NULL.
10822 * objfiles.c (have_minimal_symbols): Same.
10823 * solib-sunos.c (solib_add_common_symbols): Call
10824 terminate_minimal_symbol_table.
10825 * symfile.c (reread_symbols): Same.
8ffd9b1b 10826
ffc65945
KB
108272003-02-03 Kevin Buettner <kevinb@redhat.com>
10828
10829 * s390-tdep.c (s390_address_class_type_flags)
10830 (s390_address_class_type_flags_to_name)
10831 (s390_address_class_name_to_type_flags): New functions.
10832 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10833 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10834
f211c6d4
MS
108352003-02-03 Michael Snyder <msnyder@redhat.com>
10836
10837 * arm-tdep.c: Fix spell-o in comment.
10838
659b0389
ML
108392003-02-03 Michal Ludvig <mludvig@suse.cz>
10840
10841 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10842 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10843 error messages to contain BFD filename.
659b0389 10844
3b31d625
EZ
108452003-02-02 Elena Zannoni <ezannoni@redhat.com>
10846
997b089a 10847 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10848 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10849 (do_mixed_source_and_assembly): Use
10850 make_cleanup_ui_out_tuple_begin_end and
10851 make_cleanup_ui_out_tuple_begin_end.
10852 (do_mixed_source_and_assembly): Ditto.
10853 * thread.c (do_captured_list_thread_ids): Ditto.
10854 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10855 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10856 ui_out_tuple_end): Delete prototypes.
10857 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10858 ui_out_list_end, ui_out_tuple_end): Delete.
10859
10860 From Kevin Buettner <kevinb@redhat.com>:
10861 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10862 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10863 (do_cleanup_table_end): New functions.
10864 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10865 Use cleanups to invoke_ui_out_tuple_end().
10866 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10867 * cli/cli-setshow.c (cmd_show_list): Use
10868 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10869
5b181d62
AC
108702003-02-02 Andrew Cagney <ac131313@redhat.com>
10871
10872 * frame.c (frame_unwind_register): New function.
10873 (frame_unwind_unsigned_register): Use.
10874 (frame_unwind_signed_register): Use.
10875 (frame_read_register): New function.
10876 * frame.h (frame_unwind_register): Declare.
10877 (frame_read_register): Declare.
10878
10879 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10880 and frame_unwind_register instead of read_memory, write_register
10881 and deprecated_write_register_bytes.
10882
5f601589
AC
108832003-02-02 Andrew Cagney <ac131313@redhat.com>
10884
10885 * frame.h: Note that namelen can be negative.
10886 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10887 NAME's length.
10888
10889 * NEWS: Mention that the d10v's `regs' command is deprecated.
10890 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10891 (d10v_print_registers_info): New function.
10892 (show_regs): Call d10v_print_registers_info.
10893 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10894
6a3fe0a4
MK
108952003-02-02 Mark Kettenis <kettenis@gnu.org>
10896
10897 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10898 lost in the previous patch.
10899
075559bc
AC
109002003-02-01 Andrew Cagney <ac131313@redhat.com>
10901
10902 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
10903 * stack.c (print_frame_info_base): Output complete FRAME tuple
10904 for synthesized frames.
075559bc 10905
6789195b
AC
109062003-02-02 Andrew Cagney <ac131313@redhat.com>
10907
10908 * mips-nat.c (zerobuf): Delete.
10909 (fetch_inferior_registers): Alloc local zerobuf.
10910 (fetch_core_registers): Alloc local zerobuf.
10911 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10912 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10913 * thread-db.c (thread_db_store_registers): Ditto.
10914 * sh-tdep.c (sh_do_register): Ditto.
10915 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10916 * remote-sim.c (gdbsim_store_register): Ditto.
10917 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10918 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10919 * monitor.c (monitor_supply_register): Ditto.
10920 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10921 * mips-nat.c (fetch_inferior_registers): Ditto.
10922 * m68klinux-nat.c (fetch_register): Ditto.
10923 * lynx-nat.c (fetch_inferior_registers): Ditto.
10924 (fetch_inferior_registers): Ditto.
10925 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10926 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10927 (hpux_thread_store_registers): Ditto.
10928 * hppah-nat.c (fetch_register): Ditto.
10929 * hppab-nat.c (fetch_register): Ditto.
10930 * hppa-tdep.c (pa_register_look_aside): Ditto.
10931 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10932 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10933
e669114a
AC
109342003-02-01 Andrew Cagney <ac131313@redhat.com>
10935
10936 * gdbarch.sh: Explictly specify all method levels. When a
10937 variable with an empty level, provide a non-multi-arch default.
10938 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10939 * gdbarch.h: Re-generate.
10940 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10941 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10942
9a043c1d
AC
109432003-02-01 Andrew Cagney <ac131313@redhat.com>
10944
10945 * defs.h (host_pointer_to_address): Delete declaration.
10946 (address_to_host_pointer): Delete declaration.
10947 * utils.c (host_pointer_to_address): Delete function.
10948 (address_to_host_pointer): Delete function.
10949 * procfs.c (procfs_address_to_host_pointer): New function.
10950 * procfs.c (proc_set_watchpoint): Use.
10951 (procfs_can_use_hw_breakpoint): Update comments.
10952 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10953 (som_solib_add): Use.
10954 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10955 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10956
7ca9f392
AC
109572003-02-01 Andrew Cagney <ac131313@redhat.com>
10958
94bbfd30
AC
10959 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10960 strlen d_name.
10961
7ca9f392
AC
10962 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10963 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10964 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10965 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10966 (define_symbol): Update.
10967 * symfile.c (generic_load): Remove references to nindy.
10968 * symtab.c: Remove references to nindy.
10969
31a85ea2
AC
109702003-02-01 Andrew Cagney <ac131313@redhat.com>
10971
10972 * infcmd.c (print_float_info): Delete code conditional on
10973 FLOAT_INFO.
10974 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10975 * config/m68k/nm-apollo68b.h: Ditto.
10976 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10977 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10978 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10979
f6e85fc8
MK
109802003-02-01 Mark Kettenis <kettenis@gnu.org>
10981
6015b6a0
MK
10982 * config/i386/tm-i386os9k.h: Removed.
10983
f7a30bdf
MK
10984 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10985 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10986 they're identical to i[3456]86-*-sysv* now.
10987 * config/i386/i386v32.mh: Removed.
10988 * config/i386/xm-i386v32.h: Removed.
10989 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10990
28d52111
MK
10991 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10992
4d3f6bce
MK
10993 * config/i386/i386dgux.mh: Removed.
10994 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10995
f6e85fc8
MK
10996 * configure.in: Fix typo.
10997 * configure: Regenerated.
10998
53955967
DC
109992003-01-31 David Carlton <carlton@math.stanford.edu>
11000
11001 * dwarf2read.c (dwarf2_locate_sections): Set
11002 dwarf_ranges_section.
11003
b1364885
AC
110042003-01-31 Andrew Cagney <ac131313@redhat.com>
11005
8dbb1c65
AC
11006 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11007 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11008
8731e58e
AC
11009 * utils.c: Re-indent.
11010
b1364885
AC
11011 * config/djgpp/fnchange.lst: Delete nindy files.
11012 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11013 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11014 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11015 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11016 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11017 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11018 * Makefile.in (init.c): Remove nindy references.
11019 (saber_gdb): Delete rule.
11020 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11021 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11022 and a68v-nat.c.
11023 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11024 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11025 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11026 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11027 nindy-share/stop.h.
11028 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11029 * saber.suppress: Delete file.
11030
086df311
DJ
110312003-01-31 Daniel Jacobowitz <drow@mvista.com>
11032
11033 * dbxread.c (stabs_data): New static variable.
11034 (fill_symbuf): Support an in-memory buffer for stabs data.
11035 (stabs_seek): New function.
11036 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11037 (read_ofile_symtab): Use stabs_seek.
11038 (elfstab_build_psymtabs): Take an asection* instead of
11039 an offset and size. Relocate the stabs data if necessary.
11040 Save the section* for dbx_psymtab_to_symtab.
11041 * dwarf2read.c: Add section variables for each debug section.
11042 (dwarf2_locate_sections): Fill them in.
11043 (dwarf2_read_section): Take an asection* argument.
11044 Relocate the section contents if necessary.
11045 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11046 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11047 it to dwarf2_read_section.
11048 (dwarf2_build_frame_info): Update callers.
11049 * elfread.c (elf_symfile_read): Update call to
11050 elfstab_build_psymtabs.
11051 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11052 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11053 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11054 * symfile.c (symfile_dummy_outputs): New function.
11055 (symfile_relocate_debug_section): New function.
11056 * symfile.h (symfile_relocate_debug_section): Add prototype.
11057
87d1b352
RH
110582003-01-31 Richard Henderson <rth@redhat.com>
11059
11060 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11061 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11062 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11063 * alpha-tdep.c (alpha_register_name): Add "unique".
11064 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11065 (ALPHA_UNIQUE_REGNUM): New.
11066 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11067
c48861fb
AC
110682003-01-31 Andrew Cagney <ac131313@redhat.com>
11069
11070 * README: Remove reference to Ericsson 1800 monitor.
11071 * Makefile.in (remote-es.o): Delete rule.
11072 (ALLDEPFILES): Delete remote-es.c.
11073 * remote-es.c: Delete file.
11074 * config/m68k/es1800.mt: Delete file.
11075 * config/djgpp/fnchange.lst: Update.
11076 * configure.tgt: Delete m68*-ericsson-* target.
11077
d764a824
AF
110782003-01-31 Adam Fedor <fedor@gnu.org>
11079
11080 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11081 Remove duplicate/shadowing variable of same name.
11082
fe36c4f4
JB
110832003-01-30 Jim Blandy <jimb@redhat.com>
11084
11085 * symfile.c (find_separate_debug_file): Assert that the objfile's
11086 directory name we compute ends with a slash, and then assume that
11087 that's so everywhere we use it.
11088
cb741690
DJ
110892003-01-30 Daniel Jacobowitz <drow@mvista.com>
11090
11091 * valops.c (value_assign): Flush frame cache after stores to memory
11092 also.
11093
96ee5227
AC
110942003-01-30 Andrew Cagney <ac131313@redhat.com>
11095
11096 * Makefile.in (mon960-rom.o): Delete rule.
11097 * mon960-rom.c: Delete file.
11098
7f6104a9
AC
110992003-01-30 Andrew Cagney <ac131313@redhat.com>
11100
11101 * d10v-tdep.c: Include "frame-unwind.h".
11102 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11103 list.
11104 (next_addr, uses_frame): Delete.
11105 (struct d10v_unwind_cache): Define.
11106 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11107 Use info instead of next_addr and uses_frame globals.
11108 (d10v_frame_init_saved_regs): Delete function.
11109 (d10v_init_extra_frame_info): Delete function.
11110 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11111 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11112 init_frame_pc or frame_saved_pc.
11113 (d10v_pop_frame): Delete function.
11114 (do_d10v_pop_frame): Delete function.
11115 (d10v_frame_chain): Delete function.
11116 (d10v_frame_chain_valid): Delete function.
11117 (d10v_frame_pc_unwind): New function.
11118 (d10v_frame_id_unwind): New function.
11119 (saved_regs_unwinder): New function.
11120 (d10v_frame_register_unwind): New function.
11121 (d10v_frame_pop): New function.
11122 (d10v_frame_unwind): New variable.
11123 (d10v_frame_p): New function.
11124 (d10v_frame_saved_pc): Delete function.
11125 * Makefile.in (d10v-tdep.o): Update dependencies.
11126
cad2e848
JB
111272003-01-30 J. Brobecker <brobecker@gnat.com>
11128
11129 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11130 causing some regressions due to a change in the default value
11131 for this macro.
11132
af34e669
DJ
111332003-01-29 Richard Henderson <rth@redhat.com>
11134 Elena Zannoni <ezannoni@redhat.com>
11135 Daniel Jacobowitz <drow@mvista.com>
11136
11137 Fix PR gdb/961.
8ffd9b1b 11138 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11139 variables.
11140 (RANGES_SECTION): New.
11141 (dwarf_ranges_buffer): New variable.
11142 (struct comp_unit_head): Add member "die".
11143 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11144 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11145 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11146 (dwarf2_locate_sections): Likewise.
11147 (dwarf2_build_psymtabs): Read .debug_ranges.
11148 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11149 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11150 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11151 Look for DW_AT_ranges and return the bounding box.
11152
baa93fa6
CF
111532003-01-29 Brian Ford <ford@vss.fsi.com>
11154
11155 * win32-nat.c (cygwin_pid): Removed as unused.
11156 (child_attach): Try fall back to Cygwin pid.
11157
c63f977f
JB
111582003-01-29 Jim Blandy <jimb@redhat.com>
11159
11160 * objfiles.h (struct objfile): Doc fix.
11161
d62d1979
AC
111622003-01-29 Andrew Cagney <ac131313@redhat.com>
11163
11164 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11165 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11166 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11167 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11168 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11169 (FRAME_SAVED_PC): Change to a function with predicate.
11170 * gdbarch.h, gdbarch.c: Re-generate.
11171
1ae18a04
AC
111722003-01-28 Andrew Cagney <ac131313@redhat.com>
11173
52287340
AC
11174 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11175
1ae18a04
AC
11176 * complaints.c (complain): Delete function.
11177 * complaints.h (struct deprecated_complaint): Delete definition.
11178 (complain): Delete declaration.
11179
f2c16bd6
KB
111802003-01-28 Kevin Buettner <kevinb@redhat.com>
11181
11182 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11183 dummy frames.
11184
a94dd1fd
AC
111852003-01-27 Andrew Cagney <ac131313@redhat.com>
11186
11187 * sentinel-frame.h, sentinel-frame.c: New files.
11188 * Makefile.in (frame.o): Update dependencies.
11189 (SFILES): Add sentinel-frame.c.
11190 (sentinel_frame_h): Define.
11191 (COMMON_OBS): Add sentinel-frame.o.
11192 (sentinel-frame.o): Specify dependencies.
11193 * frame.c: Include "sentinel-frame.h".
11194 (frame_register_unwind): Rewrite assuming that there is always a a
11195 ->next frame.
11196 (frame_register, generic_unwind_get_saved_register): Ditto.
11197 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11198 (create_sentinel_frame, unwind_to_current_frame): New functions.
11199 (get_current_frame): Rewrite using create_sentinel_frame and
11200 unwind_to_current_frame. When possible, always create a frame.
11201 (create_new_frame): Set next to the sentinel frame.
11202 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11203 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11204 ID cache when necessary.
11205 (frame_saved_regs_id_unwind): Use frame_relative_level.
11206 (deprecated_generic_get_saved_register): Use frame_relative_level,
11207 get_frame_saved_regs, get_frame_pc, get_frame_base and
11208 get_next_frame.
11209 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11210 frame_register.
11211
5378adc4
DJ
112122003-01-27 Daniel Jacobowitz <drow@mvista.com>
11213
11214 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11215
51ee2ddc
DJ
112162003-01-27 Daniel Jacobowitz <drow@mvista.com>
11217
11218 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11219 (maintenance_set_profile_cmd): Use error () instead of warning ().
11220
d9feb4e7
DJ
112212003-01-27 Daniel Jacobowitz <drow@mvista.com>
11222
11223 * configure.in: Check that -pg works if using --enable-profiling.
11224 Check for monstartup and _mcleanup regardless of --enable-profiling.
11225 * maint.c: Check for monstartup and _mcleanup before using them.
11226 * config.in: Regenerated.
11227 * configure: Regenerated.
11228
2d188dd3
NC
112292003-01-24 Nick Clifton <nickc@redhat.com>
11230
11231 * Add sh2e support:
11232
11233 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11234
11235 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11236 (sh2e_show_regs): New.
11237 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11238 * config/sh/tm-sh.h: Added sh2e to comments.
11239
cb3c37b2
JB
112402003-01-23 Jim Blandy <jimb@redhat.com>
11241
11242 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11243 symbols found)" message here; we haven't checked for a separate
11244 debug info file yet, so we don't know yet.
11245 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11246 we've looked everywhere. Also, there's no need to print a special
11247 message when we're loading the separate debug info file: the one
11248 symbol_file_add prints is fine.
11249
5b5d99cf
JB
112502003-01-23 Alexander Larsson <alexl@redhat.com>
11251 Jim Blandy <jimb@redhat.com>
11252
11253 Add support for executables whose debug info has been separated
11254 out into a separate file, leaving only a link behind.
11255 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11256 and separate_debug_objfile_backlink.
11257 (put_objfile_before): New declaration.
11258 * symfile.c: #include "filenames.h".
11259 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11260 debug info in a separate file, read that, too. Save the addrs
11261 argument, so we can use it again to read the separated debug info;
11262 syms_from_objfile modifies the table we pass it.
11263 (reread_symbols): After re-reading an objfile, call
11264 reread_separate_symbols to refresh its separate debug info
11265 objfile, if it has one.
11266 (reread_separate_symbols, find_separate_debug_file,
11267 get_debug_link_info, separate_debug_file_exists): New functions.
11268 (debug_file_directory): New global var.
11269 (_initialize_symfile): Initialize debug_file_directory, and
11270 provide the new `set debug-file-directory' command to let the user
11271 change it.
11272 * objfiles.c (free_objfile): If this objfile has its debug info in
11273 a separate objfile, free that one too. If this is itself a
11274 separate debug info objfile, clear our parent's backlink.
11275 (put_objfile_before): New function.
11276 * utils.c (gnu_debuglink_crc32): New function.
11277 * defs.h (gnu_debuglink_crc32): New declaration.
11278 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11279 * configure.in: Handle --with-separate-debug-dir config option.
11280 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11281 * acconfig.h (DEBUGDIR): New macro.
11282 * configure, aclocal.m4, config.in: Regenerated.
11283
7e8580c1
JB
112842003-01-22 Jim Blandy <jimb@redhat.com>
11285
7904e09f
JB
11286 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11287 like the old symbol_file_add, but taking new arguments: you can
11288 now pass in either a `struct section_addr_info' list to say where
11289 each section is loaded, or a `struct section_offsets' table. Pass
11290 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11291 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11292 with the appropriate quiescent values for the new arguments.
11293
7e8580c1
JB
11294 * symfile.c: #include "gdb_assert.h".
11295 (syms_from_objfile): Add the ability to pass in a section offset
11296 table directly, as an alternative to the section_addr_info table.
11297 Document arguments better.
11298 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11299 * symfile.h (syms_from_objfile): Update declaration.
11300 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11301 syms_from_objfile.
11302 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11303
d28f9cdf
DJ
113042003-01-22 Daniel Jacobowitz <drow@mvista.com>
11305
11306 Original patch by Tom Tromey <tromey@cygnus.com> and
11307 Jason Molenda <jmolenda@apple.com>.
11308 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11309 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11310 * NEWS: Mention profiling.
11311 * configure.in (--enable-gdbtk): Fix typo.
11312 (--enable-profiling): New. Set PROFILE_CFLAGS.
11313 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11314 Fill in function.
11315 (profiling_state): New variable.
11316 (mcleanup_wrapper): New function.
11317 (_initialize_maint): Remove NOTYET, fix call to
11318 add_setshow_boolean_cmd for "maint set profile".
11319 * configure: Regenerated.
11320
df21e465
MH
113212003-01-21 Martin M. Hunt <hunt@redhat.com>
11322
11323 * Makefile.in (install-gdbtk): Install PNG images too.
11324
73c1f219
AC
113252003-01-21 Andrew Cagney <ac131313@redhat.com>
11326
11327 * exec.c (text_start): Delete global variable.
11328 (exec_file_attach): Make text_start local to the function.
11329 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11330 * valops.c (hand_function_call): Delete code that handles
11331 BEFORE_TEXT_END and AFTER_TEXT_END.
11332 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11333 of CALL_DUMMY_LOCATION.
11334 * gdbarch.c: Regenerate.
11335 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11336 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11337 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11338 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11339 (text_end): Delete extern declaration.
11340
eb4f72c5
AC
113412003-01-21 Andrew Cagney <ac131313@redhat.com>
11342
11343 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11344 * blockframe.c (backtrace_below_main): Move to "frame.c".
11345 (frame_chain_valid): Delete check for backtrace_below_main.
11346 (_initialize_blockframe): Delete initialization, move ``set
11347 backtrace-below-main'' command to "frame.c".
11348 (do_flush_frames_sfunc): Delete function.
11349 * frame.c: Include "command.h" and "gdbcmd.h".
11350 (frame_type_from_pc): New function.
11351 (create_new_frame): Use frame_type_from_pc.
11352 (legacy_get_prev_frame): New function.
11353 (get_prev_frame): Rewrite. When an old style frame, call
11354 legacy_get_prev_frame. Otherwize, unwind the PC first.
11355 (_initialize_frame): Add ``set backtrace-below-main'' command.
11356 * Makefile.in (frame.o): Update dependencies.
11357
778ce8cc
AC
113582003-01-19 Andrew Cagney <ac131313@redhat.com>
11359
11360 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11361 DEPRECATED_REGISTERS_INFO.
11362
01c193c8
AC
113632003-01-19 Andrew Cagney <ac131313@redhat.com>
11364
11365 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11366 Maintainers'. Update `Various Maintainers'.
11367
dedc2a2b
AC
113682003-01-19 Andrew Cagney <ac131313@redhat.com>
11369
11370 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11371 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11372 Suppress actual parameters when `-'.
11373 * gdbarch.h, gdbarch.c: Regenerate.
11374
b7261c70
AC
113752003-01-19 Andrew Cagney <ac131313@redhat.com>
11376
11377 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11378 code handling dummy frames.
11379
dbe9fe58
AC
113802003-01-19 Andrew Cagney <ac131313@redhat.com>
11381
11382 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11383 (struct frame_unwind): Add field pop.
11384 * frame.h (frame_pop): Declare.
11385 * frame.c (frame_saved_regs_pop): New function.
11386 (trad_frame_unwinder): Add frame_saved_regs_pop.
11387 (frame_pop): New function.
11388 * dummy-frame.c (dummy_frame_pop): New function.
11389 (discard_innermost_dummy): New function.
11390 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11391 (dummy_frame_unwind): Add dummy_frame_pop.
11392 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11393 * valops.c (hand_function_call): Ditto.
11394 * stack.c (return_command): Ditto.
11395
570b8f7c
AC
113962003-01-18 Andrew Cagney <ac131313@redhat.com>
11397
11398 * cris-tdep.c: Fix function declaration indentation.
11399 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11400 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11401 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11402 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11403 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11404 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11405
114062003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11407
11408 * README (Unpacking and Installation -- quick overview):
11409 Warn against ".../gdb-5.3/gdb/configure".
11410
494cca16
AC
114112003-01-18 Andrew Cagney <ac131313@redhat.com>
11412
11413 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11414 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11415 (struct frame_unwind): Declare opaque.
11416 (dummy_frame_p): Declare function.
11417 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11418 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11419 * dummy-frame.c: Include "frame-unwind.h".
11420 (dummy_frame_p): New function.
11421 (dummy_frame_unwind): New variable.
11422 * frame.c: Include "frame-unwind.h".
11423 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11424 to use the new unwind field.
11425 (set_unwind_by_pc): Delete function.
11426 (create_new_frame, get_prev_frame): Set unwind field using
11427 frame_unwind_find_by_pc.
11428 (trad_frame_unwind, trad_frame_unwinder): New variables.
11429 * frame.h (trad_frame_unwind): Declare variable.
11430 (frame_id_unwind_ftype): Delete declaration.
11431 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11432 (struct frame_unwind): Declare opaque.
11433 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11434 register_unwind with a single unwind pointer.
11435 * frame-unwind.h, frame-unwind.c: New files.
11436 * Makefile.in (SFILES): Add frame-unwind.c.
11437 (frame_unwind_h): Define.
11438 (COMMON_OBS): Add frame-unwind.o.
11439 (frame-unwind.o): Specify dependencies.
11440 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11441
4efb68b1
AC
114422003-01-18 Andrew Cagney <ac131313@redhat.com>
11443
11444 * ada-valprint.c: Eliminate PTR.
11445 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11446 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11447 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11448 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11449 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11450 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11451 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11452
a84d24ee
AC
114532003-01-17 Andrew Cagney <ac131313@redhat.com>
11454
762f08a3
AC
11455 * main.c (captured_main): Don't use PTR.
11456 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11457 * gdbtypes.c (lookup_primitive_typename): Ditto.
11458 (lookup_struct_elt_type): Ditto.
11459 * f-valprint.c (info_common_command): Ditto.
11460 (list_all_visible_commons): Ditto.
11461 * jv-typeprint.c (java_type_print_base): Ditto.
11462
a84d24ee
AC
11463 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11464 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11465 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11466 i386-interix-nat.c and i386-interix-tdep.c. Rename
11467 m68klinux-nat.c and m68klinux-tdep.c. Rename
11468 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11469 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11470 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11471 * main.c (captured_main): Use xfree, not free.
11472
c170fb60
AC
114732003-01-16 Andrew Cagney <ac131313@redhat.com>
11474
11475 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11476 ID back using a parameter.
11477 * frame.c (frame_id_unwind): Update call.
11478 (frame_saved_regs_id_unwind): Update.
11479 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11480 * dummy-frame.h (struct frame_id): Add opaque declaration.
11481 (dummy_frame_id_unwind): Update declaration.
11482
867f3898
AC
114832003-01-15 Andrew Cagney <ac131313@redhat.com>
11484
11485 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11486
40622be8 114872003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11488
40622be8 11489 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11490
ae66c1fc
EZ
114912003-01-14 Elena Zannoni <ezannoni@redhat.com>
11492
997b089a 11493 Fix PR gdb/898
ae66c1fc
EZ
11494 * breakpoint.c (until_break_command): Add new argument. Use it to
11495 decide whether to stop only at the current frame or not.
11496 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11497 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11498 call.
11499 (advance_command): New function.
11500 (_initialize_infcmd): Update help string for 'until' command.
11501 Add new 'advance' command.
11502
a04257e6
DC
115032003-01-14 David Carlton <carlton@math.stanford.edu>
11504
11505 * linespec.c (decode_line_1): Normalize comments.
11506 (set_flags): Ditto.
11507 (locate_first_half): Ditto.
11508 (decode_compound): Ditto.
11509 (symtab_from_filename): Ditto.
11510 (decode_all_digits): Ditto.
11511 (decode_dollar): Ditto.
11512 (find_methods): Ditto.
11513 (find_toplevel_char): Ditto.
11514
1bac305b
AC
115152003-01-13 Andrew Cagney <ac131313@redhat.com>
11516
11517 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11518 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11519 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11520 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11521 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11522 * language.c, language.h, m32r-tdep.c: Update copyright.
11523 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11524 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11525 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11526 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11527 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11528 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11529
25caa7a8
EZ
115302003-01-13 Elena Zannoni <ezannoni@redhat.com>
11531
11532 * stabsread.h (process_later, resolve_cfront_continuation):
11533 Obsolete.
11534 Update copyright years.
11535 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11536 Update copyright year.
11537 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11538 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11539 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11540 Update copyright year.
11541 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11542 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11543 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11544 (parse_partial_symbols): Obsolete cfront support.
11545 * stabsread.c
11546 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11547 macros.
11548 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11549 read_cfront_baseclasses, read_cfront_member_functions,
11550 resolve_cfront_continuation,read_cfront_static_fields,
11551 copy_cfront_struct_fields): Obsolete functions.
11552 (define_symbol, read_one_struct_field): Obsolete cfront support.
11553 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11554 Update Copyright year.
11555
7789c6f5
EZ
115562003-01-13 Elena Zannoni <ezannoni@redhat.com>
11557
11558 * stack.c (print_frame_info, print_stack_frame_base_stub,
11559 print_stack_frame_base, show_and_print_stack_frame_stub,
11560 show_and_print_stack_frame, print_only_stack_frame_stub,
11561 print_only_stack_frame): Delete functions.
11562 (print_stack_frame_stub): Call print_frame_info instead of
11563 print_frame_info_base.
11564 (print_frame_info_base): Rename to print_frame_info.
11565 (backtrace_command_1): Call print_frame_info, instead of
11566 print_frame_info_base.
11567 (current_frame_command): Call print_stack_frame, instead of
11568 print_only_stack_frame.
11569 (frame_command): Call print_stack_frame, instead of
11570 show_and_print_stack_frame.
11571 (up_command): Ditto.
11572 (down_command): Ditto.
11573 * frame.h (print_only_stack_frame): Delete prototype.
11574 * infrun.c (normal_stop): Call print_stack_frame, instead of
11575 show_and_print_stack_frame.
11576 * thread.c (info_threads_command): Call print_stack_frame, instead
11577 of print_only_stack_frame.
11578
3f5a3016
AC
115792003-01-13 Andrew Cagney <ac131313@redhat.com>
11580
d99ba314
AC
11581 * README (Graphical interface to GDB): Update URL. Point at
11582 gdb/links/.
11583
3f5a3016
AC
11584 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11585 version match.
11586
083ae935
DJ
115872003-01-13 Daniel Jacobowitz <drow@mvista.com>
11588
11589 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11590 lines.
11591
5365276c
DJ
115922003-01-13 Daniel Jacobowitz <drow@mvista.com>
11593
11594 * thread-db.c (attach_thread): Prototype.
11595 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11596 thread information (ti), and valid flags (th_valid, ti_valid).
11597 (attach_thread): Move target_pid_to_str call to after the thread
11598 is added to GDB's list. Initialize the cache.
11599 (thread_get_info_callback, thread_db_map_id2thr)
11600 (thread_db_get_info): New functions.
11601 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11602 (thread_db_store_registers, thread_db_thread_alive)
11603 (thread_db_get_thread_local_address): Use them.
11604 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11605 of calling error() for threads in unknown state.
11606
11607 (clear_lwpid_callback): New function.
11608 (thread_db_resume): Use it to clear the cache.
11609
9fc30b6b
DJ
116102003-01-13 Daniel Jacobowitz <drow@mvista.com>
11611
11612 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11613 (resume_callback): Remove dead code.
11614
8f871025
AC
116152003-01-13 Andrew Cagney <ac131313@redhat.com>
11616
11617 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11618 predicate.
11619 * gdbarch.h, gdbarch.c: Regenerate.
11620 * stack.c (frame_info): Only initialize the saved registers when
11621 FRAME_INIT_SAVED_REGS_P.
11622 * frame.c (frame_saved_regs_register_unwind): Assert
11623 FRAME_INIT_SAVED_REGS_P.
11624 (deprecated_generic_get_saved_register): Ditto.
11625
3f565f1e
DJ
116262003-01-13 Daniel Jacobowitz <drow@mvista.com>
11627
11628 * source.c (openp): Squelch warning about "filename".
11629
072b1022
DJ
116302003-01-13 Daniel Jacobowitz <drow@mvista.com>
11631
11632 * source.c (openp): If the file does not exist don't necessarily
11633 search the path.
11634
973ccf8b
DJ
116352003-01-13 Daniel Jacobowitz <drow@mvista.com>
11636
11637 Fix PR gdb/872.
11638 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11639 (integer_types_same_name_p): New function.
11640 (rank_one_type): Use it.
11641 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11642
030292b7
DJ
116432003-01-13 Daniel Jacobowitz <drow@mvista.com>
11644
11645 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11646 variables.
11647 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11648 * configure.in: Add --with-sysroot.
11649 * configure: Regenerated.
11650 * main.c (gdb_sysroot): New variable.
11651 (captured_main): Initialize gdb_sysroot.
11652 * defs.h (gdb_sysroot): New extern declaration.
11653 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11654
afb5d334
MC
116552003-01-12 Michael Chastain <mec@shout.net>
11656
11657 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11658
751ceeb4
MC
116592003-01-12 Michael Chastain <mec@shout.net>
11660
11661 * top.c (print_gdb_version): Bump copyright year to 2003.
11662
94cd26f8
DC
116632003-01-12 David Carlton <carlton@bactrian.org>
11664
11665 * linespec.c (symtab_from_filename): Rename variable 's' to
11666 'file_symtab'.
11667
1ce79225
AC
116682003-01-12 Andrew Cagney <ac131313@redhat.com>
11669
11670 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11671 dummy frame.
11672 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11673
fa1fd571
AC
116742003-01-12 Andrew Cagney <ac131313@redhat.com>
11675
11676 * d10v-tdep.c: Include "gdb_assert.h".
11677 (d10v_store_return_value): Rewrite to match current interface.
11678 (d10v_extract_struct_value_address): Ditto.
11679 (d10v_extract_return_value): Ditto.
11680 (d10v_gdbarch_init): Set store_restore_value,
11681 extract_struct_value_address and extract_return_value.
11682
68b8d23e
JB
116832003-01-12 J. Brobecker <brobecker@gnat.com>
11684
11685 * hpread.c (set_namestring): New procedure replacing the
11686 SET_NAMESTRING macro.
11687 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11688 by calls to set_namestring.
11689
116902003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
11691
11692 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11693 a compilation warning.
11694 (hpread_process_one_debug_symbol): Likewise.
11695
88d262ca
DC
116962003-01-10 David Carlton <carlton@math.stanford.edu>
11697
11698 * linespec.c (decode_line_1): Rename variable 's' to
11699 'file_symtab'.
11700 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11701 (decode_dollar): Ditto.
11702 (decode_variable): Ditto.
11703 (symbol_found): Ditto.
11704
86669319
MC
117052003-01-09 Michael Chastain <mec@shout.net>
11706
11707 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11708
616a9dc4
CV
117092003-01-07 Corinna Vinschen <vinschen@redhat.com>
11710
11711 * win32-nat.c (set_process_privilege): New function.
11712 (child_attach): Call set_process_privilege() to enable the
11713 SE_DEBUG_NAME user privilege if available in process token.
11714
3269bcfa
JB
117152003-01-10 J. Brobecker <brobecker@gnat.com>
11716
11717 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11718 compilation error in the previous revision.
11719
2b0ee454
DC
117202003-01-09 David Carlton <carlton@math.stanford.edu>
11721
11722 * linespec.c: Update copyright.
11723
b3ba1b44
DJ
117242003-01-09 Daniel Jacobowitz <drow@mvista.com>
11725
11726 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11727 than inferior_ptid.
11728 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11729
4ef3f3be
AC
117302003-01-09 Andrew Cagney <ac131313@redhat.com>
11731
479ab5a0
AC
11732 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11733 Update comments.
11734 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11735 (frame_saved_regs_zalloc): Update.
11736 (frame_saved_regs_register_unwind): Update.
11737 (create_new_frame): Update.
11738 (get_prev_frame): Update.
11739 (frame_extra_info_zalloc): Update.
11740 (deprecated_get_frame_saved_regs): Update.
11741 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11742 * cris-tdep.c: Update comment.
11743
bde58177
AC
11744 * somsolib.h: Fix function indentation.
11745 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11746 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11747 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11748 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11749 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11750
4ef3f3be
AC
11751 * infrun.c (follow_fork): Use ISO C definition.
11752 * expprint.c (print_subexp): Use xfree instead of free.
11753 * charset.c: Include "gdb_string.h" instead of <string.h>.
11754 (register_iconv_charsets): Use ISO C definition.
11755 (host_charset, target_charset): Ditto.
11756 * Makefile.in (charset.o): Update dependencies.
11757 (mi-cmd-env.o): Update dependencies.
11758
1c615f7a
AC
117592003-01-08 Andrew Cagney <cagney@redhat.com>
11760
11761 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11762 get_frame_base.
11763
c9a1dc08
AC
117642003-01-08 Andrew Cagney <ac131313@redhat.com>
11765
11766 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11767 build directories. Save edited gdb output in Mbuild.log. If a
11768 build fails, remove any final GDB executable.
11769
dbad9d94
AC
117702003-01-08 Andrew Cagney <ac131313@redhat.com>
11771
11772 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11773 replacing hex constants with function names and stripping leading
11774 file name directory prefixes.
11775
8d357cca
AC
117762003-01-08 Andrew Cagney <cagney@redhat.com>
11777
11778 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11779 get_frame_base.
11780
bca02a8a
DC
117812003-01-08 David Carlton <carlton@math.stanford.edu>
11782
11783 * linespec.c (decode_line_1): Move code into decode_variable.
11784 (decode_variable): New function.
11785
7f8ab3a0
AC
117862003-01-08 Andrew Cagney <ac131313@redhat.com>
11787
11788 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11789
7b5849cc
AC
117902003-01-08 Andrew Cagney <cagney@redhat.com>
11791
11792 * cris-tdep.c (cris_frame_init_saved_regs): Use
11793 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11794 saved_regs buffer.
11795 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11796 (sh64_nofp_frame_init_saved_regs): Ditto.
11797 (sh_fp_frame_init_saved_regs): Ditto.
11798 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11799 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11800 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11801 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11802
72a5efb3
DJ
118032003-01-08 Daniel Jacobowitz <drow@mvista.com>
11804
11805 * minsyms.c (lookup_minimal_symbol): Update comment.
11806 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11807 (lookup_minimal_symbol_solib_trampoline): Likewise.
11808
11c02a10
AC
118092003-01-08 Andrew Cagney <cagney@redhat.com>
11810
aab3ea25
AC
11811 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11812 frame_relative_level.
11813
da50a4b7
AC
11814 * alpha-tdep.c: Use get_frame_extra_info.
11815 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11816 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11817 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11818 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11819
11c02a10
AC
11820 * alpha-tdep.c: Use get_next_frame.
11821 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11822 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11823 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11824 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11825 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11826 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11827 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11828
1e2330ba
AC
118292003-01-07 Andrew Cagney <cagney@redhat.com>
11830
11831 * alpha-tdep.c: Use get_frame_base.
11832 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11833 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11834 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11835 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11836 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11837 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11838 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11839 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11840
2d75187b
AC
118412003-01-07 Andrew Cagney <cagney@redhat.com>
11842
11843 * frame.c (deprecated_get_frame_context): New function.
11844 (deprecated_set_frame_context): New function.
11845 * frame.h (deprecated_get_frame_context): Declare.
11846 (deprecated_set_frame_context): Declare.
11847 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11848 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11849
483d36b2
AC
118502003-01-07 Andrew Cagney <cagney@redhat.com>
11851
11852 * frame.c (deprecated_set_frame_next_hack): New function.
11853 (deprecated_set_frame_prev_hack): New function.
11854 * frame.h (deprecated_set_frame_next_hack): Declare.
11855 (deprecated_set_frame_prev_hack): Declare.
11856 * mcore-tdep.c (analyze_dummy_frame): Use
11857 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11858 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11859
14e91ac5
DC
118602003-01-07 David Carlton <carlton@math.stanford.edu>
11861
11862 * linespec.c (decode_line_1): Move code into decode_dollar.
11863 (decode_dollar): New function.
11864
b0c6b05c
AC
118652003-01-07 Andrew Cagney <cagney@redhat.com>
11866
11867 * arm-tdep.c (arm_init_extra_frame_info): Use
11868 deprecated_update_frame_base_hack.
11869 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11870 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11871 (fix_frame_pointer): Ditto.
11872 (mn10300_analyze_prologue): Ditto.
11873
a00a19e9
AC
118742003-01-07 Andrew Cagney <cagney@redhat.com>
11875
11876 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11877 extra_info using frame_extra_info_zalloc.
11878 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11879 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11880 (sh64_init_extra_frame_info): Ditto.
11881 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11882 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11883 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11884 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11885 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11886 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11887 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11888 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11889 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11890 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11891 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11892 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11893
11894 * mn10300-tdep.c (analyze_dummy_frame): Use
11895 deprecated_set_frame_extra_info_hack.
11896 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11897
1fb4c65b
JB
118982003-01-07 J. Brobecker <brobecker@gnat.com>
11899
11900 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11901 class is not scText. These do not define "real" procedures.
11902 (parse_partial_symbols): Likewise.
11903
9fe7d6bf
MS
119042003-01-06 Michael Snyder <msnyder@redhat.com>
11905
11906 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11907
f6c609c4
AC
119082003-01-06 Andrew Cagney <ac131313@redhat.com>
11909
11910 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11911 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11912 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11913 deprecated_frame_xmalloc_with_cleanup.
11914 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11915 deprecated_frame_xmalloc.
11916 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11917 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11918
d995ff4b
AC
119192003-01-06 Andrew Cagney <cagney@redhat.com>
11920
84dc46cb
AC
11921 * x86-64-linux-tdep.c: Include "osabi.h".
11922 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11923
d995ff4b
AC
11924 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11925
66140c26
AC
119262003-01-06 Andrew Cagney <cagney@redhat.com>
11927
11928 * MAINTAINERS (Target Instruction Set Architectures): Update
11929 arm-elf. Can be built with -Werror, has been multiarched.
11930
11931 * value.h (unpack_long): Make buffer parameter constant.
11932 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11933 * scm-lang.h (scm_parse): Ditto.
11934 * defs.h (extract_typed_address, extract_address): Ditto.
11935 (extract_long_unsigned_integer): Ditto.
11936 * inferior.h (unsigned_pointer_to_address): Ditto.
11937 (signed_pointer_to_address): Ditto.
11938 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11939 * gdbarch.h, gdbarch.c: Regenerate.
11940 * findvar.c (extract_long_unsigned_integer): Update.
11941 (extract_address): Update.
11942 (extract_typed_address): Update.
11943 (unsigned_pointer_to_address): Update.
11944 * values.c (unpack_long): Update.
11945 (unpack_double): Update.
11946 (unpack_pointer): Update.
11947 (unpack_field_as_long): Update.
11948 * d10v-tdep.c (d10v_pointer_to_address): Update.
11949 * avr-tdep.c (avr_pointer_to_address): Update.
11950 * scm-lang.c (scm_unpack): Update.
11951 * findvar.c (signed_pointer_to_address): Update.
11952
b089b3da
ML
119532003-01-06 Michal Ludvig <mludvig@suse.cz>
11954
8ffd9b1b 11955 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11956 since it is in i386-tdep.c.
11957
aff87235
JB
119582003-01-06 J. Brobecker <brobecker@gnat.com>
11959
11960 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11961 failure introduced in the previous change.
11962
34f5e845
MC
119632003-01-05 Michael Chastain <mec@shout.net>
11964
11965 * README: Remove references to deleted remote-*.c files:
11966 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11967 remote-nrom.c, remote-os9k.c, remote-udi.c.
11968
28bcfd30
MK
119692003-01-05 Mark Kettenis <kettenis@gnu.org>
11970
11971 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11972 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11973 i386_get_longjmp_target.
11974
15a5b3ee
AC
119752003-01-05 Andrew Cagney <ac131313@redhat.com>
11976
11977 * arm-tdep.c (prologue_cache): Change to a pointer.
11978 (_initialize_arm_tdep): Allocate prologue_cache.
11979 (check_prologue_cache): Update.
11980 (save_prologue_cache): Update.
11981 (arm_gdbarch_init): Update.
11982
c263362b
DJ
119832003-01-04 Daniel Jacobowitz <drow@mvista.com>
11984
11985 * stabsread.c (update_method_name_from_physname): Call complaint()
11986 instead of error.
11987
51603483
DJ
119882003-01-04 Daniel Jacobowitz <drow@mvista.com>
11989
11990 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11991 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11992 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11993
11994 * blockframe.c: Include "gdbcmd.h" and "command.h".
11995 (backtrace_below_main): New variable.
11996 (file_frame_chain_valid, func_frame_chain_valid)
11997 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11998 (generic_func_frame_chain_valid): Remove functions.
11999 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12000 (_initialize_blockframe): New function.
12001 * Makefile.in (blockframe.o): Update dependencies.
12002 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12003 comment. Call frame_chain_valid ().
12004 * frame.h: Remove old prototypes. Add prototype for
12005 frame_chain_valid and update comments to match.
12006 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12007 Remove old comment.
12008 * gdbarch.h: Regenerated.
12009 * gdbarch.c: Regenerated.
12010
12011 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12012 set_gdbarch_frame_chain_valid.
12013 * avr-tdep.c (avr_gdbarch_init): Likewise.
12014 * cris-tdep.c (cris_gdbarch_init): Likewise.
12015 * frv-tdep.c (frv_gdbarch_init): Likewise.
12016 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12017 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12018 (i386_nw_init_abi): Likewise.
12019 (i386_gdbarch_init): Likewise.
12020 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12021 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12022 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12023 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12024 * mips-tdep.c (mips_gdbarch_init): Likewise.
12025 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12026 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12027 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12028 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12029 * s390-tdep.c (s390_gdbarch_init): Likewise.
12030 * sh-tdep.c (sh_gdbarch_init): Likewise.
12031 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12032 * v850-tdep.c (v850_gdbarch_init): Likewise.
12033 * vax-tdep.c (vax_gdbarch_init): Likewise.
12034 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12035
12036 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12037 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12038 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12039 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12040 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12041 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12042 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12043 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12044
b00a8037
DJ
120452002-01-04 Daniel Jacobowitz <drow@mvista.com>
12046
12047 * Makefile.in (acconfig_h): Remove incorrect macro.
12048 (config_h): Define.
12049 (osabi.o): Update dependencies.
12050 * configure.tgt: Set gdb_osabi based on target triplet.
12051 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12052 * configure: Regenerated.
12053 * config.in: Regenerated.
12054 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12055 (GDB_OSABI_DEFAULT): Define if not already defined.
12056 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12057 (set_osabi_string): New variables.
12058 (gdbarch_register_osabi): Add new OS ABI to
12059 gdb_osabi_available_names.
12060 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12061 (set_osabi, show_osabi): New functions.
12062 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12063
4be87837
DJ
120642003-01-04 Daniel Jacobowitz <drow@mvista.com>
12065
12066 * arch-utils.c (gdbarch_info_init): Set osabi to
12067 GDB_OSABI_UNINITIALIZED.
12068 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12069 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12070 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12071 * gdbarch.c: Regenerated.
12072 * gdbarch.h: Regenerated.
12073 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12074 there's no BFD.
12075 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12076 * osabi.h (enum gdb_osabi): Move to defs.h.
12077 (gdbarch_init_osabi): Update prototype.
12078 * defs.h (enum gdb_osabi): Moved here.
12079 * Makefile.in: Update dependencies.
12080
12081 * alpha-tdep.h: Don't include "osabi.h".
12082 (struct gdbarch_tdep): Remove osabi member.
12083 * alpha-tdep.c: Include "osabi.h".
12084 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12085 iterate over arches. Update call to gdbarch_init_osabi.
12086 (alpha_dump_tdep): Don't dump osabi.
12087 * alpha-linux-tdep.c: Include "osabi.h".
12088 * alpha-osf1-tdep.c: Include "osabi.h".
12089 * alphafbsd-tdep.c: Include "osabi.h".
12090 * alphanbsd-tdep.c: Include "osabi.h".
12091
12092 * arm-tdep.h: Don't include "osabi.h".
12093 (struct gdbarch_tdep): Remove osabi member.
12094 * arm-tdep.c: Include "osabi.h".
12095 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12096 iterate over arches. Update call to gdbarch_init_osabi.
12097 (arm_dump_tdep): Don't dump osabi.
12098 * arm-linux-tdep.c: Include "osabi.h".
12099 * armnbsd-tdep.c: Include "osabi.h".
12100
12101 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12102 Update call to gdbarch_init_osabi.
12103
12104 * i386-tdep.h: Don't include "osabi.h".
12105 (struct gdbarch_tdep): Remove osabi member.
12106 * i386-tdep.c: Include "osabi.h".
12107 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12108 iterate over arches. Update call to gdbarch_init_osabi.
12109 (i386_dump_tdep): Don't dump osabi.
12110 * i386-linux-tdep.c: Include "osabi.h".
12111 * i386-sol2-tdep.c: Include "osabi.h".
12112 * i386bsd-tdep.c: Include "osabi.h".
12113 * i386gnu-tdep.c: Include "osabi.h".
12114 * i386ly-tdep.c: Include "osabi.h".
12115 * i386nbsd-tdep.c: Include "osabi.h".
12116 * i386obsd-tdep.c: Include "osabi.h".
12117
12118 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12119 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12120 check osabi when iterating over arches. Update call to
12121 gdbarch_init_osabi.
12122 (mips_dump_tdep): Don't dump osabi.
12123
12124 * ns32k-tdep.h: Don't include "osabi.h".
12125 (struct gdbarch_tdep): Remove.
12126 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12127 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12128 allocate tdep. Update call to gdbarch_init_osabi.
12129 (ns32k_dump_tdep): Remove.
12130 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12131 * ns32knbsd-tdep.c: Include "osabi.h".
12132
12133 * ppc-tdep.h: Don't include "osabi.h".
12134 (struct gdbarch_tdep): Remove osabi member.
12135 * rs6000-tdep.c: Include "osabi.h".
12136 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12137 osabi when iterating over arches. Update call to
12138 gdbarch_init_osabi.
12139 (rs6000_dump_tdep): Don't dump osabi.
12140 * ppc-linux-tdep.c: Include "osabi.h".
12141 * ppcnbsd-tdep.c: Include "osabi.h".
12142
12143 * sh-tdep.h: Don't include "osabi.h".
12144 (struct gdbarch_tdep): Remove osabi member.
12145 * sh-tdep.c: Include "osabi.h".
12146 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12147 iterate over arches. Update call to gdbarch_init_osabi.
12148 (sh_dump_tdep): Don't dump osabi.
12149 * shnbsd-tdep.c: Include "osabi.h".
12150
12151 * sparc-tdep.c: Include "osabi.h".
12152 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12153 iterate over arches. Update call to gdbarch_init_osabi.
12154 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12155 tdep structure.
12156
12157 * vax-tdep.h: Don't include "osabi.h".
12158 (struct gdbarch_tdep): Remove.
12159 * vax-tdep.c: Include "osabi.h".
12160 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12161 iterate over arches. Don't allocate tdep. Update call
12162 to gdbarch_init_osabi.
12163 (vax_dump_tdep): Remove.
12164 (_initialize_vax_tdep): Update call to gdbarch_register.
12165
a881cf8e
DJ
121662003-01-04 Daniel Jacobowitz <drow@mvista.com>
12167
12168 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12169 entirely.
12170 (breakpoint_re_set_one): Don't fetch the value for a disabled
12171 watchpoint.
12172
1e698235
DJ
121732003-01-04 Daniel Jacobowitz <drow@mvista.com>
12174
12175 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12176 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12177 (COERCE_FLOAT_TO_DOUBLE): Remove.
12178 * gdbarch.c: Regenerate.
12179 * gdbarch.h: Regenerate.
12180 * Makefile.in: Remove value_h from gdbarch_h.
12181 * valops.c (coerce_float_to_double): New variable.
12182 (default_coerce_float_to_double): Remove.
12183 (standard_coerce_float_to_double): Remove.
12184 (value_arg_coerce): Use coerce_float_to_double.
12185 (_initialize_valops): Add "set coerce-float-to-double".
12186 * value.h (default_coerce_float_to_double): Remove prototype.
12187 (standard_coerce_float_to_double): Remove prototype.
12188
12189 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12190 prototyped.
12191 * mdebugread.c (parse_symbol): Likewise.
12192 * stabsread.c (define_symbol): Mark all functions as prototyped.
12193
12194 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12195 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12196 set_gdbarch_coerce_float_to_double.
12197 * arm-tdep.c (arm_gdbarch_init): Likewise.
12198 * frv-tdep.c (frv_gdbarch_init): Likewise.
12199 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12200 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12201 * mips-tdep.c (mips_gdbarch_init): Likewise.
12202 (mips_coerce_float_to_double): Remove.
12203 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12204 (rs6000_coerce_float_to_double): Remove.
12205 * s390-tdep.c (s390_gdbarch_init): Likewise.
12206 * sh-tdep.c (sh_gdbarch_init): Likewise.
12207 (sh_coerce_float_to_double): Remove.
12208 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12209 (sparc_coerce_float_to_double): Remove.
12210 * v850-tdep.c (v850_gdbarch_init): Likewise.
12211 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12212 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12213 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12214 (hppa_coerce_float_to_double): Remove prototype.
12215 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12216
f436a26a
DJ
122172003-01-04 Daniel Jacobowitz <drow@mvista.com>
12218
12219 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12220
248f8055
DJ
122212003-01-04 Daniel Jacobowitz <drow@mvista.com>
12222
12223 Suggested by Stewart Brown <sb24@avaya.com>:
12224 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12225 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12226 (c_type_print_varspec_suffix): Likewise.
12227
72cfdc76
MK
122282003-01-04 Mark Kettenis <kettenis@gnu.org>
12229
bfd260bb
MK
12230 * configure.in: Don't set and AC_SUBST SUBDIRS.
12231 * configure: Regenerated.
12232
72cfdc76
MK
12233 * configure.in: Remove code dealing with shared libraries.
12234 * Makefile.in: Remove HLDFLAGS and HLDENV.
12235 * configure: Regenerated.
12236
c8b8a898
AC
122372003-01-04 Andrew Cagney <ac131313@redhat.com>
12238
12239 * frame.c (deprecated_frame_xmalloc): New function.
12240 (deprecated_set_frame_saved_regs_hack): New function.
12241 (deprecated_set_frame_extra_info_hack): New function.
12242 * frame.h (deprecated_frame_xmalloc): Declare.
12243 (deprecated_set_frame_saved_regs_hack): Declare.
12244 (deprecated_set_frame_extra_info_hack): Declare.
12245
14abd0fb
MK
122462003-01-04 Mark Kettenis <kettenis@gnu.org>
12247
8ee53726
MK
12248 * configure.in: Move code that provides the --enable-gdbtk option
12249 right after the code that handles the --enable-tui option, and
12250 polish it somewhat.
12251 * configure: Regenerated.
12252
14abd0fb
MK
12253 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12254 AC_CHECK_FUNCS and remove the old check for pread64.
12255 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12256 * acconfig.h (_GNU_SOURCE): Add.
12257 (HAVE_PREAD64): Remove.
12258 * configure, aclocal.m4, config.in: Regenerated.
12259
b2fb4676
AC
122602003-01-03 Andrew Cagney <ac131313@redhat.com>
12261
12262 * alpha-tdep.c: Use get_frame_saved_regs.
12263 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12264 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12265 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12266 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12267 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12268
8dcde887
MK
122692003-01-03 Mark Kettenis <kettenis@gnu.org>
12270
12271 * configure.in: Remove all use of the SUBDIRS variable; add
12272 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12273 code providing the --enable-multi-ice option, and move it right in
12274 front of the code that checks whether gdbserver is supported.
12275 Polish that too.
12276 * configure: Regenerated.
12277 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12278 @SUBDIRS@.
12279
8ccd593b
AC
122802003-01-03 Andrew Cagney <cagney@redhat.com>
12281
12282 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12283 * avr-tdep.c, cris-tdep.c: Ditto.
12284 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12285 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12286
91151a06
MK
122872003-01-03 Mark Kettenis <kettenis@gnu.org>
12288
12289 * configure.in: Remove --enable-netrom option.
12290 * configure: Regenerated.
12291
8fe84d01
MK
122922003-01-03 Mark Kettenis <kettenis@gnu.org>
12293
12294 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12295 declaration for `struct re_pattern_buffer' instead.
12296 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12297
f0394be6
JB
122982003-01-03 J. Brobecker <brobecker@gnat.com>
12299
12300 * mdebugread.c (parse_symbol): Count until the stEnd matching
12301 the structure name.
12302
27e9bf90
MK
123032003-01-02 Mark Kettenis <kettenis@gnu.org>
12304
93d331ba
MK
12305 * configure.in: Remove --with-cpu option.
12306 subscripts. Remove evil changequotes here.
12307 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12308 * config.in, configure: Regenerated.
8ffd9b1b 12309
27e9bf90
MK
12310 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12311 * configure.in: Cleanup section that sources GDB and BFD configure
12312 subscripts. Remove evil changequotes here.
12313 * config.in, configure: Regenerated.
12314
50abf9e5
AC
123152003-01-02 Andrew Cagney <ac131313@redhat.com>
12316
12317 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12318 frame accessor methods.
12319 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12320 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12321 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12322 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12323 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12324 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12325 * z8k-tdep.c: Ditto.
8ffd9b1b 12326
287c1a40
MK
123272003-01-02 Mark Kettenis <kettenis@gnu.org>
12328
f5dbc56d
MK
12329 * configure.in: Remove UI_OUT configuration code.
12330 * ada-lang.c: Update assuming UI_OUT is always true.
12331 * Makefile.in (UIOUT_CFLAGS): Remove.
12332 * configure: Regenerated.
12333 * TODO: Remove blurb about elimination of -DUI_OUT.
12334
627af7ea
MK
12335 * configure.in: Move code that provides the --enable-gdbcli,
12336 --enable-gdbmi options right before the code that handles the
12337 --enable-tui option. Polish a bit.
12338 * configure: Regenerated.
12339
06825bd1
MK
12340 * configure.in: Rewrite check for GNU regex and the
12341 --without-included regex option, and move it into the "Checks for
12342 library functions" section. This makes us use the system regex
12343 again by default on systems with version 2 of the GNU C library.
12344 This was apparently broken.
12345 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12346 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12347 * config.in, configure: Regenerated.
12348
287c1a40
MK
12349 * configure.in: Move code that provides the --enable-tui option
12350 before the "Checks for libraries" section. Polish the code
12351 somewhat and set need_curses to yes if we build the TUI. Rewrite
12352 code that looks for a library providing termcap functionality to
12353 match more closely what's done in the Readline library, and move
12354 it into to the "Checks for libraries" section.
12355 * configure: Regenerated.
12356 * Makefile.in (TERMCAP): Remove variable.
12357 * config/i386/go32.mh (TERMCAP): Remove variable.
12358
684e56bf
AC
123592003-01-02 Andrew Cagney <ac131313@redhat.com>
12360
12361 * MAINTAINERS: Mention gdb_mbuild.sh.
12362 * gdb_mbuild.sh: Rewrite.
12363
e1ea1d75
MK
123642003-01-02 Mark Kettenis <kettenis@gnu.org>
12365
12366 * configure.in: Fix typo in last change.
12367 * config.in, configure: Regenerated.
12368
1b831c93
AC
123692003-01-02 Andrew Cagney <ac131313@redhat.com>
12370
12371 * valarith.c (value_binop): Delete obsolete code and comments.
12372 * configure.host: Ditto.
12373 * buildsym.h (make_blockvector): Ditto.
12374 * buildsym.c (make_blockvector): Ditto.
12375 * defs.h (enum language): Ditto.
12376 (chill_demangle): Ditto.
12377 * elfread.c (elf_symtab_read): Ditto.
12378 * dwarfread.c (CHILL_PRODUCER): Ditto.
12379 (set_cu_language): Ditto.
12380 (handle_producer): Ditto.
12381 * expprint.c (print_subexp): Ditto.
12382 * gdbtypes.c (chill_varying_type): Ditto.
12383 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12384 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12385 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12386 (chill_varying_type): Ditto.
12387 * language.h (_LANG_chill): Ditto.
12388 * language.c (binop_result_type, integral_type): Ditto.
12389 (character_type, string_type, structured_type): Ditto.
12390 (lang_bool_type, binop_type_check): Ditto.
12391 * stabsread.h (os9k_stabs): Ditto.
12392 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12393 (define_symbol, read_type, read_struct_fields): Ditto.
12394 (read_array_type, read_enum_type, read_huge_number): Ditto.
12395 (read_range_type, start_stabs): Ditto.
12396 * symfile.c (init_filename_language_table): Ditto.
12397 (add_psymbol_with_dem_name_to_list): Ditto.
12398 * symtab.c (symbol_init_language_specific): Ditto.
12399 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12400 * symtab.h (struct general_symbol_info): Ditto.
12401 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12402 * typeprint.c (typedef_print): Ditto.
12403 * utils.c (fprintf_symbol_filtered): Ditto.
12404 * valops.c (value_cast, search_struct_field, value_slice): Delete
12405 obsolete code.
12406 (varying_to_slice): Delete function.
12407 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12408 (varying_to_slice): Delete declaration.
12409 * MAINTAINERS: Update.
12410
8bb2c122
MK
124112003-01-02 Mark Kettenis <kettenis@gnu.org>
12412
97bf5e38
MK
12413 * configure.in: Reorganize "Checks for library functions section"
12414 a bit. Remove check for `btowc' and `isascii' functions.
12415 * configure: Regenerated.
12416
5ee754fc
MK
12417 * acconfig.h (_MSE_INT_H): Remove.
12418 * configure.in: Create "Checks for header files" section, and move
12419 appropriate tests there. Don't check for objlist.h, wchar.h,
12420 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12421 misdetection fix. Also add "Checks for types", "Checks for
12422 compiler characteristics" and "Checks for library functions"
12423 sections.
12424 * config.in, configure: Regenerated.
12425
8bb2c122
MK
12426 * configure.in: Create "Checks for programs" section, and move
12427 appropriate tests there.
12428
9a156167
MK
124292003-01-01 Mark Kettenis <kettenis@gnu.org>
12430
12431 * configure.in: Create "Checks for libraries" section, and move
12432 appropriate tests there. Cleanup check for wctype in libw. Use
12433 AC_SEARCH_LIBS to see whether we need libsocket.
12434 * configure: Regenerated.
12435
a80e2bcb 12436For older changes see ChangeLog-2002
c906108c
SS
12437\f
12438Local Variables:
12439mode: change-log
12440left-margin: 8
12441fill-column: 74
12442version-control: never
12443End:
This page took 1.69235 seconds and 4 git commands to generate.