* MAINTAINERS (write after approval): Add myself.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a4ab2b5d
JG
12003-09-25 Jerome Guitton <guitton@act-europe.fr>
2
3 * MAINTAINERS (write after approval): Add myself.
4
3f244638
AS
52003-09-25 Andreas Schwab <schwab@suse.de>
6
7 * m68k-tdep.c: Include "dwarf2-frame.h".
8 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
9 * Makefile.in (m68k-tdep.o): Update dependencies.
10
1c0159e0
CV
112003-09-25 Corinna Vinschen <vinschen@redhat.com>
12
13 * sh-tdep.c (struct frame_extra_info): Remove.
14 (struct sh_frame_cache): New structure.
15 (GET_SOURCE_REG): New macro extracting source register of an opcode.
16 (GET_TARGET_REG): Ditto but target register.
17 (GET_PUSHED_REG): Remove.
18 (IS_MOV_ARG_TO_REG): New macro.
19 (IS_MOV_ARG_TO_IND_R14): New macro.
20 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
21 (IS_MOVW_PCREL_TO_REG): New macro.
22 (IS_MOVL_PCREL_TO_REG): New macro.
23 (IS_SUB_REG_FROM_SP): New macro.
24 (IS_ARG_MOV): Remove.
25 (IS_MOV_TO_R14): Remove.
26 (IS_RESTORE_FP): New macro.
27 (IS_RTS): New macro.
28 (IS_LDS): New macro.
29 (IS_MOV_FP_SP): New macro.
30 (IS_ADD_REG_TO_FP): New macro.
31 (IS_ADD_IMM_FP): New macro.
32 (sh_skip_prologue_hard_way): Remove.
33 (sh_saved_pc_after_call): Remove.
34 (sh_frame_chain): Remove.
35 (sh_find_callers_reg): Remove.
36 (sh_nofp_frame_init_saved_regs): Remove.
37 (sh_fp_frame_init_saved_regs): Remove.
38 (sh_init_extra_frame_info): Remove.
39 (sh_analyze_prologue): New function.
40 (sh_skip_prologue): Remove deprecated code. Rely on new function
41 sh_analyze_prologue when after_prologue fails.
42 (sh_frame_saved_pc): Remove.
43 (sh_alloc_frame_cache): New function.
44 (sh_frame_cache): Ditto.
45 (sh_frame_prev_register): Ditto.
46 (sh_frame_this_id): Ditto.
47 (sh_frame_unwind): New structure defining the heuristic frame
48 sniffer interface.
49 (sh_frame_sniffer): New function.
50 (sh_unwind_sp): Ditto.
51 (sh_unwind_pc): Ditto.
52 (sh_unwind_dummy_id): Ditto.
53 (sh_frame_base_address): Ditto.
54 (sh_frame_base): New structure defining new frame base code.
55 (sh_in_function_epilogue_p): New function.
56 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
57 code and to call all new code instead. Initialize dwarf2 and
58 heuristic frame sniffer.
59
5f9769d1
PH
602003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
61
62 * parser-defs.h (struct exp_descriptor): New definition, containing
63 language-specific info for printing, prefixifying, dumping, and
64 evaluating expressions.
65 (exp_descriptor_standard): Declare new variable.
66 (print_subexp): Make global and declare here (from expprint.c).
67 (dump_subexp): Ditto.
68 (dump_subexp_body_standard): Declare.
69 (operator_length_standard): Declare.
70 (op_name_standard): Declare.
71 (print_subexp): Declare.
72 (print_subexp_standard): Declare.
73
74 * language.h (struct language_defn): Add la_exp_desc field to hold
75 pointer to table for language-specific operators.
76 Remove evaluate_exp field, which is now in struct exp_descriptor.
77
78 * parse.c (operator_length): Move most code to new
79 operator_length_standard function. Use language-specific information.
80 (operator_length_standard): New function taking most code from
81 operator_length.
82 (exp_descriptor_standard): New constant.
83
84 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
85 and OP_EXTENDED_LAST.
86
87 * expprint.c (print_subexp): Use language-specific print_subexp.
88 Make global; remove static declaration.
89 Move most code to print_subexp_standard.
90 (print_subexp_standard): New function, containing code formerly in
91 print_subexp.
92 (op_name): Add expression to argument signature.
93 Use langauge-specific op_name.
94 Move most code to op_name_standard.
95 (op_name_standard): New function, containing code formerly in op_name.
96 (dump_subexp): Use new version of op_name function.
97 Use language-specific dump_subexp_body, and move most existing code to
98 dump_subexp_body_standard.
99 (dump_raw_expression): Use new op_name interface.
100 (dump_subexp_body): Move most code to dump_subexp_body_standard.
101 (dump_subexp_body_standard): New function, containing code formerly
102 in dump_subexp_body.
103
104 * language.c (unknown_language): Add default la_exp_desc field and
105 remove evaluate_exp field.
106 (auto_language): Ditto.
107 (local_language): Ditto.
108 * f-lang.c (f_language_defn): Ditto.
109 * c-lang.c (c_language_defn): Ditto.
110 (cplus_language_defn): Ditto.
111 (asm_language_defn): Ditto.
112 (minimal_language_defn): Ditto.
113 * p-lang.c (pascal_language_defn): Ditto.
114 * m2-lang.c (m2_language_defn): Ditto.
115 * objc-lang.c (objc_language_defn): Ditto.
116
117 * jv-lang.c (exp_descriptor_java): New variable, containing
118 Java-specific expression evaluator.
119 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
120 field.
121 * scm-lang.c (exp_descriptor_scm): New variable, containing
122 Scheme-specific expression evaluator.
123 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
124 field.
125 * objc-lang.c (print_object_command): Take evaluate_exp from the
126 la_exp_desc field.
127
128 * Makefile.in (eval.o): Add dependency on parser-defs.h.
129
130 * eval.c: Include parser-defs.h for the full declaration of
131 la_exp_desc's type.
132 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
133
24daaebc
PH
1342003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
135
136 * parser-defs.h (operator_length): Declare.
137
138 * parse.c (length_of_subexp): Use operator_length to get operator
139 lengths and arities for operators.
140 Move most code to new operator_length function.
141 (operator_length): New function absorbing most code from
142 length_of_subexp.
143 (prefixify_subexp): Remove large case and use operator_length instead.
144 (parse_exp_1): Use renamings:
145 dump_prefix_expression => dump_raw_expression and
146 dump_postfix_expression => dump_prefix_expression.
147
148 * expression.h (dump_prefix_expression): Rename to ...
149 (dump_raw_expression): New name.
150 (dump_postfix_expression): Rename to ...
151 (dump_prefix_expression): New name.
152
153 * expprint.c (dump_subexp): Make global. Add comment.
154 Move most existing code to dump_subexp_body.
155 (dump_subexp_body): New function.
156 (dump_prefix_expression): Rename to dump_raw_expression.
157 Remove attempt to print the expression via print_expression: it can't
158 work before the expression is prefixified.
159 (dump_raw_expression): Renamed from dump_prefix_expression.
160 (dump_postfix_expression): Rename to dump_prefix_expression, since
161 that's what it does.
162 Remove 'note' parameter, since this routine must be used on
163 prefixified expression.
164 (dump_prefix_expression): Renamed from dump_postfix_expression.
165
8c2957c4
JB
1662003-09-22 Jim Blandy <jimb@redhat.com>
167
168 * dwarf2read.c (read_array_type): When building the type for an
169 array of unspecified length, make sure to choose the upper bound
170 so that the array's total length comes out to be zero --- that's
171 how we represent such arrays.
172
592e3010
MC
1732003-09-22 Michael Chastain <mec@shout.net>
174
175 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
176
365c70b1
JJ
1772003-09-22 Jeff Johnston <jjohnstn@redhat.com>
178
179 * top.c (quit_force): Fix indirect call to quit_target so
180 a struct qt_args pointer is passed.
181
5d6eb653
AC
1822003-09-22 Andrew Cagney <cagney@redhat.com>
183
184 * arch-utils.h (init_frame_pc_noop): Delete declaration.
185 * arch-utils.c (init_frame_pc_noop): Delete function.
186 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
187 "init_frame_pc".
188 * mips-tdep.c (mips_gdbarch_init): Ditto.
189 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
190 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
191 declaration.
192 (DEPRECATED_INIT_FRAME_PC): Delete macro.
193 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
194 declaration.
195 (DEPRECATED_INIT_FRAME_PC): Delete macro.
196
b222a67f
AG
1972003-09-22 Anthony Green <green@redhat.com>
198
199 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
200 declaration.
201
d5b5ac79
AC
2022003-09-20 Andrew Cagney <cagney@redhat.com>
203
deafb061
AC
204 * breakpoint.c: Eliminate ARGSUSED.
205 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
206 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
207 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
208 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
209 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
210 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
211 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
212 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
213 * wince.c, remote-vx.c: Ditto.
214
d5b5ac79
AC
215 * cli/cli-script.c: Remove "register" attributes.
216 * config/pa/tm-hppa.h: Ditto.
217 * cli/cli-decode.c: Ditto.
218 * cli/cli-cmds.c: Ditto.
219
c6316faa
AC
2202003-09-19 Andrew Cagney <cagney@redhat.com>
221
222 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
223 DEPRECATED_NPC_REGNUM.
224 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
225
f4f99b11
CF
2262003-09-19 Christopher Faylor <cgf@redhat.com>
227
228 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
229
1708f284
JB
2302003-09-19 Jim Blandy <jimb@redhat.com>
231
232 * macrotab.c (macro_include): Use the correct comparison to find
233 the appropriate place for this inclusion in the list.
234
b9fbf434
AC
2352003-09-19 Andrew Cagney <cagney@redhat.com>
236
237 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
238 (DEPRECATED_HPUX_TEXT_END): Define.
239 (deprecated_hpux_text_end): Declare.
240 (struct target_ops): Declare opaque.
241 * hppah-nat.c (text_end): Make static.
242 (deprecated_hpux_text_end): New function.
243 * exec.c (text_end): Delete global variable.
244 (NEED_TEXT_START_END): Do not define.
245 (exec_file_attach): Replace code computing "text_end" code with
246 call to DEPRECATED_HPUX_TEXT_END.
247
5b03f266
AC
2482003-09-19 Andrew Cagney <cagney@redhat.com>
249
250 * utils.c (align_up, align_down): New functions.
251 * defs.h (align_up, align_down): Declare.
252 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
253 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
254 and "align_down".
255 (round_up, round_down): Delete functions.
256 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
257 "align_down".
258 (ROUND_DOWN, ROUND_UP): Delete macros.
259 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
260 * h8300-tdep.c: Replace "round_up" and "round_down" with
261 "align_up" and "align_down".
262 (round_up, round_down): Delete macros.
263 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
264 "align_down".
265 (ROUND_UP, ROUND_DOWN): Delete macros.
266
51db5742
JB
2672003-09-18 J. Brobecker <brobecker@gnat.com>
268
269 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
270 hard-coded constant. Use the proper machine name instead.
271
77949794
AC
2722003-09-17 Andrew Cagney <cagney@redhat.com>
273
274 * sparc-tdep.c (legacy_register_name): Delete function.
275 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
276 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
277 * infcmd.c (gdb_register_name): Delete variable.
278 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
279 REGISTER_NAME and "tm.h".
280 * gdbarch.h, gdbarch.c: Regenerate.
281 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
282 REGISTER_NAMES in comments.
283 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
284 * m68klinux-nat.c (regmap): Ditto.
285
b55c33cc
JB
2862003-09-17 Jim Blandy <jimb@redhat.com>
287
288 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
289
957e27ac
AC
2902003-09-17 Andrew Cagney <cagney@redhat.com>
291
292 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
293 (ppcnbsd_init_abi): Set "use_struct_convention" to
294 "ppcnbsd_use_struct_convention".
295
192cb3d4
MK
2962003-09-17 Mark Kettenis <kettenis@gnu.org>
297
298 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
299 * gdbarch.h, gdbarch.c: Regenerate.
300 (stabs_argument_has_addr): New architecture method.
301 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
302 * arch-utils.c: Include "buildsym.h".
303 (default_stabs_argument_has_addr): New function.
304 * stabsread.c (define_symbol): Use stabs_argument_has_addr
305 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
306
efe59759
AC
3072003-09-17 Andrew Cagney <cagney@redhat.com>
308
309 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
310 * gdbarch.h, gdbarch.c: Regenerate.
311 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
312 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
313 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
314 * sparcnbsd-tdep.c: Update.
315
62700349
AC
3162003-09-17 Andrew Cagney <cagney@redhat.com>
317
318 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
319 * gdbarch.h, gdbarch.c: Regenerate.
320 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
321 * d10v-tdep.c, frame.c: Update.
322 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
323 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
324 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
325 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
326 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
327 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
328 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
329 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
330 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
331 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
332 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
333 * config/pa/nm-hppah.h: Update.
334
b9ff3018
AC
3352003-09-16 Andrew Cagney <cagney@redhat.com>
336
337 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
338 "use_struct_convention" to "ppc_linux_use_struct_convention".
339 (ppc_linux_use_struct_convention): New function.
340 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
341 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
342 "rs6000_use_struct_convention".
343 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
344 declaration.
345 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
346 Delete function.
347
aa1ee363
AC
3482003-09-16 Andrew Cagney <cagney@redhat.com>
349
350 * buildsym.c: Remove more occurances of "register".
351 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
352 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
353 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
354 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
355 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
356 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
357 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
358 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
359
f2ea0907
CV
3602003-09-16 Corinna Vinschen <vinschen@redhat.com>
361
362 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
363 numbers to enumeration values.
364 * sh-tdep.c: Accomodate above change.
365 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
366 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
367 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
368 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
369 (IS_FPUSH): Rename from IS_FMOV.
370 (sh_extract_struct_value_address): Remove useless comment.
371 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
372 instead of own local values.
373 (sh_dump_tdep): Remove.
374 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
375 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
376
1c704f11
AC
3772003-09-15 Andrew Cagney <cagney@redhat.com>
378
379 * doublest.c (convert_floatformat_to_doublest): No longer need to
380 cast "exp_bias" to an int. Reverts 2002-12-04 change.
381
ac79b88b
DJ
3822003-09-15 Daniel Jacobowitz <drow@mvista.com>
383
384 * values.c (unpack_double): Call floatformat_is_valid.
385
1c671366
MK
3862003-09-15 Mark Kettenis <kettenis@gnu.org>
387
de5227fb
MK
388 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
389 ps_strings into a long.
390
1c671366
MK
391 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
392 _initialize_am64fbsd_nat.
393
a604369a
KB
3942003-09-15 Kevin Buettner <kevinb@redhat.com>
395
396 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
397 associated with DW_AT_ranges attribute is out of bounds.
398
b3cacbee
DL
3992003-09-15 David Lecomber <dsl@sources.redhat.com>
400
401 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
402
d0f37bb2
MC
4032003-09-14 Michael Chastain <mec@shout.net>
404
405 * config/m68k/nm-apollo68v.h: Delete.
406 * config/m68k/xm-apollo68v.h: Delete.
407
69517000
AC
4082003-09-14 Andrew Cagney <cagney@redhat.com>
409
410 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
411 * dcache.c: Update copyrights and descriptions.
412 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
413
ef8b349d
AC
4142003-09-14 Andrew Cagney <cagney@redhat.com>
415
416 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
417 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
418
52f0bd74
AC
4192003-09-14 Andrew Cagney <cagney@redhat.com>
420
421 * alpha-nat.c: Remove some occurances of "register".
422 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
423 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
424 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
425 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
426 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
427 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
428 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
429 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
430 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
431 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
432 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
433 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
434 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
435 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
436 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
437 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
438 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
439 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
440 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
441 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
442 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
443 * values.c, vax-tdep.c, xcoffread.c: Ditto.
444
4a4b3fed
AC
4452003-09-13 Andrew Cagney <cagney@redhat.com>
446
447 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
448 * ppc-tdep.h (struct regcache): Declare opaque.
449 * objfiles.h (struct objfile_data): Declare opaque.
450 * cp-support.h (struct objfile): Declare opaque.
451 * linux-nat.h (target_waitstatus): Declare opaque.
452
2110b94f
MK
4532003-09-14 Mark Kettenis <kettenis@gnu.org>
454
1c671366
MK
455 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
456 (stabs_argument_has_addr): New architecture method.
457 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
458 * arch-utils.c: Include "buildsym.h".
459 (default_stabs_argument_has_addr): New function.
460 * stabsread.c (define_symbol): Use stabs_argument_has_addr
461 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
462
2110b94f
MK
463 * cris-tdep.c (cris_gdbarch_init): Set
464 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
465 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
466 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
467 * mips-tdep.c (mips_gdbarch_init): Likewise.
468 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
469 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
470
48436ce6
AC
4712003-09-13 Andrew Cagney <cagney@redhat.com>
472
473 * values.c (using_struct_return): Delete "function" and "funcaddr"
474 parameters.
475 * value.h (using_struct_return): Update declaration.
476 * infcmd.c (finish_command_continuation): Update.
477 (finish_command): Update.
478 * infcall.c (call_function_by_hand): Update.
479 * eval.c (evaluate_subexp_standard): Update.
480
403d9909
CF
4812003-09-13 Christopher Faylor <cgf@redhat.com>
482
483 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
484 SSE registers since gdb will not operate correctly without this.
485 Restore include file ordering munged in previous change.
486 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
487
ebf7d56b
MK
4882003-09-13 Mark Kettenis <kettenis@gnu.org>
489
8e823e25
MK
490 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
491 REG_STRUCT_HAS_ADDR.
492 * gdbarch.c, gdbarch.h: Updated.
493 * infcall.c (call_function_by_hand): Update.
494 * stabsread.c (define_symbol): Updated.
495
ebf7d56b
MK
496 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
497
d3f13f72
CF
4982003-09-12 Christopher Faylor <cgf@redhat.com>
499
500 * win32-nat.c: Reorganize so that defines used by target headers are
501 actually defined by the system headers.
502 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
503 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
504
14f75137
JB
5052003-09-12 Jim Blandy <jimb@redhat.com>
506
d646061f
JB
507 * dbxread.c (read_dbx_symtab): Don't report an internal error if
508 the file has no .data, .bss, or .rodata sections. Instead wait
509 until we see a variable alleged to live in one of those sections.
510
2a13f9bc
JB
511 * dbxread.c (read_dbx_symtab): If we have no .data section and no
512 .bss section, presume that any variables we find live in the
513 .rodata section.
514
4f49b26b
JB
515 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
516 offsets for global and static variables.
517
14f75137
JB
518 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
519 symbol types are, by definition, in the .data section, so it is
520 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
521 If there is no .data section, there should be no N_DATA or N_DATA
522 | N_EXT symbols.
523
212c460c
MK
5242003-09-12 Mark Kettenis <kettenis@gnu.org>
525
526 * amd64fbsd-tdep.c: Fix sigtramp recognition.
527 (amd64fbsd_sigcontext_addr): Rewrite.
528 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
529 with correct values.
530 (amd64fbsd_sc_reg_offset): Initialize with correct values.
531 (amd64fbsd_init_abi): Fix typo.
532
68856ea3
AC
5332003-09-12 Andrew Cagney <cagney@redhat.com>
534
535 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
536 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
537
627b3ba2
AC
5382003-09-12 Andrew Cagney <cagney@redhat.com>
539
540 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
541 "entry_file_highpc". Update comments.
542 * defs.h (deprecated_inside_entry_file): Rename
543 "inside_entry_file".
544 * blockframe.c (deprecated_inside_entry_file): Rename
545 "inside_entry_file".
546 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
547 * vax-tdep.c (vax_frame_chain): Update.
548 * sh64-tdep.c (sh64_frame_chain): Update.
549 * sh-tdep.c (sh_frame_chain): Update.
550 * rs6000-tdep.c (rs6000_frame_chain): Update.
551 * ns32k-tdep.c (ns32k_frame_chain): Update.
552 * mips-tdep.c (mips_frame_chain): Update.
553 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
554 * m32r-tdep.c (m32r_frame_this_id): Update.
555 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
556 * frv-tdep.c (frv_frame_this_id): Update.
557 * d10v-tdep.c (d10v_frame_this_id): Update.
558 * cris-tdep.c (cris_frame_chain): Update.
559 * blockframe.c (legacy_frame_chain_valid): Update.
560 * avr-tdep.c (avr_frame_this_id): Update.
561 * arm-tdep.c (arm_prologue_this_id): Update.
562 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
563 * objfiles.c (objfile_relocate): Update.
564 * mipsread.c (mipscoff_symfile_read): Update.
565 (mipscoff_symfile_read): Update.
566 * mdebugread.c (parse_partial_symbols): Update.
567 * dwarfread.c (read_file_scope): Update.
568 * dwarf2read.c (read_file_scope): Update.
569 * dbxread.c (read_dbx_symtab): Update.
570 (read_dbx_symtab): Update.
571 * coffread.c (complete_symtab): Update.
572
b0abbc58
JJ
5732003-09-12 Jeff Johnston <jjohnstn@redhat.com>
574
575 * top.c (quit_target): New static helper function.
576 (quit_force): Moved code to quit_target(). Call quit_target()
577 via catch_errors() to catch errors during quit.
578
a1632d59
DC
5792003-09-11 David Carlton <carlton@kealia.com>
580
581 * buildsym.c (finish_block): Use allocate_block to allocate the
582 block.
583 * mdebugread.c (new_block): Add FIXME.
584
5c4e30ca
DC
5852003-09-11 David Carlton <carlton@kealia.com>
586
587 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
588 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
589 (recursive_dump_type): Ditto.
590 * printcmd.c (print_formatted): Ditto.
591 * typeprint.c (print_type_scalar): Ditto.
592 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
593 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
594 * cp-support.h: Declare cp_check_possible_namespace_symbols,
595 maint_cplus_cmd_list.
596 * cp-support.c: Make maint_cplus_cmd_list extern.
597 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
598 command.h.
599 (lookup_symbol_file): Look in possible namespace blocks when
600 appropriate.
601 (initialize_namespace_symtab): New.
602 (get_possible_namespace_block, free_namespace_block)
603 (check_possible_namespace_symbols)
604 (check_possible_namespace_symbols_loop)
605 (check_one_possible_namespace_symbol)
606 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
607 (_initialize_cp_namespace): Ditto.
608 * block.h: Declare allocate_block.
609 * block.c (allocate_block): New.
610 * jv-lang.c (get_java_class_symtab): Allocate blocks via
611 allocate_block.
612 * symfile.h: Update declaration of add_psymbol_to_list.
613 * symfile.c (add_psymbol_to_list): Return the partial symbol in
614 question.
615 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
616 scan_partial_symbols_call.
617 (scan_partial_symbols): Add NAMESPACE argument; update calls to
618 helper functions.
619 (add_partial_symbol): If necessary, scan mangled names for names
620 of namespaces.
621 (add_partial_namespace): Add NAMESPACE argument; generate partial
622 symbols associated to namespaces.
623 (add_partial_enumeration): Add NAMESPACE argument.
624 (new_symbol): Allow namespace syms.
625 (read_namespace): Generate namespace syms.
626 * objfiles.h: Add opaque declaration of struct symtab.
627 (struct objfile): Add cp_namespace_symtab member.
628 * objfiles.c (allocate_objfile): Set
629 objfile->cp_namespace_symtab.
630 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
631 dictionary_h, command_h.
632
33a7c2fc
AC
6332003-09-11 Andrew Cagney <cagney@redhat.com>
634
635 * rs6000-tdep.c (rs6000_push_dummy_call): Use
636 regcache_raw_write_signed to set SP_REGNUM, move the operation to
637 near the function's end.
638 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
639 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
640 regcache_raw_write_signed to set SP_REGNUM.
641
63cd24fe
EZ
6422003-09-11 Elena Zannoni <ezannoni@redhat.com>
643
644 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
645 orig_addrs is set up properly.
646
f27dd7fd
AC
6472003-09-11 Andrew Cagney <cagney@redhat.com>
648
649 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
650 * gdbarch.h, gdbarch.c: Re-generate.
651 * infcall.c (call_function_by_hand): Update.
652 * hppa-tdep.c (hppa_push_arguments): Update.
653 * ada-lang.c (place_on_stack): Update.
654 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
655 * sparc-tdep.c (sparc_gdbarch_init): Update.
656 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
657 * hppa-tdep.c (hppa_gdbarch_init): Update.
658 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
659 stack_align.
660
f630a401
DJ
6612003-09-11 Daniel Jacobowitz <drow@mvista.com>
662
663 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
664 register do need a frame.
665
0ddabb4c
AC
6662003-09-11 Andrew Cagney <cagney@redhat.com>
667
668 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
669 buildable since GDB 5.0.
670 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
671 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
672 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
673 * irix4-nat.c: Delete file.
674 * config/mips/irix4.mh: Delete file.
675 * config/mips/irix3.mh: Delete file.
676 * config/mips/irix3.mt: Delete file.
677 * config/mips/tm-irix3.h: Delete file.
678 * config/mips/nm-irix3.h: Delete file.
679 * config/mips/xm-irix3.h: Delete file.
680 * config/mips/nm-irix4.h: Delete file.
681 * config/mips/xm-irix4.h: Delete file.
682 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
683
fde2cceb
JB
6842003-09-10 J. Brobecker <brobecker@gnat.com>
685
686 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
687 * Makefile.in (hppa-tdep.o): Update dependencies.
688
66f667f5
JW
6892003-09-10 James E Wilson <wilson@specifixinc.com>
690
ef5fd69f
JW
691 * MAINTAINERS: Change my e-mail address. Move to paper trail
692 section.
66f667f5 693
53e8aaea
KB
6942003-09-10 Kevin Buettner <kevinb@redhat.com>
695
696 * MAINTAINERS (frv): New ISA entry.
697
dcc6aaff
KB
6982003-09-10 Kevin Buettner <kevinb@redhat.com>
699
700 * frv-tdep.c (dis-asm.h): Include.
701 * Makefile.in (frv-tdep.o): Update dependencies.
702
932644f0
JJ
7032003-09-09 Jeff Johnston <jjohnstn@redhat.com>
704
705 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
706 Fix typo for high range of floating registers.
707
91c24f0a
DC
7082003-09-09 David Carlton <carlton@kealia.com>
709
710 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
711 highpc initialization here out of scan_partial_symbols.
712 (scan_partial_symbols): Restructure into a recursive version,
713 calling add_partial_namespace and add_partial_enumeration when
714 appropriate.
715 (add_partial_namespace): New.
716 (add_partial_enumeration, locate_pdi_sibling): Ditto.
717
c9263853
AC
7182003-09-09 Andrew Cagney <cagney@redhat.com>
719
e56a0ecc
AC
720 * rs6000-tdep.c (ppc_push_return_address): Delete function.
721 (rs6000_push_dummy_call): Set LR to BP_ADDR.
722 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
723 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
724
794a477a
AC
725 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
726 (rs6000_push_dummy_call): Set the "TOC" register.
727
c9263853
AC
728 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
729 methods "max_register_raw_size", "max_register_virtual_size" or
730 "register_virtual_size".
731
afa7d0b2
ILT
7322003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
733
734 * MAINTAINERS: Update my e-mail address.
735
7a41266b
AC
7362003-09-09 Andrew Cagney <cagney@redhat.com>
737
738 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
739 (rs6000_push_dummy_call): Store the struct return address.
740 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
741
77b2b6d4
AC
7422003-09-09 Andrew Cagney <cagney@redhat.com>
743
744 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
745 "ppc_sysv_abi_push_arguments".
746 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
747 "ppc_sysv_abi_push_arguments".
748 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
749 instead of "push_arguments".
750 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
751
e8a7b686
AC
7522003-09-09 Andrew Cagney <cagney@redhat.com>
753
754 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
755 instead of CALL_DUMMY_ADDRESS.
756
f86f5ca3
PH
7572003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
758
759 * p-lang.c: Eliminate "register".
760 * c-lang.c: Ditto.
761 * expprint.c: Ditto.
762 * f-lang.c: Ditto.
763 * jv-lang.c: Ditto.
764 * language.c: Ditto.
765 * m2-lang.c: Ditto.
766 * parse.c: Ditto.
767 * scm-lang.c: Ditto.
768 * objc-lang.c: Ditto.
769
83ee270e
NC
7702003-09-09 Nick Clifton <nickc@redhat.com>
771
772 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
773
a89aa300
AC
7742003-09-04 Andrew Cagney <cagney@redhat.com>
775
776 * avr-tdep.c: Include "dis-asm.h".
777 * cris-tdep.c: Include "dis-asm.h".
778 (cris_delayed_get_disassembler): Use "struct disassemble_info"
779 instead of corresponding typedef.
780 * h8300-tdep.c: Include "dis-asm.h".
781 * ia64-tdep.c: Include "dis-asm.h".
782 * i386-tdep.c: Include "dis-asm.h".
783 (i386_print_insn): Use "struct disassemble_info" instead of
784 corresponding typedef.
785 * m68k-tdep.c: Include "dis-asm.h".
786 * mcore-tdep.c: Include "dis-asm.h".
787 * mips-tdep.c: Include "dis-asm.h".
788 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
789 instead of corresponding typedef.
790 * ns32k-tdep.c: Include "dis-asm.h".
791 * s390-tdep.c: Include "dis-asm.h".
792 * sparc-tdep.c: Include "dis-asm.h".
793 * vax-tdep.c: Include "dis-asm.h".
794 * v850-tdep.c: Include "dis-asm.h".
795 * mn10300-tdep.c: Include "dis-asm.h".
796 * rs6000-tdep.c: Include "dis-asm.h".
797 * xstormy16-tdep.c: Include "dis-asm.h".
798 (_initialize_xstormy16_tdep): Delete "extern" declaration of
799 print_insn_xstormy16.
800 * Makefile.in (v850-tdep.o): Update dependencies.
801 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
802 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
803 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
804 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
805 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
806 (gdbarch_h): Remove $(dis_asm_h).
807 * disasm.c: Include "dis-asm.h".
808 (dis_asm_read_memory): Use "struct disassemble_info" instead of
809 corresponding typedef.
810 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
811 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
812 * gdbarch.sh: Do not include "dis-asm.h".
813 (struct disassemble_info): Declare opaque.
814 (TARGET_PRINT_INSN): Update declaration.
815 * gdbarch.h, gdbarch.c: Re-generate.
816
88a82a65
AC
8172003-09-08 Andrew Cagney <cagney@redhat.com>
818
819 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
820 CALL_DUMMY_ADDRESS, change to a predicate.
821 * gdbarch.h, gdbarch.c: Re-generate.
822 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
823 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
824 * infcall.c (call_function_by_hand): Ditto.
825 * sparc-tdep.c (sparc_push_return_address): Ditto.
826 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
827 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
828 CALL_DUMMY_ADDRESS with entry_point_address.
829 * v850-tdep.c (v850_push_return_address): Ditto.
830 * s390-tdep.c (s390_push_return_address): Ditto.
831 * rs6000-tdep.c (ppc_push_return_address): Ditto.
832 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
833 * mcore-tdep.c (mcore_push_return_address): Ditto.
834 * cris-tdep.c (cris_push_return_address): Ditto.
835 * arm-tdep.c (arm_push_return_address): Ditto.
836
3e2c4033
AC
8372003-09-08 Andrew Cagney <cagney@redhat.com>
838
839 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
840 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
841 and REG_UNMODIFIED to REG_SAME_VALUE.
842 (execute_cfa_program): Update.
843 (dwarf2_frame_cache): Update. Initialize table to
844 REG_UNSPECIFIED, complain if CFI fails to specify a register's
845 location.
846 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
847
39efb398
AC
8482003-09-08 Andrew Cagney <cagney@redhat.com>
849
850 * gnu-nat.c: Remove "inline" function attribute.
851 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
852
f5cb5aca
KB
8532003-09-08 Kevin Buettner <kevinb@redhat.com>
854
855 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
856 target.
857
1cb761c7
KB
8582003-09-08 Kevin Buettner <kevinb@redhat.com>
859
860 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
861 (frame_extra_info): Rename this struct to frv_unwind_cache.
862 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
863 Add fields ``prev_sp'' and ``base''.
864 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
865 (frv_saved_pc_after_call, frv_init_extra_frame_info)
866 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
867 Delete.
868 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
869 Revise all callers. Fill in the unwind cache argument and make
870 other adjustments to account for new frame mechanisms.
871 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
872 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
873 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
874 (frv_frame_unwind, frv_frame_base): New structs.
875 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
876 additional arguments expected by this method and adjust function
877 body accordingly.
878 (frv_gdbarch_init): Remove calls to the following functions:
879 set_gdbarch_deprecated_init_frame_pc(),
880 set_gdbarch_deprecated_saved_pc_after_call(),
881 set_gdbarch_deprecated_frame_chain(),
882 set_gdbarch_deprecated_frame_saved_pc(),
883 set_gdbarch_deprecated_frame_init_saved_regs(),
884 set_gdbarch_deprecated_push_arguments(),
885 set_gdbarch_deprecated_push_return_address(),
886 set_gdbarch_deprecated_pop_frame(),
887 set_gdbarch_deprecated_call_dummy_words(),
888 set_gdbarch_deprecated_sizeof_call_dummy_words(),
889 set_gdbarch_deprecated_init_extra_frame_info(),
890 set_gdbarch_deprecated_dummy_write_sp(), and
891 set_gdbarch_deprecated_pc_in_call_dummy().
892 Add calls to the following functions:
893 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
894 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
895 frame_base_set_default().
896 * Makefile.in (frv-tdep.o): Update dependencies.
897
68f6cf99
MK
8982003-09-09 Mark Kettenis <kettenis@gnu.org>
899
900 * dwarf2-frame.c (read_encoded_value): Add support for
901 DW_EH_PE_aligned encoding.
902
73b65bb0
DJ
9032003-09-08 Daniel Jacobowitz <drow@mvista.com>
904
905 * infrun.c (normal_stop): Don't print a message if the inferior
906 has exited.
907
7c8a5605
JB
9082003-09-08 Jim Blandy <jimb@redhat.com>
909
910 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
911 * dbxread.c: #include "gdb_assert.h".
912 (read_dbx_symtab): If the objfile has no .data section, use the
913 section index for the .bss section instead.
914
7dd88986
DJ
9152003-09-08 Daniel Jacobowitz <drow@mvista.com>
916
917 * frame.c (deprecated_safe_get_selected_frame): New function.
918 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
919 * findvar.c (read_var_value): Call it.
920
55ff77ac
CV
9212003-09-08 Corinna Vinschen <vinschen@redhat.com>
922
923 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
924 (sh64-tdep.o): Add dependencies.
925 * configure.tgt: Add FIXME to sh-*-linux*.
926 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
927 (sh_gdbarch_init): Always set correct sh_show_regs function
928 pointer. Call sh64_gdbarch_init() if machine type is sh5.
929 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
930 * sh64-tdep.c: New file, containing all sh64 related code from
931 sh-tdep.c.
932 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
933 * config/sh/linux.mt (TDEPFILES): Ditto.
934 * config/sh/nbsd.mt (TDEPFILES): Ditto.
935 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
936 * config/sh/wince.mt (TDEPFILES): Ditto.
937
bfb39158
DJ
9382003-09-07 Daniel Jacobowitz <drow@mvista.com>
939
940 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
941 (stop_wait_callback): Handle !lp->signalled also.
942 (lin_lwp_has_pending, flush_callback): New functions.
943 (lin_lwp_wait): Call flush_callback.
944 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
945 (linux_proc_pending_signals): New function.
946 * linux-nat.h (linux_proc_pending_signals): Add prototype.
947
9407de8e
DJ
9482003-09-07 Daniel Jacobowitz <drow@mvista.com>
949
950 From Nick Kelsey <nickk@ubicom.com>:
951 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
952 when the stop PC is at the beginning of a function also.
953
2ef47cd0
DJ
9542003-09-06 Daniel Jacobowitz <drow@mvista.com>
955
956 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
957 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
958
6f4492c8
MK
9592003-09-06 Mark Kettenis <kettenis@gnu.org>
960
961 * sol-thread.c: Include "gdb_string.h".
962
d3420b2f
MK
9632003-09-03 Mark Kettenis <m.kettenis@osp.nl>
964
965 * gcore.c: Reorder include files in alphabetical order. Include
966 "gdb_assert.h". Various coding style fixes.
967 (derive_stack_segment, derive_heap_segment): Replace check for
968 non-null BOTTOM and TOP with gdb_assert.
969 (derive_heap_segment): Replace check for successful creation of
970 ZERO with gdb_assert.
971 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
972
5220ea4c
AC
9732003-09-04 Andrew Cagney <cagney@redhat.com>
974
975 * thread-db.c (verbose_dlsym): New function.
976 (thread_db_load): Use verbose_dlsym
977 (thread_db_new_objfile): Print that libthread_db was loaded, and
978 that thread debugging was enabled.
979
6e8c2c06
AC
9802003-09-04 Andrew Cagney <cagney@redhat.com>
981
982 * configure.tgt: Add "mips64*-*-*" target. Delete
983 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
984 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
985 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
986 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
987 mips*-sony-*, and mips64*-*-elf* targets.
988 * config/mips/embedl.mt: Delete file.
989 * config/mips/embedl64.mt: Delete file.
990 * config/mips/mips.mt: Delete file.
991 * config/mips/mips64.mt: Delete file.
992 * config/mips/tm-embed.h: Delete file.
993 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
994 * config/mips/embed64.mt: Delete out-of-date comment.
995
3a3bc038
AC
9962003-09-04 Andrew Cagney <cagney@redhat.com>
997
998 * hppa-tdep.c (hppa_gdbarch_init): Set
999 "have_nonsteppable_watchpoint".
1000 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1001 * mips-tdep.c (mips_dump_tdep): Do not print
1002 HAVE_NONSTEPPABLE_WATCHPOINT.
1003 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1004 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1005 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1006 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1007
a957e642
CV
10082003-09-04 Corinna Vinschen <vinschen@redhat.com>
1009
1010 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1011 unused code. Add comment.
1012
a6fbcf2f
CV
10132003-09-04 Corinna Vinschen <vinschen@redhat.com>
1014
1015 * breakpoint.c (watchpoint_check): Check for pc being in an
1016 epilogue if watchpoint frame couldn't be found.
1017
c14a44d5
AC
10182003-09-04 Andrew Cagney <cagney@redhat.com>
1019
1020 * Makefile.in: Re-generate all dependencies.
1021
f6c40618
AC
10222003-09-03 Andrew Cagney <cagney@redhat.com>
1023
1024 * arch-utils.h (legacy_print_insn): Delete declaration.
1025 * arch-utils.c (legacy_print_insn): Delete function.
1026 * disasm.c (deprecated_tm_print_insn_info): Delete.
1027 (_initialize_disasm): Delete function, contained code initializing
1028 deprecated_tm_print_insn_info.
1029 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1030 (deprecated_tm_print_insn_info): Delete.
1031 (TARGET_PRINT_INSN): Do not provide a default.
1032 * gdbarch.h, gdbarch.c: Re-generate.
1033
242e8be5
AC
10342003-09-03 Andrew Cagney <cagney@redhat.com>
1035
1036 * disasm.c (fprintf_disasm): New function.
1037 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1038 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1039 reverts 2003-08-14 change.
1040 (_initialize_disasm): Call "init_disassemble_info", instead of
1041 INIT_DISASSEMBLE_INFO_NO_ARCH.
1042
3ffc3dda
MS
10432003-09-03 Michael Snyder <msnyder@redhat.com>
1044
1045 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1046
52d16ba8
AC
10472003-09-03 Andrew Cagney <cagney@redhat.com>
1048
1049 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1050 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1051 * symfile.c (syms_from_objfile): Update.
1052 (reread_symbols): `Update
1053 * exec.c (exec_file_attach): Update.
1054 (exec_file_attach): Update.
1055 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1056 2003-08-29 change.
1057 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1058
eb5492fa
DJ
10592003-09-03 Daniel Jacobowitz <drow@mvista.com>
1060
1061 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1062 trad-frame.h.
1063 (arm_get_cache): Delete macro.
1064 (struct arm_prologue_cache): Update comments. Make saved_regs into
1065 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1066 to prev_sp.
1067 (thumb_scan_prologue): Update for cache changes. Don't call
1068 DEPRECATED_PC_IN_CALL_DUMMY.
1069 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1070 argument and use it in desperation search for our prologue. Do not
1071 search past the specified PC.
1072 (arm_make_prologue_cache): Simplify.
1073
1074 (arm_prologue_this_id, arm_prologue_prev_register)
1075 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1076 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1077 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1078 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1079 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1080
1081 (arm_frame_chain_valid, arm_find_callers_reg)
1082 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1083 (arm_pop_frame): Delete obsolete methods.
1084 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1085
1086 (arm_gdbarch_init): Update for new frame methods. Register prologue
1087 and sigtramp unwinders. Set the default frame base method.
1088
1089 * Makefile.in (arm-tdep.o): Update dependencies.
1090 * varobj.c (find_frame_addr_in_frame_chain): Call
1091 get_frame_base_address.
1092 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1093
24de872b
DJ
10942003-09-03 Daniel Jacobowitz <drow@mvista.com>
1095
1096 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1097 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1098 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1099 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1100 Take NEXT_FRAME and CACHE arguments. Call
1101 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1102 Set unwound_pc in CACHE instead of modifying the frame argument.
1103 Don't bother checking the frame type when looking for sigtramp
1104 frames.
1105 (arm_make_prologue_cache, arm_frame_chain)
1106 (arm_init_extra_frame_info): New functions.
1107
9b8d791a
DJ
11082003-09-03 Daniel Jacobowitz <drow@mvista.com>
1109
1110 * arm-tdep.c (arm_get_cache): Define.
1111 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1112 unwound_sp, unwound_pc, and saved_regs.
1113 (thumb_scan_prologue): Take a cache instead of the frame.
1114 (arm_scan_prologue): Likewise.
1115 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1116 instead of a temporary frame.
1117 (arm_init_extra_frame_info): Allocate and use a cache.
1118 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1119
7ee3275f
AC
11202003-09-03 Andrew Cagney <cagney@redhat.com>
1121
1122 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1123 * config/mips/wince.mt (TM_CLIBS): Ditto.
1124 * config/sh/wince.mt (TM_CLIBS): Ditto.
1125 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1126 * config/sparc/sp64.mt (CC): Delete.
1127
57b29be7
AC
11282003-09-03 Andrew Cagney <cagney@redhat.com>
1129
1130 * defs.h: Do not include "arch-utils.h".
1131 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1132 GDB_MULTI_ARCH_PURE.
1133 * configure.in (GDB_MULTI_ARCH): Do not define.
1134 * configure, config.in: Regenerate.
1135 * configure.tgt: Do not set variable "gdb_multi_arch".
1136 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1137 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1138 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1139 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1140 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1141 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1142 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1143 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1144 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1145 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1146 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1147 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1148 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1149 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1150 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1151 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1152 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1153 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1154
12e035e2
MC
11552003-08-30 Michael Chastain <mec@shout.net>
1156
1157 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1158 * config/m68k/nm-hp300hpux.h: Delete.
1159 * config/m68k/tm-hp300hpux.h: Delete.
1160 * config/m68k/xm-hp300hpux.h: Delete.
1161 * config/m68k/xm-hp300bsd.h: Delete.
1162 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1163 tm-hp300hpux.h, xm-hp300hpux.h.
1164 * somsolib.c: Remove comment about hp300 shared libraries.
1165
bda34dc2
MK
11662003-08-31 Mark Kettenis <kettenis@gnu.org>
1167
5bca7895
MK
1168 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1169 Only define PTRACE_GET_THREAD_AREA is not already defined.
1170 Various style fixes in code and comments and some additional
1171 spelling fixes in comments. Move after functions dealing with
1172 debug registers.
1173 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1174 Fix coding-style.
1175
bda34dc2
MK
1176 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1177 frame_unwind_register_unsigned instead of
1178 frame_unwind_unsigned_register.
1179
c890192f
MK
11802003-08-30 Mark Kettenis <kettenis@gnu.org>
1181
1182 * configure.in: Search for gethostbyname in libnsl.
1183 * configure: Regenerated.
1184
60fac5b8
MK
11852003-08-29 Mark Kettenis <kettenis@gnu.org>
1186
e294916c
MK
1187 * configure.in: Remove redundant AC_MSG_RESULT in check for
1188 uintptr_t in stdint.h.
1189 * configure: Regenerated.
1190
c40d267a
MK
1191 * amd64-nat.h (struct regcache): Add opaque declaration.
1192
60fac5b8
MK
1193 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1194 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1195 Change "register array" to "register cache" in comments.
1196 (x86_64_linux_gregset64_reg_offset): New variable.
1197 (GETREGS_SUPPLIES): Remove macro.
1198 (supply_gregset): Call amd64_supply_native_gregset instead of
1199 x86_64_linux_supply_gregset.
1200 (fill_gregset): Rename `regno' to `regnum'. Call
1201 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1202 (store_regs): Rename `regno' to `regnum'.
1203 (store_fpregs): Rename `regno' to `regnum'.
1204 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1205 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1206 Reorganize function a bit.
1207 (store_inferior_registers): Rename `regno' to `regnum'. Use
1208 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1209 Reorganize function a bit.
1210 (_initialize_x86_64_linux_nat): New function.
1211 * config/i386/x86-64linux.mh.
1212
546143b6
AC
12132003-08-29 Andrew Cagney <cagney@redhat.com>
1214
1215 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1216 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1217 (target_remove_watchpoint): Delete macro.
1218 (target_insert_watchpoint): Delete macro.
1219 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1220 (remote_mips_stopped_by_watchpoint): Delete declaration.
1221 (remote_mips_remove_watchpoint): Delete declaration.
1222 (remote_mips_set_watchpoint): Delete declaration.
1223 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1224 * remote-mips.c (_initialize_remote_mips): Set
1225 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1226 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1227 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1228 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1229 (mips_stopped_by_watchpoint): Rename
1230 remote_mips_stopped_by_watchpoint.
1231 (mips_can_hardware_watchpoint): Rename
1232 remote_mips_can_use_hardware_watchpoint, update function
1233 signature.
1234
7bace51b
MK
12352003-08-29 Mark Kettenis <kettenis@gnu.org>
1236
b0f5c6f2
MK
1237 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1238 USER_DS. We haven't given them a register number yet.
1239
2a6d284d
MK
1240 * amd64-nat.h: New file.
1241 * amd64-nat.c: New file.
1242 * amd64fbsd-nat.c: Include "amd64-nat.h".
1243 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1244 (amd64fbsd32_r_reg_offset): New variable.
1245 (supply_gregset): Simply call amd64_supply_native_gregset.
1246 (fill_gregset): Rename `regno' to `regnum'. Simply call
1247 amd64_collect_native_gregset.
1248 (fill_fpregset): Rename `regno' to `regnum'.
1249 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1250 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1251 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1252 `fpregset_t'. Call amd64_supply_native_gregset instead of
1253 supply_gregset. Call x86_64_supply_fxsave instead of
1254 supply_fpregset.
1255 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1256 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1257 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1258 `fpregset_t'. Call amd64_collect_native_gregset instead of
1259 fill_gregset. Call x86_64_collect_fxsave instead of
1260 fill_fpregset.
1261 (_initialize_am64fbsd_nat): Initialize
1262 amd64_native_gregset32_reg_offset and
1263 amd64_native_gregset64_reg_offset.
1264 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1265
a16d75cc
MK
1266 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1267 null pointer. Fix typo in comment.
1268
7bace51b
MK
1269 * regcache.c (supply_register): Reimplement to call
1270 regcache_raw_supply.
1271 (regcache_collect): Reimplement by calling regcache_raw_collect.
1272
9a661b68
MK
12732003-08-28 Mark Kettenis <kettenis@gnu.org>
1274
1275 * regcache.c (register_buffer): Consitify first argument.
1276 (regcache_raw_supply, regcache_raw_collect): New
1277 functions.
1278
e94cc8fa
DJ
12792003-08-28 Daniel Jacobowitz <drow@mvista.com>
1280
1281 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1282 by Nathan J. Williams.
1283
c64bd0ce
DJ
12842003-08-28 Daniel Jacobowitz <drow@mvista.com>
1285
1286 * lin-lwp.c (wait_lwp): New function, copied from
1287 stop_wait_callback. Clean up.
1288 (stop_wait_callback): Use wait_lwp.
1289
e5ab0dce
AC
12902003-08-28 Andrew Cagney <cagney@redhat.com>
1291
1292 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1293 flavour and disassembler options.
1294 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1295 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1296 deprecated_tm_print_insn_info.
1297
a788de9b
AC
12982003-08-27 Andrew Cagney <cagney@redhat.com>
1299
1300 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1301 Use target_read_memory.
1302 (s390_get_frame_info): Update. Do not reference
1303 deprecated_tm_print_insn_info.
1304 (s390_check_function_end, s390_is_sigreturn): Ditto.
1305
36482093
AC
13062003-08-27 Andrew Cagney <cagney@redhat.com>
1307
1308 * Makefile.in (cris-tdep.o): Update dependencies.
1309 * cris-tdep.c: Include "gdb_assert.h".
1310 (cris_gdbarch_init): Set print_insn.
1311 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1312 (cris_delayed_get_disassembler): Simplify, directly call the
1313 disassembler returned by cris_get_disassembler.
1314 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1315 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1316 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1317 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1318 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1319 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1320 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1321 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1322 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1323 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1324 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1325 (gdb_print_insn_sparc): Delete function.
1326 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1327 deprecated_tm_print_insn_info.
1328 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1329 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1330 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1331 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1332 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1333 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1334 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1335 (s390_gdbarch_init): Set print_insn.
1336
0285512f
AC
13372003-08-27 Andrew Cagney <cagney@redhat.com>
1338
1339 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1340 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1341 * infcall.c (call_function_by_hand): Convert the entry point
1342 address into a code address.
1343
cdcd5552
AC
13442003-08-27 Andrew Cagney <cagney@redhat.com>
1345
1346 * dsrec.c: Include "gdb_string.h".
1347 * Makefile.in (dsrec.o): Update dependencies.
1348
e85cddad
MC
13492003-08-27 Michael Chastain <mec@shout.net>
1350
1351 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1352
8bbfbb23
AC
13532003-08-27 Andrew Cagney <cagney@redhat.com>
1354
1355 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1356 (alpha_osf1_init_abi): Do not set call_dummy_address.
1357
ba058b66
DC
13582003-08-27 David Carlton <carlton@kealia.com>
1359
1360 From Randolph Chung <tausq@debian.org>:
1361 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1362 compiles with -Wformat-nonliteral -Werror.
1363
87f84c9d
JB
13642003-08-26 Jim Blandy <jimb@redhat.com>
1365
1366 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1367 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1368 bfd_lookup_symbol, since we only want symbols in code sections.
1369 (look_for_base): Pass zero as the SECT_FLAGS argument to
1370 bfd_lookup_symbol, since we're not concerned about which section
1371 the symbol is in.
1372
102d615a
JJ
13732003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1374
1375 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1376 we are frameless or the return address register is already known.
1377
cc7ad3ea
AC
13782003-08-26 Andrew Cagney <cagney@redhat.com>
1379
1380 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1381 in size. Add comments.
1382
af8b88dd
JJ
13832003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1384
1385 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1386 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1387
e0a4f5a1
JM
13882003-08-26 Jason Merrill <jason@redhat.com>
1389
1390 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1391 case out of #ifdef MIPS block.
1392
4ae9ee8e
DJ
13932003-08-25 Daniel Jacobowitz <drow@mvista.com>
1394
1395 PR java/1322
1396 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1397 available before calling SECT_OFF_TEXT.
3c164570 1398 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1399
004d836a
JJ
14002003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1401
1402 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1403 bof, and nat0-nat127 as pseudo-registers.
1404 (ia64_frame_cache): New struct used to cache frame info.
1405 (ia64_register_reggroup_p): New routine used to override default
1406 register grouping so registers without names are still saved and
1407 restored.
1408 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1409 pseudo values.
1410 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1411 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1412 (ia64_alloc_frame_cache): New routine to create a new
1413 ia64_frame_cache.
1414 (examine_prologue): Change prototype to add next_frame pointer.
1415 Assume frameless until otherwise proven. Verify that the cfm for
1416 current frame matches the cfm that should occur for the prologues
1417 alloc insn and if equal, mark as not frameless. At end of routine,
1418 if not frameless, calculate registers for the previous frame and store
1419 in the cache, if a cache is provided.
1420 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1421 and pass 0 for next_frame.
1422 (ia64_store_return_value): Change to use convert_typed_floating()
1423 instead of calling ia64_convert_to_raw().
1424 (ia64_extract_return_value): Change to use convert_typed_floating()
1425 instead of calling ia64_convert_to_virtual().
1426 (ia64_frame_cache): New routine to support new frame model.
1427 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1428 (ia64_frame_sniffer): Ditto.
1429 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1430 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1431 (ia64_sigtramp_frame_prev_register): Ditto.
1432 (ia64_sigtramp_frame_sniffer): Ditto.
1433 (ia64_frame_base_address): Ditto.
1434 (ia64_extract_struct_value_address): Change to issue error message.
1435 (ia64_frame_align): New routine to align sp.
1436 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1437 (ia64_push_arguments): Removed. Logic moved to
1438 ia64_push_dummy_call().
1439 (ia64_push_return_address): Ditto.
1440 (ia64_unwind_dummy_id): New function.
1441 (ia64_unwind_pc): Ditto.
1442 (ia64_convert_register_p): Ditto.
1443 (ia64_register_to_value): Ditto.
1444 (ia64_value_to_register): Ditto.
1445 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1446 (ia64_register_byte, ia64_register_raw_size): Ditto.
1447 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1448 (ia64_saved_pc_after_call): Ditto.
1449 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1450 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1451 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1452 (ia64_register_convert_to_raw): Ditto.
1453 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1454 (ia64_init_extra_frame_info): Ditto.
1455 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1456 (ia64_gdbarch_init): Remove registering of deprecated functions that
1457 are no longer used. Add registration of new gdbarch functions.
1458 Remove registering deprecated_write_sp. Replace
1459 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1460 Delete set_gdbarch_deprecated_register_convertible(),
1461 set_gdbarch_deprecated_register_convert_to_virtual(), and
1462 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1463 set_gdbarch_deprecated_register_size(),
1464 set_gdbarch_deprecated_register_bytes(),
1465 set_gdbarch_pcregnum(),
1466 set_gdbarch_deprecated_register_byte(),
1467 set_gdbarch_deprecated_register_raw_size(),
1468 set_gdbarch_deprecated_max_register_raw_size(),
1469 set_gdbarch_deprecated_register_virtual_size(),
1470 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1471 Replace set_gdbarch_deprecated_extract_return_value() with
1472 set_gdbarch_extract_return_value(). Remove calls to:
1473 set_gdbarch_deprecated_saved_pc_after_call();
1474 set_gdbarch_deprecated_frame_chain(),
1475 set_gdbarch_deprecated_frame_saved_pc(),
1476 set_gdbarch_deprecated_frame_init_saved_regs(),
1477 set_gdbarch_deprecated_get_saved_register(),
1478 set_gdbarch_deprecated_call_dummy_words(),
1479 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1480 set_gdbarch_deprecated_init_extra_frame_info(),
1481 set_gdbarch_deprecated_frame_args_address(),
1482 set_gdbarch_deprecated_frame_locals_address(),
1483 and set_gdbarch_deprecated_dummy_write_sp().
1484 Add set_gdbarch_convert_register_p(),
1485 set_gdbarch_register_to_value(),
1486 set_gdbarch_value_to_register(),
1487 set_gdbarch_push_dummy_call(),
1488 set_gdbarch_frame_align(),
1489 set_gdbarch_unwind_dummy_id(),
1490 set_gdbarch_unwind_pc(),
1491 frame_unwind_append_sniffer(),
1492 frame_unwind_append_sniffer(),
1493 and frame_base_set_default().
1494
aede7613
CD
14952003-08-25 Chris Demetriou <cgd@broadcom.com>
1496
1497 * configure.tgt: Document need for special "mipsisa64" handling.
1498 (mipsisa64*-*-linux64): Handle as target linux64.
1499 (mipsisa64*-*-*): Handle as target embed64.
1500
43c3a82e
MC
15012003-08-18 Michael Chastain <mec@shout.net>
1502
1503 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1504 objfile bug.
1505
6564f77d
MK
15062003-08-24 Mark Kettenis <kettenis@gnu.org>
1507
2de139ba
MK
1508 * i387-tdep.h: Update copyright date.
1509 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1510
6564f77d
MK
1511 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1512 CFLAGS games to reflect reality.
1513
42cf1509
AC
15142003-08-24 Andrew Cagney <cagney@redhat.com>
1515
1516 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1517 GDB_MULTI_ARCH is always non-zero.
1518 * osabi.c (_initialize_gdb_osabi): Ditto.
1519 (gdbarch_init_osabi): Ditto.
1520 * sparc-tdep.c: Ditto for #if code.
1521
0485f6ad
MK
15222003-08-23 Mark Kettenis <kettenis@gnu.org>
1523
1524 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1525 Update comments.
1526 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1527 comments.
1528 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1529 x86_64_supply_fxsave.
1530 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1531 x86_64_supply_fxsave.
1532 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1533 x86_64_supply_fxsave.
1534
c7716133
AJ
15352003-08-23 Andreas Jaeger <aj@suse.de>
1536
1537 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1538 i387_supply_fxsave.
1539
ed504bdf
MK
15402003-08-23 Mark Kettenis <kettenis@gnu.org>
1541
1542 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1543 i387_supply_register.
1544 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1545 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1546 i387_supply_fsave.
1547 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1548 i387_supply_fxsave.
1549 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1550 i387_supply_fsave.
1551 * i386bsd-nat.c (supply_fpregset): Adjust call to
1552 i387_supply_fsave.
1553 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1554 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1555 supply_fpregset.
1556 (store_inferior_registers): Remove extraneous whitespace. Call
1557 i387_fill_fsave instead of fill_fpregset.
1558 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1559 (supply_fpregset): Likewise.
1560 * i386v4-nat.c (supply_fpregset): Adjust call to
1561 i387_supply_fsave.
1562 * i386-interix-nat.c (supply_fpregset): Adjust call to
1563 i387_supply_fsave.
1564 * i386-linux-nat.c (supply_fpregset): Adjust call to
1565 i387_supply_fsave.
1566 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1567 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1568 i387supply_fsave and i387_supply_fxsave.
1569 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1570 Incorporate code from `i387_supply_register.
1571 (i387_supply_register): Remove.
1572 (i387_supply_fxsave): Add `regnum' argument.
1573 Update comments.
1574 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1575 prototype.
1576 (i387_supply_register): remove prototype.
1577 Update comments.
1578
4be5d520
MC
15792003-08-22 Michael Chastain <mec@shout.net>
1580
1581 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1582 Add lines for files in gdb/testsuite/gdb.cp/* that are
1583 still not 8.3 unique.
1584
7ed85d26
DJ
15852003-08-22 Daniel Jacobowitz <drow@mvista.com>
1586
1587 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1588 TYPE_VPTR_FIELDNO is valid.
1589
eb0d3137
MK
15902003-08-19 Mark Kettenis <kettenis@gnu.org>
1591
1592 * utils.c (set_width_command): Remove prototypes.
1593 (set_screen_size): New prototype.
1594 (init_page_info): Simplify by fetching the screen size from
1595 Readline. Call set_screen_size.
1596 (set_screen_size): New function.
1597 (set_width): Add missing whitespace in comment.
1598 (set_width_command): Call set_screen_size.
1599 (set_height_command): New function.
1600 (initialize_utils): Fix formatting. Make "set height" command
1601 call set_height_command. Remove redundant code that turns off
1602 pagination if output isn't a terminal. Remove redundant call to
1603 set_width_command.
1604
7e6d0ac8
MK
16052003-08-22 Mark Kettenis <kettenis@gnu.org>
1606
3567a8ea
MK
1607 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1608 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1609 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1610 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1611 `case' keyword.
1612 (sparc64_register_info): Give the reister with number
1613 SPARC64_STATE_REGNUM a name.
1614 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1615 %asi and %ccr.
1616 (sparc64_push_dummy_call): Take BIAS into account when checking
1617 stcak alignment.
1618 (sparc_software_single_step): Remove assertions that check whether
1619 NPC and NNPC were zero.
1620 (sparc_supply_rwindow): Make public. Merge functionality with
1621 sparc64_supply_rwindow.
1622 (sparc_fill_rwindow): Make public. Merge functionality with
1623 sparc64_fill_rwindow.
1624 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1625 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1626 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1627 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1628 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1629
7e6d0ac8
MK
1630 * reggroups.c: Add whitespace after declarations of local
1631 variables in functions.
1632
72e5f484
MC
16332003-08-21 Michael Chastain <mec@shout.net>
1634
1635 * gdbtypes.h: Change array bound type from an int to enum.
1636
435ac228
AC
16372003-08-21 Andrew Cagney <cagney@redhat.com>
1638
1639 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1640 * config/sparc/tm-sparc.h: Ditto.
1641 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1642 unconditionally.
1643 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1644
0d0e1a63
MK
16452003-07-13 Mark Kettenis <kettenis@gnu.org>
1646
1647 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1648 (register_objfile_data, set_objfile_data, objfile_data): New
1649 prototypes.
1650 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1651 prototypes.
1652 (allocate_objfile): Call objfile_alloc_data.
1653 (free_objfile): Call objfile_free_data.
1654 (struct objfile_data): New.
1655 (struct objfile_data_registration): New.
1656 (struct objfile_data_registry): New.
1657 (objfile_data_registry): New variable.
1658 (register_objfile_data): New function.
1659 (objfile_alloc_data, objfile_free_data): New functions.
1660 (set_objfile_data, objfile_data): New functions.
1661 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1662 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1663 (_initialize_dwarf2_frame): New function and prototype.
1664
d90cf509
AC
16652003-08-21 Andrew Cagney <cagney@redhat.com>
1666
1667 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1668 a specific architecture.
1669 * arch-utils.h (set_architecture_from_arch_mach): Delete
1670 declaration.
1671 (target_architecture_hook): Delete declaration.
1672 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1673 (default_float_format): Assume GDB_MULTI_ARCH.
1674 (default_double_format): Assume GDB_MULTI_ARCH.
1675 (set_endian_from_file): Delete function.
1676 (arch_ok): Delete function.
1677 (set_arch): Delete function.
1678 (set_architecture_from_arch_mach): Delete function.
1679 (set_architecture_from_file): Delete function.
1680 (set_architecture): Assume GDB_MULTI_ARCH.
1681 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1682
8b39fe56
MK
16832003-08-21 Mark Kettenis <kettenis@gnu.org>
1684
1685 Rewrite FreeBSD/sparc64 native configuration.
1686 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1687 * sparc64fbsd-nat.c: New file.
1688 * sparc64fbsd-tdep.c: New file.
1689 * sparc64-tdep.c sparc64-tdep.h: New files.
1690 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1691 sparc64fbsd-tdep.o): New dependencies.
1692 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1693 and sparc64fbsd-tdep.c.
1694 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1695 * config/sparc/fbsd.mh: Remove copyright notice.
1696 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1697 sparcbsd-nat.o.
1698 * config/sparc/fbsd.mt: Remove copyright notice.
1699 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1700 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1701 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1702 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1703 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1704 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1705 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1706 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1707 "sparc/tm-sp64.h".
1708 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1709 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1710
a7f19c79
MC
17112003-08-21 Michael Chastain <mec@shout.net>
1712
1713 * symtab.h: Add doco on the space critical structures and
1714 some measurements of space usage.
1715
da08ea5b
MS
17162003-08-21 Michael Snyder <msnyder@redhat.com>
1717
1718 * tracepoint.c (trace_dump_command): Trace break address
1719 is subject to DECR_PC_AFTER_BREAK.
1720 (set_traceframe_context): Make "trace_line" an int.
1721 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1722
6df2bf50
MS
17232003-08-20 Michael Snyder <msnyder@redhat.com>
1724
1725 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1726 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1727 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1728 argument passing.
1729 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1730 functions, replace sh_push_dummy_call.
1731 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1732
0955bbf0
MC
17332003-08-20 Michael Chastain <mec@shout.net>
1734
1735 * gdbtypes.h (struct main_type): Rearrange to save space.
1736
260a4188
MS
17372003-08-20 Michael Snyder <msnyder@redhat.com>
1738
1739 * trad-frame.c: Comment typo fix.
1740
8baa6f92
KB
17412003-08-20 Michael Snyder <msnyder@redhat.com>
1742 Kevin Buettner <kevinb@redhat.com>
1743
1744 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1745 (frv_frame_init_saved_regs): Add declaration.
1746 (frame_extra_info): Add new field ``saved_regs''.
1747 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1748 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1749 Update frame related code.
1750 (frv_extract_struct_value_address): Adjust formatting.
1751 * Makefile.in (frv-tdep.o): Update dependencies.
1752 * config/frv/tm-frv.h (target_insert_watchpoint)
1753 (target_remove_watchpoint, target_insert_hw_breakpoint)
1754 (target_remove_hw_breakpoint): Delete these macros.
1755 (remote_insert_watchpoint, remote_remove_watchpoint)
1756 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1757 these declarations.
1758
87193939
MC
17592003-08-20 Michael Chastain <mec@shout.net>
1760
1761 * defs.h (ENUM_BITFIELD): New macro.
1762 * symtab.h (ENUM_BITFIELD): Use it.
1763 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1764
062103ba
SA
17652003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1766
1767 * MAINTAINERS (write after approval): Add myself.
1768
8b148df9
AC
17692003-08-18 Andrew Cagney <cagney@redhat.com>
1770
1771 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1772 * gdbarch.h, gdbarch.c: Re-generate.
1773 * infcall.c (call_function_by_hand): Adjust the SP by
1774 frame_red_zone_size before allocating any stack space.
1775 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1776 * x86-64-tdep.c (x86_64_frame_align): New function.
1777 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1778
1779 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1780 Remove code adjusting SP so that it skips over the Red Zone.
1781
954a4db8
MK
17822003-08-18 Mark Kettenis <kettenis@gnu.org>
1783
1784 * NEWS (New native configurations): Mention FreeBSD/amd64.
1785
1a241548
AC
17862003-08-18 Andrew Cagney <cagney@redhat.com>
1787
1788 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1789 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1790 "m68k_frame_p".
1791 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1792
f82b2acd
MK
17932003-08-18 Mark Kettenis <kettenis@gnu.org>
1794
1795 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1796
4056d258
ML
17972003-08-18 Michal Ludvig <mludvig@suse.cz>
1798
1799 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1800 Define.
1801 * i386-linux-nat.c: Include "linux-nat.h".
1802 (child_post_startup_inferior): New function.
1803
99ab4326
MK
18042003-08-18 Mark Kettenis <kettenis@gnu.org>
1805
1806 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1807 at the start of a frameless function. This probably fixes PR
1808 backtrace/1338.
1809
c8d5f0d6
MC
18102003-08-17 Michael Chastain <mec@shout.net>
1811
1812 * symfile.c (find_sym_fns): Remove special case for apollo target.
1813
9016a515
DJ
18142003-08-17 Daniel Jacobowitz <drow@mvista.com>
1815
1816 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1817 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1818 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1819 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1820 (linux_supports_tracevforkdone): New function.
1821 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1822 TRACEVFORKDONE.
1823 (child_follow_fork): Handle vfork.
1824 (linux_handle_extended_wait): Likewise. Also handle exec.
1825 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1826 * NEWS: Mention fork tracing.
1827
c538c11c
DJ
18282003-08-17 Daniel Jacobowitz <drow@mvista.com>
1829
1830 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1831
4de4c07c
DJ
18322003-08-17 Daniel Jacobowitz <drow@mvista.com>
1833
1834 * Makefile.in (i386-linux-nat.o): Update dependencies.
1835 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1836 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1837 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1838 * i386-linux-nat.c: Include "linux-nat.h".
1839 (child_post_startup_inferior): New function.
1840 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1841 * infptrace.c (kill_inferior): Wrap in #ifdef.
1842 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1843 attaching to each LWP.
1844 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1845 (init_lin_lwp_ops): Fill in some more operations.
1846 * linux-nat.h (linux_enable_event_reporting)
1847 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1848 prototypes.
1849 * linux-nat.c (linux_enable_event_reporting): New function.
1850 (child_post_attach, linux_child_post_startup_inferior)
1851 (child_post_startup_inferior, child_follow_fork)
1852 (linux_handle_extended_wait, kill_inferior): New functions.
1853
7996bcec
AC
18542003-08-16 Andrew Cagney <cagney@redhat.com>
1855
1856 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1857 * gdbarch.h, gdbarch.c: Re-generate.
1858
3d48a7a0
MK
18592003-08-16 Mark Kettenis <kettenis@gnu.org>
1860
1861 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1862
7989c619
AC
18632003-08-16 Andrew Cagney <cagney@redhat.com>
1864
1865 * NEWS: Mention that "set prompt-escape-char" was deleted.
1866 * top.c (get_prompt_1): Delete function.
1867 (gdb_prompt_escape):
1868 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1869 prompt-escape-char" command.
1870 (MAX_PROMPT_SIZE): Delete macro.
1871 (get_prompt): Simplify, do not call get_prompt_1.
1872
07978cd8
AC
18732003-08-16 Andrew Cagney <cagney@redhat.com>
1874
1875 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1876 -Werror. -Wformat-nonliteral problems.
1877
3ff7cf9e
JB
18782003-08-15 J. Brobecker <brobecker@gnat.com>
1879
1880 Further multiarching work mostly for hppa64-*-hpux11:
1881 * hppa-tdep.h: New file.
1882 * hppa-tdep.c: #include hppa-tdep.c.
1883 (hppa32_num_regs): Renamed from hppa_num_regs.
1884 (hppa64_num_regs): New constant.
1885 (hppa64_call_dummy_breakpoint_offset): New constant.
1886 (hppa32_call_dummy_length): New constant.
1887 (hppa64_call_dummy_length): New constant.
1888 (hppa32_stack_align): Make name 32bit explicit.
1889 (hppa32_register_virtual_type): Likewise.
1890 (hppa32_extract_return_value): Likewise.
1891 (hppa32_use_struct_convention): Likewise.
1892 (hppa32_store_return_value): Likewise.
1893 (hppa64_register_virtual_type): New function.
1894 (hppa64_extract_return_value): New function.
1895 (hppa64_use_struct_convention): New function.
1896 (hppa64_store_return_value): New function.
1897 (hppa_frame_locals_address): Remove declaration, function does
1898 not exist anymore.
1899 (hppa_register_byte): Add support for PA64 ABI.
1900 (hppa_gdbarch_init): Add support for PA64 ABI.
1901 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1902 Make name 32bit explicit.
1903 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1904 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1905 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1906 (hppa64_hpux_frame_base_before_sigtramp): New function.
1907 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1908 * config/pa/tm-hppa64.h: Remove macros that are no longer
1909 necessary now that the gdbarch vector is properly setup.
1910 Transform some macros into function calls. Some minor cleanup.
1911 * config/pa/tm-hppah.h: Update function calls in macros
1912 following the function renaming in hppa-hpux-tdep.c.
1913 * Makefile.in (hppa_tdep_h): New variable.
1914 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1915
5d05ca6d
MS
19162003-08-14 Michael Snyder <msnyder@redhat.com>
1917
1918 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1919
37ba2569
JB
19202003-08-13 J. Brobecker <brobecker@gnat.com>
1921
1922 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1923 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1924 routine.
1925
aed7f26a
MS
19262003-08-13 Michael Snyder <msnyder@redhat.com>
1927
1928 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1929 (frv_saved_pc_after_call): Use deprecated ftype.
1930 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1931 (frv_remote_translate_xfer_address): Remove.
1932 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1933
752d4ac1
JB
19342003-08-13 J. Brobecker <brobecker@gnat.com>
1935
1936 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1937 initialization after the common gdbarch initialization, not before.
1938
1426ac1d
JB
19392003-08-13 J. Brobecker <brobecker@gnat.com>
1940
1941 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1942 (ADDR_BITS_REMOVE): Remove, redundant.
1943
b6fbdd1d
JB
19442003-08-13 J. Brobecker <brobecker@gnat.com>
1945
1946 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1947 gdbarch method to clear the 2 low bits of text addresses.
1948
44160db3
AC
19492003-08-12 Andrew Cagney <cagney@redhat.com>
1950
1951 * Makefile.in (dsrec.o): Update dependencies.
1952 * dsrec.c: Include "gdb_assert.h".
1953 (make_srec): Use snprintf instead of sprintf, use a literal format
1954 string.
1955
bcf7d3ca
AC
19562003-08-12 Andrew Cagney <cagney@redhat.com>
1957
1958 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1959 FRAME_OBSTACK_ZALLOC.
1960
49ed40de
KB
19612003-08-12 Kevin Buettner <kevinb@redhat.com>
1962
1963 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1964 SSE registers.
1965
b246147c
MK
19662003-08-10 Mark Kettenis <kettenis@gnu.org>
1967
1968 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1969 amd64fbsd_sc_reg_offset): Add extern declarations.
1970 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1971 declarations.
1972
d95fdc0d
BE
19732003-08-11 Ben Elliston <bje@wasabisystems.com>
1974
1975 * MAINTAINERS (write after approval): Update my mail address.
1976
cf6a0e73
AC
19772003-08-10 Andrew Cagney <cagney@redhat.com>
1978
1979 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1980
f837910f
MK
19812003-08-10 Mark Kettenis <kettenis@gnu.org>
1982
e2dbbd2d
MK
1983 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1984 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1985 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1986 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1987 i386bsd_sc_reg_offset): Add extern declarations.
1988 * i386obsd-nat.c: Include "i386-tdep.h"
1989 (_initialize_i386obsd_nat): Remove extern declarations.
1990 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1991 declarations.
1992 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1993 declarations.
1994
f837910f
MK
1995 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1996 instead of frame_read_register.
1997 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1998 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1999 SP_REGNUM.
2000 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2001 instead of frame_unwind_unsigned_register. Use
2002 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2003 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2004 instead of read_register. Use builtin_type_void_data_ptr instead
2005 of builtin_type_void_func_ptr when extracting the address of the
2006 jmp_buf.
2007 (i386_extract_return_value, i386_store_return_value,
2008 i386_pseudo_register_read, i386_pseudo_register_write): Use
2009 register_size instead REGISTER_RAW_SIZE.
2010
edcf254d
AC
20112003-08-10 Andrew Cagney <cagney@redhat.com>
2012
2013 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2014 sprintf. Make "name" constant.
2015
26604a34
MK
20162003-08-10 Mark Kettenis <kettenis@gnu.org>
2017
192285c6
MK
2018 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2019 instead of frame_read_register.
f837910f
MK
2020 (i387_print_float_info): Use get_frame_register and
2021 get_frame_register_unsigned instead of frame_register_read.
192285c6 2022
f0925262
MK
2023 * i386fbsd-nat.c: Include "i386-tdep.h".
2024 (child_resume): Make `eflags' an ULONGEST. Use
2025 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2026 instead of register_read and register_write.
2027
a144416f
MK
2028 * i386bsd-nat.c (fetch_inferior_registers,
2029 store_inferior_registers): Don't use && at the end of a line.
2030 (_initialize_i386bsd_nat): Fix typo.
2031
fec74868
MK
2032 * frame.c (_initialize_frame): Add missing backslash.
2033
87232496
MK
2034 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2035 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2036 and supply_register instead of manipulating the register buffer
2037 directly.
2038
c9b9de0b
MK
2039 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2040 * config/i386/nm-i386sol2.h
2041 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2042
26604a34
MK
2043 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2044 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2045 instructions that GCC likes to mingle into the prologue. Fixes
2046 gdb/1253 and gdb/1255.
2047
25d29d70
AC
20482003-08-09 Andrew Cagney <cagney@redhat.com>
2049
2050 Fix GDB PR cli/926.
2051 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2052 * command.h (add_setshow_uinteger_cmd): Declare.
2053 * frame.c (set_backtrace_cmd): New function.
2054 (show_backtrace_cmd): New function.
2055 * frame.c (_initialize_frame): Replace "set/show
2056 backtrace-below-main" with "set/show backtrace past-main". Add
2057 command "set/show backtrace limit".
2058 (backtrace_past_main): Rename "backtrace_below_main".
2059 (backtrace_limit): New variable.
2060 (get_prev_frame): Update. Check the backtrace_limit.
2061
9ebf4acf
AC
20622003-08-09 Andrew Cagney <cagney@redhat.com>
2063
2064 * defs.h (xstrprintf): Declare.
2065 * utils.c (xstrprintf): New function.
2066 * breakpoint.c (insert_breakpoints): Replace sprintf and
2067 non-literal format strings, with xstrprintf and cleanups.
2068 (delete_breakpoint,breakpoint_re_set): Ditto.
2069 (commands_command, insert_breakpoints): Ditto.
2070 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2071 (break_at_finish_command_1): Ditto.
2072
3771659b
AC
20732003-08-09 Andrew Cagney <cagney@redhat.com>
2074
2075 * MAINTAINERS (language support): List Adam Fedor as Objective C
2076 maintainer.
2077
b4263afa
JB
20782003-08-08 J. Brobecker <brobecker@gnat.com>
2079
2080 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2081 are now multiarched.
2082
d84defb1
JB
20832003-08-08 J. Brobecker <brobecker@gnat.com>
2084
2085 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2086 longer necessary now that hppa64 is partially multiarch'ed.
2087
f786f615
AC
20882003-08-08 Andrew Cagney <cagney@redhat.com>
2089
2090 * interps.c (interp_set): Check for a NULL "old_interp".
2091
c938e9b0
L
20922003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2093
2094 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2095 (install-only): Support DESTDIR.
2096 (uninstall): Likewise.
2097 (install-gdbtk): Likewise.
2098
9a146a11
EZ
20992003-08-08 Elena Zannoni <ezannoni@redhat.com>
2100
2101 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2102 contains something meaningful at all times.
2103
2104Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2105
62599e99 2106 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2107
56296155
BC
2108Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2109
62599e99 2110 * MAINTAINERS (write after approval): Added self.
56296155 2111
9710e734
AC
21122003-08-07 Andrew Cagney <cagney@redhat.com>
2113
2114 * inferior.h (AT_SYMBOL): Define.
2115 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2116 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2117 * mips-tdep.c (mips_call_dummy_address): Delete function.
2118 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2119 set call_dummy_address.
2120
98b3ab73
AC
21212003-08-07 Andrew Cagney <cagney@redhat.com>
2122
2123 * language.c (op_error): Delete function.
2124 (binop_type_check): Delete function.
2125 * language.h (type_op_error, range_op_error): Delete macros.
2126 (op_error): Delete declaration.
2127
2fcf52f0
AC
21282003-08-07 Andrew Cagney <cagney@redhat.com>
2129
2130 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2131
abd4220e 21322003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2133
abd4220e 2134 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2135 (x86_64_push_arguments): Skip the red zone.
abd4220e 2136
9dd5f34f
AC
21372003-08-05 Andrew Cagney <cagney@redhat.com>
2138
2139 * reggroups.c (reggroup_next): Check for the final entry.
2140
e5e78edc
AC
21412003-08-04 Andrew Cagney <cagney@redhat.com>
2142
ab4e3d93
AC
2143 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2144 * cli/cli-script.c (define_command): Call query directly, instead
2145 of passing it a buffer.
2146 * ocd.c (ocd_error): Pass error a constant format string.
2147 * remote-mips.c (mips_error): Use fputs_filtered.
2148
1062ca82
AC
2149 * solib-svr4.c (_initialize_svr4_solib): Update
2150 register_gdbarch_data call.
2151 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2152
fcc1c85c
AC
2153 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2154 (register_gdbarch_data): Delete "free" parameter. Update
2155 comments.
2156 * gdbarch.h, gdbarch.c: Re-generate.
2157 * reggroups.c (_initialize_reggroup): Update.
2158 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2159 * frame-base.c (_initialize_frame_base): Update.
2160 * frame-unwind.c (_initialize_frame_unwind): Update.
2161 * user-regs.c (_initialize_user_regs): Update.
2162 * remote.c (_initialize_remote): Update.
2163 * regcache.c (_initialize_regcache): Update.
2164
116f06ea
AC
2165 * regcache.c (xfree_regcache_descr): Delete function.
2166 (_initialize_regcache): Update call to register_gdbarch_data.
2167 (init_regcache_descr, init_legacy_regcache_descr): Use
2168 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2169
e5e78edc
AC
2170 * remote.c (free_remote_state): Delete function.
2171 (_initialize_remote): Update register_gdbarch_data.
2172 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2173 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2174
6c7d17ba
AC
21752003-08-04 Andrew Cagney <cagney@redhat.com>
2176
2177 * reggroups.c (struct reggroup_el): Define.
2178 (struct reggroups): Delete field "nr_group". Replace array
2179 "group" with a "first" to "last" linked list.
2180 (reggroups_init): Update. Allocate using gdbarch's obstack.
2181 (reggroups_free): Delete function.
2182 (add_group): Update. Add "el" parameter.
2183 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2184 (default_groups): Update.
2185 (reggroup_next): Replace reggroups.
2186 (reggroups_dump): Update.
2187 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2188 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2189 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2190
89b7795b
DJ
21912003-08-04 Daniel Jacobowitz <drow@mvista.com>
2192
2193 * Makefile.in (tui-interp.o): Update dependencies.
2194
306d9ac5
DC
21952003-08-04 David Carlton <carlton@kealia.com>
2196
2197 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2198 to internal_error call.
2199 * source.c (forward_search_command): Add "%s" format argument.
2200 (reverse_search_command): Ditto.
2201 * top.c (quit_confirm): Ditto.
2202 * cli/cli-setshow.c (do_setshow_command): Ditto.
2203 * cp-valprint.c (cp_print_class_method): Replace
2204 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2205 (cp_print_class_member): Ditto.
2206 * event-top.c (command_line_handler): Ditto.
2207 * linux-proc.c (linux_info_proc_cmd): Ditto.
2208 * p-typeprint.c (pascal_type_print_base): Ditto.
2209 * p-valprint.c (pascal_object_print_class_method): Ditto.
2210 (pascal_object_print_class_member): Ditto.
2211 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2212 * remote.c (remote_cisco_section_offsets): Ditto.
2213 * top.c (command_line_input): Ditto.
2214 * utils.c (vwarning,error_stream,quit): Ditto.
2215 * valprint.c (print_floating,print_binary_chars)
2216 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2217
57bfe177
AC
22182003-08-04 Andrew Cagney <cagney@redhat.com>
2219
2220 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2221
e546b999
AC
22222003-08-02 Andrew Cagney <cagney@redhat.com>
2223
2224 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2225 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2226 amd64fbsd-nat.c.
2227
91092ee5
AC
22282003-08-02 Andrew Cagney <cagney@redhat.com>
2229
2230 * Makefile.in: Update all dependencies and definitions.
2231
889f28e2
AF
22322003-08-02 Adam Fedor <fedor@gnu.org>
2233
2234 * linespec.c (is_objc_method_format): New function
2235 (decode_line_1, locate_first_half): Use it.
2236 Fixes PR objc/1298
2237
880bc914
AC
22382003-08-01 Andrew Cagney <cagney@redhat.com>
2239
2240 * NEWS: Mention that m32r is multi-arch.
2241 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2242 * configure.tgt: Recognize m32r-*-*.
2243 * config/m32r/tm-m32r.h: Delete file.
2244 * config/m32r/m32r.mt: New file.
2245 * m32r-rom.c (m32r_upload_command): Use hostent only when
2246 gethostname succeeds, in order to avoid a compilation
2247 warning.
2248 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2249 compiler warning.
2250
19f59343
MS
22512003-08-01 Michael Snyder <msnyder@redhat.com>
2252
2253 * sh-tdep.c (sh_frame_align): New gdbarch method.
2254 (sh_gdbarch_init): Set up frame_align method.
2255
4e7d7511
MS
22562003-07-31 Michael Snyder <msnyder@redhat.com>
2257
2258 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2259 which is already covered by the new frames infrastructure.
2260
63022984
AC
22612003-07-31 Andrew Cagney <cagney@redhat.com>
2262
2263 * user-regs.c (struct user_reg): Add "next" link.
2264 (struct user_regs): Replace "user" with "first" and "last" links.
2265 (append_user_reg): Add pre-allocated "reg" parameter.
2266 (builtin_user_regs): Provide initial value for "last".
2267 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2268 (user_regs_init): Allocate memory from the gdbarch obstack.
2269 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2270 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2271 linked list.
2272 (usernum_to_user_reg): New function.
2273 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2274 (value_of_user_reg): Use usernum_to_user_reg.
2275 (user_regs_free): Delete function.
2276 (_initialize_user_regs): Update register_gdbarch_data call.
2277
7cf6e574
DJ
22782003-07-31 Daniel Jacobowitz <drow@mvista.com>
2279
2280 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2281
c48a845b
MS
22822003-07-30 Michael Snyder <msnyder@redhat.com>
2283
4e7d7511 2284 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2285 * infcall.c (call_function_by_hand): Pass struct_addr to
2286 value_being_returned.
2287 * infcmd.c (print_return_value): Pass zero as struct_addr.
2288 * values.c (value_being_returned): If struct_addr is passed,
2289 use it instead of trying to recover it from the inferior.
2290
f0d8db19
KB
22912003-07-30 Kevin Buettner <kevinb@redhat.com>
2292
2293 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2294 the prologue analyzer won't need to attempt to extract the pc
2295 value from the woefully incomplete dummy frame.
2296 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2297 possible. Disable code which modifies the frame.
2298
e5c113a1
AC
22992003-07-28 Andrew Cagney <cagney@redhat.com>
2300
2301 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2302 to level 2.
2303 (annotate_breakpoints_table, annotate_record): Ditto.
2304 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2305 (annotate_field_name_end, annotate_field_value): Ditto.
2306 (annotate_field_end, annotate_frame_source_begin): Ditto.
2307 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2308 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2309 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2310 (annotate_frame_address_end, annotate_frame_address): Ditto.
2311 (annotate_frame_args, annotate_frame_end): Ditto.
2312 (annotate_frame_where, annotate_arg_begin): Ditto.
2313 (annotate_arg_name_end, annotate_arg_value): Ditto.
2314 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2315 (annotate_function_call, annotate_signal_name): Ditto.
2316 (annotate_signal_string, annotate_signal_name_end): Ditto.
2317 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2318 (annotate_value_begin, annotate_value_history_value): Ditto.
2319 (annotate_value_history_end, annotate_value_end): Ditto.
2320 (annotate_display_begin, annotate_display_number_end): Ditto.
2321 (annotate_display_format, annotate_display_expression): Ditto.
2322 (annotate_display_expression_end, annotate_display_value): Ditto.
2323 (annotate_display_end, annotate_array_section_begin): Ditto.
2324 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2325 (annotate_elt, annotate_array_section_end): Ditto.
2326
bb1db049
AC
23272003-07-28 Andrew Cagney <cagney@redhat.com>
2328
2329 * regcache.c (struct regcache_descr): Update comments on
2330 nr_raw_registers.
2331 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2332 sizeof_raw_register_valid_p.
2333 (init_regcache_descr): Set nr_raw_registers and
2334 sizeof_raw_register_valid_p before calling
2335 init_legacy_regcache_descr.
2336
20e6603c
AC
23372003-07-28 Andrew Cagney <cagney@redhat.com>
2338
2339 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2340 MOD NUM_REGS.
2341
db742940
DJ
23422003-07-28 Daniel Jacobowitz <drow@mvista.com>
2343
2344 * thread.c (info_threads_command): Use get_selected_frame ().
2345 Check that there is at least one non-sentinel frame.
2346
ce7f4371
SC
23472003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2348
2349 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2350 (m68hc11_pop_frame): Remove.
2351 (m68hc11_frame_saved_pc): Remove.
2352 (m68hc11_frame_chain): Remove.
2353 (m68hc11_frame_init_saved_regs): Remove.
2354 (m68hc11_init_extra_frame_info): Remove.
2355 (m68hc11_store_struct_return): Remove.
2356 (m68hc11_saved_pc_after_call): Remove.
2357
1ea653ae
SC
23582003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2359
2360 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2361 frame unwind information.
2362 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2363 and adapted for frame unwinding.
2364 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2365 (m68hc11_unwind_pc): New function.
2366 (m68hc11_frame_unwind_cache): New function to analyze frames.
2367 (m68hc11_frame_this_id): New function to create new frame struct.
2368 (m68hc11_frame_prev_register): New function to unwind a register from
2369 the frame.
2370 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2371 (m68hc11_frame_p): New function for the above.
2372 (m68hc11_frame_base_address): New function to return fp of frame.
2373 (m68hc11_frame_args_address): Update for frame.
2374 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2375 (m68hc11_unwind_sp): New function.
2376 (m68hc11_unwind_dummy_id): New function.
2377 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2378 calls.
2379
c8a7f6ac
SC
23802003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2381
2382 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2383 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2384 when we are beyond the current pc.
2385
3dc990bf
SC
23862003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2387
2388 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2389 from m68hc11_push_arguments.
2390 (m68hc11_push_arguments): Remove.
2391 (m68hc11_push_return_address): Remove.
2392 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2393 handlers; remove deprecated_extra_stack_alignment_needed.
2394
222e5d1d
AC
23952003-07-27 Andrew Cagney <cagney@redhat.com>
2396
2397 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2398 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2399 REAL_PC and not the pointer.
2400 * hppa-hpux-tdep.c: Include frame.h
2401
a7e9a47e
AC
24022003-07-27 Andrew Cagney <cagney@redhat.com>
2403
2404 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2405 GDB_MULTI_ACH_PARTIAL.
2406
7e3dd49e
AC
24072003-07-27 Andrew Cagney <cagney@redhat.com>
2408
2409 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2410 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2411 operator at start and not end of line.
2412 (decode_prologue): Ditto.
2413 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2414 frame_unwind_register_unsigned instead of
2415 frame_unwind_unsigned_register.
2416 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2417 read_register.
2418 (m32r_push_dummy_call): Use register_size instead of
2419 REGISTER_RAW_SIZE.
2420 (m32r_frame_sniffer): Replace m32r_frame_p.
2421 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2422 * m32r-rom.c (report_transfer_performance): Delete extern
2423 declaration.
2424 (m32r_load, m32r_upload_command): Use print_transfer_performance
2425 instead of report_transfer_performance.
2426 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2427 / add_show_from_set.
2428
0880807f
AC
24292003-07-26 Andrew Cagney <cagney@redhat.com>
2430
2431 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2432 store_return_value and extract_struct_value_address.
2433
64ae9269
DJ
24342003-07-26 Daniel Jacobowitz <drow@mvista.com>
2435
2436 PR c++/1267
2437 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2438 NULL, default to the section containing PC.
2439
e286caf2
SC
24402003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2441
2442 * NEWS: Mention "regs" deprecated for m68hc11 too.
2443
2444 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2445 (m68hc11_print_register): New function to print out one register.
2446 (m68hc11_print_registers_info): New function to print registers.
2447 (show_regs): Deprecate and use the above.
2448 (m68hc11_gdbarch_init): Install the print_registers_info.
2449
705b278b
JJ
24502003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2451
2452 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2453 that we have a SIGTRAP before returning non-zero.
2454
63cd4198
EZ
24552003-07-23 Michal Ludvig <mludvig@suse.cz>
2456 Elena Zannoni <ezannoni@redhat.com>
2457
2458 * linespec.c (decode_line_2): Avoid crash if
2459 find_function_start_sal() returns empty record.
2460
6926787d
AS
24612003-07-23 Andreas Schwab <schwab@suse.de>
2462
2463 * ia64-tdep.c (ia64_print_insn): New function.
2464 (ia64_gdbarch_init): Set print_insn to it.
2465 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2466 deprecated_tm_print_insn_info.
2467
708cc1b6
MS
24682003-07-22 Michael Snyder <msnyder@redhat.com>
2469
2470 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2471 handle 8-bit returns (long long).
2472 (h8300h_extract_return_value): Ditto.
2473 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2474
aebd7893
AC
24752003-07-22 Andrew Cagney <cagney@redhat.com>
2476
2477 * gdbarch.c Include "gdb_obstack.h".
2478 (struct gdbarch): Add an "obstack".
2479 (alloc_gdbarch_data): Allocate the gdbarch data using
2480 GDBARCH_OBSTACK_CALLOC.
2481 (free_gdbarch_data): Delete function.
2482 (gdbarch_obstack_zalloc): New function.
2483 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2484 Assert that the architecture is not initialized.
2485 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2486 vector from the obstack.
2487 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2488 architecture obstack.
2489 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2490 (set_gdbarch_data): Assert that the data is not initialized.
2491 (struct gdbarch_data): Delete member "free".
2492 (register_gdbarch_data): Do not initialize "free".
2493 * gdbarch.h, gdbarch.c: Re-generate.
2494
153721e6
AC
24952003-07-22 Andrew Cagney <cagney@redhat.com>
2496
2497 * configure.in (build_warnings): Add -Wformat-nonliteral.
2498 * configure: Re-generate.
2499
c193f044 25002003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2501
2502 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2503
c3228f12
EZ
25042003-07-22 Elena Zannoni <ezannoni@redhat.com>
2505
2506 * findvar.c (read_var_value): Remove case for thread local storage
2507 variables. It is now entirely handled by the dwarf2 location
2508 expression code.
2509 * printcmd.c (address_info): Ditto.
2510 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2511 enumeration value.
2512 (struct symbol): Remove objfile field, which was used by
2513 LOC_THREAD_LOCAL_STATIC only.
2514 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2515 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2516 usage of objfile pointer.
2517 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2518 thread local variables.
2519 Add include of objfiles.h.
2520 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2521 storage variables.
2522 * Makefile.in (dwarf2loc.o): Update dependencies.
2523
aef9bcd2
AC
25242003-07-22 Andrew Cagney <cagney@redhat.com>
2525
2526 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2527 get_frame_base.
2528 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2529 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2530 (struct value): Add opaque declaration.
2531 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2532
d95a8903
AC
25332003-07-21 Andrew Cagney <cagney@redhat.com>
2534
2535 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2536 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2537
4db73d49
SC
25382003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2539
2540 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2541 regcache_cooked_read_unsigned instead of read_register.
2542 (m68hc11_saved_pc_after_call): Likewise.
2543 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2544 instead of write_register.
2545 (m68hc11_register_type): New function.
2546 (m68hc11_register_virtual_type): Remove.
2547 (m68hc11_store_return_value): Convert to use the regcache.
2548 (m68hc11_extract_struct_value_address): Likewise.
2549 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2550 m68hc11_register_type; undeprecate store_return_value and
2551 extract_struct_value_address.
2552
ef2b8fcd
SC
25532003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2554
2555 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2556 and translate to use regcache.
2557 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2558
625b0b97
AC
25592003-07-18 Andrew Cagney <cagney@redhat.com>
2560
2561 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2562 * gdbarch.h, gdbarch.c: Re-generate.
2563 * i386-tdep.c (i386_gdbarch_init): Do not set
2564 DWARF2_BUILD_FRAME_INFO.
2565 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2566 unconditionally.
2567 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2568 DWARF2_BUILD_FRAME_INFO.
2569
22b0d388
AC
25702003-07-18 Andrew Cagney <cagney@redhat.com>
2571
2572 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2573 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2574
1ce5d6dd
AC
25752003-07-18 Andrew Cagney <cagney@redhat.com>
2576
2577 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2578 frame_unwind_address_in_block, instead of frame_pc_unwind.
2579 (dwarf2_frame_cache): Ditto.
2580
e6e5e94c
AC
25812003-07-18 Andrew Cagney <cagney@redhat.com>
2582
2583 * user-regs.h (struct gdbarch): Declare opaque.
2584 * ui-out.h (struct ui_file): Declare opaque.
2585 * dwarf2-frame.h (struct frame_info): Declare opaque.
2586
5483d879
KW
25872003-07-18 Kris Warkentin <kewarken@qnx.com>
2588
2589 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2590 #include "...".
2591 (procfs_meminfo): Change strerror to safe_strerror.
2592 (procfs_can_run): Remove K&R badness.
2593
278a7cf7
MS
25942003-07-17 Michael Snyder <msnyder@redhat.com>
2595
2596 * remote-sim.c: Comment typo fix.
2597
606e3b82
AC
25982003-07-17 Andrew Cagney <cagney@redhat.com>
2599
2600 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2601 configure.
2602 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2603 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2604 GDB_MULTI_ARCH_PARTIAL.
2605
c43af07c
EZ
26062003-07-17 Elena Zannoni <ezannoni@redhat.com>
2607
2608 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2609 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2610 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2611
3b85b0f1
TR
26122003-07-16 Theodore A. Roth <troth@openavr.org>
2613
2614 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2615 found.
2616 (avr_frame_unwind_cache): Don't unwind FP for main.
2617 Update a comment.
2618 Save the computed prev_sp.
2619 (avr_saved_regs_unwinder): Remove function.
2620 (avr_frame_prev_register): Use PC unwind logic from
2621 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2622
336d1bba
AC
26232003-07-16 Andrew Cagney <cagney@redhat.com>
2624
2625 * frame-base.h (frame_base_p_ftype): Delete definition.
2626 (frame_base_append_predicate): Delete declaration.
2627 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2628 (frame_unwind_append_predicate): Delete declaration.
2629 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2630 (append_predicate): Delete parameter "p".
2631 (frame_unwind_append_predicate): Delete function.
2632 (frame_unwind_append_sniffer): Update call to append_predicate.
2633 (frame_unwind_free): Delete function.
2634 (_initialize_frame_unwind): Pass NULL as "free" to
2635 register_gdbarch_data.
2636 (frame_unwind_init): Append the dummy_frame_sniffer.
2637 (frame_unwind_find_by_frame): Simplify.
2638 * frame-base.c (struct frame_base_table): Delete field "p".
2639 (append_predicate): Delete parameter "p".
2640 (frame_base_append_predicate): Delete function.
2641 (frame_base_append_sniffer): Update call to append_predicate.
2642 (frame_base_free): Delete function.
2643 (frame_base_find_by_frame): Simplify.
2644 (_initialize_frame_base): Pass NULL as "free" to
2645 register_gdbarch_data.
2646 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2647 (x86_64_sigtramp_frame_sniffer): Replace
2648 "x86_64_sigtramp_frame_p".
2649 (x86_64_init_abi): Set the frame unwind sniffers.
2650 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2651 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2652 (m68k_gdbarch_init): Set the frame unwind sniffers.
2653 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2654 "i386_sigtramp_frame_p".
2655 (i386_frame_sniffer): Replace "i386_frame_p".
2656 (i386_gdbarch_init): Set the frame unwind sniffers.
2657 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2658 (avr_gdbarch_init): Set the frame unwind sniffers.
2659 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2660 "alpha_sigtramp_frame_p"
2661 (alpha_heuristic_frame_sniffer): Replace
2662 "alpha_heuristic_frame_p".
2663 (alpha_gdbarch_init): Set the frame unwind sniffers.
2664 (alpha_dwarf2_init_abi): Ditto.
2665 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2666 "alpha_debug_frame_p".
2667 (alpha_mdebug_frame_base_sniffer): Replace
2668 "alpha_mdebug_frame_base_p".
2669 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2670 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2671 (d10v_gdbarch_init): Set the frame unwind sniffer.
2672 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2673 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2674 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2675 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2676 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2677 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2678
48db5a3c
CV
26792003-07-16 Michael Snyder <msnyder@redhat.com>
2680
2681 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2682 should go thru sh_dsp_register_sim_regno, else the dsp regs
2683 will not get the right values.
2684
26852003-07-16 Corinna Vinschen <vinschen@redhat.com>
2686
2687 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2688 deprecated_store_floating by call to store_typed_floating.
2689 (sh_sh4_register_convert_to_raw): Substitute call to
2690 deprecated_extract_floating by call to extract_typed_floating.
2691
26922003-07-16 Corinna Vinschen <vinschen@redhat.com>
2693
2694 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2695
26962003-07-16 Corinna Vinschen <vinschen@redhat.com>
2697
2698 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2699 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2700 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2701 as possible.
2702 (do_pseudo_register): Remove.
2703 (sh_push_dummy_code): New function.
2704 (sh64_store_struct_return): Rename from sh_store_struct_return.
2705 Only called for sh64 now.
2706 (sh_extract_struct_value_address): Regcache'ify.
2707 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2708 and accomodate new tasks.
2709 (sh64_push_return_address): Rename from sh_push_return_address.
2710 Only called for sh64 now.
2711 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2712 Regcache'ify.
2713 (sh3e_sh4_extract_return_value): Regcache'ify.
2714 (sh_default_store_return_value): Ditto.
2715 (sh3e_sh4_store_return_value): Ditto.
2716 (sh_default_register_byte): Remove.
2717 (sh_sh4_register_byte): Remove.
2718 (sh_default_register_raw_size): Remove.
2719 (sh_sh4_register_raw_size): Remove.
2720 (sh_register_virtual_size): Remove.
2721 (sh_sh3e_register_virtual_type): Remove.
2722 (sh_sh3e_register_type): New function.
2723 (sh_sh4_register_virtual_type): Remove.
2724 (sh_sh4_register_type): New function.
2725 (sh_default_register_virtual_type): Remove.
2726 (sh_default_register_type): New function.
2727 (do_fv_register_info): Add parameters to accomodate call from
2728 sh_print_registers_info.
2729 (do_dr_register_info): Ditto.
2730 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2731 Add parameters to accomodate call from sh_print_registers_info.
2732 (sh_do_fp_register): Ditto.
2733 (sh64_do_pseudo_register): Call do_dr_register_info,
2734 do_fv_register_info and sh_do_fp_register with default parameters.
2735 (sh_do_register): Add parameters to accomodate call from
2736 sh_print_registers_info.
2737 (sh_print_register): Ditto.
2738 (sh_print_registers_info): Rename from sh_do_registers_info.
2739 Add parameters to be used as gdbarch_print_registers_info
2740 implementation. Accomodate removed do_pseudo_register function
2741 pointer.
2742 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2743 function pointer. Call sh_print_register with default parameters.
2744 (sh64_do_registers_info): Call sh_print_registers_info instead of
2745 sh_do_registers_info.
2746 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2747 detection of deprecated vs. non-deprecated functionality.
2748 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2749 function pointer assignments by direct function calls.
2750
e8a89fe2
AC
27512003-07-15 Andrew Cagney <cagney@redhat.com>
2752
2753 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2754 (frame_register_unwind, create_new_frame): Ditto.
2755 (legacy_get_prev_frame, get_frame_type): Ditto.
2756 (get_frame_base_address): Use frame_base_find_by_frame.
2757 (get_frame_locals_address): Use frame_base_find_by_frame.
2758 (get_frame_args_address): Use frame_base_find_by_frame.
2759 * frame-base.h (frame_base_sniffer_ftype): Declare.
2760 (frame_base_append_sniffer): Declare.
2761 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2762 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2763 (frame_base_append_sniffer): New function.
2764 (frame_base_append_predicate): Add a NULL sniffer.
2765 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2766 (struct frame_base_table): Add "sniffer".
2767 (frame_base_free): Free the "sniffer" table.
2768 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2769 (frame_unwind_append_sniffer): Declare.
2770 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2771 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2772 (struct frame_unwind_table): Add "sniffer", delete "middle".
2773 (append_predicate): Add "sniffer" parameter, append the sniffer.
2774 (frame_unwind_init): Update append_predicate call.
2775 (frame_unwind_append_sniffer): New function.
2776 (frame_unwind_append_predicate): Update append_predicate call.
2777 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2778
0714963c
AC
27792003-07-15 Andrew Cagney <cagney@redhat.com>
2780
2781 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2782 before code inhibiting repeated unwind attempts. Add to
2783 commentary on that test's problems.
2784 * blockframe.c (inside_main_func): Look for "main" in the minimal
2785 symbol table.
2786 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2787 identical.
2788
d9170e22
AC
27892003-07-15 Andrew Cagney <cagney@redhat.com>
2790
2791 * complaints.c (struct explanation): Define.
2792 (struct complaints): Change type of "explanation" to "struct
2793 explanation".
2794 (symfile_explanations): Convert to a "struct explanation" table.
2795 (vcomplaint): Update.
2796
eba29c8c
ML
27972003-07-15 Michal Ludvig <mludvig@suse.cz>
2798
2799 * x86-64-linux-nat.c (regmap): Removed.
2800 (supply_gregset, fill_gregset): Call
2801 x86_64_linux_(fill,supply)_gregset functions.
2802 * x86-64-linux-tdep.c (USER_*): New defines.
2803 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2804 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2805 New functions.
2806 (fetch_core_registers): Ditto.
2807 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2808 * x86-64-linux-tdep.h: New file.
2809 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2810 and core-regset.o.
2811 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2812
68cc0bfb
MK
28132003-07-13 Mark Kettenis <kettenis@gnu.org>
2814
88a115f7
MK
2815 * x86-64-tdep.c (x86_64_store_return_value): Use
2816 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2817
68cc0bfb
MK
2818 * configure.host: Add x86_64-*-freebsd*.
2819 * configure.tgt: Add x86_64-*-freebsd*.
2820 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2821 * amd64fbsd-nat.c: New file.
2822 * amd64fbsd-tdep.c: New file.
2823 * config/i386/nm-fbsd64.h: New file.
2824 * config/i386/fbsd64.mh: New file.
2825 * config/i386/fbsd64.mt: New file.
2826
138e7be5
MK
28272003-07-11 Mark Kettenis <kettenis@gnu.org>
2828
2829 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2830 `sc_regs_offset' and `sc_fpregs_offset'.
2831 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2832 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2833 (alpha_sigtramp_register_address): Rewrite to use new members of
2834 `struct gdbarch_tdep'.
2835 (alpha_gdbarch_init): Initialize new members of struct
2836 gdbarch_tdep'.
2837 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2838 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2839 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2840 (alphafbsd_pc_in_sigtramp): Implement.
2841 (alphafbsd_sigtramp_offset): New function.
2842 (alphafbsd_sigcontext_addr): New function.
2843 (alphafbsd_init_abi): Initialize signal trampoline related members
2844 of `struct gdbarch_tdep'.
2845 (_initialize_alphafbsd_tdep): Add prototype.
2846
95303a68
TR
28472003-07-11 Theodore A. Roth <troth@openavr.org>
2848
ba292e4c
TR
2849 * Makefile.in (install-only): Quote sed expression when generating
2850 transformed_name.
95303a68 2851
6896c0c7
RH
28522003-07-11 Richard Henderson <rth@redhat.com>
2853
2854 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2855 * dwarf2-frame.c: Include complaints.h.
2856 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2857 variable initialization; return NULL on error.
2858 (decode_frame_entry): New.
2859
8edd5d01
AC
28602003-07-11 Andrew Cagney <cagney@redhat.com>
2861
c4a09524
AC
2862 * frame.h (frame_address_in_block): Delete declaration.
2863 * blockframe.c (frame_address_in_block): Delete function.
2864 (get_frame_block): Use get_frame_address_in_block.
2865 (block_innermost_frame): Ditto.
2866 * stack.c (print_frame, backtrace_command_1): Ditto.
2867
8edd5d01
AC
2868 * frame.h (get_frame_address_in_block): Declare.
2869 (frame_unwind_address_in_block): Declare.
2870 * frame.c (frame_unwind_address_in_block): New function.
2871 (get_frame_address_in_block): New function.
2872
f7968451
AC
28732003-07-10 Andrew Cagney <cagney@redhat.com>
2874
2875 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2876 pre-default. Note: re-generate has no effect.
2877
ae99b398
AC
28782003-07-10 Andrew Cagney <cagney@redhat.com>
2879
2880 * gdbarch.sh: When a variable, but not a function, compare against
2881 0. Fix problem in previous patch.
2882 * gdbarch.c: Re-generate.
2883
956ac328
AC
28842003-07-10 Andrew Cagney <cagney@redhat.com>
2885
2886 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2887 functions against NULL, not 0.
2888 * gdbarch.c: Re-generate.
2889
287c3240
FF
28902003-07-10 Fred Fish <fnf@ninemoons.com>
2891
2892 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2893 null string instead of a null pointer.
2894 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2895
32f63c4b
MS
28962003-07-09 Michael Snyder <msnyder@redhat.com>
2897
2898 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2899
402ecd56
MK
29002003-07-09 Mark Kettenis <kettenis@gnu.org>
2901
2902 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2903 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2904 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2905 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2906 * x86-64-tdep.c: ... from here.
2907
c481dac7
AS
29082003-07-09 Andreas Schwab <schwab@suse.de>
2909
2910 * m68k-tdep.h (enum struct_return): Define.
2911 (struct gdbarch_tdep): Add struct_return.
2912 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2913 bytes are padded to the right, not to the left. Pass struct value
2914 address in register %a1, not on stack.
2915 (m68k_use_struct_convention): New function.
2916 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2917 struct_return in tdep to pcc_struct_return.
2918 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2919 reg_struct_return.
2920
64176fa3
JB
29212003-07-09 Joel Brobecker <brobecker@gnat.com>
2922
2923 * somread.c (som_symfile_offsets): Fix compilation error.
2924
96a4ee76
AC
29252003-07-09 Andrew Cagney <cagney@redhat.com>
2926
2927 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2928 Add comments about the checks.
2929
1517c6d1
AC
29302003-07-08 Andrew Cagney <cagney@redhat.com>
2931
2932 * Makefile.in: Make dependency section headers consistent.
2933 (config_h): Move to $BUILD headers section.
2934 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2935 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2936 (ada-exp.tab.c): Move to YACC/LEX section.
2937 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2938 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2939
dc5dd1eb
KW
29402003-07-08 Kris Warkentin <kewarken@qnx.com>
2941
2942 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2943 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2944 of strerror with safe_strerror, use ISO C function definitions,
2945 and replace instances of sprintf with snprintf.
dc5dd1eb 2946
612dde91
AC
29472003-07-07 Andrew Cagney <cagney@redhat.com>
2948
2949 * frame.c (get_prev_frame): Enable check for identical frames.
2950 Update comments. Update error messages.
2951
492c11d3
JB
29522003-07-07 Joel Brobecker <brobecker@gnat.com>
2953
2954 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2955
376a5a49
JB
29562003-07-07 Joel Brobecker <brobecker@gnat.com>
2957
2958 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2959 sort_symtab_syms, no longer necessary.
2960
22b4a9ad
JB
29612003-07-07 Joel Brobecker <brobecker@gnat.com>
2962
2963 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2964
5bbcb741
JB
29652003-07-07 Joel Brobecker <brobecker@gnat.com>
2966
2967 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2968 (mips_register_byte): Likewise.
2969
c139e7d9
DJ
29702003-07-07 Daniel Jacobowitz <drow@mvista.com>
2971
2972 * Makefile.in (sparc_tdep_h): New.
2973 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2974 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2975 * sparc-linux-nat.c: Include "sparc-tdep.h".
2976 * sparc-nat.c: Likewise.
2977 * sparc-tdep.c: Likewise.
2978 * sparc64nbsd-nat.c: Likewise.
2979 * sparcnbsd-nat.c: Likewise.
2980 * sparcnbsd-tdep.c: Likewise.
2981 * sparc-tdep.h: New file.
2982 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2983 and sparc_npc_regnum.
2984
fd8f87c5
DJ
29852003-07-07 Daniel Jacobowitz <drow@mvista.com>
2986
2987 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2988 (mips_linux_cannot_store_register): List supported instead of
2989 unsupported registers.
2990
13adf674
DJ
29912003-07-07 Daniel Jacobowitz <drow@mvista.com>
2992
2993 * disasm.c (dump_insns): Separate instructions from addresses.
2994
8de307e0
AS
29952003-07-07 Andreas Schwab <schwab@suse.de>
2996
2997 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2998 dependencies.
2999 * m68k-tdep.c (NUM_FREGS): Delete.
3000 (SIG_PC_FP_OFFSET): Delete.
3001 (TARGET_M68K): Delete.
3002 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3003 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3004 P_MOVEL_SP, P_MOVEML_SP): Define.
3005 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3006 P_TRAP): Delete.
3007 (m68k_register_raw_size): Delete.
3008 (m68k_register_virtual_size): Delete.
3009 (m68k_register_type): Renamed from m68k_register_virtual_type and
3010 add gdbarch argument.
3011 (m68k_store_struct_return): Delete.
3012 (m68k_deprecated_extract_return_value): Delete.
3013 (m68k_deprecated_extract_struct_value_address): Delete.
3014 (m68k_frame_chain): Delete.
3015 (m68k_frame_saved_pc): Delete.
3016 (m68k_fix_call_dummy): Delete.
3017 (m68k_push_dummy_frame): Delete.
3018 (m68k_pop_frame): Delete.
3019 (m68k_extract_return_value): New function.
3020 (m68k_store_return_value): Rewrite using regcache.
3021 (m68k_extract_struct_value_address): Rewrite using regcache.
3022 (m68k_push_dummy_call): New function.
3023 (struct m68k_frame_cache): Define.
3024 (m68k_alloc_frame_cache): New function.
3025 (m68k_analyze_frame_setup): New function.
3026 (m68k_analyze_register_saves): New function.
3027 (m68k_analyze_prologue): New function.
3028 (m68k_skip_prologue): Rewrite using above functions.
3029 (m68k_unwind_pc): New function.
3030 (m68k_frame_cache): New function.
3031 (m68k_frame_this_id): New function.
3032 (m68k_frame_prev_register): New function.
3033 (m68k_frame_unwind): New variable.
3034 (m68k_frame_p): New function.
3035 (m68k_sigtramp_frame_cache): New function.
3036 (m68k_sigtramp_frame_this_id): New function.
3037 (m68k_sigtramp_frame_prev_register): New function.
3038 (m68k_sigtramp_frame_unwind): New variable.
3039 (m68k_sigtramp_frame_p): New function.
3040 (m68k_frame_base_address): New function.
3041 (m68k_frame_base): New function.
3042 (m68k_unwind_dummy_id): New function.
3043 (fill_gregset): Use regcache_collect.
3044 (fill_fpregset): Likewise.
3045 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3046 defined.
3047 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3048 deprecated_init_frame_pc, deprecated_store_struct_return,
3049 deprecated_extract_return_value, deprecated_store_return_value,
3050 deprecated_frame_chain, deprecated_frame_saved_pc,
3051 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3052 deprecated_register_virtual_size,
3053 deprecated_max_register_raw_size,
3054 deprecated_max_register_virtual_size,
3055 deprecated_register_virtual_type, deprecated_register_size,
3056 deprecated_register_byte, deprecated_register_bytes,
3057 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3058 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3059 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3060 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3061 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3062 deprecated_push_dummy_frame, deprecated_pop_frame,
3063 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3064 only if SYSCALL_TRAP is defined. Set extract_return_value,
3065 store_return_value, extract_struct_value_address, register_type,
3066 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3067 predicates.
3068 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3069 M68K_MAX_REGISTER_SIZE): Define.
3070 (struct m68k_sigtramp_info): Define.
3071 (struct gdbarch_tdep): Add get_sigtramp_info.
3072 * m68klinux-nat.c (fetch_register): Use register_size instead of
3073 REGISTER_RAW_SIZE. Don't put assignment in if.
3074 (store_register): Likewise.
3075 (fetch_inferior_registers): Likewise.
3076 (store_inferior_registers): Likewise.
3077 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3078 (m68k_linux_frame_saved_pc): Delete.
3079 (m68k_linux_sigcontext_reg_offset,
3080 m68k_linux_ucontext_reg_offset): Define.
3081 (m68k_linux_get_sigtramp_info): New function.
3082 (m68k_linux_extract_return_value): Rewrite using regcache.
3083 (m68k_linux_store_return_value): Likewise.
3084 (m68k_linux_extract_struct_value_address): Likewise.
3085 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3086 Don't set deprecated_frame_saved_pc,
3087 deprecated_extract_return_value, deprecated_store_return_value,
3088 deprecated_extract_struct_value_address. Set
3089 extract_return_value, store_return_value,
3090 extract_struct_value_address.
3091
eb8bc282
AC
30922003-07-07 Andrew Cagney <cagney@redhat.com>
3093
3094 * expprint.c: Include "user-regs.h" instead of "frame.h".
3095 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3096 frame_map_regnum_to_name.
3097 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3098 (frame_map_name_to_regnum): Simplify, call
3099 user_reg_map_name_to_regnum.
3100 (frame_map_regnum_to_name): Simplify, call
3101 user_reg_map_regnum_to_name.
3102 (frame_register_unwind): Update.
3103 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3104 (_initialize_frame_reg): Call user_reg_add_builtin.
3105 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3106 (value_of_register): Use value_of_user_reg.
3107 * eval.c (evaluate_subexp_standard): Update.
3108 * parse.c (write_dollar_variable): Update.
3109 * d10v-tdep.c (d10v_print_registers_info): Update.
3110 * infcmd.c (registers_info): Update.
3111 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3112 (builtin_regs_h): Delete macro.
3113 (user_regs_h): Define.
3114 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3115 (builtin-regs.o): Delete target.
3116 (user-regs.o): Specify dependencies.
3117 (expprint.o): Update dependencies.
3118 (findvar.o): Update dependencies.
3119 (frame.o): Update dependencies.
3120 (std-regs.o): Update dependencies.
3121
9f476a01
CF
31222003-07-06 Christopher Faylor <cgf@redhat.com>
3123
3124 * win32-nat.c (solib_symbols_add): Use one variable for all section
3125 address stuff. Pass variable rather than address of variable to
3126 safe_symbol_file_add.
3127
a731b831
AS
31282003-07-06 Andreas Schwab <schwab@suse.de>
3129
3130 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3131
9f83329d
JB
31322003-07-04 Joel Brobecker <brobecker@gnat.com>
3133
3134 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3135
27e28cc5
KW
31362003-07-04 Kris Warkentin <kewarken@qnx.com>
3137
3138 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3139
31402003-07-04 Kris Warkentin <kewarken@qnx.com>
3141
3142 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3143 * config/i386/nto.mh: New file.
3144 * config/i386/nm-nto.h: New file.
3145 * configure.host: Add i[3456]86-*-nto*.
3146
100f2e98
JB
31472003-07-03 Joel Brobecker <brobecker@gnat.com>
3148
3149 * remote-vx.c (vx_add_symbols): Fix compilation error.
3150
e23457df
AC
31512003-07-03 Andrew Cagney <cagney@redhat.com>
3152
3153 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3154 * gdbarch.h, gdbarch.c: Re-generate.
3155 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3156 (legacy_register_name): Declare.
3157 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3158 (REGISTER_NAME): Define.
3159 * sparc-tdep.c (legacy_register_name): New function.
3160 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3161 (REGISTER_NAME): Define.
3162 (hppa64_register_name): Declare.
3163 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3164 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3165 (hppa64_register_name): New function.
3166 (hppa_register_name): New function.
3167 * arch-utils.c (legacy_register_name): Delete.
3168 * arch-utils.h (legacy_register_name): Delete.
3169
38caaeec
DJ
31702003-07-03 Daniel Jacobowitz <drow@mvista.com>
3171
3172 * cli/cli-interp.c (cli_interpreter_resume): Update the
3173 cli_uiout's stream to gdb_stdout.
3174
dadd712e
AC
31752003-07-03 Andrew Cagney <cagney@redhat.com>
3176
3177 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3178 predicate.
3179 * gdbarch.h, gdbarch.c: Re-generate.
3180 * regcache.c (init_regcache_descr): Use legacy code when either
3181 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3182
c7f1390e
DJ
31832003-07-02 Daniel Jacobowitz <drow@mvista.com>
3184
3185 * NEWS: Move "set logging" entry into GDB 6.0 section.
3186
4bc8c588
JB
31872003-07-02 Jim Blandy <jimb@redhat.com>
3188
a9dd42f1
JB
3189 * s390-tdep.c (struct frame_extra_info): new member:
3190 'stack_bought_valid'.
3191 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3192 initialize fextra_info->stack_bought.
3193 (s390_frameless_function_invocation): Don't trust the value of
3194 fextra_info_ptr->stack_bought unless
3195 fextra_info->stack_bought_valid is set.
3196
4bc8c588
JB
3197 New S390 prologue analyzer.
3198 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3199 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3200 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3201 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3202 compute_x_addr, s390_on_stack, s390_store,
3203 s390_get_signal_frame_info): New functions.
3204 (S390_NUM_SPILL_SLOTS): New macro.
3205 (s390_get_frame_info): Rewritten.
3206 (is_arg_reg): Deleted.
3207
3208 Break out the decoding of S/390 instructions into separate
3209 functions, to make it more legible, and easier to check
3210 against the spec.
3211 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3212 is_rx, is_rxe): New functions.
3213 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3214 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3215 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3216 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3217 enums for opcode values. (Is this an improvement?)
3218
fd13a04a
AC
32192003-07-02 Andrew Cagney <cagney@redhat.com>
3220
3221 * i386-tdep.c: Revert change committed as part of trad-frame code
3222 below.
3223
3f8091c1
DJ
32242003-07-02 Daniel Jacobowitz <drow@mvista.com>
3225
3226 * breakpoint.c (insert_catchpoint): Make static.
3227
8dd5115e
AS
32282003-07-02 Andreas Schwab <schwab@suse.de>
3229
3230 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3231 former ia64_push_arguments and ia64_push_return_address, and use
3232 regcache functions instead of read/write_register.
3233 (ia64_gdbarch_init): Set push_dummy_call instead of
3234 deprecated_push_arguments and deprecated_push_return_address.
3235
a2229c23
AJ
32362003-07-01 Andreas Jaeger <aj@suse.de>
3237
3238 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3239 before the call.
3240 Set %rax only to number of SSE registers used.
3241
3b3850e8
AC
32422003-07-01 Andrew Cagney <cagney@redhat.com>
3243
3244 * trad-frame.h: Update comments, a -1 .addr is reserved.
3245 (trad_frame_value_p, trad_frame_addr_p): Declare.
3246 (trad_frame_reg_p): Declare.
3247 (trad_frame_set_value): Rename trad_frame_register_value.
3248 (trad_frame_set_unknown): Declare.
3249 * trad-frame.c (trad_frame_realreg_p): New function.
3250 (trad_frame_addr_p, trad_frame_value_p): New function.
3251 (trad_frame_set_unknown): New function.
3252 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3253 (trad_frame_prev_register): Use trad_frame_realreg_p,
3254 trad_frame_addr_p and trad_frame_value_p.
3255 (trad_frame_set_value): Rename trad_frame_register_value.
3256 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3257 and trad_frame_set_value.
a2229c23 3258
4d819d0e
JB
32592003-06-30 Jim Blandy <jimb@redhat.com>
3260
3261 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3262 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3263 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3264 for 16 registers, and then 32 more bytes.
3265 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3266 New macros.
3267 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3268 Move up in the file, since it's now used by is_simple_arg.
3269 (is_simple_arg): Don't assume registers are four bytes long.
3270 Exclude all double arguments. Extended floats are not simple
3271 args.
3272 (is_power_of_two): New function.
3273 (pass_by_copy_ref): Call is_power_of_two, and check that the
3274 length fits in a register, rather than listing all the acceptable
3275 sizes. Extended floats are not passed by reference.
3276 (s390_push_arguments): Don't assume registers are four bytes long.
3277 Reserve an argument register to point to the buffer for structures
3278 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3279 S390_STACK_FRAME_OVERHEAD.
3280
1ad828f1
AS
32812003-06-30 Andreas Schwab <schwab@suse.de>
3282
3283 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3284 format error message.
3285
39b00981
JB
32862003-06-30 Joel Brobecker <brobecker@gnat.com>
3287
3288 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3289
b2a7f303
DC
32902003-06-30 David Carlton <carlton@kealia.com>
3291
3292 Band-aid for PR c++/1245.
3293 * Makefile.in (cp-support.o): Depend on complaints_h.
3294 * cp-support.c: Include complaints.h. Add declaration for
3295 find_last_component.
3296 (cp_find_first_component): Separate code into
3297 cp_find_first_component_aux.
3298 (cp_find_first_component_aux): Call demangled_name_complaint.
3299 (demangled_name_complaint): New.
3300
a257b5bb
AC
33012003-06-30 Andrew Cagney <cagney@redhat.com>
3302
3303 * remote.c (remote_write_bytes): Explicitly compute and then use
3304 the payload size. Update comments to reflect. Fixes problem of
3305 GDB not sending small packets as found by Fred Fish.
3306
0a2cfde4
AC
33072003-06-30 Andrew Cagney <cagney@redhat.com>
3308
3309 * remote.c (remote_async_wait): Fix -Wformat problem.
3310
3fcb8548
AC
33112003-06-29 Andrew Cagney <cagney@redhat.com>
3312
3313 * remote.c (remote_wait): Call error, and not warning, when the
3314 packet is corrupt.
3315 (remote_async_wait): Ditto.
3316
9f9970a3
DJ
33172003-06-29 Daniel Jacobowitz <drow@mvista.com>
3318
3319 * sparc-tdep.c (sparc_y_regnum): Make external again.
3320
83a8ccca
DJ
33212003-06-29 Daniel Jacobowitz <drow@mvista.com>
3322
3323 * cli/cli-logging.c (pop_output_files): Add void to function
3324 definition.
3325
d2cf594a
AC
33262003-06-29 Andrew Cagney <cagney@redhat.com>
3327
3328 * frame.c (frame_register_unwind): Use unsigned char when dumping
3329 the buffer contents.
3330
0fac0b41
DJ
33312003-06-28 Daniel Jacobowitz <drow@mvista.com>
3332
3333 * cli/cli-logging.c: New file.
3334 * cli-out.c (struct ui_out_data): Add original_stream.
3335 (cli_redirect): New function.
3336 (cli_ui_out_impl): Add cli_redirect.
3337 (cli_out_new): Initialize original_stream.
3338 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3339 (uo_redirect, ui_out_redirect): New.
3340 * ui-out.h (struct ui_out_impl): Add redirect member.
3341 (redirect_ftype): New.
3342 (ui_out_redirect): Add prototype.
3343 * Makefile.in: Add rules for cli-logging.c.
3344 * NEWS: Mention "set logging".
3345
88a07d7c
EZ
33462003-06-27 Elena Zannoni <ezannoni@redhat.com>
3347
3348 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3349
4eb58876
AC
33502003-06-27 Andrew Cagney <cagney@redhat.com>
3351
3352 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3353 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3354 * avr-tdep.c (avr_call_dummy_address): Delete function.
3355 (avr_gdbarch_init): Do not set call_dummy_address.
3356
1549f619
EZ
33572003-06-27 Elena Zannoni <ezannoni@redhat.com>
3358
3359 * symfile.c (syms_from_objfile): Move variables to inner block.
3360 Move the checks for the non-mainline case a bit earlier to avoid
3361 doing some useless computations.
3362
3cb3398d
EZ
33632003-06-27 Elena Zannoni <ezannoni@redhat.com>
3364
3365 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3366
3799ccc6
EZ
33672003-06-26 Elena Zannoni <ezannoni@redhat.com>
3368
3369 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3370 sections.
3371
ce1f6491
MC
33722003-06-26 Michael Chastain <mec@shout.net>
3373
3374 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3375 gdb/testsuite/gdb.c++/pr-1210.exp.
3376
d958dfd0
AC
33772003-06-26 Andrew Cagney <cagney@redhat.com>
3378
3379 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3380 altivec_expression.h and altivec_registers.h.
3381
d31431ed
AC
33822003-06-26 Andrew Cagney <cagney@redhat.com>
3383
3384 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3385 info->mach when MIPS16. Patch suggested by Fred Fish.
3386
714b1282
AC
33872003-06-26 Andrew Cagney <cagney@redhat.com>
3388
3389 * utils.c (internal_vproblem): Print the problem to a reason
3390 buffer and then pass to query. Make the msg variable more local.
3391
42efa47a
AC
33922003-06-26 Andrew Cagney <cagney@redhat.com>
3393
3394 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3395 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3396 * gdbarch.h, gdbarch.c: Re-generate.
3397 * frame-base.c (default_frame_args_address): Update. Use
3398 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3399 not available.
3400 (default_frame_locals_address): Ditto for
3401 DEPRECATED_FRAME_LOCALS_ADDRESS.
3402 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3403 (vax_frame_num_args): Update.
3404 (vax_gdbarch_init): Update.
3405 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3406 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3407 * mcore-tdep.c (mcore_gdbarch_init): Update.
3408 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3409 * ia64-tdep.c (ia64_gdbarch_init): Update.
3410 * symtab.h (address_class): Update comments.
3411 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3412 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3413 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3414 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3415 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3416 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3417 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3418 * alpha-mdebug-tdep.c: Update.
3419 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3420
8ffd9b1b
AJ
34212003-06-26 Andreas Jaeger <aj@suse.de>
3422
3423 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3424 of SSE registers so that varargs functions work. Rework handling
3425 of passing arguments on the stack.
3426 (x86_64_store_return_value): Return double and float values in SSE
3427 register.
3428
e8ac10a6
MC
34292003-06-24 Michael Chastain <mec@shout.net>
3430
3431 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3432 the "constructor breakpoints ignored" bug.
3433
986af8e6
DC
34342003-06-25 David Carlton <carlton@kealia.com>
3435
3436 * MAINTAINERS: Update e-mail address.
3437
d64558a5
JB
34382003-06-24 Jim Blandy <jimb@redhat.com>
3439
e538d2d7
JB
3440 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3441
02631ec0
JB
3442 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3443 function.
3444 (ppc_linux_init_abi): Register it as the
3445 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3446
e716d87a
JB
3447 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3448 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3449 method.
3450
d64558a5
JB
3451 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3452 (ppc64_standard_linkage_target): Use it.
3453
449a5da4
AC
34542003-06-23 Andrew Cagney <cagney@redhat.com>
3455
3456 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3457 for 0 "int0" and 4 "int32" sized registers.
3458 * gdbtypes.c (builtin_type_int0): Define.
3459 (build_gdbtypes): Initialize builtin_type_int0.
3460 * gdbtypes.h (builtin_type_int0): Declare.
3461
b2a02dda
SC
34622003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3463
3464 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3465 as characters are unsigned.
3466
fba3138e
DJ
34672003-06-22 Daniel Jacobowitz <drow@mvista.com>
3468
3469 PR gdb/1179
3470 * dwarfread.c (struct_type): Skip static fields without crashing.
3471
f6c8180b
AC
34722003-06-22 Andrew Cagney <cagney@redhat.com>
3473
3474 GDB 6.0 branch created.
f2c06f52
AC
3475 * README: Update.
3476 * PROBLEMS: Update. Empty.
3477 * NEWS: Update.
f6c8180b 3478
ae822768
DJ
34792003-06-22 Daniel Jacobowitz <drow@mvista.com>
3480
3481 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3482 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3483
261de166
AC
34842003-06-22 Andrew Cagney <cagney@redhat.com>
3485
3486 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3487 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3488 Velikov.
3489
30e94205
DJ
34902003-06-22 Daniel Jacobowitz <drow@mvista.com>
3491
3492 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3493 compilers.
3494
9e14d721
DJ
34952003-06-21 Daniel Jacobowitz <drow@mvista.com>
3496
3497 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3498 argument of val_print.
3499 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3500 to the address argument of baseclass_offset or target_read_memory.
3501 Do add it to the argument of cp_print_value_fields.
3502
a4b8ebc8
AC
35032003-06-21 Andrew Cagney <cagney@redhat.com>
3504
3505 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3506 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3507 instead of 0..NUM_REGS.
3508 (mips_register_reggroup_p): New function.
3509 (mips_pseudo_register_write): New function.
3510 (mips_pseudo_register_read): New function.
3511 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3512 based on the register's type.
3513 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3514 cooked.
3515 (mips_get_saved_register): Simplify. Assert that REGNO is a
3516 pseudo / cooked.
3517 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3518 (mips_register_type): Replace mips_register_virtual_type. Map
3519 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3520 when available.
3521 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3522 that the register is cooked / virtual.
3523 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3524 Only get the extra info when needed.
3525 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3526 (mips32_heuristic_proc_desc): Fetch the cooked register.
3527 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3528 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3529 (mips_print_register): Use gdbarch_register_type, instead of
3530 REGISTER_VIRTUAL_TYPE.
3531 (print_gp_register_row): Use gdbarch_register_type, instead of
3532 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3533 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3534 Print the pseudo / cooked registers.
3535 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3536 Print the pseudo / cooked registers.
3537 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3538 REG_NUM is pseudo / cooked.
3539 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3540 (mips_n32n64_xfer_return_value): Ditto.
3541 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3542 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3543 (mips_register_sim_regno): New function.
3544 (mips_gdbarch_init): Set deprecated_register_byte,
3545 register_group_p, pseudo_register_write, pseudo_register_read,
3546 register_sim_regno, and num_pseudo_regs. Set register_type,
3547 instead of register_virtual_type.
3548 * Makefile.in (mips-tdep.o): Update dependencies.
3549 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3550 REGISTER_VIRTUAL_TYPE.
3551 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3552 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3553 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3554 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3555 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3556
325ed089
DJ
35572003-06-21 Daniel Jacobowitz <drow@mvista.com>
3558
3559 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3560 * cli/cli-cmds.c: Include "gdb_vfork.h".
3561 (shell_escape): Use vfork.
3562
f0e7d0e8
AC
35632003-06-21 Andrew Cagney <cagney@redhat.com>
3564
c57bb9fa
AC
3565 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3566 32 bit floating-point register saves.
3567
6e51443a
AC
3568 * frame.h (deprecated_unwind_get_saved_register): Delete.
3569 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3570 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3571 and deprecated_get_next_frame_hack instead of
3572 deprecated_unwind_get_saved_register.
3573
ed183c7c
AC
3574 * mips-tdep.c (mips_dump_tdep): Do not print
3575 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3576
f0e7d0e8
AC
3577 * frame.c (get_frame_register): New function.
3578 (frame_unwind_register_signed): New function.
3579 (get_frame_register_signed): New function.
3580 (frame_unwind_register_unsigned): New function.
3581 (get_frame_register_unsigned): New function.
3582 * frame.h: Add comments on naming schema.
3583 (get_frame_register, frame_unwind_register_signed): Declare.
3584 (get_frame_register_signed, get_frame_register_signed): Declare.
3585 (frame_unwind_register_unsigned): Declare.
3586 (get_frame_register_unsigned): Declare.
3587
2224d941
TR
35882003-06-20 Theodore A. Roth <troth@openavr.org>
3589
3590 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3591
8619218d
TR
35922003-06-20 Theodore A. Roth <troth@openavr.org>
3593
3594 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3595 (avr_read_sp): Ditto.
3596
0b1b50c0
DJ
35972003-06-20 Daniel Jacobowitz <drow@mvista.com>
3598
3599 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3600 * config/arm/nm-linux.h: Likewise.
3601 * config/arm/tm-linux.h: Likewise.
3602 * config/ia64/nm-linux.h: Likewise.
3603 * config/ia64/tm-ia64.h: Likewise.
3604 * config/s390/tm-linux.h: Likewise.
3605 * config/s390/tm-s390.h: Likewise.
3606 * s390-nat.c: Likewise.
3607 * s390-tdep.c: Likewise.
3608
3609 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3610 * config/ia64/linux.mt: Likewise.
3611 * config/m68k/linux.mh: Likewise.
3612 * config/mips/linux.mt: Likewise.
3613 * config/powerpc/linux.mh: Likewise.
3614 * config/sh/linux.mt: Likewise.
3615
c8c18e65
KW
36162003-06-19 Kris Warkentin <kewarken@qnx.com>
3617
3618 * solib.c (solib_open): Change tests for whether to search
3619 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3620 comments.
3621
dcccef2e
TR
36222003-06-19 Theodore A. Roth <troth@openavr.org>
3623
3624 * avr-tdep.c (avr_frame_address): Delete function.
3625 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3626 set_gdbarch_frame_args_address.
3627
5861a190
AC
36282003-06-19 Andrew Cagney <cagney@redhat.com>
3629
3630 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3631 (REGISTER_CONVERT_FROM_TYPE): Delete.
3632 (mips_register_convert_to_type): Delete declaration.
3633 (mips_register_convert_from_type): Delete declaration.
3634 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3635 kernel/.
3636
0274a8ce
MS
36372003-06-19 Michael Snyder <msnyder@redhat.com>
3638
3639 * linux-nat.h: New file.
3640 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 3641 * lin-lwp.c: Include linux-nat.h.
0274a8ce 3642 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 3643 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
3644 (linux_make_note_section): Iterate over lwps instead of threads.
3645 (linux_do_thread_registers): Use lwp instead of merged pid.
3646 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 3647 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
3648 Add dependency on linux_nat_h.
3649
adf5f719
TR
36502003-06-19 Theodore A. Roth <troth@openavr.org>
3651
3652 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3653
6766a268
DJ
36542003-06-19 Daniel Jacobowitz <drow@mvista.com>
3655
3656 * varobj.c (get_type, get_target_type): Use check_typedef.
3657
1171114a
DJ
36582003-06-19 Daniel Jacobowitz <drow@mvista.com>
3659
3660 * breakpoint.c (insert_catchpoint): Call internal_error.
3661
adcf68a2
TR
36622003-06-19 Theodore A. Roth <troth@openavr.org>
3663
3664 * avr-tdep.c (avr_push_dummy_code): Delete function.
3665 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3666
ea67f13b
DJ
36672003-06-19 Daniel Jacobowitz <drow@mvista.com>
3668
3669 * arch-utils.c (default_prepare_to_proceed): Remove.
3670 (generic_prepare_to_proceed): Remove.
3671 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3672 (generic_prepare_to_proceed): Remove prototype.
3673 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3674 * gdbarch.c: Regenerate.
3675 * gdbarch.h: Regenerate.
3676 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3677 * hppah-nat.c (hppa_switched_threads): Remove.
3678 * infrun.c (prepare_to_proceed): New static function, copied from
3679 generic_prepare_to_proceed. Remove select_it argument.
3680 (proceed): Call prepare_to_proceed.
3681 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3682 variables.
3683 (ptrace_wait): Don't set the removed variables.
3684 (hppa_switched_threads): Remove.
3685 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3686 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3687 (lin_lwp_prepare_to_proceed): Remove prototype.
3688 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3689 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3690
4add8633
TR
36912003-06-18 Theodore A. Roth <troth@openavr.org>
3692
3693 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3694 trad-frame.h.
3695 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3696 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3697 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3698 (AVR_PROLOGUE_*): Enumerate prologue types.
3699 (struct frame_extra_info): Remove.
3700 (struct avr_unwind_cache): Define.
3701 (avr_write_sp): Delete function.
3702 (avr_read_fp): Ditto.
3703 (avr_init_extra_frame_info): Ditto.
3704 (avr_pop_frame): Ditto.
3705 (avr_frame_saved_pc): Ditto.
3706 (avr_saved_pc_after_call): Ditto.
3707 (avr_push_return_address): Ditto.
3708 (avr_frame_chain): Ditto.
3709 (avr_store_struct_return): Ditto.
3710 (avr_push_arguments): Ditto.
3711 (avr_scan_prologue): Update comments. Changed to set up the info for
3712 cache unwinding. Now returns end of prologue PC.
3713 (avr_skip_prologue): Better handling of functions lacking a prologue
3714 by using avr_scan_prologue.
3715 (avr_scan_arg_moves): New function.
3716 (avr_saved_regs_unwinder): Ditto.
3717 (avr_frame_unwind_cache): Ditto.
3718 (avr_unwind_pc): Ditto.
3719 (avr_frame_this_id): Ditto.
3720 (avr_frame_prev_register): Ditto.
3721 (avr_frame_p): Ditto.
3722 (avr_frame_base_address ): Ditto.
3723 (avr_unwind_dummy_id): Ditto.
3724 (avr_push_dummy_code): Ditto.
3725 (push_stack_item): Ditto.
3726 (pop_stack_item): Ditto.
3727 (avr_push_dummy_call): Ditto.
3728 (struct stack_item): Define.
3729 (avr_frame_unwind): Declare structure.
3730 (avr_frame_base): Ditto.
3731 (avr_gdbarch_init): Remove calls to
3732 set_gdbarch_deprecated_init_frame_pc,
3733 set_gdbarch_deprecated_target_read_fp,
3734 set_gdbarch_deprecated_dummy_write_sp,
3735 set_gdbarch_deprecated_fp_regnum,
3736 set_gdbarch_deprecated_push_arguments,
3737 set_gdbarch_deprecated_push_return_address,
3738 set_gdbarch_deprecated_pop_frame,
3739 set_gdbarch_deprecated_store_struct_return,
3740 set_gdbarch_deprecated_frame_init_saved_regs,
3741 set_gdbarch_deprecated_init_extra_frame_info,
3742 set_gdbarch_deprecated_frame_chain,
3743 set_gdbarch_deprecated_frame_saved_pc,
3744 set_gdbarch_deprecated_saved_pc_after_call.
3745 Add calls to set_gdbarch_push_dummy_call,
3746 set_gdbarch_push_dummy_code,
3747 frame_unwind_append_predicate,
3748 frame_base_set_default,
3749 set_gdbarch_unwind_dummy_id,
3750 set_gdbarch_unwind_pc.
3751 Wrap a long line.
3752
7be04a68
MS
37532003-06-18 Corinna Vinschen <vinschen@redhat.com>
3754
3755 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3756 registers for H8/300S.
3757 (h8300_print_registers_info): Ditto.
8ffd9b1b 3758 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3759
ae087d01
DJ
37602003-06-18 Daniel Jacobowitz <drow@mvista.com>
3761
3762 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3763 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3764 (lin_lwp_wait): Likewise. Update comments.
3765 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3766 (pull_pid_from_list, linux_record_stopped_pid): New.
3767
07d8f827
SC
37682003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3769
3770 * ada-lang.c (scan_discrim_bound): Name first argument.
3771 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3772 declared by ALL_BLOCK_SYMBOLS.
3773
7cb47b14
SC
37742003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3775
3776 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3777 ("regcache.h"): Include it.
3778 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3779
6ad8ae5c
DJ
37802003-06-17 Daniel Jacobowitz <drow@mvista.com>
3781
3782 * NEWS: Mention gdbserver detach change and "disconnect" command.
3783 * infcmd.c (disconnect_command): New function.
3784 (_initialize_infcmd): Add ``disconnect'' command.
3785 * remote.c (remote_async_detach): Delete.
3786 (remote_detach): Merge remote_async_detach.
3787 (remote_disconnect): New.
3788 (init_remote_ops): Set to_disconnect.
3789 (init_remote_cisco_ops): Likewise.
3790 (init_remote_async_ops): Likewise. Use remote_detach.
3791 * target.c (cleanup_target): Default to_disconnect.
3792 (update_current_target): Inherit to_disconnect.
3793 (target_disconnect, debug_to_disconnect): New functions.
3794 (setup_target_debug): Set to_disconnect.
3795 * target.h (struct target_ops): Add to_disconnect.
3796 (target_disconnect): Add prototype.
3797
687595f9
DJ
37982003-06-17 Daniel Jacobowitz <drow@mvista.com>
3799
3800 * breakpoint.c (insert_catchpoint): New function.
3801 (insert_breakpoints): Use catch_exceptions to call
3802 insert_catchpoint. Disable catchpoints if they fail to insert.
3803
29239a8f
DJ
38042003-06-17 Daniel Jacobowitz <drow@mvista.com>
3805
3806 * symfile.c (reread_symbols): Clear sym_private.
3807
2cdf3c63
AC
38082003-06-17 Andrew Cagney <cagney@redhat.com>
3809
3810 * trad-frame.h (struct frame_info): Add opaque declaration.
3811 * remote-fileio.h (struct cmd_list_element): Add opaque
3812 declaration.
3813 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3814 comments.
3815
cf0e1e0d
DJ
38162003-06-17 Daniel Jacobowitz <drow@mvista.com>
3817
3818 * remote.c (remote_prepare_to_store): Replace call to
3819 deprecated_read_register_bytes with multiple regcache_raw_read
3820 calls.
3821
192cdb19
KW
38222003-06-17 Kris Warkentin <kewarken@qnx.com>
3823
3824 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3825 (nto_find_and_open_solib): Likewise.
3826 (nto_init_solib_absolute_prefix): Likewise.
3827 (_initialize_nto_tdep): Fix indentation.
3828
89929b45
KW
38292003-06-17 Kris Warkentin <kewarken@qnx.com>
3830
3831 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3832
46019f27
KW
38332003-06-17 Kris Warkentin <kewarken@qnx.com>
3834
3835 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3836
1a38736e
JB
38372003-06-17 Jim Blandy <jimb@redhat.com>
3838
3839 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3840
3605c34a
TR
38412003-06-16 Theodore A. Roth <troth@openavr.org>
3842
3843 * avr-tdep.c (avr_extract_return_value): New function.
3844 (avr_gdbarch_init): Set extract_return_value method.
3845
870b3035
AC
38462003-06-16 Andrew Cagney <cagney@redhat.com>
3847
3848 * frame.h (deprecated_get_next_frame_hack): Declare.
3849 * frame.c (legacy_saved_regs_prev_register): Only require
3850 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3851 there are always saved regs.
3852 (deprecated_generic_get_saved_register): Do not require
3853 DEPRECATED_FRAME_INIT_SAVED_REGS.
3854 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3855 use frame ID unwind instead.
3856 (deprecated_get_next_frame_hack): New function.
3857
63d47a7d
CV
38582003-06-16 Corinna Vinschen <vinschen@redhat.com>
3859
3860 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3861 (h8300_push_dummy_call): ...this function. Some minor optimization.
3862 (h8300_push_return_address): Remove.
3863 (h8300_gdbarch_init): Remove calls to
3864 set_gdbarch_deprecated_dummy_write_sp,
3865 set_gdbarch_deprecated_push_arguments and
3866 set_gdbarch_deprecated_push_return_address.
3867 Add call to set_gdbarch_push_dummy_call.
3868
4bb1dc5e
CV
38692003-06-16 Corinna Vinschen <vinschen@redhat.com>
3870
3871 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3872 (E_PSEUDO_EXR_REGNUM): Ditto.
3873 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3874 registers into safe registers.
4bb1dc5e
CV
3875 (h8300_skip_prologue): Check for stm instruction to push registers
3876 used for register variables onto stack.
3877 (gdb_print_insn_h8300): Remove.
3878 (h8300_examine_prologue): Add a comment.
3879 (h8300_register_name): Take pseudo registers into account.
3880 (h8300s_register_name): Ditto.
3881 (h8300sx_register_name): Ditto.
3882 (h8300_print_register): Ditto.
3883 (h8300_print_registers_info): Define "nice" printing order.
3884 (h8300_saved_pc_after_call): Take pseudo registers into account.
3885 (h8300_register_type): Ditto. Return type used for remote connection
3886 when requesting real CCR or EXR register, return actual type when
3887 requesting pseudo CCR or EXR.
3888 (h8300_pseudo_register_read): New function.
3889 (h8300_pseudo_register_write): Ditto.
3890 (h8300_dbg_reg_to_regnum): Ditto.
3891 (h8300s_dbg_reg_to_regnum): Ditto.
3892 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3893 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3894 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3895 set_gdbarch_print_insn architecture dependent.
3896 Call set_gdbarch_pseudo_register_read and
3897 set_gdbarch_pseudo_register_write.
3898 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3899
a59fe496
AC
39002003-06-16 Andrew Cagney <cagney@redhat.com>
3901
3902 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3903 * gdbarch.h, gdbarch.c: Re-generate.
3904 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3905 * s390-tdep.c (s390_gdbarch_init): Update.
3906 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3907 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3908 * mips-tdep.c (mips_gdbarch_init): Update.
3909 * mcore-tdep.c (mcore_gdbarch_init): Update.
3910 * cris-tdep.c (cris_gdbarch_init): Update.
3911 * infcall.c (call_function_by_hand): Update.
3912 * ia64-tdep.c (ia64_push_arguments): Update comment.
3913 * frame.c (legacy_get_prev_frame): Do not assume
3914 SAVE_DUMMY_FRAME_TOS_P.
3915 * dummy-frame.c (find_dummy_frame): Update comment.
3916
6f4e5a41
AC
39172003-06-16 Andrew Cagney <cagney@redhat.com>
3918
3919 * regcache.c (do_cooked_read): Do not use register_valid_p.
3920
72fab697
TR
39212003-06-15 Theodore A. Roth <troth@openavr.org>
3922
3923 * avr-tdep.c (avr_register_type): Remove a blank line.
3924 (avr_scan_prologue): Correct some comments.
3925
e3d8b004
TR
39262003-06-15 Theodore A. Roth <troth@openavr.org>
3927
3928 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3929 prologue types.
8ffd9b1b 3930 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3931 option.
3932 Add code to scan -mcall-prologues for mega devices.
3933
866b76ea
TR
39342003-06-15 Theodore A. Roth <troth@openavr.org>
3935
3936 * avr-tdep.c (avr_register_byte): Delete function.
3937 (avr_register_raw_size): Delete function.
3938 (avr_register_virtual_size): Delete function.
3939 (avr_register_virtual_type): Delete function.
3940 (avr_register_type): New function.
3941 (avr_address_to_pointer): Remove unused code.
3942 (avr_read_fp): Need to read FP as two separate bytes due to change to
3943 avr_register_type() usage.
3944 (avr_gdbarch_init): Don't set deprecated_register_size.
3945 Don't set deprecated_register_bytes.
3946 Don't set deprecated_register_byte.
3947 Don't set deprecated_register_raw_size.
3948 Don't set deprecated_max_register_raw_size.
3949 Don't set deprecated_register_virtual_size.
3950 Don't set deprecated_max_register_virtual_size.
3951 Don't set deprecated_register_virtual_type.
3952 Set register_type method.
3953
3993f6b1
DJ
39542003-06-15 Daniel Jacobowitz <drow@mvista.com>
3955
3956 * Makefile.in (linux-nat.o): Add rule.
3957 * linux-nat.c: New file.
3958 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3959 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3960 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3961 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3962 * config/arm/linux.mh (NATDEPFILES): Likewise.
3963 * config/i386/linux.mh (NATDEPFILES): Likewise.
3964 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3965 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3966 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3967 * config/mips/linux.mh (NATDEPFILES): Likewise.
3968 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3969 * config/s390/s390.mh (NATDEPFILES): Likewise.
3970 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3971
786a90bb
MK
39722003-06-15 Mark Kettenis <kettenis@gnu.org>
3973
3974 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3975 replace out-of-date comment.
3976
3bd3f01e
AC
39772003-06-15 Andrew Cagney <cagney@redhat.com>
3978
3979 * rdi-share/host.h (Fail): Change to a varargs function.
3980 * remote-rdi.c (Fail): Update.
8ffd9b1b 3981
de5b9bb9
MK
39822003-06-15 Mark Kettenis <kettenis@gnu.org>
3983
3984 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3985 (i386_convert_register_p, i386_register_to_value,
3986 i386_register_from_value): Handle types longer than 8 bytes.
3987
d532c08f
MK
39882003-06-15 Mark Kettenis <kettenis@gnu.org>
3989
3990 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3991 Move floating-point code to new function in i387-tdep.c.
3992 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3993 New functions containing code moved here from i386-tdep.c.
3994 * i387-tdep.h: Add opaque declaration for `struct type'.
3995 (i387_register_to_value, i387_value_to_register): New prototypes.
3996 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3997 (x86_64_init_abi): Set convert_register_p, register_to_value and
3998 value_to_register here.
8ffd9b1b 3999
42c466d7
AC
40002003-06-14 Andrew Cagney <cagney@redhat.com>
4001
4002 * mips-tdep.c (mips_register_to_value): Make static.
4003 (mips_value_to_register): Make static.
4004 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4005 * ia64-tdep.c (ia64_register_raw_size): Make static.
4006 (ia64_register_virtual_size): Make static.
4007 (ia64_register_byte): Make static.
4008 * i387-tdep.c: Include "i387-tdep.h".
4009 (print_387_control_word): Delete function.
4010 (print_387_status_word): Delete function.
4011 (print_387_status_bits): Delete function.
4012 (print_387_control_bits): Delete function.
4013 * Makefile.in (i387-tdep.o): Update dependencies.
4014 * rdi-share/host.h (Fail): Declare.
4015 * remote-rdi.c (Fail): Update to match declaration.
4016
2a9cda49
AC
40172003-06-14 Andrew Cagney <cagney@redhat.com>
4018
4019 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4020 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4021 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4022 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4023 * README: Delete reference to remote-array.
4024 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4025 (remote-array.o): Delete target.
4026 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4027 * remote-array.c: Delete file.
4028
ff2e87ac
AC
40292003-06-14 Andrew Cagney <cagney@redhat.com>
4030 Mark Kettenis <kettenis@gnu.org>
4031
4032 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4033 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4034 parameter with "frame".
4035 * gdbarch.h, gdbarch.c: Re-generate.
4036 * frame.h (put_frame_register): Declare.
4037 * frame.c (put_frame_register): New function.
4038 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4039 (legacy_register_to_value): Rewrite, use "frame" to get the
4040 register value.
4041 (legacy_value_to_register): Rewrite, use "frame" to find the
4042 register's location before storing.
4043 * arch-utils.h (legacy_convert_register_p): Update.
4044 (legacy_register_to_value, legacy_value_to_register): Update.
4045 * findvar.c (value_from_register): Rewrite, eliminate use of
4046 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4047 "frame" to REGISTER_TO_VALUE.
4048 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4049 lval_reg_frame_relative + lval_register branch of the switch. Do
4050 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4051 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4052 I386_EDI_REGNUM): New defines.
4053 (i386_next_regnum, i386_convert_register_p,
4054 i386_register_to_value, i386_value_to_register): New functions.
4055 (i386_register_convertible, i386_register_convert_to_virtual,
4056 i386_convert_to_raw): Remove functions.
4057 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4058 value_to_register instead of register_convertible,
4059 register_convert_to_virtual and register_convert_to_raw.
4060 * mips-tdep.c (mips_convert_register_p): New function.
4061 (mips_value_to_register): Replace mips_register_convert_from_type.
4062 (mips_register_to_value): Replace mips_register_convert_to_type.
4063 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4064 register_to_value.
4065 * alpha-tdep.c (alpha_convert_register_p): Update.
4066 (alpha_value_to_register): Update, store the register.
4067 (alpha_register_to_value): Update, fetch the register.
4068
98be1e77
TR
40692003-06-14 Theodore A. Roth <troth@openavr.org>
4070
4071 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4072 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4073 Don't set deprecated_call_dummy_words.
4074 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4075 Don't set remote_translate_xfer_address.
4076 (avr_io_reg_read_command): Remove commented out debug printf.
4077 Wrap a long line.
4078
57bc6122
TR
40792003-06-14 Theodore A. Roth <troth@openavr.org>
4080
4081 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4082 causes gdb to seg fault.
4083
eb01fc62
DJ
40842003-06-14 Daniel Jacobowitz <drow@mvista.com>
4085
4086 * sparc-nat.c (fetch_inferior_registers): Correct
4087 a reference to "registers".
4088
3b3e6bee
DJ
40892003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4090
4091 * Makefile.in (exc_request_U_h): Define
4092 (exc_request_S_h): Likewise.
4093 (msg_reply_S_h): Likewise.
4094 (msg_U_h): Likewise.
4095 (notify_S_h): Likewise.
4096 (process_reply_S_h): Likewise.
4097 (gnu-nat.o): Depend on gdb_obstack_h
4098 * gnu-nat.c: Include "gdb_obstack.h".
4099
b8de8283
AC
41002003-06-13 Andrew Cagney <cagney@redhat.com>
4101
4102 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4103 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4104
f3be58bc
AC
41052003-06-13 Andrew Cagney <cagney@redhat.com>
4106
4107 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4108 when deprecated REGISTER macros can be deleted.
4109 * gdbarch.h, gdbarch.c: Re-generate.
4110
4c0122c8
JB
41112003-06-13 Jim Blandy <jimb@redhat.com>
4112
4113 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4114 Linux entry point symbols for _dl_debug_state, too.
4115
3e210248
AC
41162003-06-13 Andrew Cagney <cagney@redhat.com>
4117
4118 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4119 available, do not use the FP register, and always save the TOS.
4120 * dummy-frame.c (dummy_frame_this_id): Do not assert
4121 SAVE_DUMMY_FRAME_TOS.
4122 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4123 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4124 (i386_push_dummy_call): Add 8 to the returned SP.
4125 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4126 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4127 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4128 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4129 (x86_64_push_dummy_call): Return "sp + 16".
4130 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4131 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4132 save_dummy_frame_tos.
4133
0b65af49
JB
41342003-06-13 Jim Blandy <jimb@redhat.com>
4135
4136 * frv-tdep.c (frv_use_struct_convention): Delete static
4137 declaration for function deleted in my change of 2003-06-12.
4138
4ea2465e
TR
41392003-06-13 Theodore A. Roth <troth@openavr.org>
4140
4141 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4142 (avr_pointer_to_address): Shift code addrs left 1 bit.
4143 (avr_convert_from_func_ptr_addr): Delete function since operation is
4144 better handled by avr_address_to_pointer and avr_pointer_to_address.
4145 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4146
1581182a
MK
41472003-06-13 Mark Kettenis <kettenis@gnu.org>
4148
4149 From Kelley Cook <kelleycook@wideopenwest.com>:
4150 * configure.host: Accept i[34567]86 variants.
4151 * configure.tgt: Likewise.
4152 * nlm/configure.in: Likewise.
4153 * nlm/configure: Regenerated.
4154
7aa1783e
RE
41552003-06-13 Richard Earnshaw <rearnsha@arm.com>
4156
4157 * arm-tdep.c (solib-svr4.h): Dont' include it.
4158 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4159 * arm-linux-tdep.c: ... here. Make static.
4160 (arm_linux_init_abi): Register it.
4161 (solib-svr4.h): Include it.
4162 * Makefile.in: Update dependencies.
4163 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4164 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4165
0261a0d0
CV
41662003-06-13 Corinna Vinschen <vinschen@redhat.com>
4167
4168 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4169 indicate registers used for return values.
4170 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4171 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4172 members.
4173 (h8300_init_extra_frame_info): Ditto.
4174 (h8300_frame_locals_address): Removed.
4175 (h8300_frame_args_address): Removed.
4176 (h8300_extract_return_value): Use new regcache structure. Only care
4177 for 16 bit CPUs.
4178 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4179 (h8300_store_return_value): Use new regcache structure. Only care
4180 for 16 bit CPUs.
4181 (h8300h_store_return_value): Same function for 32 bit CPUs.
4182 (h8300_store_struct_return): Removed.
4183 (h8300_extract_struct_value_address): Use new regcache structure.
4184 (h8300h_extract_struct_value_address): Removed.
4185 (h8300_push_dummy_code): New function.
4186 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4187 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4188 set_gdbarch_store_return_value architecture dependent.
4189 Call set_gdbarch_push_dummy_code and
4190 set_gdbarch_extract_struct_value_address.
4191 Remove calls to set_gdbarch_frame_args_address,
4192 set_gdbarch_frame_locals_address,
4193 set_gdbarch_deprecated_store_struct_return,
4194 set_gdbarch_deprecated_extract_return_value,
4195 set_gdbarch_deprecated_extract_struct_value_address,
4196 set_gdbarch_deprecated_call_dummy_words and
4197 set_gdbarch_deprecated_sizeof_call_dummy_words.
4198
055c394a
CV
41992003-06-13 Corinna Vinschen <vinschen@redhat.com>
4200
4201 * h8300-tdep.c (h8300_register_byte): Remove.
4202 (h8300h_register_byte): Remove.
4203 (h8300_register_virtual_type): Remove. Substitute by...
4204 (h8300_register_type): New function.
4205 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4206 (h8300h_extract_struct_value_address): Ditto.
4207 (h8300_gdbarch_init): Drop calls to
4208 set_gdbarch_deprecated_register_byte and
4209 set_gdbarch_deprecated_register_virtual_type.
4210 Add call to set_gdbarch_register_type.
4211
9c04cab7
AC
42122003-06-13 Andrew Cagney <cagney@redhat.com>
4213
4214 * gdbarch.sh: Update comments on registers.
4215 (deprecated_register_byte): Rename register_byte.
4216 (deprecated_register_raw_size): Rename register_raw_size.
4217 (deprecated_register_virtual_size): Rename register_virtual_size.
4218 (deprecated_register_virtual_type): Rename register_virtual_type.
4219 * gdbarch.h, gdbarch.c: Re-generate.
4220 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4221 * vax-tdep.c (vax_gdbarch_init): Update.
4222 * v850-tdep.c (v850_gdbarch_init): Update.
4223 * sparc-tdep.c (sparc_gdbarch_init): Update.
4224 * sh-tdep.c (sh_gdbarch_init): Update.
4225 * s390-tdep.c (s390_gdbarch_init): Update.
4226 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4227 * ns32k-tdep.c: Update.
4228 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4229 * mips-tdep.c (mips_gdbarch_init): Update.
4230 * mcore-tdep.c (mcore_gdbarch_init): Update.
4231 * m68k-tdep.c (m68k_gdbarch_init): Update.
4232 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4233 * ia64-tdep.c (ia64_gdbarch_init): Update.
4234 * hppa-tdep.c (hppa_gdbarch_init): Update.
4235 * h8300-tdep.c (h8300_gdbarch_init): Update.
4236 * frv-tdep.c (frv_gdbarch_init): Update.
4237 * cris-tdep.c (cris_gdbarch_init): Update.
4238 * avr-tdep.c (avr_gdbarch_init): Update.
4239 * alpha-tdep.c (alpha_gdbarch_init): Update.
4240 * arm-tdep.c (arm_gdbarch_init): Update.
4241
b060cbea
AC
42422003-06-13 Andrew Cagney <cagney@redhat.com>
4243
4244 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4245 mips_o32_use_struct_convention with always_use_struct_convention.
4246
0fc9922a
DC
42472003-06-12 David Carlton <carlton@kealia.com>
4248
4249 * cp-namespace.c (cp_set_block_scope): Comment out
4250 processing_has_namespace_info branch.
4251
1fd35568
JB
42522003-06-12 Jim Blandy <jimb@redhat.com>
4253
f470a70a
JB
4254 Recognize and skip 64-bit PowerPC Linux linkage functions.
4255 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4256 insn_pattern, insns_match_pattern, d_field, ds_field): New
4257 functions, macros, and types for working with PPC instructions.
4258 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4259 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4260 ppc64_skip_trampoline_code): New functions, variables, and macros
4261 for recognizing and skipping linkage functions.
4262 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4263 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4264
49ff75ad
JB
4265 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4266 register offsets for both the 32- and 64-bit interfaces.
4267
bd918c83
JB
4268 Actually finish the job started by my change of 2003-05-29.
4269 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4270 other #definition of this.
4271 (ppc_linux_skip_trampoline_code): Remove declaration.
4272 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4273 static.
4274 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4275 method for GDBARCH.
4276
4277 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4278 'long' on ppc64-*-linux*.
4279
f8c59253
JB
4280 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4281 isn't #defined, assume the register doesn't exist: act as if
4282 tdep->ppc_mq_regnum were -1.
4283
8fbb30b1
JB
4284 * configure.host, configure.tgt: Add entries for
4285 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4286 powerpc/linux.mt.
4287 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4288 New files.
4289
1fd35568
JB
4290 * arch-utils.c (always_use_struct_convention): New function.
4291 * arch-utils.h (always_use_struct_convention): New prototype.
4292 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4293 (alpha_gdbarch_init): Register always_use_struct_convention,
4294 instead of alpha_use_struct_convention.
4295 * cris-tdep.c (cris_use_struct_convention): Delete.
4296 (cris_gdbarch_init): Register always_use_struct_convention,
4297 instead of cris_use_struct_convention.
4298 * frv-tdep.c (frv_use_struct_convention): Delete.
4299 (frv_gdbarch_init): Register always_use_struct_convention,
4300 instead of frv_use_struct_convention.
4301 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4302 (h8300_gdbarch_init): Register always_use_struct_convention,
4303 instead of h8300_use_struct_convention.
e3305dd9 4304 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4305 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4306 instead of mips_o32_use_struct_convention.
4307
e14e6e9c
AC
43082003-06-12 Andrew Cagney <cagney@redhat.com>
4309
4310 * wince.c: Include "mips-tdep.h".
4311 * mips-tdep.h (mips_next_pc): Declare.
4312 * mcore-tdep.c: Make more local functions static.
4313 * Makefile.in (wince.o): Update dependencies.
4314
2335f48e
DC
43152003-06-12 David Carlton <carlton@kealia.com>
4316
4317 * symtab.c (lookup_symbol_aux_minsyms): Replace
4318 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4319 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4320 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4321 SYMBOL_NATURAL_NAME.
4322
f70a7d61
AS
43232003-06-12 Andreas Schwab <schwab@suse.de>
4324
4325 * Makefile.in (tuiDisassem.o): Update dependencies.
4326
b6429628
DC
43272003-06-12 David Carlton <carlton@bactrian.org>
4328
4329 * symtab.h: Delete declaration of make_symbol_overload_list.
4330 Add declaration of lookup_partial_symbol.
4331 * symtab.c (remove_params): Move to cp-support.c.
4332 (overload_list_add_symbol, make_symbol_overload_list)
4333 (sym_return_val_size, sym_return_val_index): Ditto.
4334 (lookup_partial_symbol): Make extern.
4335 * cp-support.h: Add declaration of make_symbol_overload_list.
4336 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4337 symtab.h, and block.h.
4338 (remove_params): Move here from symtab.c.
4339 (overload_list_add_symbol, make_symbol_overload_list)
4340 (sym_return_val_size, sym_return_val_index): Ditto.
4341 * valops.c: Include cp-support.h.
4342 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4343 frame_h, and block_h.
4344 (valops.o): Depend on cp_support_h.
4345
084edea5
CV
43462003-06-12 Corinna Vinschen <vinschen@redhat.com>
4347
4348 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4349 substitute by NUM_REGS throughout.
4350 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4351 (h8300s_register_name): New function for H8S registers.
4352 (h8300sx_register_name): Ditto for H8SX registers.
4353 (h8300_print_register): Revise register printing, avoid depending
4354 on 32 bit long.
0261a0d0 4355 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4356 (h8300h_register_byte): New function for any other architecture.
4357 (h8300_register_raw_size): Remove.
4358 (h8300_register_virtual_type): Revise to return actually useful
4359 type.
4360 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4361 (h8300h_extract_struct_value_address): New function for any other
4362 architecture.
4363 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4364 set_gdbarch_register_name, set_gdbarch_register_byte,
4365 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4366 Remove calls to set_gdbarch_deprecated_register_size,
4367 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4368 set_gdbarch_deprecated_max_register_raw_size,
4369 set_gdbarch_register_virtual_size and
4370 set_gdbarch_deprecated_max_register_virtual_size entirely.
4371 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4372 set_gdbarch_long_double_bit.
4373
06194148
JJ
43742003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4375
8ffd9b1b
AJ
4376 * doublest.c (convert_doublest_to_floatformat): When dealing
4377 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4378 processing a full 32 bits of mantissa.
4379
de4f826b
DC
43802003-06-11 David Carlton <carlton@bactrian.org>
4381
4382 * dictionary.h: New.
4383 * dictionary.c: New.
4384 * block.h: Add opaque declaration for struct dictionary.
4385 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4386 'sym' members.
4387 (BLOCK_DICT): New macro.
4388 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4389 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4390 BLOCK_SHOULD_SORT.
4391 (ALL_BLOCK_SYMBOLS): Update definition.
4392 * Makefile.in (SFILES): Add dictionary.c.
4393 (dictionary_h): New.
4394 (COMMON_OBS): Add dictionary.o.
4395 (dictionary.o): New.
4396 (ada-lang.o): Depend on dictionary_h.
4397 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4398 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4399 (mi-cmd-stack.o): Ditto.
4400 (gdbtk-cmds.o): Update dependencies.
4401 (gdbtk-stack.o): Ditto.
4402 * ada-lang.c: Include dictionary.h.
4403 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4404 (fill_in_ada_prototype, debug_print_block): Ditto.
4405 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4406 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4407 'is_sorted'.
4408 * mdebugread.c: Include dictionary.h.
4409 (struct parse_stack): Delete 'maxsyms' member.
4410 (parse_symbol): Update calls to new_block. Delete calls to
4411 shrink_block. Use dictionary methods.
4412 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4413 Update calls to new_symtab. Don't maintain maxsyms data.
4414 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4415 (add_symbol): Just call dict_add_symbol.
4416 (new_symtab): Delete 'maxsyms' argument.
4417 (new_symtab): Update calls to new_block.
4418 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4419 (shrink_block): Delete function.
4420 (fixup_sigtramp): Update call to new_block. Add symbol via
4421 dict_add_symbol.
4422 * jv-lang.c: Include dictionary.h.
4423 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4424 appropriately. Set class_symtab->free_func. Make sure the
4425 blockvector is big enough to hold two blocks.
4426 (add_class_symtab_symbol): Use dictionary methods.
4427 (free_class_block): New function.
4428 (type_from_class): Replace explicit iteration by
4429 ALL_BLOCK_SYMBOLS.
4430 * symtab.h (struct symtab): Replace 'free_ptr' method by
4431 'free_func'.
4432 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4433 sort_symtab_syms.
4434 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4435 sort_symtab_syms.
4436 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4437 Include dictionary.h.
4438 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4439 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4440 sort_symtab_syms.
4441 * objfiles.c: Include dictionary.h.
4442 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4443 * buildsym.c: Include dictionary.h.
4444 (finish_block): Use dictionary methods.
4445 (end_symtab): Set free_func to NULL, not free_ptr.
4446 * tracepoint.c: Include dictionary.h.
4447 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4448 (scope_info): Ditto.
4449 * stack.c: Include dictionary.h.
4450 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4451 (print_block_frame_labels, print_frame_arg_vars)
4452 (print_frame_args): Ditto.
4453 * symmisc.c (free_symtab_block): Use dictionary methods.
4454 (dump_symtab): Ditto.
4455 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4456 Include dictionary.h.
4457 * symfile.h: Delete declarations of sort_block_syms,
4458 sort_symtab_syms.
4459 * symfile.c (sort_block_syms): Delete.
4460 (sort_symtab_syms): Delete.
4461 * symtab.c: Include dictionary.h.
4462 (lookup_block_symbol): Use dictionary iterators.
4463 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4464 (search_symbols, make_symbol_completion_list): Ditto.
4465 (make_symbol_overload_list): Ditto.
4466 * valops.c (value_of_local): Use dict_empty.
4467 Include dictionary.h.
4468
a31f978c
JB
44692003-06-11 J. Brobecker <brobecker@gnat.com>
4470
4471 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4472
526e70c0
DC
44732003-06-11 David Carlton <carlton@bactrian.org>
4474
4475 * block.h (BLOCK_SHOULD_SORT): Delete.
4476 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4477 blocks.
4478 * ada-lang.c (ada_add_block_symbols): Ditto.
4479 * symfile.c (sort_block_syms): Delete.
4480 (sort_symtab_syms): Ditto.
4481 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4482 declarations.
4483 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4484 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4485 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4486 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4487 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4488 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4489 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4490
33c08150
JJ
44912003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4492
8ffd9b1b 4493 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4494 bits to 128.
4495
781a750d
AC
44962003-06-11 Andrew Cagney <cagney@redhat.com>
4497
4498 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4499 REGISTER_CONVERTIBLE.
4500 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4501 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4502 * gdbarch.h, gdbarch.c: Re-generate.
4503 * arch-utils.h (deprecated_register_convertible_not): Rename
4504 generic_register_convertible_not.
4505 * arch-utils.c (deprecated_register_convertible_not): Rename
4506 generic_register_convertible.
4507 (legacy_convert_register_p, legacy_register_to_value): Update.
4508 * sh-tdep.c (sh64_push_arguments): Update.
4509 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4510 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4511 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4512 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4513 * arch-utils.c (legacy_value_to_register): Update.
4514 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4515 (rs6000_register_convert_to_raw): Make parameter "from" const.
4516 * mips-tdep.c (mips_gdbarch_init): Update.
4517 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4518 * infcmd.c (default_print_registers_info): Update.
4519 * ia64-tdep.c (ia64_gdbarch_init): Update.
4520 (ia64_register_convert_to_raw): Make parameter "from" const.
4521 * i386-tdep.c (i386_gdbarch_init): Update.
4522 (i386_register_convert_to_raw): Update.
4523
cd90e54f
AC
45242003-06-11 Andrew Cagney <cagney@redhat.com>
4525
4526 * remote-fileio.c: Include "remote-fileio.h".
4527 * Makefile.in (remote-fileio.o): Update dependencies.
4528 (remote_fileio_h): Fix typo.
4529
a78f21af
AC
45302003-06-11 Andrew Cagney <cagney@redhat.com>
4531
4532 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4533 (xstormy16_save_dummy_frame_tos): Make static.
4534 (_initialize_xstormy16_tdep): Add declaration.
4535 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4536 * v850-tdep.c: Make local functions static.
4537 (_initialize_v850_tdep): Add declaration.
4538 * sparc-tdep.c: Make local functions static.
4539 (_initialize_sparc_tdep): Add declaration.
4540 * sh-tdep.c: Make local functions static.
4541 (_initialize_sh_tdep): Add declaration.
4542 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4543 * s390-tdep.c: Make local functions static.
4544 (_initialize_s390_tdep): Add declaration.
4545 * dbxread.c (find_stab_function_addr): Make static.
4546 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4547 * ocd.c (_initialize_remote_ocd): Add declaration.
4548 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4549 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4550 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4551 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4552 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4553 * remote-array.c (_initialize_array): Add declaration.
4554 (_initialize_remote_monitors): Add declaration.
4555 * remote-mips.c: Make local functions static.
4556 (_initialize_remote_mips): Add declaration.
4557 * mcore-tdep.c: Make all local functions static.
4558 (_initialize_mcore_tdep): Add declaration.
4559 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4560 * abug-rom.c (_initialize_abug_rom): Add declaration.
4561 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4562 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4563 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4564 * remote-est.c (_initialize_est): Add declaration.
4565 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4566 (m68hc11_call_dummy_address): Make static.
4567 * ia64-tdep.c: Make local functions static.
4568 (_initialize_ia64_tdep): Add declaration.
4569 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4570 * monitor.c (monitor_wait_filter): Make static.
4571 (_initialize_remote_monitors): Add declaration.
4572 * remote-hms.c (_initialize_remote_hms): Add declaration.
4573 * remote-e7000.c (fetch_regs_from_dump): Make static.
4574 (expect_n): Make static.
4575 (_initialize_remote_e7000): Add declaration.
4576 * ser-e7kpc.c: Always include "defs.h".
4577 (_initialize_ser_e7000pc): Add declaration.
4578 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4579 * cris-tdep.c: Make all but one function static.
4580 (_initialize_cris_tdep): Add declaration.
4581 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4582 * solib.c (update_solib_list): Make static.
4583 (_initialize_solib): Add declaration.
4584 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4585 (_initialize_avr_tdep): Add declaration.
4586 * remote-rdi.c (voiddummy): Make static.
4587 (_initialize_remote_rdi): Add declaration.
4588 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4589 * remote-rdp.c (send_rdp): Make static.
4590 (_initialize_remote_rdp): Add declaration.
4591 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4592
cbcdb1f5
CV
45932003-06-11 Corinna Vinschen <vinschen@redhat.com>
4594
4595 * remote-fileio.c: Make ari happy.
4596
a191ea8d
JB
45972003-06-10 J. Brobecker <brobecker@gnat.com>
4598
4599 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4600 fetching the trailing bytes of the buffer we are about to write.
4601
0ef75e11
AC
46022003-06-10 Andrew Cagney <cagney@redhat.com>
4603
4604 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4605 * Makefile.in (remote-fileio.o): Update dependencies.
4606 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4607 include <setjmp.h>, or <sys/types.h> conditional on USG.
4608 (remote_fio_jmp_buf): Delete global variable.
4609
449092f6 46102003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 4611 Martin M. Hunt <hunt@redhat.com>
449092f6 4612
559fa028
AC
4613 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4614 (SFILES): Add remote-fileio.c.
4615 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4616 dependencies for building remote.o.
449092f6
CV
4617 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4618 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 4619 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
4620 static storage class.
4621 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4622 'F' packet.
4623 (_initialize_remote): Call initialize_remote_fileio().
4624 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
4625 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4626 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4627 (captured_main): Initialize new ui_files.
4628 * ui-file.c: Add read and fgets input functions.
4629 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4630 (null_file_read): New function.
4631 (ui_file_read): New function.
4632 (set_ui_file_read): New function.
4633 (stdio_file_read): New function.
4634 * ui-file.h: New type ui_file_read_ftype.
4635 (set_ui_file_read): Declare.
4636 (ui_file_read): Declare.
4637
248de703
AC
46382003-06-09 Andrew Cagney <cagney@redhat.com>
4639
4640 * frame.h (deprecated_unwind_get_saved_register): Rename
4641 generic_unwind_get_saved_register, update comments.
4642 * mips-tdep.c (mips_get_saved_register): Update.
4643 * frame.c (deprecated_unwind_get_saved_register): Update.
4644
0ed8aa57
AC
46452003-06-09 Andrew Cagney <cagney@redhat.com>
4646
4647 * vax-tdep.c (vax_frame_locals_address): Delete function.
4648 (vax_gdbarch_init): Do not set frame_locals_address.
4649 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4650 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4651 * s390-tdep.c (s390_frame_args_address): Delete function.
4652 (s390_gdbarch_init): Do not set frame_args_address or
4653 frame_locals_address.
4654 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4655 (ns32k_gdbarch_init): Do not set frame_locals_address.
4656 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4657 (hppa_frame_locals_address): Delete function.
4658 (hppa_gdbarch_init): Do not set frame_args_address, or
4659 frame_locals_address.
4660 * arm-tdep.c (arm_frame_args_address): Delete.
4661 (arm_frame_locals_address): Delete.
4662 (arm_gdbarch_init): Do not set frame_args_address, or
4663 frame_locals_address.
4664
983a287a
AC
46652003-06-09 Andrew Cagney <cagney@redhat.com>
4666
4667 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4668 * gdbarch.h, gdbarch.c: Re-generate.
4669 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4670 * arch-utils.c (frame_num_args_unknown): Delete function.
4671 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4672 (frame_info): Use FRAME_NUM_ARGS_P.
4673 * arm-tdep.c (arm_frame_num_args): Delete function.
4674 (arm_gdbarch_init): Do not set frame_num_args.
4675 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4676 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4677 (hppa_gdbarch_init): Do not set frame_num_args.
4678 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4679 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4680 frame_num_args to default frame_num_args_unknown.
4681 * v850-tdep.c (v850_gdbarch_init): Ditto.
4682 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4683 * sh-tdep.c (sh_gdbarch_init): Ditto.
4684 * s390-tdep.c (s390_gdbarch_init): Ditto.
4685 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4686 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4687 * mips-tdep.c (mips_gdbarch_init): Ditto.
4688 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4689 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4690 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4691 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4692 * i386-tdep.c (i386_gdbarch_init): Ditto.
4693 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4694 * frv-tdep.c (frv_gdbarch_init): Ditto.
4695 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4696 * cris-tdep.c (cris_gdbarch_init): Ditto.
4697 * avr-tdep.c (avr_gdbarch_init): Ditto.
4698 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4699
8d3b0994
AC
47002003-06-09 Andrew Cagney <cagney@redhat.com>
4701
4702 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4703 (print_frame_args): Moved to "stack.c".
4704 * stack.c: Include "gdb_assert.h".
4705 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4706 (print_frame_args): Moved from "printcmd.c".
4707 * frame.h (print_frame_args): Delete declaration.
4708 * Makefile.in (stack.o): Update dependencies.
4709
25e3a86b
AC
47102003-06-08 Andrew Cagney <cagney@redhat.com>
4711
4712 * frame.c (get_prev_frame): Remove reference to
4713 frame_args_address_correct in comments.
4714 * frame-base.c (default_frame_args_address): Delete code
4715 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4716 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4717 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4718 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4719 (vax_frame_args_address_correct): Delete declaration.
4720
a9e5fdc2
AC
47212003-06-08 Andrew Cagney <cagney@redhat.com>
4722
4723 * gdbarch.sh (UNWIND_SP): Add.
4724 * gdbarch.h, gdbarch.c: Re-generate.
4725 * frame.c (frame_sp_unwind): New function.
4726 (get_frame_sp): New function.
4727 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4728 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4729 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4730 value.
4731 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4732 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4733
8983bd83
AC
47342003-06-08 Andrew Cagney <cagney@redhat.com>
4735
7fec2c59
AC
4736 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4737 REMOTE_BREAKPOINT.
4738 * remote.c: Update.
4739 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4740 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4741 * config/m68k/tm-sun3.h: Update.
4742 * config/m68k/tm-m68klynx.h: Update.
4743 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4744
8983bd83
AC
4745 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4746 trad_frame". Update comments.
4747 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4748 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4749 (trad_frame_register_value, trad_frame_prev_register): Update.
4750
b9362cc7
AC
47512003-06-08 Andrew Cagney <cagney@redhat.com>
4752
4753 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4754 from GCC's acinclude.m4.
4755 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4756 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4757 * main.c (error_init): Delete declaration.
4758 * defs.h (error_init): Declare.
4759 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4760 (rs6000_convert_from_func_ptr_addr): Make static.
4761 (_initialize_rs6000_tdep): Add declaration.
4762 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4763 (show_commands, set_verbose, show_history): Delete declaration.
4764 * top.h (set_verbose): Add declaration.
4765 (show_history, set_history, show_commands): Add declaration.
4766 (do_restore_instream_cleanup): Add declaration.
4767 * objc-lang.c (specialcmp): Make static.
4768 (print_object_command): Make static.
4769 (find_objc_msgsend): Make static.
4770 (find_objc_msgcall_submethod_helper): Make static.
4771 (find_objc_msgcall_submethod): Make static.
4772 (_initialize_objc_language): Add declaration.
4773 (find_implementation_from_class): Make static.
4774 (find_implementation): Make static.
4775 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4776 * objc-lang.h (lookup_struct_typedef): Add declaration.
4777 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4778 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4779 (do_restore_user_call_depth): Make static.
4780 (do_restore_instream_cleanup): Delete declaration.
4781 (dont_repeat): Delete declaration.
4782 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4783 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4784 * reggroups.c (_initialize_reggroup): Add declaration.
4785 * cp-support.c (_initialize_cp_support): Add declaration.
4786 * cp-abi.c (_initialize_cp_abi): Add declaration.
4787 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4788 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4789 (_initialize_gnu_v3_abi): Add declaration.
4790 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4791 (_initialize_gnu_v2_abi): Add declaration.
4792 * frame-base.c (_initialize_frame_base): Add declaration.
4793 * doublest.c (floatformat_from_length): Make static.
4794 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4795 * frame.c (create_sentinel_frame): Make static.
4796 (_initialize_frame): Add declaration.
4797 * top.c (do_catch_errors): Make static.
4798 (gdb_rl_operate_and_get_next_completion): Make static.
4799 * typeprint.c: Include "typeprint.h".
4800 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4801 (sentinel_frame_this_id): Make static.
4802 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4803 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4804 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4805 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4806 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4807 * maint.c (maintenance_print_architecture): Make static.
4808 * signals/signals.c (_initialize_signals): Add declaration.
4809 * std-regs.c (_initialize_frame_reg): Add declaration.
4810 * jv-exp.y (push_variable): ISO C definition.
4811 (push_qualified_expression_name): Ditto.
4812 * memattr.c (_initialize_mem): Add declaration.
4813 * remote.c (remote_check_watch_resources): Make static.
4814 (remote_stopped_by_watchpoint): Make static.
4815 (remote_stopped_data_address): Make static.
4816 * d10v-tdep.c (nr_dmap_regs): Make static.
4817 (a0_regnum): Make static.
4818 (d10v_frame_unwind_cache): Make static.
4819 (d10v_frame_p): Make static.
4820 * osabi.c (show_osabi): Make static.
4821 (_initialize_gdb_osabi): Add extern declaration.
4822 * gdbtypes.c (make_qualified_type): Make static.
4823 (safe_parse_type): Make static.
4824 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4825 * macrotab.c (macro_bcache_free): Make static.
4826 * interps.c (interp_set_quiet): Make static.
4827 (interpreter_exec_cmd): Make static.
4828 * stack.h (select_frame_command): New file.
4829 * stack.c: Include "stack.h".
4830 (select_frame_command_wrapper): Delete function.
4831 (select_frame_command): Make global.
4832 * infcall.c: Include "infcall.h".
4833 * linespec.c: Include "linespec.h".
4834 * symfile.c (sections_overlap): Make static.
4835 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4836 * charset.c (_initialize_charset): Add missing prototype.
4837 * regcache.c (init_legacy_regcache_descr): Make static.
4838 (do_regcache_xfree): Make static.
4839 (regcache_xfer_part): Make static.
4840 (_initialize_regcache): Add missing prototype.
4841 * breakpoint.c (parse_breakpoint_sals): Make static.
4842 (breakpoint_sals_to_pc): Make static.
4843 * interps.h (clear_interpreter_hooks): ISO C declaration.
4844 * Makefile.in (stack_h): Define.
4845 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4846 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4847
a0f267c7
AC
48482003-06-08 Andrew Cagney <cagney@redhat.com>
4849
4850 * Makefile.in (d10v-tdep.o): Update dependencies.
4851 (SFILES): Add trad-frame.c.
4852 (trad_frame_h): Define.
4853 (COMMON_OBS): Add trad-frame.o.
4854 (trad-frame.o): Specify dependencies.
4855 * d10v-tdep.c: Include "trad-frame.h".
4856 (saved_regs_unwinder): Delete function.
4857 (d10v_frame_prev_register): Use trad_frame_prev_register.
4858 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4859 trad_frame", delete "regs" and "prev_sp".
4860 (prologue_find_regs): Use trad-frame.
4861 * trad-frame.h, trad-frame.c: New files.
4862
4538b4f4
MK
48632003-06-08 Mark Kettenis <kettenis@gnu.org>
4864
4865 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4866
a0273b2f
AF
48672003-06-07 Adam Fedor <fedor@gnu.org>
4868
4869 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4870 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4871 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4872 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4873 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4874 Use it.
4875
3a6c3343
AC
48762003-06-07 Andrew Cagney <cagney@redhat.com>
4877
4878 * symfile.h: Re-indent, clean up comments.
4879
b46e02f6
AC
48802003-06-07 Andrew Cagney <cagney@redhat.com>
4881
4882 * inferior.h (deprecated_write_sp): Replace
4883 generic_target_write_sp.
4884 * regcache.c (deprecated_write_sp): Replace
4885 generic_target_write_sp.
4886 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4887 * vax-tdep.c (vax_gdbarch_init): Update.
4888 * v850-tdep.c (v850_gdbarch_init): Update.
4889 * sparc-tdep.c (sparc_gdbarch_init): Update.
4890 * sh-tdep.c (sh_gdbarch_init): Update.
4891 * s390-tdep.c (s390_gdbarch_init): Update.
4892 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4893 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4894 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4895 * mcore-tdep.c (mcore_gdbarch_init): Update.
4896 * m68k-tdep.c (m68k_gdbarch_init): Update.
4897 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4898 * ia64-tdep.c (ia64_gdbarch_init): Update.
4899 * h8300-tdep.c (h8300_gdbarch_init): Update.
4900 * frv-tdep.c (frv_gdbarch_init): Update.
4901 * cris-tdep.c (cris_gdbarch_init): Update.
4902 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4903
a42e117c
AC
49042003-06-07 Andrew Cagney <cagney@redhat.com>
4905
4906 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4907 Assert that PC_REGNUM is valid.
4908 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4909
bd1ce8ba
AC
49102003-06-07 Andrew Cagney <cagney@redhat.com>
4911
4912 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4913 * gdbarch.h, gdbarch.c: Regenerate.
4914 * mn10300-tdep.c: Include "gdb_assert.h".
4915 (mn10300_read_fp): New function.
4916 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4917 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4918 * ia64-tdep.c: Include "gdb_assert.h".
4919 (ia64_read_fp): New function.
4920 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4921 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4922 * regcache.c (generic_target_read_sp): Delete function.
4923 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4924 * inferior.h (generic_target_read_sp): Delete declaration.
4925 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4926 generic_target_read_sp.
4927 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4928 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4929 * sh-tdep.c (sh_gdbarch_init): Ditto.
4930 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4931 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4932
ec5cbaec
AC
49332003-06-07 Andrew Cagney <cagney@redhat.com>
4934
4935 * gdbarch.sh: Comment each field of startup_gdbarch.
4936 * gdbarch.h, gdbarch.c: Re-generate.
4937
cde9ea48
AC
49382003-06-07 Andrew Cagney <cagney@redhat.com>
4939
4940 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4941 * gdbarch.h, gdbarch.c: Re-generate.
4942 * regcache.c: Update comments on read_pc et.al.
4943 (generic_target_read_pc): Delete function.
4944 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4945 * inferior.h (generic_target_read_pc): Delete declaration.
4946 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4947 generic_target_read_pc.
4948 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4949 * sh-tdep.c (sh_gdbarch_init): Ditto.
4950 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4951 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4952
9a90a780
AC
49532003-06-07 Andrew Cagney <cagney@redhat.com>
4954
4955 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4956 "index" with "special_local_sect". Use strcmp instead of STREQ.
4957 Append period to coments.
4958
a39a16c4
MM
49592003-06-06 Mark Mitchell <mark@codesourcery.com>
4960
4961 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4962 (elfstab_offset_sections): Likewise.
4963 * gdb-stabs.h (stab_section_info): Likewise.
4964 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4965 * objfiles.c (objfile_relocate): Likewise.
4966 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4967 * remote.c (get_offsets): Likewise.
4968 (remote_cisco_objfile_relocate): Likewise.
4969 * somread.c (som_symfile_offsets): Likewise.
4970 * symfile.c (alloc_section_addr_info): New function.
4971 (build_section_addr_info_from_section_tab): Use it.
4972 (free_section_addr_info): Adjust.
4973 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4974 (syms_from_objfile): Allocate local_addr dynamically.
4975 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4976 dynamically.
4977 (add_symbol_file_command): Allocate sect_opts dynamically.
4978 (reread_symbols): Avoid use of SECT_OFF_MAX.
4979 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4980 (alloc_section_addr_info): Declare it.
4981 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4982 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4983 dynamically.
4984 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4985
20c6c2f8
AC
49862003-06-06 Andrew Cagney <cagney@redhat.com>
4987
4988 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4989 (d10v_frame_unwind_cache): Do not set "return_pc".
4990
884a26c8
MS
49912003-06-06 Michael Snyder <msnyder@redhat.com>
4992
4993 * h8300-tdep.c: Make tidy (long lines).
4994
088ce440
ML
49952003-06-06 Michal Ludvig <mludvig@suse.cz>
4996
8ffd9b1b 4997 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4998 to regcache_collect().
4999
7d773d96
JB
50002003-06-05 J. Brobecker <brobecker@gnat.com>
5001
5002 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5003 pc_in_sigtramp multiarch method.
5004 (hppa_hpux_som_init_abi): Use it.
5005 (hppa_hpux_elf_init_abi): Likewise.
5006 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5007 macro has been multiarched.
5008 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5009 macro here, as hppa64 isn't multiarched yet.
5010
1df6926e
AC
50112003-06-05 Andrew Cagney <cagney@redhat.com>
5012
5013 * Makefile.in (value_h): Add $(frame_h).
5014 * value.h: Include "frame.h".
5015 (struct value): Replace "frame_addr" with "frame_id".
5016 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5017 * values.c (allocate_value): Use VALUE_FRAME_ID.
5018 (value_copy): Use VALUE_FRAME_ID.
5019 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5020 * valops.c (value_assign): Update. Use frame_find_by_id.
5021
6b53acc6
ML
50222003-06-05 Michal Ludvig <mludvig@suse.cz>
5023
5024 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5025 in each pass.
5026
4d9850d3
JJ
50272003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5028
5029 * thread-db.c (check_event): For create/death event breakpoints,
5030 loop through all messages to ensure that we read the message
5031 corresponding to the breakpoint we are at.
5032
8efca6ba
MS
50332003-06-04 Michael Snyder <msnyder@redhat.com>
5034
5035 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5036
0912c7f2
MK
50372003-06-04 Mark Kettenis <kettenis@gnu.org>
5038
5039 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5040 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5041 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5042 when handling .eh_frame sections.
5043
4e370325
JB
50442003-06-04 J. Brobecker <brobecker@gnat.com>
5045
5046 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5047 prepare_to_proceed procedure instead of the hppa-specific one.
5048 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5049
b757528f 50502003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5051
b757528f
JJ
5052 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5053 * config.in: Regenerated.
5054 * configure.in: Add test for syscall function and check for
5055 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5056 * configure: Regenerated.
5057 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5058 <sys/syscall.h>.
5059 (kill_lwp): New function that uses tkill syscall or
5060 uses kill, depending on whether threading model is nptl or not.
5061 All callers of kill() changed to use kill_lwp().
5062 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5063 see if all threads have already exited in the nptl model.
5064 (stop_and_resume_callback): New callback function used by the
5065 lin_lwp_wait thread exit handling code.
5066 (stop_wait_callback): Check for threads already having exited and
5067 delete such threads fromt the lwp list when discovered.
5068 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5069
b757528f
JJ
5070 Roland McGrath <roland@redhat.com>
5071 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5072 nptl libthread_db.
5073
087779b1
RH
50742003-06-03 Richard Henderson <rth@redhat.com>
5075
b21fd293
RH
5076 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5077 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5078 (alpha_sigtramp_frame_prev_register): Likewise.
5079 (alpha_heuristic_frame_prev_register): Likewise.
5080 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5081
8ffd9b1b 5082 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5083 alpha-specific register id names.
5084 (alpha_mdebug_frame_unwind_cache): Likewise.
5085 (alpha_mdebug_frame_prev_register): Likewise.
5086
baa490c4
RH
50872003-06-03 Richard Henderson <rth@redhat.com>
5088
5089 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5090 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5091 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5092 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5093 unwind routines.
5094 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5095 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5096 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5097
5098 * alpha-linux-tdep.c: Remove unnecessary includes.
5099 * Makefile.in (alpha-linux-tdep.o): Update.
5100
51012003-06-03 Richard Henderson <rth@redhat.com>
5102
5103 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5104 (alphabsd_fill_fpreg): Likewise.
5105
f534e522
JB
51062003-06-03 J. Brobecker <brobecker@gnat.com>
5107
5108 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5109 references to struct frame_info fields by calls to the equivalent
5110 accessors. Necessary now that frame_info is opaque.
5111
4035536b
JB
51122003-06-03 J. Brobecker <brobecker@gnat.com>
5113
5114 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5115 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5116 structure, field no longer exists.
5117
0bd79c5c
JB
51182003-06-03 J. Brobecker <brobecker@gnat.com>
5119
5120 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5121 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5122
37bb6d9f
JB
51232003-06-03 J. Brobecker <brobecker@gnat.com>
5124
5125 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5126 references to struct frame_info fields by calls to the equivalent
5127 accessors. Necessary now that frame_info is opaque.
5128
852ee05c
JB
51292003-06-03 J. Brobecker <brobecker@gnat.com>
5130
5131 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5132 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5133 structure, field no longer exists.
5134
7d58c67d
TR
51352003-06-03 Theodore A. Roth <troth@openavr.org>
5136
8ffd9b1b 5137 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5138 accumulation of the size of all registers instead of blindly using
5139 DEPRECATED_REGISTER_BYTES.
5140
0a48e7e8
MS
51412003-06-03 Michael Snyder <msnyder@redhat.com>
5142
5143 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5144 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5145 for h8300sx.
5146
9798ab0d
JB
51472003-06-03 J. Brobecker <brobecker@gnat.com>
5148
5149 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5150 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5151
00b037e2
AC
51522003-06-03 Andrew Cagney <cagney@redhat.com>
5153
5154 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5155 (sparc_convert_to_raw): Delete function.
5156 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5157 register_convert_to_virtual.
5158
043b2f77
JJ
51592003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5160
5161 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5162 layer if not dealing with a statically-linked threaded program.
5163
f43caff8
KW
51642003-06-03 Kris Warkentin <kewarken@qnx.com>
5165
5166 * solib.c (solib_open): Update comment to reflect actual search order.
5167
ae1e7417
AC
51682003-06-03 Andrew Cagney <cagney@redhat.com>
5169
5170 * frame.c (get_frame_memory_signed): New function.
5171 (get_frame_memory, get_frame_memory_unsigned): New function.
5172 (get_frame_arch): New function.
5173 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5174 (get_frame_memory, get_frame_unsigned_memory): Declare.
5175 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5176 get_frame_memory_unsigned and get_frame_arch.
5177 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5178
cb123844
RG
51792003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5180
5181 * MAINTAINERS (write after approval): Add myself.
5182
1bb792e9
JB
51832003-06-03 Jim Blandy <jimb@redhat.com>
5184
5185 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5186 elements of gregset_t are 64 bits each, but access registers
5187 are still 32 bits, so they're packed two per gregset_t
5188 element. Unpack/pack them properly.
5189
aee8d8ba
DC
51902003-06-02 David Carlton <carlton@bactrian.org>
5191
5192 * linespec.c (find_methods): Break out code into
5193 add_matching_methods and add_constructors.
5194 (add_matching_methods): New.
5195 (add_constructors): Ditto.
5196
bf7488d2
AC
51972003-06-02 Andrew Cagney <cagney@redhat.com>
5198
bf7488d2
AC
5199 * sparc-tdep.c (sparc_print_registers): Delete call to
5200 REGISTER_CONVERTIBLE.
5201 (sparc_gdbarch_init): Do not set register_convertible.
5202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5203 * frv-tdep.c (frv_gdbarch_init): Ditto.
5204 * cris-tdep.c (cris_gdbarch_init): Ditto.
5205
adedef68
EZ
52062003-06-02 Elena Zannoni <ezannoni@redhat.com>
5207
8ffd9b1b 5208 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5209 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5210 (syms_from_objfile): Ditto.
5211
650fcc91
AS
52122003-06-03 Andreas Schwab <schwab@suse.de>
5213
5214 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5215 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5216
df4a182b
RH
52172003-06-02 Richard Henderson <rth@redhat.com>
5218
5219 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5220 a member of all_reggroup.
5221
c483c494
RH
52222003-06-02 Richard Henderson <rth@redhat.com>
5223
5224 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5225 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5226 (alpha_lds, alpha_sts): New.
5227 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5228 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5229 restructure and fail for type sizes other than 4 or 8.
5230 (alpha_value_to_register): Similarly.
5231 (alpha_extract_return_value): Use alpha_sts.
5232 (alpha_store_return_value): Use alpha_lds.
5233 (alpha_gdbarch_init): Update hooks.
5234
b38b6be2
RH
52352003-06-02 Richard Henderson <rth@redhat.com>
5236
5237 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5238 regnum identifiers.
5239 (alpha_sigtramp_register_address): Likewise.
5240
98a8e1e5
RH
52412003-06-02 Richard Henderson <rth@redhat.com>
5242
5243 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5244 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5245 * alpha-tdep.h: Declare them.
5246
5247 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5248 Remove zerobuf. Don't error on UNIQUE.
5249 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5250 (ALPHA_REGSET_UNIQUE): Provide default.
5251 (supply_gregset): Use alpha_supply_int_regs.
5252 (fill_gregset): Use alpha_fill_int_regs.
5253 (supply_fpregset): Use alpha_supply_fp_regs.
5254 (fill_fpregset): Use alpha_fill_fp_regs.
5255 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5256 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5257 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5258 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5259 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5260 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5261
67dfac52
RH
52622003-06-02 Richard Henderson <rth@redhat.com>
5263
f75d70cc
RH
5264 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5265
67dfac52
RH
5266 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5267 (alpha_store_return_value): Likewise.
5268
0cf566ec
DC
52692003-06-02 David Carlton <carlton@math.stanford.edu>
5270
5271 * block.c (contained_in): Add 'const' to arguments.
5272 (block_function): Ditto.
5273 * block.h: Update declarations for block_function and
5274 contained_in.
5275
cdef89d0
DC
52762003-06-02 David Carlton <carlton@math.stanford.edu>
5277
5278 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5279 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5280 * p-valprint.c (pascal_val_print): Ditto.
5281 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5282
72667056
RH
52832003-06-02 Richard Henderson <rth@redhat.com>
5284
98a8e1e5
RH
5285 * alpha-tdep.c (alpha_push_dummy_call): Use
5286 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5287
8ffd9b1b 5288 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5289 sign-extension of 32-bit values.
5290 (alpha_store_return_value): Similarly.
0ede8eca 5291
98a8e1e5
RH
5292 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5293 (alpha_extract_return_value): Likewise.
5294 (alpha_store_return_value): Likewise.
7b5e1cb3 5295
98a8e1e5
RH
5296 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5297 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5298
98a8e1e5
RH
5299 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5300 (alpha_extract_struct_value_address): Likewise.
5301 (alpha_store_return_value): Likewise.
5302 (alpha_store_struct_return): Remove.
5303 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5304
98a8e1e5
RH
5305 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5306 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5307 macros where appropriate.
5308 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5309 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5310
98a8e1e5
RH
5311 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5312 for SP, GP; void_func_ptr for PC; non-language-specific types
5313 for all others.
5314 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5315
6dd77b81
RH
53162003-06-02 Richard Henderson <rth@redhat.com>
5317
5318 * top.h (lim_at_start): Declare.
5319 * main.c (captured_main): Set it.
5320 * top.c (lim_at_start): Define.
5321 (command_loop): Use it instead of &environ.
5322 * event-top.c (command_handler): Likewise.
5323
f4dbdb54
JT
53242003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5325
5326 * mipsnbsd-tdep.c: Update copyright years.
5327 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5328
8f285956
RH
53292003-06-01 Richard Henderson <rth@redhat.com>
5330
98a8e1e5
RH
5331 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5332 (alpha-linux-tdep.o): Update dependencies.
5333 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5334 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5335
615967cb
RH
53362003-06-01 Richard Henderson <rth@redhat.com>
5337
98a8e1e5
RH
5338 * alpha-tdep.c (alpha_register_reggroup_p): New.
5339 (alpha_gdbarch_init): Register it.
615967cb 5340
b59661bd
AC
53412003-06-02 Andrew Cagney <cagney@redhat.com>
5342
5343 * dwarfread.c: Eliminate "register"
5344 (decode_die_type): Eliminate assignment within "if".
5345 (struct_type, decode_array_element_type): Ditto.
5346 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5347 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5348 (decode_modified_type, completedieinfo): Ditto.
5349 * block.c: Eliminate "register".
5350 (blockvector_for_pc_sect): Eliminate assignment within "if".
5351 * cp-support.h (struct symbol): Opaque declaration.
5352 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5353
5ef165c2
RH
53542003-06-01 Richard Henderson <rth@redhat.com>
5355
98a8e1e5
RH
5356 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5357 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5358
143985b7
AF
53592003-06-01 Adam Fedor <fedor@gnu.org>
5360
5361 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5362 * gdbarch.[ch]: Regenerate.
5363 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5364 (hppa_gdbarch_init): Set it in the gdbarch vector.
5365 * i386-tdep.c (i386_fetch_pointer_argument): New
5366 (i386_gdbarch_init): Set it into gdbarch.
5367 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5368 (rs6000_gdbarch_init): Set it in gdbarch.
5369 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5370 (sparc_gdbarch_init): Set it in gdbarch.
5371
ae0167b9
AC
53722003-06-01 Andrew Cagney <cagney@redhat.com>
5373
7c0b4a20
AC
5374 * defs.h (extract_address): Delete declaration.
5375 * findvar.c (extract_address): Delete function.
5376 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5377 extract_address with the inline equivalent,
5378 extract_unsigned_integer.
5379 (xstormy16_extract_struct_value_address): Ditto.
5380 (xstormy16_pointer_to_address): Ditto.
5381 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5382 * v850-tdep.c (v850_push_arguments): Ditto.
5383 (v850_extract_return_value): Ditto.
5384 (v850_extract_struct_value_address): Ditto.
5385 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5386 (sparcnbsd_get_longjmp_target_64): Ditto.
5387 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5388 (get_longjmp_target): Ditto.
5389 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5390 (sh64_extract_struct_value_address): Ditto.
5391 (sh_push_arguments): Ditto.
5392 (sh64_push_arguments): Ditto.
5393 * remote-vxsparc.c (vx_read_register): Ditto.
5394 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5395 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5396 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5397 * mipsv4-nat.c (get_longjmp_target): Ditto.
5398 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5399 * mips-nat.c (get_longjmp_target): Ditto.
5400 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5401 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5402 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5403 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5404 * irix5-nat.c (get_longjmp_target): Ditto.
5405 * irix4-nat.c (get_longjmp_target): Ditto.
5406 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5407 (ia64_push_arguments): Ditto.
5408 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5409 * h8300-tdep.c (h8300_push_arguments): Ditto.
5410 (h8300_store_return_value): Ditto.
5411 (h8300_extract_struct_value_address): Ditto.
5412 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5413 (frv_push_arguments): Ditto.
5414 * avr-tdep.c (avr_pointer_to_address): Ditto.
5415 (avr_push_arguments): Ditto.
5416 * arm-tdep.c (arm_push_dummy_call): Ditto.
5417 (arm_get_longjmp_target): Ditto.
5418 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5419 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5420 (alpha_get_longjmp_target): Ditto.
5421
ae0167b9
AC
5422 * solib-irix.c (extract_mips_address): Inline extract_address,
5423 replacing it with extract_signed_integer.
5424 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5425 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5426 (first_link_map_member, open_symbol_file_object): Ditto.
5427 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5428 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5429 (LM_NEXT, LM_NAME): Ditto.
5430
44d88583
RH
54312003-06-01 Richard Henderson <rth@redhat.com>
5432
98a8e1e5
RH
5433 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5434 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5435 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5436 (alpha_cannot_store_register): Likewise.
5437 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5438 * alpha-nat.c (supply_gregset): Likewise.
5439 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5440
310e9b6a
AC
54412003-06-01 Andrew Cagney <cagney@redhat.com>
5442
5443 * infcall.c (call_function_by_hand): Update comment on
5444 DEPRECATED_DUMMY_WRITE_SP.
5445
5446 * mips-tdep.c (mips_gdbarch_init): Do not set
5447 deprecated_dummy_write_sp.
5448 (mips_eabi_push_dummy_call): Set the SP register.
5449 (mips_o64_push_dummy_call): Set the SP register.
5450 (mips_o32_push_dummy_call): Set the SP register.
5451 (mips_n32n64_push_dummy_call): Set the SP register.
5452
5ab84872
RH
54532003-06-01 Richard Henderson <rth@redhat.com>
5454
98a8e1e5
RH
5455 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5456 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5457 (supply_gregset): Likewise.
5458 * alpha-tdep.c (alpha_store_return_value): Likewise.
5459 (alpha_get_longjmp_target): Likewise.
5460 (alpha_register_name): Constify array.
5461 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5462 deprecated_register_size, deprecated_register_bytes,
5463 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5464 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5465 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5466
09cc52fd
RH
54672003-06-01 Richard Henderson <rth@redhat.com>
5468
5469 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5470 from arg_reg_buffer to regcache to avoid double conversion.
5471
c7f16359
MK
54722003-06-01 Mark Kettenis <kettenis@gnu.org>
5473
5474 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5475 SP_REGNUM.
5476 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5477 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5478
7131cb6e
RH
54792003-06-01 Richard Henderson <rth@redhat.com>
5480
98a8e1e5
RH
5481 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5482 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5483
f3e0f90b
RH
54842003-06-01 Richard Henderson <rth@redhat.com>
5485
98a8e1e5
RH
5486 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5487 not overlapping PC_REGNUM.
f3e0f90b 5488
c88e30c0
RH
54892003-06-01 Richard Henderson <rth@redhat.com>
5490
98a8e1e5
RH
5491 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5492 alpha_push_arguments. Don't dump argument register data to
5493 the target stack. Fix float and 128-bit long double semantics.
5494 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5495 (alpha_fix_call_dummy): Remove.
5496 (alpha_call_dummy_words): Remove.
5497 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5498
f1a559ae
RH
54992003-06-01 Richard Henderson <rth@redhat.com>
5500
5501 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5502
5e045346
AC
55032003-06-01 Andrew Cagney <cagney@redhat.com>
5504
95404a3e
AC
5505 * mips-tdep.c (is_mips16_addr): New function.
5506 (make_mips16_addr, unmake_mips16_addr): New functions.
5507 (pc_is_mips16, mips_fetch_instruction): Use.
5508 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5509 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5510 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5511 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5512 TARGET_MIPS.
5513 * config/mips/tm-mips.h: Update copyright.
5514 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5515 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5516 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5517 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5518 (TM_PRINT_INSN_MACH): Delete.
5519 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5520
5e045346
AC
5521 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5522 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5523 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5524 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5525 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5526 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5527 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5528 mips*-*-riscos* and mips*-*-sysv* onto mips.
5529 * config/mips/mips64.mt: New file.
5530 * config/mips/mips.mt: New file.
5531 * config/mips/littlemips.mt: Delete file.
5532 * config/mips/decstation.mt: Delete file.
5533 * config/mips/vr4300el.mt: Delete file.
5534 * config/mips/vr5000el.mt: Delete file.
5535 * config/mips/vr5000.mt: Delete file.
5536 * config/mips/vr4100.mt: Delete file.
5537 * config/mips/vr4xxxel.mt: Delete file.
5538 * config/mips/vr4300.mt: Delete file.
5539 * config/mips/vr4xxx.mt: Delete file.
5540 * config/mips/bigmips.mt: Delete file.
5541 * config/mips/bigmips64.mt: Delete file.
5542 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5543 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5544 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5545 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5546 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5547 "tm-bigmips.h".
5548 * config/mips/tm-irix3.h: Ditto.
5549 * config/mips/tm-mipsv4.h: Ditto.
5550 * config/mips/tm-embed.h: Ditto.
5551 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5552 "tm-bigmips64.h".
5553 * config/mips/tm-vr5000el.h: Delete file.
5554 * config/mips/tm-tx39l.h: Delete file.
5555 * config/mips/tm-vr4300el.h: Delete file.
5556 * config/mips/tm-vr4xxxel.h: Delete file.
5557 * config/mips/tm-vr4300.h: Delete file.
5558 * config/mips/tm-vr4100.h: Delete file.
5559 * config/mips/tm-vr4xxx.h: Delete file.
5560 * config/mips/tm-vr5000.h: Delete file.
5561 * config/mips/tm-embedl64.h: Delete file.
5562 * config/mips/tm-embedl.h: Delete file.
5563 * config/mips/tm-embed64.h: Delete file.
5564 * config/mips/tm-bigmips64.h: Delete file.
5565 * config/mips/tm-bigmips.h: Delete file.
5566
2473a4a9
MK
55672003-06-01 Mark Kettenis <kettenis@gnu.org>
5568
97a5b208
MK
5569 Fix gdb/1216.
5570 * shnbsd-nat.c: Include "sh-tdep.h".
5571
2473a4a9
MK
5572 From Richard Henderson <rth@redhat.com>:
5573 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5574
e0f7ec59
AC
55752003-05-31 Andrew Cagney <cagney@redhat.com>
5576
5577 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5578 forward declaration.
5579 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5580 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5581 (mips_find_saved_regs): Use set_reg_offset.
5582 (mips_frame_init_saved_regs): Delete function.
5583 (mips_pop_frame): Call mips_find_saved_regs instead of
5584 DEPRECATED_FRAME_INIT_SAVED_REGS.
5585
68dcc709
AC
55862003-05-31 Andrew Cagney <cagney@redhat.com>
5587
5588 * mips-tdep.c (mips_gdbarch_init): Do not set
5589 deprecated_max_register_raw_size, register_virtual_size, and
5590 deprecated_max_register_virtual_size.
5591
cfc14b3a
MK
55922003-05-31 Mark Kettenis <kettenis@gnu.org>
5593
6405b0a6
MK
5594 * i386-tdep.c: Include "dwarf2-frame.h".
5595 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5596 * Makefile.in (i386-tdep.o): Update dependencies.
5597
cfc14b3a
MK
5598 * dwarf2-frame.c, dwarf2-frame.h: New files.
5599 * Makefile.in (SFILES): Add dwarf2-frame.c.
5600 (dwarf2_frame_h): Define.
5601 (COMMON_OBS): Add dwarf2-frame.o.
5602 (dwarf2-frame.o): Add dependencies.
5603
6a2751d2
AJ
56042003-05-31 Andreas Jaeger <aj@suse.de>
5605
5606 * x86-64-linux-nat.c: Fix comment.
5607
1c3545ae
MK
56082003-05-31 Mark Kettenis <kettenis@gnu.org>
5609
10f93086
MK
5610 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5611 function signature.
5612
1c3545ae
MK
5613 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5614 have a sigcontext_addr handler.
5615 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5616 sigcontext_addr handler.
5617
e11c53d2
AC
56182003-05-31 Andrew Cagney <cagney@redhat.com>
5619
5620 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5621 (print_fp_register_row): Replace do_fp_register_row.
5622 (mips_print_fp_register): Add "file" and "frame" parameters.
5623 (mips_print_register): Add "file" and "frame" parameters.
5624 (mips_print_registers_info): Replace mips_do_registers_info.
5625 (mips_gdbarch_init): Set print_registers_info instead of
5626 deprecated_do_registers_info.
5627 (mips_read_fp_register_single): Add "frame" parameter.
5628 (mips_read_fp_register_double): Add "frame" parameter.
5629
a3386186
MK
56302003-05-31 Mark Kettenis <kettenis@gnu.org>
5631
70913449
MK
5632 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5633 Fixes a bug where GDB would print the wrong register names for
5634 targets without SSE.
5635
2b5e0749
MK
5636 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5637 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5638 registers.
5639
5640 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5641 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5642 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5643 TDEP->sc_sp_offset.
5644
a3386186
MK
5645 From Michal Ludvig <mludvig@suse.cz>:
5646 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5647 and `sc_num_regs'.
5648 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5649 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5650 I386_ST0_REGNUM): Move here from...
5651 * i386-tdep.c: ... here.
5652 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5653 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5654 registers if possible.
5655 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5656 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5657 Remove variables.
5658 (i386bsd_sc_reg_offset): New variable.
5659 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5660 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5661 TDEP->sc_sp_offset.
5662 (i386fbsd_sc_reg_offset): New variable.
5663 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5664 TDEP->sc_num_regs.
5665 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5666 variables.
5667 (i386fbsd4_sc_reg_offset): New variable.
5668 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5669 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5670 TDEP->sc_sp_offset.
5671 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5672 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5673 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5674 Remove variables.
5675 (i386nbsd_sc_reg_offset): New variable.
5676 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5677 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5678 TDEP->sc_sp_offset.
5679 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5680 Remove variables.
5681 (i386obsd_sc_reg_offset): New variable.
5682 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5683 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5684 TDEP->sc_sp_offset.
5685 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5686 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5687 for frame pointer offset in `struct sigcontext'.
5688
25ab4790
AC
56892003-05-31 Andrew Cagney <cagney@redhat.com>
5690
5691 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5692 architecture methods call_dummy_words, sizeof_call_dummy_words,
5693 push_return_address, store_struct_return, and fix_call_dummy. Set
5694 push_dummy_call instead of deprecated_push_arguments.
5695 (mips_store_struct_return): Delete function.
5696 (mips_fix_call_dummy): Delete function.
5697 (mips_push_return_address): Delete function.
5698 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5699 RA_REGNUM and T9_REGNUM.
5700 (mips_n32n64_push_dummy_call): Ditto for
5701 mips_n32n64_push_arguments.
5702 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5703 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5704
6a65450a
AC
57052003-05-31 Andrew Cagney <cagney@redhat.com>
5706
5707 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5708 "dummy_addr" to "bp_addr".
5709 * infcall.c (call_function_by_hand): Pass "funaddr" to
5710 gdbarch_push_dummy_call.
5711 * gdbarch.h, gdbarch.c: Re-generate.
5712 * i386-tdep.c (i386_push_dummy_call): Update.
5713 * arm-tdep.c (arm_push_dummy_call): Update.
5714 * d10v-tdep.c (d10v_push_dummy_call): Update.
5715
c4f35dd8
MK
57162003-05-31 Mark Kettenis <kettenis@gnu.org>
5717
5718 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5719 variable declarations.
5720 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5721 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5722 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5723 x86_64_init_frame_pc, x86_64_init_frame_pc,
5724 x86_64_function_has_prologue): Remove prototypes.
5725 (X86_64_NUM_GREGS): New define.
5726 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5727 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5728 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5729 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5730 XMM1_REGNUM): Remove defines.
5731 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5732 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5733 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5734 X86_64_XMM1_REGNUM): New defines.
5735 (struct x86_64_register_info): Renamed from `struct
5736 register_info'. Remove `size' member.
5737 (x86_64_register_info_table): Remove variable.
5738 (x86_64_register_info): New variable.
5739 (X86_64_NUM_REGS): New define.
5740 (X86_64_NUM_GREGS): Remove define.
5741 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5742 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5743 Remove variables.
5744 (x86_54_dwarf2_reg_to_regnum): Remove function.
5745 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5746 (x86_64_dwarf_reg_to_regnum): New function.
5747 (x86_64_register_name): Rewrite.
5748 (x86_64_register_raw_size): Remove function.
5749 (x86_64_register_byte_table): Remove variable.
5750 (x86_64_register_byte): Remove function.
5751 (x86_64_register_virtual_type): Remove function.
5752 (x86_64_register_type): New function.
5753 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5754 x86_64_register_convert_to_raw): Remove functions.
5755 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5756 (x86_64_use_struct_convention): Make static. Adjust for renamed
5757 defines.
5758 (x86_64_frame_init_saved_regs): Remove function.
5759 (x86_64_push_arguments): Make static. Change to accept a regcache
5760 as argument.
5761 (x86_64_store_return_value, x86_64_extract_return_value): Make
5762 static. Rewrite based on i386 counterparts.
5763 (x86_64_push_dummy_call): New function.
5764 (X86_64_NUM_SAVED_REGS): New define.
5765 (x86_64_register_number): Remove function.
5766 (x86_64_store_struct_return): Remove function.
5767 (x86_64_frameless_function_invocation,
5768 x86_64_function_has_prologue): Remove functions.
5769 (PROLOG_BUFSIZE): Remove define.
5770 (struct x86_64_frame_cache): New structure.
5771 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5772 x86_64_frame_cache, x86_64_frame_this_id,
5773 x86_64_frame_prev_register, x86_64_frame_p,
5774 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5775 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5776 functions.
5777 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5778 variables.
5779 (x86_64_skip_prologue): Rewrite in terms of
5780 x86_64_analyze_prologue.
5781 (x86_64_frame_base_address): New function.
5782 (x86_64_frame_base): New variable.
5783 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5784 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5785 set deprecated_fp_regnum, deprecated_register_size,
5786 deprecated_register_bytes, register_raw_size, register_byte,
5787 register_virtual_type, register_convertiable,
5788 register_convert_to_virtual, convert_to_raw,
5789 deprecated_get_saved_register, deprecated_target_read_fp,
5790 deprecated_push_arguments, deprecated_push_return_address,
5791 deprecated_pop_frame, deprecated_store_struct_return,
5792 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5793 frameless_function_invocation, deprecated_frame_saved_pc,
5794 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5795 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5796 deprecated_init_frame_pc and virtual_frame_pointer. Call
5797 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5798 and x86_64_frame_p. Call frame_base_set_default to register
5799 x86_64_frame_base.
5800 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5801 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5802 (_initialize_x86_64_tdep): Remove function.
5803 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5804 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5805 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5806 define.
5807 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5808 (x86_64_linux_sigcontext_addr): Rewrite.
5809 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5810 x86_64_linux_frame_saved_pc): Remove functions.
5811 (x86_64_linux_pc_in_sigtramp): Renamed from
5812 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5813 trampoline.
5814 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5815 Remove_functions.
5816 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5817 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5818 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5819 (x86_64_regmap): Rename to regmap.
5820 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5821 x86_64_num_gregs.
5822 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5823 x86_64_regmap.
5824 (x86_64_fxsave_offset): Remove function.
5825 (supply_fpregset): Simply call x86_64_supply_fxsave.
5826 (fill_fpregset): Simply call x86_64_fill_fxsave.
5827 (fetch_inferior_registers, store_inferior_registers): Avoid
5828 asignment in if-statement.
5829 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5830 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5831 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5832 (fetch_core_registers): Remove function.
5833 (linux_elf_core_fns): Remove.
5834 (offsetoff): Don't define.
5835 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5836 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5837 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5838 add core-regset.o.
5839 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5840 protection against multiple includes instead of NM_X86_64_h. Add
5841 various comments. Include "config/nm-linux.h". Don't include
5842 <signal.h>.
5843 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5844 GET_THREAD_SIGNALS): Remove defines.
5845 (x86_64_register_u_addr, kernel_u_size,
5846 lin_thread_get_thread_signals): Remove prototypes.
5847 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5848 [HAVE_LINK_H]: Don't include "solib.h".
5849 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5850 * config/i386/tm-x86-64linux.h: Fix comments.
5851 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5852 x86-64-tdep.o): Update dependencies.
5853
c25083af
AC
58542003-05-30 Andrew Cagney <cagney@redhat.com>
5855
c8f55a7b
AC
5856 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5857 Change parameter type to a "struct regcache *".
5858
c25083af
AC
5859 * gdbarch.sh: Regardless of the multi-arch level, always define
5860 the macro when not already defined.
5861 * gdbarch.h, gdbarch.c: Re-generate.
5862
fbe586ae
RH
58632003-05-30 Richard Henderson <rth@redhat.com>
5864
5865 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5866 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5867 (alpha_mdebug_frame_this_id): Likewise.
5868 (alpha_mdebug_frame_prev_register): Likewise.
5869 (alpha_mdebug_frame_base_address): Likewise.
5870 (alpha_mdebug_frame_locals_address): Likewise.
5871 (alpha_mdebug_frame_args_address): Likewise.
5872 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5873 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5874 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5875 loop increment.
5876 (alpha_heuristic_frame_this_id): Make static.
5877 (alpha_heuristic_frame_prev_register): Likewise.
5878 (alpha_heuristic_frame_base_address): Likewise.
5879 * alpha-tdep.h: Update.
5880
acd5c798
MK
58812003-05-30 Mark Kettenis <kettenis@gnu.org>
5882
5883 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5884 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5885 defenitions.
5886 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5887 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5888 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5889 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5890 I386_ST0_REGNUM): New defines.
5891 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5892 codestream_get): Remove define.
5893 (codestream_next_addr, condestream_addr, condestream_buf,
5894 codestream_off, codestream_cnt): Remove variables.
5895 (codestream_fill, codestream_seek, codestream_read): Remove
5896 functions.
5897 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5898 functionality.
5899 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5900 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5901 i386_frame_saved_pc, i386_saved_pc_after_call,
5902 i386_frame_num_args, i386_frame_init_saved_regs,
5903 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5904 i386_push_arguments): Remove functions.
5905 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5906 functionality. Use i386_analyze_prologue instead of
5907 i386_get_frame_setup.
5908 (I386_NUM_SAVED_REGS): New define.
5909 (struct i386_frame_cache): New structure.
5910 (i386_alloc_frame_cache, i386_analyze_struct_return,
5911 i386_skip_probe, i386_analyze_frame_setup,
5912 i386_analyze_register_saves, i386_analyze_prologue,
5913 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5914 i386_frame_prev_register, i386_sigtramp_frame_cache,
5915 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5916 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5917 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5918 New functions.
5919 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5920 New variables.
5921 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5922 I386_EAX_REGNUM and I386_EDX_REGNUM.
5923 (i386_extract_return_value, i386_store_return_value): Use
5924 I386_ST0_REGNUM where appropriate.
5925 (i386_extract_struct_value_address): Rewrite to use extract_address.
5926 (i386_svr4_pc_in_sigtramp): Add comment.
5927 (i386_svr4_sigcontext_addr): Rewrite.
5928 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5929 TDEP->sc_sp_offset.
5930 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5931 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5932 of new defines. Set push_dummy_call, don't set
5933 deprecated_push_arguments, deprecated_push_return_address,
5934 deprecated_pop_frame. Don't set parm_boundary. Don't set
5935 deprecated_frame_chain, deprecated_frame_saved_pc,
5936 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5937 save_dummy_frame_tos, unwind_pc. Call
5938 frame_unwind_append_predicate and frame_base_set_default. Don't
5939 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5940 Don't set frameless_function_invocation. Don't set
5941 deprecated_register_bytes, deprecated_register_size,
5942 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5943 * i386-linux-tdep.c: Fix formatting in some comments.
5944 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5945 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5946 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5947 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5948 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5949 redundant parentheses.
5950 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5951 (i386_linux_sigcontext_addr): Use it. Rewrite.
5952 (find_minsym_and_objfile): Change name of second argument.
5953 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5954 changed. Use frame_pc_unwind instead of
5955 DEPRECATED_SAVED_PC_AFTER_CALL.
5956 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5957 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5958 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5959 unwinder.
5960 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5961 "dummy-frame.h".
5962 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5963 (_initialize_i386_cygwin_tdep): New prototype.
5964 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5965 deprecated_frame_chain_valid.
5966 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5967 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5968 Rely on the SVR4 defaults.
5969 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5970 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5971
c89b70f1
AC
59722003-05-30 Andrew Cagney <cagney@redhat.com>
5973
5974 * infcall.c (call_function_by_hand): Always call
5975 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5976
85b32d22
RH
59772003-05-30 Richard Henderson <rth@redhat.com>
5978
c89b70f1
AC
5979 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5980 increment.
85b32d22 5981
bfe51b1e
JB
59822003-05-29 Jim Blandy <jimb@redhat.com>
5983
5984 Use gdbarch methods for solib stuff on PowerPC Linux.
5985 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5986 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5987 show through.
5988 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5989 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5990 giving the same effect as the #definitions above.
5991
1abf022c
AF
59922003-05-29 Adam Fedor <fedor@gnu.org>
5993
5994 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5995 (find_implementation_from_class): Replace it with the standard
5996 case i.e. do nothing.
5997
d2427a71
RH
59982003-05-29 Richard Henderson <rth@redhat.com>
5999
6000 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6001 (alpha_linux_sigtramp_offset): Use it. Make static.
6002 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6003 update for new frame model.
6004 * alpha-mdebug-tdep.c: New file.
6005 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6006 (alpha_osf1_init_abi): Install it.
6007 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6008 (linked_proc_desc_table): Remove.
6009 (alpha_frame_past_sigtramp_frame): Remove.
6010 (alpha_dynamic_sigtramp_offset): Remove.
6011 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6012 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6013 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6014 (push_sigtramp_desc): Remove.
6015 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6016 (alpha_cannot_store_register): Likewise.
6017 (alpha_sigcontext_addr): Remove.
6018 (alpha_find_saved_regs): Remove.
6019 (alpha_frame_init_saved_regs): Remove.
6020 (alpha_init_frame_pc_first): Remove.
6021 (read_next_frame_reg): Remove.
6022 (alpha_frame_saved_pc): Remove.
6023 (alpha_saved_pc_after_call): Remove.
6024 (temp_proc_desc, temp_saved_regs): Remove.
6025 (alpha_about_to_return): Remove.
6026 (cached_proc_desc): Remove.
6027 (alpha_frame_chain): Remove.
6028 (alpha_print_extra_frame_info): Remove.
6029 (alpha_init_extra_frame_info): Remove.
6030 (alpha_frame_locals_address): Remove.
6031 (alpha_frame_args_address): Remove.
6032 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6033 (alpha_push_dummy_frame): Remove.
6034 (alpha_pop_frame): Remove.
6035 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6036 (alpha_read_insn): New.
6037 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6038 for different insn encodings.
6039 (alpha_in_lenient_prologue): Remove.
6040 (struct alpha_sigtramp_unwind_cache): New.
6041 (alpha_sigtramp_frame_unwind_cache): New.
6042 (alpha_sigtramp_register_address): New.
6043 (alpha_sigtramp_frame_this_id): New.
6044 (alpha_sigtramp_frame_prev_register): New.
6045 (alpha_sigtramp_frame_unwind): New.
6046 (alpha_sigtramp_frame_p): New.
6047 (struct alpha_heuristic_unwind_cache): New.
6048 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6049 don't count nop insns that occur between functions.
6050 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6051 heuristic_proc_desc, but without the mdebug wrapping.
6052 (alpha_heuristic_frame_this_id): New.
6053 (alpha_heuristic_frame_prev_register): New.
6054 (alpha_heuristic_frame_unwind): New.
6055 (alpha_heuristic_frame_p): New.
6056 (alpha_heuristic_frame_base_address): New.
6057 (alpha_heuristic_frame_base): New.
6058 (alpha_unwind_dummy_id): New.
6059 (alpha_unwind_pc): New.
6060 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6061 frame related deprecated initializations; install replacements.
6062 (alpha_dump_tdep): Remove.
6063 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6064 (alpha_read_insn, alpha_after_prologue,
6065 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6066 alpha_heuristic_frame_prev_register,
6067 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6068 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6069 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6070 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6071
93ec1121
AC
60722003-05-29 Andrew Cagney <cagney@redhat.com>
6073
6074 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6075 dependant on the availability of ASSERT_FUNCTION.
6076 (ASSERT_FUNCTION): Do not define when there is no function name.
6077
98f08d3d
KB
60782003-05-29 Kevin Buettner <kevinb@redhat.com>
6079
6080 From Jimi X <jimix@watson.ibm.com>:
6081 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6082
0897f59b
JB
60832003-05-28 Jim Blandy <jimb@redhat.com>
6084
6085 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6086 argument to ptrace to int; the system headers should give it the
6087 right type, and pointers don't fit in ints on powerpc64-*-*.
6088
14898363
L
60892003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6090
6091 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6092 DW_TAG_catch_block.
6093
a7a48797
EZ
60942003-05-26 Elena Zannoni <ezannoni@redhat.com>
6095
6096 * stabsread.c (dbx_lookup_type): Make static.
6097 (read_type): Ditto.
6098 (add_undefined_type): Ditto.
6099 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6100 not export.
6101
f5479e9c
EZ
61022003-05-26 Elena Zannoni <ezannoni@redhat.com>
6103
6104 * hpread.c (hpread_has_name): Make static.
6105 (hpread_psymtab_to_symtab): Ditto.
6106 (file_exists): Ditto.
6107 (hpread_call_pxdb): Ditto.
6108 (hpread_pxdb_needed): Ditto.
6109 (hpread_quick_traverse): Ditto.
6110 (hpread_get_header): Ditto.
6111 (hpread_get_lntt): Ditto.
6112 (hpread_get_slt): Ditto.
6113 (class_of): Ditto.
6114
eb2e12d7
AS
61152003-05-25 Andreas Schwab <schwab@suse.de>
6116
78bf922a
AS
6117 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6118 stack_align and deprecated_extra_stack_alignment_needed.
6119 (m68k_stack_align): Delete.
6120
eb2e12d7
AS
6121 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6122 (m68k_register_virtual_size): Likewise.
6123 (altos_skip_prologue): Remove obsolete function.
6124 (isi_frame_num_args): Likewise.
6125 (news_frame_num_args): Likewise.
6126 (m68k_fix_call_dummy): Make static.
6127 (m68k_push_dummy_frame): Likewise.
6128 (m68k_pop_frame): Likewise.
6129 (m68k_skip_prologue): Likewise.
6130 (m68k_frame_init_saved_regs): Likewise.
6131 (m68k_saved_pc_after_call): Likewise.
6132 (m68k_get_longjmp_target): Make multi-arch.
6133 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6134 structure. Register m68k_get_longjmp_target if enabled.
6135 * m68k-tdep.h (struct gdbarch_tdep): Define.
6136 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6137
6138 * Makefile.in (config.status): Also depend on configure.tgt
6139 and configure.host.
6140 (m68klinux-tdep.o): Update dependencies.
6141 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6142 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6143 (M68K_LINUX_JB_PC): Define.
6144 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6145 and take additional parameter.
6146 (m68k_linux_sigtramp_saved_pc): Update.
6147 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6148 m68k_linux_pc_in_sigtramp, in_plt_section,
6149 find_solib_trampoline_target.
6150 * config/m68k/tm-linux.h: Don't include any tm headers.
6151 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6152 (JB_ELEMENT_SIZE): Likewise.
6153 (JB_PC): Likewise.
6154 (GET_LONGJMP_TARGET): Likewise.
6155 (IN_SIGTRAMP): Likewise.
6156 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6157
eb2c22dc
MK
61582003-05-25 Mark Kettenis <kettenis@gnu.org>
6159
6160 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6161 (sparc32_push_arguments): Re-implement by calling
6162 sparc32_do_push_arguments.
6163
44b7b84e
MK
61642003-05-25 Mark Kettenis <kettenis@gnu.org>
6165
6166 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6167 SPARC_O1_REGNUM): New defines.
6168 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6169 (sparc32_store_return_value): New function.
6170 (sparc_extract_struct_value_address): Rewrite to operate on a
6171 regcache.
6172 (sparc_gdbarch_init): Don't set
6173 deprecated_extract_struct_value_address. Set
6174 extract_struct_value_address instead. Don't set
6175 deprecated_extract_return_value and deprecated_store_return_value
6176 for 32-bit targets. Set extract_return_value and
6177 store_return_value instead.
6178 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6179 DEPRECTAED_EXTRACT_RETURN_VALUE,
6180 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6181 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6182 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6183 (sparc_store_return_value): Remove prototype.
6184 (sparc32_store_return_value): New prototype.
6185 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6186 Adjust prototypes.
6187
f6ad61e3
MK
61882003-05-24 Mark Kettenis <kettenis@gnu.org>
6189
6190 * sparcnbsd-tdep.c: Include "gdb_string.h".
6191
b276f1bb
AC
61922003-05-23 Andrew Cagney <cagney@redhat.com>
6193
6194 * p-valprint.c (pascal_val_print): Replace extract_address with
6195 the inline equivalent extract_unsigned_integer.
6196 * jv-valprint.c (java_value_print): Ditto.
6197 * ada-valprint.c (ada_val_print_1): Ditto.
6198 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6199
e76c5fcc
TR
62002003-05-23 Theodore A. Roth <troth@openavr.org>
6201
6202 * blockframe.c (frameless_look_for_prologue): Remove unused
6203 after_prologue variable.
6204
2cdd89cb
MK
62052003-05-23 Mark Kettenis <kettenis@gnu.org>
6206
6207 * blockframe.c (get_pc_function_start): Rewrite to avoid
6208 asignments in if-statements.
6209
182d43bc
EZ
62102003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6211
6212 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6213 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6214 files, don't relocate absolute symbols (and do use mst_abs).
6215
e8f3fcdd
AC
62162003-05-23 Andrew Cagney <cagney@redhat.com>
6217
6218 * objc-lang.c: Include "gdb_assert.h".
6219 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6220 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6221 (gdb_check, gdb_check_fatal): Delete functions.
6222 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6223 gdb_assert.
6224 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6225 * Makefile.in (objc-lang.o): Update dependencies.
6226
3c23e6fb
ILT
62272003-05-22 Ian Lance Taylor <ian@airs.com>
6228
6229 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6230 with fprintf_filtered, not fprintf_unfiltered.
6231
af1342ab
AC
62322003-05-22 Andrew Cagney <cagney@redhat.com>
6233
6234 * stack.c (frame_info): Inline extract_address, replacing it with
6235 extract_unsigned_integer.
6236 * findvar.c (unsigned_pointer_to_address): Ditto.
6237 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6238 * dwarf2expr.c (dwarf2_read_address): Ditto.
6239 * frame.c (frame_pc_unwind): Update comment.
6240 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6241
47e242ec
JJ
62422003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6243
6244 * infptrace.c (detach): Call print_sys_errmsg rather than
6245 perror_with_name to issue warning message when errno is non-zero
6246 after calling ptrace detach.
6247
e2ac8128
JB
62482003-05-21 J. Brobecker <brobecker@gnat.com>
6249
6250 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6251 macro definitions from here...
6252 * hppa-tdep.c: ...to there.
6253
92b3541e
KB
62542003-05-20 Kevin Buettner <kevinb@redhat.com>
6255
6256 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6257 register_ptrace_addr(). Fix all callers.
6258
55809acb
AS
62592003-05-21 Andreas Schwab <schwab@suse.de>
6260
6261 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6262 dependencies.
6263 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6264 end.
6265 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6266 (_initialize_m68k_linux_tdep): New function.
6267 (m68k_linux_frame_saved_pc): Make static.
6268 (m68k_linux_extract_return_value): Likewise.
6269 (m68k_linux_store_return_value): Likewise.
6270 (m68k_linux_extract_struct_value_address): Likewise.
6271 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6272 Remove.
6273 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6274 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6275 (DEPRECATED_FRAME_SAVED_PC): Remove.
6276
0fbc10f7
KW
62772003-05-20 Kris Warkentin <kewarken@qnx.com>
6278
6279 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6280 regset numbering rather than our own.
6281
58da2eb2
DC
62822003-05-19 David Carlton <carlton@bactrian.org>
6283
6284 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6285
1fcb5155
DC
62862003-05-19 David Carlton <carlton@bactrian.org>
6287
6288 Partial fix for PR c++/827.
6289 * cp-support.h: Include symtab.h.
6290 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6291 * cp-namespace.c: Update contributors.
6292 (cp_lookup_symbol_nonlocal): New.
6293 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6294 (lookup_symbol_file): Ditto.
6295 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6296 * block.h: Declare block_scope, block_using, block_global_block.
6297 * block.c (block_scope): New.
6298 (block_using, block_global_block): Ditto.
6299 * Makefile.in (cp_support_h): Depend on symtab_h.
6300 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6301
5f9a71c3
DC
63022003-05-19 David Carlton <carlton@bactrian.org>
6303
6304 * language.h (struct language_defn): Add 'la_value_of_this'
6305 and 'la_lookup_symbol_nonlocal' members.
6306 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6307 lookup_symbol_static, lookup_symbol_global,
6308 lookup_symbol_aux_block.
6309 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6310 if we should search fields of this and how to do static/global
6311 lookup.
6312 (lookup_symbol_aux_block): Make extern.
6313 (basic_lookup_symbol_nonlocal): New.
6314 (lookup_symbol_static, lookup_symbol_global): Ditto.
6315 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6316 'la_lookup_symbol_nonlocal' members.
6317 * c-lang.c (c_language_defn, cplus_language_defn)
6318 (asm_language_defn, minimal_language_defn): Ditto.
6319 * jv-lang.c (java_language_defn): Ditto.
6320 * language.c (unknown_language_defn, auto_language_defn)
6321 (local_language_defn): Ditto.
6322 * m2-lang.c (m2_language_defn): Ditto.
6323 * objc-lang.c (objc_language_defn): Ditto.
6324 * scm-lang.c (scm_language_defn): Ditto.
6325 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6326 * p-lang.c (pascal_language_defn): Ditto for both.
6327 * Makefile.in (f-lang.o): Depend on value_h.
6328 (p-lang.o): Ditto.
6329
89a9d1b1
DC
63302003-05-19 David Carlton <carlton@bactrian.org>
6331
6332 * block.h: Declare block_static_block.
6333 * block.c (block_static_block): New.
6334 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6335 lookup_symbol_aux_local, calling block_static_block instead.
6336 (lookup_symbol_aux_local): Delete 'static_block' argument.
6337
eed3f8ab
DC
63382003-05-19 David Carlton <carlton@bactrian.org>
6339
6340 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6341
a09d8bda
ML
63422003-05-19 Michal Ludvig <mludvig@suse.cz>
6343
6344 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6345 register numbers mapping.
6346
69636828
AF
63472003-05-18 Adam Fedor <fedor@gnu.org>
6348
6349 * symtab.c (completion_list_objc_symbol): New function.
6350 (make_symbol_completion_list): Use it to add ObjC symbols
6351 when looking though the list.
6352 (language_search_unquoted_string): New function.
6353 (make_file_symbol_completion_list): Use it.
6354
55baeb84
AS
63552003-05-18 Andreas Schwab <schwab@suse.de>
6356
d0b45d99
AS
6357 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6358 dependencies.
6359 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6360 as m68k_linux_extract_return_value.
6361 (DEPRECATED_STORE_RETURN_VALUE): Define as
6362 m68k_linux_store_return_value.
6363 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6364 m68k_linux_extract_struct_value_address.
6365 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6366 get_next_frame, get_frame_base, get_frame_pc.
6367 (m68k_linux_frame_saved_pc): Use get_frame_base.
6368 (m68k_linux_extract_return_value): New function.
6369 (m68k_linux_store_return_value): New function.
6370 (m68k_linux_extract_struct_value_address): New function.
6371 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6372
55baeb84
AS
6373 * c-exp.y (typebase): Remove duplicate occurence of
6374 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6375 of lookup_signed_typename.
55baeb84 6376
b6b08ebf
MK
63772003-05-18 Mark Kettenis <kettenis@gnu.org>
6378
6379 * dwarf2loc.c (find_location_expression): Change type of second
6380 argument to `size_t *'.
6381 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6382 for size variable.
6383
5ad1c190
DC
63842003-05-18 David Carlton <carlton@bactrian.org>
6385
6386 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6387 'linkage_name'. Add comment.
6388 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6389 'linkage_name'.
6390 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6391 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6392 (lookup_block_symbol): Ditto.
6393
b8b527c5
AC
63942003-05-16 Andrew Cagney <cagney@redhat.com>
6395
6396 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6397 * gdbarch.h, gdbarch.c: Re-generate.
6398 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6399 * TODO (REGISTER_BYTES): Delete reference.
6400 * alpha-tdep.c (alpha_gdbarch_init): Update.
6401 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6402 * x86-64-tdep.c (x86_64_init_abi): Update.
6403 * vax-tdep.c (vax_gdbarch_init): Update.
6404 * v850-tdep.c (v850_gdbarch_init): Update.
6405 * sparc-tdep.c (sparc_gdbarch_init): Update.
6406 * sh-tdep.c (sh_gdbarch_init): Update.
6407 * s390-tdep.c (s390_gdbarch_init): Update.
6408 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6409 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6410 (ns32k_gdbarch_init_32382): Update.
6411 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6412 * mcore-tdep.c (mcore_gdbarch_init): Update.
6413 * m68k-tdep.c (m68k_gdbarch_init): Update.
6414 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6415 * ia64-tdep.c (ia64_gdbarch_init): Update.
6416 * i386-tdep.c (i386_gdbarch_init): Update.
6417 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6418 * hppa-tdep.c (hppa_gdbarch_init): Update.
6419 * h8300-tdep.c (h8300_gdbarch_init): Update.
6420 * frv-tdep.c (frv_gdbarch_init): Update.
6421 * cris-tdep.c (cris_gdbarch_init): Update.
6422 * avr-tdep.c (avr_gdbarch_init): Update.
6423 * arm-tdep.c (arm_gdbarch_init): Update.
6424 * sparc-tdep.c (sparc_pop_frame): Update.
6425 * rs6000-tdep.c (rs6000_pop_frame): Update.
6426 * remote.c (init_remote_state): Update.
6427 (remote_prepare_to_store): Update.
6428 * remote-vx.c (vx_prepare_to_store): Update.
6429 * remote-sds.c (sds_fetch_registers): Update.
6430 (sds_prepare_to_store): Update.
6431 * remote-array.c: Update.
6432 * regcache.c (init_legacy_regcache_descr): Update.
6433 (init_regcache_descr): Update.
6434 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6435 (mips_o64_extract_return_value): Update.
6436 * irix5-nat.c (fetch_core_registers): Update.
6437 * irix4-nat.c (fetch_core_registers): Update.
6438 * i386-tdep.h: Update.
6439 * hppa-tdep.c (pa_do_registers_info): Update.
6440 (pa_do_strcat_registers_info): Update.
6441 * cris-tdep.c (cris_register_bytes_ok): Update.
6442 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6443 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6444 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6445 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6446 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6447 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6448 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6449 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6450 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6451 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6452 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6453 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6454 (REGISTER_BYTES_OK): Update.
6455 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6456 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6457
ee2842e2
ILT
64582003-05-16 Ian Lance Taylor <ian@airs.com>
6459
6460 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6461 (vax_print_insn, print_insn_arg): Remove static functions.
6462 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6463 print_insn_vax from opcodes library.
6464 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6465
973177d3
AC
64662003-05-15 Andrew Cagney <cagney@redhat.com>
6467
aaab4dba
AC
6468 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6469 * target.h (memory_breakpoint_from_pc): Delete declaration.
6470 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6471 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6472 * monitor.c (monitor_insert_breakpoint): Use
6473 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6474 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6475 * gdbarch.h, gdbarch.c: Re-generate.
6476 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6477 (sparc_gdbarch_init): Set breakpoint_from_pc to
6478 sparc_breakpoint_from_pc.
6479 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6480 (BREAKPOINT_FROM_PC): Define.
6481 (sparc_breakpoint_from_pc): Declare.
6482 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6483 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6484 (BREAKPOINT_FROM_PC): Define.
6485 (BREAKPOINT): Delete macro.
6486 * target.h: Update comment.
6487 * s390-tdep.c (s390_gdbarch_init): Update comments.
6488 * remote.c: Update comments.
6489 * remote-mips.c: Update comments.
6490 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6491 * mem-break.c: Update comment.
6492 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6493 (ia64_memory_insert_breakpoint): Update.
6494 * config/sparc/tm-sparc.h: Update comment.
6495 * config/pa/tm-hppa64.h: Update comment.
6496 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6497 (rs6000_breakpoint_from_pc): Update.
6498 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6499 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6500 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6501 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6502 (mips_breakpoint_from_pc): Update.
6503 (mips_dump_tdep): Update.
6504
e06963ff
AC
6505 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6506 * minsyms.c (lookup_minimal_symbol): Inline
6507 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6508
973177d3
AC
6509 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6510 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6511 * p-lang.c (pascal_printstr): Ditto.
6512 * objc-lang.c (objc_printstr): Ditto.
6513 * m2-lang.c (m2_printstr): Ditto.
6514 * jv-valprint.c (java_print_value_fields): Ditto.
6515 * f-lang.c (f_printstr): Ditto.
6516 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6517 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6518 for repeat_count_threshold.
6519 * Makefile.in (cp-valprint.o): Update dependencies.
6520
5ea2bd7f 65212003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6522
5ea2bd7f
JJ
6523 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6524 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6525 they start with mov r2,r12. Support skipping over indirect stores
6526 of the input registers. Upon hitting a non-nop branch instruction
6527 or predicated instruction, bail out by setting lim_pc to the current
6528 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6529 beyond our calculated value and we have trust_limit set,
6530 use the lim_pc value.
6531
cc8c88f3
AC
65322003-05-15 Andrew Cagney <cagney@redhat.com>
6533
6534 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6535 generic_find_dummy_frame.
6536 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6537 (deprecated_generic_find_dummy_frame): Update.
6538 (deprecated_read_register_dummy): Update.
6539 * frame.c (deprecated_generic_get_saved_register): Update.
6540
909cd28e
TR
65412003-05-15 Theodore A. Roth <troth@openavr.org>
6542
6543 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6544 (avr_gdbarch_init): Set breakpoint_from_pc method.
6545
b923b08d
AC
65462003-05-15 Andrew Cagney <cagney@redhat.com>
6547
6548 * regcache.c (build_regcache): Set deprecated_register_valid
6549 directly.
6550 (deprecated_grub_regcache_for_register_valid): Delete function.
6551 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6552 declaration.
6553
ae2f03ac 65542003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
6555
6556 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
6557 * symtab.c (lookup_symbol_aux): Delete calls to
6558 lookup_symbol_aux_minsyms.
6559 (lookup_symbol_aux_minsyms): Comment out function and
6560 prototype. Delete lookup by mangled name.
ae2f03ac 6561
18ec9831
KB
65622003-05-14 Kevin Buettner <kevinb@redhat.com>
6563
6564 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6565 correctly indicate an empty stack and ``stack_allocated'' to the
6566 indicate the number of elements initially allocated.
6567 (dwarf_expr_grow_stack): Simplify method for computing new
6568 stack size. Don't loop infinitely if ``stack_len'' is zero.
6569 (execute_stack_op): Move ``ctx->in_reg'' initialization
6570 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6571 be used in conjuction with DW_OP_piece. Revise error message
6572 accordingly.
6573
de18ac1f
TR
65742003-05-14 Theodore A. Roth <troth@openavr.org>
6575
6576 * MAINTAINERS: Update my email address.
6577 * avr-tdep.c: Ditto.
6578
176620f1
EZ
65792003-05-14 Elena Zannoni <ezannoni@redhat.com>
6580
6581 * symtab.h (enum domain_enum): Rename from namespace_enum.
6582 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6583 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6584 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6585 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6586 TYPES_NAMESPACE, METHODS_NAMESPACE.
6587 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6588 (struct symbol, struct partial_symbol): Rename field
6589 'namespace_enum namespace' to 'domain_enum domain'.
6590 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6591 Delete old define kludge for namespace.
6592
6593 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6594 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6595 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6596 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6597 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6598 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6599 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6600 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6601 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6602 occurrences of the above.
6603
b7f31508
ILT
66042003-05-14 Ian Lance Taylor <ian@airs.com>
6605
6606 * Makefile.in (install-only): Use $(SHELL) when running
6607 mkinstalldirs.
6608
2fdbdd39
ILT
66092003-05-13 Ian Lance Taylor <ian@airs.com>
6610
a208d82c
ILT
6611 * MAINTAINERS (write after approval): Add myself.
6612
2fdbdd39
ILT
6613 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6614 second and third arguments.
6615 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6616 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6617
fbd9dcd3
AC
66182003-05-13 Andrew Cagney <cagney@redhat.com>
6619
6620 * defs.h (store_address): Delete declaration.
6621 findvar.c (store_address): Delete function.
6622 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6623 store_unsigned_integer.
6624 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6625 * v850-tdep.c (v850_push_arguments): Ditto.
6626 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6627 * sh-tdep.c (sh64_get_saved_register): Ditto.
6628 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6629 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6630 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6631 (mips_get_saved_register): Ditto.
6632 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6633 (find_func_descr, ia64_push_arguments): Ditto.
6634 * i386-tdep.c (i386_push_arguments): Ditto.
6635 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6636 * frv-tdep.c (frv_push_arguments): Ditto.
6637 * frame.c (legacy_saved_regs_prev_register): Ditto.
6638 (deprecated_generic_get_saved_register): Ditto.
6639 * findvar.c (unsigned_address_to_pointer): Ditto.
6640 * dwarf2read.c (dwarf2_const_value): Ditto.
6641 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6642 * alpha-tdep.c (alpha_push_arguments): Ditto.
6643
6760f9e6
JB
66442003-05-12 J. Brobecker <brobecker@gnat.com>
6645
6646 * NEWS: Mention that the hppa-hpux port has been partially
6647 multiarched (32bit ABIT only, so far).
6648
30e221b4
AC
66492003-05-11 Andrew Cagney <cagney@redhat.com>
6650
6651 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6652 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6653 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6654 sim/testsuite/sim/arm/misaligned2.ms, and
6655 sim/testsuite/sim/arm/misaligned3.ms.
6656 * disasm.h (struct ui_file): Add opaque struct declaration.
6657 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6658 * frame.h (struct ui_file): Ditto.
6659
dea7f9ba
MK
66602003-05-11 Mark Kettenis <kettenis@gnu.org>
6661
6662 * value.h: Pretty print.
6663
01986c48
MK
66642003-05-10 Mark Kettenis <kettenis@gnu.org>
6665
6666 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6667
123a958e
AC
66682003-05-08 Andrew Cagney <cagney@redhat.com>
6669
6670 * regcache.h (max_register_size): Delete declaration.
6671 * regcache.c (max_register_size): Delete function.
6672 (struct regcache_descr): Delete field "max_register_size".
6673 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6674 registers fit in MAX_REGISTER_SIZE.
6675 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6676 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6677 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6678 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6679 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6680 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6681 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6682 * dve3900-rom.c, hppa-tdep.c: Ditto.
6683
eb294659
DC
66842003-05-08 David Carlton <carlton@math.stanford.edu>
6685
6686 * valops.c (push_word): Fix typo.
6687
d9d9c31f
AC
66882003-05-08 Andrew Cagney <cagney@redhat.com>
6689
6690 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6691 * gdbarch.h: Re-generate.
6692 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6693 (legacy_max_register_raw_size): Delete declaration.
6694 * regcache.c (legacy_max_register_raw_size): Delete function.
6695 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6696 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6697 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6698 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6699 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6700 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6701 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6702 * findvar.c, dwarf2cfi.c: Ditto.
6703
22540ece
AC
67042003-05-08 Andrew Cagney <cagney@redhat.com>
6705
6706 * mips-tdep.c (read_signed_register): New function, moved to here
6707 from "regcache.c".
6708 (read_signed_register_pid): Ditto.
6709 * regcache.c (read_signed_register_pid): Delete function, moved to
6710 "mips-tdep.c".
6711 (read_signed_register): Ditto.
6712 * regcache.h (read_signed_register): Delete declaration.
6713 (read_signed_register_pid): Delete declaration.
6714
0c92afe8
AC
67152003-05-08 Andrew Cagney <cagney@redhat.com>
6716
6717 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6718 * gdbarch.h: Re-generate.
6719 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6720 (legacy_max_register_virtual_size): Delete declaration.
6721 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6722 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6723 * tracepoint.c (memrange_sortmerge): Ditto.
6724 * sparc-tdep.c (sparc_print_registers): Ditto.
6725 * regcache.c (legacy_max_register_virtual_size): Delete function.
6726
6037b830
JB
67272002-05-08 J. Brobecker <brobecker@gnat.com>
6728
6729 * fork-child.c (escape_bang_in_quoted_argument): New function.
6730 (fork_inferior): Escape '!' characters in quoted arguments
6731 only when needed.
6732
5d62c8b1
JB
67332003-05-08 J. Brobecker <brobecker@gnat.com>
6734
6735 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6736 the language of the CU is not currently supported by GDB.
6737
20a0e81d
JB
67382003-05-08 J. Brobecker <brobecker@gnat.com>
6739
6740 * defs.h (language): Add language_minimal enum value.
6741 * c-lang.c (minimal_language_defn): New language definition.
6742 (_initialize_c_language): Add the new minimal language to the list
6743 of languages known to GDB.
6744
710ee10a
KB
67452003-05-08 Kevin Buettner <kevinb@redhat.com>
6746
6747 * frame.c (get_frame_type): Don't attempt to lazily initialize
6748 frame's unwinder for legacy frames.
6749
1750fa04
AC
67502003-05-07 Andrew Cagney <cagney@redhat.com>
6751
6752 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6753 and "regcache" parameters.
6754 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6755
ddf9f258 67562003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6757
6758 * dwarf2read.c (dwarf_decode_lines): Only use output of
6759 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6760 the current address.
6761
87767c29
AC
67622003-05-07 Andrew Cagney <cagney@redhat.com>
6763
6764 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6765 code.
6766
5e7b2f39
JB
67672003-05-07 Jim Blandy <jimb@redhat.com>
6768
6769 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6770 'maint info symtabs' and 'maint info psymtabs'.
6771 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6772 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6773 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6774 Declarations updated.
6775 * maint.c (maintenance_list_command): Delete.
6776 (_initialize_maint_cmds): Update calls to add_cmd.
6777 * gdbcmd.h (maintenancelistlist): Delete declaration.
6778 * cli/cli-cmds.c (maintenancelistlist): Delete.
6779 (init_cmd_lists): Don't initialize it.
6780 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6781
f6684c31
AC
67822003-05-07 Andrew Cagney <cagney@redhat.com>
6783
6784 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6785 "regcache".
6786 (d10v_print_registers_info): Update.
6787 (d10v_dmap_register, d10v_imap_register): Delete functions.
6788 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6789 and "imap_register".
6790 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6791 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6792 * arch-utils.c (generic_remote_translate_xfer_address): Add
6793 "regcache" and "gdbarch" parameters.
6794 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6795 parameter. Change class to multi-arch.
6796 * gdbarch.h, gdbarch.c: Re-generate.
6797 * remote.c (remote_xfer_memory): Use
6798 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6799
e4846b08
JJ
68002003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6801
6802 * infrun.c (prev_pc): Move declaration ahead of proceed().
6803 (proceed): Refresh prev_pc value before resuming.
6804 (stop_stepping): Remove code to refresh prev_pc.
6805
6b71b8ac
KW
68062003-05-06 Kris Warkentin <kewarken@qnx.com>
6807
6808 * nto-tdep.c: Removed stray comment.
6809
47979a4b
KW
68102003-05-06 Kris Warkentin <kewarken@qnx.com>
6811
6812 * i386-nto-tdep.c: Fix old K&R function definitions.
6813 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6814 Also change add_show_from_set() call to add_setshow_cmd().
6815 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6816
00905d52
AC
68172003-05-05 Andrew Cagney <cagney@redhat.com>
6818
6819 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6820 (fprint_dummy_frames): New function.
6821 (maintenance_print_dummy_frames): New function.
6822 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6823 * frame.c (fprint_frame_id): Make global.
6824 * frame.h (fprint_frame_id): Declare.
6825 * Makefile.in (dummy-frame.o): Update dependencies.
6826
b1e29e33
AC
68272003-05-05 Andrew Cagney <cagney@redhat.com>
6828
6829 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6830 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6831 SIZEOF_CALL_DUMMY_WORDS.
6832 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6833 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6834 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6835 CALL_DUMMY_BREAKPOINT_OFFSET.
6836 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6837 CALL_DUMMY_START_OFFSET.
6838 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6839 * gdbarch.h, gdbarch.c: Re-generate.
6840 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6841 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6842 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6843 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6844 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6845 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6846 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6847 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6848 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6849 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6850 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6851 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6852 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6853 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6854 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6855
68562003-05-05 Kris Warkentin <kewarken@qnx.com>
6857
6858 * configure.tgt: Add i[3456]86-*-nto*.
6859 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6860 * nto-tdep.c: New file. Neutrino target support routines.
6861 * nto-tdep.h: New file. Neutrino target header.
6862 * config/tm-qnxnto.h: New file.
6863 * config/i386/i386nto.mt: New file.
6864 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6865
0ce3d317
AC
68662003-05-04 Andrew Cagney <cagney@redhat.com>
6867
6868 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6869 (load_infrun_state): Ditto.
6870 (struct thread_info): Drop "prev_func_name" field.
6871 * thread.c (load_infrun_state): Update.
6872 (save_infrun_state): Update.
6873 * infrun.c (prev_func_name): Delete variable.
6874 (init_wait_for_inferior): Do not clear prev_func_name.
6875 (stop_stepping, keep_going, context_switch): Do not swap
6876 prev_func_name.
6877 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6878 instead of PC_IN_SIGTRAMP.
6879
46654a5b
AC
68802003-05-04 Andrew Cagney <cagney@redhat.com>
6881
6882 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6883 REGISTER_BYTE with register_offset_hack.
6884 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6885 that REGISTER_BYTE is consistent with the regcache.
6886 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6887 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6888
14b08c1b
MK
68892003-05-04 Mark Kettenis <kettenis@gnu.org>
6890
04c8243f
MK
6891 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6892 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6893
14b08c1b
MK
6894 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6895
c7a11e01
JB
68962003-05-03 J. Brobecker <brobecker@gnat.com>
6897
6898 From Thierry Schneider <tpschneider1@yahoo.com>
6899 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6900 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6901 (mi-cmd-symbol.o): Add rule.
6902
7043d8dc
AC
69032003-05-03 Andrew Cagney <cagney@redhat.com>
6904
6905 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6906 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6907 * gdbarch.h, gdbarch.c: Re-generate.
6908 * d10v-tdep.c (d10v_push_dummy_code): New function.
6909 (d10v_gdbarch_init): Set push_dummy_code.
6910 * infcall.c (legacy_push_dummy_code): New function.
6911 (generic_push_dummy_code): New function.
6912 (push_dummy_code): New function.
6913 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6914 instead of dummy_addr, to push_dummy_call. Move call to
6915 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6916 switch.
6917 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6918
92bf2b80
AC
69192003-05-03 Andrew Cagney <cagney@redhat.com>
6920
6921 * disasm.h (print_insn): Declare.
6922 * disasm.c (init_gdb_disassemble_info): New function.
6923 (gdb_disassembly): Call init_gdb_disassemble_info.
6924 (gdb_print_insn): New function.
6925 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6926 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6927 * mcore-tdep.c: Include "disasm.h"
6928 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6929 * d10v-tdep.c: Include "disasm.h".
6930 (display_trace): Call gdb_print_insn, instead of print_insn.
6931 (print_insn): Delete function.
6932 * printcmd.c: Include "disasm.h".
6933 (print_insn): Delete function.
6934 (print_formatted): Call gdb_print_insn, instead of print_insn.
6935 * Makefile.in (printcmd.o): Update dependencies.
6936 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6937
27d94c49
AC
69382003-05-02 Andrew Cagney <cagney@redhat.com>
6939
82de1e5b
AC
6940 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6941 PC_REGNUM, re-indent.
6942 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6943 PC_REGNUM isn't set.
6944
27d94c49
AC
6945 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6946 * gdbarch.h, gdbarch.c: Re-generate.
6947 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6948 register_virtual_size, pc_regnum, or register_bytes.
6949 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6950 (d10v_register_type): Use D10V_PC_REGNUM.
6951 (d10v_print_registers_info, d10v_read_pc): Ditto.
6952 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6953 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6954
a9c0dc7f
DC
69552003-05-02 David Carlton <carlton@bactrian.org>
6956
6957 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6958 the name with mstrsave.
6959
e33d66ec
EZ
69602003-05-02 Elena Zannoni <ezannoni@redhat.com>
6961
6962 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6963 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6964 (host_charset_name, target_charset_name): New vars for use by
6965 set/show commands.
6966 (host_charset_enum, target_charset_enum): New enums for set/show
6967 commands.
6968 (set_charset_sfunc, set_host_charset_sfunc,
6969 set_target_charset_sfunc): New functions.
6970 (set_host_charset, set_target_charset): Make static.
6971 (list_charsets, set_host_charset_command,
6972 set_target_charset_command): Delete functions.
6973 (show_charset_command): Rewrite as....
6974 (show_charset): Hook this up with the set/show command mechanism.
6975 (_initialize_charset): Change names of charsets to match the
6976 set/show enums. Use host_charset_name and target_charset_name.
6977 Use set/show mechanism for charset, host-charset, target-charset
6978 commands. Do not make 'show host-charset' and 'show
6979 target-charset' be aliases of 'show charset'.
6980
6981 * charset.h (set_host_charset, set_target_charset): Don't export,
6982 they are not used outside the file.
6983
2b6fd0d8
AC
69842003-05-01 Andrew Cagney <cagney@redhat.com>
6985
6986 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6987 (gdb_disassembly): Make "di" non static, always initialize and
6988 cleanup. Always use dis_asm_read_memory.
6989 (gdb_dis_asm_read_memory): Delete function.
6990
6ae2f580
AC
69912003-05-01 Andrew Cagney <cagney@redhat.com>
6992
6993 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6994 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6995
810ecf9f
AC
69962003-04-30 Andrew Cagney <cagney@redhat.com>
6997
6998 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6999 "tm_print_insn_info".
7000 (TARGET_PRINT_INSN_INFO): Delete macro.
7001 (dis_asm_read_memory): Delete function declaration.
7002 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7003 (tm_print_insn_info): Delete variable definition.
7004 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7005 * gdbarch.h, gdbarch.c: Re-generate.
7006 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7007 "deprecated_tm_print_insn_info".
7008 * mcore-tdep.c (mcore_dump_insn): Ditto.
7009 * mips-tdep.c (mips_gdbarch_init): Ditto.
7010 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7011 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7012 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7013 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7014 instead of TARGET_PRINT_INSN_INFO, add comment.
7015 * s390-tdep.c (s390_get_frame_info): Instead of
7016 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7017 (s390_check_function_end, s390_is_sigreturn): Ditto.
7018 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7019 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7020 * disasm.c: Include "gdbcore.h".
7021 (_initialize_disasm): New function, initialize
7022 "deprecated_tm_print_insn_info".
7023 (deprecated_tm_print_insn_info): New variable.
7024 (dis_asm_read_memory): Moved from "corefile.c", made static.
7025 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7026 * Makefile.in (disasm.o): Update dependencies.
7027
07020390
AC
70282003-04-30 Andrew Cagney <cagney@redhat.com>
7029
7030 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7031
a9fa03de
AF
70322003-04-29 Adam Fedor <fedor@gnu.org>
7033
7034 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7035 * infcall.c (find_function_addr): Make non-static.
7036 * infcall.h (find_function_addr): Declare.
7037 * Makefile.in (eval.o): Update dependencies.
7038
1bae87b9
AF
70392003-04-28 Adam Fedor <fedor@gnu.org>
7040
7041 * symtab.c (symbol_find_demangled_name): Check for and demangle
7042 ObjC symbols.
7043 (symbol_init_demangled_name): Init for language_objc as well.
7044
0ba6dca9
AC
70452003-04-28 Andrew Cagney <cagney@redhat.com>
7046
7047 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7048 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7049 * gdbarch.h, gdbarch.c: Re-generate.
7050 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7051 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7052 * inferior.h (deprecated_read_fp): Rename read_fp.
7053 (generic_target_read_fp): Delete declaration.
7054 * regcache.c (generic_target_read_fp): Delete function.
7055 (deprecated_read_fp): Replace read_fp, use
7056 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7057 * d10v-tdep.c (d10v_read_fp): Delete function.
7058 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7059
7060 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7061 deprecated_target_read_fp to generic_target_read_fp.
7062 * sh-tdep.c (sh_gdbarch_init): Ditto.
7063 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7064 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7065 * frv-tdep.c (frv_gdbarch_init): Ditto.
7066
7067 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7068 deprecated_fp_regnum.
7069 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7070 * vax-tdep.c (vax_gdbarch_init): Ditto.
7071 * v850-tdep.c (v850_gdbarch_init): Ditto.
7072 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7073 * sh-tdep.c (sh_gdbarch_init): Ditto.
7074 * s390-tdep.c (s390_gdbarch_init): Ditto.
7075 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7076 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7077 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7078 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7079 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7080 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7081 * i386-tdep.c (i386_gdbarch_init): Ditto.
7082 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7083 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7084 * frv-tdep.c (frv_gdbarch_init): Ditto.
7085 * cris-tdep.c (cris_gdbarch_init): Ditto.
7086 * avr-tdep.c (avr_gdbarch_init): Ditto.
7087 * arm-tdep.c (arm_gdbarch_init): Ditto.
7088 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7089
7090 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7091 * v850-tdep.c (v850_gdbarch_init): Ditto.
7092 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7093 * sh-tdep.c (sh_gdbarch_init): Ditto.
7094 * s390-tdep.c (s390_gdbarch_init): Ditto.
7095 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7096 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7097 * mips-tdep.c (mips_gdbarch_init): Ditto.
7098 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7099 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7100 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7101 * frv-tdep.c (frv_gdbarch_init): Ditto.
7102 * avr-tdep.c (avr_gdbarch_init): Ditto.
7103 * arm-tdep.c (arm_gdbarch_init): Ditto.
7104
7105 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7106 DEPRECATED_FP_REGNUM.
7107 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7108 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7109 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7110 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7111 (sparc32_register_virtual_type): Ditto.
7112 * sh-tdep.c (sh64_frame_chain): Ditto.
7113 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7114 (sh_nofp_frame_init_saved_regs): Ditto.
7115 (sh64_nofp_frame_init_saved_regs): Ditto.
7116 (sh_fp_frame_init_saved_regs): Ditto.
7117 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7118 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7119 * procfs.c (procfs_fetch_registers): Ditto.
7120 (procfs_store_registers): Ditto.
7121 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7122 (store_inferior_registers, fetch_core_registers): Ditto.
7123 (fetch_kcore_registers, clear_regs): Ditto.
7124 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7125 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7126 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7127 * nlm/i386.c (do_status): Ditto.
7128 * mipsv4-nat.c (supply_gregset): Ditto.
7129 * mips-tdep.c: Ditto for comments.
7130 * mips-nat.c (fetch_inferior_registers): Ditto.
7131 (store_inferior_registers, fetch_core_registers): Ditto.
7132 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7133 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7134 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7135 (i386_do_pop_frame, i386_register_type): Ditto.
7136 * hppa-tdep.c (hppa_frame_chain): Ditto.
7137 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7138 (hppa_pop_frame, hppa_read_fp): Ditto.
7139 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7140 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7141 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7142 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7143 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7144 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7145 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7146 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7147 * blockframe.c: Ditto for comments.
7148 * arch-utils.h: Ditto for comments.
7149 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7150 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7151 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7152 * alpha-tdep.h: Ditto for comments.
7153 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7154 (alpha_cannot_store_register): Ditto.
7155 (alpha_push_dummy_frame): Ditto.
7156 * alpha-nat.c (supply_gregset): Ditto.
7157
7158 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7159 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7160 * config/sparc/tm-sparc.h: Update comment.
7161
7162 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7163 deprecated_read_fp instead of TARGET_READ_FP.
7164 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7165 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7166 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7167 deprecated_read_fp instead of read_fp.
7168 * s390-tdep.c (s390_push_arguments): Ditto.
7169 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7170 * frame.h: Ditto in comments.
7171 * frame.c (legacy_get_prev_frame): Ditto.
7172 * dummy-frame.c (dummy_frame_this_id): Ditto.
7173 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7174
d7a27068
AC
71752003-04-28 Andrew Cagney <cagney@redhat.com>
7176
7177 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7178 * gdbarch.h, gdbarch.c: Re-generate.
7179 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7180 * vax-tdep.c (_initialize_vax_tdep): Update.
7181 * v850-tdep.c (_initialize_v850_tdep): Update.
7182 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7183 * s390-tdep.c (_initialize_s390_tdep): Update.
7184 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7185 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7186 * mips-tdep.c (_initialize_mips_tdep): Update.
7187 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7188 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7189 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7190 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7191 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7192 * frv-tdep.c (_initialize_frv_tdep): Update.
7193 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7194 (_initialize_cris_tdep): Update.
7195 * arch-utils.c (legacy_print_insn): Update.
7196 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7197
d2630e69
AF
71982003-04-26 Adam Fedor <fedor@gnu.org>
7199
7200 * linespec.c (decode_objc): New function to decode ObjC calls
7201 (decode_line_1): Check for ObjC calls (using decode_objc)
7202 * Makefile (linespec.o): Update dependencies.
7203
3086aeae
DJ
72042003-04-26 Daniel Jacobowitz <drow@mvista.com>
7205
7206 * breakpoint.h (struct breakpoint_ops): New.
7207 (struct breakpoint): Add ops member.
7208
7209 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7210 (mention): Use new breakpoint ops member.
7211 (set_raw_breakpoint): Initialize ops field to NULL.
7212 (print_exception_catchpoint, print_one_exception_catchpoint)
7213 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7214 (gnu_v3_exception_catchpoint_ops): New.
7215 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7216
1fbec6c3
AF
72172003-04-25 Adam Fedor <fedor@gnu.org>
7218
7219 * Makefile.in (COMMON_OBS): Add objc-lang.o
7220
0ef21242
AC
72212003-04-25 Andrew Cagney <cagney@redhat.com>
7222
7223 * d10v-tdep.c (print_insn): Delete function.
7224 (display_trace): Use TARGET_PRINT_INSN.
7225 (_initialize_d10v_tdep): Do not set tm_print_insn.
7226 (d10v_gdbarch_init): Set print_insn.
7227
f75493ed
AC
72282003-04-25 Andrew Cagney <cagney@redhat.com>
7229
7230 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7231 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7232 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7233 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7234 (nr_dmap_regs, a0_regnum): ... new functions.
7235 (d10v_print_registers_info): Use a0_regnum, use register_size.
7236 (d10v_register_byte): Delete function.
7237 (d10v_register_raw_size): Delete function.
7238 (d10v_register_type): Use a0_regnum.
7239 (d10v_print_registers_info): Use a0_regnum.
7240 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7241 (d10v_gdbarch_init): Do not set register_byte or
7242 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7243 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7244 extract_address.
7245 (trace_command): Use XCALLOC.
7246 (print_insn): Delete reference to tm_print_insn.
7247 (saved_regs_unwinder): Use store_unsigned_integer instead of
7248 store_address.
7249 * frame.h (FRAME_OBSTACK_CALLOC): Define
7250
2202b100
DC
72512003-04-25 David Carlton <carlton@bactrian.org>
7252
7253 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7254
4e45ca2e
AF
72552003-04-24 Adam Fedor <fedor@gnu.org>
7256
7257 * objc-lang.c: Include "valprint.h"
7258 * Makefile.in (objc-lang.o): Update dependencies.
7259
93de3e7f
AF
72602003-04-24 Adam Fedor <fedor@gnu.org>
7261
8ffd9b1b 7262 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7263 architecture dependant compilation and mark as unimplemented
7264 (until they get put in the gdbarch vector).
7265
0f20eeea
DC
72662003-04-23 David Carlton <carlton@bactrian.org>
7267
7268 * cp-support.c (cp_find_first_component): Accept 'operator' in
7269 more locations.
7270
74cfe982
AC
72712003-04-23 Andrew Cagney <cagney@redhat.com>
7272
7273 * infcall.c (call_function_by_hand): Eliminate redundant
7274 indentation. Move "saved_async" and "old_cleanups" to where they
7275 are needed.
8ffd9b1b 7276
52557533
AC
72772003-04-23 Andrew Cagney <cagney@redhat.com>
7278
7279 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7280 and "buffer". Move the "name" code to where it is needed.
7281
158775de
AC
72822003-04-23 Andrew Cagney <cagney@redhat.com>
7283
7284 * infcall.c (call_function_by_hand): Move variables "start_sp",
7285 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7286 code to ON_STACK switch branch.
8ffd9b1b 7287
ebc7896c
AC
72882003-04-23 Andrew Cagney <cagney@redhat.com>
7289
7290 * infcall.c (call_function_by_hand): Make declaration of "i",
7291 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7292 lint.
7293
d727590f
AC
72942003-04-23 Andrew Cagney <cagney@redhat.com>
7295
7296 * infcall.c (call_function_by_hand): Delete variable
7297 "n_method_args". Localize "param_type"'s declaration to the loop
7298 that it is used. Reinstate code assigning to said variable -
7299 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7300 Rationalize code using "param_type".
7301
d585e13a
AC
73022003-04-22 Andrew Cagney <cagney@redhat.com>
7303
7304 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7305 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7306 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7307 to DEPRECATED_PUSH_RETURN_ADDRESS.
7308
051caad9
KB
73092003-04-22 Kevin Buettner <kevinb@redhat.com>
7310
7311 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7312 on the DWARF2 register number prior to fetching a register.
7313
77296879
JB
73142003-04-22 J. Brobecker <brobecker@gnat.com>
7315
7316 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7317 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7318 this macro was always set to 0.
77296879
JB
7319 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7320 considering the fact that this macro was always set to 0.
7321 * hppa-tdep.h (hppa_store_return_value): Likewise.
7322 (hppa_extract_return_value): Likewise.
7323
4252f1df
JB
73242003-04-22 J. Brobecker <brobecker@gnat.com>
7325
7326 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7327 the hppa-pro target only.
7328
14604c6b
JB
73292003-04-21 J. Brobecker <brobecker@gnat.com>
7330
7331 Ongoing multi-arch conversion effort for HP/UX:
7332 * config/pa/tm-hppa.h: Move all macro that are no longer
7333 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7334 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7335
77eb01d1
JB
73362003-04-21 J. Brobecker <brobecker@gnat.com>
7337
7338 * config/pa/tm-hppa.h: Obsolete a section that was only used
7339 for hppa-pro.
7340
61995b3b
JB
73412003-04-21 J. Brobecker <brobecker@gnat.com>
7342
7343 Ongoing multi-arch conversion for HP/UX.
7344 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7345 if already defined (allows hppa64 to stay non-multiarched for now).
7346 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7347
4aa79dcc
AC
73482003-04-21 Andrew Cagney <cagney@redhat.com>
7349
7350 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7351
0f751ff2
AC
73522003-04-21 Andrew Cagney <cagney@redhat.com>
7353
7354 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7355 "i386_num_mmx_regs".
7356
04714b91
AC
73572003-04-21 Andrew Cagney <cagney@redhat.com>
7358
7359 * infcall.c: New file.
7360 * infcall.h: New file.
7361 * valarith.c: Include "infcall.h".
7362 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7363 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7364 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7365 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7366 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7367 (SFILES): Add "infcall.c"
7368 (COMMON_OBS): Add "infcall.o".
7369 (infcall.o): Specify dependencies.
7370 * value.h (call_function_by_hand): Delete declaration.
7371 * inferior.h (run_stack_dummy): Delete declaration.
7372 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7373 (run_stack_dummy): Move to "infcall.c", merged into
7374 call_function_by_hand.
7375 * valops.c (call_function_by_hand): Moved to "infcall.c".
7376 (find_function_addr, value_arg_coerce): Ditto.
7377 (unwindonsignal_p, coerce_float_to_double): Ditto.
7378 (_initialize_valops): Move "set/show coerce-float-to-double", and
7379 "set/show unwindonsignal" commands to "infcall.c".
7380 * v850-tdep.c, target.h: Update comments.
7381 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7382 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7383 (sh64_init_extra_frame_info): Update comments.
7384 * mn10300-tdep.c: Update comments.
7385 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7386 * config/sparc/tm-sparc.h: Update comments.
7387 * breakpoint.h: Update comments.
7388 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7389 * arm-tdep.c: Update comment.
7390
f9d3c2a8
MK
73912003-04-19 Mark Kettenis <kettenis@gnu.org>
7392
c40e1eab
MK
7393 * i386-tdep.c (i386_num_register_names): New variable.
7394 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7395 (MM0_REGNUM): Remove redundant parentheses in define.
7396 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7397 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7398 i386_mxcsr_regnum_p): Remove redundant parentheses.
7399 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7400
94ea66b3
MK
7401 * i386-tdep.c (i386_extract_return_value,
7402 i386_store_return_value): Correct check for availability of
7403 floating-point registers.
7404
54299a1d
MK
7405 * i386-tdep.c (i386_frame_num_args): Remove function.
7406 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7407
c86c27af
MK
7408 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7409 mmx_regnum_to_fp_regnum. Adjust all callers.
7410
f9d3c2a8
MK
7411 * i386-tdep.c (i386_get_longjmp_target): Use
7412 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7413 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7414 extract_address.
7415
94ba74a9
MK
74162003-04-19 Mark Kettenis <kettenis@gnu.org>
7417
7418 * core-regset.c: Update comments to reflect reality. Re-order
7419 includes.
7420 (fetch_core_registers): Use switch instead of if. Remove
7421 redundant prototype.
7422
4074e13c
JB
74232003-04-18 Jim Blandy <jimb@redhat.com>
7424
7425 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7426 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7427
e3ab4aba
RH
74282003-04-17 Richard Henderson <rth@redhat.com>
7429
7430 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7431
627bf7c1
EZ
74322003-04-17 Michael Snyder <msnyder@redhat.com>
7433 Karen Bennet <bennet@redhat.com>
7434
7435 Committed by Elena Zannoni <ezannoni@redhat.com>
7436 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7437
514621a9
EZ
74382003-04-17 Elena Zannoni <ezannoni@redhat.com>
7439
7440 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7441 value if the return type is void.
514621a9 7442
b4acd559
JJ
74432003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7444
7445 * thread-db.c: Reindented.
8ffd9b1b 7446
530b167e 74472003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7448
7449 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7450 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7451 as types.
7452
0a48e7e8
MS
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
8ffd9b1b 7476
ab9fe00e
KB
74772003-04-16 Kevin Buettner <kevinb@redhat.com>
7478
610a3745 7479 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7480 the size of ``long double'' to 16, instead of 8.
7481
e64a344c
MK
74822003-04-16 Mark Kettenis <kettenis@gnu.org>
7483
7484 * i386-linux-nat.c: Add some whitespace to make things more
7485 readable.
7486 (fetch_register, store_register, fetch_inferior_registers,
7487 store_inferior_registers): Get rid of assignment in if-statement.
7488 (store_register): Fix typo in error message.
7489
25d41031
AC
74902003-04-16 Andrew Cagney <cagney@redhat.com>
7491
7492 * utils.c (xmmalloc): Always allocate something, matches
7493 libiberty/xmalloc's semantics.
7494 (xmrealloc, xmcalloc): Ditto.
7495
c50901fd
AC
74962003-04-16 Andrew Cagney <cagney@redhat.com>
7497
7498 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7499 update comments.
7500 (get_frame_type): Initialize unwind and type when needed.
7501 (get_frame_id, frame_register_unwind): Ditto.
7502
f81824a9
AC
75032003-04-16 Andrew Cagney <cagney@redhat.com>
7504
7505 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7506 obsolete.
7507 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7508 * sparcl-stub.c: Obsolete file.
7509 * config/sparc/tm-sparclet.h: Obsolete file.
7510 * sparclet-stub.c: Obsolete file.
7511 * sparclet-rom.c: Obsolete file.
7512 * sparcl-tdep.c: Obsolete file.
7513 * config/sparc/tm-sparclite.h: Obsolete file.
7514 * config/sparc/sparclite.mt: Obsolete file.
7515 * config/sparc/sparclet.mt: Obsolete file.
7516 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7517 sparc86x-*-* obsolete.
7518
9219021c
DC
75192003-04-15 David Carlton <carlton@math.stanford.edu>
7520
7521 * Makefile.in (SFILES): Add cp-namespace.c.
7522 (COMMON_OBS): Add cp-namespace.o.
7523 (block.o): Depend on gdb_obstack_h and cp_support_h.
7524 (buildsym.o): Depend on cp_support_h.
7525 (cp-namespace.o): New.
7526 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7527 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7528 (dwarf2read.o): Depend on cp_support_h.
7529 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7530 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7531 processing_current_namespace.
7532 (read_namespace): Update processing_current_namespace; check for
7533 anonymous namespaces.
7534 (dwarf2_name): New function.
7535 (dwarf2_extension): Ditto.
7536 * cp-support.h: Update copyright, contributors.
7537 Add inclusion guards.
7538 Add opaque declaration for structs obstack, block, symbol.
7539 (struct using_direct): New struct.
7540 Add declarations for cp_find_first_component,
7541 cp_entire_prefix_len, processing_has_namespace_info,
7542 processing_current_namespace, cp_is_anonymous,
7543 cp_add_using_directive, cp_initialize_namespace,
7544 cp_finalize_namespace, cp_set_block_scope,
7545 cp_scan_for_anonymous_namespaces.
7546 * cp-namespace.c: New file.
7547 * cp-support.c: Update copyright.
7548 Include ctype.h, gdb_assert.h, gdbcmd.h.
7549 New variable maint_cplus_cmd_list.
7550 (cp_find_first_component): New function.
7551 (cp_entire_prefix_len, maint_cplus_command)
7552 (first_component_command, _initialize_cp_support): Ditto.
7553 * buildsym.c: Include cp-support.h.
7554 New variable using_list.
7555 (add_symbol_to_list): Check for anonymous namespaces.
7556 (finish_block): Set block's scope.
7557 (start_symtab): Initialize C++ namespace support.
7558 (end_symtab): Finalize C++ namespace support.
7559 * block.h: Add opaque declarations for structs
7560 block_namespace_info, using_direct, and obstack.
7561 Add declarations for block_set_scope and block_set_using.
7562 (struct block): Add 'language_specific' member.
7563 (BLOCK_NAMESPACE): New macro.
7564 * block.c: Include gdb_obstack.h and cp-support.h.
7565 (struct block_namespace_info): New struct.
7566 (block_set_scope): New function.
7567 (block_set_using, block_initialize_namespace): Ditto.
7568
d5a921c9
KB
75692003-04-14 Kevin Buettner <kevinb@redhat.com>
7570
7571 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7572 (locate_base): Return early if there aren't any link map offsets.
7573 (svr4_solib_create_inferior_hook): Warn if shared library support
7574 is unavailable.
7575
d2a52b27
DC
75762003-04-14 David Carlton <carlton@math.stanford.edu>
7577
7578 * symtab.c (symbol_set_names): Add prefix when storing Java names
7579 in hash table. Fix for PR java/1039.
7580
980cae7a
DC
75812003-04-14 David Carlton <carlton@math.stanford.edu>
7582
7583 * symtab.c (symbol_set_names): Rename 'name' arg to
7584 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7585 * symtab.h: Change 'name' argument in declaration of
7586 symbol_set_names to 'linkage_name'.
7587 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7588
e227b13c
AC
75892003-04-14 Andrew Cagney <cagney@redhat.com>
7590
7591 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7592 return the fully sign-extended register value.
7593 (get_frame_pointer): Ditto.
7594 (mips_pop_frame): Initialize "proc_desc" after checking for a
7595 dummy frame.
7596
36712a20
AC
75972003-04-14 Andrew Cagney <cagney@redhat.com>
7598
7599 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7600 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7601 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7602 (mips_push_register): Delete function.
7603 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7604 PUSH_FP_REGNUM.
7605
44ea7b70
JB
76062003-04-14 Jim Blandy <jimb@redhat.com>
7607
7608 * symmisc.c: #include "gdb_regex.h".
7609 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7610 functions.
7611 * maint.c (maintenance_list_command): New function.
7612 (_initialize_maint_cmds): Register the above as commands.
7613 * symtab.h (maintenance_list_symtabs,
7614 maintenance_list_psymtabs): New declarations.
7615 * cli/cli-cmds.c (maintenancelistlist): New variable.
7616 (init_cmd_lists): Initialize it.
7617 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7618 * gdbcmd.h (maintenancelistlist): New declaration.
7619 * Makefile.in (symmisc.o): Update dependencies.
7620
2d0c7962
EZ
76212003-04-14 Elena Zannoni <ezannoni@redhat.com>
7622
7623 * s390-nat.c: Include asm/types.h for addr_t.
7624
1947a811
CV
76252003-04-14 Corinna Vinschen <vinschen@redhat.com>
7626
7627 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7628 actually incoming type.
7629
adb616d7
AC
76302003-04-13 Andrew Cagney <cagney@redhat.com>
7631
7632 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7633 get_next_frame and get_frame_saved_regs.
7634
9b5e151c
AC
76352003-04-13 Andrew Cagney <cagney@redhat.com>
7636
7637 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7638 of gdbarch_num_regs.
7639
ef6e7e13
AC
76402003-04-13 Andrew Cagney <cagney@redhat.com>
7641
7642 * frame.h: Mention what replaced what in "struct frame_info".
7643 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7644 deprecated_update_frame_base_hack and
7645 deprecated_update_frame_pc_hack.
7646 * hppa-tdep.c: Ditto.
7647
61fbb938
DJ
76482003-04-13 Daniel Jacobowitz <drow@mvista.com>
7649
7650 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7651 to read_reg and update its comment. Remove regnum member.
7652 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7653 Don't call read_reg when setting in_reg. Call read_reg to get
7654 the frame base if it's in a register. Return the register number
7655 on the stack instead of in the context. Remove extra arguments
7656 to read_reg.
7657 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7658 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7659 the register number on the expression stack.
7660 (needs_frame_read_reg): Remove extra arguments.
7661
0d53c4c4
DJ
76622003-04-13 Daniel Jacobowitz <drow@mvista.com>
7663
7664 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7665 made non-static.
7666 (execute_stack_op): All callers updated.
7667 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7668 * dwarf2loc.c (find_location_expression): New function.
7669 (dwarf_expr_frame_base): Call it.
7670 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7671 (dwarf2_tracepoint_var_ref): New function, broken out from
7672 locexpr_tracepoint_var_ref.
7673 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7674 Make static.
7675 (loclist_read_variable, loclist_read_needs_frame): New functions.
7676 (loclist_describe_location, loclist_tracepoint_var_ref): New
7677 functions.
7678 (dwarf2_loclist_funcs): New struct location_funcs.
7679 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7680 (struct dwarf2_locexpr_baton): Add comments.
7681 (dwarf2_loclist_funcs): New extern.
7682 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7683 base_address and base_known.
7684 (dwarf_loc_buffer): New variable.
7685 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7686 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7687 (dwarf2_has_info): Initialize dwarf_loc_offset.
7688 (dwarf2_build_psymtabs): Read in .debug_loc.
7689 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7690 DWARF_LOC_SIZE.
7691 (psymtab_to_symtab_1): Likewise. Move base address calculation
7692 here, from...
7693 (dwarf2_get_pc_bounds): ... here. Use the base address from
7694 cu_header.
7695 (dwarf2_symbol_mark_computed): Handle location lists.
7696
6aca59a3
DJ
76972003-04-13 Daniel Jacobowitz <drow@mvista.com>
7698
7699 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7700 if the linkage name demangled successfully.
7701
aca1fcd0
MK
77022003-04-13 Mark Kettenis <kettenis@gnu.org>
7703
97095916
MK
7704 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7705 disassmbly_flavour): Removed.
7706
aca1fcd0
MK
7707 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7708
562a961f
MK
77092003-04-13 Mark Kettenis <kettenis@gnu.org>
7710
7711 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7712
bd013d54
AC
77132003-04-12 Andrew Cagney <cagney@redhat.com>
7714
7715 * frame.h (struct frame_info): Move definition from here ...
7716 * frame.c (struct frame_info): ... to here.
7717
167ef8b1
AC
77182003-04-12 Andrew Cagney <cagney@redhat.com>
7719
7720 * gdbthread.h (save_infrun_state): Delete parameter
7721 "prev_func_start".
7722 (struct thread_info): Delete field "prev_func_start".
7723 (load_infrun_state): Ditto.
7724 * thread.c (load_infrun_state, save_infrun_state): Update.
7725 * infrun.c (prev_func_start): Delete variable.
7726 (context_switch, init_wait_for_inferior): Update.
7727 (stop_stepping, keep_going): Update.
7728
da3331ec
AC
77292003-04-12 Andrew Cagney <cagney@redhat.com>
7730
7731 * gdbarch.sh: Add missing opaque declarations.
7732 * gdbarch.h: Regnerate.
7733 * symtab.h: Add missing opaque declarations.
7734 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7735 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7736 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7737 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7738 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7739 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7740 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7741 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7742 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7743 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7744 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7745 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7746 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7747
18adea3f
AC
77482003-04-11 Andrew Cagney <cagney@redhat.com>
7749
7750 * frame.c (get_frame_id): Return this frame's "id".
7751 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7752 function start.
7753 (legacy_saved_regs_this_id): Replace function body with
7754 internal-error.
7755 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7756 FRAME_OBSTACK_ZALLOC.
7757 (create_new_frame): Mark the frame ID as valid.
7758
2252e863
AO
77592003-04-11 Alexandre Oliva <aoliva@redhat.com>
7760
7761 * Makefile.in (libbfd_h): Added missing setting.
7762 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7763 according to the selected ABI.
7764
a8245ab8
JJ
77652003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7766
7767 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7768
6913c89a
AC
77692003-04-11 Andrew Cagney <cagney@redhat.com>
7770
7771 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7772 SAVED_PC_AFTER_CALL.
7773 * gdbarch.h, gdbarch.c: Regenerate.
7774 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7775 * x86-64-tdep.c (x86_64_init_abi): Update.
7776 * vax-tdep.c (vax_gdbarch_init): Update.
7777 * v850-tdep.c (v850_gdbarch_init): Update.
7778 * sparc-tdep.c (sparc_gdbarch_init): Update.
7779 * sh-tdep.c (sh_gdbarch_init): Update.
7780 * s390-tdep.c (s390_gdbarch_init): Update.
7781 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7782 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7783 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7784 * mips-tdep.c (mips_gdbarch_init): Update.
7785 * mcore-tdep.c (mcore_gdbarch_init): Update.
7786 * m68k-tdep.c (m68k_gdbarch_init): Update.
7787 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7788 * ia64-tdep.c (ia64_gdbarch_init): Update.
7789 (ia64_saved_pc_after_call): Update declaration.
7790 * i386ly-tdep.c (i386lynx_init_abi): Update.
7791 * i386-tdep.c (i386_gdbarch_init): Update.
7792 * hppa-tdep.c (hppa_gdbarch_init): Update.
7793 * h8300-tdep.c (h8300_gdbarch_init): Update.
7794 * frv-tdep.c (frv_gdbarch_init): Update.
7795 * cris-tdep.c (cris_gdbarch_init): Update.
7796 * avr-tdep.c (avr_gdbarch_init): Update.
7797 * arm-tdep.c (arm_gdbarch_init): Update.
7798 * alpha-tdep.c (alpha_gdbarch_init): Update.
7799 * ns32knbsd-nat.c (frame_num_args): Update.
7800 * ns32k-tdep.c (umax_frame_num_args): Update.
7801 * mips-tdep.c (mips_init_frame_pc_first): Update.
7802 * infrun.c (step_over_function): Update.
7803 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7804 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7805 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7806 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7807 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7808 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7809 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7810 * arch-utils.c (init_frame_pc_default): Update.
7811 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7812 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7813 declaration.
8ffd9b1b 7814
38edeab8
AC
78152003-04-11 Andrew Cagney <cagney@redhat.com>
7816
7817 * i387-tdep.c: Update copyright.
7818 (i387_to_double): Delete function.
7819 (double_to_i387): Delete function.
7820
81f8a206
AC
78212003-04-10 Andrew Cagney <cagney@redhat.com>
7822
7823 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7824 frame's function's address. Simplify.
7825 (d10v_frame_unwind_cache): Check that the frame's function is
7826 non-zero.
7827
6e691f7a
JB
78282003-04-10 Jim Blandy <jimb@redhat.com>
7829
7830 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7831 call to set_gdbarch_deprecated_push_arguments.
7832
7f78e237
AC
78332003-04-10 Andrew Cagney <cagney@redhat.com>
7834
7835 * frame.c (fprint_frame_id): New function.
7836 (fprint_frame_type, fprint_frame): New function.
7837 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7838 (create_sentinel_frame, get_frame_id): Ditto.
7839 (frame_id_p, frame_id_eq): Ditto.
7840 (frame_id_inner, create_new_frame): Ditto.
7841 (legacy_get_prev_frame, get_prev_frame): Ditto.
7842 (deprecated_update_frame_pc_hack): Ditto.
7843 (frame_register_unwind): Ditto.
7844 (deprecated_update_frame_base_hack): Ditto.
7845
f870b49b
CV
78462003-04-10 Corinna Vinschen <vinschen@redhat.com>
7847
7848 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7849 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7850 frame_chain function.
7851 * Makefile.in: Add dependencies due to above change.
7852
7c86889b
CV
78532003-04-10 Corinna Vinschen <vinschen@redhat.com>
7854
7855 * blockframe.c (legacy_frame_chain_valid): Move call to
7856 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7857 inside_entry_file.
7858
d0a55772
AC
78592003-04-09 Andrew Cagney <cagney@redhat.com>
7860
7861 * frame.h (struct frame_id): Replace "pc" and "base" with
7862 "stack_addr" and "code_addr". Update comments.
7863 (frame_id_build): Update parameter names and comment.
7864 (struct frame_info): Replace "id_p" and "id" with "this_id".
7865 * dummy-frame.c (dummy_frame_this_id): Update.
7866 * breakpoint.c (print_one_breakpoint): Update.
7867 * frame.c (get_frame_id): Update.
7868 (get_frame_base, frame_id_build): Update.
7869 (create_sentinel_frame, legacy_get_prev_frame): Update.
7870 (deprecated_update_frame_base_hack): Update.
7871 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7872 (frame_id_inner): Ditto.
7873
ac16bf07
AC
78742003-04-09 Andrew Cagney <cagney@redhat.com>
7875
7876 * defs.h (gdb_print_host_address): Make "addr" parameter a
7877 pointer constant.
7878 * utils.c (gdb_print_host_address): Update.
7879
366cfc9e
KB
78802003-04-09 Kevin Buettner <kevinb@redhat.com>
7881
7882 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7883 register number for R0 is 0.
7884
cd983b5c
JB
78852003-04-09 J. Brobecker <brobecker@gnat.com>
7886
7887 * frame.h (struct gdbarch): Add opaque structure definition
7888 to avoid a compilation warning on LynxOS 4.0.
7889
d1340264
AC
78902003-04-09 Andrew Cagney <cagney@redhat.com>
7891
7892 * frame.h (struct frame_info): Delete field "pc". Replace
7893 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7894 structure.
7895 * frame.c (frame_pc_unwind): Update.
7896 (create_sentinel_frame): Do not set "pc".
7897 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7898 (get_frame_pc): Call frame_pc_unwind.
7899 (deprecated_update_frame_pc_hack): Update.
7900 (create_new_frame): Use "pc" not "->pc".
7901
90a6fffb
AC
79022003-04-09 Andrew Cagney <cagney@redhat.com>
7903
7904 * frame.c (get_frame_id): Eliminate code updating "frame".
7905 (legacy_get_prev_frame): Ditto.
7906 (get_frame_base): Return id.base directly.
7907 (deprecated_update_frame_base_hack): Update "id.base".
7908 * frame.h (struct frame_info): Delete field "frame".
7909
2fbce691
AC
79102003-04-09 Andrew Cagney <cagney@redhat.com>
7911
7912 * NEWS: Mention that the "Sequent family" is obsolete.
7913 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7914 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7915 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7916 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7917 * config/i386/tm-ptx4.h: Obsolete file.
7918 * config/i386/tm-ptx.h: Obsolete file.
7919 * symm-tdep.c: Obsolete file.
7920 * config/i386/symmetry.mt: Obsolete file.
7921 * config/i386/tm-symmetry.h: Obsolete file.
7922 * symm-nat.c: Obsolete file.
7923 * config/i386/nm-symmetry.h: Obsolete file.
7924 * config/i386/xm-symmetry.h: Obsolete file.
7925 * config/i386/symmetry.mh: Obsolete file.
7926 * config/i386/nm-ptx4.h: Obsolete file.
7927 * config/i386/ptx4.mh: Obsolete file.
7928 * config/i386/ptx.mt: Obsolete file.
7929 * config/i386/ptx.mh: Obsolete file.
7930 * config/i386/xm-ptx4.h: Obsolete file.
7931 * config/i386/xm-ptx.h: Obsolete file.
7932
78c43945
AC
79332003-04-09 Andrew Cagney <cagney@redhat.com>
7934
7935 Obsolete mips*-*-mach3*.
7936 * NEWS: Mention that mips*-*-mach3* is obsolete.
7937 * m3-nat.c: Obsolete file.
7938 * config/nm-m3.h: Obsolete file.
7939 * config/mips/tm-mipsm3.h: Obsolete file.
7940 * config/mips/mipsm3.mt: Obsolete file.
7941 * config/mips/mipsm3.mh: Obsolete file.
7942 * config/mips/xm-mipsm3.h: Obsolete file.
7943 * mipsm3-nat.c: Obsolete file.
7944 * configure.host: Obsolete mips-dec-mach3*.
7945 * configure.tgt: Obsolete mips*-*-mach3*.
7946
f1908289
AC
79472003-04-09 Andrew Cagney <cagney@redhat.com>
7948
7949 * doublest.h: Update copyright.
7950 (deprecated_store_floating, deprecated_extract_floating): Rename
7951 store_floating and extract_floating. Update comments.
7952 * doublest.c: Update copyright.
7953 (extract_floating_by_length): Replace extract_floating.
7954 (store_floating_by_length): Replace store_floating.
7955 (deprecated_extract_floating): New function.
7956 (deprecated_store_floating): New function.
7957 (extract_typed_floating): Call extract_floating_by_length.
7958 (store_typed_floating): Call store_floating_by_length.
7959 * x86-64-tdep.c (x86_64_store_return_value): Update.
7960 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7961 (sh64_extract_return_value): Update.
7962 (sh_sh4_register_convert_to_virtual): Update.
7963 (sh_sh64_register_convert_to_virtual): Update.
7964 (sh_sh4_register_convert_to_raw): Update.
7965 (sh_sh64_register_convert_to_raw): Update.
7966 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7967 (rs6000_register_convert_to_raw): Update.
7968 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7969 (ia64_register_convert_to_raw): Update.
7970 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7971 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7972 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7973 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7974 (alpha_register_convert_to_raw): Update.
7975
4443bd83
AC
79762003-04-08 Andrew Cagney <cagney@redhat.com>
7977
7978 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7979 * gdbarch.h, gdbarch.c: Re-generate.
7980 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7981 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7982 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7983 conditionally, use frame_pc_unwind as an alternative. Add
7984 comments.
7985 * arch-utils.c (init_frame_pc_default): Only call
7986 SAVED_PC_AFTER_CALL when available.
7987
c0236d92
EZ
79882003-04-08 Elena Zannoni <ezannoni@redhat.com>
7989
fbe586ae 7990 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7991 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7992 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7993 (start_remote): Ditto.
7994 (handle_inferior_event): Ditto.
7995 (save_inferior_status): Ditto.
7996 (restore_inferior_status): Ditto.
7997 * infcmd.c (attach_command): Ditto.
7998 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7999 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8000 * alpha-tdep.c (heuristic_proc_start): Ditto.
8001 * mips-tdep.c (heuristic_proc_start): Ditto.
8002 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8003 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8004 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8005 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8006 * remote-vx.c (vx_create_inferior): Ditto.
8007
80082003-04-08 Elena Zannoni <ezannoni@redhat.com>
8009
8010 * infrun.c (stop_soon_quietly): Make it an enum, to better
8011 override the default behavior of handle_inferior_event.
8012 (clear_proceed_status): Update uses of stop_soon_quietly to
8013 reflect that it is now an enum.
8014 (start_remote): Ditto.
8015 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8016 is set to handle the new GNU/Linux kernel behavior for
8017 attach/sigstop. Update uses of stop_soon_quietly.
8018 * inferior.h (enum stop_kind): New enum.
8019 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8020 Reset normal handle_inferior_event behavior, afterwards.
8021 * fork-child.c (startup_inferior): Update.
8022 * alpha-tdep.c (heuristic_proc_start): Update.
8023 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8024 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8025 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8026 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8027 * remote-vx.c (vx_create_inferior): Update.
8028 * mips-tdep.c (heuristic_proc_start): Update.
8029
1211bce3
EZ
80302003-04-07 Elena Zannoni <ezannoni@redhat.com>
8031
8032 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8033 be freed more than once, causing wild memory corruptions.
1211bce3 8034 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8035 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8036 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8037 with the "core" target.
1211bce3 8038
f0ef6b29
KB
80392003-04-07 Kevin Buettner <kevinb@redhat.com>
8040
8041 * mips-tdep.c (mips_print_fp_register): New function, created from
8042 do_fp_register_row(). Registers are now (also) printed as hex.
8043 Only one register is printed per row.
8044 (mips_print_register, do_fp_register_row): Print floating point
8045 registers with mips_print_fp_register().
8046
8cf71652
AC
80472003-04-06 Andrew Cagney <cagney@redhat.com>
8048
5e488a7b
AC
8049 * valprint.h (inspect_it): Add extern declaration.
8050 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8051 (selectors_info, classes_info): Ditto.
8052 (find_objc_msgcall): Fix indentation.
8053 (objc_printstr): Delete extern declarations.
8054
8cf71652
AC
8055 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8056
e6ba3bc9
AC
80572003-04-06 Andrew Cagney <cagney@redhat.com>
8058
8059 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8060 Update comment.
8061 * frame.c (legacy_saved_regs_this_id): Update.
8062 (legacy_get_prev_frame): Update.
8063 * xstormy16-tdep.c: Update comment.
8064 * sparc-tdep.c (sparc_frame_chain): Update comment.
8065 * blockframe.c (legacy_frame_chain_valid): Update.
8066
55e1d7e7
AC
80672003-04-06 Andrew Cagney <cagney@redhat.com>
8068
996179ee
AC
8069 * valprint.c (val_print_type_code_int): Delete #ifdef
8070 PRINT_TYPELESS_INTEGER code.
8071
55e1d7e7
AC
8072 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8073 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8074 multi-arch definition.
8075 * gdbarch.h: Re-generate.
8076
43bd9a9e
AC
80772003-04-05 Andrew Cagney <cagney@redhat.com>
8078
8079 Eliminate FRAME_FIND_SAVED_REGS.
8080 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8081 Change FSR parameter to a pointer.
8082 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8083 Assume FSR parameter is a pointer.
8084 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8085 Make fsr a pointer.
8086 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8087 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8088 saved_regs a pointer.
8089 (hppa_frame_saved_pc): Ditto.
8090 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8091 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8092 pointer.
8093 (restore_pc_queue): Make fsr a pointer.
8094 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8095 (hppa_frame_chain): Make saved_regs a pointer, call
8096 hppa_frame_init_saved_regs.
8097 * sparc-tdep.c: Include "gdb_assert.h".
8098 (sparc_frame_find_saved_regs): Replace internal_error with
8099 gdb_assert.
8100 * remote-vxsparc.c (vx_read_register): Delete reference to
8101 FRAME_FIND_SAVED_REGS.
8102 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8103 * gdbarch.h: Regenerate.
8104 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8105 (deprecated_get_frame_saved_regs): Delete declaration.
8106 (struct frame_saved_regs): Delete definition.
8107 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8108 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8109 (hppa_frame_find_saved_regs): Delete declaration.
8110 (FRAME_FIND_SAVED_REGS): Delete macro.
8111 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8112 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8113 FRAME_FIND_SAVED_REGS in comment.
8114
be41e9f4
AC
81152003-04-05 Andrew Cagney <cagney@redhat.com>
8116
8117 * frame.c (frame_func_unwind, get_frame_func): New functions.
8118 * frame.h (get_frame_func, frame_func_unwind): Declare.
8119 (struct frame_info): Add field "prev_func" for caching the
8120 previous frame's function address.
8121 * arm-tdep.c (arm_frameless_function_invocation): Combine
8122 get_pc_function_start and get_frame_pc into get_frame_func.
8123 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8124 (sh64_nofp_frame_init_saved_regs): Ditto.
8125 * s390-tdep.c (s390_function_start): Ditto.
8126 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8127 (rs6000_frameless_function_invocation): Ditto.
8128 (rs6000_frame_saved_pc): Ditto.
8129 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8130 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8131 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8132 (i386_frame_init_saved_regs): Ditto.
8133 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8134 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8135 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8136 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8137 * blockframe.c (frameless_look_for_prologue): Ditto.
8138
a01dd7cc
AC
81392003-04-05 Andrew Cagney <cagney@redhat.com>
8140
8141 * frame.c (legacy_get_prev_frame): Link prev to next at the
8142 function start. Update comments.
8143
5e5592e6
AC
81442003-04-05 Andrew Cagney <cagney@redhat.com>
8145
8146 * frame.c (get_frame_id): Update comment.
8147 (legacy_get_prev_frame): Update comment.
8148 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8149 * gdbarch.h: Regenerate.
8150 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8151 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8152
6fba5002
AC
81532003-04-05 Andrew Cagney <cagney@redhat.com>
8154
8155 * stack.c (print_frame_info): Use get_frame_pc.
8156
7df05f2b
AC
81572003-04-04 Andrew Cagney <cagney@redhat.com>
8158
8159 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8160 the frame's type from the unwinder.
8161 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8162 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8163 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8164 (get_frame_base_address): Use get_frame_type.
8165 (get_frame_locals_address, get_frame_args_address): Ditto.
8166 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8167 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8168 (struct frame_info): Add comment explaining why the frame contains
8169 a "type" field.
8170 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8171 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8172 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8173 NORMAL_FRAME.
8174 * frame-unwind.h: Include "frame.h".
8175 (struct frame_unwind): Add "type" field.
8176 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8177
11889732
AC
81782003-04-04 Andrew Cagney <cagney@redhat.com>
8179
8180 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8181 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8182 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8183 get_frame_base.
8184 (d10v_unwind_dummy_id): Use frame_id_build.
8185 * frame.c (find_frame_sal): Use get_frame_pc.
8186 (create_new_frame): Use deprecated_update_frame_pc_hack and
8187 deprecated_update_frame_base_hack.
8188 (create_sentinel_frame): Add comment about ->pc going away.
8189 (get_prev_frame): Add comment about ->pc going away.
8190 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8191 frame_id_build, deprecated_update_frame_pc_hack and
8192 deprecated_update_frame_base_hack.
8193 (select_frame): Use get_frame_pc.
8194 (legacy_saved_regs_this_id): Use frame_id_build.
8195
50c46a0d
EZ
81962003-04-04 Elena Zannoni <ezannoni@redhat.com>
8197
fbe586ae
RH
8198 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8199 signed integer case.
8200 (classify_argument): Handle enumerations and references.
50c46a0d 8201
50bbdbd9
AC
82022003-04-04 Andrew Cagney <cagney@redhat.com>
8203
8204 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8205 ID to NULL.
8206
36018d2e
AF
82072003-04-01 Adam Fedor <fedor@gnu.org>
8208
8209 * gdb/objc-lang.c (selectors_info): Replace calls to
8210 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8211 SYMBOL_NATURAL_NAME.
8212 (classes_info, find_methods): Likewise.
8213
35cec841
KB
82142003-04-03 Kevin Buettner <kevinb@redhat.com>
8215
8216 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8217 ``mach'' to the value determined by bfd_default_set_arch_mach().
8218
43136899
BR
82192003-04-02 Bob Rossi <bob_rossi@cox.net>
8220
8221 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8222 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8223 (mi-cmd-file.o): Update dependencies.
8224
040b99fd
KB
82252003-04-01 Kevin Buettner <kevinb@redhat.com>
8226
8227 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8228 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8229
9a3d7dfd
AF
82302003-04-01 Adam Fedor <fedor@gnu.org>
8231
8232 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8233 * language.h (struct language_defn): Add la_demangle.
8234 (language_demangle): Declare.
8235 * language.c (language_demangle): New function.
8236 (unk_lang_demangle): Likewise.
8237 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8238 Add ukn_lang_demangle.
9a3d7dfd 8239 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8240 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8241 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8242 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8243 * jv-lang.c (java_demangle): New function
8244 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8245 * objc-lang.c (objc_demangle): Add options argument
8246 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8247 * maint.c (maintenance_demangle): Replace switch with
8248 call to language_demangle.
8249 * utils.c (fprintf_symbol_filtered): Likewise.
8250
5e074003
AC
82512003-04-01 Andrew Cagney <cagney@redhat.com>
8252
8253 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8254 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8255 PRINT_TYPELESS_INTEGER.
8256 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8257 PUSH_RETURN_ADDRESS.
8258
270cb5d6
AC
82592003-04-01 Andrew Cagney <cagney@redhat.com>
8260
8261 * Makefile.in (d10v-tdep.o): Update dependencies.
8262 * d10v-tdep.c: Include "frame-base.h".
8263 (d10v_frame_unwind): Make constant.
8264 (d10v_frame_base_address): New function.
8265 (d10v_frame_base): New variable.
8266 (d10v_gdbarch_init): Set frame_base default.
8267 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8268 comment for base.
8269 (d10v_frame_unwind_cache): Set and use "prev_sp".
8270 (d10v_frame_this_id): Use the previous frame's inner most stack
8271 address and this frame's func address for the frame ID. Use
8272 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8273
6bfb3e36
AC
82742003-04-01 Andrew Cagney <cagney@redhat.com>
8275
8276 * frame.h (get_frame_locals_address, get_frame_args_address):
8277 Refer to the base address, instead of the address of the first
8278 local or parameter.
8ffd9b1b 8279
da62e633
AC
82802003-04-01 Andrew Cagney <cagney@redhat.com>
8281
8282 Add frame debug info addresses:
8283 * frame-base.c: New file.
8284 * frame-base.h: New file.
8285 * frame.h (struct frame_base): Add opaque declaration.
8286 (get_frame_base): Update comment.
8287 (get_frame_base_address): Declare.
8288 (get_frame_locals_address): Declare.
8289 (get_frame_args_address): Declare.
8290 (struct frame_info): Add "base" and "base_cache". Update
8291 comments on the unwinder.
8292 * frame.c: Include "frame-base.h".
8293 (get_frame_locals_address): New function.
8294 (get_frame_base_address): New function.
8295 (get_frame_args_address): New function.
8296 * findvar.c (read_var_value): Use get_frame_locals_address and
8297 get_frame_args_address.
8298 * stack.c (frame_info): Use get_frame_locals_address and
8299 get_frame_args_address.
8300 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8301 moved to "frame-base.c".
8302 * printcmd.c (print_frame_nameless_args): Ditto.
8303 * symtab.h (address_class): Update comments.
8304 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8305 get_frame_base_address.
8306 * dwarf2expr.c (execute_stack_op): Ditto.
8307 * Makefile.in (frame_base_h): Define.
8308 (frame.o): Update dependencies.
8309 (frame-base.o): Add dependencies.
8310 (SFILES): Add frame-base.c.
8311 (COMMON_OBS): Add frame-base.o.
8312
3d30e9c2
AC
83132003-04-01 Andrew Cagney <cagney@redhat.com>
8314
8315 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8316 CALL_DUMMY_LENGTH): Ditto.
8317 * gdbarch.c: Re-generate.
8318 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8319 (CALL_DUMMY_LENGTH): Delete macro.
8320 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8321 * arm-tdep.c (arm_gdbarch_init): Ditto.
8322 * avr-tdep.c (avr_gdbarch_init): Ditto.
8323 * cris-tdep.c (cris_gdbarch_init): Ditto.
8324 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8325 * frv-tdep.c (frv_gdbarch_init): Ditto.
8326 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8327 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8328 * i386-tdep.c (i386_gdbarch_init): Ditto.
8329 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8330 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8331 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8332 * mips-tdep.c (mips_gdbarch_init): Ditto.
8333 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8334 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8335 * s390-tdep.c (s390_gdbarch_init): Ditto.
8336 * sh-tdep.c (sh_gdbarch_init): Ditto.
8337 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8338 * v850-tdep.c (v850_gdbarch_init): Ditto.
8339 * vax-tdep.c (vax_gdbarch_init): Ditto.
8340 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8341
ce0c7262
CV
83422003-04-01 Corinna Vinschen <vinschen@redhat.com>
8343
8344 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8345
73dd234f
AC
83462003-04-01 Andrew Cagney <cagney@redhat.com>
8347
8348 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8349 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8350 * gdbarch.h, gdbarch.c: Re-generate.
8351 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8352 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8353 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8354 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8355 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8356 * infcmd.c (run_stack_dummy): Simplify assuming
8357 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8358 * infrun.c (handle_inferior_event): Ditto.
8359 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8360 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8361 * arm-tdep.c (arm_gdbarch_init): Ditto.
8362 * avr-tdep.c (avr_gdbarch_init): Ditto.
8363 * cris-tdep.c (cris_gdbarch_init): Ditto.
8364 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8365 * frv-tdep.c (frv_gdbarch_init): Ditto.
8366 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8367 * i386-tdep.c (i386_gdbarch_init): Ditto.
8368 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8369 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8370 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8371 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8372 * mips-tdep.c (mips_gdbarch_init): Ditto.
8373 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8374 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8375 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8376 * s390-tdep.c (s390_gdbarch_init): Ditto.
8377 * sh-tdep.c (sh_gdbarch_init): Ditto.
8378 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8379 * v850-tdep.c (v850_gdbarch_init): Ditto.
8380 * vax-tdep.c (vax_gdbarch_init): Ditto.
8381 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8382
97606a13
DJ
83832003-04-01 Daniel Jacobowitz <drow@mvista.com>
8384
8385 * symfile.c (symfile_relocate_debug_section): Update call to
8386 bfd_simple_get_relocated_section_contents.
8387
e8ab51f7
AC
83882003-03-31 Andrew Cagney <cagney@redhat.com>
8389
8390 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8391 * gdbarch.h, gdbarch.c: Regenerate.
8392 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8393 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8394 available.
8395 * frame.h (generic_fix_call_dummy): Delete declaration.
8396 * dummy-frame.h: Update comment.
8397 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8398 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8399 fix_call_dummy.
8400 * sh-tdep.c (sh_gdbarch_init): Ditto.
8401 * s390-tdep.c (s390_gdbarch_init): Ditto.
8402 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8403 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8404 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8405 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8406 * i386-tdep.c (i386_gdbarch_init): Ditto.
8407 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8408 * frv-tdep.c (frv_gdbarch_init): Ditto.
8409 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8410 * cris-tdep.c (cris_gdbarch_init): Ditto.
8411 * avr-tdep.c (avr_gdbarch_init): Ditto.
8412 * arm-tdep.c (arm_gdbarch_init): Ditto.
8413
018d1b48
JB
84142003-03-31 J. Brobecker <brobecker@gnat.com>
8415
8416 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8417 (INIT_FRAME_AP): Likewise.
8418 (EXTRA_FRAME_INFO): Likewise.
8419
e9a2674e
AC
84202003-03-31 Andrew Cagney <cagney@redhat.com>
8421
8422 * gdbarch.sh: Include "symfile.h".
8423 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8424 * gdbarch.h, gdbarch.c: Re-generate.
8425 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8426 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8427 call_dummy_address, the default is at entry_point_address.
8428 * v850-tdep.c (v850_gdbarch_init): Ditto.
8429 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8430 * sh-tdep.c (sh_gdbarch_init): Ditto.
8431 * s390-tdep.c (s390_gdbarch_init): Ditto.
8432 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8433 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8434 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8435 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8436 * i386-tdep.c (i386_gdbarch_init): Ditto.
8437 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8438 * frv-tdep.c (frv_gdbarch_init): Ditto.
8439 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8440 * cris-tdep.c (cris_gdbarch_init): Ditto.
8441 * arm-tdep.c (arm_gdbarch_init): Ditto.
8442
e8a8712a
AC
84432003-03-31 Andrew Cagney <cagney@redhat.com>
8444
8445 * gdbarch.sh (CALL_DUMMY_P): Delete.
8446 * gdbarch.h, gdbarch.c: Re-generate.
8447 * inferior.h (CALL_DUMMY_P): Delete macro.
8448 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8449 * vax-tdep.c (vax_gdbarch_init): Update.
8450 * v850-tdep.c (v850_gdbarch_init): Update.
8451 * sparc-tdep.c (sparc_gdbarch_init): Update.
8452 * sh-tdep.c (sh_gdbarch_init): Update.
8453 * s390-tdep.c (s390_gdbarch_init): Update.
8454 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8455 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8456 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8457 * mips-tdep.c (mips_gdbarch_init): Update.
8458 * mcore-tdep.c (mcore_gdbarch_init): Update.
8459 * m68k-tdep.c (m68k_gdbarch_init): Update.
8460 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8461 * ia64-tdep.c (ia64_gdbarch_init): Update.
8462 * i386-tdep.c (i386_gdbarch_init): Update.
8463 * h8300-tdep.c (h8300_gdbarch_init): Update.
8464 * frv-tdep.c (frv_gdbarch_init): Update.
8465 * d10v-tdep.c (d10v_gdbarch_init): Update.
8466 * cris-tdep.c (cris_gdbarch_init): Update.
8467 * breakpoint.c (deprecated_frame_in_dummy): Update.
8468 * avr-tdep.c (avr_gdbarch_init): Update.
8469 * alpha-tdep.c (alpha_gdbarch_init): Update.
8470 * arm-tdep.c (arm_gdbarch_init): Update.
8471 * dummy-frame.c (dummy_frame_this_id): Update comments.
8472 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8473 * frame.c (legacy_get_prev_frame): Ditto.
8474 * valops.c (call_function_by_hand): Delete function.
8475 (hand_function_call): Rename to call_function_by_hand
8476
ed234cf8
AC
84772003-03-30 Andrew Cagney <cagney@redhat.com>
8478
8479 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8480 * value.h (struct value): Update comment.
ed234cf8 8481
06c77151
AC
84822003-03-30 Andrew Cagney <cagney@redhat.com>
8483
6c2b5168
AC
8484 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8485 D10V_FP_REGNUM.
8486 (d10v_gdbarch_init): Do not set fp_regnum.
8487
06c77151
AC
8488 * frame.c (get_frame_base): Force ID initialization.
8489 (get_prev_frame): Move computation of the frame ID from here ...
8490 (get_frame_id): ... to here.
8491 (legacy_get_prev_frame): Mark the frame ID as valid.
8492 * frame.h (struct frame_info): Add field "id_p".
8493
97a1a11c
MK
84942003-03-30 Mark Kettenis <kettenis@gnu.org>
8495
8496 * i386-tdep.c (i386_store_struct_return): Removed.
8497 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8498
6c0e89ed
AC
84992003-03-30 Andrew Cagney <cagney@redhat.com>
8500
8501 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8502 * gdbarch.h, gdbarch.c: Regenerate.
8503 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8504 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8505 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8506 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8507 * i386-tdep.c (i386_gdbarch_init): Ditto.
8508 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8509 * cris-tdep.c (cris_gdbarch_init): Ditto.
8510 * vax-tdep.c (vax_gdbarch_init): Ditto.
8511 * s390-tdep.c (s390_gdbarch_init): Ditto.
8512 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8513 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8514 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8515 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8516 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8517 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8518 * sparc-tdep.c (sparc_gdbarch_init): Update.
8519 * sh-tdep.c (sh_gdbarch_init): Update.
8520 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8521 * mips-tdep.c (mips_gdbarch_init): Update.
8522 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8523 * ia64-tdep.c (ia64_gdbarch_init): Update.
8524 * frv-tdep.c (frv_gdbarch_init): Update.
8525 * avr-tdep.c (avr_gdbarch_init): Update.
8526 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8527 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8528 instead of when push_dummy_call is not available.
8ffd9b1b 8529
f7dd6af2
AC
85302003-03-30 Andrew Cagney <cagney@redhat.com>
8531
8532 * infttrace.c: Include "gdbthread.h".
8533 (parent_attach_all): Fix function signature.
8534 (call_ptrace): Update call.
8535 * Makefile.in (infttrace.o): Update dependencies.
8536
28f617b3
AC
85372003-03-30 Andrew Cagney <cagney@redhat.com>
8538
8539 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8540 PUSH_RETURN_ADDRESS.
8541 * gdbarch.h, gdbarch.c: Regenerate.
8542 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8543 * x86-64-tdep.c (x86_64_init_abi): Update.
8544 * v850-tdep.c (v850_gdbarch_init): Update.
8545 * sparc-tdep.c (sparc_gdbarch_init): Update.
8546 * sh-tdep.c (sh_gdbarch_init): Update.
8547 * s390-tdep.c (s390_gdbarch_init): Update.
8548 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8549 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8550 * mips-tdep.c (mips_gdbarch_init): Update.
8551 * mcore-tdep.c (mcore_gdbarch_init): Update.
8552 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8553 * ia64-tdep.c (ia64_gdbarch_init): Update.
8554 * i386-tdep.c (i386_gdbarch_init): Update.
8555 * h8300-tdep.c (h8300_gdbarch_init): Update.
8556 * frv-tdep.c (frv_gdbarch_init): Update.
8557 * cris-tdep.c (cris_gdbarch_init): Update.
8558 * avr-tdep.c (avr_gdbarch_init): Update.
8559 * arm-tdep.c (arm_gdbarch_init): Update.
8560 * valops.c (hand_function_call): Update.
8561
4d628cd7
AC
85622003-03-29 Andrew Cagney <cagney@redhat.com>
8563
8564 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8565 sizeof_call_dummy_words.
8566 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8567 define.
8568 * gdbarch.h: Regenerate.
8ffd9b1b 8569
65e82032
AC
85702003-03-29 Andrew Cagney <cagney@redhat.com>
8571
8572 * infttrace.h: New file.
8573 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8574 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8575 (hpread_read_doc_function_type): Detect an initialized type1.
8576 (hpread_quick_traverse): Initialize mod_name_string.
8577 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8578 (som_solib_get_solib_by_pc): Declare.
8579 (so_lib_thread_start_addr): Declare.
8580 (no_shared_libraries): Declare.
8581 * somread.c (init_import_symbols): Make static. Add forward
8582 declaration.
8583 * config/pa/nm-hppah.h: Include "infttrace.h" for
8584 parent_attach_all.
8585 (hppa_insert_hw_watchpoint): Declare.
8586 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8587 * hppah-nat.c: Include "gdb_string.h".
8588 (parent_attach_all): Delete extern declaration, moved to
8589 "infttrace.h".
8590 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8591 int.
8592 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8593 * Makefile.in (infttrace_h): Define.
8594 (hpread.o): Update dependencies.
8595 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8596 * hppa-hpux-tdep.c: Include "gdb_string.h".
8597 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8598 * infrun.c (handle_inferior_event): Always initialize
8599 stepped_after_stopped_by_watchpoint. Add default and remove
8600 fallthrough in switch statement.
8601 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8602 parameter to int.
8603 (hppa_remove_hw_watchpoint): Ditto.
8604
2c3bbe77
AC
86052003-03-29 Andrew Cagney <cagney@redhat.com>
8606
8607 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8608 offset.
8609
2dd604e7
RE
86102003-03-29 Richard Earnshaw <rearnsha@arm.com>
8611
8612 * arm-tdep.c (arm_push_arguments): Delete.
8613 (struct stack_item): New type.
8614 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8615 (arm_store_struct_return): Delte.
8616 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8617 arm_push_arguments or arm_store_struct_return.
8618
e8933a55
AC
86192003-03-28 Andrew Cagney <cagney@redhat.com>
8620
8621 * Makefile.in (d10v-tdep.o): Update dependencies.
8622 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8623 * d10v-tdep.c: Include "remote.h".
8624 (target_resume_hook): Delete extern declaration.
8625 (target_wait_loop_hook): Ditto.
8626 (tdisassemble_command): Eliminate assignment in "if" conditional.
8627 (d10v_ts2_register_sim_regno): Eliminate call to
8628 legacy_register_sim_regno.
8629 (d10v_ts3_register_sim_regno): Ditto.
8630
6949171e
JJ
86312003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8632
8633 * thread.c: Reindented.
8634 * lin-lwp.c: Ditto.
8635 * linux-proc.c: Ditto.
8636
98c7071f
BR
86372003-03-28 Bob Rossi <bob_rossi@cox.net>
8638
fbe586ae 8639 * MAINTAINERS (write after approval): Add myself.
98c7071f 8640
5edc9ca6
TR
86412003-03-27 Theodore A. Roth <troth@openavr.org>
8642
8643 * objc-exp.y: Add missing semi-colons.
8644
378bfd1b
AC
86452003-03-27 Andrew Cagney <cagney@redhat.com>
8646
8647 * regcache.c (write_sp): Delete function and references.
8648 * inferior.h (write_sp): Delete declaration.
8649 * valops.c (hand_function_call): Replace write_sp with
8650 TARGET_WRITE_SP.
8651 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8652 (sparc_pop_frame): Ditto.
8ffd9b1b 8653
56056df7
AC
86542003-03-27 Andrew Cagney <cagney@redhat.com>
8655
8656 * NEWS: Mention removal of support for hppa*-*-bsd* and
8657 hppa*-*-osf* natives, and hppa*-*-pro* target.
8658 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8659 * config/pa/xm-pa.h: Obsolete file.
8660 * config/pa/xm-hppab.h: Obsolete file.
8661 * config/pa/nm-hppab.h: Obsolete file.
8662 * config/pa/tm-hppab.h: Obsolete file.
8663 * config/pa/tm-hppao.h: Obsolete file.
8664 * config/pa/nm-hppao.h: Obsolete file.
8665 * config/pa/tm-pro.h: Obsolete file.
8666 * config/pa/hppaosf.mt: Obsolete file.
8667 * config/pa/hppaosf.mh: Obsolete file.
8668 * config/pa/hppapro.mt: Obsolete file.
8669 * config/pa/hppabsd.mt: Obsolete file.
8670 * config/pa/hppabsd.mh: Obsolete file.
8671 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8672 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8673 hppa*-*-osf*.
8674
5873a88d
AC
86752003-03-27 Andrew Cagney <cagney@redhat.com>
8676
8677 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8678 push_arguments. Don't set push_return_address or write_sp.
8679 (d10v_push_dummy_call): Replace d10v_push_arguments.
8680 (d10v_push_return_address, d10v_write_sp): Delete function,
8681 handled by push_dummy_call.
8682
b81774d8
AC
86832003-03-26 Andrew Cagney <cagney@redhat.com>
8684
8685 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8686 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8687 regcache and dummy_addr parameters.
8688 * gdbarch.h, gdbarch.c: Re-generate.
8689 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8690 available; assume it will handle stack alignment and return
8691 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8692 legacy_push_arguments.
8693 (legacy_push_arguments): Rename default_push_arguments.
8694 * value.h (legacy_push_arguments): Rename default_push_arguments.
8695 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8696 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8697 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8698 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8699 * config/i386/tm-symmetry.h: Update.
8700 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8701 * x86-64-tdep.c (x86_64_init_abi): Update.
8702 * v850-tdep.c (v850_gdbarch_init): Update.
8703 * sparc-tdep.c (sparc_gdbarch_init): Update.
8704 * sh-tdep.c (sh_gdbarch_init): Update.
8705 * s390-tdep.c (s390_gdbarch_init): Update.
8706 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8707 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8708 * mips-tdep.c (mips_gdbarch_init): Update.
8709 * mcore-tdep.c (mcore_gdbarch_init): Update.
8710 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8711 * ia64-tdep.c (ia64_gdbarch_init): Update.
8712 * i386-tdep.c (i386_gdbarch_init): Update.
8713 * hppa-tdep.c (hppa_gdbarch_init): Update.
8714 * h8300-tdep.c (h8300_gdbarch_init): Update.
8715 * frv-tdep.c (frv_gdbarch_init): Update.
8716 * d10v-tdep.c (d10v_gdbarch_init): Update.
8717 * cris-tdep.c (cris_gdbarch_init): Update.
8718 * avr-tdep.c (avr_gdbarch_init): Update.
8719 * arm-tdep.c (arm_gdbarch_init): Update.
8720 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8721 * alpha-tdep.c (alpha_gdbarch_init): Update.
8722
f541410f
DJ
87232003-03-26 Daniel Jacobowitz <drow@mvista.com>
8724
8725 * signals/signals.c (do_target_signal_to_host): Correct realtime
8726 signal range test.
8727
69f567ae
DJ
87282003-03-26 Daniel Jacobowitz <drow@mvista.com>
8729
8730 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8731 (struct sal_chain, map_catch_names): Remove.
8732 (catch_exception_command_1): Don't call
8733 handle_gnu_4_16_catch_command.
8734
d5d14a5a
DJ
87352003-03-26 Daniel Jacobowitz <drow@mvista.com>
8736
8737 From Mark Dettinger <dettinge@de.ibm.com>:
8738 * dwarf2cfi.c (read_2u): Increment pointer by two.
8739
bdd73e22
DJ
87402003-03-26 Daniel Jacobowitz <drow@mvista.com>
8741
8742 * signals/signals.c: Fix typos in last change.
8743
960cb555
DJ
87442003-03-26 Daniel Jacobowitz <drow@mvista.com>
8745
8746 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8747 not already defined. Use __SIGRTMIN if available.
8748 (target_signal_from_host): Remove SIGRTMIN block.
8749 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8750 the signal is within the realtime range.
8751
f636b87d
AF
87522003-03-25 Adam Fedor <fedor@gnu.org>
8753
8754 * Makefile.in (infrun.o): Add $(language_h)
8755 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8756 for language specific trampolines.
8757 * language.h (struct language_defn): Add skip_trampoline.
8758 (skip_language_trampoline): Declare.
8759 * language.c (unk_lang_trampoline, skip_language_trampoline):
8760 New functions.
8761 (unknown_language_defn, auto_language_defn, local_language_defn):
8762 Add ukn_lang_trampoline.
8763 * ada-lang.c (ada_language_defn): Add NULL for language
8764 specific skip_trampoline.
8765 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8766 scm-lang.c: Likewise.
8767 * objc-lang.c (objc_skip_trampoline): New function.
8768 (objc_language_defn): Add objc_skip_trampoline.
8769
28f617b3 87702003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
8771
8772 * frame.c (get_prev_frame): Delay validating a frame's ID -
8773 non-NULL, didn't go backwards - until an attempt to unwind it to
8774 the previous frame.
8775
f933a9c5
AC
87762003-03-25 Andrew Cagney <cagney@redhat.com>
8777
8778 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8779 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8780 * gdbarch.h, gdbarch.c: Re-generate.
8781 * config/sparc/tm-sparc.h
8782 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8783 * sparc-tdep.c (sparc_gdbarch_init): Set
8784 deprecated_extra_stack_alignment_needed.
8785 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8786 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8787 extra_stack_alignment_needed.
8788 * v850-tdep.c (v850_gdbarch_init): Ditto.
8789 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8790 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8791 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8792 * cris-tdep.c (cris_gdbarch_init): Ditto.
8793 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8794 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8795
4183d812
AC
87962003-03-25 Andrew Cagney <cagney@redhat.com>
8797
8798 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8799 STORE_STRUCT_RETURN.
8800 * gdbarch.h, gdbarch.c: Regenerate.
8801 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8802 (d10v_push_arguments): Set the struct return register.
8803 (d10v_gdbarch_init): Update.
8804 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8805 * x86-64-tdep.c (x86_64_init_abi): Update.
8806 * vax-tdep.c (vax_gdbarch_init): Update.
8807 * v850-tdep.c (v850_gdbarch_init): Update.
8808 * sparc-tdep.c (sparc_gdbarch_init): Update.
8809 * sh-tdep.c (sh_gdbarch_init): Update.
8810 * s390-tdep.c (s390_gdbarch_init): Update.
8811 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8812 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8813 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8814 * mips-tdep.c (mips_gdbarch_init): Update.
8815 * mcore-tdep.c (mcore_gdbarch_init): Update.
8816 * m68k-tdep.c (m68k_gdbarch_init): Update.
8817 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8818 * ia64-tdep.c (ia64_gdbarch_init): Update.
8819 * i386-tdep.c (i386_gdbarch_init): Update.
8820 * hppa-tdep.c (hppa_gdbarch_init): Update.
8821 * h8300-tdep.c (h8300_gdbarch_init): Update.
8822 * frv-tdep.c (frv_gdbarch_init): Update.
8823 * cris-tdep.c (cris_gdbarch_init): Update.
8824 * avr-tdep.c (avr_gdbarch_init): Update.
8825 * arm-tdep.c (arm_gdbarch_init): Update.
8826 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8827
1bf6d5cc
AC
88282003-03-25 Andrew Cagney <cagney@redhat.com>
8829
8830 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8831 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8832 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8833 * gdbarch.h, gdbarch.c: Regenerate.
8834 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8835 call_dummy_stack_adjust_p.
8836 * vax-tdep.c (vax_gdbarch_init): Ditto.
8837 * v850-tdep.c (v850_gdbarch_init): Ditto.
8838 * sh-tdep.c (sh_gdbarch_init): Ditto.
8839 * s390-tdep.c (s390_gdbarch_init): Ditto.
8840 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8841 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8842 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8843 * mips-tdep.c (mips_gdbarch_init): Ditto.
8844 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8845 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8846 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8847 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8848 * i386-tdep.c (i386_gdbarch_init): Ditto.
8849 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8850 * frv-tdep.c (frv_gdbarch_init): Ditto.
8851 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8852 * cris-tdep.c (cris_gdbarch_init): Ditto.
8853 * avr-tdep.c (avr_gdbarch_init): Ditto.
8854 * arm-tdep.c (arm_gdbarch_init): Ditto.
8855 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8856 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8857 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8858 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8859 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8860 call_dummy_stack_adjust_p.
8861 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8862 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8863 * sparc-tdep.c (sparc32_push_arguments): Update.
8864 * valops.c (hand_function_call): Update.
8865
71c08af0
CV
88662003-03-25 Corinna Vinschen <vinschen@redhat.com>
8867
8868 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8869 set_gdbarch_char_signed.
8870
30757f90
RE
88712003-03-25 Richard Earnshaw <rearnsha@arm.com>
8872
8873 PR cli/548
8874 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8875
03d48a7d
RE
88762003-03-25 Richard Earnshaw <rearnsha@arm.com>
8877
8878 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8879 (_initialize_arm_tdep): Don't set tm_print_insn.
8880
2cf6873c
AF
88812003-03-24 Adam Fedor <fedor@gnu.org>
8882
8883 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8884 * objc-lang.h: Add multiple inclusion protection.
8885 (start_msglist, add_msglist, end_msglist): Additional declarations.
8886
17c0759e
RE
88872003-03-24 Richard Earnshaw <rearnsha@arm.com>
8888
8889 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8890 value was renamed to ARM_FLOAT_SOFT_FPA.
8891
618ce49f
AC
88922003-03-23 Andrew Cagney <cagney@redhat.com>
8893
8894 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8895 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8896 * gdbarch.h, gdbarch.c: Regenerate.
8897 * valops.c (hand_function_call): Update.
8898 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8899 * frame.c (legacy_saved_regs_this_id): Update.
8900 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8901 * dummy-frame.h: Update.
8902 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8903 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8904 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8905 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8906 * config/m68k/tm-sun3.h: Update.
8907 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8908 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8909 * x86-64-tdep.c (x86_64_init_abi): Update.
8910 * vax-tdep.c (vax_gdbarch_init): Update.
8911 * v850-tdep.c (v850_gdbarch_init): Update.
8912 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8913 * sh-tdep.c (sh_gdbarch_init): Update.
8914 * s390-tdep.c (s390_gdbarch_init): Update.
8915 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8916 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8917 (frame_get_saved_regs): Update.
8918 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8919 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8920 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8921 * mips-tdep.c (mips_gdbarch_init): Update.
8922 * mcore-tdep.c (mcore_gdbarch_init): Update.
8923 * m68k-tdep.c (m68k_gdbarch_init): Update.
8924 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8925 * ia64-tdep.c (ia64_gdbarch_init): Update.
8926 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8927 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8928 (i386_interix_back_one_frame): Update.
8929 * hppa-tdep.c (hppa_gdbarch_init): Update.
8930 (hppa_init_extra_frame_info): Update.
8931 * h8300-tdep.c (h8300_gdbarch_init): Update.
8932 * frv-tdep.c (frv_gdbarch_init): Update.
8933 * cris-tdep.c (cris_gdbarch_init): Update.
8934 * avr-tdep.c (avr_gdbarch_init): Update.
8935 * arm-tdep.c (arm_gdbarch_init): Update.
8936 * alpha-tdep.c (alpha_gdbarch_init): Update.
8937
fd50bc42
RE
89382003-03-22 Richard Earnshaw <rearnsha@arm.com>
8939
8940 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8941 (arm_get_fp_model): Declare.
8942 * arm-tdep.c (fp_model_strings): New string array.
8943 (arm_fp_model, current_fp_model): New variables.
8944 (arm_get_fp_model): New function.
8945 (arm_set_fp): New function.
8946 (set_fp_model_sfunc): New function.
8947 (show_fp_model): New function.
8948 (_initialize_arm_tdep): Add new command to set/show the FPU.
8949 (arm_extract_return_value): Use arm_get_fp_model.
8950 (arm_store_return_value): Likewise.
8951 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8952 to initialize the floating-point data types.
8953 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8954 model is FPA.
8955
26304000
RE
89562003-03-22 Richard Earnshaw <rearnsha@arm.com>
8957
8958 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8959 the current setting of each value.
8960 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8961 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8962 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8963 commands and add new version as subcommands of "set/show arm".
8964
afd7eef0
RE
89652003-03-22 Richard Earnshaw <rearnsha@arm.com>
8966
8967 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8968 (set_arm_command, show_arm_command): New functions.
8969 (_initialize_arm_tdep): Add them.
8970 (num_disassembly_options): Renamed from num_flavor_options.
8971 (valid_disassembly_styles): Renamed from valid_flavors.
8972 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8973 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8974 set_disassembly_flavor_sfunc.
8975 (set_disassembly_style): Renamed from set_disassembly_flavor.
8976 (arm_othernames): Updated.
8977 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8978 command. Add "set/show arm disassembly" commands. Deprecate
8979 "othernames" command.
8980
299a7944
RE
89812003-03-22 Richard Earnshaw <rearnsha@arm.com>
8982
8983 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8984 (arm-tdep.o): Depend on elf_arm_h.
8985
c1dac9e6
RE
89862003-03-22 Richard Earnshaw <rearnsha@arm.com>
8987
8988 * Makefile.in (coff_internal_h): Define.
8989 (arm-tdep.o): Update dependencies.
8990
2702d96c
RE
89912003-03-22 Richard Earnshaw <rearnsha@arm.com>
8992
8993 * arm-tdep.c (prologue_cache): Delete.
8994 (check_prologue_cache, save_prologue_cache): Delete.
8995 (arm_scan_prologue): Don't check or update the prologue_cache.
8996 (arm_gdb_arch_init): Don't initialize it.
8997 (_initialize_arm_tdep): Likewise.
8998
27d5d74b
SC
89992003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9000
9001 * MAINTAINERS (tui): Maintainer of tui code.
9002
1762d96d
CV
90032003-03-21 Corinna Vinschen <vinschen@redhat.com>
9004
9005 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9006 (i386-cygwin-tdep.o): Add dependencies.
9007 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9008 * i386-cygwin-tdep.c: New file.
9009 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9010 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9011
4c2e2391
AC
90122003-03-20 Andrew Cagney <cagney@redhat.com>
9013
f20d38b7
AC
9014 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9015 (handle_inferior_event): Remove code calling
9016 DYNAMIC_TRAMPOLINE_NEXTPC.
9017
0022b738
AC
9018 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9019 already has a full path.
9020
864dbc90
AC
9021 * main.c (gdb_main): Return 1.
9022 (captured_main): Call error to report an invalid interpreter.
9023
4c2e2391
AC
9024 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9025 * alpha-osf1-tdep.c: Include "gdb_string.h".
9026
5ef7553b
JB
90272003-03-19 J. Brobecker <brobecker@gnat.com>
9028
9029 Continuing work to convert the hppa targets to multiarch partial.
9030
9031 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9032 method, now that hppa_push_dummy_frame has a conformant prototype.
9033 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9034 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9035 for the switch to multiarch partial.
9036
7bde8967
KB
90372003-03-19 Kevin Buettner <kevinb@redhat.com>
9038
9039 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9040 when iss is issNull.
9041
b006a9e9
KB
90422003-03-18 Kevin Buettner <kevinb@redhat.com>
9043
9044 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9045 NUM_REGS bounds check.
9046
5e2e9765
KB
90472003-03-18 Kevin Buettner <kevinb@redhat.com>
9048
9049 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9050 * mips-tdep.c (gdb_assert.h): Include.
9051 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9052 (mips_register_name): Handle integer registers explicitly. Add
9053 bounds checking.
9054 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9055 (mips_lsi33k_reg_names): Don't list integer registers; they're
9056 handled by mips_register_name() now.
9057 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9058 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9059 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9060 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9061 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9062
a2867626
AC
90632003-03-18 Andrew Cagney <cagney@redhat.com>
9064
9065 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9066 a void pointer.
9067 * gdbtypes.h (print_scalar_formatted): Update declaration.
9068 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9069
06600e06
JB
90702003-03-18 J. Brobecker <brobecker@gnat.com>
9071
9072 * infrun.c (observer.h): Add #include.
9073 (normal_stop): Add call to observer_notify_normal_stop.
9074 * Makefile.in (infrun.o): Add dependency on observer.h.
9075
7daf4f5b
JB
90762003-03-18 J. Brobecker <brobecker@gnat.com>
9077
9078 Continuing work to convert the hppa targets to multiarch partial.
9079 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9080 parameter. Reformat comment.
9081 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9082 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9083 to match new profile.
9084
3371ccc0
JB
90852003-03-18 J. Brobecker <brobecker@gnat.com>
9086
9087 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9088 appear to be working in any case.
9089
4fbe891e
JB
90902003-03-18 J. Brobecker <brobecker@gnat.com>
9091
9092 * observer.c (observer_test_first_observer): New static variable.
9093 (observer_test_second_observer): Likewise.
9094 (observer_test_third_observer): Likewise.
9095 (observer_test_first_notification_function): New static function.
9096 (observer_test_second_notification_function): Likewise.
9097 (observer_test_third_notification_function): Likewise.
9098
a7ff40e7
JB
90992003-03-17 J. Brobecker <brobecker@gnat.com>
9100
9101 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9102 * somsolib.c (gdb_assert.h): Likewise.
9103 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9104 (somsolib.o): Likewise.
9105
26ca4152
AC
91062003-03-17 Andrew Cagney <cagney@redhat.com>
9107
9108 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9109 BFD. Simplify setting of di.endian.
9110
0a613259
AC
91112003-03-17 Andrew Cagney <cagney@redhat.com>
9112
9113 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9114 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9115
9116 From Elena Zannoni <ezannoni@redhat.com>
9117 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9118 vector and floating-point parameters.
9119 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9120 convention.
9121 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9122
1132738f
FN
91232003-03-17 Fernando Nasser <fnasser@redhat.com>
9124
9125 * MAINTAINERS: Remove my name from several maintainership roles.
9126
6dc42492
AC
91272003-03-17 Andrew Cagney <cagney@redhat.com>
9128
9129 Fix frame off-by-one bug.
9130 * frame-unwind.h (frame_this_id_ftype): Replace
9131 frame_unwind_id_ftype.
9132 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9133 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9134 with "prev_register".
9135 * frame-unwind.c (frame_unwind_find_by_pc): Return
9136 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9137 comment.
9138 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9139 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9140 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9141 (dummy_frame_unwind): Update.
9142 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9143 sentinel_frame_register_unwind.
9144 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9145 (sentinel_frame_unwinder): Update.
9146 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9147 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9148 * frame.c (create_sentinel_frame): Update. Initialize
9149 "prologue_cache" instead of "unwind_cache".
9150 (frame_register_unwind): Call this frame's prev_register with the
9151 next frame and this frame's prologue cache.
9152 (get_prev_frame): Simplify. Always call prev frame's this_id with
9153 this frame and prev frame's prologue cache. Document that this
9154 call is shifted one to the left when compared to the
9155 frame_register_unwind call.
9156 (legacy_saved_regs_prev_register): Replace
9157 frame_saved_regs_register_unwind.
9158 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9159 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9160 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9161 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9162 (d10v_frame_unwind): Update.
9163 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9164 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9165 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9166 "saved_regs" with "this_saved_regs".
9167
efd710d6
AC
91682003-03-16 Andrew Cagney <cagney@redhat.com>
9169
9170 * frame.c (frame_pop): Don't call target_store_registers. Fix
9171 problem reported by Mark Kettenis.
9172
4e259f09
MK
91732003-03-16 Mark Kettenis <kettenis@gnu.org>
9174
9175 * i386-tdep.c (i386_register_type): Renamed from
9176 i386_register_virtual_type. Adjust function signature.
9177 (i386_gdbarch_init): Set register_type instead of
9178 deprecated_max_register_raw_size,
9179 deprecated_max_register_virtual_size and register_virtual_type.
9180
055bb976
AC
91812003-03-14 Andrew Cagney <cagney@redhat.com>
9182
9183 * frame.c (get_prev_frame): When a legacy frame, always call
9184 legacy_get_prev_frame. Simplify unwind code using assumption that
9185 the unwinder is new.
9186 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9187 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9188 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9189
ac2adee5
AC
91902003-03-14 Andrew Cagney <cagney@redhat.com>
9191
9192 * frame.c (get_saved_register): Delete function.
9193 * frame.h (get_saved_register): Delete declaration.
9194 * xstormy16-tdep.c: Update comment.
9195 * regcache.h: Update comments.
9196 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9197 get_saved_register and extract_address, use
9198 frame_read_unsigned_register.
9199 (sparc_frame_saved_pc): Ditto.
9200 (sparc_get_saved_register): Instead of get_saved_register, use
9201 frame_register.
9202 (sparc_pop_frame): Ditto.
9203 * findvar.c: Update comments.
9204 (value_of_register): Call frame_register instead of
9205 get_saved_register.
9206 (value_from_register): Ditto.
9207 * config/sparc/tm-sparc.h: Update comment.
9208 * breakpoint.c: Update comment.
9209
129c1cd6
AC
92102003-03-14 Andrew Cagney <cagney@redhat.com>
9211
9212 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9213 GET_SAVED_REGISTER.
9214 * gdbarch.h, gdbarch.c: Re-generate.
9215 * frame.h: Update comments.
9216 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9217 * x86-64-tdep.c (x86_64_init_abi): Update.
9218 * sparc-tdep.c (sparc_gdbarch_init): Update.
9219 * sh-tdep.c (sh_gdbarch_init): Update.
9220 * mips-tdep.c (mips_gdbarch_init): Update.
9221 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9222 * cris-tdep.c (cris_gdbarch_init): Update.
9223 * ia64-tdep.c (ia64_gdbarch_init): Update.
9224 * frame.c (frame_register): Update.
9225 (get_saved_register): Update.
9226 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9227
749b82f6
AC
92282003-03-13 Andrew Cagney <cagney@redhat.com>
9229
9230 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9231 * gdbarch.h, gdbarch.c: Regenerate.
9232 * valops.c (hand_function_call): Update comment.
9233 * stack.c (return_command): Update comment.
9234 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9235 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9236 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9237 * x86-64-tdep.c (x86_64_init_abi): Update.
9238 * vax-tdep.c (vax_gdbarch_init): Update.
9239 * v850-tdep.c (v850_gdbarch_init): Update.
9240 * sparc-tdep.c (sparc_gdbarch_init): Update.
9241 * sh-tdep.c (sh_gdbarch_init): Update.
9242 * s390-tdep.c (s390_gdbarch_init): Update.
9243 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9244 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9245 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9246 * mips-tdep.c (mips_gdbarch_init): Update.
9247 * mcore-tdep.c (mcore_gdbarch_init): Update.
9248 * m68k-tdep.c (m68k_gdbarch_init): Update.
9249 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9250 * ia64-tdep.c (ia64_gdbarch_init): Update.
9251 * i386-tdep.c (i386_gdbarch_init): Update.
9252 * hppa-tdep.c (hppa_gdbarch_init): Update.
9253 * h8300-tdep.c (h8300_gdbarch_init): Update.
9254 * frv-tdep.c (frv_gdbarch_init): Update.
9255 * cris-tdep.c (cris_gdbarch_init): Update.
9256 * avr-tdep.c (avr_gdbarch_init): Update.
9257 * arm-tdep.c (arm_gdbarch_init): Update.
9258 * alpha-tdep.c (alpha_gdbarch_init): Update.
9259
1594fa56
AC
92602003-03-13 Andrew Cagney <cagney@redhat.com>
9261
9262 * frame.c (legacy_frame_p): New function.
9263 (get_prev_frame): Use legacy_frame_p.
9264 * frame.h (legacy_frame_p): Declare.
9265
7717fda3
V
92662003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9267
fbe586ae 9268 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9269 listing corrected.
9270
0c67cbe9
V
92712003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9272
fbe586ae 9273 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9274
03febf99
AC
92752003-03-12 Andrew Cagney <cagney@redhat.com>
9276
9277 * frame.c (get_prev_frame): Rename the frame parameter to
9278 "this_frame".
9279 (get_next_frame, legacy_get_prev_frame): Ditto.
9280
0a1e1ca1
AC
92812003-03-12 Andrew Cagney <cagney@redhat.com>
9282
9283 * frame.c (get_current_frame): Check target_has_registers before
9284 checking target_has_stack.
9285 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9286 instead of deprecated_selected_frame.
9287 * findvar.c (value_of_register): Pass "frame", not
9288 deprecated_selected_frame, to value_of_builtin_reg.
9289
a66a9c23
AC
92902003-03-12 Andrew Cagney <cagney@redhat.com>
9291
9292 * regcache.c (regcache_cooked_write_signed): New function.
9293 (regcache_cooked_write_unsigned): New function.
9294 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9295 (regcache_cooked_read_signed): Fix regnum in range assertion.
9296 * regcache.h (regcache_cooked_write_signed): Declare.
9297 (regcache_cooked_write_unsigned): Declare.
9298
8bedc050
AC
92992003-03-12 Andrew Cagney <cagney@redhat.com>
9300
9301 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9302 * gdbarch.h, gdbarch.c: Re-generate.
9303 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9304 * x86-64-tdep.h: Update.
9305 * x86-64-tdep.c (x86_64_init_abi): Update.
9306 * v850-tdep.c (v850_gdbarch_init): Update.
9307 * sparc-tdep.c (sparc_gdbarch_init): Update.
9308 * sh-tdep.c (sh_gdbarch_init): Update.
9309 * s390-tdep.c (s390_gdbarch_init): Update.
9310 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9311 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9312 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9313 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9314 * mips-tdep.c (mips_gdbarch_init): Update.
9315 * mcore-tdep.c (mcore_gdbarch_init): Update.
9316 * m68k-tdep.c (m68k_gdbarch_init): Update.
9317 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9318 * ia64-tdep.c (ia64_gdbarch_init): Update.
9319 * i386-tdep.c (i386_gdbarch_init): Update.
9320 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9321 * hppa-tdep.c (hppa_gdbarch_init): Update.
9322 * h8300-tdep.c (h8300_gdbarch_init): Update.
9323 * frv-tdep.c (frv_gdbarch_init): Update.
9324 * cris-tdep.c (cris_gdbarch_init): Update.
9325 * avr-tdep.c (avr_gdbarch_init): Update.
9326 * arm-tdep.c (arm_gdbarch_init): Update.
9327 * alpha-tdep.c (alpha_gdbarch_init): Update.
9328 * sh-tdep.c (sh_init_extra_frame_info): Update.
9329 (sh64_init_extra_frame_info): Update.
9330 * ns32knbsd-nat.c (frame_num_args): Update.
9331 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9332 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9333 (xstormy16_frame_chain_valid): Update.
9334 * vax-tdep.c (vax_saved_pc_after_call): Update.
9335 * v850-tdep.c (v850_frame_chain): Update.
9336 (v850_pop_frame): Update.
9337 (v850_init_extra_frame_info): Update.
9338 * sparc-tdep.c (setup_arbitrary_frame): Update.
9339 * ns32k-tdep.c (umax_frame_num_args): Update.
9340 * s390-tdep.c (s390_pop_frame_regular): Update.
9341 * mn10300-tdep.c (mn10300_frame_chain): Update.
9342 (mn10300_pop_frame_regular): Update.
9343 (mn10300_init_extra_frame_info): Update.
9344 * mips-tdep.c (mips_init_frame_pc_first): Update.
9345 (mips_frame_chain): Update.
9346 (mips_pop_frame): Update.
9347 * mcore-tdep.c (mcore_frame_chain): Update.
9348 (mcore_pop_frame): Update.
9349 (mcore_init_extra_frame_info): Update.
9350 * arch-utils.c (init_frame_pc_default): Update.
9351 * m68k-tdep.c (isi_frame_num_args): Update.
9352 (delta68_frame_num_args): Update.
9353 (news_frame_num_args): Update.
9354 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9355 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9356 (alpha_frame_chain): Update.
9357 (alpha_pop_frame): Update.
9358 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9359 (hppa_init_extra_frame_info): Update.
9360 (hppa_frame_chain): Update.
9361 (hppa_frame_chain_valid): Update.
9362 * cris-tdep.c (cris_init_extra_frame_info): Update.
9363 * avr-tdep.c (avr_init_extra_frame_info): Update.
9364 * arm-tdep.c (arm_frame_chain_valid): Update.
9365 (arm_init_extra_frame_info): Update.
9366 (arm_pop_frame): Update.
9367 * frame.c (frame_pc_unwind): Update.
9368 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9369 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9370 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9371 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9372 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9373 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9374
7a25a7c1
AC
93752003-03-12 Andrew Cagney <cagney@redhat.com>
9376
9377 Eliminate the need for POP_FRAME.
9378 * frame.c (do_frame_unwind_register): New function.
9379 (frame_pop): When no POP_FRAME, pop the frame using register
9380 unwind and a scratch regcache.
9381 (frame_saved_regs_pop): Delete function.
9382 (trad_frame_unwinder): Update.
9383 * d10v-tdep.c (d10v_frame_pop): Delete function.
9384 (d10v_frame_unwind): Update.
9385 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9386 (sentinel_frame_unwinder): Update.
9387 * dummy-frame.c (dummy_frame_pop): Delete function.
9388 (dummy_frame_unwind): Update.
9389 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9390 (struct frame_unwind): Update.
9391
2f38ef89
KB
93922003-03-11 Kevin Buettner <kevinb@redhat.com>
9393
9394 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9395 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9396 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9397 Do range checks on register number obtained from debugging info.
9398 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9399 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9400 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9401 mapping function.
9402 (do_fp_register_row): Fix typo which caused double type to be
9403 used when attempting to unpack a float.
9404
552f4abf
JB
94052003-03-11 J. Brobecker <brobecker@gnat.com>
9406
9407 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9408
e0d2ae16
AC
94092003-03-11 Andrew Cagney <cagney@redhat.com>
9410
9411 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9412 frame. Problem found by Corinna Vinschen.
9413
ddbfdd06
PM
94142003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9415
9416 * doublest.c (floatformat_from_length): Accept also
9417 the real size of 'long double' type.
9418
088b2ddc 94192003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9420
088b2ddc 9421 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9422 * breakpoint.c (bpstat_copy): Copy the command lines as well
9423 as the old value, to match what is freed in bpstat_clear.
9424
f56f77c1
DC
94252003-03-10 David Carlton <carlton@math.stanford.edu>
9426
9427 * minsyms.c (add_minsym_to_hash_table): Replace
9428 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9429 (compare_minimal_symbols, compact_minimal_symbols)
9430 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9431 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9432 of DEPRECATED_SYMBOL_MATCHES_NAME.
9433 (lookup_minimal_symbol_solib_trampoline): Ditto.
9434
5602984a
AC
94352003-03-10 Andrew Cagney <cagney@redhat.com>
9436
9437 * regcache.h (regcache_cooked_read_ftype): Define.
9438 (regcache_save, regcache_restore): Add a cooked_read parameter.
9439 * regcache.c (regcache_save, regcache_restore): Update.
9440 (do_cooked_read): New function.
9441 (regcache_cpy): Pass do_cooked_read to regcache_save and
9442 regcache_restore.
9443
8bedc050
AC
94442003-03-10 Andrew Cagney <cagney@redhat.com>
9445
9446 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9447 * gdbarch.h, gdbarch.c: Re-generate.
9448 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9449 * x86-64-tdep.h: Update.
9450 * x86-64-tdep.c (x86_64_init_abi): Update.
9451 * v850-tdep.c (v850_gdbarch_init): Update.
9452 * sparc-tdep.c (sparc_gdbarch_init): Update.
9453 * sh-tdep.c (sh_gdbarch_init): Update.
9454 * s390-tdep.c (s390_gdbarch_init): Update.
9455 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9456 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9457 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9458 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9459 * mips-tdep.c (mips_gdbarch_init): Update.
9460 * mcore-tdep.c (mcore_gdbarch_init): Update.
9461 * m68k-tdep.c (m68k_gdbarch_init): Update.
9462 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9463 * ia64-tdep.c (ia64_gdbarch_init): Update.
9464 * i386-tdep.c (i386_gdbarch_init): Update.
9465 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9466 * hppa-tdep.c (hppa_gdbarch_init): Update.
9467 * h8300-tdep.c (h8300_gdbarch_init): Update.
9468 * frv-tdep.c (frv_gdbarch_init): Update.
9469 * cris-tdep.c (cris_gdbarch_init): Update.
9470 * avr-tdep.c (avr_gdbarch_init): Update.
9471 * arm-tdep.c (arm_gdbarch_init): Update.
9472 * alpha-tdep.c (alpha_gdbarch_init): Update.
9473 * sh-tdep.c (sh_init_extra_frame_info): Update.
9474 (sh64_init_extra_frame_info): Update.
9475 * ns32knbsd-nat.c (frame_num_args): Update.
9476 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9477 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9478 (xstormy16_frame_chain_valid): Update.
9479 * vax-tdep.c (vax_saved_pc_after_call): Update.
9480 * v850-tdep.c (v850_frame_chain): Update.
9481 (v850_pop_frame): Update.
9482 (v850_init_extra_frame_info): Update.
9483 * sparc-tdep.c (setup_arbitrary_frame): Update.
9484 * ns32k-tdep.c (umax_frame_num_args): Update.
9485 * s390-tdep.c (s390_pop_frame_regular): Update.
9486 * mn10300-tdep.c (mn10300_frame_chain): Update.
9487 (mn10300_pop_frame_regular): Update.
9488 (mn10300_init_extra_frame_info): Update.
9489 * mips-tdep.c (mips_init_frame_pc_first): Update.
9490 (mips_frame_chain): Update.
9491 (mips_pop_frame): Update.
9492 * mcore-tdep.c (mcore_frame_chain): Update.
9493 (mcore_pop_frame): Update.
9494 (mcore_init_extra_frame_info): Update.
9495 * arch-utils.c (init_frame_pc_default): Update.
9496 * m68k-tdep.c (isi_frame_num_args): Update.
9497 (delta68_frame_num_args): Update.
9498 (news_frame_num_args): Update.
9499 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9500 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9501 (alpha_frame_chain): Update.
9502 (alpha_pop_frame): Update.
9503 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9504 (hppa_init_extra_frame_info): Update.
9505 (hppa_frame_chain): Update.
9506 (hppa_frame_chain_valid): Update.
9507 * cris-tdep.c (cris_init_extra_frame_info): Update.
9508 * avr-tdep.c (avr_init_extra_frame_info): Update.
9509 * arm-tdep.c (arm_frame_chain_valid): Update.
9510 (arm_init_extra_frame_info): Update.
9511 (arm_pop_frame): Update.
9512 * frame.c (frame_pc_unwind): Update.
9513 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9514 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9515 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9516 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9517 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9518 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9519
12cc2063
AC
95202003-03-10 Andrew Cagney <cagney@redhat.com>
9521
9522 * gdbarch.sh (gdbarch_unwind_pc): New method.
9523 * gdbarch.h, gdbarch.c: Regenerate.
9524 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9525 but use read_pc and FRAME_SAVED_PC as fall backs.
9526 (frame_saved_regs_pc_unwind): Delete function.
9527 (trad_frame_unwinder): Update.
9528 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9529 (struct frame_unwind): Update.
9530 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9531 (dummy_frame_unwind): Update.
9532 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9533 (sentinel_frame_unwinder): Update.
9534 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9535 (d10v_frame_unwind): Update.
9536 (d10v_unwind_pc): New function.
9537 (d10v_gdbarch_init): Set unwind_pc.
9538
ef840a37
AC
95392003-03-10 Andrew Cagney <cagney@redhat.com>
9540
a2ce2e56
AC
9541 * gdbarch.h: Re-generate.
9542
ef840a37
AC
9543 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9544 PC.
9545 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9546 the PC register.
9547
08f3424b
MK
95482003-03-08 Mark Kettenis <kettenis@gnu.org>
9549
9550 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9551
1248ede2
AC
95522003-03-08 Andrew Cagney <cagney@redhat.com>
9553
9554 * cli-out.c: Update copyright.
9555 (cli_out_data): Define typedef. Use instead of ui_out_data.
9556
f49bacc8
AC
95572003-03-08 Andrew Cagney <cagney@redhat.com>
9558
9559 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9560 the result.
9561
9b05f993
AC
95622003-03-07 Andrew Cagney <cagney@redhat.com>
9563
9564 * gdbarch.sh: Don't generate two macro definitions when an
9565 undefined macro taking no arguments.
9566 * gdbarch.h: Regenerate.
8ffd9b1b 9567
166f4c7b
ML
95682002-03-07 Michal Ludvig <mludvig@suse.cz>
9569
9570 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9571 (x86_64_unwind_dummy_id): New functions.
9572 (x86_64_init_abi): Register these two new functions.
9573
6d686a84
ML
95742003-03-07 Michal Ludvig <mludvig@suse.cz>
9575
9576 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 9577 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
9578 separate function.
9579 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9580
6314f104
AC
95812003-03-05 Andrew Cagney <cagney@redhat.com>
9582
9583 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9584 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9585 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9586 to use unwind_dummy_id when a dummy frame.
9587 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9588 predicate.
9589 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9590
ceea5145
AC
95912003-03-05 Andrew Cagney <cagney@redhat.com>
9592
9593 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9594 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9595 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9596 values.
9597
0d843116
AC
95982003-03-05 Andrew Cagney <cagney@redhat.com>
9599
9600 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9601 (struct d10v_unwind_cache): Delete field "frameless". Replace
9602 "next_addr" with "sp_offset". Add "r11_offset".
9603 (d10v_frame_unwind_cache): Update.
9604 (prologue_find_regs): Update. When "mv r11, sp", save the
9605 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9606 RN was saved in r11_offset.
9607
b2579786
AC
96082003-03-05 Andrew Cagney <cagney@redhat.com>
9609
9610 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9611 cached PC value in the next frame.
9612
218e5956
AC
96132003-03-05 Andrew Cagney <cagney@redhat.com>
9614
9615 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9616 "id_unwind_cache" with "id".
9617 (frame_id_unwind): Delete declaration.
9618 * frame.c (frame_id_unwind): Delete function.
9619 (get_prev_frame): Call the frame id unwind method directly. Store
9620 the returned next frame's ID value in NEXT_FRAME. Note that there
9621 is a problem with the wrong unwind ID being called with the wrong
9622 unwind cache.
9623
ed363b1b
DJ
96242003-03-05 Daniel Jacobowitz <drow@mvista.com>
9625
9626 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9627
fe1f4a5e
DJ
96282003-03-05 James Ingham <jingham@apple.com>
9629 Daniel Jacobowitz <drow@mvista.com>
9630
9631 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9632 (auto_cp_abi): New variable.
9633 (current_cp_abi, num_cp_abis): Make static.
9634 (CP_ABI_MAX): Define.
9635 (cp_abis): Turn into an array.
9636 (value_virtual_fn_field): Fix formatting.
9637 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9638 takes a pointer.
9639 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9640 (list_cp_abis, _initialize_cp_abi): New functions.
9641 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9642 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9643 switch_to_cp_abi. Update prototype for register_cp_abi.
9644 * Makefile.in (cp-abi.o): Update dependencies.
9645 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9646 instead of switch_to_cp_abi.
9647 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9648 register_cp_abi.
9649 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9650 register_cp_abi.
9651 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9652
e4adbba9
DJ
96532003-03-05 Daniel Jacobowitz <drow@mvista.com>
9654
9655 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9656 * dwarf2loc.c: Include "regcache.h".
9657 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9658 register_size.
9659 * Makefile.in (dwarf2loc.o): Update dependencies.
9660
91ccbfc1
TR
96612003-03-04 Theodore A. Roth <troth@openavr.org>
9662
9663 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9664 number of io registers reported by remote target is not a multiple of
9665 step.
9666
3d4e8fd2
DC
96672003-03-04 David Carlton <carlton@math.stanford.edu>
9668
9669 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9670 (lookup_symbol_aux_psymtabs): Update call to
9671 lookup_partial_symbol.
9672 (lookup_transparent_type, find_main_psymtab)
9673 (make_symbol_overload_list): Ditto.
9674
ed42d87b
KH
96752003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9676
9677 * MAINTAINERS (Write after approval): Update my email address.
9678
a0ed5532
AC
96792003-03-03 Andrew Cagney <cagney@redhat.com>
9680
9681 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9682 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9683 predicate. Replace MAX_REGISTER_RAW_SIZE.
9684 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9685 MAX_REGISTER_VIRTUAL_SIZE.
9686 * regcache.c (legacy_max_register_raw_size): New function.
9687 (legacy_max_register_virtual_size): New function.
9688 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9689 (MAX_REGISTER_RAW_SIZE): Define.
9690 (legacy_max_register_raw_size): Declare.
9691 (legacy_max_register_virtual_size): Declare.
9692 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9693 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9694 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9695 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9696 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9697 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9698 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9699 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9700 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9701 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9702 * vax-tdep.c (vax_gdbarch_init): Update.
9703 * v850-tdep.c (v850_gdbarch_init): Update.
9704 * sparc-tdep.c (sparc_gdbarch_init): Update.
9705 * sh-tdep.c (sh_gdbarch_init): Update.
9706 * s390-tdep.c (s390_gdbarch_init): Update.
9707 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9708 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9709 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9710 * mips-tdep.c (mips_gdbarch_init): Update.
9711 * mcore-tdep.c (mcore_gdbarch_init): Update.
9712 * m68k-tdep.c (m68k_gdbarch_init): Update.
9713 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9714 * ia64-tdep.c (ia64_gdbarch_init): Update.
9715 * i386-tdep.c (i386_gdbarch_init): Update.
9716 * hppa-tdep.c (hppa_gdbarch_init): Update.
9717 * h8300-tdep.c (h8300_gdbarch_init): Update.
9718 * frv-tdep.c (frv_gdbarch_init): Update.
9719 * cris-tdep.c (cris_gdbarch_init): Update.
9720 * avr-tdep.c (avr_gdbarch_init): Update.
9721 * arm-tdep.c (arm_gdbarch_init): Update.
9722 * alpha-tdep.c (alpha_gdbarch_init): Update.
9723 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9724 max_register_raw_size or max_register_virtual_size.
9725
8e437497
DC
97262003-03-03 David Carlton <carlton@math.stanford.edu>
9727
9728 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9729 SYMBOL_MATCHES_NAME, add comment.
9730 (SYMBOL_MATCHES_NATURAL_NAME): New.
9731 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9732 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9733 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9734 * symtab.c (lookup_partial_symbol): Use
9735 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9736 unhelpful comment.
9737 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9738 SYMBOL_MATCHES_NAME.
9739 Fix for PR c++/33.
9740
25120b0d
DC
97412003-03-03 David Carlton <carlton@math.stanford.edu>
9742
9743 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9744 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9745 by regexp matching against SYMBOL_NATURAL_NAME.
9746
78a11fb4
DC
97472003-03-03 David Carlton <carlton@math.stanford.edu>
9748
9749 * linespec.c (find_method): Extract code into collect_methods.
9750 (collect_methods): New.
9751
645dd519
MK
97522003-03-02 Mark Kettenis <kettenis@gnu.org>
9753
b4700d91
MK
9754 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9755 get_frame_base.
9756
645dd519
MK
9757 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9758 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9759
0aa7e1aa
SC
97602003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9761
8ffd9b1b 9762 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9763 and not regnum when summing the size of all registers up to regnum.
9764
f30ee0bc
AC
97652003-03-01 Andrew Cagney <cagney@redhat.com>
9766
9767 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9768 FRAME_INIT_SAVED_REGS.
9769 * gdbarch.h, gdbarch.c: Regenerate.
9770 * stack.c (frame_info): Update.
9771 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9772 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9773 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9774 * ns32k-tdep.c (ns32k_pop_frame): Update.
9775 * mips-tdep.c (mips_pop_frame): Update.
9776 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9777 * ia64-tdep.c (ia64_frame_chain): Update.
9778 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9779 (ia64_frameless_function_invocation): Update.
9780 (ia64_init_extra_frame_info): Update.
9781 (ia64_pop_frame_regular): Update.
9782 * frame.h (struct frame_info): Update comment.
9783 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9784 * frame.c (frame_saved_regs_register_unwind): Update.
9785 (frame_saved_regs_register_unwind): Update.
9786 (deprecated_generic_get_saved_register): Update.
9787 * cris-tdep.c: Update comment.
9788 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9789 Rename macro.
9790 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9791 * x86-64-tdep.c (x86_64_init_abi): Update.
9792 * vax-tdep.c (vax_gdbarch_init): Update.
9793 * v850-tdep.c (v850_gdbarch_init): Update.
9794 * sparc-tdep.c (sparc_gdbarch_init): Update.
9795 * sh-tdep.c (sh_gdbarch_init): Update.
9796 * s390-tdep.c (s390_gdbarch_init): Update.
9797 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9798 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9799 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9800 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9801 * mips-tdep.c (mips_gdbarch_init): Update.
9802 * mcore-tdep.c (mcore_gdbarch_init): Update.
9803 * m68k-tdep.c (m68k_gdbarch_init): Update.
9804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9805 * ia64-tdep.c (ia64_gdbarch_init): Update.
9806 * i386-tdep.c (i386_gdbarch_init): Update.
9807 * frv-tdep.c (frv_gdbarch_init): Update.
9808 * avr-tdep.c (avr_gdbarch_init): Update.
9809 * arm-tdep.c (arm_gdbarch_init): Update.
9810 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9811
42fa7c0f
AC
98122003-03-01 Andrew Cagney <cagney@redhat.com>
9813
9814 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9815 option enum and switch. When no windows, set the interpreter to
9816 INTERP_CONSOLE.
8ffd9b1b 9817
49c7e338
AC
98182003-03-01 Andrew Cagney <cagney@redhat.com>
9819
9820 * main.c (captured_main): Replace magic option characters with an
9821 enum.
9822
e9582e71
AC
98232003-03-01 Andrew Cagney <cagney@redhat.com>
9824
9825 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9826 INIT_EXTRA_FRAME_INFO.
9827 * gdbarch.h, gdbarch.c: Regenerate.
9828 * arm-tdep.c: Update comments.
9829 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9830 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9831 * frame.h, avr-tdep.c: Ditto.
9832 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9833 (create_new_frame, legacy_get_prev_frame): Ditto.
9834 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9835 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9836 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9837 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9838 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9839 * v850-tdep.c (v850_gdbarch_init): Ditto.
9840 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9841 * sh-tdep.c (sh_gdbarch_init): Ditto.
9842 * s390-tdep.c (s390_gdbarch_init): Ditto.
9843 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9844 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9845 * mips-tdep.c (mips_gdbarch_init): Ditto.
9846 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9847 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9848 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9849 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9850 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9851 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9852 * frv-tdep.c (frv_gdbarch_init): Ditto.
9853 * cris-tdep.c (cris_gdbarch_init): Ditto.
9854 * avr-tdep.c (avr_gdbarch_init): Ditto.
9855 * arm-tdep.c (arm_gdbarch_init): Ditto.
9856 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9857 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9858
35cac7cf
AC
98592003-03-01 Andrew Cagney <cagney@redhat.com>
9860
9861 * gdbarch.sh (register_type): New function with predicate.
9862 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9863 * gdbarch.h, gdbarch.c: Re-generate.
9864 * arch-utils.c (generic_register_byte): Use generic_register_size.
9865 (generic_register_size): When available, use
9866 gdbarch_register_type.
9867 * regcache.c (init_regcache_descr): When available, initialize the
9868 register type array using gdbarch_register_type. If the
9869 architecture supplies gdbarch_register_type, do not use the legacy
9870 regcache layout.
9871 * d10v-tdep.c (d10v_register_type): Replace
9872 d10v_register_virtual_type.
9873 (d10v_gdbarch_init): Set register_type instead of
9874 register_virtual_type.
9875
7b83296f
AC
98762003-03-01 Andrew Cagney <cagney@redhat.com>
9877
9878 * Makefile.in (ax-gdb.o): Update dependencies.
9879 * ax-gdb.c: Include "regcache.h".
9880 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9881 * findvar.c (value_of_register): Ditto.
9882 * infcmd.c (default_print_registers_info): Ditto.
9883
eadc1c87
MK
98842003-03-01 Mark Kettenis <kettenis@gnu.org>
9885
9886 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9887 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9888
14143612
MK
98892003-03-01 Mark Kettenis <kettenis@gnu.org>
9890
9891 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9892 of STREQ.
9893
a55cc764
DJ
98942003-02-28 Daniel Jacobowitz <drow@mvista.com>
9895
9896 * Makefile.in (dwarf2loc.o): Update dependencies.
9897 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9898 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9899 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9900 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9901 (locexpr_tracepoint_var_ref): New function.
9902 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9903
08a617da
AC
99042003-02-28 Andrew Cagney <cagney@redhat.com>
9905
9906 * regcache.c (register_size): New function.
9907 * regcache.h (register_size): Declare
9908 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9909 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9910
4224873a
DC
99112003-02-28 David Carlton <carlton@math.stanford.edu>
9912
9913 * linespec.c (decode_compound): Extract code into find_method.
9914 (find_method): New.
9915
ccdc5d7f
JB
99162003-02-28 J. Brobecker <brobecker@gnat.com>
9917
9918 * Makefile.in: Add rules to build and link in observer.o.
9919
974e8ced
JB
99202003-02-27 J. Brobecker <brobecker@gnat.com>
9921
9922 * observer.c: Minor comments edits.
9923
7a28f973
JB
99242003-02-27 J. Brobecker <brobecker@gnat.com>
9925
9926 * observer.h, observer.c: New file.
9927
27cddce2
AC
99282003-02-27 Andrew Cagney <cagney@redhat.com>
9929
9930 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9931
b94a41a1
SC
99322003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9933
9934 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9935 (M6812_OP_STS_EXT): Likewise.
9936 (m6811_prologue): Use the above to recognize prologue.
9937 (m6812_prologue): Likewise.
9938
c8be8951
DC
99392003-02-27 David Carlton <carlton@math.stanford.edu>
9940
9941 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9942 SYMBOL_PRINT_NAME.
9943 (compare_psymbols): Ditto.
9944 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9945
d05bb1fc
MS
99462003-02-27 Michael Snyder <msnyder@redhat.com>
9947
4e845cd3
MS
9948 * f-lang.c (build_fortran_types): New function.
9949 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9950 * doublest.c (extract_floating): Fix warning text.
9951
f3824013
AC
99522003-02-27 Andrew Cagney <cagney@redhat.com>
9953
9954 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9955 predicate. Replaces PUSH_DUMMY_FRAME.
9956 * gdbarch.h, gdbarch.c: Regnerate.
9957 * valops.c (hand_function_call): Update. Call
9958 generic_push_dummy_frame directly.
9959 * vax-tdep.c (vax_gdbarch_init): Update.
9960 * sparc-tdep.c (sparc_gdbarch_init): Update.
9961 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9962 * m68k-tdep.c (m68k_gdbarch_init): Update.
9963 * hppa-tdep.c (hppa_gdbarch_init): Update.
9964 * alpha-tdep.c (alpha_gdbarch_init): Update.
9965 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9966 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9967 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9968 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9969 push_dummy_frame to generic_push_dummy_frame.
9970 * v850-tdep.c (v850_gdbarch_init): Ditto.
9971 * sh-tdep.c (sh_gdbarch_init): Ditto.
9972 * s390-tdep.c (s390_gdbarch_init): Ditto.
9973 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9974 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9975 * mips-tdep.c (mips_gdbarch_init): Ditto.
9976 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9977 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9978 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9979 * i386-tdep.c (i386_gdbarch_init): Ditto.
9980 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9981 * frv-tdep.c (frv_gdbarch_init): Ditto.
9982 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9983 * cris-tdep.c (cris_gdbarch_init): Ditto.
9984 * avr-tdep.c (avr_gdbarch_init): Ditto.
9985 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9986
ad188201
KB
99872003-02-26 Kevin Buettner <kevinb@redhat.com>
9988
9989 * mips-tdep.c (show_mips_abi): New function.
9990 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9991 command ``show mips abi''.
9992
6b37567a 99932003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9994
6b37567a 9995 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9996 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9997 more sline entries have been seen for the function.
9998
d3e0a5bf
MC
99992003-02-26 Michael Chastain <mec@shout.net>
10000
10001 * configure: Regenerate with autoconf 000227.
10002
18972eea
MC
100032003-02-26 Michael Chastain <mec@shout.net>
10004
10005 Close PR build/660.
10006 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10007 for old libc5/glibc.
10008 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10009
0bbde931
KW
100102003-02-26 Kris Warkentin <kewarken@qnx.com>
10011
10012 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10013 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10014
27ca5dad
MC
100152003-02-26 Michael Chastain <mec@shout.net>
10016
10017 * configure.in: New variable HAVE_UINTPTR_T.
10018 * configure, config.in: Regenerated.
10019
6f88d630
DJ
100202003-02-26 Daniel Jacobowitz <drow@mvista.com>
10021
10022 Fix PR build/1097.
10023 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10024
b14185ce
AC
100252003-02-25 Andrew Cagney <cagney@redhat.com>
10026
10027 * frame.c (get_prev_frame): Add comment on check for
10028 inside_entry_func. Only check for inside_entry_file when not a
10029 dummy and not a sentinel. Check that the new frame is not inner
10030 to the old frame.
10031
ac2bd0a9
AC
100322003-02-25 Andrew Cagney <cagney@redhat.com>
10033
10034 * frame.c (frame_debug): New variable.
10035 (_initialize_frame): Add "set/show debug frame" command.
10036 (get_prev_frame): When frame_debug, print reason why unwind
10037 failed.
10038
b18a0fd2
MC
100392003-02-25 Michael Chastain <mec@shout.net>
10040
10041 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10042 to avoid uintptr_t definition problems.
10043
22abf04a
DC
100442003-02-25 David Carlton <carlton@math.stanford.edu>
10045
10046 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10047 (SYMBOL_LINKAGE_NAME): Ditto.
10048 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10049 SYMBOL_LINKAGE_NAME.
10050 (struct general_symbol_info): Expand comment.
10051 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10052 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10053 (SYMBOL_MATCHES_REGEXP): Ditto.
10054 * symtab.c (symbol_natural_name): New function.
10055 * objfiles.h: Replace all uses of SYMBOL_NAME by
10056 DEPRECATED_SYMBOL_NAME.
10057 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10058 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10059 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10060 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10061 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10062 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10063 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10064 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10065 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10066 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10067 * ada-exp.y: Ditto.
10068 * ada-exp.y: Update copyright.
10069 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10070 * cp-valprint.c: Ditto.
10071
1a5848f6
JJ
100722003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10073
10074 * infptrace.c (detach): Do not flag error if ptrace detach fails
10075 and errno is set to ESRCH.
10076
7343d46a
AC
100772003-02-24 Andrew Cagney <cagney@redhat.com>
10078
10079 * infptrace.c (udot_info): Change type of udot_off to long. Use
10080 paddr when printing udot_off's value.
10081
49fa1dc2
DC
100822003-02-24 David Carlton <carlton@math.stanford.edu>
10083
10084 * symtab.c (make_symbol_overload_list): Only read in partial
10085 symtabs containing a matching partial symbol.
10086
0fe19209
DC
100872003-02-24 David Carlton <carlton@math.stanford.edu>
10088
10089 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10090 do the comparison, not strcmp.
10091 * symfile.c (compare_psymbols): Ditto.
10092 * defs.h: Declare strcmp_iw_ordered.
10093 * utils.c (strcmp_iw_ordered): New function.
10094
8e3ee7b5
JB
100952003-02-24 Jim Blandy <jimb@redhat.com>
10096
10097 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10098 support, shared libs): Remove my name from here, to better reflect
10099 reality.
10100
7df1a324
KW
101012003-02-24 Kris Warkentin <kewarken@qnx.com>
10102
10103 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10104 (target_ops): Add to_have_continuable_watchpoint.
10105 * target.c (update_current_target): Add INHERIT line for
10106 to_have_continuable_watchpoint.
10107 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10108 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10109 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10110 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10111
d1c76907
EZ
101122003-02-24 Elena Zannoni <ezannoni@redhat.com>
10113
10114 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10115 maintainership.
10116
2610b0bf
KW
101172003-02-24 Kris Warkentin <kewarken@qnx.com>
10118
f46169db
KW
10119 * solib.c (solib_open): Call target defined search function after
10120 failing with solib-search-path.
10121 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10122 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10123
9a3c34fe
KW
101242003-02-24 Kris Warkentin <kewarken@qnx.com>
10125
f46169db 10126 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10127
2417dd25
SC
101282003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10129
10130 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10131
b631436b
SC
101322003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10133
10134 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10135 (m68hc11_add_reggroups): New function.
10136 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10137 (m68hc11_gdbarch_init): Install the reggroups.
10138 (_initialize_m68hc11_tdep): Initialize them.
10139
0aa8c1e4
JW
101402003-02-21 James E Wilson <wilson@tuliptree.org>
10141
10142 * MAINTAINERS: Update my email address.
10143
50ceaba5
DC
101442003-02-21 David Carlton <carlton@math.stanford.edu>
10145
10146 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10147
4c2df51b
DJ
101482003-02-21 Daniel Jacobowitz <drow@mvista.com>
10149
10150 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10151 * symtab.h: Add opaque declarations of struct axs_value and
10152 struct agent_expr.
10153 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10154 (struct location_funcs): New type.
10155 (struct symbol): Add "loc" to aux_value.
10156 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10157 * dwarf2read.c: Include "dwarf2expr.h".
10158 (dwarf2_symbol_mark_computed): New function.
10159 (read_func_scope): Use it.
10160 (var_decode_location): New function.
10161 (new_symbol): Use it.
10162 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10163
10164 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10165 (dwarf2expr_h, dwarf2loc_h): New variables.
10166 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10167 (dwarf2expr.o, dwarf2loc.o): New rules.
10168 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10169 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10170 LOC_COMPUTED_ARG.
10171 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10172 * m2-exp.y (yylex): Likewise.
10173 * printcmd.c (address_info, print_frame_args): Likewise.
10174 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10175 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10176 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10177 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10178 * symtab.c (lookup_block_symbol): Likewise.
10179
5784d15e
AF
101802003-02-20 Adam Fedor <fedor@gnu.org>
10181
10182 * symtab.h: Remove objc_specific struct
10183 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10184 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10185 Have language_objc use cplus_specific struct.
10186
d4cad8db
TT
101872003-02-20 Tom Tromey <tromey@redhat.com>
10188
10189 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10190 TYPE_NAME, when printing a String value. PR java/1075.
10191
2f9a90b4
AF
101922003-02-20 Adam Fedor <fedor@gnu.org>
10193
d38074a8 10194 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10195 * objc-lang.c (find_methods): Make static.
2f9a90b4 10196
6f17862b
CF
101972003-02-20 Christopher Faylor <cgf@redhat.com>
10198
10199 * win32-nat.c (get_image_name): Check return value from
10200 ReadProcessMemory.
10201 (child_xfer_memory): Ditto.
10202
715d1656
AO
102032003-02-20 Alexandre Oliva <aoliva@redhat.com>
10204
10205 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10206 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10207 '${exec_prefix}' (in addition to the expansion thereof) as
10208 relocatable.
10209 * configure: Rebuilt.
10210
b1262a02
DC
102112003-02-20 David Carlton <carlton@math.stanford.edu>
10212
10213 * symtab.c (search_symbols): Revert the search_symbols part of my
10214 2002-12-23 patch. Add comment.
10215
7134143f
DJ
102162002-02-20 Daniel Jacobowitz <drow@mvista.com>
10217
10218 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10219 * dbxread.c (elfstab_build_psymtabs): Don't call
10220 install_minimal_symbols.
10221 (stabsect_build_psymtabs): Likewise.
10222 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10223 earlier.
10224 * somread.c (som_symfile_read): Call install_minimal_symbols
10225 and do_cleanups earlier.
10226 * nlmread.c (nlm_symfile_read): Likewise.
10227 * mdebugread.c (elfmdebug_build_psymtabs): Call
10228 install_minimal_symbols and make appropriate cleanups.
10229
cf466558
KB
102302003-02-20 Kevin Buettner <kevinb@redhat.com>
10231
10232 * solib.c (reload_shared_libraries): New function.
10233 (_initialize_solib): Add callbacks for ``set solib-search-path''
10234 and ``set solib-absolute-prefix''.
10235
de5ad195
DC
102362003-02-20 David Carlton <carlton@math.stanford.edu>
10237
10238 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10239 expand comment.
10240 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10241 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10242 * ada-typeprint.c (ada_typedef_print): Ditto.
10243 * ax-gdb.c (gen_var_ref): Ditto.
10244 * breakpoint.c (print_one_breakpoint): Ditto.
10245 * buildsym.c (finish_block): Ditto.
10246 * c-valprint.c (c_val_print): Ditto.
10247 * expprint.c (print_subexp): Ditto.
10248 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10249 * infcmd.c (jump_command): Ditto.
10250 * linespec.c (decode_line_2, decode_compound): Ditto.
10251 * maint.c (maintenance_translate_address): Ditto.
10252 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10253 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10254 Ditto.
8ffd9b1b
AJ
10255 * p-valprint.c (pascal_val_print): Ditto.
10256 * stabsread.c (define_symbol): Ditto.
de5ad195 10257 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10258 (print_frame_arg_vars, return_command): Ditto.
10259 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10260 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10261 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10262 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10263 (rbreak_command): Ditto.
10264 * tracepoint.c (tracepoints_info): Ditto.
10265 * typeprint.c (typedef_print): Ditto.
10266 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10267 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10268 * ada-typeprint.c: Update Copyright.
10269 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10270 * tracepoint.c, cli/cli-cmds.c: Ditto.
10271
f796e4be
KB
102722003-02-20 Kevin Buettner <kevinb@redhat.com>
10273
10274 * frame.c (generic_unwind_get_saved_register): Make non-static.
10275 * frame.h (generic_unwind_get_saved_register): Declare.
10276 * mips-tdep.c (read_next_frame_reg): Fetch register from
10277 current regcache when frame is NULL.
10278 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10279 that must be NULL.
10280 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10281 instead of frame_register_unwind().
10282
836cc9f4
AC
102832003-02-20 Andrew Cagney <ac131313@redhat.com>
10284
10285 * remote-sim.c (gdbsim_insert_breakpoint)
10286 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10287 code.
10288
501eef12
AC
102892003-02-20 Andrew Cagney <ac131313@redhat.com>
10290
10291 * remote.c (_initialize_remote): Add commands "set/show remote
10292 hardware-watchpoint-limit" and "set/show remote
10293 hardware-breakpoint-limit".
10294 (remote_hw_watchpoint_limit): Initialize to -1.
10295 (remote_hw_breakpoint_limit): Ditto.
10296 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10297
1b6bc7e0
CF
102982003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10299
10300 * coff-pe-read.c: New file - support reading of minimal symbols from a
10301 portable executable using the export table.
10302 * coff-pe-read.h: New file.
10303 * coffread.c: Include coff-pe-read.h.
10304 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10305 debugging symbols found.
10306 * Makefile.in (SFILES): Add coff-pe-read.o.
10307 (coff_pe_read_h): Define.
10308 (COMMON_OBS): Add coff-pe-read.o.
10309 (coffread.o): Add coff_pe_read_h dependency.
10310 (coff-pe-read.o): New target.
10311
fe898f56
DC
103122003-02-19 David Carlton <carlton@math.stanford.edu>
10313
10314 * Makefile.in (SFILES): Add block.c.
10315 (block_h): New.
10316 (COMMON_OBS): Add block.o.
10317 (block.o): New.
10318 (x86-64-tdep.o): Add $(block_h).
10319 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10320 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10321 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10322 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10323 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10324 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10325 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10326 * value.h: Add opaque declaration for struct block.
10327 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10328 * ada-lang.h: Ditto.
10329 * x86-64-tdep.c: #include "block.h"
10330 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10331 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10332 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10333 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10334 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10335 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10336 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10337 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10338 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10339 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10340 * symtab.c (block_function): Ditto.
10341 (contained_in): Ditto.
10342 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10343 block.h. Add opaque declaration for struct block.
10344 * symtab.h: Move block_function and contained_in declarations to
10345 block.h. Add opaque declarations for struct block, struct
10346 blockvector.
10347 (struct block): Move to block.h.
10348 (struct blockvector): Ditto.
10349 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10350 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10351 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10352 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10353 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10354 Ditto.
10355 * block.c: New file.
10356 * block.h: New file.
10357
173345b5
TR
103582003-02-19 Theodore A. Roth <troth@openavr.org>
10359
10360 * avr-tdep.c (avr_extract_return_value): Remove function.
10361 (avr_store_return_value): Remove function.
10362 (avr_extract_struct_value_address): Remove function.
10363 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10364
338ef23d
AC
103652003-02-19 Andrew Cagney <ac131313@redhat.com>
10366
10367 * rs6000-tdep.c: Include "gdb_assert.h".
10368 (registers_e500): Add "acc" and "spefscr".
10369 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10370 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10371 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10372 really is "r0".
10373 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10374
5412f5f3
KS
103752003-02-18 Keith Seitz <keiths@redhat.com>
10376
10377 * Makefile.in: Add gdbtk-interps.c.
10378
881324eb
KB
103792003-02-18 Kevin Buettner <kevinb@redhat.com>
10380
10381 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10382 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10383
6a2f5abf
AC
103842003-02-18 Andrew Cagney <cagney@redhat.com>
10385
10386 * symtab.h (struct objfile): Add opaque declaration.
10387
54c7009d
EZ
103882003-02-18 Elena Zannoni <ezannoni@redhat.com>
10389
10390 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10391 * dbxread.c (process_one_symbol): Use last_function_start rather
10392 than function_start_offset to find the real beginning of the
10393 current function. The latter is just the text section offset on
10394 some systems, the former is always the real function start.
54c7009d 10395
7ee6d7eb
AC
103962003-02-17 Andrew Cagney <cagney@redhat.com>
10397
10398 * configure.in: Revert ${target} != ${host}.
10399
2846da9b
AC
104002003-02-17 Andrew Cagney <ac131313@redhat.com>
10401
10402 * configure.in (Makefile): Use the test ${target} != ${host},
10403 instead of the absence of the "nm.h" file, to determine of the
10404 configuration non-native.
10405 * configure: Regenerate.
8ffd9b1b 10406
3b27aeea
EZ
104072003-02-14 Elena Zannoni <ezannoni@redhat.com>
10408
fbe586ae 10409 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10410
10411 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10412 conditionalize tui_active test.
10413 (lookup_cmd_1): Ditto.
10414
b0b1c2c0
MK
104152003-02-14 Mark Kettenis <kettenis@gnu.org>
10416
10417 * configure.in: Add check for _etext.
10418 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10419 available.
10420 * config.in, configure: regenerated.
10421
8f05cde5
DJ
104222003-02-14 Daniel Jacobowitz <drow@mvista.com>
10423
10424 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10425
021e7609
AC
104262003-02-14 Andrew Cagney <ac131313@redhat.com>
10427
10428 * main.c (tui_version): Delete variable.
10429 (captured_main): When --tui, set interpreter_p to "tui" instead of
10430 enabling tui_version.
10431 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10432 tui_version.
10433 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10434 * cli/cli-cmds.c (disassemble_command): Ditto.
10435 * defs.h (tui_version): Delete declaration.
10436 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10437 (tui-interp.o): Add rules.
10438 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10439
e325dcec
CF
104402003-02-14 Christopher Faylor <cgf@redhat.com>
10441
36ffb041 10442 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10443 just-loaded dll.
10444
c4f90d87
JM
104452003-02-12 Jason Molenda (jmolenda@apple.com)
10446
fbe586ae
RH
10447 * symmisc.c (print_objfile_statistics): Include information about
10448 the number of psymtabs and symtabs in each object file.
c4f90d87 10449
e46e5ccd
KS
104502003-02-13 Keith R Seitz <keiths@redhat.com>
10451
10452 * main.h (struct captured_main_args): Add interpreter_p.
10453 * main.c (captured_main): Initialize interpreter_p from context.
10454 * gdb.c (main): Set interpreter_p argument.
10455 * Makefile.in (gdb.o): Add dependency for interps.h.
10456
fe97fe9c
AC
104572003-02-12 Andrew Cagney <ac131313@redhat.com>
10458
10459 * event-top.c (cli_command_loop): Delete declaration.
10460 (_initialize_event_loop): Delete function setting event_loop_hook.
10461 * event-top.h (cli_command_loop): Declare. Update copyright.
10462 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10463 * interps.c (current_interp_command_loop): When event_loop_p, call
10464 cli_command_loop.
10465
1cdac4ef
AC
104662003-02-12 Andrew Cagney <ac131313@redhat.com>
10467
10468 * interps.h (interp_command_loop_ftype): Change return type to
10469 void.
10470
48037ead
ML
104712003-02-12 Michal Ludvig <mludvig@suse.cz>
10472
10473 * x86-64-tdep.c (x86_64_extract_return_value)
10474 (x86_64_store_return_value): Use regcache instead of regbuf.
10475 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10476 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10477
033afc63
AC
104782003-02-11 Andrew Cagney <ac131313@redhat.com>
10479
10480 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10481 * aclocal.m4: Regenerate.
10482 * configure: Regenerate.
10483
10484 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10485 TCL_LD_SEARCH_FLAGS.
10486
40d02bca
ML
104872003-02-10 Michal Ludvig <mludvig@suse.cz>
10488
10489 * dwarf2cfi.c: Reindented.
10490
11308a41
AC
104912003-02-09 Andrew Cagney <ac131313@redhat.com>
10492
10493 * interps.c (clear_interpreter_hooks): Convert function definition
10494 to ISO C.
10495
e1c1c0f6
DC
104962003-02-07 David Carlton <carlton@math.stanford.edu>
10497
10498 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10499
ab5d3da6
KB
105002003-02-07 Kevin Buettner <kevinb@redhat.com>
10501
10502 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10503 (struct type): ...to here.
10504 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10505 field.
10506 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10507 (replace_type): Set length on all type variants for a given type.
10508
b8a92b82
AC
105092003-02-07 Andrew Cagney <ac131313@redhat.com>
10510
10511 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10512 <sys/stat.h>.
10513 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10514
5cb316ef
AC
105152003-02-06 Andrew Cagney <ac131313@redhat.com>
10516
2555fe1a
AC
10517 * Makefile.in (symm-nat.o): Update dependencies.
10518 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10519 (lynx-nat.o, ia64-linux-nat.): Ditto.
10520 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10521 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10522 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10523
44270758
AC
10524 * Makefile.in (inflow_h): Define.
10525 (procfs.o, inflow.o, procfs.o): Update dependencies.
10526 * inftarg.c (child_stop): Delete extern declaration of
10527 inferior_process_group. Include "inflow.h".
10528 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10529 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10530 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10531 (our_process_group, inferior_process_group): Extern declarations.
10532
df8f7274
AC
10533 * procfs.c: Include "gdb_assert.h".
10534
5cb316ef
AC
10535 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10536 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10537 * jv-typeprint.c (java_type_print_base): Ditto.
10538 * typeprint.c (typedef_print): Eliminate STREQ.
10539 * cli/cli-script.c (define_command, define_command): Ditto.
10540 * main.c (captured_main): Ditto.
10541 * values.c (lookup_internalvar): Ditto.
10542 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10543 within `if' conditional.
10544 * linespec.c (decode_line_2): Ditto.
10545 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10546 (bfd_openw_with_cleanup): Ditto.
10547
2a28ccea
MK
105482003-02-07 Mark Kettenis <kettenis@gnu.org>
10549
10550 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10551 legacy_extract_return_value and store_return_value to
10552 legacy_return_value.
10553
786b8124
CF
105542003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10555
10556 * win32-nat.c (get_relocated_section_addrs): New function. Find
10557 section load addresses for symbol handling in relocated DLLs.
10558 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10559
b871e4ec
FF
105602003-02-05 Fred Fish <fnf@intrinsity.com>
10561
10562 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10563 '=' and '!='.
10564 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10565 with '&' and '=='.
10566 (angel_RDI_info): Ditto.
10567 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10568 with '&' and '!='.
10569 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 10570
4389a95a 105712003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
10572 Keith Seitz <keiths@redhat.com>
10573 Elena Zannoni <ezannoni@redhat.com>
10574 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
10575
10576 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10577 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10578 (SUBDIR_MI_OBS): Add "mi-interp.o".
10579 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10580 (SFILES): Add "interps.c".
10581 (COMMON_OBS): Add "interps.o".
10582 (interps_h, mi_main_h): Define.
10583 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10584 (mi-main.o, main.o, event-top.o): Update dependencies.
10585 * cli/cli-interp.c: New file.
10586 * interps.h, interps.c: New files.
10587 * top.c: (gdb_init): Don't install the default interpreter, handed
10588 by captured_main.
10589 * main.c: Include "interps.h".
10590 (interpreter_p): Note that it should malloc'ed.
10591 (captured_command_loop): Call current_interp_command_loop.
10592 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10593 xfree and xstrdup when updating interpreter_p. Install the
10594 default interpreter. Add hack to stop mi1's copyright notice
10595 being encoded.
10596 * event-top.h (gdb_setup_readline): Declare.
10597 (gdb_disable_readline): Declare.
10598 * event-top.c: Include "interps.h".
10599 (display_gdb_prompt): Call current_interp_display_prompt_p.
10600 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10601 gdb_stdlog, and gdb_stdtarg.
10602 (_initialize_event_loop): Don't call gdb_setup_readline.
10603 * cli-out.c (cli_out_set_stream): New function.
10604 * cli-out.h (cli_out_set_stream): Declare.
10605
ff3b5810
MK
106062003-02-06 Mark Kettenis <kettenis@gnu.org>
10607
10608 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10609 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10610 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10611 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10612 config/i386/i386v42mp.mt: Removed.
10613
5b729aa5
MK
106142003-02-05 Mark Kettenis <kettenis@gnu.org>
10615
10616 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10617 GDB_OSABI_SOLARIS.
10618
8cc15142
MC
106192003-02-05 Michael Chastain <mec@shout.net>
10620
10621 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10622 2.12.1 and earlier versions.
10623
5aa5d4b9
AC
106242003-02-05 Andrew Cagney <ac131313@redhat.com>
10625
10626 Remove orphaned hosts, targets and files.
10627 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10628 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10629 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10630 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10631 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10632 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10633 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10634 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10635 * config/sparc/tm-sp64sim.h: Delete.
10636 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10637 hosts.
10638 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10639 mips*-dec-mach3* targets.
10640
b68767c1
MC
106412003-02-04 Michael Chastain <mec@shout.net>
10642
10643 * NEWS: Fix typo: sepcifying -> specifying.
10644
5ae7ca1d
MC
106452003-02-04 Michael Chastain <mec@shout.net>
10646
10647 * dwarfread.c: Add documentation on the state of dwarf-1,
10648 looking towards obsoletion.
10649
d08a4280
MC
106502003-02-03 Michael Chastain <mec@shout.net>
10651
10652 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10653 gdb/testsuite/gdb.c++/pr-1023.exp.
10654
e9be73e4
AC
106552003-02-04 Andrew Cagney <ac131313@redhat.com>
10656
10657 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10658 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10659
10660 * utils.c (init_page_info): Delete reference to MPW in comments.
10661 * main.c (captured_main): Delete #ifdef MPW.
10662
05d57f6f
AC
106632003-02-04 Andrew Cagney <ac131313@redhat.com>
10664
8ffd9b1b 10665 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
10666 * monitor.c (monitor_expect): Obsolete reference to m32r.
10667 * configure.tgt: Mark m32r-*-elf* as obsolete.
10668 * MAINTAINERS: Mark m32k as obsolete.
10669 * m32r-rom.c: Obsolete file.
10670 * config/m32r/m32r.mt: Obsolete file.
10671 * config/m32r/tm-m32r.h: Obsolete file.
10672 * m32r-stub.c: Obsolete file.
10673 * m32r-tdep.c: Obsolete file.
10674
8b0e5691
AC
106752003-02-04 Andrew Cagney <ac131313@redhat.com>
10676
10677 * NEWS: Mention that the z8k-zilog-none is obsolete.
10678 * MAINTAINERS: Mark z8k as obsolete.
10679 * configure.tgt: Obsolete the z8k-*-coff* target.
10680 * config/z8k/z8k.mt: Obsolete file.
10681 * config/z8k/tm-z8k.h: Obsolete file.
10682 * z8k-tdep.c: Obsolete file.
10683
67f16606
AC
106842003-02-04 Andrew Cagney <ac131313@redhat.com>
10685
10686 * NEWS: Mention that the mn10200-elf is obsolete.
10687 * configure.tgt: Obsolete mn10200-*-* target.
10688 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10689 mention that the mn10200 is obsolete.
10690 * breakpoint.h: Ditto.
10691 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10692 * config/mn10200/mn10200.mt: Obsolete file.
10693 * config/mn10200/tm-mn10200.h: Obsolete file.
10694 * mn10200-tdep.c: Obsolete file.
10695
fd2299bd
AC
106962003-02-04 Andrew Cagney <ac131313@redhat.com>
10697
10698 * MAINTAINERS: Mark h8500 as obsolete.
10699 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10700 * findvar.c (value_from_register): Ditto.
10701 * h8500-tdep.c: Mark file as obsolete.
10702 * config/h8500/h8500.mt: Ditto.
10703 * config/h8500/tm-h8500.h: Ditto.
10704 * NEWS: Mention that h8500 is obsolete.
10705
eb9a305d
DC
107062003-02-04 David Carlton <carlton@math.stanford.edu>
10707
10708 * objfiles.c (allocate_objfile): Always set name. Add comment at
10709 start of function.
10710 * jv-lang.c (get_dynamics_objfile): Add comment.
10711
406fc7fb
DC
107122003-02-04 David Carlton <carlton@math.stanford.edu>
10713
10714 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10715 * printcmd.c (build_address_symbolic): Replace uses of
10716 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10717 SYMBOL_NAME, and asm_demangle.
10718 Update copyright.
10719
93d91629
DC
107202003-02-04 David Carlton <carlton@math.stanford.edu>
10721
10722 * linespec.c (decode_compound): Extract code into
10723 lookup_prefix_sym.
10724 (lookup_prefix_sym): New function.
10725
1c5cb38e
DC
107262003-02-04 David Carlton <carlton@math.stanford.edu>
10727
10728 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10729 FLOAT_COERCION_BADNESS.
10730 * gdbtypes.c (rank_one_type): Replace all uses of
10731 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10732
0cf824c9
JB
107332003-02-04 Jim Blandy <jimb@redhat.com>
10734
10735 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10736 section, let dwarf_macinfo_section point to it, not
10737 dwarf_loc_section.
10738
a2d356b0
DJ
107392003-02-04 Daniel Jacobowitz <drow@mvista.com>
10740
10741 Pointed out by Anton Blanchard <anton@samba.org>.
10742 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10743 (ppc_linux_at_sigtramp_return_path): Use it.
10744
2de7ced7
DJ
107452003-02-04 Daniel Jacobowitz <drow@mvista.com>
10746
10747 * defs.h (streq): Add prototype.
10748 * utils.c (streq): New function.
10749
10750 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10751 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10752 * mdebugread.c (new_symbol): Likewise.
10753 * stabsread.c (define_symbol): Likewise.
10754 * coffread.c (process_coff_symbol): Likewise.
10755 * dwarfread.c (new_symbol): Likewise.
10756
10757 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10758 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10759 here.
10760 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10761 SYMBOL_INIT_DEMANGLED_NAME.
10762 * objfiles.c: Include "hashtab.h".
10763 (allocate_objfile): Call htab_set_functions_ex for the
10764 demangled_names_hash.
10765 (free_objfile): Call htab_delete for the demangled_names_hash.
10766 * objfiles.h (struct htab): Add declaration.
10767 (struct objfile): Add demangled_names_hash.
10768 * symfile.c: Include "hashtab.h".
10769 (reread_symbols): Call htab_delete for the demangled_names_hash.
10770 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10771 SYMBOL_NAME in the bcache.
10772 * symtab.c: Include "hashtab.h". Update comments.
10773 (create_demangled_names_hash, symbol_set_names): New functions.
10774 (symbol_find_demangled_name): New function, broken out from
10775 symbol_init_demangled_names.
10776 (symbol_init_demangled_names): Use it.
10777 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10778 (SYMBOL_SET_NAMES): New macro.
10779 (symbol_set_names): Add prototype.
10780
15831452
JB
107812003-02-03 Jim Blandy <jimb@redhat.com>
10782
10783 Use a single, consistent representation for an empty minimal
10784 symbol table in an objfile.
10785 * objfiles.c (terminate_minimal_symbol_table): New function.
10786 (allocate_objfile): Call it.
10787 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10788 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10789 non-NULL.
15831452
JB
10790 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10791 objfile has minimal symbols, compare minimal_symbol_count to zero,
10792 instead of comparing msymbols with NULL.
10793 * objfiles.c (have_minimal_symbols): Same.
10794 * solib-sunos.c (solib_add_common_symbols): Call
10795 terminate_minimal_symbol_table.
10796 * symfile.c (reread_symbols): Same.
8ffd9b1b 10797
ffc65945
KB
107982003-02-03 Kevin Buettner <kevinb@redhat.com>
10799
10800 * s390-tdep.c (s390_address_class_type_flags)
10801 (s390_address_class_type_flags_to_name)
10802 (s390_address_class_name_to_type_flags): New functions.
10803 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10804 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10805
f211c6d4
MS
108062003-02-03 Michael Snyder <msnyder@redhat.com>
10807
10808 * arm-tdep.c: Fix spell-o in comment.
10809
659b0389
ML
108102003-02-03 Michal Ludvig <mludvig@suse.cz>
10811
10812 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10813 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10814 error messages to contain BFD filename.
659b0389 10815
3b31d625
EZ
108162003-02-02 Elena Zannoni <ezannoni@redhat.com>
10817
997b089a 10818 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10819 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10820 (do_mixed_source_and_assembly): Use
10821 make_cleanup_ui_out_tuple_begin_end and
10822 make_cleanup_ui_out_tuple_begin_end.
10823 (do_mixed_source_and_assembly): Ditto.
10824 * thread.c (do_captured_list_thread_ids): Ditto.
10825 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10826 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10827 ui_out_tuple_end): Delete prototypes.
10828 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10829 ui_out_list_end, ui_out_tuple_end): Delete.
10830
10831 From Kevin Buettner <kevinb@redhat.com>:
10832 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10833 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10834 (do_cleanup_table_end): New functions.
10835 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10836 Use cleanups to invoke_ui_out_tuple_end().
10837 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10838 * cli/cli-setshow.c (cmd_show_list): Use
10839 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10840
5b181d62
AC
108412003-02-02 Andrew Cagney <ac131313@redhat.com>
10842
10843 * frame.c (frame_unwind_register): New function.
10844 (frame_unwind_unsigned_register): Use.
10845 (frame_unwind_signed_register): Use.
10846 (frame_read_register): New function.
10847 * frame.h (frame_unwind_register): Declare.
10848 (frame_read_register): Declare.
10849
10850 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10851 and frame_unwind_register instead of read_memory, write_register
10852 and deprecated_write_register_bytes.
10853
5f601589
AC
108542003-02-02 Andrew Cagney <ac131313@redhat.com>
10855
10856 * frame.h: Note that namelen can be negative.
10857 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10858 NAME's length.
10859
10860 * NEWS: Mention that the d10v's `regs' command is deprecated.
10861 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10862 (d10v_print_registers_info): New function.
10863 (show_regs): Call d10v_print_registers_info.
10864 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10865
6a3fe0a4
MK
108662003-02-02 Mark Kettenis <kettenis@gnu.org>
10867
10868 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10869 lost in the previous patch.
10870
075559bc
AC
108712003-02-01 Andrew Cagney <ac131313@redhat.com>
10872
10873 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
10874 * stack.c (print_frame_info_base): Output complete FRAME tuple
10875 for synthesized frames.
075559bc 10876
6789195b
AC
108772003-02-02 Andrew Cagney <ac131313@redhat.com>
10878
10879 * mips-nat.c (zerobuf): Delete.
10880 (fetch_inferior_registers): Alloc local zerobuf.
10881 (fetch_core_registers): Alloc local zerobuf.
10882 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10883 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10884 * thread-db.c (thread_db_store_registers): Ditto.
10885 * sh-tdep.c (sh_do_register): Ditto.
10886 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10887 * remote-sim.c (gdbsim_store_register): Ditto.
10888 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10889 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10890 * monitor.c (monitor_supply_register): Ditto.
10891 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10892 * mips-nat.c (fetch_inferior_registers): Ditto.
10893 * m68klinux-nat.c (fetch_register): Ditto.
10894 * lynx-nat.c (fetch_inferior_registers): Ditto.
10895 (fetch_inferior_registers): Ditto.
10896 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10897 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10898 (hpux_thread_store_registers): Ditto.
10899 * hppah-nat.c (fetch_register): Ditto.
10900 * hppab-nat.c (fetch_register): Ditto.
10901 * hppa-tdep.c (pa_register_look_aside): Ditto.
10902 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10903 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10904
e669114a
AC
109052003-02-01 Andrew Cagney <ac131313@redhat.com>
10906
10907 * gdbarch.sh: Explictly specify all method levels. When a
10908 variable with an empty level, provide a non-multi-arch default.
10909 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10910 * gdbarch.h: Re-generate.
10911 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10912 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10913
9a043c1d
AC
109142003-02-01 Andrew Cagney <ac131313@redhat.com>
10915
10916 * defs.h (host_pointer_to_address): Delete declaration.
10917 (address_to_host_pointer): Delete declaration.
10918 * utils.c (host_pointer_to_address): Delete function.
10919 (address_to_host_pointer): Delete function.
10920 * procfs.c (procfs_address_to_host_pointer): New function.
10921 * procfs.c (proc_set_watchpoint): Use.
10922 (procfs_can_use_hw_breakpoint): Update comments.
10923 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10924 (som_solib_add): Use.
10925 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10926 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10927
7ca9f392
AC
109282003-02-01 Andrew Cagney <ac131313@redhat.com>
10929
94bbfd30
AC
10930 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10931 strlen d_name.
10932
7ca9f392
AC
10933 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10934 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10935 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10936 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10937 (define_symbol): Update.
10938 * symfile.c (generic_load): Remove references to nindy.
10939 * symtab.c: Remove references to nindy.
10940
31a85ea2
AC
109412003-02-01 Andrew Cagney <ac131313@redhat.com>
10942
10943 * infcmd.c (print_float_info): Delete code conditional on
10944 FLOAT_INFO.
10945 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10946 * config/m68k/nm-apollo68b.h: Ditto.
10947 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10948 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10949 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10950
f6e85fc8
MK
109512003-02-01 Mark Kettenis <kettenis@gnu.org>
10952
6015b6a0
MK
10953 * config/i386/tm-i386os9k.h: Removed.
10954
f7a30bdf
MK
10955 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10956 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10957 they're identical to i[3456]86-*-sysv* now.
10958 * config/i386/i386v32.mh: Removed.
10959 * config/i386/xm-i386v32.h: Removed.
10960 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10961
28d52111
MK
10962 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10963
4d3f6bce
MK
10964 * config/i386/i386dgux.mh: Removed.
10965 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10966
f6e85fc8
MK
10967 * configure.in: Fix typo.
10968 * configure: Regenerated.
10969
53955967
DC
109702003-01-31 David Carlton <carlton@math.stanford.edu>
10971
10972 * dwarf2read.c (dwarf2_locate_sections): Set
10973 dwarf_ranges_section.
10974
b1364885
AC
109752003-01-31 Andrew Cagney <ac131313@redhat.com>
10976
8dbb1c65
AC
10977 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10978 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10979
8731e58e
AC
10980 * utils.c: Re-indent.
10981
b1364885
AC
10982 * config/djgpp/fnchange.lst: Delete nindy files.
10983 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10984 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10985 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10986 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10987 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10988 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10989 * Makefile.in (init.c): Remove nindy references.
10990 (saber_gdb): Delete rule.
10991 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10992 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10993 and a68v-nat.c.
10994 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10995 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10996 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10997 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10998 nindy-share/stop.h.
10999 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11000 * saber.suppress: Delete file.
11001
086df311
DJ
110022003-01-31 Daniel Jacobowitz <drow@mvista.com>
11003
11004 * dbxread.c (stabs_data): New static variable.
11005 (fill_symbuf): Support an in-memory buffer for stabs data.
11006 (stabs_seek): New function.
11007 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11008 (read_ofile_symtab): Use stabs_seek.
11009 (elfstab_build_psymtabs): Take an asection* instead of
11010 an offset and size. Relocate the stabs data if necessary.
11011 Save the section* for dbx_psymtab_to_symtab.
11012 * dwarf2read.c: Add section variables for each debug section.
11013 (dwarf2_locate_sections): Fill them in.
11014 (dwarf2_read_section): Take an asection* argument.
11015 Relocate the section contents if necessary.
11016 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11017 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11018 it to dwarf2_read_section.
11019 (dwarf2_build_frame_info): Update callers.
11020 * elfread.c (elf_symfile_read): Update call to
11021 elfstab_build_psymtabs.
11022 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11023 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11024 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11025 * symfile.c (symfile_dummy_outputs): New function.
11026 (symfile_relocate_debug_section): New function.
11027 * symfile.h (symfile_relocate_debug_section): Add prototype.
11028
87d1b352
RH
110292003-01-31 Richard Henderson <rth@redhat.com>
11030
11031 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11032 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11033 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11034 * alpha-tdep.c (alpha_register_name): Add "unique".
11035 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11036 (ALPHA_UNIQUE_REGNUM): New.
11037 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11038
c48861fb
AC
110392003-01-31 Andrew Cagney <ac131313@redhat.com>
11040
11041 * README: Remove reference to Ericsson 1800 monitor.
11042 * Makefile.in (remote-es.o): Delete rule.
11043 (ALLDEPFILES): Delete remote-es.c.
11044 * remote-es.c: Delete file.
11045 * config/m68k/es1800.mt: Delete file.
11046 * config/djgpp/fnchange.lst: Update.
11047 * configure.tgt: Delete m68*-ericsson-* target.
11048
d764a824
AF
110492003-01-31 Adam Fedor <fedor@gnu.org>
11050
11051 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11052 Remove duplicate/shadowing variable of same name.
11053
fe36c4f4
JB
110542003-01-30 Jim Blandy <jimb@redhat.com>
11055
11056 * symfile.c (find_separate_debug_file): Assert that the objfile's
11057 directory name we compute ends with a slash, and then assume that
11058 that's so everywhere we use it.
11059
cb741690
DJ
110602003-01-30 Daniel Jacobowitz <drow@mvista.com>
11061
11062 * valops.c (value_assign): Flush frame cache after stores to memory
11063 also.
11064
96ee5227
AC
110652003-01-30 Andrew Cagney <ac131313@redhat.com>
11066
11067 * Makefile.in (mon960-rom.o): Delete rule.
11068 * mon960-rom.c: Delete file.
11069
7f6104a9
AC
110702003-01-30 Andrew Cagney <ac131313@redhat.com>
11071
11072 * d10v-tdep.c: Include "frame-unwind.h".
11073 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11074 list.
11075 (next_addr, uses_frame): Delete.
11076 (struct d10v_unwind_cache): Define.
11077 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11078 Use info instead of next_addr and uses_frame globals.
11079 (d10v_frame_init_saved_regs): Delete function.
11080 (d10v_init_extra_frame_info): Delete function.
11081 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11082 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11083 init_frame_pc or frame_saved_pc.
11084 (d10v_pop_frame): Delete function.
11085 (do_d10v_pop_frame): Delete function.
11086 (d10v_frame_chain): Delete function.
11087 (d10v_frame_chain_valid): Delete function.
11088 (d10v_frame_pc_unwind): New function.
11089 (d10v_frame_id_unwind): New function.
11090 (saved_regs_unwinder): New function.
11091 (d10v_frame_register_unwind): New function.
11092 (d10v_frame_pop): New function.
11093 (d10v_frame_unwind): New variable.
11094 (d10v_frame_p): New function.
11095 (d10v_frame_saved_pc): Delete function.
11096 * Makefile.in (d10v-tdep.o): Update dependencies.
11097
cad2e848
JB
110982003-01-30 J. Brobecker <brobecker@gnat.com>
11099
11100 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11101 causing some regressions due to a change in the default value
11102 for this macro.
11103
af34e669
DJ
111042003-01-29 Richard Henderson <rth@redhat.com>
11105 Elena Zannoni <ezannoni@redhat.com>
11106 Daniel Jacobowitz <drow@mvista.com>
11107
11108 Fix PR gdb/961.
8ffd9b1b 11109 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11110 variables.
11111 (RANGES_SECTION): New.
11112 (dwarf_ranges_buffer): New variable.
11113 (struct comp_unit_head): Add member "die".
11114 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11115 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11116 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11117 (dwarf2_locate_sections): Likewise.
11118 (dwarf2_build_psymtabs): Read .debug_ranges.
11119 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11120 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11121 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11122 Look for DW_AT_ranges and return the bounding box.
11123
baa93fa6
CF
111242003-01-29 Brian Ford <ford@vss.fsi.com>
11125
11126 * win32-nat.c (cygwin_pid): Removed as unused.
11127 (child_attach): Try fall back to Cygwin pid.
11128
c63f977f
JB
111292003-01-29 Jim Blandy <jimb@redhat.com>
11130
11131 * objfiles.h (struct objfile): Doc fix.
11132
d62d1979
AC
111332003-01-29 Andrew Cagney <ac131313@redhat.com>
11134
11135 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11136 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11137 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11138 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11139 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11140 (FRAME_SAVED_PC): Change to a function with predicate.
11141 * gdbarch.h, gdbarch.c: Re-generate.
11142
1ae18a04
AC
111432003-01-28 Andrew Cagney <ac131313@redhat.com>
11144
52287340
AC
11145 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11146
1ae18a04
AC
11147 * complaints.c (complain): Delete function.
11148 * complaints.h (struct deprecated_complaint): Delete definition.
11149 (complain): Delete declaration.
11150
f2c16bd6
KB
111512003-01-28 Kevin Buettner <kevinb@redhat.com>
11152
11153 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11154 dummy frames.
11155
a94dd1fd
AC
111562003-01-27 Andrew Cagney <ac131313@redhat.com>
11157
11158 * sentinel-frame.h, sentinel-frame.c: New files.
11159 * Makefile.in (frame.o): Update dependencies.
11160 (SFILES): Add sentinel-frame.c.
11161 (sentinel_frame_h): Define.
11162 (COMMON_OBS): Add sentinel-frame.o.
11163 (sentinel-frame.o): Specify dependencies.
11164 * frame.c: Include "sentinel-frame.h".
11165 (frame_register_unwind): Rewrite assuming that there is always a a
11166 ->next frame.
11167 (frame_register, generic_unwind_get_saved_register): Ditto.
11168 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11169 (create_sentinel_frame, unwind_to_current_frame): New functions.
11170 (get_current_frame): Rewrite using create_sentinel_frame and
11171 unwind_to_current_frame. When possible, always create a frame.
11172 (create_new_frame): Set next to the sentinel frame.
11173 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11174 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11175 ID cache when necessary.
11176 (frame_saved_regs_id_unwind): Use frame_relative_level.
11177 (deprecated_generic_get_saved_register): Use frame_relative_level,
11178 get_frame_saved_regs, get_frame_pc, get_frame_base and
11179 get_next_frame.
11180 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11181 frame_register.
11182
5378adc4
DJ
111832003-01-27 Daniel Jacobowitz <drow@mvista.com>
11184
11185 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11186
51ee2ddc
DJ
111872003-01-27 Daniel Jacobowitz <drow@mvista.com>
11188
11189 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11190 (maintenance_set_profile_cmd): Use error () instead of warning ().
11191
d9feb4e7
DJ
111922003-01-27 Daniel Jacobowitz <drow@mvista.com>
11193
11194 * configure.in: Check that -pg works if using --enable-profiling.
11195 Check for monstartup and _mcleanup regardless of --enable-profiling.
11196 * maint.c: Check for monstartup and _mcleanup before using them.
11197 * config.in: Regenerated.
11198 * configure: Regenerated.
11199
2d188dd3
NC
112002003-01-24 Nick Clifton <nickc@redhat.com>
11201
11202 * Add sh2e support:
11203
11204 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11205
11206 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11207 (sh2e_show_regs): New.
11208 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11209 * config/sh/tm-sh.h: Added sh2e to comments.
11210
cb3c37b2
JB
112112003-01-23 Jim Blandy <jimb@redhat.com>
11212
11213 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11214 symbols found)" message here; we haven't checked for a separate
11215 debug info file yet, so we don't know yet.
11216 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11217 we've looked everywhere. Also, there's no need to print a special
11218 message when we're loading the separate debug info file: the one
11219 symbol_file_add prints is fine.
11220
5b5d99cf
JB
112212003-01-23 Alexander Larsson <alexl@redhat.com>
11222 Jim Blandy <jimb@redhat.com>
11223
11224 Add support for executables whose debug info has been separated
11225 out into a separate file, leaving only a link behind.
11226 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11227 and separate_debug_objfile_backlink.
11228 (put_objfile_before): New declaration.
11229 * symfile.c: #include "filenames.h".
11230 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11231 debug info in a separate file, read that, too. Save the addrs
11232 argument, so we can use it again to read the separated debug info;
11233 syms_from_objfile modifies the table we pass it.
11234 (reread_symbols): After re-reading an objfile, call
11235 reread_separate_symbols to refresh its separate debug info
11236 objfile, if it has one.
11237 (reread_separate_symbols, find_separate_debug_file,
11238 get_debug_link_info, separate_debug_file_exists): New functions.
11239 (debug_file_directory): New global var.
11240 (_initialize_symfile): Initialize debug_file_directory, and
11241 provide the new `set debug-file-directory' command to let the user
11242 change it.
11243 * objfiles.c (free_objfile): If this objfile has its debug info in
11244 a separate objfile, free that one too. If this is itself a
11245 separate debug info objfile, clear our parent's backlink.
11246 (put_objfile_before): New function.
11247 * utils.c (gnu_debuglink_crc32): New function.
11248 * defs.h (gnu_debuglink_crc32): New declaration.
11249 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11250 * configure.in: Handle --with-separate-debug-dir config option.
11251 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11252 * acconfig.h (DEBUGDIR): New macro.
11253 * configure, aclocal.m4, config.in: Regenerated.
11254
7e8580c1
JB
112552003-01-22 Jim Blandy <jimb@redhat.com>
11256
7904e09f
JB
11257 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11258 like the old symbol_file_add, but taking new arguments: you can
11259 now pass in either a `struct section_addr_info' list to say where
11260 each section is loaded, or a `struct section_offsets' table. Pass
11261 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11262 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11263 with the appropriate quiescent values for the new arguments.
11264
7e8580c1
JB
11265 * symfile.c: #include "gdb_assert.h".
11266 (syms_from_objfile): Add the ability to pass in a section offset
11267 table directly, as an alternative to the section_addr_info table.
11268 Document arguments better.
11269 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11270 * symfile.h (syms_from_objfile): Update declaration.
11271 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11272 syms_from_objfile.
11273 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11274
d28f9cdf
DJ
112752003-01-22 Daniel Jacobowitz <drow@mvista.com>
11276
11277 Original patch by Tom Tromey <tromey@cygnus.com> and
11278 Jason Molenda <jmolenda@apple.com>.
11279 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11280 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11281 * NEWS: Mention profiling.
11282 * configure.in (--enable-gdbtk): Fix typo.
11283 (--enable-profiling): New. Set PROFILE_CFLAGS.
11284 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11285 Fill in function.
11286 (profiling_state): New variable.
11287 (mcleanup_wrapper): New function.
11288 (_initialize_maint): Remove NOTYET, fix call to
11289 add_setshow_boolean_cmd for "maint set profile".
11290 * configure: Regenerated.
11291
df21e465
MH
112922003-01-21 Martin M. Hunt <hunt@redhat.com>
11293
11294 * Makefile.in (install-gdbtk): Install PNG images too.
11295
73c1f219
AC
112962003-01-21 Andrew Cagney <ac131313@redhat.com>
11297
11298 * exec.c (text_start): Delete global variable.
11299 (exec_file_attach): Make text_start local to the function.
11300 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11301 * valops.c (hand_function_call): Delete code that handles
11302 BEFORE_TEXT_END and AFTER_TEXT_END.
11303 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11304 of CALL_DUMMY_LOCATION.
11305 * gdbarch.c: Regenerate.
11306 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11307 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11308 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11309 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11310 (text_end): Delete extern declaration.
11311
eb4f72c5
AC
113122003-01-21 Andrew Cagney <ac131313@redhat.com>
11313
11314 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11315 * blockframe.c (backtrace_below_main): Move to "frame.c".
11316 (frame_chain_valid): Delete check for backtrace_below_main.
11317 (_initialize_blockframe): Delete initialization, move ``set
11318 backtrace-below-main'' command to "frame.c".
11319 (do_flush_frames_sfunc): Delete function.
11320 * frame.c: Include "command.h" and "gdbcmd.h".
11321 (frame_type_from_pc): New function.
11322 (create_new_frame): Use frame_type_from_pc.
11323 (legacy_get_prev_frame): New function.
11324 (get_prev_frame): Rewrite. When an old style frame, call
11325 legacy_get_prev_frame. Otherwize, unwind the PC first.
11326 (_initialize_frame): Add ``set backtrace-below-main'' command.
11327 * Makefile.in (frame.o): Update dependencies.
11328
778ce8cc
AC
113292003-01-19 Andrew Cagney <ac131313@redhat.com>
11330
11331 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11332 DEPRECATED_REGISTERS_INFO.
11333
01c193c8
AC
113342003-01-19 Andrew Cagney <ac131313@redhat.com>
11335
11336 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11337 Maintainers'. Update `Various Maintainers'.
11338
dedc2a2b
AC
113392003-01-19 Andrew Cagney <ac131313@redhat.com>
11340
11341 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11342 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11343 Suppress actual parameters when `-'.
11344 * gdbarch.h, gdbarch.c: Regenerate.
11345
b7261c70
AC
113462003-01-19 Andrew Cagney <ac131313@redhat.com>
11347
11348 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11349 code handling dummy frames.
11350
dbe9fe58
AC
113512003-01-19 Andrew Cagney <ac131313@redhat.com>
11352
11353 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11354 (struct frame_unwind): Add field pop.
11355 * frame.h (frame_pop): Declare.
11356 * frame.c (frame_saved_regs_pop): New function.
11357 (trad_frame_unwinder): Add frame_saved_regs_pop.
11358 (frame_pop): New function.
11359 * dummy-frame.c (dummy_frame_pop): New function.
11360 (discard_innermost_dummy): New function.
11361 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11362 (dummy_frame_unwind): Add dummy_frame_pop.
11363 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11364 * valops.c (hand_function_call): Ditto.
11365 * stack.c (return_command): Ditto.
11366
570b8f7c
AC
113672003-01-18 Andrew Cagney <ac131313@redhat.com>
11368
11369 * cris-tdep.c: Fix function declaration indentation.
11370 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11371 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11372 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11373 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11374 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11375 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11376
113772003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11378
11379 * README (Unpacking and Installation -- quick overview):
11380 Warn against ".../gdb-5.3/gdb/configure".
11381
494cca16
AC
113822003-01-18 Andrew Cagney <ac131313@redhat.com>
11383
11384 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11385 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11386 (struct frame_unwind): Declare opaque.
11387 (dummy_frame_p): Declare function.
11388 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11389 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11390 * dummy-frame.c: Include "frame-unwind.h".
11391 (dummy_frame_p): New function.
11392 (dummy_frame_unwind): New variable.
11393 * frame.c: Include "frame-unwind.h".
11394 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11395 to use the new unwind field.
11396 (set_unwind_by_pc): Delete function.
11397 (create_new_frame, get_prev_frame): Set unwind field using
11398 frame_unwind_find_by_pc.
11399 (trad_frame_unwind, trad_frame_unwinder): New variables.
11400 * frame.h (trad_frame_unwind): Declare variable.
11401 (frame_id_unwind_ftype): Delete declaration.
11402 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11403 (struct frame_unwind): Declare opaque.
11404 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11405 register_unwind with a single unwind pointer.
11406 * frame-unwind.h, frame-unwind.c: New files.
11407 * Makefile.in (SFILES): Add frame-unwind.c.
11408 (frame_unwind_h): Define.
11409 (COMMON_OBS): Add frame-unwind.o.
11410 (frame-unwind.o): Specify dependencies.
11411 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11412
4efb68b1
AC
114132003-01-18 Andrew Cagney <ac131313@redhat.com>
11414
11415 * ada-valprint.c: Eliminate PTR.
11416 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11417 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11418 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11419 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11420 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11421 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11422 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11423
a84d24ee
AC
114242003-01-17 Andrew Cagney <ac131313@redhat.com>
11425
762f08a3
AC
11426 * main.c (captured_main): Don't use PTR.
11427 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11428 * gdbtypes.c (lookup_primitive_typename): Ditto.
11429 (lookup_struct_elt_type): Ditto.
11430 * f-valprint.c (info_common_command): Ditto.
11431 (list_all_visible_commons): Ditto.
11432 * jv-typeprint.c (java_type_print_base): Ditto.
11433
a84d24ee
AC
11434 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11435 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11436 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11437 i386-interix-nat.c and i386-interix-tdep.c. Rename
11438 m68klinux-nat.c and m68klinux-tdep.c. Rename
11439 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11440 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11441 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11442 * main.c (captured_main): Use xfree, not free.
11443
c170fb60
AC
114442003-01-16 Andrew Cagney <ac131313@redhat.com>
11445
11446 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11447 ID back using a parameter.
11448 * frame.c (frame_id_unwind): Update call.
11449 (frame_saved_regs_id_unwind): Update.
11450 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11451 * dummy-frame.h (struct frame_id): Add opaque declaration.
11452 (dummy_frame_id_unwind): Update declaration.
11453
867f3898
AC
114542003-01-15 Andrew Cagney <ac131313@redhat.com>
11455
11456 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11457
40622be8 114582003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11459
40622be8 11460 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11461
ae66c1fc
EZ
114622003-01-14 Elena Zannoni <ezannoni@redhat.com>
11463
997b089a 11464 Fix PR gdb/898
ae66c1fc
EZ
11465 * breakpoint.c (until_break_command): Add new argument. Use it to
11466 decide whether to stop only at the current frame or not.
11467 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11468 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11469 call.
11470 (advance_command): New function.
11471 (_initialize_infcmd): Update help string for 'until' command.
11472 Add new 'advance' command.
11473
a04257e6
DC
114742003-01-14 David Carlton <carlton@math.stanford.edu>
11475
11476 * linespec.c (decode_line_1): Normalize comments.
11477 (set_flags): Ditto.
11478 (locate_first_half): Ditto.
11479 (decode_compound): Ditto.
11480 (symtab_from_filename): Ditto.
11481 (decode_all_digits): Ditto.
11482 (decode_dollar): Ditto.
11483 (find_methods): Ditto.
11484 (find_toplevel_char): Ditto.
11485
1bac305b
AC
114862003-01-13 Andrew Cagney <ac131313@redhat.com>
11487
11488 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11489 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11490 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11491 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11492 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11493 * language.c, language.h, m32r-tdep.c: Update copyright.
11494 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11495 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11496 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11497 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11498 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11499 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11500
25caa7a8
EZ
115012003-01-13 Elena Zannoni <ezannoni@redhat.com>
11502
11503 * stabsread.h (process_later, resolve_cfront_continuation):
11504 Obsolete.
11505 Update copyright years.
11506 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11507 Update copyright year.
11508 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11509 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11510 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11511 Update copyright year.
11512 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11513 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11514 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11515 (parse_partial_symbols): Obsolete cfront support.
11516 * stabsread.c
11517 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11518 macros.
11519 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11520 read_cfront_baseclasses, read_cfront_member_functions,
11521 resolve_cfront_continuation,read_cfront_static_fields,
11522 copy_cfront_struct_fields): Obsolete functions.
11523 (define_symbol, read_one_struct_field): Obsolete cfront support.
11524 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11525 Update Copyright year.
11526
7789c6f5
EZ
115272003-01-13 Elena Zannoni <ezannoni@redhat.com>
11528
11529 * stack.c (print_frame_info, print_stack_frame_base_stub,
11530 print_stack_frame_base, show_and_print_stack_frame_stub,
11531 show_and_print_stack_frame, print_only_stack_frame_stub,
11532 print_only_stack_frame): Delete functions.
11533 (print_stack_frame_stub): Call print_frame_info instead of
11534 print_frame_info_base.
11535 (print_frame_info_base): Rename to print_frame_info.
11536 (backtrace_command_1): Call print_frame_info, instead of
11537 print_frame_info_base.
11538 (current_frame_command): Call print_stack_frame, instead of
11539 print_only_stack_frame.
11540 (frame_command): Call print_stack_frame, instead of
11541 show_and_print_stack_frame.
11542 (up_command): Ditto.
11543 (down_command): Ditto.
11544 * frame.h (print_only_stack_frame): Delete prototype.
11545 * infrun.c (normal_stop): Call print_stack_frame, instead of
11546 show_and_print_stack_frame.
11547 * thread.c (info_threads_command): Call print_stack_frame, instead
11548 of print_only_stack_frame.
11549
3f5a3016
AC
115502003-01-13 Andrew Cagney <ac131313@redhat.com>
11551
d99ba314
AC
11552 * README (Graphical interface to GDB): Update URL. Point at
11553 gdb/links/.
11554
3f5a3016
AC
11555 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11556 version match.
11557
083ae935
DJ
115582003-01-13 Daniel Jacobowitz <drow@mvista.com>
11559
11560 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11561 lines.
11562
5365276c
DJ
115632003-01-13 Daniel Jacobowitz <drow@mvista.com>
11564
11565 * thread-db.c (attach_thread): Prototype.
11566 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11567 thread information (ti), and valid flags (th_valid, ti_valid).
11568 (attach_thread): Move target_pid_to_str call to after the thread
11569 is added to GDB's list. Initialize the cache.
11570 (thread_get_info_callback, thread_db_map_id2thr)
11571 (thread_db_get_info): New functions.
11572 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11573 (thread_db_store_registers, thread_db_thread_alive)
11574 (thread_db_get_thread_local_address): Use them.
11575 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11576 of calling error() for threads in unknown state.
11577
11578 (clear_lwpid_callback): New function.
11579 (thread_db_resume): Use it to clear the cache.
11580
9fc30b6b
DJ
115812003-01-13 Daniel Jacobowitz <drow@mvista.com>
11582
11583 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11584 (resume_callback): Remove dead code.
11585
8f871025
AC
115862003-01-13 Andrew Cagney <ac131313@redhat.com>
11587
11588 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11589 predicate.
11590 * gdbarch.h, gdbarch.c: Regenerate.
11591 * stack.c (frame_info): Only initialize the saved registers when
11592 FRAME_INIT_SAVED_REGS_P.
11593 * frame.c (frame_saved_regs_register_unwind): Assert
11594 FRAME_INIT_SAVED_REGS_P.
11595 (deprecated_generic_get_saved_register): Ditto.
11596
3f565f1e
DJ
115972003-01-13 Daniel Jacobowitz <drow@mvista.com>
11598
11599 * source.c (openp): Squelch warning about "filename".
11600
072b1022
DJ
116012003-01-13 Daniel Jacobowitz <drow@mvista.com>
11602
11603 * source.c (openp): If the file does not exist don't necessarily
11604 search the path.
11605
973ccf8b
DJ
116062003-01-13 Daniel Jacobowitz <drow@mvista.com>
11607
11608 Fix PR gdb/872.
11609 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11610 (integer_types_same_name_p): New function.
11611 (rank_one_type): Use it.
11612 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11613
030292b7
DJ
116142003-01-13 Daniel Jacobowitz <drow@mvista.com>
11615
11616 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11617 variables.
11618 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11619 * configure.in: Add --with-sysroot.
11620 * configure: Regenerated.
11621 * main.c (gdb_sysroot): New variable.
11622 (captured_main): Initialize gdb_sysroot.
11623 * defs.h (gdb_sysroot): New extern declaration.
11624 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11625
afb5d334
MC
116262003-01-12 Michael Chastain <mec@shout.net>
11627
11628 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11629
751ceeb4
MC
116302003-01-12 Michael Chastain <mec@shout.net>
11631
11632 * top.c (print_gdb_version): Bump copyright year to 2003.
11633
94cd26f8
DC
116342003-01-12 David Carlton <carlton@bactrian.org>
11635
11636 * linespec.c (symtab_from_filename): Rename variable 's' to
11637 'file_symtab'.
11638
1ce79225
AC
116392003-01-12 Andrew Cagney <ac131313@redhat.com>
11640
11641 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11642 dummy frame.
11643 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11644
fa1fd571
AC
116452003-01-12 Andrew Cagney <ac131313@redhat.com>
11646
11647 * d10v-tdep.c: Include "gdb_assert.h".
11648 (d10v_store_return_value): Rewrite to match current interface.
11649 (d10v_extract_struct_value_address): Ditto.
11650 (d10v_extract_return_value): Ditto.
11651 (d10v_gdbarch_init): Set store_restore_value,
11652 extract_struct_value_address and extract_return_value.
11653
68b8d23e
JB
116542003-01-12 J. Brobecker <brobecker@gnat.com>
11655
11656 * hpread.c (set_namestring): New procedure replacing the
11657 SET_NAMESTRING macro.
11658 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11659 by calls to set_namestring.
11660
116612003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
11662
11663 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11664 a compilation warning.
11665 (hpread_process_one_debug_symbol): Likewise.
11666
88d262ca
DC
116672003-01-10 David Carlton <carlton@math.stanford.edu>
11668
11669 * linespec.c (decode_line_1): Rename variable 's' to
11670 'file_symtab'.
11671 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11672 (decode_dollar): Ditto.
11673 (decode_variable): Ditto.
11674 (symbol_found): Ditto.
11675
86669319
MC
116762003-01-09 Michael Chastain <mec@shout.net>
11677
11678 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11679
616a9dc4
CV
116802003-01-07 Corinna Vinschen <vinschen@redhat.com>
11681
11682 * win32-nat.c (set_process_privilege): New function.
11683 (child_attach): Call set_process_privilege() to enable the
11684 SE_DEBUG_NAME user privilege if available in process token.
11685
3269bcfa
JB
116862003-01-10 J. Brobecker <brobecker@gnat.com>
11687
11688 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11689 compilation error in the previous revision.
11690
2b0ee454
DC
116912003-01-09 David Carlton <carlton@math.stanford.edu>
11692
11693 * linespec.c: Update copyright.
11694
b3ba1b44
DJ
116952003-01-09 Daniel Jacobowitz <drow@mvista.com>
11696
11697 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11698 than inferior_ptid.
11699 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11700
4ef3f3be
AC
117012003-01-09 Andrew Cagney <ac131313@redhat.com>
11702
479ab5a0
AC
11703 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11704 Update comments.
11705 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11706 (frame_saved_regs_zalloc): Update.
11707 (frame_saved_regs_register_unwind): Update.
11708 (create_new_frame): Update.
11709 (get_prev_frame): Update.
11710 (frame_extra_info_zalloc): Update.
11711 (deprecated_get_frame_saved_regs): Update.
11712 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11713 * cris-tdep.c: Update comment.
11714
bde58177
AC
11715 * somsolib.h: Fix function indentation.
11716 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11717 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11718 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11719 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11720 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11721
4ef3f3be
AC
11722 * infrun.c (follow_fork): Use ISO C definition.
11723 * expprint.c (print_subexp): Use xfree instead of free.
11724 * charset.c: Include "gdb_string.h" instead of <string.h>.
11725 (register_iconv_charsets): Use ISO C definition.
11726 (host_charset, target_charset): Ditto.
11727 * Makefile.in (charset.o): Update dependencies.
11728 (mi-cmd-env.o): Update dependencies.
11729
1c615f7a
AC
117302003-01-08 Andrew Cagney <cagney@redhat.com>
11731
11732 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11733 get_frame_base.
11734
c9a1dc08
AC
117352003-01-08 Andrew Cagney <ac131313@redhat.com>
11736
11737 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11738 build directories. Save edited gdb output in Mbuild.log. If a
11739 build fails, remove any final GDB executable.
11740
dbad9d94
AC
117412003-01-08 Andrew Cagney <ac131313@redhat.com>
11742
11743 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11744 replacing hex constants with function names and stripping leading
11745 file name directory prefixes.
11746
8d357cca
AC
117472003-01-08 Andrew Cagney <cagney@redhat.com>
11748
11749 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11750 get_frame_base.
11751
bca02a8a
DC
117522003-01-08 David Carlton <carlton@math.stanford.edu>
11753
11754 * linespec.c (decode_line_1): Move code into decode_variable.
11755 (decode_variable): New function.
11756
7f8ab3a0
AC
117572003-01-08 Andrew Cagney <ac131313@redhat.com>
11758
11759 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11760
7b5849cc
AC
117612003-01-08 Andrew Cagney <cagney@redhat.com>
11762
11763 * cris-tdep.c (cris_frame_init_saved_regs): Use
11764 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11765 saved_regs buffer.
11766 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11767 (sh64_nofp_frame_init_saved_regs): Ditto.
11768 (sh_fp_frame_init_saved_regs): Ditto.
11769 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11770 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11771 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11772 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11773
72a5efb3
DJ
117742003-01-08 Daniel Jacobowitz <drow@mvista.com>
11775
11776 * minsyms.c (lookup_minimal_symbol): Update comment.
11777 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11778 (lookup_minimal_symbol_solib_trampoline): Likewise.
11779
11c02a10
AC
117802003-01-08 Andrew Cagney <cagney@redhat.com>
11781
aab3ea25
AC
11782 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11783 frame_relative_level.
11784
da50a4b7
AC
11785 * alpha-tdep.c: Use get_frame_extra_info.
11786 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11787 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11788 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11789 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11790
11c02a10
AC
11791 * alpha-tdep.c: Use get_next_frame.
11792 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11793 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11794 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11795 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11796 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11797 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11798 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11799
1e2330ba
AC
118002003-01-07 Andrew Cagney <cagney@redhat.com>
11801
11802 * alpha-tdep.c: Use get_frame_base.
11803 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11804 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11805 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11806 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11807 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11808 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11809 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11810 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11811
2d75187b
AC
118122003-01-07 Andrew Cagney <cagney@redhat.com>
11813
11814 * frame.c (deprecated_get_frame_context): New function.
11815 (deprecated_set_frame_context): New function.
11816 * frame.h (deprecated_get_frame_context): Declare.
11817 (deprecated_set_frame_context): Declare.
11818 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11819 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11820
483d36b2
AC
118212003-01-07 Andrew Cagney <cagney@redhat.com>
11822
11823 * frame.c (deprecated_set_frame_next_hack): New function.
11824 (deprecated_set_frame_prev_hack): New function.
11825 * frame.h (deprecated_set_frame_next_hack): Declare.
11826 (deprecated_set_frame_prev_hack): Declare.
11827 * mcore-tdep.c (analyze_dummy_frame): Use
11828 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11829 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11830
14e91ac5
DC
118312003-01-07 David Carlton <carlton@math.stanford.edu>
11832
11833 * linespec.c (decode_line_1): Move code into decode_dollar.
11834 (decode_dollar): New function.
11835
b0c6b05c
AC
118362003-01-07 Andrew Cagney <cagney@redhat.com>
11837
11838 * arm-tdep.c (arm_init_extra_frame_info): Use
11839 deprecated_update_frame_base_hack.
11840 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11841 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11842 (fix_frame_pointer): Ditto.
11843 (mn10300_analyze_prologue): Ditto.
11844
a00a19e9
AC
118452003-01-07 Andrew Cagney <cagney@redhat.com>
11846
11847 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11848 extra_info using frame_extra_info_zalloc.
11849 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11850 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11851 (sh64_init_extra_frame_info): Ditto.
11852 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11853 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11854 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11855 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11856 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11857 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11858 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11859 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11860 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11861 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11862 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11863 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11864
11865 * mn10300-tdep.c (analyze_dummy_frame): Use
11866 deprecated_set_frame_extra_info_hack.
11867 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11868
1fb4c65b
JB
118692003-01-07 J. Brobecker <brobecker@gnat.com>
11870
11871 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11872 class is not scText. These do not define "real" procedures.
11873 (parse_partial_symbols): Likewise.
11874
9fe7d6bf
MS
118752003-01-06 Michael Snyder <msnyder@redhat.com>
11876
11877 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11878
f6c609c4
AC
118792003-01-06 Andrew Cagney <ac131313@redhat.com>
11880
11881 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11882 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11883 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11884 deprecated_frame_xmalloc_with_cleanup.
11885 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11886 deprecated_frame_xmalloc.
11887 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11888 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11889
d995ff4b
AC
118902003-01-06 Andrew Cagney <cagney@redhat.com>
11891
84dc46cb
AC
11892 * x86-64-linux-tdep.c: Include "osabi.h".
11893 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11894
d995ff4b
AC
11895 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11896
66140c26
AC
118972003-01-06 Andrew Cagney <cagney@redhat.com>
11898
11899 * MAINTAINERS (Target Instruction Set Architectures): Update
11900 arm-elf. Can be built with -Werror, has been multiarched.
11901
11902 * value.h (unpack_long): Make buffer parameter constant.
11903 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11904 * scm-lang.h (scm_parse): Ditto.
11905 * defs.h (extract_typed_address, extract_address): Ditto.
11906 (extract_long_unsigned_integer): Ditto.
11907 * inferior.h (unsigned_pointer_to_address): Ditto.
11908 (signed_pointer_to_address): Ditto.
11909 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11910 * gdbarch.h, gdbarch.c: Regenerate.
11911 * findvar.c (extract_long_unsigned_integer): Update.
11912 (extract_address): Update.
11913 (extract_typed_address): Update.
11914 (unsigned_pointer_to_address): Update.
11915 * values.c (unpack_long): Update.
11916 (unpack_double): Update.
11917 (unpack_pointer): Update.
11918 (unpack_field_as_long): Update.
11919 * d10v-tdep.c (d10v_pointer_to_address): Update.
11920 * avr-tdep.c (avr_pointer_to_address): Update.
11921 * scm-lang.c (scm_unpack): Update.
11922 * findvar.c (signed_pointer_to_address): Update.
11923
b089b3da
ML
119242003-01-06 Michal Ludvig <mludvig@suse.cz>
11925
8ffd9b1b 11926 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11927 since it is in i386-tdep.c.
11928
aff87235
JB
119292003-01-06 J. Brobecker <brobecker@gnat.com>
11930
11931 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11932 failure introduced in the previous change.
11933
34f5e845
MC
119342003-01-05 Michael Chastain <mec@shout.net>
11935
11936 * README: Remove references to deleted remote-*.c files:
11937 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11938 remote-nrom.c, remote-os9k.c, remote-udi.c.
11939
28bcfd30
MK
119402003-01-05 Mark Kettenis <kettenis@gnu.org>
11941
11942 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11943 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11944 i386_get_longjmp_target.
11945
15a5b3ee
AC
119462003-01-05 Andrew Cagney <ac131313@redhat.com>
11947
11948 * arm-tdep.c (prologue_cache): Change to a pointer.
11949 (_initialize_arm_tdep): Allocate prologue_cache.
11950 (check_prologue_cache): Update.
11951 (save_prologue_cache): Update.
11952 (arm_gdbarch_init): Update.
11953
c263362b
DJ
119542003-01-04 Daniel Jacobowitz <drow@mvista.com>
11955
11956 * stabsread.c (update_method_name_from_physname): Call complaint()
11957 instead of error.
11958
51603483
DJ
119592003-01-04 Daniel Jacobowitz <drow@mvista.com>
11960
11961 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11962 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11963 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11964
11965 * blockframe.c: Include "gdbcmd.h" and "command.h".
11966 (backtrace_below_main): New variable.
11967 (file_frame_chain_valid, func_frame_chain_valid)
11968 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11969 (generic_func_frame_chain_valid): Remove functions.
11970 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11971 (_initialize_blockframe): New function.
11972 * Makefile.in (blockframe.o): Update dependencies.
11973 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11974 comment. Call frame_chain_valid ().
11975 * frame.h: Remove old prototypes. Add prototype for
11976 frame_chain_valid and update comments to match.
11977 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11978 Remove old comment.
11979 * gdbarch.h: Regenerated.
11980 * gdbarch.c: Regenerated.
11981
11982 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11983 set_gdbarch_frame_chain_valid.
11984 * avr-tdep.c (avr_gdbarch_init): Likewise.
11985 * cris-tdep.c (cris_gdbarch_init): Likewise.
11986 * frv-tdep.c (frv_gdbarch_init): Likewise.
11987 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11988 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11989 (i386_nw_init_abi): Likewise.
11990 (i386_gdbarch_init): Likewise.
11991 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11992 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11993 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11994 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11995 * mips-tdep.c (mips_gdbarch_init): Likewise.
11996 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11997 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11998 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11999 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12000 * s390-tdep.c (s390_gdbarch_init): Likewise.
12001 * sh-tdep.c (sh_gdbarch_init): Likewise.
12002 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12003 * v850-tdep.c (v850_gdbarch_init): Likewise.
12004 * vax-tdep.c (vax_gdbarch_init): Likewise.
12005 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12006
12007 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12008 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12009 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12010 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12011 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12012 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12013 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12014 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12015
b00a8037
DJ
120162002-01-04 Daniel Jacobowitz <drow@mvista.com>
12017
12018 * Makefile.in (acconfig_h): Remove incorrect macro.
12019 (config_h): Define.
12020 (osabi.o): Update dependencies.
12021 * configure.tgt: Set gdb_osabi based on target triplet.
12022 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12023 * configure: Regenerated.
12024 * config.in: Regenerated.
12025 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12026 (GDB_OSABI_DEFAULT): Define if not already defined.
12027 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12028 (set_osabi_string): New variables.
12029 (gdbarch_register_osabi): Add new OS ABI to
12030 gdb_osabi_available_names.
12031 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12032 (set_osabi, show_osabi): New functions.
12033 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12034
4be87837
DJ
120352003-01-04 Daniel Jacobowitz <drow@mvista.com>
12036
12037 * arch-utils.c (gdbarch_info_init): Set osabi to
12038 GDB_OSABI_UNINITIALIZED.
12039 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12040 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12041 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12042 * gdbarch.c: Regenerated.
12043 * gdbarch.h: Regenerated.
12044 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12045 there's no BFD.
12046 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12047 * osabi.h (enum gdb_osabi): Move to defs.h.
12048 (gdbarch_init_osabi): Update prototype.
12049 * defs.h (enum gdb_osabi): Moved here.
12050 * Makefile.in: Update dependencies.
12051
12052 * alpha-tdep.h: Don't include "osabi.h".
12053 (struct gdbarch_tdep): Remove osabi member.
12054 * alpha-tdep.c: Include "osabi.h".
12055 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12056 iterate over arches. Update call to gdbarch_init_osabi.
12057 (alpha_dump_tdep): Don't dump osabi.
12058 * alpha-linux-tdep.c: Include "osabi.h".
12059 * alpha-osf1-tdep.c: Include "osabi.h".
12060 * alphafbsd-tdep.c: Include "osabi.h".
12061 * alphanbsd-tdep.c: Include "osabi.h".
12062
12063 * arm-tdep.h: Don't include "osabi.h".
12064 (struct gdbarch_tdep): Remove osabi member.
12065 * arm-tdep.c: Include "osabi.h".
12066 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12067 iterate over arches. Update call to gdbarch_init_osabi.
12068 (arm_dump_tdep): Don't dump osabi.
12069 * arm-linux-tdep.c: Include "osabi.h".
12070 * armnbsd-tdep.c: Include "osabi.h".
12071
12072 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12073 Update call to gdbarch_init_osabi.
12074
12075 * i386-tdep.h: Don't include "osabi.h".
12076 (struct gdbarch_tdep): Remove osabi member.
12077 * i386-tdep.c: Include "osabi.h".
12078 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12079 iterate over arches. Update call to gdbarch_init_osabi.
12080 (i386_dump_tdep): Don't dump osabi.
12081 * i386-linux-tdep.c: Include "osabi.h".
12082 * i386-sol2-tdep.c: Include "osabi.h".
12083 * i386bsd-tdep.c: Include "osabi.h".
12084 * i386gnu-tdep.c: Include "osabi.h".
12085 * i386ly-tdep.c: Include "osabi.h".
12086 * i386nbsd-tdep.c: Include "osabi.h".
12087 * i386obsd-tdep.c: Include "osabi.h".
12088
12089 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12090 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12091 check osabi when iterating over arches. Update call to
12092 gdbarch_init_osabi.
12093 (mips_dump_tdep): Don't dump osabi.
12094
12095 * ns32k-tdep.h: Don't include "osabi.h".
12096 (struct gdbarch_tdep): Remove.
12097 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12098 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12099 allocate tdep. Update call to gdbarch_init_osabi.
12100 (ns32k_dump_tdep): Remove.
12101 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12102 * ns32knbsd-tdep.c: Include "osabi.h".
12103
12104 * ppc-tdep.h: Don't include "osabi.h".
12105 (struct gdbarch_tdep): Remove osabi member.
12106 * rs6000-tdep.c: Include "osabi.h".
12107 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12108 osabi when iterating over arches. Update call to
12109 gdbarch_init_osabi.
12110 (rs6000_dump_tdep): Don't dump osabi.
12111 * ppc-linux-tdep.c: Include "osabi.h".
12112 * ppcnbsd-tdep.c: Include "osabi.h".
12113
12114 * sh-tdep.h: Don't include "osabi.h".
12115 (struct gdbarch_tdep): Remove osabi member.
12116 * sh-tdep.c: Include "osabi.h".
12117 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12118 iterate over arches. Update call to gdbarch_init_osabi.
12119 (sh_dump_tdep): Don't dump osabi.
12120 * shnbsd-tdep.c: Include "osabi.h".
12121
12122 * sparc-tdep.c: Include "osabi.h".
12123 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12124 iterate over arches. Update call to gdbarch_init_osabi.
12125 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12126 tdep structure.
12127
12128 * vax-tdep.h: Don't include "osabi.h".
12129 (struct gdbarch_tdep): Remove.
12130 * vax-tdep.c: Include "osabi.h".
12131 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12132 iterate over arches. Don't allocate tdep. Update call
12133 to gdbarch_init_osabi.
12134 (vax_dump_tdep): Remove.
12135 (_initialize_vax_tdep): Update call to gdbarch_register.
12136
a881cf8e
DJ
121372003-01-04 Daniel Jacobowitz <drow@mvista.com>
12138
12139 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12140 entirely.
12141 (breakpoint_re_set_one): Don't fetch the value for a disabled
12142 watchpoint.
12143
1e698235
DJ
121442003-01-04 Daniel Jacobowitz <drow@mvista.com>
12145
12146 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12147 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12148 (COERCE_FLOAT_TO_DOUBLE): Remove.
12149 * gdbarch.c: Regenerate.
12150 * gdbarch.h: Regenerate.
12151 * Makefile.in: Remove value_h from gdbarch_h.
12152 * valops.c (coerce_float_to_double): New variable.
12153 (default_coerce_float_to_double): Remove.
12154 (standard_coerce_float_to_double): Remove.
12155 (value_arg_coerce): Use coerce_float_to_double.
12156 (_initialize_valops): Add "set coerce-float-to-double".
12157 * value.h (default_coerce_float_to_double): Remove prototype.
12158 (standard_coerce_float_to_double): Remove prototype.
12159
12160 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12161 prototyped.
12162 * mdebugread.c (parse_symbol): Likewise.
12163 * stabsread.c (define_symbol): Mark all functions as prototyped.
12164
12165 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12166 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12167 set_gdbarch_coerce_float_to_double.
12168 * arm-tdep.c (arm_gdbarch_init): Likewise.
12169 * frv-tdep.c (frv_gdbarch_init): Likewise.
12170 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12171 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12172 * mips-tdep.c (mips_gdbarch_init): Likewise.
12173 (mips_coerce_float_to_double): Remove.
12174 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12175 (rs6000_coerce_float_to_double): Remove.
12176 * s390-tdep.c (s390_gdbarch_init): Likewise.
12177 * sh-tdep.c (sh_gdbarch_init): Likewise.
12178 (sh_coerce_float_to_double): Remove.
12179 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12180 (sparc_coerce_float_to_double): Remove.
12181 * v850-tdep.c (v850_gdbarch_init): Likewise.
12182 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12183 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12184 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12185 (hppa_coerce_float_to_double): Remove prototype.
12186 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12187
f436a26a
DJ
121882003-01-04 Daniel Jacobowitz <drow@mvista.com>
12189
12190 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12191
248f8055
DJ
121922003-01-04 Daniel Jacobowitz <drow@mvista.com>
12193
12194 Suggested by Stewart Brown <sb24@avaya.com>:
12195 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12196 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12197 (c_type_print_varspec_suffix): Likewise.
12198
72cfdc76
MK
121992003-01-04 Mark Kettenis <kettenis@gnu.org>
12200
bfd260bb
MK
12201 * configure.in: Don't set and AC_SUBST SUBDIRS.
12202 * configure: Regenerated.
12203
72cfdc76
MK
12204 * configure.in: Remove code dealing with shared libraries.
12205 * Makefile.in: Remove HLDFLAGS and HLDENV.
12206 * configure: Regenerated.
12207
c8b8a898
AC
122082003-01-04 Andrew Cagney <ac131313@redhat.com>
12209
12210 * frame.c (deprecated_frame_xmalloc): New function.
12211 (deprecated_set_frame_saved_regs_hack): New function.
12212 (deprecated_set_frame_extra_info_hack): New function.
12213 * frame.h (deprecated_frame_xmalloc): Declare.
12214 (deprecated_set_frame_saved_regs_hack): Declare.
12215 (deprecated_set_frame_extra_info_hack): Declare.
12216
14abd0fb
MK
122172003-01-04 Mark Kettenis <kettenis@gnu.org>
12218
8ee53726
MK
12219 * configure.in: Move code that provides the --enable-gdbtk option
12220 right after the code that handles the --enable-tui option, and
12221 polish it somewhat.
12222 * configure: Regenerated.
12223
14abd0fb
MK
12224 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12225 AC_CHECK_FUNCS and remove the old check for pread64.
12226 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12227 * acconfig.h (_GNU_SOURCE): Add.
12228 (HAVE_PREAD64): Remove.
12229 * configure, aclocal.m4, config.in: Regenerated.
12230
b2fb4676
AC
122312003-01-03 Andrew Cagney <ac131313@redhat.com>
12232
12233 * alpha-tdep.c: Use get_frame_saved_regs.
12234 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12235 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12236 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12237 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12238 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12239
8dcde887
MK
122402003-01-03 Mark Kettenis <kettenis@gnu.org>
12241
12242 * configure.in: Remove all use of the SUBDIRS variable; add
12243 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12244 code providing the --enable-multi-ice option, and move it right in
12245 front of the code that checks whether gdbserver is supported.
12246 Polish that too.
12247 * configure: Regenerated.
12248 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12249 @SUBDIRS@.
12250
8ccd593b
AC
122512003-01-03 Andrew Cagney <cagney@redhat.com>
12252
12253 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12254 * avr-tdep.c, cris-tdep.c: Ditto.
12255 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12256 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12257
91151a06
MK
122582003-01-03 Mark Kettenis <kettenis@gnu.org>
12259
12260 * configure.in: Remove --enable-netrom option.
12261 * configure: Regenerated.
12262
8fe84d01
MK
122632003-01-03 Mark Kettenis <kettenis@gnu.org>
12264
12265 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12266 declaration for `struct re_pattern_buffer' instead.
12267 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12268
f0394be6
JB
122692003-01-03 J. Brobecker <brobecker@gnat.com>
12270
12271 * mdebugread.c (parse_symbol): Count until the stEnd matching
12272 the structure name.
12273
27e9bf90
MK
122742003-01-02 Mark Kettenis <kettenis@gnu.org>
12275
93d331ba
MK
12276 * configure.in: Remove --with-cpu option.
12277 subscripts. Remove evil changequotes here.
12278 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12279 * config.in, configure: Regenerated.
8ffd9b1b 12280
27e9bf90
MK
12281 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12282 * configure.in: Cleanup section that sources GDB and BFD configure
12283 subscripts. Remove evil changequotes here.
12284 * config.in, configure: Regenerated.
12285
50abf9e5
AC
122862003-01-02 Andrew Cagney <ac131313@redhat.com>
12287
12288 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12289 frame accessor methods.
12290 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12291 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12292 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12293 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12294 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12295 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12296 * z8k-tdep.c: Ditto.
8ffd9b1b 12297
287c1a40
MK
122982003-01-02 Mark Kettenis <kettenis@gnu.org>
12299
f5dbc56d
MK
12300 * configure.in: Remove UI_OUT configuration code.
12301 * ada-lang.c: Update assuming UI_OUT is always true.
12302 * Makefile.in (UIOUT_CFLAGS): Remove.
12303 * configure: Regenerated.
12304 * TODO: Remove blurb about elimination of -DUI_OUT.
12305
627af7ea
MK
12306 * configure.in: Move code that provides the --enable-gdbcli,
12307 --enable-gdbmi options right before the code that handles the
12308 --enable-tui option. Polish a bit.
12309 * configure: Regenerated.
12310
06825bd1
MK
12311 * configure.in: Rewrite check for GNU regex and the
12312 --without-included regex option, and move it into the "Checks for
12313 library functions" section. This makes us use the system regex
12314 again by default on systems with version 2 of the GNU C library.
12315 This was apparently broken.
12316 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12317 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12318 * config.in, configure: Regenerated.
12319
287c1a40
MK
12320 * configure.in: Move code that provides the --enable-tui option
12321 before the "Checks for libraries" section. Polish the code
12322 somewhat and set need_curses to yes if we build the TUI. Rewrite
12323 code that looks for a library providing termcap functionality to
12324 match more closely what's done in the Readline library, and move
12325 it into to the "Checks for libraries" section.
12326 * configure: Regenerated.
12327 * Makefile.in (TERMCAP): Remove variable.
12328 * config/i386/go32.mh (TERMCAP): Remove variable.
12329
684e56bf
AC
123302003-01-02 Andrew Cagney <ac131313@redhat.com>
12331
12332 * MAINTAINERS: Mention gdb_mbuild.sh.
12333 * gdb_mbuild.sh: Rewrite.
12334
e1ea1d75
MK
123352003-01-02 Mark Kettenis <kettenis@gnu.org>
12336
12337 * configure.in: Fix typo in last change.
12338 * config.in, configure: Regenerated.
12339
1b831c93
AC
123402003-01-02 Andrew Cagney <ac131313@redhat.com>
12341
12342 * valarith.c (value_binop): Delete obsolete code and comments.
12343 * configure.host: Ditto.
12344 * buildsym.h (make_blockvector): Ditto.
12345 * buildsym.c (make_blockvector): Ditto.
12346 * defs.h (enum language): Ditto.
12347 (chill_demangle): Ditto.
12348 * elfread.c (elf_symtab_read): Ditto.
12349 * dwarfread.c (CHILL_PRODUCER): Ditto.
12350 (set_cu_language): Ditto.
12351 (handle_producer): Ditto.
12352 * expprint.c (print_subexp): Ditto.
12353 * gdbtypes.c (chill_varying_type): Ditto.
12354 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12355 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12356 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12357 (chill_varying_type): Ditto.
12358 * language.h (_LANG_chill): Ditto.
12359 * language.c (binop_result_type, integral_type): Ditto.
12360 (character_type, string_type, structured_type): Ditto.
12361 (lang_bool_type, binop_type_check): Ditto.
12362 * stabsread.h (os9k_stabs): Ditto.
12363 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12364 (define_symbol, read_type, read_struct_fields): Ditto.
12365 (read_array_type, read_enum_type, read_huge_number): Ditto.
12366 (read_range_type, start_stabs): Ditto.
12367 * symfile.c (init_filename_language_table): Ditto.
12368 (add_psymbol_with_dem_name_to_list): Ditto.
12369 * symtab.c (symbol_init_language_specific): Ditto.
12370 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12371 * symtab.h (struct general_symbol_info): Ditto.
12372 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12373 * typeprint.c (typedef_print): Ditto.
12374 * utils.c (fprintf_symbol_filtered): Ditto.
12375 * valops.c (value_cast, search_struct_field, value_slice): Delete
12376 obsolete code.
12377 (varying_to_slice): Delete function.
12378 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12379 (varying_to_slice): Delete declaration.
12380 * MAINTAINERS: Update.
12381
8bb2c122
MK
123822003-01-02 Mark Kettenis <kettenis@gnu.org>
12383
97bf5e38
MK
12384 * configure.in: Reorganize "Checks for library functions section"
12385 a bit. Remove check for `btowc' and `isascii' functions.
12386 * configure: Regenerated.
12387
5ee754fc
MK
12388 * acconfig.h (_MSE_INT_H): Remove.
12389 * configure.in: Create "Checks for header files" section, and move
12390 appropriate tests there. Don't check for objlist.h, wchar.h,
12391 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12392 misdetection fix. Also add "Checks for types", "Checks for
12393 compiler characteristics" and "Checks for library functions"
12394 sections.
12395 * config.in, configure: Regenerated.
12396
8bb2c122
MK
12397 * configure.in: Create "Checks for programs" section, and move
12398 appropriate tests there.
12399
9a156167
MK
124002003-01-01 Mark Kettenis <kettenis@gnu.org>
12401
12402 * configure.in: Create "Checks for libraries" section, and move
12403 appropriate tests there. Cleanup check for wctype in libw. Use
12404 AC_SEARCH_LIBS to see whether we need libsocket.
12405 * configure: Regenerated.
12406
a80e2bcb 12407For older changes see ChangeLog-2002
c906108c
SS
12408\f
12409Local Variables:
12410mode: change-log
12411left-margin: 8
12412fill-column: 74
12413version-control: never
12414End:
This page took 1.415134 seconds and 4 git commands to generate.