daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
54c84734
MK
12003-09-26 Mark Kettenis <kettenis@gnu.org>
2
3 * regset.h: New file.
4 * Makefile.in (regset_h): Add.
5
1b1d3794
AC
62003-09-25 Andrew Cagney <cagney@redhat.com>
7
8 * frame.h (deprecated_frame_saved_regs): Rename
9 get_frame_saved_regs.
10 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
11 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
12 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
13 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
14 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
15
e6beb428
AC
162003-09-25 Andrew Cagney <cagney@redhat.com>
17
18 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
19 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
20 and Java.
21 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
22 arm*-*-* do not use the new frame code.
23
710122da
DC
242003-09-25 David Carlton <carlton@kealia.com>
25
26 * c-exp.y: Remove 'register' declarations.
27 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
28
79c2c32d
DC
292003-09-25 David Carlton <carlton@kealia.com>
30
31 * c-exp.y: Include cp-support.h. Add qualified_type.
32 (yylex): Delete nested type hack; add comments.
33 * cp-namespace.c (cp_lookup_nested_type): New function.
34 * cp-support.h: Declare cp_lookup_nested_type.
35 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
36 instead of value_struct_elt_for_reference.
37 * valops.c: Include cp-support.h.
38 (value_aggregate_elt): New function.
39 (value_namespace_elt): Ditto.
40 (value_struct_elt_for_reference): Make static.
41 * value.h: Delete declaration of value_struct_elt_for_reference;
42 add declaration for value_aggregate_elt.
43 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
44 (valops.o): Ditto.
45
898c62f5
DJ
462003-09-25 Daniel Jacobowitz <drow@mvista.com>
47
48 * stack.c: Include "reggroups.h".
49 (frame_info): Only display registers in all_reggroup.
50 * Makefile.in (stack.o): Update dependencies.
51
28cd8767
JG
522003-09-25 Jerome Guitton <guitton@act-europe.fr>
53
54 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
55 "add ip, sp #n" in the prologue.
56 (arm_scan_prologue): Ditto.
57
a4ab2b5d
JG
582003-09-25 Jerome Guitton <guitton@act-europe.fr>
59
60 * MAINTAINERS (write after approval): Add myself.
61
3f244638
AS
622003-09-25 Andreas Schwab <schwab@suse.de>
63
64 * m68k-tdep.c: Include "dwarf2-frame.h".
65 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
66 * Makefile.in (m68k-tdep.o): Update dependencies.
67
1c0159e0
CV
682003-09-25 Corinna Vinschen <vinschen@redhat.com>
69
70 * sh-tdep.c (struct frame_extra_info): Remove.
71 (struct sh_frame_cache): New structure.
72 (GET_SOURCE_REG): New macro extracting source register of an opcode.
73 (GET_TARGET_REG): Ditto but target register.
74 (GET_PUSHED_REG): Remove.
75 (IS_MOV_ARG_TO_REG): New macro.
76 (IS_MOV_ARG_TO_IND_R14): New macro.
77 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
78 (IS_MOVW_PCREL_TO_REG): New macro.
79 (IS_MOVL_PCREL_TO_REG): New macro.
80 (IS_SUB_REG_FROM_SP): New macro.
81 (IS_ARG_MOV): Remove.
82 (IS_MOV_TO_R14): Remove.
83 (IS_RESTORE_FP): New macro.
84 (IS_RTS): New macro.
85 (IS_LDS): New macro.
86 (IS_MOV_FP_SP): New macro.
87 (IS_ADD_REG_TO_FP): New macro.
88 (IS_ADD_IMM_FP): New macro.
89 (sh_skip_prologue_hard_way): Remove.
90 (sh_saved_pc_after_call): Remove.
91 (sh_frame_chain): Remove.
92 (sh_find_callers_reg): Remove.
93 (sh_nofp_frame_init_saved_regs): Remove.
94 (sh_fp_frame_init_saved_regs): Remove.
95 (sh_init_extra_frame_info): Remove.
96 (sh_analyze_prologue): New function.
97 (sh_skip_prologue): Remove deprecated code. Rely on new function
98 sh_analyze_prologue when after_prologue fails.
99 (sh_frame_saved_pc): Remove.
100 (sh_alloc_frame_cache): New function.
101 (sh_frame_cache): Ditto.
102 (sh_frame_prev_register): Ditto.
103 (sh_frame_this_id): Ditto.
104 (sh_frame_unwind): New structure defining the heuristic frame
105 sniffer interface.
106 (sh_frame_sniffer): New function.
107 (sh_unwind_sp): Ditto.
108 (sh_unwind_pc): Ditto.
109 (sh_unwind_dummy_id): Ditto.
110 (sh_frame_base_address): Ditto.
111 (sh_frame_base): New structure defining new frame base code.
112 (sh_in_function_epilogue_p): New function.
113 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
114 code and to call all new code instead. Initialize dwarf2 and
115 heuristic frame sniffer.
116
5f9769d1
PH
1172003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
118
119 * parser-defs.h (struct exp_descriptor): New definition, containing
120 language-specific info for printing, prefixifying, dumping, and
121 evaluating expressions.
122 (exp_descriptor_standard): Declare new variable.
123 (print_subexp): Make global and declare here (from expprint.c).
124 (dump_subexp): Ditto.
125 (dump_subexp_body_standard): Declare.
126 (operator_length_standard): Declare.
127 (op_name_standard): Declare.
128 (print_subexp): Declare.
129 (print_subexp_standard): Declare.
130
131 * language.h (struct language_defn): Add la_exp_desc field to hold
132 pointer to table for language-specific operators.
133 Remove evaluate_exp field, which is now in struct exp_descriptor.
134
135 * parse.c (operator_length): Move most code to new
136 operator_length_standard function. Use language-specific information.
137 (operator_length_standard): New function taking most code from
138 operator_length.
139 (exp_descriptor_standard): New constant.
140
141 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
142 and OP_EXTENDED_LAST.
143
144 * expprint.c (print_subexp): Use language-specific print_subexp.
145 Make global; remove static declaration.
146 Move most code to print_subexp_standard.
147 (print_subexp_standard): New function, containing code formerly in
148 print_subexp.
149 (op_name): Add expression to argument signature.
150 Use langauge-specific op_name.
151 Move most code to op_name_standard.
152 (op_name_standard): New function, containing code formerly in op_name.
153 (dump_subexp): Use new version of op_name function.
154 Use language-specific dump_subexp_body, and move most existing code to
155 dump_subexp_body_standard.
156 (dump_raw_expression): Use new op_name interface.
157 (dump_subexp_body): Move most code to dump_subexp_body_standard.
158 (dump_subexp_body_standard): New function, containing code formerly
159 in dump_subexp_body.
160
161 * language.c (unknown_language): Add default la_exp_desc field and
162 remove evaluate_exp field.
163 (auto_language): Ditto.
164 (local_language): Ditto.
165 * f-lang.c (f_language_defn): Ditto.
166 * c-lang.c (c_language_defn): Ditto.
167 (cplus_language_defn): Ditto.
168 (asm_language_defn): Ditto.
169 (minimal_language_defn): Ditto.
170 * p-lang.c (pascal_language_defn): Ditto.
171 * m2-lang.c (m2_language_defn): Ditto.
172 * objc-lang.c (objc_language_defn): Ditto.
173
174 * jv-lang.c (exp_descriptor_java): New variable, containing
175 Java-specific expression evaluator.
176 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
177 field.
178 * scm-lang.c (exp_descriptor_scm): New variable, containing
179 Scheme-specific expression evaluator.
180 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
181 field.
182 * objc-lang.c (print_object_command): Take evaluate_exp from the
183 la_exp_desc field.
184
185 * Makefile.in (eval.o): Add dependency on parser-defs.h.
186
187 * eval.c: Include parser-defs.h for the full declaration of
188 la_exp_desc's type.
189 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
190
24daaebc
PH
1912003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
192
193 * parser-defs.h (operator_length): Declare.
194
195 * parse.c (length_of_subexp): Use operator_length to get operator
196 lengths and arities for operators.
197 Move most code to new operator_length function.
198 (operator_length): New function absorbing most code from
199 length_of_subexp.
200 (prefixify_subexp): Remove large case and use operator_length instead.
201 (parse_exp_1): Use renamings:
202 dump_prefix_expression => dump_raw_expression and
203 dump_postfix_expression => dump_prefix_expression.
204
205 * expression.h (dump_prefix_expression): Rename to ...
206 (dump_raw_expression): New name.
207 (dump_postfix_expression): Rename to ...
208 (dump_prefix_expression): New name.
209
210 * expprint.c (dump_subexp): Make global. Add comment.
211 Move most existing code to dump_subexp_body.
212 (dump_subexp_body): New function.
213 (dump_prefix_expression): Rename to dump_raw_expression.
214 Remove attempt to print the expression via print_expression: it can't
215 work before the expression is prefixified.
216 (dump_raw_expression): Renamed from dump_prefix_expression.
217 (dump_postfix_expression): Rename to dump_prefix_expression, since
218 that's what it does.
219 Remove 'note' parameter, since this routine must be used on
220 prefixified expression.
221 (dump_prefix_expression): Renamed from dump_postfix_expression.
222
8c2957c4
JB
2232003-09-22 Jim Blandy <jimb@redhat.com>
224
225 * dwarf2read.c (read_array_type): When building the type for an
226 array of unspecified length, make sure to choose the upper bound
227 so that the array's total length comes out to be zero --- that's
228 how we represent such arrays.
229
592e3010
MC
2302003-09-22 Michael Chastain <mec@shout.net>
231
232 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
233
365c70b1
JJ
2342003-09-22 Jeff Johnston <jjohnstn@redhat.com>
235
236 * top.c (quit_force): Fix indirect call to quit_target so
237 a struct qt_args pointer is passed.
238
5d6eb653
AC
2392003-09-22 Andrew Cagney <cagney@redhat.com>
240
241 * arch-utils.h (init_frame_pc_noop): Delete declaration.
242 * arch-utils.c (init_frame_pc_noop): Delete function.
243 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
244 "init_frame_pc".
245 * mips-tdep.c (mips_gdbarch_init): Ditto.
246 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
247 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
248 declaration.
249 (DEPRECATED_INIT_FRAME_PC): Delete macro.
250 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
251 declaration.
252 (DEPRECATED_INIT_FRAME_PC): Delete macro.
253
b222a67f
AG
2542003-09-22 Anthony Green <green@redhat.com>
255
256 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
257 declaration.
258
d5b5ac79
AC
2592003-09-20 Andrew Cagney <cagney@redhat.com>
260
deafb061
AC
261 * breakpoint.c: Eliminate ARGSUSED.
262 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
263 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
264 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
265 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
266 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
267 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
268 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
269 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
270 * wince.c, remote-vx.c: Ditto.
271
d5b5ac79
AC
272 * cli/cli-script.c: Remove "register" attributes.
273 * config/pa/tm-hppa.h: Ditto.
274 * cli/cli-decode.c: Ditto.
275 * cli/cli-cmds.c: Ditto.
276
c6316faa
AC
2772003-09-19 Andrew Cagney <cagney@redhat.com>
278
279 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
280 DEPRECATED_NPC_REGNUM.
281 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
282
f4f99b11
CF
2832003-09-19 Christopher Faylor <cgf@redhat.com>
284
285 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
286
1708f284
JB
2872003-09-19 Jim Blandy <jimb@redhat.com>
288
289 * macrotab.c (macro_include): Use the correct comparison to find
290 the appropriate place for this inclusion in the list.
291
b9fbf434
AC
2922003-09-19 Andrew Cagney <cagney@redhat.com>
293
294 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
295 (DEPRECATED_HPUX_TEXT_END): Define.
296 (deprecated_hpux_text_end): Declare.
297 (struct target_ops): Declare opaque.
298 * hppah-nat.c (text_end): Make static.
299 (deprecated_hpux_text_end): New function.
300 * exec.c (text_end): Delete global variable.
301 (NEED_TEXT_START_END): Do not define.
302 (exec_file_attach): Replace code computing "text_end" code with
303 call to DEPRECATED_HPUX_TEXT_END.
304
5b03f266
AC
3052003-09-19 Andrew Cagney <cagney@redhat.com>
306
307 * utils.c (align_up, align_down): New functions.
308 * defs.h (align_up, align_down): Declare.
309 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
310 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
311 and "align_down".
312 (round_up, round_down): Delete functions.
313 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
314 "align_down".
315 (ROUND_DOWN, ROUND_UP): Delete macros.
316 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
317 * h8300-tdep.c: Replace "round_up" and "round_down" with
318 "align_up" and "align_down".
319 (round_up, round_down): Delete macros.
320 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
321 "align_down".
322 (ROUND_UP, ROUND_DOWN): Delete macros.
323
51db5742
JB
3242003-09-18 J. Brobecker <brobecker@gnat.com>
325
326 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
327 hard-coded constant. Use the proper machine name instead.
328
77949794
AC
3292003-09-17 Andrew Cagney <cagney@redhat.com>
330
331 * sparc-tdep.c (legacy_register_name): Delete function.
332 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
333 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
334 * infcmd.c (gdb_register_name): Delete variable.
335 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
336 REGISTER_NAME and "tm.h".
337 * gdbarch.h, gdbarch.c: Regenerate.
338 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
339 REGISTER_NAMES in comments.
340 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
341 * m68klinux-nat.c (regmap): Ditto.
342
b55c33cc
JB
3432003-09-17 Jim Blandy <jimb@redhat.com>
344
345 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
346
957e27ac
AC
3472003-09-17 Andrew Cagney <cagney@redhat.com>
348
349 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
350 (ppcnbsd_init_abi): Set "use_struct_convention" to
351 "ppcnbsd_use_struct_convention".
352
192cb3d4
MK
3532003-09-17 Mark Kettenis <kettenis@gnu.org>
354
355 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
356 * gdbarch.h, gdbarch.c: Regenerate.
357 (stabs_argument_has_addr): New architecture method.
358 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
359 * arch-utils.c: Include "buildsym.h".
360 (default_stabs_argument_has_addr): New function.
361 * stabsread.c (define_symbol): Use stabs_argument_has_addr
362 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
363
efe59759
AC
3642003-09-17 Andrew Cagney <cagney@redhat.com>
365
366 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
367 * gdbarch.h, gdbarch.c: Regenerate.
368 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
369 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
370 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
371 * sparcnbsd-tdep.c: Update.
372
62700349
AC
3732003-09-17 Andrew Cagney <cagney@redhat.com>
374
375 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
376 * gdbarch.h, gdbarch.c: Regenerate.
377 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
378 * d10v-tdep.c, frame.c: Update.
379 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
380 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
381 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
382 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
383 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
384 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
385 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
386 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
387 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
388 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
389 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
390 * config/pa/nm-hppah.h: Update.
391
b9ff3018
AC
3922003-09-16 Andrew Cagney <cagney@redhat.com>
393
394 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
395 "use_struct_convention" to "ppc_linux_use_struct_convention".
396 (ppc_linux_use_struct_convention): New function.
397 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
398 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
399 "rs6000_use_struct_convention".
400 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
401 declaration.
402 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
403 Delete function.
404
aa1ee363
AC
4052003-09-16 Andrew Cagney <cagney@redhat.com>
406
407 * buildsym.c: Remove more occurances of "register".
408 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
409 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
410 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
411 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
412 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
413 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
414 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
415 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
416
f2ea0907
CV
4172003-09-16 Corinna Vinschen <vinschen@redhat.com>
418
419 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
420 numbers to enumeration values.
421 * sh-tdep.c: Accomodate above change.
422 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
423 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
424 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
425 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
426 (IS_FPUSH): Rename from IS_FMOV.
427 (sh_extract_struct_value_address): Remove useless comment.
428 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
429 instead of own local values.
430 (sh_dump_tdep): Remove.
431 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
432 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
433
1c704f11
AC
4342003-09-15 Andrew Cagney <cagney@redhat.com>
435
436 * doublest.c (convert_floatformat_to_doublest): No longer need to
437 cast "exp_bias" to an int. Reverts 2002-12-04 change.
438
ac79b88b
DJ
4392003-09-15 Daniel Jacobowitz <drow@mvista.com>
440
441 * values.c (unpack_double): Call floatformat_is_valid.
442
1c671366
MK
4432003-09-15 Mark Kettenis <kettenis@gnu.org>
444
de5227fb
MK
445 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
446 ps_strings into a long.
447
1c671366
MK
448 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
449 _initialize_am64fbsd_nat.
450
a604369a
KB
4512003-09-15 Kevin Buettner <kevinb@redhat.com>
452
453 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
454 associated with DW_AT_ranges attribute is out of bounds.
455
b3cacbee
DL
4562003-09-15 David Lecomber <dsl@sources.redhat.com>
457
458 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
459
d0f37bb2
MC
4602003-09-14 Michael Chastain <mec@shout.net>
461
462 * config/m68k/nm-apollo68v.h: Delete.
463 * config/m68k/xm-apollo68v.h: Delete.
464
69517000
AC
4652003-09-14 Andrew Cagney <cagney@redhat.com>
466
467 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
468 * dcache.c: Update copyrights and descriptions.
469 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
470
ef8b349d
AC
4712003-09-14 Andrew Cagney <cagney@redhat.com>
472
473 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
474 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
475
52f0bd74
AC
4762003-09-14 Andrew Cagney <cagney@redhat.com>
477
478 * alpha-nat.c: Remove some occurances of "register".
479 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
480 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
481 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
482 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
483 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
484 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
485 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
486 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
487 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
488 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
489 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
490 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
491 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
492 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
493 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
494 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
495 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
496 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
497 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
498 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
499 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
500 * values.c, vax-tdep.c, xcoffread.c: Ditto.
501
4a4b3fed
AC
5022003-09-13 Andrew Cagney <cagney@redhat.com>
503
504 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
505 * ppc-tdep.h (struct regcache): Declare opaque.
506 * objfiles.h (struct objfile_data): Declare opaque.
507 * cp-support.h (struct objfile): Declare opaque.
508 * linux-nat.h (target_waitstatus): Declare opaque.
509
2110b94f
MK
5102003-09-14 Mark Kettenis <kettenis@gnu.org>
511
1c671366
MK
512 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
513 (stabs_argument_has_addr): New architecture method.
514 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
515 * arch-utils.c: Include "buildsym.h".
516 (default_stabs_argument_has_addr): New function.
517 * stabsread.c (define_symbol): Use stabs_argument_has_addr
518 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
519
2110b94f
MK
520 * cris-tdep.c (cris_gdbarch_init): Set
521 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
522 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
523 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
524 * mips-tdep.c (mips_gdbarch_init): Likewise.
525 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
526 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
527
48436ce6
AC
5282003-09-13 Andrew Cagney <cagney@redhat.com>
529
530 * values.c (using_struct_return): Delete "function" and "funcaddr"
531 parameters.
532 * value.h (using_struct_return): Update declaration.
533 * infcmd.c (finish_command_continuation): Update.
534 (finish_command): Update.
535 * infcall.c (call_function_by_hand): Update.
536 * eval.c (evaluate_subexp_standard): Update.
537
403d9909
CF
5382003-09-13 Christopher Faylor <cgf@redhat.com>
539
540 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
541 SSE registers since gdb will not operate correctly without this.
542 Restore include file ordering munged in previous change.
543 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
544
ebf7d56b
MK
5452003-09-13 Mark Kettenis <kettenis@gnu.org>
546
8e823e25
MK
547 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
548 REG_STRUCT_HAS_ADDR.
549 * gdbarch.c, gdbarch.h: Updated.
550 * infcall.c (call_function_by_hand): Update.
551 * stabsread.c (define_symbol): Updated.
552
ebf7d56b
MK
553 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
554
d3f13f72
CF
5552003-09-12 Christopher Faylor <cgf@redhat.com>
556
557 * win32-nat.c: Reorganize so that defines used by target headers are
558 actually defined by the system headers.
559 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
560 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
561
14f75137
JB
5622003-09-12 Jim Blandy <jimb@redhat.com>
563
d646061f
JB
564 * dbxread.c (read_dbx_symtab): Don't report an internal error if
565 the file has no .data, .bss, or .rodata sections. Instead wait
566 until we see a variable alleged to live in one of those sections.
567
2a13f9bc
JB
568 * dbxread.c (read_dbx_symtab): If we have no .data section and no
569 .bss section, presume that any variables we find live in the
570 .rodata section.
571
4f49b26b
JB
572 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
573 offsets for global and static variables.
574
14f75137
JB
575 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
576 symbol types are, by definition, in the .data section, so it is
577 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
578 If there is no .data section, there should be no N_DATA or N_DATA
579 | N_EXT symbols.
580
212c460c
MK
5812003-09-12 Mark Kettenis <kettenis@gnu.org>
582
583 * amd64fbsd-tdep.c: Fix sigtramp recognition.
584 (amd64fbsd_sigcontext_addr): Rewrite.
585 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
586 with correct values.
587 (amd64fbsd_sc_reg_offset): Initialize with correct values.
588 (amd64fbsd_init_abi): Fix typo.
589
68856ea3
AC
5902003-09-12 Andrew Cagney <cagney@redhat.com>
591
592 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
593 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
594
627b3ba2
AC
5952003-09-12 Andrew Cagney <cagney@redhat.com>
596
597 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
598 "entry_file_highpc". Update comments.
599 * defs.h (deprecated_inside_entry_file): Rename
600 "inside_entry_file".
601 * blockframe.c (deprecated_inside_entry_file): Rename
602 "inside_entry_file".
603 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
604 * vax-tdep.c (vax_frame_chain): Update.
605 * sh64-tdep.c (sh64_frame_chain): Update.
606 * sh-tdep.c (sh_frame_chain): Update.
607 * rs6000-tdep.c (rs6000_frame_chain): Update.
608 * ns32k-tdep.c (ns32k_frame_chain): Update.
609 * mips-tdep.c (mips_frame_chain): Update.
610 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
611 * m32r-tdep.c (m32r_frame_this_id): Update.
612 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
613 * frv-tdep.c (frv_frame_this_id): Update.
614 * d10v-tdep.c (d10v_frame_this_id): Update.
615 * cris-tdep.c (cris_frame_chain): Update.
616 * blockframe.c (legacy_frame_chain_valid): Update.
617 * avr-tdep.c (avr_frame_this_id): Update.
618 * arm-tdep.c (arm_prologue_this_id): Update.
619 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
620 * objfiles.c (objfile_relocate): Update.
621 * mipsread.c (mipscoff_symfile_read): Update.
622 (mipscoff_symfile_read): Update.
623 * mdebugread.c (parse_partial_symbols): Update.
624 * dwarfread.c (read_file_scope): Update.
625 * dwarf2read.c (read_file_scope): Update.
626 * dbxread.c (read_dbx_symtab): Update.
627 (read_dbx_symtab): Update.
628 * coffread.c (complete_symtab): Update.
629
b0abbc58
JJ
6302003-09-12 Jeff Johnston <jjohnstn@redhat.com>
631
632 * top.c (quit_target): New static helper function.
633 (quit_force): Moved code to quit_target(). Call quit_target()
634 via catch_errors() to catch errors during quit.
635
a1632d59
DC
6362003-09-11 David Carlton <carlton@kealia.com>
637
638 * buildsym.c (finish_block): Use allocate_block to allocate the
639 block.
640 * mdebugread.c (new_block): Add FIXME.
641
5c4e30ca
DC
6422003-09-11 David Carlton <carlton@kealia.com>
643
644 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
645 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
646 (recursive_dump_type): Ditto.
647 * printcmd.c (print_formatted): Ditto.
648 * typeprint.c (print_type_scalar): Ditto.
649 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
650 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
651 * cp-support.h: Declare cp_check_possible_namespace_symbols,
652 maint_cplus_cmd_list.
653 * cp-support.c: Make maint_cplus_cmd_list extern.
654 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
655 command.h.
656 (lookup_symbol_file): Look in possible namespace blocks when
657 appropriate.
658 (initialize_namespace_symtab): New.
659 (get_possible_namespace_block, free_namespace_block)
660 (check_possible_namespace_symbols)
661 (check_possible_namespace_symbols_loop)
662 (check_one_possible_namespace_symbol)
663 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
664 (_initialize_cp_namespace): Ditto.
665 * block.h: Declare allocate_block.
666 * block.c (allocate_block): New.
667 * jv-lang.c (get_java_class_symtab): Allocate blocks via
668 allocate_block.
669 * symfile.h: Update declaration of add_psymbol_to_list.
670 * symfile.c (add_psymbol_to_list): Return the partial symbol in
671 question.
672 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
673 scan_partial_symbols_call.
674 (scan_partial_symbols): Add NAMESPACE argument; update calls to
675 helper functions.
676 (add_partial_symbol): If necessary, scan mangled names for names
677 of namespaces.
678 (add_partial_namespace): Add NAMESPACE argument; generate partial
679 symbols associated to namespaces.
680 (add_partial_enumeration): Add NAMESPACE argument.
681 (new_symbol): Allow namespace syms.
682 (read_namespace): Generate namespace syms.
683 * objfiles.h: Add opaque declaration of struct symtab.
684 (struct objfile): Add cp_namespace_symtab member.
685 * objfiles.c (allocate_objfile): Set
686 objfile->cp_namespace_symtab.
687 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
688 dictionary_h, command_h.
689
33a7c2fc
AC
6902003-09-11 Andrew Cagney <cagney@redhat.com>
691
692 * rs6000-tdep.c (rs6000_push_dummy_call): Use
693 regcache_raw_write_signed to set SP_REGNUM, move the operation to
694 near the function's end.
695 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
696 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
697 regcache_raw_write_signed to set SP_REGNUM.
698
63cd24fe
EZ
6992003-09-11 Elena Zannoni <ezannoni@redhat.com>
700
701 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
702 orig_addrs is set up properly.
703
f27dd7fd
AC
7042003-09-11 Andrew Cagney <cagney@redhat.com>
705
706 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
707 * gdbarch.h, gdbarch.c: Re-generate.
708 * infcall.c (call_function_by_hand): Update.
709 * hppa-tdep.c (hppa_push_arguments): Update.
710 * ada-lang.c (place_on_stack): Update.
711 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
712 * sparc-tdep.c (sparc_gdbarch_init): Update.
713 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
714 * hppa-tdep.c (hppa_gdbarch_init): Update.
715 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
716 stack_align.
717
f630a401
DJ
7182003-09-11 Daniel Jacobowitz <drow@mvista.com>
719
720 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
721 register do need a frame.
722
0ddabb4c
AC
7232003-09-11 Andrew Cagney <cagney@redhat.com>
724
725 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
726 buildable since GDB 5.0.
727 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
728 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
729 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
730 * irix4-nat.c: Delete file.
731 * config/mips/irix4.mh: Delete file.
732 * config/mips/irix3.mh: Delete file.
733 * config/mips/irix3.mt: Delete file.
734 * config/mips/tm-irix3.h: Delete file.
735 * config/mips/nm-irix3.h: Delete file.
736 * config/mips/xm-irix3.h: Delete file.
737 * config/mips/nm-irix4.h: Delete file.
738 * config/mips/xm-irix4.h: Delete file.
739 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
740
fde2cceb
JB
7412003-09-10 J. Brobecker <brobecker@gnat.com>
742
743 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
744 * Makefile.in (hppa-tdep.o): Update dependencies.
745
66f667f5
JW
7462003-09-10 James E Wilson <wilson@specifixinc.com>
747
ef5fd69f
JW
748 * MAINTAINERS: Change my e-mail address. Move to paper trail
749 section.
66f667f5 750
53e8aaea
KB
7512003-09-10 Kevin Buettner <kevinb@redhat.com>
752
753 * MAINTAINERS (frv): New ISA entry.
754
dcc6aaff
KB
7552003-09-10 Kevin Buettner <kevinb@redhat.com>
756
757 * frv-tdep.c (dis-asm.h): Include.
758 * Makefile.in (frv-tdep.o): Update dependencies.
759
932644f0
JJ
7602003-09-09 Jeff Johnston <jjohnstn@redhat.com>
761
762 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
763 Fix typo for high range of floating registers.
764
91c24f0a
DC
7652003-09-09 David Carlton <carlton@kealia.com>
766
767 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
768 highpc initialization here out of scan_partial_symbols.
769 (scan_partial_symbols): Restructure into a recursive version,
770 calling add_partial_namespace and add_partial_enumeration when
771 appropriate.
772 (add_partial_namespace): New.
773 (add_partial_enumeration, locate_pdi_sibling): Ditto.
774
c9263853
AC
7752003-09-09 Andrew Cagney <cagney@redhat.com>
776
e56a0ecc
AC
777 * rs6000-tdep.c (ppc_push_return_address): Delete function.
778 (rs6000_push_dummy_call): Set LR to BP_ADDR.
779 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
780 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
781
794a477a
AC
782 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
783 (rs6000_push_dummy_call): Set the "TOC" register.
784
c9263853
AC
785 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
786 methods "max_register_raw_size", "max_register_virtual_size" or
787 "register_virtual_size".
788
afa7d0b2
ILT
7892003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
790
791 * MAINTAINERS: Update my e-mail address.
792
7a41266b
AC
7932003-09-09 Andrew Cagney <cagney@redhat.com>
794
795 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
796 (rs6000_push_dummy_call): Store the struct return address.
797 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
798
77b2b6d4
AC
7992003-09-09 Andrew Cagney <cagney@redhat.com>
800
801 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
802 "ppc_sysv_abi_push_arguments".
803 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
804 "ppc_sysv_abi_push_arguments".
805 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
806 instead of "push_arguments".
807 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
808
e8a7b686
AC
8092003-09-09 Andrew Cagney <cagney@redhat.com>
810
811 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
812 instead of CALL_DUMMY_ADDRESS.
813
f86f5ca3
PH
8142003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
815
816 * p-lang.c: Eliminate "register".
817 * c-lang.c: Ditto.
818 * expprint.c: Ditto.
819 * f-lang.c: Ditto.
820 * jv-lang.c: Ditto.
821 * language.c: Ditto.
822 * m2-lang.c: Ditto.
823 * parse.c: Ditto.
824 * scm-lang.c: Ditto.
825 * objc-lang.c: Ditto.
826
83ee270e
NC
8272003-09-09 Nick Clifton <nickc@redhat.com>
828
829 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
830
a89aa300
AC
8312003-09-04 Andrew Cagney <cagney@redhat.com>
832
833 * avr-tdep.c: Include "dis-asm.h".
834 * cris-tdep.c: Include "dis-asm.h".
835 (cris_delayed_get_disassembler): Use "struct disassemble_info"
836 instead of corresponding typedef.
837 * h8300-tdep.c: Include "dis-asm.h".
838 * ia64-tdep.c: Include "dis-asm.h".
839 * i386-tdep.c: Include "dis-asm.h".
840 (i386_print_insn): Use "struct disassemble_info" instead of
841 corresponding typedef.
842 * m68k-tdep.c: Include "dis-asm.h".
843 * mcore-tdep.c: Include "dis-asm.h".
844 * mips-tdep.c: Include "dis-asm.h".
845 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
846 instead of corresponding typedef.
847 * ns32k-tdep.c: Include "dis-asm.h".
848 * s390-tdep.c: Include "dis-asm.h".
849 * sparc-tdep.c: Include "dis-asm.h".
850 * vax-tdep.c: Include "dis-asm.h".
851 * v850-tdep.c: Include "dis-asm.h".
852 * mn10300-tdep.c: Include "dis-asm.h".
853 * rs6000-tdep.c: Include "dis-asm.h".
854 * xstormy16-tdep.c: Include "dis-asm.h".
855 (_initialize_xstormy16_tdep): Delete "extern" declaration of
856 print_insn_xstormy16.
857 * Makefile.in (v850-tdep.o): Update dependencies.
858 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
859 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
860 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
861 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
862 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
863 (gdbarch_h): Remove $(dis_asm_h).
864 * disasm.c: Include "dis-asm.h".
865 (dis_asm_read_memory): Use "struct disassemble_info" instead of
866 corresponding typedef.
867 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
868 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
869 * gdbarch.sh: Do not include "dis-asm.h".
870 (struct disassemble_info): Declare opaque.
871 (TARGET_PRINT_INSN): Update declaration.
872 * gdbarch.h, gdbarch.c: Re-generate.
873
88a82a65
AC
8742003-09-08 Andrew Cagney <cagney@redhat.com>
875
876 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
877 CALL_DUMMY_ADDRESS, change to a predicate.
878 * gdbarch.h, gdbarch.c: Re-generate.
879 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
880 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
881 * infcall.c (call_function_by_hand): Ditto.
882 * sparc-tdep.c (sparc_push_return_address): Ditto.
883 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
884 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
885 CALL_DUMMY_ADDRESS with entry_point_address.
886 * v850-tdep.c (v850_push_return_address): Ditto.
887 * s390-tdep.c (s390_push_return_address): Ditto.
888 * rs6000-tdep.c (ppc_push_return_address): Ditto.
889 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
890 * mcore-tdep.c (mcore_push_return_address): Ditto.
891 * cris-tdep.c (cris_push_return_address): Ditto.
892 * arm-tdep.c (arm_push_return_address): Ditto.
893
3e2c4033
AC
8942003-09-08 Andrew Cagney <cagney@redhat.com>
895
896 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
897 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
898 and REG_UNMODIFIED to REG_SAME_VALUE.
899 (execute_cfa_program): Update.
900 (dwarf2_frame_cache): Update. Initialize table to
901 REG_UNSPECIFIED, complain if CFI fails to specify a register's
902 location.
903 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
904
39efb398
AC
9052003-09-08 Andrew Cagney <cagney@redhat.com>
906
907 * gnu-nat.c: Remove "inline" function attribute.
908 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
909
f5cb5aca
KB
9102003-09-08 Kevin Buettner <kevinb@redhat.com>
911
912 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
913 target.
914
1cb761c7
KB
9152003-09-08 Kevin Buettner <kevinb@redhat.com>
916
917 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
918 (frame_extra_info): Rename this struct to frv_unwind_cache.
919 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
920 Add fields ``prev_sp'' and ``base''.
921 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
922 (frv_saved_pc_after_call, frv_init_extra_frame_info)
923 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
924 Delete.
925 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
926 Revise all callers. Fill in the unwind cache argument and make
927 other adjustments to account for new frame mechanisms.
928 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
929 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
930 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
931 (frv_frame_unwind, frv_frame_base): New structs.
932 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
933 additional arguments expected by this method and adjust function
934 body accordingly.
935 (frv_gdbarch_init): Remove calls to the following functions:
936 set_gdbarch_deprecated_init_frame_pc(),
937 set_gdbarch_deprecated_saved_pc_after_call(),
938 set_gdbarch_deprecated_frame_chain(),
939 set_gdbarch_deprecated_frame_saved_pc(),
940 set_gdbarch_deprecated_frame_init_saved_regs(),
941 set_gdbarch_deprecated_push_arguments(),
942 set_gdbarch_deprecated_push_return_address(),
943 set_gdbarch_deprecated_pop_frame(),
944 set_gdbarch_deprecated_call_dummy_words(),
945 set_gdbarch_deprecated_sizeof_call_dummy_words(),
946 set_gdbarch_deprecated_init_extra_frame_info(),
947 set_gdbarch_deprecated_dummy_write_sp(), and
948 set_gdbarch_deprecated_pc_in_call_dummy().
949 Add calls to the following functions:
950 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
951 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
952 frame_base_set_default().
953 * Makefile.in (frv-tdep.o): Update dependencies.
954
68f6cf99
MK
9552003-09-09 Mark Kettenis <kettenis@gnu.org>
956
957 * dwarf2-frame.c (read_encoded_value): Add support for
958 DW_EH_PE_aligned encoding.
959
73b65bb0
DJ
9602003-09-08 Daniel Jacobowitz <drow@mvista.com>
961
962 * infrun.c (normal_stop): Don't print a message if the inferior
963 has exited.
964
7c8a5605
JB
9652003-09-08 Jim Blandy <jimb@redhat.com>
966
967 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
968 * dbxread.c: #include "gdb_assert.h".
969 (read_dbx_symtab): If the objfile has no .data section, use the
970 section index for the .bss section instead.
971
7dd88986
DJ
9722003-09-08 Daniel Jacobowitz <drow@mvista.com>
973
974 * frame.c (deprecated_safe_get_selected_frame): New function.
975 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
976 * findvar.c (read_var_value): Call it.
977
55ff77ac
CV
9782003-09-08 Corinna Vinschen <vinschen@redhat.com>
979
980 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
981 (sh64-tdep.o): Add dependencies.
982 * configure.tgt: Add FIXME to sh-*-linux*.
983 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
984 (sh_gdbarch_init): Always set correct sh_show_regs function
985 pointer. Call sh64_gdbarch_init() if machine type is sh5.
986 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
987 * sh64-tdep.c: New file, containing all sh64 related code from
988 sh-tdep.c.
989 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
990 * config/sh/linux.mt (TDEPFILES): Ditto.
991 * config/sh/nbsd.mt (TDEPFILES): Ditto.
992 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
993 * config/sh/wince.mt (TDEPFILES): Ditto.
994
bfb39158
DJ
9952003-09-07 Daniel Jacobowitz <drow@mvista.com>
996
997 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
998 (stop_wait_callback): Handle !lp->signalled also.
999 (lin_lwp_has_pending, flush_callback): New functions.
1000 (lin_lwp_wait): Call flush_callback.
1001 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1002 (linux_proc_pending_signals): New function.
1003 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1004
9407de8e
DJ
10052003-09-07 Daniel Jacobowitz <drow@mvista.com>
1006
1007 From Nick Kelsey <nickk@ubicom.com>:
1008 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1009 when the stop PC is at the beginning of a function also.
1010
2ef47cd0
DJ
10112003-09-06 Daniel Jacobowitz <drow@mvista.com>
1012
1013 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1014 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1015
6f4492c8
MK
10162003-09-06 Mark Kettenis <kettenis@gnu.org>
1017
1018 * sol-thread.c: Include "gdb_string.h".
1019
d3420b2f
MK
10202003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1021
1022 * gcore.c: Reorder include files in alphabetical order. Include
1023 "gdb_assert.h". Various coding style fixes.
1024 (derive_stack_segment, derive_heap_segment): Replace check for
1025 non-null BOTTOM and TOP with gdb_assert.
1026 (derive_heap_segment): Replace check for successful creation of
1027 ZERO with gdb_assert.
1028 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1029
5220ea4c
AC
10302003-09-04 Andrew Cagney <cagney@redhat.com>
1031
1032 * thread-db.c (verbose_dlsym): New function.
1033 (thread_db_load): Use verbose_dlsym
1034 (thread_db_new_objfile): Print that libthread_db was loaded, and
1035 that thread debugging was enabled.
1036
6e8c2c06
AC
10372003-09-04 Andrew Cagney <cagney@redhat.com>
1038
1039 * configure.tgt: Add "mips64*-*-*" target. Delete
1040 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1041 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1042 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1043 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1044 mips*-sony-*, and mips64*-*-elf* targets.
1045 * config/mips/embedl.mt: Delete file.
1046 * config/mips/embedl64.mt: Delete file.
1047 * config/mips/mips.mt: Delete file.
1048 * config/mips/mips64.mt: Delete file.
1049 * config/mips/tm-embed.h: Delete file.
1050 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1051 * config/mips/embed64.mt: Delete out-of-date comment.
1052
3a3bc038
AC
10532003-09-04 Andrew Cagney <cagney@redhat.com>
1054
1055 * hppa-tdep.c (hppa_gdbarch_init): Set
1056 "have_nonsteppable_watchpoint".
1057 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1058 * mips-tdep.c (mips_dump_tdep): Do not print
1059 HAVE_NONSTEPPABLE_WATCHPOINT.
1060 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1061 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1062 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1063 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1064
a957e642
CV
10652003-09-04 Corinna Vinschen <vinschen@redhat.com>
1066
1067 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1068 unused code. Add comment.
1069
a6fbcf2f
CV
10702003-09-04 Corinna Vinschen <vinschen@redhat.com>
1071
1072 * breakpoint.c (watchpoint_check): Check for pc being in an
1073 epilogue if watchpoint frame couldn't be found.
1074
c14a44d5
AC
10752003-09-04 Andrew Cagney <cagney@redhat.com>
1076
1077 * Makefile.in: Re-generate all dependencies.
1078
f6c40618
AC
10792003-09-03 Andrew Cagney <cagney@redhat.com>
1080
1081 * arch-utils.h (legacy_print_insn): Delete declaration.
1082 * arch-utils.c (legacy_print_insn): Delete function.
1083 * disasm.c (deprecated_tm_print_insn_info): Delete.
1084 (_initialize_disasm): Delete function, contained code initializing
1085 deprecated_tm_print_insn_info.
1086 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1087 (deprecated_tm_print_insn_info): Delete.
1088 (TARGET_PRINT_INSN): Do not provide a default.
1089 * gdbarch.h, gdbarch.c: Re-generate.
1090
242e8be5
AC
10912003-09-03 Andrew Cagney <cagney@redhat.com>
1092
1093 * disasm.c (fprintf_disasm): New function.
1094 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1095 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1096 reverts 2003-08-14 change.
1097 (_initialize_disasm): Call "init_disassemble_info", instead of
1098 INIT_DISASSEMBLE_INFO_NO_ARCH.
1099
3ffc3dda
MS
11002003-09-03 Michael Snyder <msnyder@redhat.com>
1101
1102 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1103
52d16ba8
AC
11042003-09-03 Andrew Cagney <cagney@redhat.com>
1105
1106 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1107 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1108 * symfile.c (syms_from_objfile): Update.
1109 (reread_symbols): `Update
1110 * exec.c (exec_file_attach): Update.
1111 (exec_file_attach): Update.
1112 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1113 2003-08-29 change.
1114 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1115
eb5492fa
DJ
11162003-09-03 Daniel Jacobowitz <drow@mvista.com>
1117
1118 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1119 trad-frame.h.
1120 (arm_get_cache): Delete macro.
1121 (struct arm_prologue_cache): Update comments. Make saved_regs into
1122 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1123 to prev_sp.
1124 (thumb_scan_prologue): Update for cache changes. Don't call
1125 DEPRECATED_PC_IN_CALL_DUMMY.
1126 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1127 argument and use it in desperation search for our prologue. Do not
1128 search past the specified PC.
1129 (arm_make_prologue_cache): Simplify.
1130
1131 (arm_prologue_this_id, arm_prologue_prev_register)
1132 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1133 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1134 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1135 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1136 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1137
1138 (arm_frame_chain_valid, arm_find_callers_reg)
1139 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1140 (arm_pop_frame): Delete obsolete methods.
1141 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1142
1143 (arm_gdbarch_init): Update for new frame methods. Register prologue
1144 and sigtramp unwinders. Set the default frame base method.
1145
1146 * Makefile.in (arm-tdep.o): Update dependencies.
1147 * varobj.c (find_frame_addr_in_frame_chain): Call
1148 get_frame_base_address.
1149 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1150
24de872b
DJ
11512003-09-03 Daniel Jacobowitz <drow@mvista.com>
1152
1153 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1154 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1155 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1156 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1157 Take NEXT_FRAME and CACHE arguments. Call
1158 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1159 Set unwound_pc in CACHE instead of modifying the frame argument.
1160 Don't bother checking the frame type when looking for sigtramp
1161 frames.
1162 (arm_make_prologue_cache, arm_frame_chain)
1163 (arm_init_extra_frame_info): New functions.
1164
9b8d791a
DJ
11652003-09-03 Daniel Jacobowitz <drow@mvista.com>
1166
1167 * arm-tdep.c (arm_get_cache): Define.
1168 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1169 unwound_sp, unwound_pc, and saved_regs.
1170 (thumb_scan_prologue): Take a cache instead of the frame.
1171 (arm_scan_prologue): Likewise.
1172 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1173 instead of a temporary frame.
1174 (arm_init_extra_frame_info): Allocate and use a cache.
1175 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1176
7ee3275f
AC
11772003-09-03 Andrew Cagney <cagney@redhat.com>
1178
1179 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1180 * config/mips/wince.mt (TM_CLIBS): Ditto.
1181 * config/sh/wince.mt (TM_CLIBS): Ditto.
1182 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1183 * config/sparc/sp64.mt (CC): Delete.
1184
57b29be7
AC
11852003-09-03 Andrew Cagney <cagney@redhat.com>
1186
1187 * defs.h: Do not include "arch-utils.h".
1188 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1189 GDB_MULTI_ARCH_PURE.
1190 * configure.in (GDB_MULTI_ARCH): Do not define.
1191 * configure, config.in: Regenerate.
1192 * configure.tgt: Do not set variable "gdb_multi_arch".
1193 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1194 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1195 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1196 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1197 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1198 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1199 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1200 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1201 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1202 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1203 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1204 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1205 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1206 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1207 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1208 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1209 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1210 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1211
12e035e2
MC
12122003-08-30 Michael Chastain <mec@shout.net>
1213
1214 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1215 * config/m68k/nm-hp300hpux.h: Delete.
1216 * config/m68k/tm-hp300hpux.h: Delete.
1217 * config/m68k/xm-hp300hpux.h: Delete.
1218 * config/m68k/xm-hp300bsd.h: Delete.
1219 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1220 tm-hp300hpux.h, xm-hp300hpux.h.
1221 * somsolib.c: Remove comment about hp300 shared libraries.
1222
bda34dc2
MK
12232003-08-31 Mark Kettenis <kettenis@gnu.org>
1224
5bca7895
MK
1225 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1226 Only define PTRACE_GET_THREAD_AREA is not already defined.
1227 Various style fixes in code and comments and some additional
1228 spelling fixes in comments. Move after functions dealing with
1229 debug registers.
1230 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1231 Fix coding-style.
1232
bda34dc2
MK
1233 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1234 frame_unwind_register_unsigned instead of
1235 frame_unwind_unsigned_register.
1236
c890192f
MK
12372003-08-30 Mark Kettenis <kettenis@gnu.org>
1238
1239 * configure.in: Search for gethostbyname in libnsl.
1240 * configure: Regenerated.
1241
60fac5b8
MK
12422003-08-29 Mark Kettenis <kettenis@gnu.org>
1243
e294916c
MK
1244 * configure.in: Remove redundant AC_MSG_RESULT in check for
1245 uintptr_t in stdint.h.
1246 * configure: Regenerated.
1247
c40d267a
MK
1248 * amd64-nat.h (struct regcache): Add opaque declaration.
1249
60fac5b8
MK
1250 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1251 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1252 Change "register array" to "register cache" in comments.
1253 (x86_64_linux_gregset64_reg_offset): New variable.
1254 (GETREGS_SUPPLIES): Remove macro.
1255 (supply_gregset): Call amd64_supply_native_gregset instead of
1256 x86_64_linux_supply_gregset.
1257 (fill_gregset): Rename `regno' to `regnum'. Call
1258 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1259 (store_regs): Rename `regno' to `regnum'.
1260 (store_fpregs): Rename `regno' to `regnum'.
1261 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1262 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1263 Reorganize function a bit.
1264 (store_inferior_registers): Rename `regno' to `regnum'. Use
1265 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1266 Reorganize function a bit.
1267 (_initialize_x86_64_linux_nat): New function.
1268 * config/i386/x86-64linux.mh.
1269
546143b6
AC
12702003-08-29 Andrew Cagney <cagney@redhat.com>
1271
1272 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1273 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1274 (target_remove_watchpoint): Delete macro.
1275 (target_insert_watchpoint): Delete macro.
1276 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1277 (remote_mips_stopped_by_watchpoint): Delete declaration.
1278 (remote_mips_remove_watchpoint): Delete declaration.
1279 (remote_mips_set_watchpoint): Delete declaration.
1280 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1281 * remote-mips.c (_initialize_remote_mips): Set
1282 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1283 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1284 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1285 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1286 (mips_stopped_by_watchpoint): Rename
1287 remote_mips_stopped_by_watchpoint.
1288 (mips_can_hardware_watchpoint): Rename
1289 remote_mips_can_use_hardware_watchpoint, update function
1290 signature.
1291
7bace51b
MK
12922003-08-29 Mark Kettenis <kettenis@gnu.org>
1293
b0f5c6f2
MK
1294 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1295 USER_DS. We haven't given them a register number yet.
1296
2a6d284d
MK
1297 * amd64-nat.h: New file.
1298 * amd64-nat.c: New file.
1299 * amd64fbsd-nat.c: Include "amd64-nat.h".
1300 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1301 (amd64fbsd32_r_reg_offset): New variable.
1302 (supply_gregset): Simply call amd64_supply_native_gregset.
1303 (fill_gregset): Rename `regno' to `regnum'. Simply call
1304 amd64_collect_native_gregset.
1305 (fill_fpregset): Rename `regno' to `regnum'.
1306 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1307 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1308 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1309 `fpregset_t'. Call amd64_supply_native_gregset instead of
1310 supply_gregset. Call x86_64_supply_fxsave instead of
1311 supply_fpregset.
1312 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1313 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1314 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1315 `fpregset_t'. Call amd64_collect_native_gregset instead of
1316 fill_gregset. Call x86_64_collect_fxsave instead of
1317 fill_fpregset.
1318 (_initialize_am64fbsd_nat): Initialize
1319 amd64_native_gregset32_reg_offset and
1320 amd64_native_gregset64_reg_offset.
1321 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1322
a16d75cc
MK
1323 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1324 null pointer. Fix typo in comment.
1325
7bace51b
MK
1326 * regcache.c (supply_register): Reimplement to call
1327 regcache_raw_supply.
1328 (regcache_collect): Reimplement by calling regcache_raw_collect.
1329
9a661b68
MK
13302003-08-28 Mark Kettenis <kettenis@gnu.org>
1331
1332 * regcache.c (register_buffer): Consitify first argument.
1333 (regcache_raw_supply, regcache_raw_collect): New
1334 functions.
1335
e94cc8fa
DJ
13362003-08-28 Daniel Jacobowitz <drow@mvista.com>
1337
1338 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1339 by Nathan J. Williams.
1340
c64bd0ce
DJ
13412003-08-28 Daniel Jacobowitz <drow@mvista.com>
1342
1343 * lin-lwp.c (wait_lwp): New function, copied from
1344 stop_wait_callback. Clean up.
1345 (stop_wait_callback): Use wait_lwp.
1346
e5ab0dce
AC
13472003-08-28 Andrew Cagney <cagney@redhat.com>
1348
1349 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1350 flavour and disassembler options.
1351 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1352 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1353 deprecated_tm_print_insn_info.
1354
a788de9b
AC
13552003-08-27 Andrew Cagney <cagney@redhat.com>
1356
1357 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1358 Use target_read_memory.
1359 (s390_get_frame_info): Update. Do not reference
1360 deprecated_tm_print_insn_info.
1361 (s390_check_function_end, s390_is_sigreturn): Ditto.
1362
36482093
AC
13632003-08-27 Andrew Cagney <cagney@redhat.com>
1364
1365 * Makefile.in (cris-tdep.o): Update dependencies.
1366 * cris-tdep.c: Include "gdb_assert.h".
1367 (cris_gdbarch_init): Set print_insn.
1368 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1369 (cris_delayed_get_disassembler): Simplify, directly call the
1370 disassembler returned by cris_get_disassembler.
1371 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1372 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1373 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1374 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1375 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1376 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1377 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1378 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1379 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1380 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1381 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1382 (gdb_print_insn_sparc): Delete function.
1383 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1384 deprecated_tm_print_insn_info.
1385 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1386 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1387 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1388 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1389 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1390 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1391 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1392 (s390_gdbarch_init): Set print_insn.
1393
0285512f
AC
13942003-08-27 Andrew Cagney <cagney@redhat.com>
1395
1396 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1397 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1398 * infcall.c (call_function_by_hand): Convert the entry point
1399 address into a code address.
1400
cdcd5552
AC
14012003-08-27 Andrew Cagney <cagney@redhat.com>
1402
1403 * dsrec.c: Include "gdb_string.h".
1404 * Makefile.in (dsrec.o): Update dependencies.
1405
e85cddad
MC
14062003-08-27 Michael Chastain <mec@shout.net>
1407
1408 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1409
8bbfbb23
AC
14102003-08-27 Andrew Cagney <cagney@redhat.com>
1411
1412 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1413 (alpha_osf1_init_abi): Do not set call_dummy_address.
1414
ba058b66
DC
14152003-08-27 David Carlton <carlton@kealia.com>
1416
1417 From Randolph Chung <tausq@debian.org>:
1418 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1419 compiles with -Wformat-nonliteral -Werror.
1420
87f84c9d
JB
14212003-08-26 Jim Blandy <jimb@redhat.com>
1422
1423 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1424 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1425 bfd_lookup_symbol, since we only want symbols in code sections.
1426 (look_for_base): Pass zero as the SECT_FLAGS argument to
1427 bfd_lookup_symbol, since we're not concerned about which section
1428 the symbol is in.
1429
102d615a
JJ
14302003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1431
1432 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1433 we are frameless or the return address register is already known.
1434
cc7ad3ea
AC
14352003-08-26 Andrew Cagney <cagney@redhat.com>
1436
1437 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1438 in size. Add comments.
1439
af8b88dd
JJ
14402003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1441
1442 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1443 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1444
e0a4f5a1
JM
14452003-08-26 Jason Merrill <jason@redhat.com>
1446
1447 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1448 case out of #ifdef MIPS block.
1449
4ae9ee8e
DJ
14502003-08-25 Daniel Jacobowitz <drow@mvista.com>
1451
1452 PR java/1322
1453 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1454 available before calling SECT_OFF_TEXT.
3c164570 1455 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1456
004d836a
JJ
14572003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1458
1459 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1460 bof, and nat0-nat127 as pseudo-registers.
1461 (ia64_frame_cache): New struct used to cache frame info.
1462 (ia64_register_reggroup_p): New routine used to override default
1463 register grouping so registers without names are still saved and
1464 restored.
1465 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1466 pseudo values.
1467 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1468 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1469 (ia64_alloc_frame_cache): New routine to create a new
1470 ia64_frame_cache.
1471 (examine_prologue): Change prototype to add next_frame pointer.
1472 Assume frameless until otherwise proven. Verify that the cfm for
1473 current frame matches the cfm that should occur for the prologues
1474 alloc insn and if equal, mark as not frameless. At end of routine,
1475 if not frameless, calculate registers for the previous frame and store
1476 in the cache, if a cache is provided.
1477 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1478 and pass 0 for next_frame.
1479 (ia64_store_return_value): Change to use convert_typed_floating()
1480 instead of calling ia64_convert_to_raw().
1481 (ia64_extract_return_value): Change to use convert_typed_floating()
1482 instead of calling ia64_convert_to_virtual().
1483 (ia64_frame_cache): New routine to support new frame model.
1484 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1485 (ia64_frame_sniffer): Ditto.
1486 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1487 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1488 (ia64_sigtramp_frame_prev_register): Ditto.
1489 (ia64_sigtramp_frame_sniffer): Ditto.
1490 (ia64_frame_base_address): Ditto.
1491 (ia64_extract_struct_value_address): Change to issue error message.
1492 (ia64_frame_align): New routine to align sp.
1493 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1494 (ia64_push_arguments): Removed. Logic moved to
1495 ia64_push_dummy_call().
1496 (ia64_push_return_address): Ditto.
1497 (ia64_unwind_dummy_id): New function.
1498 (ia64_unwind_pc): Ditto.
1499 (ia64_convert_register_p): Ditto.
1500 (ia64_register_to_value): Ditto.
1501 (ia64_value_to_register): Ditto.
1502 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1503 (ia64_register_byte, ia64_register_raw_size): Ditto.
1504 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1505 (ia64_saved_pc_after_call): Ditto.
1506 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1507 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1508 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1509 (ia64_register_convert_to_raw): Ditto.
1510 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1511 (ia64_init_extra_frame_info): Ditto.
1512 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1513 (ia64_gdbarch_init): Remove registering of deprecated functions that
1514 are no longer used. Add registration of new gdbarch functions.
1515 Remove registering deprecated_write_sp. Replace
1516 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1517 Delete set_gdbarch_deprecated_register_convertible(),
1518 set_gdbarch_deprecated_register_convert_to_virtual(), and
1519 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1520 set_gdbarch_deprecated_register_size(),
1521 set_gdbarch_deprecated_register_bytes(),
1522 set_gdbarch_pcregnum(),
1523 set_gdbarch_deprecated_register_byte(),
1524 set_gdbarch_deprecated_register_raw_size(),
1525 set_gdbarch_deprecated_max_register_raw_size(),
1526 set_gdbarch_deprecated_register_virtual_size(),
1527 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1528 Replace set_gdbarch_deprecated_extract_return_value() with
1529 set_gdbarch_extract_return_value(). Remove calls to:
1530 set_gdbarch_deprecated_saved_pc_after_call();
1531 set_gdbarch_deprecated_frame_chain(),
1532 set_gdbarch_deprecated_frame_saved_pc(),
1533 set_gdbarch_deprecated_frame_init_saved_regs(),
1534 set_gdbarch_deprecated_get_saved_register(),
1535 set_gdbarch_deprecated_call_dummy_words(),
1536 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1537 set_gdbarch_deprecated_init_extra_frame_info(),
1538 set_gdbarch_deprecated_frame_args_address(),
1539 set_gdbarch_deprecated_frame_locals_address(),
1540 and set_gdbarch_deprecated_dummy_write_sp().
1541 Add set_gdbarch_convert_register_p(),
1542 set_gdbarch_register_to_value(),
1543 set_gdbarch_value_to_register(),
1544 set_gdbarch_push_dummy_call(),
1545 set_gdbarch_frame_align(),
1546 set_gdbarch_unwind_dummy_id(),
1547 set_gdbarch_unwind_pc(),
1548 frame_unwind_append_sniffer(),
1549 frame_unwind_append_sniffer(),
1550 and frame_base_set_default().
1551
aede7613
CD
15522003-08-25 Chris Demetriou <cgd@broadcom.com>
1553
1554 * configure.tgt: Document need for special "mipsisa64" handling.
1555 (mipsisa64*-*-linux64): Handle as target linux64.
1556 (mipsisa64*-*-*): Handle as target embed64.
1557
43c3a82e
MC
15582003-08-18 Michael Chastain <mec@shout.net>
1559
1560 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1561 objfile bug.
1562
6564f77d
MK
15632003-08-24 Mark Kettenis <kettenis@gnu.org>
1564
2de139ba
MK
1565 * i387-tdep.h: Update copyright date.
1566 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1567
6564f77d
MK
1568 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1569 CFLAGS games to reflect reality.
1570
42cf1509
AC
15712003-08-24 Andrew Cagney <cagney@redhat.com>
1572
1573 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1574 GDB_MULTI_ARCH is always non-zero.
1575 * osabi.c (_initialize_gdb_osabi): Ditto.
1576 (gdbarch_init_osabi): Ditto.
1577 * sparc-tdep.c: Ditto for #if code.
1578
0485f6ad
MK
15792003-08-23 Mark Kettenis <kettenis@gnu.org>
1580
1581 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1582 Update comments.
1583 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1584 comments.
1585 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1586 x86_64_supply_fxsave.
1587 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1588 x86_64_supply_fxsave.
1589 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1590 x86_64_supply_fxsave.
1591
c7716133
AJ
15922003-08-23 Andreas Jaeger <aj@suse.de>
1593
1594 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1595 i387_supply_fxsave.
1596
ed504bdf
MK
15972003-08-23 Mark Kettenis <kettenis@gnu.org>
1598
1599 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1600 i387_supply_register.
1601 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1602 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1603 i387_supply_fsave.
1604 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1605 i387_supply_fxsave.
1606 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1607 i387_supply_fsave.
1608 * i386bsd-nat.c (supply_fpregset): Adjust call to
1609 i387_supply_fsave.
1610 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1611 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1612 supply_fpregset.
1613 (store_inferior_registers): Remove extraneous whitespace. Call
1614 i387_fill_fsave instead of fill_fpregset.
1615 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1616 (supply_fpregset): Likewise.
1617 * i386v4-nat.c (supply_fpregset): Adjust call to
1618 i387_supply_fsave.
1619 * i386-interix-nat.c (supply_fpregset): Adjust call to
1620 i387_supply_fsave.
1621 * i386-linux-nat.c (supply_fpregset): Adjust call to
1622 i387_supply_fsave.
1623 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1624 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1625 i387supply_fsave and i387_supply_fxsave.
1626 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1627 Incorporate code from `i387_supply_register.
1628 (i387_supply_register): Remove.
1629 (i387_supply_fxsave): Add `regnum' argument.
1630 Update comments.
1631 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1632 prototype.
1633 (i387_supply_register): remove prototype.
1634 Update comments.
1635
4be5d520
MC
16362003-08-22 Michael Chastain <mec@shout.net>
1637
1638 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1639 Add lines for files in gdb/testsuite/gdb.cp/* that are
1640 still not 8.3 unique.
1641
7ed85d26
DJ
16422003-08-22 Daniel Jacobowitz <drow@mvista.com>
1643
1644 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1645 TYPE_VPTR_FIELDNO is valid.
1646
eb0d3137
MK
16472003-08-19 Mark Kettenis <kettenis@gnu.org>
1648
1649 * utils.c (set_width_command): Remove prototypes.
1650 (set_screen_size): New prototype.
1651 (init_page_info): Simplify by fetching the screen size from
1652 Readline. Call set_screen_size.
1653 (set_screen_size): New function.
1654 (set_width): Add missing whitespace in comment.
1655 (set_width_command): Call set_screen_size.
1656 (set_height_command): New function.
1657 (initialize_utils): Fix formatting. Make "set height" command
1658 call set_height_command. Remove redundant code that turns off
1659 pagination if output isn't a terminal. Remove redundant call to
1660 set_width_command.
1661
7e6d0ac8
MK
16622003-08-22 Mark Kettenis <kettenis@gnu.org>
1663
3567a8ea
MK
1664 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1665 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1666 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1667 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1668 `case' keyword.
1669 (sparc64_register_info): Give the reister with number
1670 SPARC64_STATE_REGNUM a name.
1671 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1672 %asi and %ccr.
1673 (sparc64_push_dummy_call): Take BIAS into account when checking
1674 stcak alignment.
1675 (sparc_software_single_step): Remove assertions that check whether
1676 NPC and NNPC were zero.
1677 (sparc_supply_rwindow): Make public. Merge functionality with
1678 sparc64_supply_rwindow.
1679 (sparc_fill_rwindow): Make public. Merge functionality with
1680 sparc64_fill_rwindow.
1681 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1682 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1683 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1684 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1685 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1686
7e6d0ac8
MK
1687 * reggroups.c: Add whitespace after declarations of local
1688 variables in functions.
1689
72e5f484
MC
16902003-08-21 Michael Chastain <mec@shout.net>
1691
1692 * gdbtypes.h: Change array bound type from an int to enum.
1693
435ac228
AC
16942003-08-21 Andrew Cagney <cagney@redhat.com>
1695
1696 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1697 * config/sparc/tm-sparc.h: Ditto.
1698 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1699 unconditionally.
1700 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1701
0d0e1a63
MK
17022003-07-13 Mark Kettenis <kettenis@gnu.org>
1703
1704 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1705 (register_objfile_data, set_objfile_data, objfile_data): New
1706 prototypes.
1707 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1708 prototypes.
1709 (allocate_objfile): Call objfile_alloc_data.
1710 (free_objfile): Call objfile_free_data.
1711 (struct objfile_data): New.
1712 (struct objfile_data_registration): New.
1713 (struct objfile_data_registry): New.
1714 (objfile_data_registry): New variable.
1715 (register_objfile_data): New function.
1716 (objfile_alloc_data, objfile_free_data): New functions.
1717 (set_objfile_data, objfile_data): New functions.
1718 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1719 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1720 (_initialize_dwarf2_frame): New function and prototype.
1721
d90cf509
AC
17222003-08-21 Andrew Cagney <cagney@redhat.com>
1723
1724 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1725 a specific architecture.
1726 * arch-utils.h (set_architecture_from_arch_mach): Delete
1727 declaration.
1728 (target_architecture_hook): Delete declaration.
1729 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1730 (default_float_format): Assume GDB_MULTI_ARCH.
1731 (default_double_format): Assume GDB_MULTI_ARCH.
1732 (set_endian_from_file): Delete function.
1733 (arch_ok): Delete function.
1734 (set_arch): Delete function.
1735 (set_architecture_from_arch_mach): Delete function.
1736 (set_architecture_from_file): Delete function.
1737 (set_architecture): Assume GDB_MULTI_ARCH.
1738 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1739
8b39fe56
MK
17402003-08-21 Mark Kettenis <kettenis@gnu.org>
1741
1742 Rewrite FreeBSD/sparc64 native configuration.
1743 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1744 * sparc64fbsd-nat.c: New file.
1745 * sparc64fbsd-tdep.c: New file.
1746 * sparc64-tdep.c sparc64-tdep.h: New files.
1747 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1748 sparc64fbsd-tdep.o): New dependencies.
1749 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1750 and sparc64fbsd-tdep.c.
1751 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1752 * config/sparc/fbsd.mh: Remove copyright notice.
1753 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1754 sparcbsd-nat.o.
1755 * config/sparc/fbsd.mt: Remove copyright notice.
1756 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1757 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1758 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1759 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1760 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1761 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1762 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1763 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1764 "sparc/tm-sp64.h".
1765 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1766 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1767
a7f19c79
MC
17682003-08-21 Michael Chastain <mec@shout.net>
1769
1770 * symtab.h: Add doco on the space critical structures and
1771 some measurements of space usage.
1772
da08ea5b
MS
17732003-08-21 Michael Snyder <msnyder@redhat.com>
1774
1775 * tracepoint.c (trace_dump_command): Trace break address
1776 is subject to DECR_PC_AFTER_BREAK.
1777 (set_traceframe_context): Make "trace_line" an int.
1778 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1779
6df2bf50
MS
17802003-08-20 Michael Snyder <msnyder@redhat.com>
1781
1782 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1783 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1784 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1785 argument passing.
1786 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1787 functions, replace sh_push_dummy_call.
1788 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1789
0955bbf0
MC
17902003-08-20 Michael Chastain <mec@shout.net>
1791
1792 * gdbtypes.h (struct main_type): Rearrange to save space.
1793
260a4188
MS
17942003-08-20 Michael Snyder <msnyder@redhat.com>
1795
1796 * trad-frame.c: Comment typo fix.
1797
8baa6f92
KB
17982003-08-20 Michael Snyder <msnyder@redhat.com>
1799 Kevin Buettner <kevinb@redhat.com>
1800
1801 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1802 (frv_frame_init_saved_regs): Add declaration.
1803 (frame_extra_info): Add new field ``saved_regs''.
1804 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1805 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1806 Update frame related code.
1807 (frv_extract_struct_value_address): Adjust formatting.
1808 * Makefile.in (frv-tdep.o): Update dependencies.
1809 * config/frv/tm-frv.h (target_insert_watchpoint)
1810 (target_remove_watchpoint, target_insert_hw_breakpoint)
1811 (target_remove_hw_breakpoint): Delete these macros.
1812 (remote_insert_watchpoint, remote_remove_watchpoint)
1813 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1814 these declarations.
1815
87193939
MC
18162003-08-20 Michael Chastain <mec@shout.net>
1817
1818 * defs.h (ENUM_BITFIELD): New macro.
1819 * symtab.h (ENUM_BITFIELD): Use it.
1820 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1821
062103ba
SA
18222003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1823
1824 * MAINTAINERS (write after approval): Add myself.
1825
8b148df9
AC
18262003-08-18 Andrew Cagney <cagney@redhat.com>
1827
1828 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1829 * gdbarch.h, gdbarch.c: Re-generate.
1830 * infcall.c (call_function_by_hand): Adjust the SP by
1831 frame_red_zone_size before allocating any stack space.
1832 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1833 * x86-64-tdep.c (x86_64_frame_align): New function.
1834 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1835
1836 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1837 Remove code adjusting SP so that it skips over the Red Zone.
1838
954a4db8
MK
18392003-08-18 Mark Kettenis <kettenis@gnu.org>
1840
1841 * NEWS (New native configurations): Mention FreeBSD/amd64.
1842
1a241548
AC
18432003-08-18 Andrew Cagney <cagney@redhat.com>
1844
1845 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1846 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1847 "m68k_frame_p".
1848 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1849
f82b2acd
MK
18502003-08-18 Mark Kettenis <kettenis@gnu.org>
1851
1852 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1853
4056d258
ML
18542003-08-18 Michal Ludvig <mludvig@suse.cz>
1855
1856 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1857 Define.
1858 * i386-linux-nat.c: Include "linux-nat.h".
1859 (child_post_startup_inferior): New function.
1860
99ab4326
MK
18612003-08-18 Mark Kettenis <kettenis@gnu.org>
1862
1863 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1864 at the start of a frameless function. This probably fixes PR
1865 backtrace/1338.
1866
c8d5f0d6
MC
18672003-08-17 Michael Chastain <mec@shout.net>
1868
1869 * symfile.c (find_sym_fns): Remove special case for apollo target.
1870
9016a515
DJ
18712003-08-17 Daniel Jacobowitz <drow@mvista.com>
1872
1873 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1874 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1875 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1876 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1877 (linux_supports_tracevforkdone): New function.
1878 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1879 TRACEVFORKDONE.
1880 (child_follow_fork): Handle vfork.
1881 (linux_handle_extended_wait): Likewise. Also handle exec.
1882 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1883 * NEWS: Mention fork tracing.
1884
c538c11c
DJ
18852003-08-17 Daniel Jacobowitz <drow@mvista.com>
1886
1887 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1888
4de4c07c
DJ
18892003-08-17 Daniel Jacobowitz <drow@mvista.com>
1890
1891 * Makefile.in (i386-linux-nat.o): Update dependencies.
1892 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1893 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1894 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1895 * i386-linux-nat.c: Include "linux-nat.h".
1896 (child_post_startup_inferior): New function.
1897 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1898 * infptrace.c (kill_inferior): Wrap in #ifdef.
1899 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1900 attaching to each LWP.
1901 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1902 (init_lin_lwp_ops): Fill in some more operations.
1903 * linux-nat.h (linux_enable_event_reporting)
1904 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1905 prototypes.
1906 * linux-nat.c (linux_enable_event_reporting): New function.
1907 (child_post_attach, linux_child_post_startup_inferior)
1908 (child_post_startup_inferior, child_follow_fork)
1909 (linux_handle_extended_wait, kill_inferior): New functions.
1910
7996bcec
AC
19112003-08-16 Andrew Cagney <cagney@redhat.com>
1912
1913 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1914 * gdbarch.h, gdbarch.c: Re-generate.
1915
3d48a7a0
MK
19162003-08-16 Mark Kettenis <kettenis@gnu.org>
1917
1918 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1919
7989c619
AC
19202003-08-16 Andrew Cagney <cagney@redhat.com>
1921
1922 * NEWS: Mention that "set prompt-escape-char" was deleted.
1923 * top.c (get_prompt_1): Delete function.
1924 (gdb_prompt_escape):
1925 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1926 prompt-escape-char" command.
1927 (MAX_PROMPT_SIZE): Delete macro.
1928 (get_prompt): Simplify, do not call get_prompt_1.
1929
07978cd8
AC
19302003-08-16 Andrew Cagney <cagney@redhat.com>
1931
1932 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1933 -Werror. -Wformat-nonliteral problems.
1934
3ff7cf9e
JB
19352003-08-15 J. Brobecker <brobecker@gnat.com>
1936
1937 Further multiarching work mostly for hppa64-*-hpux11:
1938 * hppa-tdep.h: New file.
1939 * hppa-tdep.c: #include hppa-tdep.c.
1940 (hppa32_num_regs): Renamed from hppa_num_regs.
1941 (hppa64_num_regs): New constant.
1942 (hppa64_call_dummy_breakpoint_offset): New constant.
1943 (hppa32_call_dummy_length): New constant.
1944 (hppa64_call_dummy_length): New constant.
1945 (hppa32_stack_align): Make name 32bit explicit.
1946 (hppa32_register_virtual_type): Likewise.
1947 (hppa32_extract_return_value): Likewise.
1948 (hppa32_use_struct_convention): Likewise.
1949 (hppa32_store_return_value): Likewise.
1950 (hppa64_register_virtual_type): New function.
1951 (hppa64_extract_return_value): New function.
1952 (hppa64_use_struct_convention): New function.
1953 (hppa64_store_return_value): New function.
1954 (hppa_frame_locals_address): Remove declaration, function does
1955 not exist anymore.
1956 (hppa_register_byte): Add support for PA64 ABI.
1957 (hppa_gdbarch_init): Add support for PA64 ABI.
1958 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1959 Make name 32bit explicit.
1960 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1961 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1962 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1963 (hppa64_hpux_frame_base_before_sigtramp): New function.
1964 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1965 * config/pa/tm-hppa64.h: Remove macros that are no longer
1966 necessary now that the gdbarch vector is properly setup.
1967 Transform some macros into function calls. Some minor cleanup.
1968 * config/pa/tm-hppah.h: Update function calls in macros
1969 following the function renaming in hppa-hpux-tdep.c.
1970 * Makefile.in (hppa_tdep_h): New variable.
1971 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1972
5d05ca6d
MS
19732003-08-14 Michael Snyder <msnyder@redhat.com>
1974
1975 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1976
37ba2569
JB
19772003-08-13 J. Brobecker <brobecker@gnat.com>
1978
1979 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1980 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1981 routine.
1982
aed7f26a
MS
19832003-08-13 Michael Snyder <msnyder@redhat.com>
1984
1985 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1986 (frv_saved_pc_after_call): Use deprecated ftype.
1987 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1988 (frv_remote_translate_xfer_address): Remove.
1989 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1990
752d4ac1
JB
19912003-08-13 J. Brobecker <brobecker@gnat.com>
1992
1993 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1994 initialization after the common gdbarch initialization, not before.
1995
1426ac1d
JB
19962003-08-13 J. Brobecker <brobecker@gnat.com>
1997
1998 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1999 (ADDR_BITS_REMOVE): Remove, redundant.
2000
b6fbdd1d
JB
20012003-08-13 J. Brobecker <brobecker@gnat.com>
2002
2003 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2004 gdbarch method to clear the 2 low bits of text addresses.
2005
44160db3
AC
20062003-08-12 Andrew Cagney <cagney@redhat.com>
2007
2008 * Makefile.in (dsrec.o): Update dependencies.
2009 * dsrec.c: Include "gdb_assert.h".
2010 (make_srec): Use snprintf instead of sprintf, use a literal format
2011 string.
2012
bcf7d3ca
AC
20132003-08-12 Andrew Cagney <cagney@redhat.com>
2014
2015 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2016 FRAME_OBSTACK_ZALLOC.
2017
49ed40de
KB
20182003-08-12 Kevin Buettner <kevinb@redhat.com>
2019
2020 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2021 SSE registers.
2022
b246147c
MK
20232003-08-10 Mark Kettenis <kettenis@gnu.org>
2024
2025 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2026 amd64fbsd_sc_reg_offset): Add extern declarations.
2027 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2028 declarations.
2029
d95fdc0d
BE
20302003-08-11 Ben Elliston <bje@wasabisystems.com>
2031
2032 * MAINTAINERS (write after approval): Update my mail address.
2033
cf6a0e73
AC
20342003-08-10 Andrew Cagney <cagney@redhat.com>
2035
2036 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2037
f837910f
MK
20382003-08-10 Mark Kettenis <kettenis@gnu.org>
2039
e2dbbd2d
MK
2040 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2041 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2042 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2043 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2044 i386bsd_sc_reg_offset): Add extern declarations.
2045 * i386obsd-nat.c: Include "i386-tdep.h"
2046 (_initialize_i386obsd_nat): Remove extern declarations.
2047 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2048 declarations.
2049 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2050 declarations.
2051
f837910f
MK
2052 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2053 instead of frame_read_register.
2054 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2055 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2056 SP_REGNUM.
2057 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2058 instead of frame_unwind_unsigned_register. Use
2059 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2060 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2061 instead of read_register. Use builtin_type_void_data_ptr instead
2062 of builtin_type_void_func_ptr when extracting the address of the
2063 jmp_buf.
2064 (i386_extract_return_value, i386_store_return_value,
2065 i386_pseudo_register_read, i386_pseudo_register_write): Use
2066 register_size instead REGISTER_RAW_SIZE.
2067
edcf254d
AC
20682003-08-10 Andrew Cagney <cagney@redhat.com>
2069
2070 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2071 sprintf. Make "name" constant.
2072
26604a34
MK
20732003-08-10 Mark Kettenis <kettenis@gnu.org>
2074
192285c6
MK
2075 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2076 instead of frame_read_register.
f837910f
MK
2077 (i387_print_float_info): Use get_frame_register and
2078 get_frame_register_unsigned instead of frame_register_read.
192285c6 2079
f0925262
MK
2080 * i386fbsd-nat.c: Include "i386-tdep.h".
2081 (child_resume): Make `eflags' an ULONGEST. Use
2082 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2083 instead of register_read and register_write.
2084
a144416f
MK
2085 * i386bsd-nat.c (fetch_inferior_registers,
2086 store_inferior_registers): Don't use && at the end of a line.
2087 (_initialize_i386bsd_nat): Fix typo.
2088
fec74868
MK
2089 * frame.c (_initialize_frame): Add missing backslash.
2090
87232496
MK
2091 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2092 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2093 and supply_register instead of manipulating the register buffer
2094 directly.
2095
c9b9de0b
MK
2096 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2097 * config/i386/nm-i386sol2.h
2098 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2099
26604a34
MK
2100 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2101 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2102 instructions that GCC likes to mingle into the prologue. Fixes
2103 gdb/1253 and gdb/1255.
2104
25d29d70
AC
21052003-08-09 Andrew Cagney <cagney@redhat.com>
2106
2107 Fix GDB PR cli/926.
2108 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2109 * command.h (add_setshow_uinteger_cmd): Declare.
2110 * frame.c (set_backtrace_cmd): New function.
2111 (show_backtrace_cmd): New function.
2112 * frame.c (_initialize_frame): Replace "set/show
2113 backtrace-below-main" with "set/show backtrace past-main". Add
2114 command "set/show backtrace limit".
2115 (backtrace_past_main): Rename "backtrace_below_main".
2116 (backtrace_limit): New variable.
2117 (get_prev_frame): Update. Check the backtrace_limit.
2118
9ebf4acf
AC
21192003-08-09 Andrew Cagney <cagney@redhat.com>
2120
2121 * defs.h (xstrprintf): Declare.
2122 * utils.c (xstrprintf): New function.
2123 * breakpoint.c (insert_breakpoints): Replace sprintf and
2124 non-literal format strings, with xstrprintf and cleanups.
2125 (delete_breakpoint,breakpoint_re_set): Ditto.
2126 (commands_command, insert_breakpoints): Ditto.
2127 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2128 (break_at_finish_command_1): Ditto.
2129
3771659b
AC
21302003-08-09 Andrew Cagney <cagney@redhat.com>
2131
2132 * MAINTAINERS (language support): List Adam Fedor as Objective C
2133 maintainer.
2134
b4263afa
JB
21352003-08-08 J. Brobecker <brobecker@gnat.com>
2136
2137 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2138 are now multiarched.
2139
d84defb1
JB
21402003-08-08 J. Brobecker <brobecker@gnat.com>
2141
2142 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2143 longer necessary now that hppa64 is partially multiarch'ed.
2144
f786f615
AC
21452003-08-08 Andrew Cagney <cagney@redhat.com>
2146
2147 * interps.c (interp_set): Check for a NULL "old_interp".
2148
c938e9b0
L
21492003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2150
2151 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2152 (install-only): Support DESTDIR.
2153 (uninstall): Likewise.
2154 (install-gdbtk): Likewise.
2155
9a146a11
EZ
21562003-08-08 Elena Zannoni <ezannoni@redhat.com>
2157
2158 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2159 contains something meaningful at all times.
2160
2161Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2162
62599e99 2163 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2164
56296155
BC
2165Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2166
62599e99 2167 * MAINTAINERS (write after approval): Added self.
56296155 2168
9710e734
AC
21692003-08-07 Andrew Cagney <cagney@redhat.com>
2170
2171 * inferior.h (AT_SYMBOL): Define.
2172 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2173 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2174 * mips-tdep.c (mips_call_dummy_address): Delete function.
2175 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2176 set call_dummy_address.
2177
98b3ab73
AC
21782003-08-07 Andrew Cagney <cagney@redhat.com>
2179
2180 * language.c (op_error): Delete function.
2181 (binop_type_check): Delete function.
2182 * language.h (type_op_error, range_op_error): Delete macros.
2183 (op_error): Delete declaration.
2184
2fcf52f0
AC
21852003-08-07 Andrew Cagney <cagney@redhat.com>
2186
2187 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2188
abd4220e 21892003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2190
abd4220e 2191 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2192 (x86_64_push_arguments): Skip the red zone.
abd4220e 2193
9dd5f34f
AC
21942003-08-05 Andrew Cagney <cagney@redhat.com>
2195
2196 * reggroups.c (reggroup_next): Check for the final entry.
2197
e5e78edc
AC
21982003-08-04 Andrew Cagney <cagney@redhat.com>
2199
ab4e3d93
AC
2200 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2201 * cli/cli-script.c (define_command): Call query directly, instead
2202 of passing it a buffer.
2203 * ocd.c (ocd_error): Pass error a constant format string.
2204 * remote-mips.c (mips_error): Use fputs_filtered.
2205
1062ca82
AC
2206 * solib-svr4.c (_initialize_svr4_solib): Update
2207 register_gdbarch_data call.
2208 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2209
fcc1c85c
AC
2210 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2211 (register_gdbarch_data): Delete "free" parameter. Update
2212 comments.
2213 * gdbarch.h, gdbarch.c: Re-generate.
2214 * reggroups.c (_initialize_reggroup): Update.
2215 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2216 * frame-base.c (_initialize_frame_base): Update.
2217 * frame-unwind.c (_initialize_frame_unwind): Update.
2218 * user-regs.c (_initialize_user_regs): Update.
2219 * remote.c (_initialize_remote): Update.
2220 * regcache.c (_initialize_regcache): Update.
2221
116f06ea
AC
2222 * regcache.c (xfree_regcache_descr): Delete function.
2223 (_initialize_regcache): Update call to register_gdbarch_data.
2224 (init_regcache_descr, init_legacy_regcache_descr): Use
2225 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2226
e5e78edc
AC
2227 * remote.c (free_remote_state): Delete function.
2228 (_initialize_remote): Update register_gdbarch_data.
2229 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2230 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2231
6c7d17ba
AC
22322003-08-04 Andrew Cagney <cagney@redhat.com>
2233
2234 * reggroups.c (struct reggroup_el): Define.
2235 (struct reggroups): Delete field "nr_group". Replace array
2236 "group" with a "first" to "last" linked list.
2237 (reggroups_init): Update. Allocate using gdbarch's obstack.
2238 (reggroups_free): Delete function.
2239 (add_group): Update. Add "el" parameter.
2240 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2241 (default_groups): Update.
2242 (reggroup_next): Replace reggroups.
2243 (reggroups_dump): Update.
2244 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2245 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2246 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2247
89b7795b
DJ
22482003-08-04 Daniel Jacobowitz <drow@mvista.com>
2249
2250 * Makefile.in (tui-interp.o): Update dependencies.
2251
306d9ac5
DC
22522003-08-04 David Carlton <carlton@kealia.com>
2253
2254 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2255 to internal_error call.
2256 * source.c (forward_search_command): Add "%s" format argument.
2257 (reverse_search_command): Ditto.
2258 * top.c (quit_confirm): Ditto.
2259 * cli/cli-setshow.c (do_setshow_command): Ditto.
2260 * cp-valprint.c (cp_print_class_method): Replace
2261 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2262 (cp_print_class_member): Ditto.
2263 * event-top.c (command_line_handler): Ditto.
2264 * linux-proc.c (linux_info_proc_cmd): Ditto.
2265 * p-typeprint.c (pascal_type_print_base): Ditto.
2266 * p-valprint.c (pascal_object_print_class_method): Ditto.
2267 (pascal_object_print_class_member): Ditto.
2268 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2269 * remote.c (remote_cisco_section_offsets): Ditto.
2270 * top.c (command_line_input): Ditto.
2271 * utils.c (vwarning,error_stream,quit): Ditto.
2272 * valprint.c (print_floating,print_binary_chars)
2273 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2274
57bfe177
AC
22752003-08-04 Andrew Cagney <cagney@redhat.com>
2276
2277 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2278
e546b999
AC
22792003-08-02 Andrew Cagney <cagney@redhat.com>
2280
2281 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2282 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2283 amd64fbsd-nat.c.
2284
91092ee5
AC
22852003-08-02 Andrew Cagney <cagney@redhat.com>
2286
2287 * Makefile.in: Update all dependencies and definitions.
2288
889f28e2
AF
22892003-08-02 Adam Fedor <fedor@gnu.org>
2290
2291 * linespec.c (is_objc_method_format): New function
2292 (decode_line_1, locate_first_half): Use it.
2293 Fixes PR objc/1298
2294
880bc914
AC
22952003-08-01 Andrew Cagney <cagney@redhat.com>
2296
2297 * NEWS: Mention that m32r is multi-arch.
2298 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2299 * configure.tgt: Recognize m32r-*-*.
2300 * config/m32r/tm-m32r.h: Delete file.
2301 * config/m32r/m32r.mt: New file.
2302 * m32r-rom.c (m32r_upload_command): Use hostent only when
2303 gethostname succeeds, in order to avoid a compilation
2304 warning.
2305 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2306 compiler warning.
2307
19f59343
MS
23082003-08-01 Michael Snyder <msnyder@redhat.com>
2309
2310 * sh-tdep.c (sh_frame_align): New gdbarch method.
2311 (sh_gdbarch_init): Set up frame_align method.
2312
4e7d7511
MS
23132003-07-31 Michael Snyder <msnyder@redhat.com>
2314
2315 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2316 which is already covered by the new frames infrastructure.
2317
63022984
AC
23182003-07-31 Andrew Cagney <cagney@redhat.com>
2319
2320 * user-regs.c (struct user_reg): Add "next" link.
2321 (struct user_regs): Replace "user" with "first" and "last" links.
2322 (append_user_reg): Add pre-allocated "reg" parameter.
2323 (builtin_user_regs): Provide initial value for "last".
2324 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2325 (user_regs_init): Allocate memory from the gdbarch obstack.
2326 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2327 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2328 linked list.
2329 (usernum_to_user_reg): New function.
2330 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2331 (value_of_user_reg): Use usernum_to_user_reg.
2332 (user_regs_free): Delete function.
2333 (_initialize_user_regs): Update register_gdbarch_data call.
2334
7cf6e574
DJ
23352003-07-31 Daniel Jacobowitz <drow@mvista.com>
2336
2337 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2338
c48a845b
MS
23392003-07-30 Michael Snyder <msnyder@redhat.com>
2340
4e7d7511 2341 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2342 * infcall.c (call_function_by_hand): Pass struct_addr to
2343 value_being_returned.
2344 * infcmd.c (print_return_value): Pass zero as struct_addr.
2345 * values.c (value_being_returned): If struct_addr is passed,
2346 use it instead of trying to recover it from the inferior.
2347
f0d8db19
KB
23482003-07-30 Kevin Buettner <kevinb@redhat.com>
2349
2350 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2351 the prologue analyzer won't need to attempt to extract the pc
2352 value from the woefully incomplete dummy frame.
2353 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2354 possible. Disable code which modifies the frame.
2355
e5c113a1
AC
23562003-07-28 Andrew Cagney <cagney@redhat.com>
2357
2358 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2359 to level 2.
2360 (annotate_breakpoints_table, annotate_record): Ditto.
2361 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2362 (annotate_field_name_end, annotate_field_value): Ditto.
2363 (annotate_field_end, annotate_frame_source_begin): Ditto.
2364 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2365 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2366 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2367 (annotate_frame_address_end, annotate_frame_address): Ditto.
2368 (annotate_frame_args, annotate_frame_end): Ditto.
2369 (annotate_frame_where, annotate_arg_begin): Ditto.
2370 (annotate_arg_name_end, annotate_arg_value): Ditto.
2371 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2372 (annotate_function_call, annotate_signal_name): Ditto.
2373 (annotate_signal_string, annotate_signal_name_end): Ditto.
2374 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2375 (annotate_value_begin, annotate_value_history_value): Ditto.
2376 (annotate_value_history_end, annotate_value_end): Ditto.
2377 (annotate_display_begin, annotate_display_number_end): Ditto.
2378 (annotate_display_format, annotate_display_expression): Ditto.
2379 (annotate_display_expression_end, annotate_display_value): Ditto.
2380 (annotate_display_end, annotate_array_section_begin): Ditto.
2381 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2382 (annotate_elt, annotate_array_section_end): Ditto.
2383
bb1db049
AC
23842003-07-28 Andrew Cagney <cagney@redhat.com>
2385
2386 * regcache.c (struct regcache_descr): Update comments on
2387 nr_raw_registers.
2388 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2389 sizeof_raw_register_valid_p.
2390 (init_regcache_descr): Set nr_raw_registers and
2391 sizeof_raw_register_valid_p before calling
2392 init_legacy_regcache_descr.
2393
20e6603c
AC
23942003-07-28 Andrew Cagney <cagney@redhat.com>
2395
2396 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2397 MOD NUM_REGS.
2398
db742940
DJ
23992003-07-28 Daniel Jacobowitz <drow@mvista.com>
2400
2401 * thread.c (info_threads_command): Use get_selected_frame ().
2402 Check that there is at least one non-sentinel frame.
2403
ce7f4371
SC
24042003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2405
2406 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2407 (m68hc11_pop_frame): Remove.
2408 (m68hc11_frame_saved_pc): Remove.
2409 (m68hc11_frame_chain): Remove.
2410 (m68hc11_frame_init_saved_regs): Remove.
2411 (m68hc11_init_extra_frame_info): Remove.
2412 (m68hc11_store_struct_return): Remove.
2413 (m68hc11_saved_pc_after_call): Remove.
2414
1ea653ae
SC
24152003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2416
2417 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2418 frame unwind information.
2419 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2420 and adapted for frame unwinding.
2421 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2422 (m68hc11_unwind_pc): New function.
2423 (m68hc11_frame_unwind_cache): New function to analyze frames.
2424 (m68hc11_frame_this_id): New function to create new frame struct.
2425 (m68hc11_frame_prev_register): New function to unwind a register from
2426 the frame.
2427 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2428 (m68hc11_frame_p): New function for the above.
2429 (m68hc11_frame_base_address): New function to return fp of frame.
2430 (m68hc11_frame_args_address): Update for frame.
2431 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2432 (m68hc11_unwind_sp): New function.
2433 (m68hc11_unwind_dummy_id): New function.
2434 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2435 calls.
2436
c8a7f6ac
SC
24372003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2438
2439 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2440 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2441 when we are beyond the current pc.
2442
3dc990bf
SC
24432003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2444
2445 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2446 from m68hc11_push_arguments.
2447 (m68hc11_push_arguments): Remove.
2448 (m68hc11_push_return_address): Remove.
2449 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2450 handlers; remove deprecated_extra_stack_alignment_needed.
2451
222e5d1d
AC
24522003-07-27 Andrew Cagney <cagney@redhat.com>
2453
2454 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2455 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2456 REAL_PC and not the pointer.
2457 * hppa-hpux-tdep.c: Include frame.h
2458
a7e9a47e
AC
24592003-07-27 Andrew Cagney <cagney@redhat.com>
2460
2461 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2462 GDB_MULTI_ACH_PARTIAL.
2463
7e3dd49e
AC
24642003-07-27 Andrew Cagney <cagney@redhat.com>
2465
2466 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2467 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2468 operator at start and not end of line.
2469 (decode_prologue): Ditto.
2470 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2471 frame_unwind_register_unsigned instead of
2472 frame_unwind_unsigned_register.
2473 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2474 read_register.
2475 (m32r_push_dummy_call): Use register_size instead of
2476 REGISTER_RAW_SIZE.
2477 (m32r_frame_sniffer): Replace m32r_frame_p.
2478 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2479 * m32r-rom.c (report_transfer_performance): Delete extern
2480 declaration.
2481 (m32r_load, m32r_upload_command): Use print_transfer_performance
2482 instead of report_transfer_performance.
2483 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2484 / add_show_from_set.
2485
0880807f
AC
24862003-07-26 Andrew Cagney <cagney@redhat.com>
2487
2488 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2489 store_return_value and extract_struct_value_address.
2490
64ae9269
DJ
24912003-07-26 Daniel Jacobowitz <drow@mvista.com>
2492
2493 PR c++/1267
2494 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2495 NULL, default to the section containing PC.
2496
e286caf2
SC
24972003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2498
2499 * NEWS: Mention "regs" deprecated for m68hc11 too.
2500
2501 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2502 (m68hc11_print_register): New function to print out one register.
2503 (m68hc11_print_registers_info): New function to print registers.
2504 (show_regs): Deprecate and use the above.
2505 (m68hc11_gdbarch_init): Install the print_registers_info.
2506
705b278b
JJ
25072003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2508
2509 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2510 that we have a SIGTRAP before returning non-zero.
2511
63cd4198
EZ
25122003-07-23 Michal Ludvig <mludvig@suse.cz>
2513 Elena Zannoni <ezannoni@redhat.com>
2514
2515 * linespec.c (decode_line_2): Avoid crash if
2516 find_function_start_sal() returns empty record.
2517
6926787d
AS
25182003-07-23 Andreas Schwab <schwab@suse.de>
2519
2520 * ia64-tdep.c (ia64_print_insn): New function.
2521 (ia64_gdbarch_init): Set print_insn to it.
2522 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2523 deprecated_tm_print_insn_info.
2524
708cc1b6
MS
25252003-07-22 Michael Snyder <msnyder@redhat.com>
2526
2527 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2528 handle 8-bit returns (long long).
2529 (h8300h_extract_return_value): Ditto.
2530 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2531
aebd7893
AC
25322003-07-22 Andrew Cagney <cagney@redhat.com>
2533
2534 * gdbarch.c Include "gdb_obstack.h".
2535 (struct gdbarch): Add an "obstack".
2536 (alloc_gdbarch_data): Allocate the gdbarch data using
2537 GDBARCH_OBSTACK_CALLOC.
2538 (free_gdbarch_data): Delete function.
2539 (gdbarch_obstack_zalloc): New function.
2540 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2541 Assert that the architecture is not initialized.
2542 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2543 vector from the obstack.
2544 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2545 architecture obstack.
2546 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2547 (set_gdbarch_data): Assert that the data is not initialized.
2548 (struct gdbarch_data): Delete member "free".
2549 (register_gdbarch_data): Do not initialize "free".
2550 * gdbarch.h, gdbarch.c: Re-generate.
2551
153721e6
AC
25522003-07-22 Andrew Cagney <cagney@redhat.com>
2553
2554 * configure.in (build_warnings): Add -Wformat-nonliteral.
2555 * configure: Re-generate.
2556
c193f044 25572003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2558
2559 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2560
c3228f12
EZ
25612003-07-22 Elena Zannoni <ezannoni@redhat.com>
2562
2563 * findvar.c (read_var_value): Remove case for thread local storage
2564 variables. It is now entirely handled by the dwarf2 location
2565 expression code.
2566 * printcmd.c (address_info): Ditto.
2567 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2568 enumeration value.
2569 (struct symbol): Remove objfile field, which was used by
2570 LOC_THREAD_LOCAL_STATIC only.
2571 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2572 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2573 usage of objfile pointer.
2574 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2575 thread local variables.
2576 Add include of objfiles.h.
2577 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2578 storage variables.
2579 * Makefile.in (dwarf2loc.o): Update dependencies.
2580
aef9bcd2
AC
25812003-07-22 Andrew Cagney <cagney@redhat.com>
2582
2583 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2584 get_frame_base.
2585 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2586 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2587 (struct value): Add opaque declaration.
2588 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2589
d95a8903
AC
25902003-07-21 Andrew Cagney <cagney@redhat.com>
2591
2592 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2593 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2594
4db73d49
SC
25952003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2596
2597 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2598 regcache_cooked_read_unsigned instead of read_register.
2599 (m68hc11_saved_pc_after_call): Likewise.
2600 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2601 instead of write_register.
2602 (m68hc11_register_type): New function.
2603 (m68hc11_register_virtual_type): Remove.
2604 (m68hc11_store_return_value): Convert to use the regcache.
2605 (m68hc11_extract_struct_value_address): Likewise.
2606 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2607 m68hc11_register_type; undeprecate store_return_value and
2608 extract_struct_value_address.
2609
ef2b8fcd
SC
26102003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2611
2612 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2613 and translate to use regcache.
2614 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2615
625b0b97
AC
26162003-07-18 Andrew Cagney <cagney@redhat.com>
2617
2618 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2619 * gdbarch.h, gdbarch.c: Re-generate.
2620 * i386-tdep.c (i386_gdbarch_init): Do not set
2621 DWARF2_BUILD_FRAME_INFO.
2622 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2623 unconditionally.
2624 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2625 DWARF2_BUILD_FRAME_INFO.
2626
22b0d388
AC
26272003-07-18 Andrew Cagney <cagney@redhat.com>
2628
2629 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2630 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2631
1ce5d6dd
AC
26322003-07-18 Andrew Cagney <cagney@redhat.com>
2633
2634 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2635 frame_unwind_address_in_block, instead of frame_pc_unwind.
2636 (dwarf2_frame_cache): Ditto.
2637
e6e5e94c
AC
26382003-07-18 Andrew Cagney <cagney@redhat.com>
2639
2640 * user-regs.h (struct gdbarch): Declare opaque.
2641 * ui-out.h (struct ui_file): Declare opaque.
2642 * dwarf2-frame.h (struct frame_info): Declare opaque.
2643
5483d879
KW
26442003-07-18 Kris Warkentin <kewarken@qnx.com>
2645
2646 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2647 #include "...".
2648 (procfs_meminfo): Change strerror to safe_strerror.
2649 (procfs_can_run): Remove K&R badness.
2650
278a7cf7
MS
26512003-07-17 Michael Snyder <msnyder@redhat.com>
2652
2653 * remote-sim.c: Comment typo fix.
2654
606e3b82
AC
26552003-07-17 Andrew Cagney <cagney@redhat.com>
2656
2657 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2658 configure.
2659 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2660 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2661 GDB_MULTI_ARCH_PARTIAL.
2662
c43af07c
EZ
26632003-07-17 Elena Zannoni <ezannoni@redhat.com>
2664
2665 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2666 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2667 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2668
3b85b0f1
TR
26692003-07-16 Theodore A. Roth <troth@openavr.org>
2670
2671 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2672 found.
2673 (avr_frame_unwind_cache): Don't unwind FP for main.
2674 Update a comment.
2675 Save the computed prev_sp.
2676 (avr_saved_regs_unwinder): Remove function.
2677 (avr_frame_prev_register): Use PC unwind logic from
2678 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2679
336d1bba
AC
26802003-07-16 Andrew Cagney <cagney@redhat.com>
2681
2682 * frame-base.h (frame_base_p_ftype): Delete definition.
2683 (frame_base_append_predicate): Delete declaration.
2684 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2685 (frame_unwind_append_predicate): Delete declaration.
2686 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2687 (append_predicate): Delete parameter "p".
2688 (frame_unwind_append_predicate): Delete function.
2689 (frame_unwind_append_sniffer): Update call to append_predicate.
2690 (frame_unwind_free): Delete function.
2691 (_initialize_frame_unwind): Pass NULL as "free" to
2692 register_gdbarch_data.
2693 (frame_unwind_init): Append the dummy_frame_sniffer.
2694 (frame_unwind_find_by_frame): Simplify.
2695 * frame-base.c (struct frame_base_table): Delete field "p".
2696 (append_predicate): Delete parameter "p".
2697 (frame_base_append_predicate): Delete function.
2698 (frame_base_append_sniffer): Update call to append_predicate.
2699 (frame_base_free): Delete function.
2700 (frame_base_find_by_frame): Simplify.
2701 (_initialize_frame_base): Pass NULL as "free" to
2702 register_gdbarch_data.
2703 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2704 (x86_64_sigtramp_frame_sniffer): Replace
2705 "x86_64_sigtramp_frame_p".
2706 (x86_64_init_abi): Set the frame unwind sniffers.
2707 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2708 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2709 (m68k_gdbarch_init): Set the frame unwind sniffers.
2710 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2711 "i386_sigtramp_frame_p".
2712 (i386_frame_sniffer): Replace "i386_frame_p".
2713 (i386_gdbarch_init): Set the frame unwind sniffers.
2714 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2715 (avr_gdbarch_init): Set the frame unwind sniffers.
2716 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2717 "alpha_sigtramp_frame_p"
2718 (alpha_heuristic_frame_sniffer): Replace
2719 "alpha_heuristic_frame_p".
2720 (alpha_gdbarch_init): Set the frame unwind sniffers.
2721 (alpha_dwarf2_init_abi): Ditto.
2722 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2723 "alpha_debug_frame_p".
2724 (alpha_mdebug_frame_base_sniffer): Replace
2725 "alpha_mdebug_frame_base_p".
2726 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2727 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2728 (d10v_gdbarch_init): Set the frame unwind sniffer.
2729 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2730 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2731 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2732 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2733 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2734 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2735
48db5a3c
CV
27362003-07-16 Michael Snyder <msnyder@redhat.com>
2737
2738 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2739 should go thru sh_dsp_register_sim_regno, else the dsp regs
2740 will not get the right values.
2741
27422003-07-16 Corinna Vinschen <vinschen@redhat.com>
2743
2744 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2745 deprecated_store_floating by call to store_typed_floating.
2746 (sh_sh4_register_convert_to_raw): Substitute call to
2747 deprecated_extract_floating by call to extract_typed_floating.
2748
27492003-07-16 Corinna Vinschen <vinschen@redhat.com>
2750
2751 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2752
27532003-07-16 Corinna Vinschen <vinschen@redhat.com>
2754
2755 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2756 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2757 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2758 as possible.
2759 (do_pseudo_register): Remove.
2760 (sh_push_dummy_code): New function.
2761 (sh64_store_struct_return): Rename from sh_store_struct_return.
2762 Only called for sh64 now.
2763 (sh_extract_struct_value_address): Regcache'ify.
2764 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2765 and accomodate new tasks.
2766 (sh64_push_return_address): Rename from sh_push_return_address.
2767 Only called for sh64 now.
2768 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2769 Regcache'ify.
2770 (sh3e_sh4_extract_return_value): Regcache'ify.
2771 (sh_default_store_return_value): Ditto.
2772 (sh3e_sh4_store_return_value): Ditto.
2773 (sh_default_register_byte): Remove.
2774 (sh_sh4_register_byte): Remove.
2775 (sh_default_register_raw_size): Remove.
2776 (sh_sh4_register_raw_size): Remove.
2777 (sh_register_virtual_size): Remove.
2778 (sh_sh3e_register_virtual_type): Remove.
2779 (sh_sh3e_register_type): New function.
2780 (sh_sh4_register_virtual_type): Remove.
2781 (sh_sh4_register_type): New function.
2782 (sh_default_register_virtual_type): Remove.
2783 (sh_default_register_type): New function.
2784 (do_fv_register_info): Add parameters to accomodate call from
2785 sh_print_registers_info.
2786 (do_dr_register_info): Ditto.
2787 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2788 Add parameters to accomodate call from sh_print_registers_info.
2789 (sh_do_fp_register): Ditto.
2790 (sh64_do_pseudo_register): Call do_dr_register_info,
2791 do_fv_register_info and sh_do_fp_register with default parameters.
2792 (sh_do_register): Add parameters to accomodate call from
2793 sh_print_registers_info.
2794 (sh_print_register): Ditto.
2795 (sh_print_registers_info): Rename from sh_do_registers_info.
2796 Add parameters to be used as gdbarch_print_registers_info
2797 implementation. Accomodate removed do_pseudo_register function
2798 pointer.
2799 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2800 function pointer. Call sh_print_register with default parameters.
2801 (sh64_do_registers_info): Call sh_print_registers_info instead of
2802 sh_do_registers_info.
2803 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2804 detection of deprecated vs. non-deprecated functionality.
2805 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2806 function pointer assignments by direct function calls.
2807
e8a89fe2
AC
28082003-07-15 Andrew Cagney <cagney@redhat.com>
2809
2810 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2811 (frame_register_unwind, create_new_frame): Ditto.
2812 (legacy_get_prev_frame, get_frame_type): Ditto.
2813 (get_frame_base_address): Use frame_base_find_by_frame.
2814 (get_frame_locals_address): Use frame_base_find_by_frame.
2815 (get_frame_args_address): Use frame_base_find_by_frame.
2816 * frame-base.h (frame_base_sniffer_ftype): Declare.
2817 (frame_base_append_sniffer): Declare.
2818 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2819 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2820 (frame_base_append_sniffer): New function.
2821 (frame_base_append_predicate): Add a NULL sniffer.
2822 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2823 (struct frame_base_table): Add "sniffer".
2824 (frame_base_free): Free the "sniffer" table.
2825 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2826 (frame_unwind_append_sniffer): Declare.
2827 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2828 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2829 (struct frame_unwind_table): Add "sniffer", delete "middle".
2830 (append_predicate): Add "sniffer" parameter, append the sniffer.
2831 (frame_unwind_init): Update append_predicate call.
2832 (frame_unwind_append_sniffer): New function.
2833 (frame_unwind_append_predicate): Update append_predicate call.
2834 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2835
0714963c
AC
28362003-07-15 Andrew Cagney <cagney@redhat.com>
2837
2838 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2839 before code inhibiting repeated unwind attempts. Add to
2840 commentary on that test's problems.
2841 * blockframe.c (inside_main_func): Look for "main" in the minimal
2842 symbol table.
2843 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2844 identical.
2845
d9170e22
AC
28462003-07-15 Andrew Cagney <cagney@redhat.com>
2847
2848 * complaints.c (struct explanation): Define.
2849 (struct complaints): Change type of "explanation" to "struct
2850 explanation".
2851 (symfile_explanations): Convert to a "struct explanation" table.
2852 (vcomplaint): Update.
2853
eba29c8c
ML
28542003-07-15 Michal Ludvig <mludvig@suse.cz>
2855
2856 * x86-64-linux-nat.c (regmap): Removed.
2857 (supply_gregset, fill_gregset): Call
2858 x86_64_linux_(fill,supply)_gregset functions.
2859 * x86-64-linux-tdep.c (USER_*): New defines.
2860 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2861 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2862 New functions.
2863 (fetch_core_registers): Ditto.
2864 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2865 * x86-64-linux-tdep.h: New file.
2866 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2867 and core-regset.o.
2868 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2869
68cc0bfb
MK
28702003-07-13 Mark Kettenis <kettenis@gnu.org>
2871
88a115f7
MK
2872 * x86-64-tdep.c (x86_64_store_return_value): Use
2873 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2874
68cc0bfb
MK
2875 * configure.host: Add x86_64-*-freebsd*.
2876 * configure.tgt: Add x86_64-*-freebsd*.
2877 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2878 * amd64fbsd-nat.c: New file.
2879 * amd64fbsd-tdep.c: New file.
2880 * config/i386/nm-fbsd64.h: New file.
2881 * config/i386/fbsd64.mh: New file.
2882 * config/i386/fbsd64.mt: New file.
2883
138e7be5
MK
28842003-07-11 Mark Kettenis <kettenis@gnu.org>
2885
2886 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2887 `sc_regs_offset' and `sc_fpregs_offset'.
2888 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2889 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2890 (alpha_sigtramp_register_address): Rewrite to use new members of
2891 `struct gdbarch_tdep'.
2892 (alpha_gdbarch_init): Initialize new members of struct
2893 gdbarch_tdep'.
2894 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2895 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2896 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2897 (alphafbsd_pc_in_sigtramp): Implement.
2898 (alphafbsd_sigtramp_offset): New function.
2899 (alphafbsd_sigcontext_addr): New function.
2900 (alphafbsd_init_abi): Initialize signal trampoline related members
2901 of `struct gdbarch_tdep'.
2902 (_initialize_alphafbsd_tdep): Add prototype.
2903
95303a68
TR
29042003-07-11 Theodore A. Roth <troth@openavr.org>
2905
ba292e4c
TR
2906 * Makefile.in (install-only): Quote sed expression when generating
2907 transformed_name.
95303a68 2908
6896c0c7
RH
29092003-07-11 Richard Henderson <rth@redhat.com>
2910
2911 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2912 * dwarf2-frame.c: Include complaints.h.
2913 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2914 variable initialization; return NULL on error.
2915 (decode_frame_entry): New.
2916
8edd5d01
AC
29172003-07-11 Andrew Cagney <cagney@redhat.com>
2918
c4a09524
AC
2919 * frame.h (frame_address_in_block): Delete declaration.
2920 * blockframe.c (frame_address_in_block): Delete function.
2921 (get_frame_block): Use get_frame_address_in_block.
2922 (block_innermost_frame): Ditto.
2923 * stack.c (print_frame, backtrace_command_1): Ditto.
2924
8edd5d01
AC
2925 * frame.h (get_frame_address_in_block): Declare.
2926 (frame_unwind_address_in_block): Declare.
2927 * frame.c (frame_unwind_address_in_block): New function.
2928 (get_frame_address_in_block): New function.
2929
f7968451
AC
29302003-07-10 Andrew Cagney <cagney@redhat.com>
2931
2932 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2933 pre-default. Note: re-generate has no effect.
2934
ae99b398
AC
29352003-07-10 Andrew Cagney <cagney@redhat.com>
2936
2937 * gdbarch.sh: When a variable, but not a function, compare against
2938 0. Fix problem in previous patch.
2939 * gdbarch.c: Re-generate.
2940
956ac328
AC
29412003-07-10 Andrew Cagney <cagney@redhat.com>
2942
2943 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2944 functions against NULL, not 0.
2945 * gdbarch.c: Re-generate.
2946
287c3240
FF
29472003-07-10 Fred Fish <fnf@ninemoons.com>
2948
2949 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2950 null string instead of a null pointer.
2951 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2952
32f63c4b
MS
29532003-07-09 Michael Snyder <msnyder@redhat.com>
2954
2955 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2956
402ecd56
MK
29572003-07-09 Mark Kettenis <kettenis@gnu.org>
2958
2959 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2960 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2961 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2962 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2963 * x86-64-tdep.c: ... from here.
2964
c481dac7
AS
29652003-07-09 Andreas Schwab <schwab@suse.de>
2966
2967 * m68k-tdep.h (enum struct_return): Define.
2968 (struct gdbarch_tdep): Add struct_return.
2969 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2970 bytes are padded to the right, not to the left. Pass struct value
2971 address in register %a1, not on stack.
2972 (m68k_use_struct_convention): New function.
2973 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2974 struct_return in tdep to pcc_struct_return.
2975 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2976 reg_struct_return.
2977
64176fa3
JB
29782003-07-09 Joel Brobecker <brobecker@gnat.com>
2979
2980 * somread.c (som_symfile_offsets): Fix compilation error.
2981
96a4ee76
AC
29822003-07-09 Andrew Cagney <cagney@redhat.com>
2983
2984 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2985 Add comments about the checks.
2986
1517c6d1
AC
29872003-07-08 Andrew Cagney <cagney@redhat.com>
2988
2989 * Makefile.in: Make dependency section headers consistent.
2990 (config_h): Move to $BUILD headers section.
2991 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2992 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2993 (ada-exp.tab.c): Move to YACC/LEX section.
2994 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2995 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2996
dc5dd1eb
KW
29972003-07-08 Kris Warkentin <kewarken@qnx.com>
2998
2999 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3000 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3001 of strerror with safe_strerror, use ISO C function definitions,
3002 and replace instances of sprintf with snprintf.
dc5dd1eb 3003
612dde91
AC
30042003-07-07 Andrew Cagney <cagney@redhat.com>
3005
3006 * frame.c (get_prev_frame): Enable check for identical frames.
3007 Update comments. Update error messages.
3008
492c11d3
JB
30092003-07-07 Joel Brobecker <brobecker@gnat.com>
3010
3011 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3012
376a5a49
JB
30132003-07-07 Joel Brobecker <brobecker@gnat.com>
3014
3015 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3016 sort_symtab_syms, no longer necessary.
3017
22b4a9ad
JB
30182003-07-07 Joel Brobecker <brobecker@gnat.com>
3019
3020 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3021
5bbcb741
JB
30222003-07-07 Joel Brobecker <brobecker@gnat.com>
3023
3024 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3025 (mips_register_byte): Likewise.
3026
c139e7d9
DJ
30272003-07-07 Daniel Jacobowitz <drow@mvista.com>
3028
3029 * Makefile.in (sparc_tdep_h): New.
3030 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3031 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3032 * sparc-linux-nat.c: Include "sparc-tdep.h".
3033 * sparc-nat.c: Likewise.
3034 * sparc-tdep.c: Likewise.
3035 * sparc64nbsd-nat.c: Likewise.
3036 * sparcnbsd-nat.c: Likewise.
3037 * sparcnbsd-tdep.c: Likewise.
3038 * sparc-tdep.h: New file.
3039 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3040 and sparc_npc_regnum.
3041
fd8f87c5
DJ
30422003-07-07 Daniel Jacobowitz <drow@mvista.com>
3043
3044 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3045 (mips_linux_cannot_store_register): List supported instead of
3046 unsupported registers.
3047
13adf674
DJ
30482003-07-07 Daniel Jacobowitz <drow@mvista.com>
3049
3050 * disasm.c (dump_insns): Separate instructions from addresses.
3051
8de307e0
AS
30522003-07-07 Andreas Schwab <schwab@suse.de>
3053
3054 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3055 dependencies.
3056 * m68k-tdep.c (NUM_FREGS): Delete.
3057 (SIG_PC_FP_OFFSET): Delete.
3058 (TARGET_M68K): Delete.
3059 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3060 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3061 P_MOVEL_SP, P_MOVEML_SP): Define.
3062 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3063 P_TRAP): Delete.
3064 (m68k_register_raw_size): Delete.
3065 (m68k_register_virtual_size): Delete.
3066 (m68k_register_type): Renamed from m68k_register_virtual_type and
3067 add gdbarch argument.
3068 (m68k_store_struct_return): Delete.
3069 (m68k_deprecated_extract_return_value): Delete.
3070 (m68k_deprecated_extract_struct_value_address): Delete.
3071 (m68k_frame_chain): Delete.
3072 (m68k_frame_saved_pc): Delete.
3073 (m68k_fix_call_dummy): Delete.
3074 (m68k_push_dummy_frame): Delete.
3075 (m68k_pop_frame): Delete.
3076 (m68k_extract_return_value): New function.
3077 (m68k_store_return_value): Rewrite using regcache.
3078 (m68k_extract_struct_value_address): Rewrite using regcache.
3079 (m68k_push_dummy_call): New function.
3080 (struct m68k_frame_cache): Define.
3081 (m68k_alloc_frame_cache): New function.
3082 (m68k_analyze_frame_setup): New function.
3083 (m68k_analyze_register_saves): New function.
3084 (m68k_analyze_prologue): New function.
3085 (m68k_skip_prologue): Rewrite using above functions.
3086 (m68k_unwind_pc): New function.
3087 (m68k_frame_cache): New function.
3088 (m68k_frame_this_id): New function.
3089 (m68k_frame_prev_register): New function.
3090 (m68k_frame_unwind): New variable.
3091 (m68k_frame_p): New function.
3092 (m68k_sigtramp_frame_cache): New function.
3093 (m68k_sigtramp_frame_this_id): New function.
3094 (m68k_sigtramp_frame_prev_register): New function.
3095 (m68k_sigtramp_frame_unwind): New variable.
3096 (m68k_sigtramp_frame_p): New function.
3097 (m68k_frame_base_address): New function.
3098 (m68k_frame_base): New function.
3099 (m68k_unwind_dummy_id): New function.
3100 (fill_gregset): Use regcache_collect.
3101 (fill_fpregset): Likewise.
3102 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3103 defined.
3104 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3105 deprecated_init_frame_pc, deprecated_store_struct_return,
3106 deprecated_extract_return_value, deprecated_store_return_value,
3107 deprecated_frame_chain, deprecated_frame_saved_pc,
3108 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3109 deprecated_register_virtual_size,
3110 deprecated_max_register_raw_size,
3111 deprecated_max_register_virtual_size,
3112 deprecated_register_virtual_type, deprecated_register_size,
3113 deprecated_register_byte, deprecated_register_bytes,
3114 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3115 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3116 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3117 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3118 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3119 deprecated_push_dummy_frame, deprecated_pop_frame,
3120 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3121 only if SYSCALL_TRAP is defined. Set extract_return_value,
3122 store_return_value, extract_struct_value_address, register_type,
3123 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3124 predicates.
3125 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3126 M68K_MAX_REGISTER_SIZE): Define.
3127 (struct m68k_sigtramp_info): Define.
3128 (struct gdbarch_tdep): Add get_sigtramp_info.
3129 * m68klinux-nat.c (fetch_register): Use register_size instead of
3130 REGISTER_RAW_SIZE. Don't put assignment in if.
3131 (store_register): Likewise.
3132 (fetch_inferior_registers): Likewise.
3133 (store_inferior_registers): Likewise.
3134 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3135 (m68k_linux_frame_saved_pc): Delete.
3136 (m68k_linux_sigcontext_reg_offset,
3137 m68k_linux_ucontext_reg_offset): Define.
3138 (m68k_linux_get_sigtramp_info): New function.
3139 (m68k_linux_extract_return_value): Rewrite using regcache.
3140 (m68k_linux_store_return_value): Likewise.
3141 (m68k_linux_extract_struct_value_address): Likewise.
3142 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3143 Don't set deprecated_frame_saved_pc,
3144 deprecated_extract_return_value, deprecated_store_return_value,
3145 deprecated_extract_struct_value_address. Set
3146 extract_return_value, store_return_value,
3147 extract_struct_value_address.
3148
eb8bc282
AC
31492003-07-07 Andrew Cagney <cagney@redhat.com>
3150
3151 * expprint.c: Include "user-regs.h" instead of "frame.h".
3152 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3153 frame_map_regnum_to_name.
3154 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3155 (frame_map_name_to_regnum): Simplify, call
3156 user_reg_map_name_to_regnum.
3157 (frame_map_regnum_to_name): Simplify, call
3158 user_reg_map_regnum_to_name.
3159 (frame_register_unwind): Update.
3160 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3161 (_initialize_frame_reg): Call user_reg_add_builtin.
3162 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3163 (value_of_register): Use value_of_user_reg.
3164 * eval.c (evaluate_subexp_standard): Update.
3165 * parse.c (write_dollar_variable): Update.
3166 * d10v-tdep.c (d10v_print_registers_info): Update.
3167 * infcmd.c (registers_info): Update.
3168 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3169 (builtin_regs_h): Delete macro.
3170 (user_regs_h): Define.
3171 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3172 (builtin-regs.o): Delete target.
3173 (user-regs.o): Specify dependencies.
3174 (expprint.o): Update dependencies.
3175 (findvar.o): Update dependencies.
3176 (frame.o): Update dependencies.
3177 (std-regs.o): Update dependencies.
3178
9f476a01
CF
31792003-07-06 Christopher Faylor <cgf@redhat.com>
3180
3181 * win32-nat.c (solib_symbols_add): Use one variable for all section
3182 address stuff. Pass variable rather than address of variable to
3183 safe_symbol_file_add.
3184
a731b831
AS
31852003-07-06 Andreas Schwab <schwab@suse.de>
3186
3187 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3188
9f83329d
JB
31892003-07-04 Joel Brobecker <brobecker@gnat.com>
3190
3191 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3192
27e28cc5
KW
31932003-07-04 Kris Warkentin <kewarken@qnx.com>
3194
3195 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3196
31972003-07-04 Kris Warkentin <kewarken@qnx.com>
3198
3199 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3200 * config/i386/nto.mh: New file.
3201 * config/i386/nm-nto.h: New file.
3202 * configure.host: Add i[3456]86-*-nto*.
3203
100f2e98
JB
32042003-07-03 Joel Brobecker <brobecker@gnat.com>
3205
3206 * remote-vx.c (vx_add_symbols): Fix compilation error.
3207
e23457df
AC
32082003-07-03 Andrew Cagney <cagney@redhat.com>
3209
3210 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3211 * gdbarch.h, gdbarch.c: Re-generate.
3212 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3213 (legacy_register_name): Declare.
3214 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3215 (REGISTER_NAME): Define.
3216 * sparc-tdep.c (legacy_register_name): New function.
3217 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3218 (REGISTER_NAME): Define.
3219 (hppa64_register_name): Declare.
3220 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3221 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3222 (hppa64_register_name): New function.
3223 (hppa_register_name): New function.
3224 * arch-utils.c (legacy_register_name): Delete.
3225 * arch-utils.h (legacy_register_name): Delete.
3226
38caaeec
DJ
32272003-07-03 Daniel Jacobowitz <drow@mvista.com>
3228
3229 * cli/cli-interp.c (cli_interpreter_resume): Update the
3230 cli_uiout's stream to gdb_stdout.
3231
dadd712e
AC
32322003-07-03 Andrew Cagney <cagney@redhat.com>
3233
3234 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3235 predicate.
3236 * gdbarch.h, gdbarch.c: Re-generate.
3237 * regcache.c (init_regcache_descr): Use legacy code when either
3238 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3239
c7f1390e
DJ
32402003-07-02 Daniel Jacobowitz <drow@mvista.com>
3241
3242 * NEWS: Move "set logging" entry into GDB 6.0 section.
3243
4bc8c588
JB
32442003-07-02 Jim Blandy <jimb@redhat.com>
3245
a9dd42f1
JB
3246 * s390-tdep.c (struct frame_extra_info): new member:
3247 'stack_bought_valid'.
3248 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3249 initialize fextra_info->stack_bought.
3250 (s390_frameless_function_invocation): Don't trust the value of
3251 fextra_info_ptr->stack_bought unless
3252 fextra_info->stack_bought_valid is set.
3253
4bc8c588
JB
3254 New S390 prologue analyzer.
3255 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3256 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3257 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3258 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3259 compute_x_addr, s390_on_stack, s390_store,
3260 s390_get_signal_frame_info): New functions.
3261 (S390_NUM_SPILL_SLOTS): New macro.
3262 (s390_get_frame_info): Rewritten.
3263 (is_arg_reg): Deleted.
3264
3265 Break out the decoding of S/390 instructions into separate
3266 functions, to make it more legible, and easier to check
3267 against the spec.
3268 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3269 is_rx, is_rxe): New functions.
3270 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3271 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3272 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3273 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3274 enums for opcode values. (Is this an improvement?)
3275
fd13a04a
AC
32762003-07-02 Andrew Cagney <cagney@redhat.com>
3277
3278 * i386-tdep.c: Revert change committed as part of trad-frame code
3279 below.
3280
3f8091c1
DJ
32812003-07-02 Daniel Jacobowitz <drow@mvista.com>
3282
3283 * breakpoint.c (insert_catchpoint): Make static.
3284
8dd5115e
AS
32852003-07-02 Andreas Schwab <schwab@suse.de>
3286
3287 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3288 former ia64_push_arguments and ia64_push_return_address, and use
3289 regcache functions instead of read/write_register.
3290 (ia64_gdbarch_init): Set push_dummy_call instead of
3291 deprecated_push_arguments and deprecated_push_return_address.
3292
a2229c23
AJ
32932003-07-01 Andreas Jaeger <aj@suse.de>
3294
3295 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3296 before the call.
3297 Set %rax only to number of SSE registers used.
3298
3b3850e8
AC
32992003-07-01 Andrew Cagney <cagney@redhat.com>
3300
3301 * trad-frame.h: Update comments, a -1 .addr is reserved.
3302 (trad_frame_value_p, trad_frame_addr_p): Declare.
3303 (trad_frame_reg_p): Declare.
3304 (trad_frame_set_value): Rename trad_frame_register_value.
3305 (trad_frame_set_unknown): Declare.
3306 * trad-frame.c (trad_frame_realreg_p): New function.
3307 (trad_frame_addr_p, trad_frame_value_p): New function.
3308 (trad_frame_set_unknown): New function.
3309 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3310 (trad_frame_prev_register): Use trad_frame_realreg_p,
3311 trad_frame_addr_p and trad_frame_value_p.
3312 (trad_frame_set_value): Rename trad_frame_register_value.
3313 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3314 and trad_frame_set_value.
a2229c23 3315
4d819d0e
JB
33162003-06-30 Jim Blandy <jimb@redhat.com>
3317
3318 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3319 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3320 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3321 for 16 registers, and then 32 more bytes.
3322 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3323 New macros.
3324 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3325 Move up in the file, since it's now used by is_simple_arg.
3326 (is_simple_arg): Don't assume registers are four bytes long.
3327 Exclude all double arguments. Extended floats are not simple
3328 args.
3329 (is_power_of_two): New function.
3330 (pass_by_copy_ref): Call is_power_of_two, and check that the
3331 length fits in a register, rather than listing all the acceptable
3332 sizes. Extended floats are not passed by reference.
3333 (s390_push_arguments): Don't assume registers are four bytes long.
3334 Reserve an argument register to point to the buffer for structures
3335 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3336 S390_STACK_FRAME_OVERHEAD.
3337
1ad828f1
AS
33382003-06-30 Andreas Schwab <schwab@suse.de>
3339
3340 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3341 format error message.
3342
39b00981
JB
33432003-06-30 Joel Brobecker <brobecker@gnat.com>
3344
3345 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3346
b2a7f303
DC
33472003-06-30 David Carlton <carlton@kealia.com>
3348
3349 Band-aid for PR c++/1245.
3350 * Makefile.in (cp-support.o): Depend on complaints_h.
3351 * cp-support.c: Include complaints.h. Add declaration for
3352 find_last_component.
3353 (cp_find_first_component): Separate code into
3354 cp_find_first_component_aux.
3355 (cp_find_first_component_aux): Call demangled_name_complaint.
3356 (demangled_name_complaint): New.
3357
a257b5bb
AC
33582003-06-30 Andrew Cagney <cagney@redhat.com>
3359
3360 * remote.c (remote_write_bytes): Explicitly compute and then use
3361 the payload size. Update comments to reflect. Fixes problem of
3362 GDB not sending small packets as found by Fred Fish.
3363
0a2cfde4
AC
33642003-06-30 Andrew Cagney <cagney@redhat.com>
3365
3366 * remote.c (remote_async_wait): Fix -Wformat problem.
3367
3fcb8548
AC
33682003-06-29 Andrew Cagney <cagney@redhat.com>
3369
3370 * remote.c (remote_wait): Call error, and not warning, when the
3371 packet is corrupt.
3372 (remote_async_wait): Ditto.
3373
9f9970a3
DJ
33742003-06-29 Daniel Jacobowitz <drow@mvista.com>
3375
3376 * sparc-tdep.c (sparc_y_regnum): Make external again.
3377
83a8ccca
DJ
33782003-06-29 Daniel Jacobowitz <drow@mvista.com>
3379
3380 * cli/cli-logging.c (pop_output_files): Add void to function
3381 definition.
3382
d2cf594a
AC
33832003-06-29 Andrew Cagney <cagney@redhat.com>
3384
3385 * frame.c (frame_register_unwind): Use unsigned char when dumping
3386 the buffer contents.
3387
0fac0b41
DJ
33882003-06-28 Daniel Jacobowitz <drow@mvista.com>
3389
3390 * cli/cli-logging.c: New file.
3391 * cli-out.c (struct ui_out_data): Add original_stream.
3392 (cli_redirect): New function.
3393 (cli_ui_out_impl): Add cli_redirect.
3394 (cli_out_new): Initialize original_stream.
3395 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3396 (uo_redirect, ui_out_redirect): New.
3397 * ui-out.h (struct ui_out_impl): Add redirect member.
3398 (redirect_ftype): New.
3399 (ui_out_redirect): Add prototype.
3400 * Makefile.in: Add rules for cli-logging.c.
3401 * NEWS: Mention "set logging".
3402
88a07d7c
EZ
34032003-06-27 Elena Zannoni <ezannoni@redhat.com>
3404
3405 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3406
4eb58876
AC
34072003-06-27 Andrew Cagney <cagney@redhat.com>
3408
3409 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3410 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3411 * avr-tdep.c (avr_call_dummy_address): Delete function.
3412 (avr_gdbarch_init): Do not set call_dummy_address.
3413
1549f619
EZ
34142003-06-27 Elena Zannoni <ezannoni@redhat.com>
3415
3416 * symfile.c (syms_from_objfile): Move variables to inner block.
3417 Move the checks for the non-mainline case a bit earlier to avoid
3418 doing some useless computations.
3419
3cb3398d
EZ
34202003-06-27 Elena Zannoni <ezannoni@redhat.com>
3421
3422 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3423
3799ccc6
EZ
34242003-06-26 Elena Zannoni <ezannoni@redhat.com>
3425
3426 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3427 sections.
3428
ce1f6491
MC
34292003-06-26 Michael Chastain <mec@shout.net>
3430
3431 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3432 gdb/testsuite/gdb.c++/pr-1210.exp.
3433
d958dfd0
AC
34342003-06-26 Andrew Cagney <cagney@redhat.com>
3435
3436 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3437 altivec_expression.h and altivec_registers.h.
3438
d31431ed
AC
34392003-06-26 Andrew Cagney <cagney@redhat.com>
3440
3441 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3442 info->mach when MIPS16. Patch suggested by Fred Fish.
3443
714b1282
AC
34442003-06-26 Andrew Cagney <cagney@redhat.com>
3445
3446 * utils.c (internal_vproblem): Print the problem to a reason
3447 buffer and then pass to query. Make the msg variable more local.
3448
42efa47a
AC
34492003-06-26 Andrew Cagney <cagney@redhat.com>
3450
3451 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3452 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3453 * gdbarch.h, gdbarch.c: Re-generate.
3454 * frame-base.c (default_frame_args_address): Update. Use
3455 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3456 not available.
3457 (default_frame_locals_address): Ditto for
3458 DEPRECATED_FRAME_LOCALS_ADDRESS.
3459 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3460 (vax_frame_num_args): Update.
3461 (vax_gdbarch_init): Update.
3462 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3463 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3464 * mcore-tdep.c (mcore_gdbarch_init): Update.
3465 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3466 * ia64-tdep.c (ia64_gdbarch_init): Update.
3467 * symtab.h (address_class): Update comments.
3468 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3469 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3470 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3471 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3472 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3473 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3474 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3475 * alpha-mdebug-tdep.c: Update.
3476 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3477
8ffd9b1b
AJ
34782003-06-26 Andreas Jaeger <aj@suse.de>
3479
3480 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3481 of SSE registers so that varargs functions work. Rework handling
3482 of passing arguments on the stack.
3483 (x86_64_store_return_value): Return double and float values in SSE
3484 register.
3485
e8ac10a6
MC
34862003-06-24 Michael Chastain <mec@shout.net>
3487
3488 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3489 the "constructor breakpoints ignored" bug.
3490
986af8e6
DC
34912003-06-25 David Carlton <carlton@kealia.com>
3492
3493 * MAINTAINERS: Update e-mail address.
3494
d64558a5
JB
34952003-06-24 Jim Blandy <jimb@redhat.com>
3496
e538d2d7
JB
3497 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3498
02631ec0
JB
3499 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3500 function.
3501 (ppc_linux_init_abi): Register it as the
3502 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3503
e716d87a
JB
3504 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3505 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3506 method.
3507
d64558a5
JB
3508 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3509 (ppc64_standard_linkage_target): Use it.
3510
449a5da4
AC
35112003-06-23 Andrew Cagney <cagney@redhat.com>
3512
3513 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3514 for 0 "int0" and 4 "int32" sized registers.
3515 * gdbtypes.c (builtin_type_int0): Define.
3516 (build_gdbtypes): Initialize builtin_type_int0.
3517 * gdbtypes.h (builtin_type_int0): Declare.
3518
b2a02dda
SC
35192003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3520
3521 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3522 as characters are unsigned.
3523
fba3138e
DJ
35242003-06-22 Daniel Jacobowitz <drow@mvista.com>
3525
3526 PR gdb/1179
3527 * dwarfread.c (struct_type): Skip static fields without crashing.
3528
f6c8180b
AC
35292003-06-22 Andrew Cagney <cagney@redhat.com>
3530
3531 GDB 6.0 branch created.
f2c06f52
AC
3532 * README: Update.
3533 * PROBLEMS: Update. Empty.
3534 * NEWS: Update.
f6c8180b 3535
ae822768
DJ
35362003-06-22 Daniel Jacobowitz <drow@mvista.com>
3537
3538 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3539 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3540
261de166
AC
35412003-06-22 Andrew Cagney <cagney@redhat.com>
3542
3543 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3544 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3545 Velikov.
3546
30e94205
DJ
35472003-06-22 Daniel Jacobowitz <drow@mvista.com>
3548
3549 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3550 compilers.
3551
9e14d721
DJ
35522003-06-21 Daniel Jacobowitz <drow@mvista.com>
3553
3554 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3555 argument of val_print.
3556 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3557 to the address argument of baseclass_offset or target_read_memory.
3558 Do add it to the argument of cp_print_value_fields.
3559
a4b8ebc8
AC
35602003-06-21 Andrew Cagney <cagney@redhat.com>
3561
3562 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3563 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3564 instead of 0..NUM_REGS.
3565 (mips_register_reggroup_p): New function.
3566 (mips_pseudo_register_write): New function.
3567 (mips_pseudo_register_read): New function.
3568 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3569 based on the register's type.
3570 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3571 cooked.
3572 (mips_get_saved_register): Simplify. Assert that REGNO is a
3573 pseudo / cooked.
3574 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3575 (mips_register_type): Replace mips_register_virtual_type. Map
3576 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3577 when available.
3578 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3579 that the register is cooked / virtual.
3580 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3581 Only get the extra info when needed.
3582 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3583 (mips32_heuristic_proc_desc): Fetch the cooked register.
3584 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3585 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3586 (mips_print_register): Use gdbarch_register_type, instead of
3587 REGISTER_VIRTUAL_TYPE.
3588 (print_gp_register_row): Use gdbarch_register_type, instead of
3589 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3590 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3591 Print the pseudo / cooked registers.
3592 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3593 Print the pseudo / cooked registers.
3594 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3595 REG_NUM is pseudo / cooked.
3596 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3597 (mips_n32n64_xfer_return_value): Ditto.
3598 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3599 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3600 (mips_register_sim_regno): New function.
3601 (mips_gdbarch_init): Set deprecated_register_byte,
3602 register_group_p, pseudo_register_write, pseudo_register_read,
3603 register_sim_regno, and num_pseudo_regs. Set register_type,
3604 instead of register_virtual_type.
3605 * Makefile.in (mips-tdep.o): Update dependencies.
3606 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3607 REGISTER_VIRTUAL_TYPE.
3608 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3609 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3610 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3611 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3612 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3613
325ed089
DJ
36142003-06-21 Daniel Jacobowitz <drow@mvista.com>
3615
3616 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3617 * cli/cli-cmds.c: Include "gdb_vfork.h".
3618 (shell_escape): Use vfork.
3619
f0e7d0e8
AC
36202003-06-21 Andrew Cagney <cagney@redhat.com>
3621
c57bb9fa
AC
3622 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3623 32 bit floating-point register saves.
3624
6e51443a
AC
3625 * frame.h (deprecated_unwind_get_saved_register): Delete.
3626 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3627 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3628 and deprecated_get_next_frame_hack instead of
3629 deprecated_unwind_get_saved_register.
3630
ed183c7c
AC
3631 * mips-tdep.c (mips_dump_tdep): Do not print
3632 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3633
f0e7d0e8
AC
3634 * frame.c (get_frame_register): New function.
3635 (frame_unwind_register_signed): New function.
3636 (get_frame_register_signed): New function.
3637 (frame_unwind_register_unsigned): New function.
3638 (get_frame_register_unsigned): New function.
3639 * frame.h: Add comments on naming schema.
3640 (get_frame_register, frame_unwind_register_signed): Declare.
3641 (get_frame_register_signed, get_frame_register_signed): Declare.
3642 (frame_unwind_register_unsigned): Declare.
3643 (get_frame_register_unsigned): Declare.
3644
2224d941
TR
36452003-06-20 Theodore A. Roth <troth@openavr.org>
3646
3647 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3648
8619218d
TR
36492003-06-20 Theodore A. Roth <troth@openavr.org>
3650
3651 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3652 (avr_read_sp): Ditto.
3653
0b1b50c0
DJ
36542003-06-20 Daniel Jacobowitz <drow@mvista.com>
3655
3656 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3657 * config/arm/nm-linux.h: Likewise.
3658 * config/arm/tm-linux.h: Likewise.
3659 * config/ia64/nm-linux.h: Likewise.
3660 * config/ia64/tm-ia64.h: Likewise.
3661 * config/s390/tm-linux.h: Likewise.
3662 * config/s390/tm-s390.h: Likewise.
3663 * s390-nat.c: Likewise.
3664 * s390-tdep.c: Likewise.
3665
3666 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3667 * config/ia64/linux.mt: Likewise.
3668 * config/m68k/linux.mh: Likewise.
3669 * config/mips/linux.mt: Likewise.
3670 * config/powerpc/linux.mh: Likewise.
3671 * config/sh/linux.mt: Likewise.
3672
c8c18e65
KW
36732003-06-19 Kris Warkentin <kewarken@qnx.com>
3674
3675 * solib.c (solib_open): Change tests for whether to search
3676 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3677 comments.
3678
dcccef2e
TR
36792003-06-19 Theodore A. Roth <troth@openavr.org>
3680
3681 * avr-tdep.c (avr_frame_address): Delete function.
3682 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3683 set_gdbarch_frame_args_address.
3684
5861a190
AC
36852003-06-19 Andrew Cagney <cagney@redhat.com>
3686
3687 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3688 (REGISTER_CONVERT_FROM_TYPE): Delete.
3689 (mips_register_convert_to_type): Delete declaration.
3690 (mips_register_convert_from_type): Delete declaration.
3691 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3692 kernel/.
3693
0274a8ce
MS
36942003-06-19 Michael Snyder <msnyder@redhat.com>
3695
3696 * linux-nat.h: New file.
3697 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 3698 * lin-lwp.c: Include linux-nat.h.
0274a8ce 3699 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 3700 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
3701 (linux_make_note_section): Iterate over lwps instead of threads.
3702 (linux_do_thread_registers): Use lwp instead of merged pid.
3703 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 3704 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
3705 Add dependency on linux_nat_h.
3706
adf5f719
TR
37072003-06-19 Theodore A. Roth <troth@openavr.org>
3708
3709 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3710
6766a268
DJ
37112003-06-19 Daniel Jacobowitz <drow@mvista.com>
3712
3713 * varobj.c (get_type, get_target_type): Use check_typedef.
3714
1171114a
DJ
37152003-06-19 Daniel Jacobowitz <drow@mvista.com>
3716
3717 * breakpoint.c (insert_catchpoint): Call internal_error.
3718
adcf68a2
TR
37192003-06-19 Theodore A. Roth <troth@openavr.org>
3720
3721 * avr-tdep.c (avr_push_dummy_code): Delete function.
3722 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3723
ea67f13b
DJ
37242003-06-19 Daniel Jacobowitz <drow@mvista.com>
3725
3726 * arch-utils.c (default_prepare_to_proceed): Remove.
3727 (generic_prepare_to_proceed): Remove.
3728 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3729 (generic_prepare_to_proceed): Remove prototype.
3730 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3731 * gdbarch.c: Regenerate.
3732 * gdbarch.h: Regenerate.
3733 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3734 * hppah-nat.c (hppa_switched_threads): Remove.
3735 * infrun.c (prepare_to_proceed): New static function, copied from
3736 generic_prepare_to_proceed. Remove select_it argument.
3737 (proceed): Call prepare_to_proceed.
3738 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3739 variables.
3740 (ptrace_wait): Don't set the removed variables.
3741 (hppa_switched_threads): Remove.
3742 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3743 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3744 (lin_lwp_prepare_to_proceed): Remove prototype.
3745 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3746 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3747
4add8633
TR
37482003-06-18 Theodore A. Roth <troth@openavr.org>
3749
3750 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3751 trad-frame.h.
3752 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3753 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3754 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3755 (AVR_PROLOGUE_*): Enumerate prologue types.
3756 (struct frame_extra_info): Remove.
3757 (struct avr_unwind_cache): Define.
3758 (avr_write_sp): Delete function.
3759 (avr_read_fp): Ditto.
3760 (avr_init_extra_frame_info): Ditto.
3761 (avr_pop_frame): Ditto.
3762 (avr_frame_saved_pc): Ditto.
3763 (avr_saved_pc_after_call): Ditto.
3764 (avr_push_return_address): Ditto.
3765 (avr_frame_chain): Ditto.
3766 (avr_store_struct_return): Ditto.
3767 (avr_push_arguments): Ditto.
3768 (avr_scan_prologue): Update comments. Changed to set up the info for
3769 cache unwinding. Now returns end of prologue PC.
3770 (avr_skip_prologue): Better handling of functions lacking a prologue
3771 by using avr_scan_prologue.
3772 (avr_scan_arg_moves): New function.
3773 (avr_saved_regs_unwinder): Ditto.
3774 (avr_frame_unwind_cache): Ditto.
3775 (avr_unwind_pc): Ditto.
3776 (avr_frame_this_id): Ditto.
3777 (avr_frame_prev_register): Ditto.
3778 (avr_frame_p): Ditto.
3779 (avr_frame_base_address ): Ditto.
3780 (avr_unwind_dummy_id): Ditto.
3781 (avr_push_dummy_code): Ditto.
3782 (push_stack_item): Ditto.
3783 (pop_stack_item): Ditto.
3784 (avr_push_dummy_call): Ditto.
3785 (struct stack_item): Define.
3786 (avr_frame_unwind): Declare structure.
3787 (avr_frame_base): Ditto.
3788 (avr_gdbarch_init): Remove calls to
3789 set_gdbarch_deprecated_init_frame_pc,
3790 set_gdbarch_deprecated_target_read_fp,
3791 set_gdbarch_deprecated_dummy_write_sp,
3792 set_gdbarch_deprecated_fp_regnum,
3793 set_gdbarch_deprecated_push_arguments,
3794 set_gdbarch_deprecated_push_return_address,
3795 set_gdbarch_deprecated_pop_frame,
3796 set_gdbarch_deprecated_store_struct_return,
3797 set_gdbarch_deprecated_frame_init_saved_regs,
3798 set_gdbarch_deprecated_init_extra_frame_info,
3799 set_gdbarch_deprecated_frame_chain,
3800 set_gdbarch_deprecated_frame_saved_pc,
3801 set_gdbarch_deprecated_saved_pc_after_call.
3802 Add calls to set_gdbarch_push_dummy_call,
3803 set_gdbarch_push_dummy_code,
3804 frame_unwind_append_predicate,
3805 frame_base_set_default,
3806 set_gdbarch_unwind_dummy_id,
3807 set_gdbarch_unwind_pc.
3808 Wrap a long line.
3809
7be04a68
MS
38102003-06-18 Corinna Vinschen <vinschen@redhat.com>
3811
3812 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3813 registers for H8/300S.
3814 (h8300_print_registers_info): Ditto.
8ffd9b1b 3815 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3816
ae087d01
DJ
38172003-06-18 Daniel Jacobowitz <drow@mvista.com>
3818
3819 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3820 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3821 (lin_lwp_wait): Likewise. Update comments.
3822 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3823 (pull_pid_from_list, linux_record_stopped_pid): New.
3824
07d8f827
SC
38252003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3826
3827 * ada-lang.c (scan_discrim_bound): Name first argument.
3828 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3829 declared by ALL_BLOCK_SYMBOLS.
3830
7cb47b14
SC
38312003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3832
3833 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3834 ("regcache.h"): Include it.
3835 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3836
6ad8ae5c
DJ
38372003-06-17 Daniel Jacobowitz <drow@mvista.com>
3838
3839 * NEWS: Mention gdbserver detach change and "disconnect" command.
3840 * infcmd.c (disconnect_command): New function.
3841 (_initialize_infcmd): Add ``disconnect'' command.
3842 * remote.c (remote_async_detach): Delete.
3843 (remote_detach): Merge remote_async_detach.
3844 (remote_disconnect): New.
3845 (init_remote_ops): Set to_disconnect.
3846 (init_remote_cisco_ops): Likewise.
3847 (init_remote_async_ops): Likewise. Use remote_detach.
3848 * target.c (cleanup_target): Default to_disconnect.
3849 (update_current_target): Inherit to_disconnect.
3850 (target_disconnect, debug_to_disconnect): New functions.
3851 (setup_target_debug): Set to_disconnect.
3852 * target.h (struct target_ops): Add to_disconnect.
3853 (target_disconnect): Add prototype.
3854
687595f9
DJ
38552003-06-17 Daniel Jacobowitz <drow@mvista.com>
3856
3857 * breakpoint.c (insert_catchpoint): New function.
3858 (insert_breakpoints): Use catch_exceptions to call
3859 insert_catchpoint. Disable catchpoints if they fail to insert.
3860
29239a8f
DJ
38612003-06-17 Daniel Jacobowitz <drow@mvista.com>
3862
3863 * symfile.c (reread_symbols): Clear sym_private.
3864
2cdf3c63
AC
38652003-06-17 Andrew Cagney <cagney@redhat.com>
3866
3867 * trad-frame.h (struct frame_info): Add opaque declaration.
3868 * remote-fileio.h (struct cmd_list_element): Add opaque
3869 declaration.
3870 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3871 comments.
3872
cf0e1e0d
DJ
38732003-06-17 Daniel Jacobowitz <drow@mvista.com>
3874
3875 * remote.c (remote_prepare_to_store): Replace call to
3876 deprecated_read_register_bytes with multiple regcache_raw_read
3877 calls.
3878
192cdb19
KW
38792003-06-17 Kris Warkentin <kewarken@qnx.com>
3880
3881 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3882 (nto_find_and_open_solib): Likewise.
3883 (nto_init_solib_absolute_prefix): Likewise.
3884 (_initialize_nto_tdep): Fix indentation.
3885
89929b45
KW
38862003-06-17 Kris Warkentin <kewarken@qnx.com>
3887
3888 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3889
46019f27
KW
38902003-06-17 Kris Warkentin <kewarken@qnx.com>
3891
3892 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3893
1a38736e
JB
38942003-06-17 Jim Blandy <jimb@redhat.com>
3895
3896 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3897
3605c34a
TR
38982003-06-16 Theodore A. Roth <troth@openavr.org>
3899
3900 * avr-tdep.c (avr_extract_return_value): New function.
3901 (avr_gdbarch_init): Set extract_return_value method.
3902
870b3035
AC
39032003-06-16 Andrew Cagney <cagney@redhat.com>
3904
3905 * frame.h (deprecated_get_next_frame_hack): Declare.
3906 * frame.c (legacy_saved_regs_prev_register): Only require
3907 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3908 there are always saved regs.
3909 (deprecated_generic_get_saved_register): Do not require
3910 DEPRECATED_FRAME_INIT_SAVED_REGS.
3911 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3912 use frame ID unwind instead.
3913 (deprecated_get_next_frame_hack): New function.
3914
63d47a7d
CV
39152003-06-16 Corinna Vinschen <vinschen@redhat.com>
3916
3917 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3918 (h8300_push_dummy_call): ...this function. Some minor optimization.
3919 (h8300_push_return_address): Remove.
3920 (h8300_gdbarch_init): Remove calls to
3921 set_gdbarch_deprecated_dummy_write_sp,
3922 set_gdbarch_deprecated_push_arguments and
3923 set_gdbarch_deprecated_push_return_address.
3924 Add call to set_gdbarch_push_dummy_call.
3925
4bb1dc5e
CV
39262003-06-16 Corinna Vinschen <vinschen@redhat.com>
3927
3928 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3929 (E_PSEUDO_EXR_REGNUM): Ditto.
3930 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3931 registers into safe registers.
4bb1dc5e
CV
3932 (h8300_skip_prologue): Check for stm instruction to push registers
3933 used for register variables onto stack.
3934 (gdb_print_insn_h8300): Remove.
3935 (h8300_examine_prologue): Add a comment.
3936 (h8300_register_name): Take pseudo registers into account.
3937 (h8300s_register_name): Ditto.
3938 (h8300sx_register_name): Ditto.
3939 (h8300_print_register): Ditto.
3940 (h8300_print_registers_info): Define "nice" printing order.
3941 (h8300_saved_pc_after_call): Take pseudo registers into account.
3942 (h8300_register_type): Ditto. Return type used for remote connection
3943 when requesting real CCR or EXR register, return actual type when
3944 requesting pseudo CCR or EXR.
3945 (h8300_pseudo_register_read): New function.
3946 (h8300_pseudo_register_write): Ditto.
3947 (h8300_dbg_reg_to_regnum): Ditto.
3948 (h8300s_dbg_reg_to_regnum): Ditto.
3949 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3950 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3951 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3952 set_gdbarch_print_insn architecture dependent.
3953 Call set_gdbarch_pseudo_register_read and
3954 set_gdbarch_pseudo_register_write.
3955 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3956
a59fe496
AC
39572003-06-16 Andrew Cagney <cagney@redhat.com>
3958
3959 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3960 * gdbarch.h, gdbarch.c: Re-generate.
3961 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3962 * s390-tdep.c (s390_gdbarch_init): Update.
3963 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3964 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3965 * mips-tdep.c (mips_gdbarch_init): Update.
3966 * mcore-tdep.c (mcore_gdbarch_init): Update.
3967 * cris-tdep.c (cris_gdbarch_init): Update.
3968 * infcall.c (call_function_by_hand): Update.
3969 * ia64-tdep.c (ia64_push_arguments): Update comment.
3970 * frame.c (legacy_get_prev_frame): Do not assume
3971 SAVE_DUMMY_FRAME_TOS_P.
3972 * dummy-frame.c (find_dummy_frame): Update comment.
3973
6f4e5a41
AC
39742003-06-16 Andrew Cagney <cagney@redhat.com>
3975
3976 * regcache.c (do_cooked_read): Do not use register_valid_p.
3977
72fab697
TR
39782003-06-15 Theodore A. Roth <troth@openavr.org>
3979
3980 * avr-tdep.c (avr_register_type): Remove a blank line.
3981 (avr_scan_prologue): Correct some comments.
3982
e3d8b004
TR
39832003-06-15 Theodore A. Roth <troth@openavr.org>
3984
3985 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3986 prologue types.
8ffd9b1b 3987 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3988 option.
3989 Add code to scan -mcall-prologues for mega devices.
3990
866b76ea
TR
39912003-06-15 Theodore A. Roth <troth@openavr.org>
3992
3993 * avr-tdep.c (avr_register_byte): Delete function.
3994 (avr_register_raw_size): Delete function.
3995 (avr_register_virtual_size): Delete function.
3996 (avr_register_virtual_type): Delete function.
3997 (avr_register_type): New function.
3998 (avr_address_to_pointer): Remove unused code.
3999 (avr_read_fp): Need to read FP as two separate bytes due to change to
4000 avr_register_type() usage.
4001 (avr_gdbarch_init): Don't set deprecated_register_size.
4002 Don't set deprecated_register_bytes.
4003 Don't set deprecated_register_byte.
4004 Don't set deprecated_register_raw_size.
4005 Don't set deprecated_max_register_raw_size.
4006 Don't set deprecated_register_virtual_size.
4007 Don't set deprecated_max_register_virtual_size.
4008 Don't set deprecated_register_virtual_type.
4009 Set register_type method.
4010
3993f6b1
DJ
40112003-06-15 Daniel Jacobowitz <drow@mvista.com>
4012
4013 * Makefile.in (linux-nat.o): Add rule.
4014 * linux-nat.c: New file.
4015 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4016 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4017 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4018 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4019 * config/arm/linux.mh (NATDEPFILES): Likewise.
4020 * config/i386/linux.mh (NATDEPFILES): Likewise.
4021 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4022 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4023 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4024 * config/mips/linux.mh (NATDEPFILES): Likewise.
4025 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4026 * config/s390/s390.mh (NATDEPFILES): Likewise.
4027 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4028
786a90bb
MK
40292003-06-15 Mark Kettenis <kettenis@gnu.org>
4030
4031 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4032 replace out-of-date comment.
4033
3bd3f01e
AC
40342003-06-15 Andrew Cagney <cagney@redhat.com>
4035
4036 * rdi-share/host.h (Fail): Change to a varargs function.
4037 * remote-rdi.c (Fail): Update.
8ffd9b1b 4038
de5b9bb9
MK
40392003-06-15 Mark Kettenis <kettenis@gnu.org>
4040
4041 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4042 (i386_convert_register_p, i386_register_to_value,
4043 i386_register_from_value): Handle types longer than 8 bytes.
4044
d532c08f
MK
40452003-06-15 Mark Kettenis <kettenis@gnu.org>
4046
4047 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4048 Move floating-point code to new function in i387-tdep.c.
4049 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4050 New functions containing code moved here from i386-tdep.c.
4051 * i387-tdep.h: Add opaque declaration for `struct type'.
4052 (i387_register_to_value, i387_value_to_register): New prototypes.
4053 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4054 (x86_64_init_abi): Set convert_register_p, register_to_value and
4055 value_to_register here.
8ffd9b1b 4056
42c466d7
AC
40572003-06-14 Andrew Cagney <cagney@redhat.com>
4058
4059 * mips-tdep.c (mips_register_to_value): Make static.
4060 (mips_value_to_register): Make static.
4061 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4062 * ia64-tdep.c (ia64_register_raw_size): Make static.
4063 (ia64_register_virtual_size): Make static.
4064 (ia64_register_byte): Make static.
4065 * i387-tdep.c: Include "i387-tdep.h".
4066 (print_387_control_word): Delete function.
4067 (print_387_status_word): Delete function.
4068 (print_387_status_bits): Delete function.
4069 (print_387_control_bits): Delete function.
4070 * Makefile.in (i387-tdep.o): Update dependencies.
4071 * rdi-share/host.h (Fail): Declare.
4072 * remote-rdi.c (Fail): Update to match declaration.
4073
2a9cda49
AC
40742003-06-14 Andrew Cagney <cagney@redhat.com>
4075
4076 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4077 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4078 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4079 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4080 * README: Delete reference to remote-array.
4081 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4082 (remote-array.o): Delete target.
4083 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4084 * remote-array.c: Delete file.
4085
ff2e87ac
AC
40862003-06-14 Andrew Cagney <cagney@redhat.com>
4087 Mark Kettenis <kettenis@gnu.org>
4088
4089 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4090 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4091 parameter with "frame".
4092 * gdbarch.h, gdbarch.c: Re-generate.
4093 * frame.h (put_frame_register): Declare.
4094 * frame.c (put_frame_register): New function.
4095 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4096 (legacy_register_to_value): Rewrite, use "frame" to get the
4097 register value.
4098 (legacy_value_to_register): Rewrite, use "frame" to find the
4099 register's location before storing.
4100 * arch-utils.h (legacy_convert_register_p): Update.
4101 (legacy_register_to_value, legacy_value_to_register): Update.
4102 * findvar.c (value_from_register): Rewrite, eliminate use of
4103 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4104 "frame" to REGISTER_TO_VALUE.
4105 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4106 lval_reg_frame_relative + lval_register branch of the switch. Do
4107 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4108 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4109 I386_EDI_REGNUM): New defines.
4110 (i386_next_regnum, i386_convert_register_p,
4111 i386_register_to_value, i386_value_to_register): New functions.
4112 (i386_register_convertible, i386_register_convert_to_virtual,
4113 i386_convert_to_raw): Remove functions.
4114 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4115 value_to_register instead of register_convertible,
4116 register_convert_to_virtual and register_convert_to_raw.
4117 * mips-tdep.c (mips_convert_register_p): New function.
4118 (mips_value_to_register): Replace mips_register_convert_from_type.
4119 (mips_register_to_value): Replace mips_register_convert_to_type.
4120 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4121 register_to_value.
4122 * alpha-tdep.c (alpha_convert_register_p): Update.
4123 (alpha_value_to_register): Update, store the register.
4124 (alpha_register_to_value): Update, fetch the register.
4125
98be1e77
TR
41262003-06-14 Theodore A. Roth <troth@openavr.org>
4127
4128 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4129 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4130 Don't set deprecated_call_dummy_words.
4131 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4132 Don't set remote_translate_xfer_address.
4133 (avr_io_reg_read_command): Remove commented out debug printf.
4134 Wrap a long line.
4135
57bc6122
TR
41362003-06-14 Theodore A. Roth <troth@openavr.org>
4137
4138 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4139 causes gdb to seg fault.
4140
eb01fc62
DJ
41412003-06-14 Daniel Jacobowitz <drow@mvista.com>
4142
4143 * sparc-nat.c (fetch_inferior_registers): Correct
4144 a reference to "registers".
4145
3b3e6bee
DJ
41462003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4147
4148 * Makefile.in (exc_request_U_h): Define
4149 (exc_request_S_h): Likewise.
4150 (msg_reply_S_h): Likewise.
4151 (msg_U_h): Likewise.
4152 (notify_S_h): Likewise.
4153 (process_reply_S_h): Likewise.
4154 (gnu-nat.o): Depend on gdb_obstack_h
4155 * gnu-nat.c: Include "gdb_obstack.h".
4156
b8de8283
AC
41572003-06-13 Andrew Cagney <cagney@redhat.com>
4158
4159 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4160 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4161
f3be58bc
AC
41622003-06-13 Andrew Cagney <cagney@redhat.com>
4163
4164 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4165 when deprecated REGISTER macros can be deleted.
4166 * gdbarch.h, gdbarch.c: Re-generate.
4167
4c0122c8
JB
41682003-06-13 Jim Blandy <jimb@redhat.com>
4169
4170 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4171 Linux entry point symbols for _dl_debug_state, too.
4172
3e210248
AC
41732003-06-13 Andrew Cagney <cagney@redhat.com>
4174
4175 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4176 available, do not use the FP register, and always save the TOS.
4177 * dummy-frame.c (dummy_frame_this_id): Do not assert
4178 SAVE_DUMMY_FRAME_TOS.
4179 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4180 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4181 (i386_push_dummy_call): Add 8 to the returned SP.
4182 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4183 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4184 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4185 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4186 (x86_64_push_dummy_call): Return "sp + 16".
4187 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4188 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4189 save_dummy_frame_tos.
4190
0b65af49
JB
41912003-06-13 Jim Blandy <jimb@redhat.com>
4192
4193 * frv-tdep.c (frv_use_struct_convention): Delete static
4194 declaration for function deleted in my change of 2003-06-12.
4195
4ea2465e
TR
41962003-06-13 Theodore A. Roth <troth@openavr.org>
4197
4198 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4199 (avr_pointer_to_address): Shift code addrs left 1 bit.
4200 (avr_convert_from_func_ptr_addr): Delete function since operation is
4201 better handled by avr_address_to_pointer and avr_pointer_to_address.
4202 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4203
1581182a
MK
42042003-06-13 Mark Kettenis <kettenis@gnu.org>
4205
4206 From Kelley Cook <kelleycook@wideopenwest.com>:
4207 * configure.host: Accept i[34567]86 variants.
4208 * configure.tgt: Likewise.
4209 * nlm/configure.in: Likewise.
4210 * nlm/configure: Regenerated.
4211
7aa1783e
RE
42122003-06-13 Richard Earnshaw <rearnsha@arm.com>
4213
4214 * arm-tdep.c (solib-svr4.h): Dont' include it.
4215 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4216 * arm-linux-tdep.c: ... here. Make static.
4217 (arm_linux_init_abi): Register it.
4218 (solib-svr4.h): Include it.
4219 * Makefile.in: Update dependencies.
4220 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4221 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4222
0261a0d0
CV
42232003-06-13 Corinna Vinschen <vinschen@redhat.com>
4224
4225 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4226 indicate registers used for return values.
4227 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4228 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4229 members.
4230 (h8300_init_extra_frame_info): Ditto.
4231 (h8300_frame_locals_address): Removed.
4232 (h8300_frame_args_address): Removed.
4233 (h8300_extract_return_value): Use new regcache structure. Only care
4234 for 16 bit CPUs.
4235 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4236 (h8300_store_return_value): Use new regcache structure. Only care
4237 for 16 bit CPUs.
4238 (h8300h_store_return_value): Same function for 32 bit CPUs.
4239 (h8300_store_struct_return): Removed.
4240 (h8300_extract_struct_value_address): Use new regcache structure.
4241 (h8300h_extract_struct_value_address): Removed.
4242 (h8300_push_dummy_code): New function.
4243 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4244 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4245 set_gdbarch_store_return_value architecture dependent.
4246 Call set_gdbarch_push_dummy_code and
4247 set_gdbarch_extract_struct_value_address.
4248 Remove calls to set_gdbarch_frame_args_address,
4249 set_gdbarch_frame_locals_address,
4250 set_gdbarch_deprecated_store_struct_return,
4251 set_gdbarch_deprecated_extract_return_value,
4252 set_gdbarch_deprecated_extract_struct_value_address,
4253 set_gdbarch_deprecated_call_dummy_words and
4254 set_gdbarch_deprecated_sizeof_call_dummy_words.
4255
055c394a
CV
42562003-06-13 Corinna Vinschen <vinschen@redhat.com>
4257
4258 * h8300-tdep.c (h8300_register_byte): Remove.
4259 (h8300h_register_byte): Remove.
4260 (h8300_register_virtual_type): Remove. Substitute by...
4261 (h8300_register_type): New function.
4262 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4263 (h8300h_extract_struct_value_address): Ditto.
4264 (h8300_gdbarch_init): Drop calls to
4265 set_gdbarch_deprecated_register_byte and
4266 set_gdbarch_deprecated_register_virtual_type.
4267 Add call to set_gdbarch_register_type.
4268
9c04cab7
AC
42692003-06-13 Andrew Cagney <cagney@redhat.com>
4270
4271 * gdbarch.sh: Update comments on registers.
4272 (deprecated_register_byte): Rename register_byte.
4273 (deprecated_register_raw_size): Rename register_raw_size.
4274 (deprecated_register_virtual_size): Rename register_virtual_size.
4275 (deprecated_register_virtual_type): Rename register_virtual_type.
4276 * gdbarch.h, gdbarch.c: Re-generate.
4277 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4278 * vax-tdep.c (vax_gdbarch_init): Update.
4279 * v850-tdep.c (v850_gdbarch_init): Update.
4280 * sparc-tdep.c (sparc_gdbarch_init): Update.
4281 * sh-tdep.c (sh_gdbarch_init): Update.
4282 * s390-tdep.c (s390_gdbarch_init): Update.
4283 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4284 * ns32k-tdep.c: Update.
4285 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4286 * mips-tdep.c (mips_gdbarch_init): Update.
4287 * mcore-tdep.c (mcore_gdbarch_init): Update.
4288 * m68k-tdep.c (m68k_gdbarch_init): Update.
4289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4290 * ia64-tdep.c (ia64_gdbarch_init): Update.
4291 * hppa-tdep.c (hppa_gdbarch_init): Update.
4292 * h8300-tdep.c (h8300_gdbarch_init): Update.
4293 * frv-tdep.c (frv_gdbarch_init): Update.
4294 * cris-tdep.c (cris_gdbarch_init): Update.
4295 * avr-tdep.c (avr_gdbarch_init): Update.
4296 * alpha-tdep.c (alpha_gdbarch_init): Update.
4297 * arm-tdep.c (arm_gdbarch_init): Update.
4298
b060cbea
AC
42992003-06-13 Andrew Cagney <cagney@redhat.com>
4300
4301 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4302 mips_o32_use_struct_convention with always_use_struct_convention.
4303
0fc9922a
DC
43042003-06-12 David Carlton <carlton@kealia.com>
4305
4306 * cp-namespace.c (cp_set_block_scope): Comment out
4307 processing_has_namespace_info branch.
4308
1fd35568
JB
43092003-06-12 Jim Blandy <jimb@redhat.com>
4310
f470a70a
JB
4311 Recognize and skip 64-bit PowerPC Linux linkage functions.
4312 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4313 insn_pattern, insns_match_pattern, d_field, ds_field): New
4314 functions, macros, and types for working with PPC instructions.
4315 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4316 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4317 ppc64_skip_trampoline_code): New functions, variables, and macros
4318 for recognizing and skipping linkage functions.
4319 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4320 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4321
49ff75ad
JB
4322 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4323 register offsets for both the 32- and 64-bit interfaces.
4324
bd918c83
JB
4325 Actually finish the job started by my change of 2003-05-29.
4326 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4327 other #definition of this.
4328 (ppc_linux_skip_trampoline_code): Remove declaration.
4329 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4330 static.
4331 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4332 method for GDBARCH.
4333
4334 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4335 'long' on ppc64-*-linux*.
4336
f8c59253
JB
4337 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4338 isn't #defined, assume the register doesn't exist: act as if
4339 tdep->ppc_mq_regnum were -1.
4340
8fbb30b1
JB
4341 * configure.host, configure.tgt: Add entries for
4342 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4343 powerpc/linux.mt.
4344 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4345 New files.
4346
1fd35568
JB
4347 * arch-utils.c (always_use_struct_convention): New function.
4348 * arch-utils.h (always_use_struct_convention): New prototype.
4349 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4350 (alpha_gdbarch_init): Register always_use_struct_convention,
4351 instead of alpha_use_struct_convention.
4352 * cris-tdep.c (cris_use_struct_convention): Delete.
4353 (cris_gdbarch_init): Register always_use_struct_convention,
4354 instead of cris_use_struct_convention.
4355 * frv-tdep.c (frv_use_struct_convention): Delete.
4356 (frv_gdbarch_init): Register always_use_struct_convention,
4357 instead of frv_use_struct_convention.
4358 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4359 (h8300_gdbarch_init): Register always_use_struct_convention,
4360 instead of h8300_use_struct_convention.
e3305dd9 4361 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4362 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4363 instead of mips_o32_use_struct_convention.
4364
e14e6e9c
AC
43652003-06-12 Andrew Cagney <cagney@redhat.com>
4366
4367 * wince.c: Include "mips-tdep.h".
4368 * mips-tdep.h (mips_next_pc): Declare.
4369 * mcore-tdep.c: Make more local functions static.
4370 * Makefile.in (wince.o): Update dependencies.
4371
2335f48e
DC
43722003-06-12 David Carlton <carlton@kealia.com>
4373
4374 * symtab.c (lookup_symbol_aux_minsyms): Replace
4375 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4376 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4377 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4378 SYMBOL_NATURAL_NAME.
4379
f70a7d61
AS
43802003-06-12 Andreas Schwab <schwab@suse.de>
4381
4382 * Makefile.in (tuiDisassem.o): Update dependencies.
4383
b6429628
DC
43842003-06-12 David Carlton <carlton@bactrian.org>
4385
4386 * symtab.h: Delete declaration of make_symbol_overload_list.
4387 Add declaration of lookup_partial_symbol.
4388 * symtab.c (remove_params): Move to cp-support.c.
4389 (overload_list_add_symbol, make_symbol_overload_list)
4390 (sym_return_val_size, sym_return_val_index): Ditto.
4391 (lookup_partial_symbol): Make extern.
4392 * cp-support.h: Add declaration of make_symbol_overload_list.
4393 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4394 symtab.h, and block.h.
4395 (remove_params): Move here from symtab.c.
4396 (overload_list_add_symbol, make_symbol_overload_list)
4397 (sym_return_val_size, sym_return_val_index): Ditto.
4398 * valops.c: Include cp-support.h.
4399 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4400 frame_h, and block_h.
4401 (valops.o): Depend on cp_support_h.
4402
084edea5
CV
44032003-06-12 Corinna Vinschen <vinschen@redhat.com>
4404
4405 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4406 substitute by NUM_REGS throughout.
4407 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4408 (h8300s_register_name): New function for H8S registers.
4409 (h8300sx_register_name): Ditto for H8SX registers.
4410 (h8300_print_register): Revise register printing, avoid depending
4411 on 32 bit long.
0261a0d0 4412 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4413 (h8300h_register_byte): New function for any other architecture.
4414 (h8300_register_raw_size): Remove.
4415 (h8300_register_virtual_type): Revise to return actually useful
4416 type.
4417 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4418 (h8300h_extract_struct_value_address): New function for any other
4419 architecture.
4420 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4421 set_gdbarch_register_name, set_gdbarch_register_byte,
4422 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4423 Remove calls to set_gdbarch_deprecated_register_size,
4424 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4425 set_gdbarch_deprecated_max_register_raw_size,
4426 set_gdbarch_register_virtual_size and
4427 set_gdbarch_deprecated_max_register_virtual_size entirely.
4428 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4429 set_gdbarch_long_double_bit.
4430
06194148
JJ
44312003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4432
8ffd9b1b
AJ
4433 * doublest.c (convert_doublest_to_floatformat): When dealing
4434 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4435 processing a full 32 bits of mantissa.
4436
de4f826b
DC
44372003-06-11 David Carlton <carlton@bactrian.org>
4438
4439 * dictionary.h: New.
4440 * dictionary.c: New.
4441 * block.h: Add opaque declaration for struct dictionary.
4442 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4443 'sym' members.
4444 (BLOCK_DICT): New macro.
4445 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4446 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4447 BLOCK_SHOULD_SORT.
4448 (ALL_BLOCK_SYMBOLS): Update definition.
4449 * Makefile.in (SFILES): Add dictionary.c.
4450 (dictionary_h): New.
4451 (COMMON_OBS): Add dictionary.o.
4452 (dictionary.o): New.
4453 (ada-lang.o): Depend on dictionary_h.
4454 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4455 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4456 (mi-cmd-stack.o): Ditto.
4457 (gdbtk-cmds.o): Update dependencies.
4458 (gdbtk-stack.o): Ditto.
4459 * ada-lang.c: Include dictionary.h.
4460 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4461 (fill_in_ada_prototype, debug_print_block): Ditto.
4462 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4463 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4464 'is_sorted'.
4465 * mdebugread.c: Include dictionary.h.
4466 (struct parse_stack): Delete 'maxsyms' member.
4467 (parse_symbol): Update calls to new_block. Delete calls to
4468 shrink_block. Use dictionary methods.
4469 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4470 Update calls to new_symtab. Don't maintain maxsyms data.
4471 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4472 (add_symbol): Just call dict_add_symbol.
4473 (new_symtab): Delete 'maxsyms' argument.
4474 (new_symtab): Update calls to new_block.
4475 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4476 (shrink_block): Delete function.
4477 (fixup_sigtramp): Update call to new_block. Add symbol via
4478 dict_add_symbol.
4479 * jv-lang.c: Include dictionary.h.
4480 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4481 appropriately. Set class_symtab->free_func. Make sure the
4482 blockvector is big enough to hold two blocks.
4483 (add_class_symtab_symbol): Use dictionary methods.
4484 (free_class_block): New function.
4485 (type_from_class): Replace explicit iteration by
4486 ALL_BLOCK_SYMBOLS.
4487 * symtab.h (struct symtab): Replace 'free_ptr' method by
4488 'free_func'.
4489 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4490 sort_symtab_syms.
4491 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4492 sort_symtab_syms.
4493 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4494 Include dictionary.h.
4495 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4496 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4497 sort_symtab_syms.
4498 * objfiles.c: Include dictionary.h.
4499 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4500 * buildsym.c: Include dictionary.h.
4501 (finish_block): Use dictionary methods.
4502 (end_symtab): Set free_func to NULL, not free_ptr.
4503 * tracepoint.c: Include dictionary.h.
4504 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4505 (scope_info): Ditto.
4506 * stack.c: Include dictionary.h.
4507 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4508 (print_block_frame_labels, print_frame_arg_vars)
4509 (print_frame_args): Ditto.
4510 * symmisc.c (free_symtab_block): Use dictionary methods.
4511 (dump_symtab): Ditto.
4512 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4513 Include dictionary.h.
4514 * symfile.h: Delete declarations of sort_block_syms,
4515 sort_symtab_syms.
4516 * symfile.c (sort_block_syms): Delete.
4517 (sort_symtab_syms): Delete.
4518 * symtab.c: Include dictionary.h.
4519 (lookup_block_symbol): Use dictionary iterators.
4520 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4521 (search_symbols, make_symbol_completion_list): Ditto.
4522 (make_symbol_overload_list): Ditto.
4523 * valops.c (value_of_local): Use dict_empty.
4524 Include dictionary.h.
4525
a31f978c
JB
45262003-06-11 J. Brobecker <brobecker@gnat.com>
4527
4528 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4529
526e70c0
DC
45302003-06-11 David Carlton <carlton@bactrian.org>
4531
4532 * block.h (BLOCK_SHOULD_SORT): Delete.
4533 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4534 blocks.
4535 * ada-lang.c (ada_add_block_symbols): Ditto.
4536 * symfile.c (sort_block_syms): Delete.
4537 (sort_symtab_syms): Ditto.
4538 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4539 declarations.
4540 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4541 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4542 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4543 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4544 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4545 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4546 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4547
33c08150
JJ
45482003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4549
8ffd9b1b 4550 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4551 bits to 128.
4552
781a750d
AC
45532003-06-11 Andrew Cagney <cagney@redhat.com>
4554
4555 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4556 REGISTER_CONVERTIBLE.
4557 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4558 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4559 * gdbarch.h, gdbarch.c: Re-generate.
4560 * arch-utils.h (deprecated_register_convertible_not): Rename
4561 generic_register_convertible_not.
4562 * arch-utils.c (deprecated_register_convertible_not): Rename
4563 generic_register_convertible.
4564 (legacy_convert_register_p, legacy_register_to_value): Update.
4565 * sh-tdep.c (sh64_push_arguments): Update.
4566 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4567 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4568 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4569 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4570 * arch-utils.c (legacy_value_to_register): Update.
4571 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4572 (rs6000_register_convert_to_raw): Make parameter "from" const.
4573 * mips-tdep.c (mips_gdbarch_init): Update.
4574 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4575 * infcmd.c (default_print_registers_info): Update.
4576 * ia64-tdep.c (ia64_gdbarch_init): Update.
4577 (ia64_register_convert_to_raw): Make parameter "from" const.
4578 * i386-tdep.c (i386_gdbarch_init): Update.
4579 (i386_register_convert_to_raw): Update.
4580
cd90e54f
AC
45812003-06-11 Andrew Cagney <cagney@redhat.com>
4582
4583 * remote-fileio.c: Include "remote-fileio.h".
4584 * Makefile.in (remote-fileio.o): Update dependencies.
4585 (remote_fileio_h): Fix typo.
4586
a78f21af
AC
45872003-06-11 Andrew Cagney <cagney@redhat.com>
4588
4589 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4590 (xstormy16_save_dummy_frame_tos): Make static.
4591 (_initialize_xstormy16_tdep): Add declaration.
4592 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4593 * v850-tdep.c: Make local functions static.
4594 (_initialize_v850_tdep): Add declaration.
4595 * sparc-tdep.c: Make local functions static.
4596 (_initialize_sparc_tdep): Add declaration.
4597 * sh-tdep.c: Make local functions static.
4598 (_initialize_sh_tdep): Add declaration.
4599 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4600 * s390-tdep.c: Make local functions static.
4601 (_initialize_s390_tdep): Add declaration.
4602 * dbxread.c (find_stab_function_addr): Make static.
4603 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4604 * ocd.c (_initialize_remote_ocd): Add declaration.
4605 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4606 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4607 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4608 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4609 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4610 * remote-array.c (_initialize_array): Add declaration.
4611 (_initialize_remote_monitors): Add declaration.
4612 * remote-mips.c: Make local functions static.
4613 (_initialize_remote_mips): Add declaration.
4614 * mcore-tdep.c: Make all local functions static.
4615 (_initialize_mcore_tdep): Add declaration.
4616 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4617 * abug-rom.c (_initialize_abug_rom): Add declaration.
4618 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4619 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4620 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4621 * remote-est.c (_initialize_est): Add declaration.
4622 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4623 (m68hc11_call_dummy_address): Make static.
4624 * ia64-tdep.c: Make local functions static.
4625 (_initialize_ia64_tdep): Add declaration.
4626 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4627 * monitor.c (monitor_wait_filter): Make static.
4628 (_initialize_remote_monitors): Add declaration.
4629 * remote-hms.c (_initialize_remote_hms): Add declaration.
4630 * remote-e7000.c (fetch_regs_from_dump): Make static.
4631 (expect_n): Make static.
4632 (_initialize_remote_e7000): Add declaration.
4633 * ser-e7kpc.c: Always include "defs.h".
4634 (_initialize_ser_e7000pc): Add declaration.
4635 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4636 * cris-tdep.c: Make all but one function static.
4637 (_initialize_cris_tdep): Add declaration.
4638 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4639 * solib.c (update_solib_list): Make static.
4640 (_initialize_solib): Add declaration.
4641 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4642 (_initialize_avr_tdep): Add declaration.
4643 * remote-rdi.c (voiddummy): Make static.
4644 (_initialize_remote_rdi): Add declaration.
4645 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4646 * remote-rdp.c (send_rdp): Make static.
4647 (_initialize_remote_rdp): Add declaration.
4648 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4649
cbcdb1f5
CV
46502003-06-11 Corinna Vinschen <vinschen@redhat.com>
4651
4652 * remote-fileio.c: Make ari happy.
4653
a191ea8d
JB
46542003-06-10 J. Brobecker <brobecker@gnat.com>
4655
4656 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4657 fetching the trailing bytes of the buffer we are about to write.
4658
0ef75e11
AC
46592003-06-10 Andrew Cagney <cagney@redhat.com>
4660
4661 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4662 * Makefile.in (remote-fileio.o): Update dependencies.
4663 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4664 include <setjmp.h>, or <sys/types.h> conditional on USG.
4665 (remote_fio_jmp_buf): Delete global variable.
4666
449092f6 46672003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 4668 Martin M. Hunt <hunt@redhat.com>
449092f6 4669
559fa028
AC
4670 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4671 (SFILES): Add remote-fileio.c.
4672 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4673 dependencies for building remote.o.
449092f6
CV
4674 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4675 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 4676 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
4677 static storage class.
4678 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4679 'F' packet.
4680 (_initialize_remote): Call initialize_remote_fileio().
4681 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
4682 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4683 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4684 (captured_main): Initialize new ui_files.
4685 * ui-file.c: Add read and fgets input functions.
4686 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4687 (null_file_read): New function.
4688 (ui_file_read): New function.
4689 (set_ui_file_read): New function.
4690 (stdio_file_read): New function.
4691 * ui-file.h: New type ui_file_read_ftype.
4692 (set_ui_file_read): Declare.
4693 (ui_file_read): Declare.
4694
248de703
AC
46952003-06-09 Andrew Cagney <cagney@redhat.com>
4696
4697 * frame.h (deprecated_unwind_get_saved_register): Rename
4698 generic_unwind_get_saved_register, update comments.
4699 * mips-tdep.c (mips_get_saved_register): Update.
4700 * frame.c (deprecated_unwind_get_saved_register): Update.
4701
0ed8aa57
AC
47022003-06-09 Andrew Cagney <cagney@redhat.com>
4703
4704 * vax-tdep.c (vax_frame_locals_address): Delete function.
4705 (vax_gdbarch_init): Do not set frame_locals_address.
4706 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4707 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4708 * s390-tdep.c (s390_frame_args_address): Delete function.
4709 (s390_gdbarch_init): Do not set frame_args_address or
4710 frame_locals_address.
4711 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4712 (ns32k_gdbarch_init): Do not set frame_locals_address.
4713 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4714 (hppa_frame_locals_address): Delete function.
4715 (hppa_gdbarch_init): Do not set frame_args_address, or
4716 frame_locals_address.
4717 * arm-tdep.c (arm_frame_args_address): Delete.
4718 (arm_frame_locals_address): Delete.
4719 (arm_gdbarch_init): Do not set frame_args_address, or
4720 frame_locals_address.
4721
983a287a
AC
47222003-06-09 Andrew Cagney <cagney@redhat.com>
4723
4724 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4725 * gdbarch.h, gdbarch.c: Re-generate.
4726 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4727 * arch-utils.c (frame_num_args_unknown): Delete function.
4728 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4729 (frame_info): Use FRAME_NUM_ARGS_P.
4730 * arm-tdep.c (arm_frame_num_args): Delete function.
4731 (arm_gdbarch_init): Do not set frame_num_args.
4732 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4733 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4734 (hppa_gdbarch_init): Do not set frame_num_args.
4735 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4736 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4737 frame_num_args to default frame_num_args_unknown.
4738 * v850-tdep.c (v850_gdbarch_init): Ditto.
4739 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4740 * sh-tdep.c (sh_gdbarch_init): Ditto.
4741 * s390-tdep.c (s390_gdbarch_init): Ditto.
4742 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4743 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4744 * mips-tdep.c (mips_gdbarch_init): Ditto.
4745 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4746 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4747 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4748 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4749 * i386-tdep.c (i386_gdbarch_init): Ditto.
4750 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4751 * frv-tdep.c (frv_gdbarch_init): Ditto.
4752 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4753 * cris-tdep.c (cris_gdbarch_init): Ditto.
4754 * avr-tdep.c (avr_gdbarch_init): Ditto.
4755 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4756
8d3b0994
AC
47572003-06-09 Andrew Cagney <cagney@redhat.com>
4758
4759 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4760 (print_frame_args): Moved to "stack.c".
4761 * stack.c: Include "gdb_assert.h".
4762 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4763 (print_frame_args): Moved from "printcmd.c".
4764 * frame.h (print_frame_args): Delete declaration.
4765 * Makefile.in (stack.o): Update dependencies.
4766
25e3a86b
AC
47672003-06-08 Andrew Cagney <cagney@redhat.com>
4768
4769 * frame.c (get_prev_frame): Remove reference to
4770 frame_args_address_correct in comments.
4771 * frame-base.c (default_frame_args_address): Delete code
4772 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4773 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4774 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4775 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4776 (vax_frame_args_address_correct): Delete declaration.
4777
a9e5fdc2
AC
47782003-06-08 Andrew Cagney <cagney@redhat.com>
4779
4780 * gdbarch.sh (UNWIND_SP): Add.
4781 * gdbarch.h, gdbarch.c: Re-generate.
4782 * frame.c (frame_sp_unwind): New function.
4783 (get_frame_sp): New function.
4784 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4785 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4786 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4787 value.
4788 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4789 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4790
8983bd83
AC
47912003-06-08 Andrew Cagney <cagney@redhat.com>
4792
7fec2c59
AC
4793 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4794 REMOTE_BREAKPOINT.
4795 * remote.c: Update.
4796 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4797 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4798 * config/m68k/tm-sun3.h: Update.
4799 * config/m68k/tm-m68klynx.h: Update.
4800 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4801
8983bd83
AC
4802 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4803 trad_frame". Update comments.
4804 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4805 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4806 (trad_frame_register_value, trad_frame_prev_register): Update.
4807
b9362cc7
AC
48082003-06-08 Andrew Cagney <cagney@redhat.com>
4809
4810 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4811 from GCC's acinclude.m4.
4812 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4813 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4814 * main.c (error_init): Delete declaration.
4815 * defs.h (error_init): Declare.
4816 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4817 (rs6000_convert_from_func_ptr_addr): Make static.
4818 (_initialize_rs6000_tdep): Add declaration.
4819 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4820 (show_commands, set_verbose, show_history): Delete declaration.
4821 * top.h (set_verbose): Add declaration.
4822 (show_history, set_history, show_commands): Add declaration.
4823 (do_restore_instream_cleanup): Add declaration.
4824 * objc-lang.c (specialcmp): Make static.
4825 (print_object_command): Make static.
4826 (find_objc_msgsend): Make static.
4827 (find_objc_msgcall_submethod_helper): Make static.
4828 (find_objc_msgcall_submethod): Make static.
4829 (_initialize_objc_language): Add declaration.
4830 (find_implementation_from_class): Make static.
4831 (find_implementation): Make static.
4832 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4833 * objc-lang.h (lookup_struct_typedef): Add declaration.
4834 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4835 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4836 (do_restore_user_call_depth): Make static.
4837 (do_restore_instream_cleanup): Delete declaration.
4838 (dont_repeat): Delete declaration.
4839 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4840 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4841 * reggroups.c (_initialize_reggroup): Add declaration.
4842 * cp-support.c (_initialize_cp_support): Add declaration.
4843 * cp-abi.c (_initialize_cp_abi): Add declaration.
4844 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4845 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4846 (_initialize_gnu_v3_abi): Add declaration.
4847 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4848 (_initialize_gnu_v2_abi): Add declaration.
4849 * frame-base.c (_initialize_frame_base): Add declaration.
4850 * doublest.c (floatformat_from_length): Make static.
4851 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4852 * frame.c (create_sentinel_frame): Make static.
4853 (_initialize_frame): Add declaration.
4854 * top.c (do_catch_errors): Make static.
4855 (gdb_rl_operate_and_get_next_completion): Make static.
4856 * typeprint.c: Include "typeprint.h".
4857 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4858 (sentinel_frame_this_id): Make static.
4859 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4860 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4861 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4862 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4863 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4864 * maint.c (maintenance_print_architecture): Make static.
4865 * signals/signals.c (_initialize_signals): Add declaration.
4866 * std-regs.c (_initialize_frame_reg): Add declaration.
4867 * jv-exp.y (push_variable): ISO C definition.
4868 (push_qualified_expression_name): Ditto.
4869 * memattr.c (_initialize_mem): Add declaration.
4870 * remote.c (remote_check_watch_resources): Make static.
4871 (remote_stopped_by_watchpoint): Make static.
4872 (remote_stopped_data_address): Make static.
4873 * d10v-tdep.c (nr_dmap_regs): Make static.
4874 (a0_regnum): Make static.
4875 (d10v_frame_unwind_cache): Make static.
4876 (d10v_frame_p): Make static.
4877 * osabi.c (show_osabi): Make static.
4878 (_initialize_gdb_osabi): Add extern declaration.
4879 * gdbtypes.c (make_qualified_type): Make static.
4880 (safe_parse_type): Make static.
4881 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4882 * macrotab.c (macro_bcache_free): Make static.
4883 * interps.c (interp_set_quiet): Make static.
4884 (interpreter_exec_cmd): Make static.
4885 * stack.h (select_frame_command): New file.
4886 * stack.c: Include "stack.h".
4887 (select_frame_command_wrapper): Delete function.
4888 (select_frame_command): Make global.
4889 * infcall.c: Include "infcall.h".
4890 * linespec.c: Include "linespec.h".
4891 * symfile.c (sections_overlap): Make static.
4892 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4893 * charset.c (_initialize_charset): Add missing prototype.
4894 * regcache.c (init_legacy_regcache_descr): Make static.
4895 (do_regcache_xfree): Make static.
4896 (regcache_xfer_part): Make static.
4897 (_initialize_regcache): Add missing prototype.
4898 * breakpoint.c (parse_breakpoint_sals): Make static.
4899 (breakpoint_sals_to_pc): Make static.
4900 * interps.h (clear_interpreter_hooks): ISO C declaration.
4901 * Makefile.in (stack_h): Define.
4902 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4903 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4904
a0f267c7
AC
49052003-06-08 Andrew Cagney <cagney@redhat.com>
4906
4907 * Makefile.in (d10v-tdep.o): Update dependencies.
4908 (SFILES): Add trad-frame.c.
4909 (trad_frame_h): Define.
4910 (COMMON_OBS): Add trad-frame.o.
4911 (trad-frame.o): Specify dependencies.
4912 * d10v-tdep.c: Include "trad-frame.h".
4913 (saved_regs_unwinder): Delete function.
4914 (d10v_frame_prev_register): Use trad_frame_prev_register.
4915 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4916 trad_frame", delete "regs" and "prev_sp".
4917 (prologue_find_regs): Use trad-frame.
4918 * trad-frame.h, trad-frame.c: New files.
4919
4538b4f4
MK
49202003-06-08 Mark Kettenis <kettenis@gnu.org>
4921
4922 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4923
a0273b2f
AF
49242003-06-07 Adam Fedor <fedor@gnu.org>
4925
4926 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4927 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4928 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4929 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4930 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4931 Use it.
4932
3a6c3343
AC
49332003-06-07 Andrew Cagney <cagney@redhat.com>
4934
4935 * symfile.h: Re-indent, clean up comments.
4936
b46e02f6
AC
49372003-06-07 Andrew Cagney <cagney@redhat.com>
4938
4939 * inferior.h (deprecated_write_sp): Replace
4940 generic_target_write_sp.
4941 * regcache.c (deprecated_write_sp): Replace
4942 generic_target_write_sp.
4943 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4944 * vax-tdep.c (vax_gdbarch_init): Update.
4945 * v850-tdep.c (v850_gdbarch_init): Update.
4946 * sparc-tdep.c (sparc_gdbarch_init): Update.
4947 * sh-tdep.c (sh_gdbarch_init): Update.
4948 * s390-tdep.c (s390_gdbarch_init): Update.
4949 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4950 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4951 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4952 * mcore-tdep.c (mcore_gdbarch_init): Update.
4953 * m68k-tdep.c (m68k_gdbarch_init): Update.
4954 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4955 * ia64-tdep.c (ia64_gdbarch_init): Update.
4956 * h8300-tdep.c (h8300_gdbarch_init): Update.
4957 * frv-tdep.c (frv_gdbarch_init): Update.
4958 * cris-tdep.c (cris_gdbarch_init): Update.
4959 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4960
a42e117c
AC
49612003-06-07 Andrew Cagney <cagney@redhat.com>
4962
4963 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4964 Assert that PC_REGNUM is valid.
4965 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4966
bd1ce8ba
AC
49672003-06-07 Andrew Cagney <cagney@redhat.com>
4968
4969 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4970 * gdbarch.h, gdbarch.c: Regenerate.
4971 * mn10300-tdep.c: Include "gdb_assert.h".
4972 (mn10300_read_fp): New function.
4973 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4974 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4975 * ia64-tdep.c: Include "gdb_assert.h".
4976 (ia64_read_fp): New function.
4977 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4978 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4979 * regcache.c (generic_target_read_sp): Delete function.
4980 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4981 * inferior.h (generic_target_read_sp): Delete declaration.
4982 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4983 generic_target_read_sp.
4984 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4985 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4986 * sh-tdep.c (sh_gdbarch_init): Ditto.
4987 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4988 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4989
ec5cbaec
AC
49902003-06-07 Andrew Cagney <cagney@redhat.com>
4991
4992 * gdbarch.sh: Comment each field of startup_gdbarch.
4993 * gdbarch.h, gdbarch.c: Re-generate.
4994
cde9ea48
AC
49952003-06-07 Andrew Cagney <cagney@redhat.com>
4996
4997 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4998 * gdbarch.h, gdbarch.c: Re-generate.
4999 * regcache.c: Update comments on read_pc et.al.
5000 (generic_target_read_pc): Delete function.
5001 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5002 * inferior.h (generic_target_read_pc): Delete declaration.
5003 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5004 generic_target_read_pc.
5005 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5006 * sh-tdep.c (sh_gdbarch_init): Ditto.
5007 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5008 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5009
9a90a780
AC
50102003-06-07 Andrew Cagney <cagney@redhat.com>
5011
5012 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5013 "index" with "special_local_sect". Use strcmp instead of STREQ.
5014 Append period to coments.
5015
a39a16c4
MM
50162003-06-06 Mark Mitchell <mark@codesourcery.com>
5017
5018 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5019 (elfstab_offset_sections): Likewise.
5020 * gdb-stabs.h (stab_section_info): Likewise.
5021 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5022 * objfiles.c (objfile_relocate): Likewise.
5023 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5024 * remote.c (get_offsets): Likewise.
5025 (remote_cisco_objfile_relocate): Likewise.
5026 * somread.c (som_symfile_offsets): Likewise.
5027 * symfile.c (alloc_section_addr_info): New function.
5028 (build_section_addr_info_from_section_tab): Use it.
5029 (free_section_addr_info): Adjust.
5030 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5031 (syms_from_objfile): Allocate local_addr dynamically.
5032 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5033 dynamically.
5034 (add_symbol_file_command): Allocate sect_opts dynamically.
5035 (reread_symbols): Avoid use of SECT_OFF_MAX.
5036 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5037 (alloc_section_addr_info): Declare it.
5038 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5039 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5040 dynamically.
5041 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5042
20c6c2f8
AC
50432003-06-06 Andrew Cagney <cagney@redhat.com>
5044
5045 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5046 (d10v_frame_unwind_cache): Do not set "return_pc".
5047
884a26c8
MS
50482003-06-06 Michael Snyder <msnyder@redhat.com>
5049
5050 * h8300-tdep.c: Make tidy (long lines).
5051
088ce440
ML
50522003-06-06 Michal Ludvig <mludvig@suse.cz>
5053
8ffd9b1b 5054 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5055 to regcache_collect().
5056
7d773d96
JB
50572003-06-05 J. Brobecker <brobecker@gnat.com>
5058
5059 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5060 pc_in_sigtramp multiarch method.
5061 (hppa_hpux_som_init_abi): Use it.
5062 (hppa_hpux_elf_init_abi): Likewise.
5063 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5064 macro has been multiarched.
5065 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5066 macro here, as hppa64 isn't multiarched yet.
5067
1df6926e
AC
50682003-06-05 Andrew Cagney <cagney@redhat.com>
5069
5070 * Makefile.in (value_h): Add $(frame_h).
5071 * value.h: Include "frame.h".
5072 (struct value): Replace "frame_addr" with "frame_id".
5073 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5074 * values.c (allocate_value): Use VALUE_FRAME_ID.
5075 (value_copy): Use VALUE_FRAME_ID.
5076 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5077 * valops.c (value_assign): Update. Use frame_find_by_id.
5078
6b53acc6
ML
50792003-06-05 Michal Ludvig <mludvig@suse.cz>
5080
5081 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5082 in each pass.
5083
4d9850d3
JJ
50842003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5085
5086 * thread-db.c (check_event): For create/death event breakpoints,
5087 loop through all messages to ensure that we read the message
5088 corresponding to the breakpoint we are at.
5089
8efca6ba
MS
50902003-06-04 Michael Snyder <msnyder@redhat.com>
5091
5092 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5093
0912c7f2
MK
50942003-06-04 Mark Kettenis <kettenis@gnu.org>
5095
5096 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5097 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5098 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5099 when handling .eh_frame sections.
5100
4e370325
JB
51012003-06-04 J. Brobecker <brobecker@gnat.com>
5102
5103 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5104 prepare_to_proceed procedure instead of the hppa-specific one.
5105 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5106
b757528f 51072003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5108
b757528f
JJ
5109 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5110 * config.in: Regenerated.
5111 * configure.in: Add test for syscall function and check for
5112 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5113 * configure: Regenerated.
5114 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5115 <sys/syscall.h>.
5116 (kill_lwp): New function that uses tkill syscall or
5117 uses kill, depending on whether threading model is nptl or not.
5118 All callers of kill() changed to use kill_lwp().
5119 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5120 see if all threads have already exited in the nptl model.
5121 (stop_and_resume_callback): New callback function used by the
5122 lin_lwp_wait thread exit handling code.
5123 (stop_wait_callback): Check for threads already having exited and
5124 delete such threads fromt the lwp list when discovered.
5125 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5126
b757528f
JJ
5127 Roland McGrath <roland@redhat.com>
5128 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5129 nptl libthread_db.
5130
087779b1
RH
51312003-06-03 Richard Henderson <rth@redhat.com>
5132
b21fd293
RH
5133 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5134 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5135 (alpha_sigtramp_frame_prev_register): Likewise.
5136 (alpha_heuristic_frame_prev_register): Likewise.
5137 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5138
8ffd9b1b 5139 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5140 alpha-specific register id names.
5141 (alpha_mdebug_frame_unwind_cache): Likewise.
5142 (alpha_mdebug_frame_prev_register): Likewise.
5143
baa490c4
RH
51442003-06-03 Richard Henderson <rth@redhat.com>
5145
5146 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5147 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5148 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5149 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5150 unwind routines.
5151 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5152 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5153 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5154
5155 * alpha-linux-tdep.c: Remove unnecessary includes.
5156 * Makefile.in (alpha-linux-tdep.o): Update.
5157
51582003-06-03 Richard Henderson <rth@redhat.com>
5159
5160 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5161 (alphabsd_fill_fpreg): Likewise.
5162
f534e522
JB
51632003-06-03 J. Brobecker <brobecker@gnat.com>
5164
5165 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5166 references to struct frame_info fields by calls to the equivalent
5167 accessors. Necessary now that frame_info is opaque.
5168
4035536b
JB
51692003-06-03 J. Brobecker <brobecker@gnat.com>
5170
5171 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5172 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5173 structure, field no longer exists.
5174
0bd79c5c
JB
51752003-06-03 J. Brobecker <brobecker@gnat.com>
5176
5177 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5178 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5179
37bb6d9f
JB
51802003-06-03 J. Brobecker <brobecker@gnat.com>
5181
5182 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5183 references to struct frame_info fields by calls to the equivalent
5184 accessors. Necessary now that frame_info is opaque.
5185
852ee05c
JB
51862003-06-03 J. Brobecker <brobecker@gnat.com>
5187
5188 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5189 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5190 structure, field no longer exists.
5191
7d58c67d
TR
51922003-06-03 Theodore A. Roth <troth@openavr.org>
5193
8ffd9b1b 5194 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5195 accumulation of the size of all registers instead of blindly using
5196 DEPRECATED_REGISTER_BYTES.
5197
0a48e7e8
MS
51982003-06-03 Michael Snyder <msnyder@redhat.com>
5199
5200 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5201 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5202 for h8300sx.
5203
9798ab0d
JB
52042003-06-03 J. Brobecker <brobecker@gnat.com>
5205
5206 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5207 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5208
00b037e2
AC
52092003-06-03 Andrew Cagney <cagney@redhat.com>
5210
5211 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5212 (sparc_convert_to_raw): Delete function.
5213 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5214 register_convert_to_virtual.
5215
043b2f77
JJ
52162003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5217
5218 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5219 layer if not dealing with a statically-linked threaded program.
5220
f43caff8
KW
52212003-06-03 Kris Warkentin <kewarken@qnx.com>
5222
5223 * solib.c (solib_open): Update comment to reflect actual search order.
5224
ae1e7417
AC
52252003-06-03 Andrew Cagney <cagney@redhat.com>
5226
5227 * frame.c (get_frame_memory_signed): New function.
5228 (get_frame_memory, get_frame_memory_unsigned): New function.
5229 (get_frame_arch): New function.
5230 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5231 (get_frame_memory, get_frame_unsigned_memory): Declare.
5232 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5233 get_frame_memory_unsigned and get_frame_arch.
5234 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5235
cb123844
RG
52362003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5237
5238 * MAINTAINERS (write after approval): Add myself.
5239
1bb792e9
JB
52402003-06-03 Jim Blandy <jimb@redhat.com>
5241
5242 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5243 elements of gregset_t are 64 bits each, but access registers
5244 are still 32 bits, so they're packed two per gregset_t
5245 element. Unpack/pack them properly.
5246
aee8d8ba
DC
52472003-06-02 David Carlton <carlton@bactrian.org>
5248
5249 * linespec.c (find_methods): Break out code into
5250 add_matching_methods and add_constructors.
5251 (add_matching_methods): New.
5252 (add_constructors): Ditto.
5253
bf7488d2
AC
52542003-06-02 Andrew Cagney <cagney@redhat.com>
5255
bf7488d2
AC
5256 * sparc-tdep.c (sparc_print_registers): Delete call to
5257 REGISTER_CONVERTIBLE.
5258 (sparc_gdbarch_init): Do not set register_convertible.
5259 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5260 * frv-tdep.c (frv_gdbarch_init): Ditto.
5261 * cris-tdep.c (cris_gdbarch_init): Ditto.
5262
adedef68
EZ
52632003-06-02 Elena Zannoni <ezannoni@redhat.com>
5264
8ffd9b1b 5265 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5266 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5267 (syms_from_objfile): Ditto.
5268
650fcc91
AS
52692003-06-03 Andreas Schwab <schwab@suse.de>
5270
5271 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5272 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5273
df4a182b
RH
52742003-06-02 Richard Henderson <rth@redhat.com>
5275
5276 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5277 a member of all_reggroup.
5278
c483c494
RH
52792003-06-02 Richard Henderson <rth@redhat.com>
5280
5281 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5282 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5283 (alpha_lds, alpha_sts): New.
5284 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5285 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5286 restructure and fail for type sizes other than 4 or 8.
5287 (alpha_value_to_register): Similarly.
5288 (alpha_extract_return_value): Use alpha_sts.
5289 (alpha_store_return_value): Use alpha_lds.
5290 (alpha_gdbarch_init): Update hooks.
5291
b38b6be2
RH
52922003-06-02 Richard Henderson <rth@redhat.com>
5293
5294 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5295 regnum identifiers.
5296 (alpha_sigtramp_register_address): Likewise.
5297
98a8e1e5
RH
52982003-06-02 Richard Henderson <rth@redhat.com>
5299
5300 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5301 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5302 * alpha-tdep.h: Declare them.
5303
5304 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5305 Remove zerobuf. Don't error on UNIQUE.
5306 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5307 (ALPHA_REGSET_UNIQUE): Provide default.
5308 (supply_gregset): Use alpha_supply_int_regs.
5309 (fill_gregset): Use alpha_fill_int_regs.
5310 (supply_fpregset): Use alpha_supply_fp_regs.
5311 (fill_fpregset): Use alpha_fill_fp_regs.
5312 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5313 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5314 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5315 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5316 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5317 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5318
67dfac52
RH
53192003-06-02 Richard Henderson <rth@redhat.com>
5320
f75d70cc
RH
5321 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5322
67dfac52
RH
5323 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5324 (alpha_store_return_value): Likewise.
5325
0cf566ec
DC
53262003-06-02 David Carlton <carlton@math.stanford.edu>
5327
5328 * block.c (contained_in): Add 'const' to arguments.
5329 (block_function): Ditto.
5330 * block.h: Update declarations for block_function and
5331 contained_in.
5332
cdef89d0
DC
53332003-06-02 David Carlton <carlton@math.stanford.edu>
5334
5335 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5336 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5337 * p-valprint.c (pascal_val_print): Ditto.
5338 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5339
72667056
RH
53402003-06-02 Richard Henderson <rth@redhat.com>
5341
98a8e1e5
RH
5342 * alpha-tdep.c (alpha_push_dummy_call): Use
5343 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5344
8ffd9b1b 5345 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5346 sign-extension of 32-bit values.
5347 (alpha_store_return_value): Similarly.
0ede8eca 5348
98a8e1e5
RH
5349 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5350 (alpha_extract_return_value): Likewise.
5351 (alpha_store_return_value): Likewise.
7b5e1cb3 5352
98a8e1e5
RH
5353 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5354 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5355
98a8e1e5
RH
5356 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5357 (alpha_extract_struct_value_address): Likewise.
5358 (alpha_store_return_value): Likewise.
5359 (alpha_store_struct_return): Remove.
5360 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5361
98a8e1e5
RH
5362 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5363 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5364 macros where appropriate.
5365 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5366 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5367
98a8e1e5
RH
5368 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5369 for SP, GP; void_func_ptr for PC; non-language-specific types
5370 for all others.
5371 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5372
6dd77b81
RH
53732003-06-02 Richard Henderson <rth@redhat.com>
5374
5375 * top.h (lim_at_start): Declare.
5376 * main.c (captured_main): Set it.
5377 * top.c (lim_at_start): Define.
5378 (command_loop): Use it instead of &environ.
5379 * event-top.c (command_handler): Likewise.
5380
f4dbdb54
JT
53812003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5382
5383 * mipsnbsd-tdep.c: Update copyright years.
5384 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5385
8f285956
RH
53862003-06-01 Richard Henderson <rth@redhat.com>
5387
98a8e1e5
RH
5388 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5389 (alpha-linux-tdep.o): Update dependencies.
5390 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5391 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5392
615967cb
RH
53932003-06-01 Richard Henderson <rth@redhat.com>
5394
98a8e1e5
RH
5395 * alpha-tdep.c (alpha_register_reggroup_p): New.
5396 (alpha_gdbarch_init): Register it.
615967cb 5397
b59661bd
AC
53982003-06-02 Andrew Cagney <cagney@redhat.com>
5399
5400 * dwarfread.c: Eliminate "register"
5401 (decode_die_type): Eliminate assignment within "if".
5402 (struct_type, decode_array_element_type): Ditto.
5403 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5404 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5405 (decode_modified_type, completedieinfo): Ditto.
5406 * block.c: Eliminate "register".
5407 (blockvector_for_pc_sect): Eliminate assignment within "if".
5408 * cp-support.h (struct symbol): Opaque declaration.
5409 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5410
5ef165c2
RH
54112003-06-01 Richard Henderson <rth@redhat.com>
5412
98a8e1e5
RH
5413 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5414 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5415
143985b7
AF
54162003-06-01 Adam Fedor <fedor@gnu.org>
5417
5418 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5419 * gdbarch.[ch]: Regenerate.
5420 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5421 (hppa_gdbarch_init): Set it in the gdbarch vector.
5422 * i386-tdep.c (i386_fetch_pointer_argument): New
5423 (i386_gdbarch_init): Set it into gdbarch.
5424 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5425 (rs6000_gdbarch_init): Set it in gdbarch.
5426 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5427 (sparc_gdbarch_init): Set it in gdbarch.
5428
ae0167b9
AC
54292003-06-01 Andrew Cagney <cagney@redhat.com>
5430
7c0b4a20
AC
5431 * defs.h (extract_address): Delete declaration.
5432 * findvar.c (extract_address): Delete function.
5433 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5434 extract_address with the inline equivalent,
5435 extract_unsigned_integer.
5436 (xstormy16_extract_struct_value_address): Ditto.
5437 (xstormy16_pointer_to_address): Ditto.
5438 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5439 * v850-tdep.c (v850_push_arguments): Ditto.
5440 (v850_extract_return_value): Ditto.
5441 (v850_extract_struct_value_address): Ditto.
5442 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5443 (sparcnbsd_get_longjmp_target_64): Ditto.
5444 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5445 (get_longjmp_target): Ditto.
5446 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5447 (sh64_extract_struct_value_address): Ditto.
5448 (sh_push_arguments): Ditto.
5449 (sh64_push_arguments): Ditto.
5450 * remote-vxsparc.c (vx_read_register): Ditto.
5451 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5452 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5453 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5454 * mipsv4-nat.c (get_longjmp_target): Ditto.
5455 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5456 * mips-nat.c (get_longjmp_target): Ditto.
5457 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5458 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5459 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5460 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5461 * irix5-nat.c (get_longjmp_target): Ditto.
5462 * irix4-nat.c (get_longjmp_target): Ditto.
5463 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5464 (ia64_push_arguments): Ditto.
5465 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5466 * h8300-tdep.c (h8300_push_arguments): Ditto.
5467 (h8300_store_return_value): Ditto.
5468 (h8300_extract_struct_value_address): Ditto.
5469 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5470 (frv_push_arguments): Ditto.
5471 * avr-tdep.c (avr_pointer_to_address): Ditto.
5472 (avr_push_arguments): Ditto.
5473 * arm-tdep.c (arm_push_dummy_call): Ditto.
5474 (arm_get_longjmp_target): Ditto.
5475 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5476 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5477 (alpha_get_longjmp_target): Ditto.
5478
ae0167b9
AC
5479 * solib-irix.c (extract_mips_address): Inline extract_address,
5480 replacing it with extract_signed_integer.
5481 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5482 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5483 (first_link_map_member, open_symbol_file_object): Ditto.
5484 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5485 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5486 (LM_NEXT, LM_NAME): Ditto.
5487
44d88583
RH
54882003-06-01 Richard Henderson <rth@redhat.com>
5489
98a8e1e5
RH
5490 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5491 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5492 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5493 (alpha_cannot_store_register): Likewise.
5494 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5495 * alpha-nat.c (supply_gregset): Likewise.
5496 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5497
310e9b6a
AC
54982003-06-01 Andrew Cagney <cagney@redhat.com>
5499
5500 * infcall.c (call_function_by_hand): Update comment on
5501 DEPRECATED_DUMMY_WRITE_SP.
5502
5503 * mips-tdep.c (mips_gdbarch_init): Do not set
5504 deprecated_dummy_write_sp.
5505 (mips_eabi_push_dummy_call): Set the SP register.
5506 (mips_o64_push_dummy_call): Set the SP register.
5507 (mips_o32_push_dummy_call): Set the SP register.
5508 (mips_n32n64_push_dummy_call): Set the SP register.
5509
5ab84872
RH
55102003-06-01 Richard Henderson <rth@redhat.com>
5511
98a8e1e5
RH
5512 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5513 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5514 (supply_gregset): Likewise.
5515 * alpha-tdep.c (alpha_store_return_value): Likewise.
5516 (alpha_get_longjmp_target): Likewise.
5517 (alpha_register_name): Constify array.
5518 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5519 deprecated_register_size, deprecated_register_bytes,
5520 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5521 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5522 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5523
09cc52fd
RH
55242003-06-01 Richard Henderson <rth@redhat.com>
5525
5526 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5527 from arg_reg_buffer to regcache to avoid double conversion.
5528
c7f16359
MK
55292003-06-01 Mark Kettenis <kettenis@gnu.org>
5530
5531 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5532 SP_REGNUM.
5533 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5534 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5535
7131cb6e
RH
55362003-06-01 Richard Henderson <rth@redhat.com>
5537
98a8e1e5
RH
5538 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5539 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5540
f3e0f90b
RH
55412003-06-01 Richard Henderson <rth@redhat.com>
5542
98a8e1e5
RH
5543 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5544 not overlapping PC_REGNUM.
f3e0f90b 5545
c88e30c0
RH
55462003-06-01 Richard Henderson <rth@redhat.com>
5547
98a8e1e5
RH
5548 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5549 alpha_push_arguments. Don't dump argument register data to
5550 the target stack. Fix float and 128-bit long double semantics.
5551 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5552 (alpha_fix_call_dummy): Remove.
5553 (alpha_call_dummy_words): Remove.
5554 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5555
f1a559ae
RH
55562003-06-01 Richard Henderson <rth@redhat.com>
5557
5558 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5559
5e045346
AC
55602003-06-01 Andrew Cagney <cagney@redhat.com>
5561
95404a3e
AC
5562 * mips-tdep.c (is_mips16_addr): New function.
5563 (make_mips16_addr, unmake_mips16_addr): New functions.
5564 (pc_is_mips16, mips_fetch_instruction): Use.
5565 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5566 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5567 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5568 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5569 TARGET_MIPS.
5570 * config/mips/tm-mips.h: Update copyright.
5571 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5572 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5573 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5574 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5575 (TM_PRINT_INSN_MACH): Delete.
5576 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5577
5e045346
AC
5578 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5579 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5580 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5581 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5582 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5583 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5584 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5585 mips*-*-riscos* and mips*-*-sysv* onto mips.
5586 * config/mips/mips64.mt: New file.
5587 * config/mips/mips.mt: New file.
5588 * config/mips/littlemips.mt: Delete file.
5589 * config/mips/decstation.mt: Delete file.
5590 * config/mips/vr4300el.mt: Delete file.
5591 * config/mips/vr5000el.mt: Delete file.
5592 * config/mips/vr5000.mt: Delete file.
5593 * config/mips/vr4100.mt: Delete file.
5594 * config/mips/vr4xxxel.mt: Delete file.
5595 * config/mips/vr4300.mt: Delete file.
5596 * config/mips/vr4xxx.mt: Delete file.
5597 * config/mips/bigmips.mt: Delete file.
5598 * config/mips/bigmips64.mt: Delete file.
5599 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5600 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5601 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5602 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5603 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5604 "tm-bigmips.h".
5605 * config/mips/tm-irix3.h: Ditto.
5606 * config/mips/tm-mipsv4.h: Ditto.
5607 * config/mips/tm-embed.h: Ditto.
5608 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5609 "tm-bigmips64.h".
5610 * config/mips/tm-vr5000el.h: Delete file.
5611 * config/mips/tm-tx39l.h: Delete file.
5612 * config/mips/tm-vr4300el.h: Delete file.
5613 * config/mips/tm-vr4xxxel.h: Delete file.
5614 * config/mips/tm-vr4300.h: Delete file.
5615 * config/mips/tm-vr4100.h: Delete file.
5616 * config/mips/tm-vr4xxx.h: Delete file.
5617 * config/mips/tm-vr5000.h: Delete file.
5618 * config/mips/tm-embedl64.h: Delete file.
5619 * config/mips/tm-embedl.h: Delete file.
5620 * config/mips/tm-embed64.h: Delete file.
5621 * config/mips/tm-bigmips64.h: Delete file.
5622 * config/mips/tm-bigmips.h: Delete file.
5623
2473a4a9
MK
56242003-06-01 Mark Kettenis <kettenis@gnu.org>
5625
97a5b208
MK
5626 Fix gdb/1216.
5627 * shnbsd-nat.c: Include "sh-tdep.h".
5628
2473a4a9
MK
5629 From Richard Henderson <rth@redhat.com>:
5630 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5631
e0f7ec59
AC
56322003-05-31 Andrew Cagney <cagney@redhat.com>
5633
5634 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5635 forward declaration.
5636 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5637 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5638 (mips_find_saved_regs): Use set_reg_offset.
5639 (mips_frame_init_saved_regs): Delete function.
5640 (mips_pop_frame): Call mips_find_saved_regs instead of
5641 DEPRECATED_FRAME_INIT_SAVED_REGS.
5642
68dcc709
AC
56432003-05-31 Andrew Cagney <cagney@redhat.com>
5644
5645 * mips-tdep.c (mips_gdbarch_init): Do not set
5646 deprecated_max_register_raw_size, register_virtual_size, and
5647 deprecated_max_register_virtual_size.
5648
cfc14b3a
MK
56492003-05-31 Mark Kettenis <kettenis@gnu.org>
5650
6405b0a6
MK
5651 * i386-tdep.c: Include "dwarf2-frame.h".
5652 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5653 * Makefile.in (i386-tdep.o): Update dependencies.
5654
cfc14b3a
MK
5655 * dwarf2-frame.c, dwarf2-frame.h: New files.
5656 * Makefile.in (SFILES): Add dwarf2-frame.c.
5657 (dwarf2_frame_h): Define.
5658 (COMMON_OBS): Add dwarf2-frame.o.
5659 (dwarf2-frame.o): Add dependencies.
5660
6a2751d2
AJ
56612003-05-31 Andreas Jaeger <aj@suse.de>
5662
5663 * x86-64-linux-nat.c: Fix comment.
5664
1c3545ae
MK
56652003-05-31 Mark Kettenis <kettenis@gnu.org>
5666
10f93086
MK
5667 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5668 function signature.
5669
1c3545ae
MK
5670 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5671 have a sigcontext_addr handler.
5672 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5673 sigcontext_addr handler.
5674
e11c53d2
AC
56752003-05-31 Andrew Cagney <cagney@redhat.com>
5676
5677 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5678 (print_fp_register_row): Replace do_fp_register_row.
5679 (mips_print_fp_register): Add "file" and "frame" parameters.
5680 (mips_print_register): Add "file" and "frame" parameters.
5681 (mips_print_registers_info): Replace mips_do_registers_info.
5682 (mips_gdbarch_init): Set print_registers_info instead of
5683 deprecated_do_registers_info.
5684 (mips_read_fp_register_single): Add "frame" parameter.
5685 (mips_read_fp_register_double): Add "frame" parameter.
5686
a3386186
MK
56872003-05-31 Mark Kettenis <kettenis@gnu.org>
5688
70913449
MK
5689 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5690 Fixes a bug where GDB would print the wrong register names for
5691 targets without SSE.
5692
2b5e0749
MK
5693 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5694 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5695 registers.
5696
5697 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5698 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5699 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5700 TDEP->sc_sp_offset.
5701
a3386186
MK
5702 From Michal Ludvig <mludvig@suse.cz>:
5703 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5704 and `sc_num_regs'.
5705 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5706 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5707 I386_ST0_REGNUM): Move here from...
5708 * i386-tdep.c: ... here.
5709 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5710 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5711 registers if possible.
5712 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5713 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5714 Remove variables.
5715 (i386bsd_sc_reg_offset): New variable.
5716 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5717 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5718 TDEP->sc_sp_offset.
5719 (i386fbsd_sc_reg_offset): New variable.
5720 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5721 TDEP->sc_num_regs.
5722 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5723 variables.
5724 (i386fbsd4_sc_reg_offset): New variable.
5725 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5726 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5727 TDEP->sc_sp_offset.
5728 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5729 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5730 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5731 Remove variables.
5732 (i386nbsd_sc_reg_offset): New variable.
5733 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5734 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5735 TDEP->sc_sp_offset.
5736 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5737 Remove variables.
5738 (i386obsd_sc_reg_offset): New variable.
5739 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5740 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5741 TDEP->sc_sp_offset.
5742 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5743 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5744 for frame pointer offset in `struct sigcontext'.
5745
25ab4790
AC
57462003-05-31 Andrew Cagney <cagney@redhat.com>
5747
5748 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5749 architecture methods call_dummy_words, sizeof_call_dummy_words,
5750 push_return_address, store_struct_return, and fix_call_dummy. Set
5751 push_dummy_call instead of deprecated_push_arguments.
5752 (mips_store_struct_return): Delete function.
5753 (mips_fix_call_dummy): Delete function.
5754 (mips_push_return_address): Delete function.
5755 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5756 RA_REGNUM and T9_REGNUM.
5757 (mips_n32n64_push_dummy_call): Ditto for
5758 mips_n32n64_push_arguments.
5759 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5760 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5761
6a65450a
AC
57622003-05-31 Andrew Cagney <cagney@redhat.com>
5763
5764 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5765 "dummy_addr" to "bp_addr".
5766 * infcall.c (call_function_by_hand): Pass "funaddr" to
5767 gdbarch_push_dummy_call.
5768 * gdbarch.h, gdbarch.c: Re-generate.
5769 * i386-tdep.c (i386_push_dummy_call): Update.
5770 * arm-tdep.c (arm_push_dummy_call): Update.
5771 * d10v-tdep.c (d10v_push_dummy_call): Update.
5772
c4f35dd8
MK
57732003-05-31 Mark Kettenis <kettenis@gnu.org>
5774
5775 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5776 variable declarations.
5777 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5778 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5779 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5780 x86_64_init_frame_pc, x86_64_init_frame_pc,
5781 x86_64_function_has_prologue): Remove prototypes.
5782 (X86_64_NUM_GREGS): New define.
5783 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5784 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5785 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5786 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5787 XMM1_REGNUM): Remove defines.
5788 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5789 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5790 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5791 X86_64_XMM1_REGNUM): New defines.
5792 (struct x86_64_register_info): Renamed from `struct
5793 register_info'. Remove `size' member.
5794 (x86_64_register_info_table): Remove variable.
5795 (x86_64_register_info): New variable.
5796 (X86_64_NUM_REGS): New define.
5797 (X86_64_NUM_GREGS): Remove define.
5798 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5799 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5800 Remove variables.
5801 (x86_54_dwarf2_reg_to_regnum): Remove function.
5802 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5803 (x86_64_dwarf_reg_to_regnum): New function.
5804 (x86_64_register_name): Rewrite.
5805 (x86_64_register_raw_size): Remove function.
5806 (x86_64_register_byte_table): Remove variable.
5807 (x86_64_register_byte): Remove function.
5808 (x86_64_register_virtual_type): Remove function.
5809 (x86_64_register_type): New function.
5810 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5811 x86_64_register_convert_to_raw): Remove functions.
5812 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5813 (x86_64_use_struct_convention): Make static. Adjust for renamed
5814 defines.
5815 (x86_64_frame_init_saved_regs): Remove function.
5816 (x86_64_push_arguments): Make static. Change to accept a regcache
5817 as argument.
5818 (x86_64_store_return_value, x86_64_extract_return_value): Make
5819 static. Rewrite based on i386 counterparts.
5820 (x86_64_push_dummy_call): New function.
5821 (X86_64_NUM_SAVED_REGS): New define.
5822 (x86_64_register_number): Remove function.
5823 (x86_64_store_struct_return): Remove function.
5824 (x86_64_frameless_function_invocation,
5825 x86_64_function_has_prologue): Remove functions.
5826 (PROLOG_BUFSIZE): Remove define.
5827 (struct x86_64_frame_cache): New structure.
5828 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5829 x86_64_frame_cache, x86_64_frame_this_id,
5830 x86_64_frame_prev_register, x86_64_frame_p,
5831 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5832 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5833 functions.
5834 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5835 variables.
5836 (x86_64_skip_prologue): Rewrite in terms of
5837 x86_64_analyze_prologue.
5838 (x86_64_frame_base_address): New function.
5839 (x86_64_frame_base): New variable.
5840 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5841 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5842 set deprecated_fp_regnum, deprecated_register_size,
5843 deprecated_register_bytes, register_raw_size, register_byte,
5844 register_virtual_type, register_convertiable,
5845 register_convert_to_virtual, convert_to_raw,
5846 deprecated_get_saved_register, deprecated_target_read_fp,
5847 deprecated_push_arguments, deprecated_push_return_address,
5848 deprecated_pop_frame, deprecated_store_struct_return,
5849 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5850 frameless_function_invocation, deprecated_frame_saved_pc,
5851 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5852 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5853 deprecated_init_frame_pc and virtual_frame_pointer. Call
5854 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5855 and x86_64_frame_p. Call frame_base_set_default to register
5856 x86_64_frame_base.
5857 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5858 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5859 (_initialize_x86_64_tdep): Remove function.
5860 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5861 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5862 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5863 define.
5864 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5865 (x86_64_linux_sigcontext_addr): Rewrite.
5866 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5867 x86_64_linux_frame_saved_pc): Remove functions.
5868 (x86_64_linux_pc_in_sigtramp): Renamed from
5869 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5870 trampoline.
5871 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5872 Remove_functions.
5873 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5874 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5875 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5876 (x86_64_regmap): Rename to regmap.
5877 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5878 x86_64_num_gregs.
5879 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5880 x86_64_regmap.
5881 (x86_64_fxsave_offset): Remove function.
5882 (supply_fpregset): Simply call x86_64_supply_fxsave.
5883 (fill_fpregset): Simply call x86_64_fill_fxsave.
5884 (fetch_inferior_registers, store_inferior_registers): Avoid
5885 asignment in if-statement.
5886 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5887 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5888 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5889 (fetch_core_registers): Remove function.
5890 (linux_elf_core_fns): Remove.
5891 (offsetoff): Don't define.
5892 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5893 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5894 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5895 add core-regset.o.
5896 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5897 protection against multiple includes instead of NM_X86_64_h. Add
5898 various comments. Include "config/nm-linux.h". Don't include
5899 <signal.h>.
5900 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5901 GET_THREAD_SIGNALS): Remove defines.
5902 (x86_64_register_u_addr, kernel_u_size,
5903 lin_thread_get_thread_signals): Remove prototypes.
5904 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5905 [HAVE_LINK_H]: Don't include "solib.h".
5906 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5907 * config/i386/tm-x86-64linux.h: Fix comments.
5908 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5909 x86-64-tdep.o): Update dependencies.
5910
c25083af
AC
59112003-05-30 Andrew Cagney <cagney@redhat.com>
5912
c8f55a7b
AC
5913 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5914 Change parameter type to a "struct regcache *".
5915
c25083af
AC
5916 * gdbarch.sh: Regardless of the multi-arch level, always define
5917 the macro when not already defined.
5918 * gdbarch.h, gdbarch.c: Re-generate.
5919
fbe586ae
RH
59202003-05-30 Richard Henderson <rth@redhat.com>
5921
5922 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5923 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5924 (alpha_mdebug_frame_this_id): Likewise.
5925 (alpha_mdebug_frame_prev_register): Likewise.
5926 (alpha_mdebug_frame_base_address): Likewise.
5927 (alpha_mdebug_frame_locals_address): Likewise.
5928 (alpha_mdebug_frame_args_address): Likewise.
5929 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5930 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5931 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5932 loop increment.
5933 (alpha_heuristic_frame_this_id): Make static.
5934 (alpha_heuristic_frame_prev_register): Likewise.
5935 (alpha_heuristic_frame_base_address): Likewise.
5936 * alpha-tdep.h: Update.
5937
acd5c798
MK
59382003-05-30 Mark Kettenis <kettenis@gnu.org>
5939
5940 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5941 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5942 defenitions.
5943 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5944 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5945 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5946 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5947 I386_ST0_REGNUM): New defines.
5948 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5949 codestream_get): Remove define.
5950 (codestream_next_addr, condestream_addr, condestream_buf,
5951 codestream_off, codestream_cnt): Remove variables.
5952 (codestream_fill, codestream_seek, codestream_read): Remove
5953 functions.
5954 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5955 functionality.
5956 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5957 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5958 i386_frame_saved_pc, i386_saved_pc_after_call,
5959 i386_frame_num_args, i386_frame_init_saved_regs,
5960 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5961 i386_push_arguments): Remove functions.
5962 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5963 functionality. Use i386_analyze_prologue instead of
5964 i386_get_frame_setup.
5965 (I386_NUM_SAVED_REGS): New define.
5966 (struct i386_frame_cache): New structure.
5967 (i386_alloc_frame_cache, i386_analyze_struct_return,
5968 i386_skip_probe, i386_analyze_frame_setup,
5969 i386_analyze_register_saves, i386_analyze_prologue,
5970 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5971 i386_frame_prev_register, i386_sigtramp_frame_cache,
5972 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5973 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5974 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5975 New functions.
5976 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5977 New variables.
5978 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5979 I386_EAX_REGNUM and I386_EDX_REGNUM.
5980 (i386_extract_return_value, i386_store_return_value): Use
5981 I386_ST0_REGNUM where appropriate.
5982 (i386_extract_struct_value_address): Rewrite to use extract_address.
5983 (i386_svr4_pc_in_sigtramp): Add comment.
5984 (i386_svr4_sigcontext_addr): Rewrite.
5985 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5986 TDEP->sc_sp_offset.
5987 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5988 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5989 of new defines. Set push_dummy_call, don't set
5990 deprecated_push_arguments, deprecated_push_return_address,
5991 deprecated_pop_frame. Don't set parm_boundary. Don't set
5992 deprecated_frame_chain, deprecated_frame_saved_pc,
5993 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5994 save_dummy_frame_tos, unwind_pc. Call
5995 frame_unwind_append_predicate and frame_base_set_default. Don't
5996 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5997 Don't set frameless_function_invocation. Don't set
5998 deprecated_register_bytes, deprecated_register_size,
5999 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6000 * i386-linux-tdep.c: Fix formatting in some comments.
6001 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6002 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6003 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6004 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6005 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6006 redundant parentheses.
6007 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6008 (i386_linux_sigcontext_addr): Use it. Rewrite.
6009 (find_minsym_and_objfile): Change name of second argument.
6010 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6011 changed. Use frame_pc_unwind instead of
6012 DEPRECATED_SAVED_PC_AFTER_CALL.
6013 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6014 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6015 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6016 unwinder.
6017 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6018 "dummy-frame.h".
6019 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6020 (_initialize_i386_cygwin_tdep): New prototype.
6021 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6022 deprecated_frame_chain_valid.
6023 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6024 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6025 Rely on the SVR4 defaults.
6026 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6027 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6028
c89b70f1
AC
60292003-05-30 Andrew Cagney <cagney@redhat.com>
6030
6031 * infcall.c (call_function_by_hand): Always call
6032 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6033
85b32d22
RH
60342003-05-30 Richard Henderson <rth@redhat.com>
6035
c89b70f1
AC
6036 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6037 increment.
85b32d22 6038
bfe51b1e
JB
60392003-05-29 Jim Blandy <jimb@redhat.com>
6040
6041 Use gdbarch methods for solib stuff on PowerPC Linux.
6042 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6043 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6044 show through.
6045 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6046 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6047 giving the same effect as the #definitions above.
6048
1abf022c
AF
60492003-05-29 Adam Fedor <fedor@gnu.org>
6050
6051 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6052 (find_implementation_from_class): Replace it with the standard
6053 case i.e. do nothing.
6054
d2427a71
RH
60552003-05-29 Richard Henderson <rth@redhat.com>
6056
6057 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6058 (alpha_linux_sigtramp_offset): Use it. Make static.
6059 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6060 update for new frame model.
6061 * alpha-mdebug-tdep.c: New file.
6062 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6063 (alpha_osf1_init_abi): Install it.
6064 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6065 (linked_proc_desc_table): Remove.
6066 (alpha_frame_past_sigtramp_frame): Remove.
6067 (alpha_dynamic_sigtramp_offset): Remove.
6068 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6069 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6070 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6071 (push_sigtramp_desc): Remove.
6072 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6073 (alpha_cannot_store_register): Likewise.
6074 (alpha_sigcontext_addr): Remove.
6075 (alpha_find_saved_regs): Remove.
6076 (alpha_frame_init_saved_regs): Remove.
6077 (alpha_init_frame_pc_first): Remove.
6078 (read_next_frame_reg): Remove.
6079 (alpha_frame_saved_pc): Remove.
6080 (alpha_saved_pc_after_call): Remove.
6081 (temp_proc_desc, temp_saved_regs): Remove.
6082 (alpha_about_to_return): Remove.
6083 (cached_proc_desc): Remove.
6084 (alpha_frame_chain): Remove.
6085 (alpha_print_extra_frame_info): Remove.
6086 (alpha_init_extra_frame_info): Remove.
6087 (alpha_frame_locals_address): Remove.
6088 (alpha_frame_args_address): Remove.
6089 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6090 (alpha_push_dummy_frame): Remove.
6091 (alpha_pop_frame): Remove.
6092 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6093 (alpha_read_insn): New.
6094 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6095 for different insn encodings.
6096 (alpha_in_lenient_prologue): Remove.
6097 (struct alpha_sigtramp_unwind_cache): New.
6098 (alpha_sigtramp_frame_unwind_cache): New.
6099 (alpha_sigtramp_register_address): New.
6100 (alpha_sigtramp_frame_this_id): New.
6101 (alpha_sigtramp_frame_prev_register): New.
6102 (alpha_sigtramp_frame_unwind): New.
6103 (alpha_sigtramp_frame_p): New.
6104 (struct alpha_heuristic_unwind_cache): New.
6105 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6106 don't count nop insns that occur between functions.
6107 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6108 heuristic_proc_desc, but without the mdebug wrapping.
6109 (alpha_heuristic_frame_this_id): New.
6110 (alpha_heuristic_frame_prev_register): New.
6111 (alpha_heuristic_frame_unwind): New.
6112 (alpha_heuristic_frame_p): New.
6113 (alpha_heuristic_frame_base_address): New.
6114 (alpha_heuristic_frame_base): New.
6115 (alpha_unwind_dummy_id): New.
6116 (alpha_unwind_pc): New.
6117 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6118 frame related deprecated initializations; install replacements.
6119 (alpha_dump_tdep): Remove.
6120 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6121 (alpha_read_insn, alpha_after_prologue,
6122 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6123 alpha_heuristic_frame_prev_register,
6124 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6125 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6126 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6127 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6128
93ec1121
AC
61292003-05-29 Andrew Cagney <cagney@redhat.com>
6130
6131 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6132 dependant on the availability of ASSERT_FUNCTION.
6133 (ASSERT_FUNCTION): Do not define when there is no function name.
6134
98f08d3d
KB
61352003-05-29 Kevin Buettner <kevinb@redhat.com>
6136
6137 From Jimi X <jimix@watson.ibm.com>:
6138 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6139
0897f59b
JB
61402003-05-28 Jim Blandy <jimb@redhat.com>
6141
6142 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6143 argument to ptrace to int; the system headers should give it the
6144 right type, and pointers don't fit in ints on powerpc64-*-*.
6145
14898363
L
61462003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6147
6148 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6149 DW_TAG_catch_block.
6150
a7a48797
EZ
61512003-05-26 Elena Zannoni <ezannoni@redhat.com>
6152
6153 * stabsread.c (dbx_lookup_type): Make static.
6154 (read_type): Ditto.
6155 (add_undefined_type): Ditto.
6156 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6157 not export.
6158
f5479e9c
EZ
61592003-05-26 Elena Zannoni <ezannoni@redhat.com>
6160
6161 * hpread.c (hpread_has_name): Make static.
6162 (hpread_psymtab_to_symtab): Ditto.
6163 (file_exists): Ditto.
6164 (hpread_call_pxdb): Ditto.
6165 (hpread_pxdb_needed): Ditto.
6166 (hpread_quick_traverse): Ditto.
6167 (hpread_get_header): Ditto.
6168 (hpread_get_lntt): Ditto.
6169 (hpread_get_slt): Ditto.
6170 (class_of): Ditto.
6171
eb2e12d7
AS
61722003-05-25 Andreas Schwab <schwab@suse.de>
6173
78bf922a
AS
6174 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6175 stack_align and deprecated_extra_stack_alignment_needed.
6176 (m68k_stack_align): Delete.
6177
eb2e12d7
AS
6178 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6179 (m68k_register_virtual_size): Likewise.
6180 (altos_skip_prologue): Remove obsolete function.
6181 (isi_frame_num_args): Likewise.
6182 (news_frame_num_args): Likewise.
6183 (m68k_fix_call_dummy): Make static.
6184 (m68k_push_dummy_frame): Likewise.
6185 (m68k_pop_frame): Likewise.
6186 (m68k_skip_prologue): Likewise.
6187 (m68k_frame_init_saved_regs): Likewise.
6188 (m68k_saved_pc_after_call): Likewise.
6189 (m68k_get_longjmp_target): Make multi-arch.
6190 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6191 structure. Register m68k_get_longjmp_target if enabled.
6192 * m68k-tdep.h (struct gdbarch_tdep): Define.
6193 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6194
6195 * Makefile.in (config.status): Also depend on configure.tgt
6196 and configure.host.
6197 (m68klinux-tdep.o): Update dependencies.
6198 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6199 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6200 (M68K_LINUX_JB_PC): Define.
6201 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6202 and take additional parameter.
6203 (m68k_linux_sigtramp_saved_pc): Update.
6204 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6205 m68k_linux_pc_in_sigtramp, in_plt_section,
6206 find_solib_trampoline_target.
6207 * config/m68k/tm-linux.h: Don't include any tm headers.
6208 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6209 (JB_ELEMENT_SIZE): Likewise.
6210 (JB_PC): Likewise.
6211 (GET_LONGJMP_TARGET): Likewise.
6212 (IN_SIGTRAMP): Likewise.
6213 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6214
eb2c22dc
MK
62152003-05-25 Mark Kettenis <kettenis@gnu.org>
6216
6217 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6218 (sparc32_push_arguments): Re-implement by calling
6219 sparc32_do_push_arguments.
6220
44b7b84e
MK
62212003-05-25 Mark Kettenis <kettenis@gnu.org>
6222
6223 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6224 SPARC_O1_REGNUM): New defines.
6225 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6226 (sparc32_store_return_value): New function.
6227 (sparc_extract_struct_value_address): Rewrite to operate on a
6228 regcache.
6229 (sparc_gdbarch_init): Don't set
6230 deprecated_extract_struct_value_address. Set
6231 extract_struct_value_address instead. Don't set
6232 deprecated_extract_return_value and deprecated_store_return_value
6233 for 32-bit targets. Set extract_return_value and
6234 store_return_value instead.
6235 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6236 DEPRECTAED_EXTRACT_RETURN_VALUE,
6237 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6238 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6239 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6240 (sparc_store_return_value): Remove prototype.
6241 (sparc32_store_return_value): New prototype.
6242 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6243 Adjust prototypes.
6244
f6ad61e3
MK
62452003-05-24 Mark Kettenis <kettenis@gnu.org>
6246
6247 * sparcnbsd-tdep.c: Include "gdb_string.h".
6248
b276f1bb
AC
62492003-05-23 Andrew Cagney <cagney@redhat.com>
6250
6251 * p-valprint.c (pascal_val_print): Replace extract_address with
6252 the inline equivalent extract_unsigned_integer.
6253 * jv-valprint.c (java_value_print): Ditto.
6254 * ada-valprint.c (ada_val_print_1): Ditto.
6255 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6256
e76c5fcc
TR
62572003-05-23 Theodore A. Roth <troth@openavr.org>
6258
6259 * blockframe.c (frameless_look_for_prologue): Remove unused
6260 after_prologue variable.
6261
2cdd89cb
MK
62622003-05-23 Mark Kettenis <kettenis@gnu.org>
6263
6264 * blockframe.c (get_pc_function_start): Rewrite to avoid
6265 asignments in if-statements.
6266
182d43bc
EZ
62672003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6268
6269 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6270 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6271 files, don't relocate absolute symbols (and do use mst_abs).
6272
e8f3fcdd
AC
62732003-05-23 Andrew Cagney <cagney@redhat.com>
6274
6275 * objc-lang.c: Include "gdb_assert.h".
6276 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6277 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6278 (gdb_check, gdb_check_fatal): Delete functions.
6279 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6280 gdb_assert.
6281 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6282 * Makefile.in (objc-lang.o): Update dependencies.
6283
3c23e6fb
ILT
62842003-05-22 Ian Lance Taylor <ian@airs.com>
6285
6286 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6287 with fprintf_filtered, not fprintf_unfiltered.
6288
af1342ab
AC
62892003-05-22 Andrew Cagney <cagney@redhat.com>
6290
6291 * stack.c (frame_info): Inline extract_address, replacing it with
6292 extract_unsigned_integer.
6293 * findvar.c (unsigned_pointer_to_address): Ditto.
6294 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6295 * dwarf2expr.c (dwarf2_read_address): Ditto.
6296 * frame.c (frame_pc_unwind): Update comment.
6297 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6298
47e242ec
JJ
62992003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6300
6301 * infptrace.c (detach): Call print_sys_errmsg rather than
6302 perror_with_name to issue warning message when errno is non-zero
6303 after calling ptrace detach.
6304
e2ac8128
JB
63052003-05-21 J. Brobecker <brobecker@gnat.com>
6306
6307 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6308 macro definitions from here...
6309 * hppa-tdep.c: ...to there.
6310
92b3541e
KB
63112003-05-20 Kevin Buettner <kevinb@redhat.com>
6312
6313 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6314 register_ptrace_addr(). Fix all callers.
6315
55809acb
AS
63162003-05-21 Andreas Schwab <schwab@suse.de>
6317
6318 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6319 dependencies.
6320 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6321 end.
6322 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6323 (_initialize_m68k_linux_tdep): New function.
6324 (m68k_linux_frame_saved_pc): Make static.
6325 (m68k_linux_extract_return_value): Likewise.
6326 (m68k_linux_store_return_value): Likewise.
6327 (m68k_linux_extract_struct_value_address): Likewise.
6328 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6329 Remove.
6330 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6331 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6332 (DEPRECATED_FRAME_SAVED_PC): Remove.
6333
0fbc10f7
KW
63342003-05-20 Kris Warkentin <kewarken@qnx.com>
6335
6336 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6337 regset numbering rather than our own.
6338
58da2eb2
DC
63392003-05-19 David Carlton <carlton@bactrian.org>
6340
6341 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6342
1fcb5155
DC
63432003-05-19 David Carlton <carlton@bactrian.org>
6344
6345 Partial fix for PR c++/827.
6346 * cp-support.h: Include symtab.h.
6347 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6348 * cp-namespace.c: Update contributors.
6349 (cp_lookup_symbol_nonlocal): New.
6350 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6351 (lookup_symbol_file): Ditto.
6352 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6353 * block.h: Declare block_scope, block_using, block_global_block.
6354 * block.c (block_scope): New.
6355 (block_using, block_global_block): Ditto.
6356 * Makefile.in (cp_support_h): Depend on symtab_h.
6357 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6358
5f9a71c3
DC
63592003-05-19 David Carlton <carlton@bactrian.org>
6360
6361 * language.h (struct language_defn): Add 'la_value_of_this'
6362 and 'la_lookup_symbol_nonlocal' members.
6363 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6364 lookup_symbol_static, lookup_symbol_global,
6365 lookup_symbol_aux_block.
6366 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6367 if we should search fields of this and how to do static/global
6368 lookup.
6369 (lookup_symbol_aux_block): Make extern.
6370 (basic_lookup_symbol_nonlocal): New.
6371 (lookup_symbol_static, lookup_symbol_global): Ditto.
6372 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6373 'la_lookup_symbol_nonlocal' members.
6374 * c-lang.c (c_language_defn, cplus_language_defn)
6375 (asm_language_defn, minimal_language_defn): Ditto.
6376 * jv-lang.c (java_language_defn): Ditto.
6377 * language.c (unknown_language_defn, auto_language_defn)
6378 (local_language_defn): Ditto.
6379 * m2-lang.c (m2_language_defn): Ditto.
6380 * objc-lang.c (objc_language_defn): Ditto.
6381 * scm-lang.c (scm_language_defn): Ditto.
6382 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6383 * p-lang.c (pascal_language_defn): Ditto for both.
6384 * Makefile.in (f-lang.o): Depend on value_h.
6385 (p-lang.o): Ditto.
6386
89a9d1b1
DC
63872003-05-19 David Carlton <carlton@bactrian.org>
6388
6389 * block.h: Declare block_static_block.
6390 * block.c (block_static_block): New.
6391 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6392 lookup_symbol_aux_local, calling block_static_block instead.
6393 (lookup_symbol_aux_local): Delete 'static_block' argument.
6394
eed3f8ab
DC
63952003-05-19 David Carlton <carlton@bactrian.org>
6396
6397 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6398
a09d8bda
ML
63992003-05-19 Michal Ludvig <mludvig@suse.cz>
6400
6401 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6402 register numbers mapping.
6403
69636828
AF
64042003-05-18 Adam Fedor <fedor@gnu.org>
6405
6406 * symtab.c (completion_list_objc_symbol): New function.
6407 (make_symbol_completion_list): Use it to add ObjC symbols
6408 when looking though the list.
6409 (language_search_unquoted_string): New function.
6410 (make_file_symbol_completion_list): Use it.
6411
55baeb84
AS
64122003-05-18 Andreas Schwab <schwab@suse.de>
6413
d0b45d99
AS
6414 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6415 dependencies.
6416 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6417 as m68k_linux_extract_return_value.
6418 (DEPRECATED_STORE_RETURN_VALUE): Define as
6419 m68k_linux_store_return_value.
6420 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6421 m68k_linux_extract_struct_value_address.
6422 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6423 get_next_frame, get_frame_base, get_frame_pc.
6424 (m68k_linux_frame_saved_pc): Use get_frame_base.
6425 (m68k_linux_extract_return_value): New function.
6426 (m68k_linux_store_return_value): New function.
6427 (m68k_linux_extract_struct_value_address): New function.
6428 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6429
55baeb84
AS
6430 * c-exp.y (typebase): Remove duplicate occurence of
6431 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6432 of lookup_signed_typename.
55baeb84 6433
b6b08ebf
MK
64342003-05-18 Mark Kettenis <kettenis@gnu.org>
6435
6436 * dwarf2loc.c (find_location_expression): Change type of second
6437 argument to `size_t *'.
6438 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6439 for size variable.
6440
5ad1c190
DC
64412003-05-18 David Carlton <carlton@bactrian.org>
6442
6443 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6444 'linkage_name'. Add comment.
6445 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6446 'linkage_name'.
6447 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6448 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6449 (lookup_block_symbol): Ditto.
6450
b8b527c5
AC
64512003-05-16 Andrew Cagney <cagney@redhat.com>
6452
6453 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6454 * gdbarch.h, gdbarch.c: Re-generate.
6455 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6456 * TODO (REGISTER_BYTES): Delete reference.
6457 * alpha-tdep.c (alpha_gdbarch_init): Update.
6458 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6459 * x86-64-tdep.c (x86_64_init_abi): Update.
6460 * vax-tdep.c (vax_gdbarch_init): Update.
6461 * v850-tdep.c (v850_gdbarch_init): Update.
6462 * sparc-tdep.c (sparc_gdbarch_init): Update.
6463 * sh-tdep.c (sh_gdbarch_init): Update.
6464 * s390-tdep.c (s390_gdbarch_init): Update.
6465 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6466 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6467 (ns32k_gdbarch_init_32382): Update.
6468 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6469 * mcore-tdep.c (mcore_gdbarch_init): Update.
6470 * m68k-tdep.c (m68k_gdbarch_init): Update.
6471 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6472 * ia64-tdep.c (ia64_gdbarch_init): Update.
6473 * i386-tdep.c (i386_gdbarch_init): Update.
6474 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6475 * hppa-tdep.c (hppa_gdbarch_init): Update.
6476 * h8300-tdep.c (h8300_gdbarch_init): Update.
6477 * frv-tdep.c (frv_gdbarch_init): Update.
6478 * cris-tdep.c (cris_gdbarch_init): Update.
6479 * avr-tdep.c (avr_gdbarch_init): Update.
6480 * arm-tdep.c (arm_gdbarch_init): Update.
6481 * sparc-tdep.c (sparc_pop_frame): Update.
6482 * rs6000-tdep.c (rs6000_pop_frame): Update.
6483 * remote.c (init_remote_state): Update.
6484 (remote_prepare_to_store): Update.
6485 * remote-vx.c (vx_prepare_to_store): Update.
6486 * remote-sds.c (sds_fetch_registers): Update.
6487 (sds_prepare_to_store): Update.
6488 * remote-array.c: Update.
6489 * regcache.c (init_legacy_regcache_descr): Update.
6490 (init_regcache_descr): Update.
6491 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6492 (mips_o64_extract_return_value): Update.
6493 * irix5-nat.c (fetch_core_registers): Update.
6494 * irix4-nat.c (fetch_core_registers): Update.
6495 * i386-tdep.h: Update.
6496 * hppa-tdep.c (pa_do_registers_info): Update.
6497 (pa_do_strcat_registers_info): Update.
6498 * cris-tdep.c (cris_register_bytes_ok): Update.
6499 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6500 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6501 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6502 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6503 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6504 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6505 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6506 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6507 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6508 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6509 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6510 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6511 (REGISTER_BYTES_OK): Update.
6512 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6513 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6514
ee2842e2
ILT
65152003-05-16 Ian Lance Taylor <ian@airs.com>
6516
6517 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6518 (vax_print_insn, print_insn_arg): Remove static functions.
6519 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6520 print_insn_vax from opcodes library.
6521 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6522
973177d3
AC
65232003-05-15 Andrew Cagney <cagney@redhat.com>
6524
aaab4dba
AC
6525 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6526 * target.h (memory_breakpoint_from_pc): Delete declaration.
6527 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6528 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6529 * monitor.c (monitor_insert_breakpoint): Use
6530 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6531 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6532 * gdbarch.h, gdbarch.c: Re-generate.
6533 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6534 (sparc_gdbarch_init): Set breakpoint_from_pc to
6535 sparc_breakpoint_from_pc.
6536 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6537 (BREAKPOINT_FROM_PC): Define.
6538 (sparc_breakpoint_from_pc): Declare.
6539 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6540 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6541 (BREAKPOINT_FROM_PC): Define.
6542 (BREAKPOINT): Delete macro.
6543 * target.h: Update comment.
6544 * s390-tdep.c (s390_gdbarch_init): Update comments.
6545 * remote.c: Update comments.
6546 * remote-mips.c: Update comments.
6547 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6548 * mem-break.c: Update comment.
6549 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6550 (ia64_memory_insert_breakpoint): Update.
6551 * config/sparc/tm-sparc.h: Update comment.
6552 * config/pa/tm-hppa64.h: Update comment.
6553 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6554 (rs6000_breakpoint_from_pc): Update.
6555 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6556 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6557 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6558 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6559 (mips_breakpoint_from_pc): Update.
6560 (mips_dump_tdep): Update.
6561
e06963ff
AC
6562 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6563 * minsyms.c (lookup_minimal_symbol): Inline
6564 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6565
973177d3
AC
6566 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6567 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6568 * p-lang.c (pascal_printstr): Ditto.
6569 * objc-lang.c (objc_printstr): Ditto.
6570 * m2-lang.c (m2_printstr): Ditto.
6571 * jv-valprint.c (java_print_value_fields): Ditto.
6572 * f-lang.c (f_printstr): Ditto.
6573 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6574 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6575 for repeat_count_threshold.
6576 * Makefile.in (cp-valprint.o): Update dependencies.
6577
5ea2bd7f 65782003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6579
5ea2bd7f
JJ
6580 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6581 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6582 they start with mov r2,r12. Support skipping over indirect stores
6583 of the input registers. Upon hitting a non-nop branch instruction
6584 or predicated instruction, bail out by setting lim_pc to the current
6585 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6586 beyond our calculated value and we have trust_limit set,
6587 use the lim_pc value.
6588
cc8c88f3
AC
65892003-05-15 Andrew Cagney <cagney@redhat.com>
6590
6591 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6592 generic_find_dummy_frame.
6593 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6594 (deprecated_generic_find_dummy_frame): Update.
6595 (deprecated_read_register_dummy): Update.
6596 * frame.c (deprecated_generic_get_saved_register): Update.
6597
909cd28e
TR
65982003-05-15 Theodore A. Roth <troth@openavr.org>
6599
6600 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6601 (avr_gdbarch_init): Set breakpoint_from_pc method.
6602
b923b08d
AC
66032003-05-15 Andrew Cagney <cagney@redhat.com>
6604
6605 * regcache.c (build_regcache): Set deprecated_register_valid
6606 directly.
6607 (deprecated_grub_regcache_for_register_valid): Delete function.
6608 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6609 declaration.
6610
ae2f03ac 66112003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
6612
6613 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
6614 * symtab.c (lookup_symbol_aux): Delete calls to
6615 lookup_symbol_aux_minsyms.
6616 (lookup_symbol_aux_minsyms): Comment out function and
6617 prototype. Delete lookup by mangled name.
ae2f03ac 6618
18ec9831
KB
66192003-05-14 Kevin Buettner <kevinb@redhat.com>
6620
6621 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6622 correctly indicate an empty stack and ``stack_allocated'' to the
6623 indicate the number of elements initially allocated.
6624 (dwarf_expr_grow_stack): Simplify method for computing new
6625 stack size. Don't loop infinitely if ``stack_len'' is zero.
6626 (execute_stack_op): Move ``ctx->in_reg'' initialization
6627 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6628 be used in conjuction with DW_OP_piece. Revise error message
6629 accordingly.
6630
de18ac1f
TR
66312003-05-14 Theodore A. Roth <troth@openavr.org>
6632
6633 * MAINTAINERS: Update my email address.
6634 * avr-tdep.c: Ditto.
6635
176620f1
EZ
66362003-05-14 Elena Zannoni <ezannoni@redhat.com>
6637
6638 * symtab.h (enum domain_enum): Rename from namespace_enum.
6639 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6640 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6641 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6642 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6643 TYPES_NAMESPACE, METHODS_NAMESPACE.
6644 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6645 (struct symbol, struct partial_symbol): Rename field
6646 'namespace_enum namespace' to 'domain_enum domain'.
6647 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6648 Delete old define kludge for namespace.
6649
6650 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6651 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6652 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6653 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6654 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6655 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6656 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6657 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6658 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6659 occurrences of the above.
6660
b7f31508
ILT
66612003-05-14 Ian Lance Taylor <ian@airs.com>
6662
6663 * Makefile.in (install-only): Use $(SHELL) when running
6664 mkinstalldirs.
6665
2fdbdd39
ILT
66662003-05-13 Ian Lance Taylor <ian@airs.com>
6667
a208d82c
ILT
6668 * MAINTAINERS (write after approval): Add myself.
6669
2fdbdd39
ILT
6670 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6671 second and third arguments.
6672 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6673 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6674
fbd9dcd3
AC
66752003-05-13 Andrew Cagney <cagney@redhat.com>
6676
6677 * defs.h (store_address): Delete declaration.
6678 findvar.c (store_address): Delete function.
6679 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6680 store_unsigned_integer.
6681 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6682 * v850-tdep.c (v850_push_arguments): Ditto.
6683 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6684 * sh-tdep.c (sh64_get_saved_register): Ditto.
6685 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6686 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6687 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6688 (mips_get_saved_register): Ditto.
6689 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6690 (find_func_descr, ia64_push_arguments): Ditto.
6691 * i386-tdep.c (i386_push_arguments): Ditto.
6692 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6693 * frv-tdep.c (frv_push_arguments): Ditto.
6694 * frame.c (legacy_saved_regs_prev_register): Ditto.
6695 (deprecated_generic_get_saved_register): Ditto.
6696 * findvar.c (unsigned_address_to_pointer): Ditto.
6697 * dwarf2read.c (dwarf2_const_value): Ditto.
6698 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6699 * alpha-tdep.c (alpha_push_arguments): Ditto.
6700
6760f9e6
JB
67012003-05-12 J. Brobecker <brobecker@gnat.com>
6702
6703 * NEWS: Mention that the hppa-hpux port has been partially
6704 multiarched (32bit ABIT only, so far).
6705
30e221b4
AC
67062003-05-11 Andrew Cagney <cagney@redhat.com>
6707
6708 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6709 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6710 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6711 sim/testsuite/sim/arm/misaligned2.ms, and
6712 sim/testsuite/sim/arm/misaligned3.ms.
6713 * disasm.h (struct ui_file): Add opaque struct declaration.
6714 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6715 * frame.h (struct ui_file): Ditto.
6716
dea7f9ba
MK
67172003-05-11 Mark Kettenis <kettenis@gnu.org>
6718
6719 * value.h: Pretty print.
6720
01986c48
MK
67212003-05-10 Mark Kettenis <kettenis@gnu.org>
6722
6723 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6724
123a958e
AC
67252003-05-08 Andrew Cagney <cagney@redhat.com>
6726
6727 * regcache.h (max_register_size): Delete declaration.
6728 * regcache.c (max_register_size): Delete function.
6729 (struct regcache_descr): Delete field "max_register_size".
6730 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6731 registers fit in MAX_REGISTER_SIZE.
6732 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6733 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6734 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6735 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6736 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6737 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6738 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6739 * dve3900-rom.c, hppa-tdep.c: Ditto.
6740
eb294659
DC
67412003-05-08 David Carlton <carlton@math.stanford.edu>
6742
6743 * valops.c (push_word): Fix typo.
6744
d9d9c31f
AC
67452003-05-08 Andrew Cagney <cagney@redhat.com>
6746
6747 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6748 * gdbarch.h: Re-generate.
6749 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6750 (legacy_max_register_raw_size): Delete declaration.
6751 * regcache.c (legacy_max_register_raw_size): Delete function.
6752 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6753 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6754 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6755 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6756 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6757 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6758 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6759 * findvar.c, dwarf2cfi.c: Ditto.
6760
22540ece
AC
67612003-05-08 Andrew Cagney <cagney@redhat.com>
6762
6763 * mips-tdep.c (read_signed_register): New function, moved to here
6764 from "regcache.c".
6765 (read_signed_register_pid): Ditto.
6766 * regcache.c (read_signed_register_pid): Delete function, moved to
6767 "mips-tdep.c".
6768 (read_signed_register): Ditto.
6769 * regcache.h (read_signed_register): Delete declaration.
6770 (read_signed_register_pid): Delete declaration.
6771
0c92afe8
AC
67722003-05-08 Andrew Cagney <cagney@redhat.com>
6773
6774 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6775 * gdbarch.h: Re-generate.
6776 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6777 (legacy_max_register_virtual_size): Delete declaration.
6778 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6779 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6780 * tracepoint.c (memrange_sortmerge): Ditto.
6781 * sparc-tdep.c (sparc_print_registers): Ditto.
6782 * regcache.c (legacy_max_register_virtual_size): Delete function.
6783
6037b830
JB
67842002-05-08 J. Brobecker <brobecker@gnat.com>
6785
6786 * fork-child.c (escape_bang_in_quoted_argument): New function.
6787 (fork_inferior): Escape '!' characters in quoted arguments
6788 only when needed.
6789
5d62c8b1
JB
67902003-05-08 J. Brobecker <brobecker@gnat.com>
6791
6792 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6793 the language of the CU is not currently supported by GDB.
6794
20a0e81d
JB
67952003-05-08 J. Brobecker <brobecker@gnat.com>
6796
6797 * defs.h (language): Add language_minimal enum value.
6798 * c-lang.c (minimal_language_defn): New language definition.
6799 (_initialize_c_language): Add the new minimal language to the list
6800 of languages known to GDB.
6801
710ee10a
KB
68022003-05-08 Kevin Buettner <kevinb@redhat.com>
6803
6804 * frame.c (get_frame_type): Don't attempt to lazily initialize
6805 frame's unwinder for legacy frames.
6806
1750fa04
AC
68072003-05-07 Andrew Cagney <cagney@redhat.com>
6808
6809 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6810 and "regcache" parameters.
6811 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6812
ddf9f258 68132003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6814
6815 * dwarf2read.c (dwarf_decode_lines): Only use output of
6816 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6817 the current address.
6818
87767c29
AC
68192003-05-07 Andrew Cagney <cagney@redhat.com>
6820
6821 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6822 code.
6823
5e7b2f39
JB
68242003-05-07 Jim Blandy <jimb@redhat.com>
6825
6826 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6827 'maint info symtabs' and 'maint info psymtabs'.
6828 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6829 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6830 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6831 Declarations updated.
6832 * maint.c (maintenance_list_command): Delete.
6833 (_initialize_maint_cmds): Update calls to add_cmd.
6834 * gdbcmd.h (maintenancelistlist): Delete declaration.
6835 * cli/cli-cmds.c (maintenancelistlist): Delete.
6836 (init_cmd_lists): Don't initialize it.
6837 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6838
f6684c31
AC
68392003-05-07 Andrew Cagney <cagney@redhat.com>
6840
6841 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6842 "regcache".
6843 (d10v_print_registers_info): Update.
6844 (d10v_dmap_register, d10v_imap_register): Delete functions.
6845 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6846 and "imap_register".
6847 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6848 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6849 * arch-utils.c (generic_remote_translate_xfer_address): Add
6850 "regcache" and "gdbarch" parameters.
6851 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6852 parameter. Change class to multi-arch.
6853 * gdbarch.h, gdbarch.c: Re-generate.
6854 * remote.c (remote_xfer_memory): Use
6855 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6856
e4846b08
JJ
68572003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6858
6859 * infrun.c (prev_pc): Move declaration ahead of proceed().
6860 (proceed): Refresh prev_pc value before resuming.
6861 (stop_stepping): Remove code to refresh prev_pc.
6862
6b71b8ac
KW
68632003-05-06 Kris Warkentin <kewarken@qnx.com>
6864
6865 * nto-tdep.c: Removed stray comment.
6866
47979a4b
KW
68672003-05-06 Kris Warkentin <kewarken@qnx.com>
6868
6869 * i386-nto-tdep.c: Fix old K&R function definitions.
6870 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6871 Also change add_show_from_set() call to add_setshow_cmd().
6872 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6873
00905d52
AC
68742003-05-05 Andrew Cagney <cagney@redhat.com>
6875
6876 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6877 (fprint_dummy_frames): New function.
6878 (maintenance_print_dummy_frames): New function.
6879 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6880 * frame.c (fprint_frame_id): Make global.
6881 * frame.h (fprint_frame_id): Declare.
6882 * Makefile.in (dummy-frame.o): Update dependencies.
6883
b1e29e33
AC
68842003-05-05 Andrew Cagney <cagney@redhat.com>
6885
6886 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6887 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6888 SIZEOF_CALL_DUMMY_WORDS.
6889 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6890 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6891 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6892 CALL_DUMMY_BREAKPOINT_OFFSET.
6893 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6894 CALL_DUMMY_START_OFFSET.
6895 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6896 * gdbarch.h, gdbarch.c: Re-generate.
6897 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6898 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6899 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6900 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6901 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6902 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6903 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6904 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6905 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6906 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6907 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6908 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6909 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6910 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6911 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6912
69132003-05-05 Kris Warkentin <kewarken@qnx.com>
6914
6915 * configure.tgt: Add i[3456]86-*-nto*.
6916 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6917 * nto-tdep.c: New file. Neutrino target support routines.
6918 * nto-tdep.h: New file. Neutrino target header.
6919 * config/tm-qnxnto.h: New file.
6920 * config/i386/i386nto.mt: New file.
6921 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6922
0ce3d317
AC
69232003-05-04 Andrew Cagney <cagney@redhat.com>
6924
6925 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6926 (load_infrun_state): Ditto.
6927 (struct thread_info): Drop "prev_func_name" field.
6928 * thread.c (load_infrun_state): Update.
6929 (save_infrun_state): Update.
6930 * infrun.c (prev_func_name): Delete variable.
6931 (init_wait_for_inferior): Do not clear prev_func_name.
6932 (stop_stepping, keep_going, context_switch): Do not swap
6933 prev_func_name.
6934 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6935 instead of PC_IN_SIGTRAMP.
6936
46654a5b
AC
69372003-05-04 Andrew Cagney <cagney@redhat.com>
6938
6939 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6940 REGISTER_BYTE with register_offset_hack.
6941 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6942 that REGISTER_BYTE is consistent with the regcache.
6943 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6944 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6945
14b08c1b
MK
69462003-05-04 Mark Kettenis <kettenis@gnu.org>
6947
04c8243f
MK
6948 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6949 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6950
14b08c1b
MK
6951 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6952
c7a11e01
JB
69532003-05-03 J. Brobecker <brobecker@gnat.com>
6954
6955 From Thierry Schneider <tpschneider1@yahoo.com>
6956 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6957 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6958 (mi-cmd-symbol.o): Add rule.
6959
7043d8dc
AC
69602003-05-03 Andrew Cagney <cagney@redhat.com>
6961
6962 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6963 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6964 * gdbarch.h, gdbarch.c: Re-generate.
6965 * d10v-tdep.c (d10v_push_dummy_code): New function.
6966 (d10v_gdbarch_init): Set push_dummy_code.
6967 * infcall.c (legacy_push_dummy_code): New function.
6968 (generic_push_dummy_code): New function.
6969 (push_dummy_code): New function.
6970 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6971 instead of dummy_addr, to push_dummy_call. Move call to
6972 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6973 switch.
6974 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6975
92bf2b80
AC
69762003-05-03 Andrew Cagney <cagney@redhat.com>
6977
6978 * disasm.h (print_insn): Declare.
6979 * disasm.c (init_gdb_disassemble_info): New function.
6980 (gdb_disassembly): Call init_gdb_disassemble_info.
6981 (gdb_print_insn): New function.
6982 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6983 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6984 * mcore-tdep.c: Include "disasm.h"
6985 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6986 * d10v-tdep.c: Include "disasm.h".
6987 (display_trace): Call gdb_print_insn, instead of print_insn.
6988 (print_insn): Delete function.
6989 * printcmd.c: Include "disasm.h".
6990 (print_insn): Delete function.
6991 (print_formatted): Call gdb_print_insn, instead of print_insn.
6992 * Makefile.in (printcmd.o): Update dependencies.
6993 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6994
27d94c49
AC
69952003-05-02 Andrew Cagney <cagney@redhat.com>
6996
82de1e5b
AC
6997 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6998 PC_REGNUM, re-indent.
6999 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7000 PC_REGNUM isn't set.
7001
27d94c49
AC
7002 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7003 * gdbarch.h, gdbarch.c: Re-generate.
7004 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7005 register_virtual_size, pc_regnum, or register_bytes.
7006 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7007 (d10v_register_type): Use D10V_PC_REGNUM.
7008 (d10v_print_registers_info, d10v_read_pc): Ditto.
7009 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7010 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7011
a9c0dc7f
DC
70122003-05-02 David Carlton <carlton@bactrian.org>
7013
7014 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7015 the name with mstrsave.
7016
e33d66ec
EZ
70172003-05-02 Elena Zannoni <ezannoni@redhat.com>
7018
7019 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7020 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7021 (host_charset_name, target_charset_name): New vars for use by
7022 set/show commands.
7023 (host_charset_enum, target_charset_enum): New enums for set/show
7024 commands.
7025 (set_charset_sfunc, set_host_charset_sfunc,
7026 set_target_charset_sfunc): New functions.
7027 (set_host_charset, set_target_charset): Make static.
7028 (list_charsets, set_host_charset_command,
7029 set_target_charset_command): Delete functions.
7030 (show_charset_command): Rewrite as....
7031 (show_charset): Hook this up with the set/show command mechanism.
7032 (_initialize_charset): Change names of charsets to match the
7033 set/show enums. Use host_charset_name and target_charset_name.
7034 Use set/show mechanism for charset, host-charset, target-charset
7035 commands. Do not make 'show host-charset' and 'show
7036 target-charset' be aliases of 'show charset'.
7037
7038 * charset.h (set_host_charset, set_target_charset): Don't export,
7039 they are not used outside the file.
7040
2b6fd0d8
AC
70412003-05-01 Andrew Cagney <cagney@redhat.com>
7042
7043 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7044 (gdb_disassembly): Make "di" non static, always initialize and
7045 cleanup. Always use dis_asm_read_memory.
7046 (gdb_dis_asm_read_memory): Delete function.
7047
6ae2f580
AC
70482003-05-01 Andrew Cagney <cagney@redhat.com>
7049
7050 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7051 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7052
810ecf9f
AC
70532003-04-30 Andrew Cagney <cagney@redhat.com>
7054
7055 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7056 "tm_print_insn_info".
7057 (TARGET_PRINT_INSN_INFO): Delete macro.
7058 (dis_asm_read_memory): Delete function declaration.
7059 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7060 (tm_print_insn_info): Delete variable definition.
7061 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7062 * gdbarch.h, gdbarch.c: Re-generate.
7063 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7064 "deprecated_tm_print_insn_info".
7065 * mcore-tdep.c (mcore_dump_insn): Ditto.
7066 * mips-tdep.c (mips_gdbarch_init): Ditto.
7067 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7068 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7069 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7070 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7071 instead of TARGET_PRINT_INSN_INFO, add comment.
7072 * s390-tdep.c (s390_get_frame_info): Instead of
7073 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7074 (s390_check_function_end, s390_is_sigreturn): Ditto.
7075 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7076 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7077 * disasm.c: Include "gdbcore.h".
7078 (_initialize_disasm): New function, initialize
7079 "deprecated_tm_print_insn_info".
7080 (deprecated_tm_print_insn_info): New variable.
7081 (dis_asm_read_memory): Moved from "corefile.c", made static.
7082 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7083 * Makefile.in (disasm.o): Update dependencies.
7084
07020390
AC
70852003-04-30 Andrew Cagney <cagney@redhat.com>
7086
7087 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7088
a9fa03de
AF
70892003-04-29 Adam Fedor <fedor@gnu.org>
7090
7091 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7092 * infcall.c (find_function_addr): Make non-static.
7093 * infcall.h (find_function_addr): Declare.
7094 * Makefile.in (eval.o): Update dependencies.
7095
1bae87b9
AF
70962003-04-28 Adam Fedor <fedor@gnu.org>
7097
7098 * symtab.c (symbol_find_demangled_name): Check for and demangle
7099 ObjC symbols.
7100 (symbol_init_demangled_name): Init for language_objc as well.
7101
0ba6dca9
AC
71022003-04-28 Andrew Cagney <cagney@redhat.com>
7103
7104 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7105 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7106 * gdbarch.h, gdbarch.c: Re-generate.
7107 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7108 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7109 * inferior.h (deprecated_read_fp): Rename read_fp.
7110 (generic_target_read_fp): Delete declaration.
7111 * regcache.c (generic_target_read_fp): Delete function.
7112 (deprecated_read_fp): Replace read_fp, use
7113 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7114 * d10v-tdep.c (d10v_read_fp): Delete function.
7115 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7116
7117 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7118 deprecated_target_read_fp to generic_target_read_fp.
7119 * sh-tdep.c (sh_gdbarch_init): Ditto.
7120 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7121 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7122 * frv-tdep.c (frv_gdbarch_init): Ditto.
7123
7124 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7125 deprecated_fp_regnum.
7126 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7127 * vax-tdep.c (vax_gdbarch_init): Ditto.
7128 * v850-tdep.c (v850_gdbarch_init): Ditto.
7129 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7130 * sh-tdep.c (sh_gdbarch_init): Ditto.
7131 * s390-tdep.c (s390_gdbarch_init): Ditto.
7132 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7133 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7134 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7135 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7136 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7137 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7138 * i386-tdep.c (i386_gdbarch_init): Ditto.
7139 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7140 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7141 * frv-tdep.c (frv_gdbarch_init): Ditto.
7142 * cris-tdep.c (cris_gdbarch_init): Ditto.
7143 * avr-tdep.c (avr_gdbarch_init): Ditto.
7144 * arm-tdep.c (arm_gdbarch_init): Ditto.
7145 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7146
7147 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7148 * v850-tdep.c (v850_gdbarch_init): Ditto.
7149 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7150 * sh-tdep.c (sh_gdbarch_init): Ditto.
7151 * s390-tdep.c (s390_gdbarch_init): Ditto.
7152 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7153 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7154 * mips-tdep.c (mips_gdbarch_init): Ditto.
7155 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7156 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7157 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7158 * frv-tdep.c (frv_gdbarch_init): Ditto.
7159 * avr-tdep.c (avr_gdbarch_init): Ditto.
7160 * arm-tdep.c (arm_gdbarch_init): Ditto.
7161
7162 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7163 DEPRECATED_FP_REGNUM.
7164 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7165 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7166 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7167 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7168 (sparc32_register_virtual_type): Ditto.
7169 * sh-tdep.c (sh64_frame_chain): Ditto.
7170 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7171 (sh_nofp_frame_init_saved_regs): Ditto.
7172 (sh64_nofp_frame_init_saved_regs): Ditto.
7173 (sh_fp_frame_init_saved_regs): Ditto.
7174 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7175 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7176 * procfs.c (procfs_fetch_registers): Ditto.
7177 (procfs_store_registers): Ditto.
7178 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7179 (store_inferior_registers, fetch_core_registers): Ditto.
7180 (fetch_kcore_registers, clear_regs): Ditto.
7181 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7182 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7183 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7184 * nlm/i386.c (do_status): Ditto.
7185 * mipsv4-nat.c (supply_gregset): Ditto.
7186 * mips-tdep.c: Ditto for comments.
7187 * mips-nat.c (fetch_inferior_registers): Ditto.
7188 (store_inferior_registers, fetch_core_registers): Ditto.
7189 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7190 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7191 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7192 (i386_do_pop_frame, i386_register_type): Ditto.
7193 * hppa-tdep.c (hppa_frame_chain): Ditto.
7194 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7195 (hppa_pop_frame, hppa_read_fp): Ditto.
7196 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7197 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7198 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7199 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7200 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7201 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7202 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7203 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7204 * blockframe.c: Ditto for comments.
7205 * arch-utils.h: Ditto for comments.
7206 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7207 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7208 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7209 * alpha-tdep.h: Ditto for comments.
7210 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7211 (alpha_cannot_store_register): Ditto.
7212 (alpha_push_dummy_frame): Ditto.
7213 * alpha-nat.c (supply_gregset): Ditto.
7214
7215 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7216 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7217 * config/sparc/tm-sparc.h: Update comment.
7218
7219 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7220 deprecated_read_fp instead of TARGET_READ_FP.
7221 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7222 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7223 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7224 deprecated_read_fp instead of read_fp.
7225 * s390-tdep.c (s390_push_arguments): Ditto.
7226 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7227 * frame.h: Ditto in comments.
7228 * frame.c (legacy_get_prev_frame): Ditto.
7229 * dummy-frame.c (dummy_frame_this_id): Ditto.
7230 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7231
d7a27068
AC
72322003-04-28 Andrew Cagney <cagney@redhat.com>
7233
7234 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7235 * gdbarch.h, gdbarch.c: Re-generate.
7236 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7237 * vax-tdep.c (_initialize_vax_tdep): Update.
7238 * v850-tdep.c (_initialize_v850_tdep): Update.
7239 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7240 * s390-tdep.c (_initialize_s390_tdep): Update.
7241 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7242 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7243 * mips-tdep.c (_initialize_mips_tdep): Update.
7244 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7245 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7246 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7247 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7248 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7249 * frv-tdep.c (_initialize_frv_tdep): Update.
7250 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7251 (_initialize_cris_tdep): Update.
7252 * arch-utils.c (legacy_print_insn): Update.
7253 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7254
d2630e69
AF
72552003-04-26 Adam Fedor <fedor@gnu.org>
7256
7257 * linespec.c (decode_objc): New function to decode ObjC calls
7258 (decode_line_1): Check for ObjC calls (using decode_objc)
7259 * Makefile (linespec.o): Update dependencies.
7260
3086aeae
DJ
72612003-04-26 Daniel Jacobowitz <drow@mvista.com>
7262
7263 * breakpoint.h (struct breakpoint_ops): New.
7264 (struct breakpoint): Add ops member.
7265
7266 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7267 (mention): Use new breakpoint ops member.
7268 (set_raw_breakpoint): Initialize ops field to NULL.
7269 (print_exception_catchpoint, print_one_exception_catchpoint)
7270 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7271 (gnu_v3_exception_catchpoint_ops): New.
7272 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7273
1fbec6c3
AF
72742003-04-25 Adam Fedor <fedor@gnu.org>
7275
7276 * Makefile.in (COMMON_OBS): Add objc-lang.o
7277
0ef21242
AC
72782003-04-25 Andrew Cagney <cagney@redhat.com>
7279
7280 * d10v-tdep.c (print_insn): Delete function.
7281 (display_trace): Use TARGET_PRINT_INSN.
7282 (_initialize_d10v_tdep): Do not set tm_print_insn.
7283 (d10v_gdbarch_init): Set print_insn.
7284
f75493ed
AC
72852003-04-25 Andrew Cagney <cagney@redhat.com>
7286
7287 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7288 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7289 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7290 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7291 (nr_dmap_regs, a0_regnum): ... new functions.
7292 (d10v_print_registers_info): Use a0_regnum, use register_size.
7293 (d10v_register_byte): Delete function.
7294 (d10v_register_raw_size): Delete function.
7295 (d10v_register_type): Use a0_regnum.
7296 (d10v_print_registers_info): Use a0_regnum.
7297 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7298 (d10v_gdbarch_init): Do not set register_byte or
7299 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7300 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7301 extract_address.
7302 (trace_command): Use XCALLOC.
7303 (print_insn): Delete reference to tm_print_insn.
7304 (saved_regs_unwinder): Use store_unsigned_integer instead of
7305 store_address.
7306 * frame.h (FRAME_OBSTACK_CALLOC): Define
7307
2202b100
DC
73082003-04-25 David Carlton <carlton@bactrian.org>
7309
7310 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7311
4e45ca2e
AF
73122003-04-24 Adam Fedor <fedor@gnu.org>
7313
7314 * objc-lang.c: Include "valprint.h"
7315 * Makefile.in (objc-lang.o): Update dependencies.
7316
93de3e7f
AF
73172003-04-24 Adam Fedor <fedor@gnu.org>
7318
8ffd9b1b 7319 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7320 architecture dependant compilation and mark as unimplemented
7321 (until they get put in the gdbarch vector).
7322
0f20eeea
DC
73232003-04-23 David Carlton <carlton@bactrian.org>
7324
7325 * cp-support.c (cp_find_first_component): Accept 'operator' in
7326 more locations.
7327
74cfe982
AC
73282003-04-23 Andrew Cagney <cagney@redhat.com>
7329
7330 * infcall.c (call_function_by_hand): Eliminate redundant
7331 indentation. Move "saved_async" and "old_cleanups" to where they
7332 are needed.
8ffd9b1b 7333
52557533
AC
73342003-04-23 Andrew Cagney <cagney@redhat.com>
7335
7336 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7337 and "buffer". Move the "name" code to where it is needed.
7338
158775de
AC
73392003-04-23 Andrew Cagney <cagney@redhat.com>
7340
7341 * infcall.c (call_function_by_hand): Move variables "start_sp",
7342 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7343 code to ON_STACK switch branch.
8ffd9b1b 7344
ebc7896c
AC
73452003-04-23 Andrew Cagney <cagney@redhat.com>
7346
7347 * infcall.c (call_function_by_hand): Make declaration of "i",
7348 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7349 lint.
7350
d727590f
AC
73512003-04-23 Andrew Cagney <cagney@redhat.com>
7352
7353 * infcall.c (call_function_by_hand): Delete variable
7354 "n_method_args". Localize "param_type"'s declaration to the loop
7355 that it is used. Reinstate code assigning to said variable -
7356 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7357 Rationalize code using "param_type".
7358
d585e13a
AC
73592003-04-22 Andrew Cagney <cagney@redhat.com>
7360
7361 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7362 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7363 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7364 to DEPRECATED_PUSH_RETURN_ADDRESS.
7365
051caad9
KB
73662003-04-22 Kevin Buettner <kevinb@redhat.com>
7367
7368 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7369 on the DWARF2 register number prior to fetching a register.
7370
77296879
JB
73712003-04-22 J. Brobecker <brobecker@gnat.com>
7372
7373 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7374 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7375 this macro was always set to 0.
77296879
JB
7376 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7377 considering the fact that this macro was always set to 0.
7378 * hppa-tdep.h (hppa_store_return_value): Likewise.
7379 (hppa_extract_return_value): Likewise.
7380
4252f1df
JB
73812003-04-22 J. Brobecker <brobecker@gnat.com>
7382
7383 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7384 the hppa-pro target only.
7385
14604c6b
JB
73862003-04-21 J. Brobecker <brobecker@gnat.com>
7387
7388 Ongoing multi-arch conversion effort for HP/UX:
7389 * config/pa/tm-hppa.h: Move all macro that are no longer
7390 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7391 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7392
77eb01d1
JB
73932003-04-21 J. Brobecker <brobecker@gnat.com>
7394
7395 * config/pa/tm-hppa.h: Obsolete a section that was only used
7396 for hppa-pro.
7397
61995b3b
JB
73982003-04-21 J. Brobecker <brobecker@gnat.com>
7399
7400 Ongoing multi-arch conversion for HP/UX.
7401 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7402 if already defined (allows hppa64 to stay non-multiarched for now).
7403 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7404
4aa79dcc
AC
74052003-04-21 Andrew Cagney <cagney@redhat.com>
7406
7407 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7408
0f751ff2
AC
74092003-04-21 Andrew Cagney <cagney@redhat.com>
7410
7411 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7412 "i386_num_mmx_regs".
7413
04714b91
AC
74142003-04-21 Andrew Cagney <cagney@redhat.com>
7415
7416 * infcall.c: New file.
7417 * infcall.h: New file.
7418 * valarith.c: Include "infcall.h".
7419 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7420 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7421 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7422 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7423 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7424 (SFILES): Add "infcall.c"
7425 (COMMON_OBS): Add "infcall.o".
7426 (infcall.o): Specify dependencies.
7427 * value.h (call_function_by_hand): Delete declaration.
7428 * inferior.h (run_stack_dummy): Delete declaration.
7429 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7430 (run_stack_dummy): Move to "infcall.c", merged into
7431 call_function_by_hand.
7432 * valops.c (call_function_by_hand): Moved to "infcall.c".
7433 (find_function_addr, value_arg_coerce): Ditto.
7434 (unwindonsignal_p, coerce_float_to_double): Ditto.
7435 (_initialize_valops): Move "set/show coerce-float-to-double", and
7436 "set/show unwindonsignal" commands to "infcall.c".
7437 * v850-tdep.c, target.h: Update comments.
7438 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7439 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7440 (sh64_init_extra_frame_info): Update comments.
7441 * mn10300-tdep.c: Update comments.
7442 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7443 * config/sparc/tm-sparc.h: Update comments.
7444 * breakpoint.h: Update comments.
7445 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7446 * arm-tdep.c: Update comment.
7447
f9d3c2a8
MK
74482003-04-19 Mark Kettenis <kettenis@gnu.org>
7449
c40e1eab
MK
7450 * i386-tdep.c (i386_num_register_names): New variable.
7451 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7452 (MM0_REGNUM): Remove redundant parentheses in define.
7453 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7454 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7455 i386_mxcsr_regnum_p): Remove redundant parentheses.
7456 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7457
94ea66b3
MK
7458 * i386-tdep.c (i386_extract_return_value,
7459 i386_store_return_value): Correct check for availability of
7460 floating-point registers.
7461
54299a1d
MK
7462 * i386-tdep.c (i386_frame_num_args): Remove function.
7463 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7464
c86c27af
MK
7465 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7466 mmx_regnum_to_fp_regnum. Adjust all callers.
7467
f9d3c2a8
MK
7468 * i386-tdep.c (i386_get_longjmp_target): Use
7469 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7470 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7471 extract_address.
7472
94ba74a9
MK
74732003-04-19 Mark Kettenis <kettenis@gnu.org>
7474
7475 * core-regset.c: Update comments to reflect reality. Re-order
7476 includes.
7477 (fetch_core_registers): Use switch instead of if. Remove
7478 redundant prototype.
7479
4074e13c
JB
74802003-04-18 Jim Blandy <jimb@redhat.com>
7481
7482 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7483 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7484
e3ab4aba
RH
74852003-04-17 Richard Henderson <rth@redhat.com>
7486
7487 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7488
627bf7c1
EZ
74892003-04-17 Michael Snyder <msnyder@redhat.com>
7490 Karen Bennet <bennet@redhat.com>
7491
7492 Committed by Elena Zannoni <ezannoni@redhat.com>
7493 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7494
514621a9
EZ
74952003-04-17 Elena Zannoni <ezannoni@redhat.com>
7496
7497 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7498 value if the return type is void.
514621a9 7499
b4acd559
JJ
75002003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7501
7502 * thread-db.c: Reindented.
8ffd9b1b 7503
530b167e 75042003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7505
7506 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7507 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7508 as types.
7509
0a48e7e8
MS
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
8ffd9b1b 7533
ab9fe00e
KB
75342003-04-16 Kevin Buettner <kevinb@redhat.com>
7535
610a3745 7536 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7537 the size of ``long double'' to 16, instead of 8.
7538
e64a344c
MK
75392003-04-16 Mark Kettenis <kettenis@gnu.org>
7540
7541 * i386-linux-nat.c: Add some whitespace to make things more
7542 readable.
7543 (fetch_register, store_register, fetch_inferior_registers,
7544 store_inferior_registers): Get rid of assignment in if-statement.
7545 (store_register): Fix typo in error message.
7546
25d41031
AC
75472003-04-16 Andrew Cagney <cagney@redhat.com>
7548
7549 * utils.c (xmmalloc): Always allocate something, matches
7550 libiberty/xmalloc's semantics.
7551 (xmrealloc, xmcalloc): Ditto.
7552
c50901fd
AC
75532003-04-16 Andrew Cagney <cagney@redhat.com>
7554
7555 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7556 update comments.
7557 (get_frame_type): Initialize unwind and type when needed.
7558 (get_frame_id, frame_register_unwind): Ditto.
7559
f81824a9
AC
75602003-04-16 Andrew Cagney <cagney@redhat.com>
7561
7562 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7563 obsolete.
7564 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7565 * sparcl-stub.c: Obsolete file.
7566 * config/sparc/tm-sparclet.h: Obsolete file.
7567 * sparclet-stub.c: Obsolete file.
7568 * sparclet-rom.c: Obsolete file.
7569 * sparcl-tdep.c: Obsolete file.
7570 * config/sparc/tm-sparclite.h: Obsolete file.
7571 * config/sparc/sparclite.mt: Obsolete file.
7572 * config/sparc/sparclet.mt: Obsolete file.
7573 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7574 sparc86x-*-* obsolete.
7575
9219021c
DC
75762003-04-15 David Carlton <carlton@math.stanford.edu>
7577
7578 * Makefile.in (SFILES): Add cp-namespace.c.
7579 (COMMON_OBS): Add cp-namespace.o.
7580 (block.o): Depend on gdb_obstack_h and cp_support_h.
7581 (buildsym.o): Depend on cp_support_h.
7582 (cp-namespace.o): New.
7583 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7584 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7585 (dwarf2read.o): Depend on cp_support_h.
7586 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7587 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7588 processing_current_namespace.
7589 (read_namespace): Update processing_current_namespace; check for
7590 anonymous namespaces.
7591 (dwarf2_name): New function.
7592 (dwarf2_extension): Ditto.
7593 * cp-support.h: Update copyright, contributors.
7594 Add inclusion guards.
7595 Add opaque declaration for structs obstack, block, symbol.
7596 (struct using_direct): New struct.
7597 Add declarations for cp_find_first_component,
7598 cp_entire_prefix_len, processing_has_namespace_info,
7599 processing_current_namespace, cp_is_anonymous,
7600 cp_add_using_directive, cp_initialize_namespace,
7601 cp_finalize_namespace, cp_set_block_scope,
7602 cp_scan_for_anonymous_namespaces.
7603 * cp-namespace.c: New file.
7604 * cp-support.c: Update copyright.
7605 Include ctype.h, gdb_assert.h, gdbcmd.h.
7606 New variable maint_cplus_cmd_list.
7607 (cp_find_first_component): New function.
7608 (cp_entire_prefix_len, maint_cplus_command)
7609 (first_component_command, _initialize_cp_support): Ditto.
7610 * buildsym.c: Include cp-support.h.
7611 New variable using_list.
7612 (add_symbol_to_list): Check for anonymous namespaces.
7613 (finish_block): Set block's scope.
7614 (start_symtab): Initialize C++ namespace support.
7615 (end_symtab): Finalize C++ namespace support.
7616 * block.h: Add opaque declarations for structs
7617 block_namespace_info, using_direct, and obstack.
7618 Add declarations for block_set_scope and block_set_using.
7619 (struct block): Add 'language_specific' member.
7620 (BLOCK_NAMESPACE): New macro.
7621 * block.c: Include gdb_obstack.h and cp-support.h.
7622 (struct block_namespace_info): New struct.
7623 (block_set_scope): New function.
7624 (block_set_using, block_initialize_namespace): Ditto.
7625
d5a921c9
KB
76262003-04-14 Kevin Buettner <kevinb@redhat.com>
7627
7628 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7629 (locate_base): Return early if there aren't any link map offsets.
7630 (svr4_solib_create_inferior_hook): Warn if shared library support
7631 is unavailable.
7632
d2a52b27
DC
76332003-04-14 David Carlton <carlton@math.stanford.edu>
7634
7635 * symtab.c (symbol_set_names): Add prefix when storing Java names
7636 in hash table. Fix for PR java/1039.
7637
980cae7a
DC
76382003-04-14 David Carlton <carlton@math.stanford.edu>
7639
7640 * symtab.c (symbol_set_names): Rename 'name' arg to
7641 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7642 * symtab.h: Change 'name' argument in declaration of
7643 symbol_set_names to 'linkage_name'.
7644 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7645
e227b13c
AC
76462003-04-14 Andrew Cagney <cagney@redhat.com>
7647
7648 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7649 return the fully sign-extended register value.
7650 (get_frame_pointer): Ditto.
7651 (mips_pop_frame): Initialize "proc_desc" after checking for a
7652 dummy frame.
7653
36712a20
AC
76542003-04-14 Andrew Cagney <cagney@redhat.com>
7655
7656 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7657 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7658 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7659 (mips_push_register): Delete function.
7660 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7661 PUSH_FP_REGNUM.
7662
44ea7b70
JB
76632003-04-14 Jim Blandy <jimb@redhat.com>
7664
7665 * symmisc.c: #include "gdb_regex.h".
7666 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7667 functions.
7668 * maint.c (maintenance_list_command): New function.
7669 (_initialize_maint_cmds): Register the above as commands.
7670 * symtab.h (maintenance_list_symtabs,
7671 maintenance_list_psymtabs): New declarations.
7672 * cli/cli-cmds.c (maintenancelistlist): New variable.
7673 (init_cmd_lists): Initialize it.
7674 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7675 * gdbcmd.h (maintenancelistlist): New declaration.
7676 * Makefile.in (symmisc.o): Update dependencies.
7677
2d0c7962
EZ
76782003-04-14 Elena Zannoni <ezannoni@redhat.com>
7679
7680 * s390-nat.c: Include asm/types.h for addr_t.
7681
1947a811
CV
76822003-04-14 Corinna Vinschen <vinschen@redhat.com>
7683
7684 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7685 actually incoming type.
7686
adb616d7
AC
76872003-04-13 Andrew Cagney <cagney@redhat.com>
7688
7689 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7690 get_next_frame and get_frame_saved_regs.
7691
9b5e151c
AC
76922003-04-13 Andrew Cagney <cagney@redhat.com>
7693
7694 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7695 of gdbarch_num_regs.
7696
ef6e7e13
AC
76972003-04-13 Andrew Cagney <cagney@redhat.com>
7698
7699 * frame.h: Mention what replaced what in "struct frame_info".
7700 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7701 deprecated_update_frame_base_hack and
7702 deprecated_update_frame_pc_hack.
7703 * hppa-tdep.c: Ditto.
7704
61fbb938
DJ
77052003-04-13 Daniel Jacobowitz <drow@mvista.com>
7706
7707 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7708 to read_reg and update its comment. Remove regnum member.
7709 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7710 Don't call read_reg when setting in_reg. Call read_reg to get
7711 the frame base if it's in a register. Return the register number
7712 on the stack instead of in the context. Remove extra arguments
7713 to read_reg.
7714 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7715 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7716 the register number on the expression stack.
7717 (needs_frame_read_reg): Remove extra arguments.
7718
0d53c4c4
DJ
77192003-04-13 Daniel Jacobowitz <drow@mvista.com>
7720
7721 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7722 made non-static.
7723 (execute_stack_op): All callers updated.
7724 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7725 * dwarf2loc.c (find_location_expression): New function.
7726 (dwarf_expr_frame_base): Call it.
7727 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7728 (dwarf2_tracepoint_var_ref): New function, broken out from
7729 locexpr_tracepoint_var_ref.
7730 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7731 Make static.
7732 (loclist_read_variable, loclist_read_needs_frame): New functions.
7733 (loclist_describe_location, loclist_tracepoint_var_ref): New
7734 functions.
7735 (dwarf2_loclist_funcs): New struct location_funcs.
7736 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7737 (struct dwarf2_locexpr_baton): Add comments.
7738 (dwarf2_loclist_funcs): New extern.
7739 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7740 base_address and base_known.
7741 (dwarf_loc_buffer): New variable.
7742 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7743 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7744 (dwarf2_has_info): Initialize dwarf_loc_offset.
7745 (dwarf2_build_psymtabs): Read in .debug_loc.
7746 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7747 DWARF_LOC_SIZE.
7748 (psymtab_to_symtab_1): Likewise. Move base address calculation
7749 here, from...
7750 (dwarf2_get_pc_bounds): ... here. Use the base address from
7751 cu_header.
7752 (dwarf2_symbol_mark_computed): Handle location lists.
7753
6aca59a3
DJ
77542003-04-13 Daniel Jacobowitz <drow@mvista.com>
7755
7756 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7757 if the linkage name demangled successfully.
7758
aca1fcd0
MK
77592003-04-13 Mark Kettenis <kettenis@gnu.org>
7760
97095916
MK
7761 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7762 disassmbly_flavour): Removed.
7763
aca1fcd0
MK
7764 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7765
562a961f
MK
77662003-04-13 Mark Kettenis <kettenis@gnu.org>
7767
7768 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7769
bd013d54
AC
77702003-04-12 Andrew Cagney <cagney@redhat.com>
7771
7772 * frame.h (struct frame_info): Move definition from here ...
7773 * frame.c (struct frame_info): ... to here.
7774
167ef8b1
AC
77752003-04-12 Andrew Cagney <cagney@redhat.com>
7776
7777 * gdbthread.h (save_infrun_state): Delete parameter
7778 "prev_func_start".
7779 (struct thread_info): Delete field "prev_func_start".
7780 (load_infrun_state): Ditto.
7781 * thread.c (load_infrun_state, save_infrun_state): Update.
7782 * infrun.c (prev_func_start): Delete variable.
7783 (context_switch, init_wait_for_inferior): Update.
7784 (stop_stepping, keep_going): Update.
7785
da3331ec
AC
77862003-04-12 Andrew Cagney <cagney@redhat.com>
7787
7788 * gdbarch.sh: Add missing opaque declarations.
7789 * gdbarch.h: Regnerate.
7790 * symtab.h: Add missing opaque declarations.
7791 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7792 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7793 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7794 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7795 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7796 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7797 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7798 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7799 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7800 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7801 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7802 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7803 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7804
18adea3f
AC
78052003-04-11 Andrew Cagney <cagney@redhat.com>
7806
7807 * frame.c (get_frame_id): Return this frame's "id".
7808 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7809 function start.
7810 (legacy_saved_regs_this_id): Replace function body with
7811 internal-error.
7812 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7813 FRAME_OBSTACK_ZALLOC.
7814 (create_new_frame): Mark the frame ID as valid.
7815
2252e863
AO
78162003-04-11 Alexandre Oliva <aoliva@redhat.com>
7817
7818 * Makefile.in (libbfd_h): Added missing setting.
7819 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7820 according to the selected ABI.
7821
a8245ab8
JJ
78222003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7823
7824 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7825
6913c89a
AC
78262003-04-11 Andrew Cagney <cagney@redhat.com>
7827
7828 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7829 SAVED_PC_AFTER_CALL.
7830 * gdbarch.h, gdbarch.c: Regenerate.
7831 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7832 * x86-64-tdep.c (x86_64_init_abi): Update.
7833 * vax-tdep.c (vax_gdbarch_init): Update.
7834 * v850-tdep.c (v850_gdbarch_init): Update.
7835 * sparc-tdep.c (sparc_gdbarch_init): Update.
7836 * sh-tdep.c (sh_gdbarch_init): Update.
7837 * s390-tdep.c (s390_gdbarch_init): Update.
7838 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7839 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7840 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7841 * mips-tdep.c (mips_gdbarch_init): Update.
7842 * mcore-tdep.c (mcore_gdbarch_init): Update.
7843 * m68k-tdep.c (m68k_gdbarch_init): Update.
7844 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7845 * ia64-tdep.c (ia64_gdbarch_init): Update.
7846 (ia64_saved_pc_after_call): Update declaration.
7847 * i386ly-tdep.c (i386lynx_init_abi): Update.
7848 * i386-tdep.c (i386_gdbarch_init): Update.
7849 * hppa-tdep.c (hppa_gdbarch_init): Update.
7850 * h8300-tdep.c (h8300_gdbarch_init): Update.
7851 * frv-tdep.c (frv_gdbarch_init): Update.
7852 * cris-tdep.c (cris_gdbarch_init): Update.
7853 * avr-tdep.c (avr_gdbarch_init): Update.
7854 * arm-tdep.c (arm_gdbarch_init): Update.
7855 * alpha-tdep.c (alpha_gdbarch_init): Update.
7856 * ns32knbsd-nat.c (frame_num_args): Update.
7857 * ns32k-tdep.c (umax_frame_num_args): Update.
7858 * mips-tdep.c (mips_init_frame_pc_first): Update.
7859 * infrun.c (step_over_function): Update.
7860 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7861 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7862 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7863 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7864 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7865 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7866 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7867 * arch-utils.c (init_frame_pc_default): Update.
7868 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7869 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7870 declaration.
8ffd9b1b 7871
38edeab8
AC
78722003-04-11 Andrew Cagney <cagney@redhat.com>
7873
7874 * i387-tdep.c: Update copyright.
7875 (i387_to_double): Delete function.
7876 (double_to_i387): Delete function.
7877
81f8a206
AC
78782003-04-10 Andrew Cagney <cagney@redhat.com>
7879
7880 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7881 frame's function's address. Simplify.
7882 (d10v_frame_unwind_cache): Check that the frame's function is
7883 non-zero.
7884
6e691f7a
JB
78852003-04-10 Jim Blandy <jimb@redhat.com>
7886
7887 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7888 call to set_gdbarch_deprecated_push_arguments.
7889
7f78e237
AC
78902003-04-10 Andrew Cagney <cagney@redhat.com>
7891
7892 * frame.c (fprint_frame_id): New function.
7893 (fprint_frame_type, fprint_frame): New function.
7894 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7895 (create_sentinel_frame, get_frame_id): Ditto.
7896 (frame_id_p, frame_id_eq): Ditto.
7897 (frame_id_inner, create_new_frame): Ditto.
7898 (legacy_get_prev_frame, get_prev_frame): Ditto.
7899 (deprecated_update_frame_pc_hack): Ditto.
7900 (frame_register_unwind): Ditto.
7901 (deprecated_update_frame_base_hack): Ditto.
7902
f870b49b
CV
79032003-04-10 Corinna Vinschen <vinschen@redhat.com>
7904
7905 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7906 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7907 frame_chain function.
7908 * Makefile.in: Add dependencies due to above change.
7909
7c86889b
CV
79102003-04-10 Corinna Vinschen <vinschen@redhat.com>
7911
7912 * blockframe.c (legacy_frame_chain_valid): Move call to
7913 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7914 inside_entry_file.
7915
d0a55772
AC
79162003-04-09 Andrew Cagney <cagney@redhat.com>
7917
7918 * frame.h (struct frame_id): Replace "pc" and "base" with
7919 "stack_addr" and "code_addr". Update comments.
7920 (frame_id_build): Update parameter names and comment.
7921 (struct frame_info): Replace "id_p" and "id" with "this_id".
7922 * dummy-frame.c (dummy_frame_this_id): Update.
7923 * breakpoint.c (print_one_breakpoint): Update.
7924 * frame.c (get_frame_id): Update.
7925 (get_frame_base, frame_id_build): Update.
7926 (create_sentinel_frame, legacy_get_prev_frame): Update.
7927 (deprecated_update_frame_base_hack): Update.
7928 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7929 (frame_id_inner): Ditto.
7930
ac16bf07
AC
79312003-04-09 Andrew Cagney <cagney@redhat.com>
7932
7933 * defs.h (gdb_print_host_address): Make "addr" parameter a
7934 pointer constant.
7935 * utils.c (gdb_print_host_address): Update.
7936
366cfc9e
KB
79372003-04-09 Kevin Buettner <kevinb@redhat.com>
7938
7939 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7940 register number for R0 is 0.
7941
cd983b5c
JB
79422003-04-09 J. Brobecker <brobecker@gnat.com>
7943
7944 * frame.h (struct gdbarch): Add opaque structure definition
7945 to avoid a compilation warning on LynxOS 4.0.
7946
d1340264
AC
79472003-04-09 Andrew Cagney <cagney@redhat.com>
7948
7949 * frame.h (struct frame_info): Delete field "pc". Replace
7950 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7951 structure.
7952 * frame.c (frame_pc_unwind): Update.
7953 (create_sentinel_frame): Do not set "pc".
7954 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7955 (get_frame_pc): Call frame_pc_unwind.
7956 (deprecated_update_frame_pc_hack): Update.
7957 (create_new_frame): Use "pc" not "->pc".
7958
90a6fffb
AC
79592003-04-09 Andrew Cagney <cagney@redhat.com>
7960
7961 * frame.c (get_frame_id): Eliminate code updating "frame".
7962 (legacy_get_prev_frame): Ditto.
7963 (get_frame_base): Return id.base directly.
7964 (deprecated_update_frame_base_hack): Update "id.base".
7965 * frame.h (struct frame_info): Delete field "frame".
7966
2fbce691
AC
79672003-04-09 Andrew Cagney <cagney@redhat.com>
7968
7969 * NEWS: Mention that the "Sequent family" is obsolete.
7970 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7971 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7972 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7973 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7974 * config/i386/tm-ptx4.h: Obsolete file.
7975 * config/i386/tm-ptx.h: Obsolete file.
7976 * symm-tdep.c: Obsolete file.
7977 * config/i386/symmetry.mt: Obsolete file.
7978 * config/i386/tm-symmetry.h: Obsolete file.
7979 * symm-nat.c: Obsolete file.
7980 * config/i386/nm-symmetry.h: Obsolete file.
7981 * config/i386/xm-symmetry.h: Obsolete file.
7982 * config/i386/symmetry.mh: Obsolete file.
7983 * config/i386/nm-ptx4.h: Obsolete file.
7984 * config/i386/ptx4.mh: Obsolete file.
7985 * config/i386/ptx.mt: Obsolete file.
7986 * config/i386/ptx.mh: Obsolete file.
7987 * config/i386/xm-ptx4.h: Obsolete file.
7988 * config/i386/xm-ptx.h: Obsolete file.
7989
78c43945
AC
79902003-04-09 Andrew Cagney <cagney@redhat.com>
7991
7992 Obsolete mips*-*-mach3*.
7993 * NEWS: Mention that mips*-*-mach3* is obsolete.
7994 * m3-nat.c: Obsolete file.
7995 * config/nm-m3.h: Obsolete file.
7996 * config/mips/tm-mipsm3.h: Obsolete file.
7997 * config/mips/mipsm3.mt: Obsolete file.
7998 * config/mips/mipsm3.mh: Obsolete file.
7999 * config/mips/xm-mipsm3.h: Obsolete file.
8000 * mipsm3-nat.c: Obsolete file.
8001 * configure.host: Obsolete mips-dec-mach3*.
8002 * configure.tgt: Obsolete mips*-*-mach3*.
8003
f1908289
AC
80042003-04-09 Andrew Cagney <cagney@redhat.com>
8005
8006 * doublest.h: Update copyright.
8007 (deprecated_store_floating, deprecated_extract_floating): Rename
8008 store_floating and extract_floating. Update comments.
8009 * doublest.c: Update copyright.
8010 (extract_floating_by_length): Replace extract_floating.
8011 (store_floating_by_length): Replace store_floating.
8012 (deprecated_extract_floating): New function.
8013 (deprecated_store_floating): New function.
8014 (extract_typed_floating): Call extract_floating_by_length.
8015 (store_typed_floating): Call store_floating_by_length.
8016 * x86-64-tdep.c (x86_64_store_return_value): Update.
8017 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8018 (sh64_extract_return_value): Update.
8019 (sh_sh4_register_convert_to_virtual): Update.
8020 (sh_sh64_register_convert_to_virtual): Update.
8021 (sh_sh4_register_convert_to_raw): Update.
8022 (sh_sh64_register_convert_to_raw): Update.
8023 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8024 (rs6000_register_convert_to_raw): Update.
8025 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8026 (ia64_register_convert_to_raw): Update.
8027 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8028 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8029 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8030 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8031 (alpha_register_convert_to_raw): Update.
8032
4443bd83
AC
80332003-04-08 Andrew Cagney <cagney@redhat.com>
8034
8035 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8036 * gdbarch.h, gdbarch.c: Re-generate.
8037 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8038 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8039 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8040 conditionally, use frame_pc_unwind as an alternative. Add
8041 comments.
8042 * arch-utils.c (init_frame_pc_default): Only call
8043 SAVED_PC_AFTER_CALL when available.
8044
c0236d92
EZ
80452003-04-08 Elena Zannoni <ezannoni@redhat.com>
8046
fbe586ae 8047 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8048 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8049 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8050 (start_remote): Ditto.
8051 (handle_inferior_event): Ditto.
8052 (save_inferior_status): Ditto.
8053 (restore_inferior_status): Ditto.
8054 * infcmd.c (attach_command): Ditto.
8055 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8056 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8057 * alpha-tdep.c (heuristic_proc_start): Ditto.
8058 * mips-tdep.c (heuristic_proc_start): Ditto.
8059 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8060 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8061 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8062 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8063 * remote-vx.c (vx_create_inferior): Ditto.
8064
80652003-04-08 Elena Zannoni <ezannoni@redhat.com>
8066
8067 * infrun.c (stop_soon_quietly): Make it an enum, to better
8068 override the default behavior of handle_inferior_event.
8069 (clear_proceed_status): Update uses of stop_soon_quietly to
8070 reflect that it is now an enum.
8071 (start_remote): Ditto.
8072 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8073 is set to handle the new GNU/Linux kernel behavior for
8074 attach/sigstop. Update uses of stop_soon_quietly.
8075 * inferior.h (enum stop_kind): New enum.
8076 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8077 Reset normal handle_inferior_event behavior, afterwards.
8078 * fork-child.c (startup_inferior): Update.
8079 * alpha-tdep.c (heuristic_proc_start): Update.
8080 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8081 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8082 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8083 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8084 * remote-vx.c (vx_create_inferior): Update.
8085 * mips-tdep.c (heuristic_proc_start): Update.
8086
1211bce3
EZ
80872003-04-07 Elena Zannoni <ezannoni@redhat.com>
8088
8089 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8090 be freed more than once, causing wild memory corruptions.
1211bce3 8091 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8092 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8093 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8094 with the "core" target.
1211bce3 8095
f0ef6b29
KB
80962003-04-07 Kevin Buettner <kevinb@redhat.com>
8097
8098 * mips-tdep.c (mips_print_fp_register): New function, created from
8099 do_fp_register_row(). Registers are now (also) printed as hex.
8100 Only one register is printed per row.
8101 (mips_print_register, do_fp_register_row): Print floating point
8102 registers with mips_print_fp_register().
8103
8cf71652
AC
81042003-04-06 Andrew Cagney <cagney@redhat.com>
8105
5e488a7b
AC
8106 * valprint.h (inspect_it): Add extern declaration.
8107 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8108 (selectors_info, classes_info): Ditto.
8109 (find_objc_msgcall): Fix indentation.
8110 (objc_printstr): Delete extern declarations.
8111
8cf71652
AC
8112 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8113
e6ba3bc9
AC
81142003-04-06 Andrew Cagney <cagney@redhat.com>
8115
8116 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8117 Update comment.
8118 * frame.c (legacy_saved_regs_this_id): Update.
8119 (legacy_get_prev_frame): Update.
8120 * xstormy16-tdep.c: Update comment.
8121 * sparc-tdep.c (sparc_frame_chain): Update comment.
8122 * blockframe.c (legacy_frame_chain_valid): Update.
8123
55e1d7e7
AC
81242003-04-06 Andrew Cagney <cagney@redhat.com>
8125
996179ee
AC
8126 * valprint.c (val_print_type_code_int): Delete #ifdef
8127 PRINT_TYPELESS_INTEGER code.
8128
55e1d7e7
AC
8129 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8130 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8131 multi-arch definition.
8132 * gdbarch.h: Re-generate.
8133
43bd9a9e
AC
81342003-04-05 Andrew Cagney <cagney@redhat.com>
8135
8136 Eliminate FRAME_FIND_SAVED_REGS.
8137 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8138 Change FSR parameter to a pointer.
8139 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8140 Assume FSR parameter is a pointer.
8141 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8142 Make fsr a pointer.
8143 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8144 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8145 saved_regs a pointer.
8146 (hppa_frame_saved_pc): Ditto.
8147 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8148 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8149 pointer.
8150 (restore_pc_queue): Make fsr a pointer.
8151 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8152 (hppa_frame_chain): Make saved_regs a pointer, call
8153 hppa_frame_init_saved_regs.
8154 * sparc-tdep.c: Include "gdb_assert.h".
8155 (sparc_frame_find_saved_regs): Replace internal_error with
8156 gdb_assert.
8157 * remote-vxsparc.c (vx_read_register): Delete reference to
8158 FRAME_FIND_SAVED_REGS.
8159 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8160 * gdbarch.h: Regenerate.
8161 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8162 (deprecated_get_frame_saved_regs): Delete declaration.
8163 (struct frame_saved_regs): Delete definition.
8164 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8165 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8166 (hppa_frame_find_saved_regs): Delete declaration.
8167 (FRAME_FIND_SAVED_REGS): Delete macro.
8168 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8169 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8170 FRAME_FIND_SAVED_REGS in comment.
8171
be41e9f4
AC
81722003-04-05 Andrew Cagney <cagney@redhat.com>
8173
8174 * frame.c (frame_func_unwind, get_frame_func): New functions.
8175 * frame.h (get_frame_func, frame_func_unwind): Declare.
8176 (struct frame_info): Add field "prev_func" for caching the
8177 previous frame's function address.
8178 * arm-tdep.c (arm_frameless_function_invocation): Combine
8179 get_pc_function_start and get_frame_pc into get_frame_func.
8180 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8181 (sh64_nofp_frame_init_saved_regs): Ditto.
8182 * s390-tdep.c (s390_function_start): Ditto.
8183 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8184 (rs6000_frameless_function_invocation): Ditto.
8185 (rs6000_frame_saved_pc): Ditto.
8186 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8187 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8188 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8189 (i386_frame_init_saved_regs): Ditto.
8190 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8191 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8192 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8193 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8194 * blockframe.c (frameless_look_for_prologue): Ditto.
8195
a01dd7cc
AC
81962003-04-05 Andrew Cagney <cagney@redhat.com>
8197
8198 * frame.c (legacy_get_prev_frame): Link prev to next at the
8199 function start. Update comments.
8200
5e5592e6
AC
82012003-04-05 Andrew Cagney <cagney@redhat.com>
8202
8203 * frame.c (get_frame_id): Update comment.
8204 (legacy_get_prev_frame): Update comment.
8205 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8206 * gdbarch.h: Regenerate.
8207 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8208 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8209
6fba5002
AC
82102003-04-05 Andrew Cagney <cagney@redhat.com>
8211
8212 * stack.c (print_frame_info): Use get_frame_pc.
8213
7df05f2b
AC
82142003-04-04 Andrew Cagney <cagney@redhat.com>
8215
8216 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8217 the frame's type from the unwinder.
8218 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8219 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8220 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8221 (get_frame_base_address): Use get_frame_type.
8222 (get_frame_locals_address, get_frame_args_address): Ditto.
8223 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8224 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8225 (struct frame_info): Add comment explaining why the frame contains
8226 a "type" field.
8227 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8228 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8229 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8230 NORMAL_FRAME.
8231 * frame-unwind.h: Include "frame.h".
8232 (struct frame_unwind): Add "type" field.
8233 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8234
11889732
AC
82352003-04-04 Andrew Cagney <cagney@redhat.com>
8236
8237 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8238 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8239 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8240 get_frame_base.
8241 (d10v_unwind_dummy_id): Use frame_id_build.
8242 * frame.c (find_frame_sal): Use get_frame_pc.
8243 (create_new_frame): Use deprecated_update_frame_pc_hack and
8244 deprecated_update_frame_base_hack.
8245 (create_sentinel_frame): Add comment about ->pc going away.
8246 (get_prev_frame): Add comment about ->pc going away.
8247 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8248 frame_id_build, deprecated_update_frame_pc_hack and
8249 deprecated_update_frame_base_hack.
8250 (select_frame): Use get_frame_pc.
8251 (legacy_saved_regs_this_id): Use frame_id_build.
8252
50c46a0d
EZ
82532003-04-04 Elena Zannoni <ezannoni@redhat.com>
8254
fbe586ae
RH
8255 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8256 signed integer case.
8257 (classify_argument): Handle enumerations and references.
50c46a0d 8258
50bbdbd9
AC
82592003-04-04 Andrew Cagney <cagney@redhat.com>
8260
8261 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8262 ID to NULL.
8263
36018d2e
AF
82642003-04-01 Adam Fedor <fedor@gnu.org>
8265
8266 * gdb/objc-lang.c (selectors_info): Replace calls to
8267 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8268 SYMBOL_NATURAL_NAME.
8269 (classes_info, find_methods): Likewise.
8270
35cec841
KB
82712003-04-03 Kevin Buettner <kevinb@redhat.com>
8272
8273 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8274 ``mach'' to the value determined by bfd_default_set_arch_mach().
8275
43136899
BR
82762003-04-02 Bob Rossi <bob_rossi@cox.net>
8277
8278 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8279 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8280 (mi-cmd-file.o): Update dependencies.
8281
040b99fd
KB
82822003-04-01 Kevin Buettner <kevinb@redhat.com>
8283
8284 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8285 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8286
9a3d7dfd
AF
82872003-04-01 Adam Fedor <fedor@gnu.org>
8288
8289 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8290 * language.h (struct language_defn): Add la_demangle.
8291 (language_demangle): Declare.
8292 * language.c (language_demangle): New function.
8293 (unk_lang_demangle): Likewise.
8294 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8295 Add ukn_lang_demangle.
9a3d7dfd 8296 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8297 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8298 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8299 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8300 * jv-lang.c (java_demangle): New function
8301 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8302 * objc-lang.c (objc_demangle): Add options argument
8303 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8304 * maint.c (maintenance_demangle): Replace switch with
8305 call to language_demangle.
8306 * utils.c (fprintf_symbol_filtered): Likewise.
8307
5e074003
AC
83082003-04-01 Andrew Cagney <cagney@redhat.com>
8309
8310 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8311 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8312 PRINT_TYPELESS_INTEGER.
8313 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8314 PUSH_RETURN_ADDRESS.
8315
270cb5d6
AC
83162003-04-01 Andrew Cagney <cagney@redhat.com>
8317
8318 * Makefile.in (d10v-tdep.o): Update dependencies.
8319 * d10v-tdep.c: Include "frame-base.h".
8320 (d10v_frame_unwind): Make constant.
8321 (d10v_frame_base_address): New function.
8322 (d10v_frame_base): New variable.
8323 (d10v_gdbarch_init): Set frame_base default.
8324 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8325 comment for base.
8326 (d10v_frame_unwind_cache): Set and use "prev_sp".
8327 (d10v_frame_this_id): Use the previous frame's inner most stack
8328 address and this frame's func address for the frame ID. Use
8329 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8330
6bfb3e36
AC
83312003-04-01 Andrew Cagney <cagney@redhat.com>
8332
8333 * frame.h (get_frame_locals_address, get_frame_args_address):
8334 Refer to the base address, instead of the address of the first
8335 local or parameter.
8ffd9b1b 8336
da62e633
AC
83372003-04-01 Andrew Cagney <cagney@redhat.com>
8338
8339 Add frame debug info addresses:
8340 * frame-base.c: New file.
8341 * frame-base.h: New file.
8342 * frame.h (struct frame_base): Add opaque declaration.
8343 (get_frame_base): Update comment.
8344 (get_frame_base_address): Declare.
8345 (get_frame_locals_address): Declare.
8346 (get_frame_args_address): Declare.
8347 (struct frame_info): Add "base" and "base_cache". Update
8348 comments on the unwinder.
8349 * frame.c: Include "frame-base.h".
8350 (get_frame_locals_address): New function.
8351 (get_frame_base_address): New function.
8352 (get_frame_args_address): New function.
8353 * findvar.c (read_var_value): Use get_frame_locals_address and
8354 get_frame_args_address.
8355 * stack.c (frame_info): Use get_frame_locals_address and
8356 get_frame_args_address.
8357 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8358 moved to "frame-base.c".
8359 * printcmd.c (print_frame_nameless_args): Ditto.
8360 * symtab.h (address_class): Update comments.
8361 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8362 get_frame_base_address.
8363 * dwarf2expr.c (execute_stack_op): Ditto.
8364 * Makefile.in (frame_base_h): Define.
8365 (frame.o): Update dependencies.
8366 (frame-base.o): Add dependencies.
8367 (SFILES): Add frame-base.c.
8368 (COMMON_OBS): Add frame-base.o.
8369
3d30e9c2
AC
83702003-04-01 Andrew Cagney <cagney@redhat.com>
8371
8372 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8373 CALL_DUMMY_LENGTH): Ditto.
8374 * gdbarch.c: Re-generate.
8375 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8376 (CALL_DUMMY_LENGTH): Delete macro.
8377 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8378 * arm-tdep.c (arm_gdbarch_init): Ditto.
8379 * avr-tdep.c (avr_gdbarch_init): Ditto.
8380 * cris-tdep.c (cris_gdbarch_init): Ditto.
8381 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8382 * frv-tdep.c (frv_gdbarch_init): Ditto.
8383 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8384 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8385 * i386-tdep.c (i386_gdbarch_init): Ditto.
8386 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8387 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8388 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8389 * mips-tdep.c (mips_gdbarch_init): Ditto.
8390 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8391 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8392 * s390-tdep.c (s390_gdbarch_init): Ditto.
8393 * sh-tdep.c (sh_gdbarch_init): Ditto.
8394 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8395 * v850-tdep.c (v850_gdbarch_init): Ditto.
8396 * vax-tdep.c (vax_gdbarch_init): Ditto.
8397 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8398
ce0c7262
CV
83992003-04-01 Corinna Vinschen <vinschen@redhat.com>
8400
8401 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8402
73dd234f
AC
84032003-04-01 Andrew Cagney <cagney@redhat.com>
8404
8405 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8406 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8407 * gdbarch.h, gdbarch.c: Re-generate.
8408 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8409 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8410 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8411 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8412 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8413 * infcmd.c (run_stack_dummy): Simplify assuming
8414 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8415 * infrun.c (handle_inferior_event): Ditto.
8416 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8417 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8418 * arm-tdep.c (arm_gdbarch_init): Ditto.
8419 * avr-tdep.c (avr_gdbarch_init): Ditto.
8420 * cris-tdep.c (cris_gdbarch_init): Ditto.
8421 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8422 * frv-tdep.c (frv_gdbarch_init): Ditto.
8423 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8424 * i386-tdep.c (i386_gdbarch_init): Ditto.
8425 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8426 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8427 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8428 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8429 * mips-tdep.c (mips_gdbarch_init): Ditto.
8430 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8431 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8432 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8433 * s390-tdep.c (s390_gdbarch_init): Ditto.
8434 * sh-tdep.c (sh_gdbarch_init): Ditto.
8435 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8436 * v850-tdep.c (v850_gdbarch_init): Ditto.
8437 * vax-tdep.c (vax_gdbarch_init): Ditto.
8438 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8439
97606a13
DJ
84402003-04-01 Daniel Jacobowitz <drow@mvista.com>
8441
8442 * symfile.c (symfile_relocate_debug_section): Update call to
8443 bfd_simple_get_relocated_section_contents.
8444
e8ab51f7
AC
84452003-03-31 Andrew Cagney <cagney@redhat.com>
8446
8447 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8448 * gdbarch.h, gdbarch.c: Regenerate.
8449 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8450 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8451 available.
8452 * frame.h (generic_fix_call_dummy): Delete declaration.
8453 * dummy-frame.h: Update comment.
8454 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8455 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8456 fix_call_dummy.
8457 * sh-tdep.c (sh_gdbarch_init): Ditto.
8458 * s390-tdep.c (s390_gdbarch_init): Ditto.
8459 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8460 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8461 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8462 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8463 * i386-tdep.c (i386_gdbarch_init): Ditto.
8464 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8465 * frv-tdep.c (frv_gdbarch_init): Ditto.
8466 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8467 * cris-tdep.c (cris_gdbarch_init): Ditto.
8468 * avr-tdep.c (avr_gdbarch_init): Ditto.
8469 * arm-tdep.c (arm_gdbarch_init): Ditto.
8470
018d1b48
JB
84712003-03-31 J. Brobecker <brobecker@gnat.com>
8472
8473 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8474 (INIT_FRAME_AP): Likewise.
8475 (EXTRA_FRAME_INFO): Likewise.
8476
e9a2674e
AC
84772003-03-31 Andrew Cagney <cagney@redhat.com>
8478
8479 * gdbarch.sh: Include "symfile.h".
8480 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8481 * gdbarch.h, gdbarch.c: Re-generate.
8482 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8483 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8484 call_dummy_address, the default is at entry_point_address.
8485 * v850-tdep.c (v850_gdbarch_init): Ditto.
8486 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8487 * sh-tdep.c (sh_gdbarch_init): Ditto.
8488 * s390-tdep.c (s390_gdbarch_init): Ditto.
8489 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8490 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8491 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8492 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8493 * i386-tdep.c (i386_gdbarch_init): Ditto.
8494 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8495 * frv-tdep.c (frv_gdbarch_init): Ditto.
8496 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8497 * cris-tdep.c (cris_gdbarch_init): Ditto.
8498 * arm-tdep.c (arm_gdbarch_init): Ditto.
8499
e8a8712a
AC
85002003-03-31 Andrew Cagney <cagney@redhat.com>
8501
8502 * gdbarch.sh (CALL_DUMMY_P): Delete.
8503 * gdbarch.h, gdbarch.c: Re-generate.
8504 * inferior.h (CALL_DUMMY_P): Delete macro.
8505 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8506 * vax-tdep.c (vax_gdbarch_init): Update.
8507 * v850-tdep.c (v850_gdbarch_init): Update.
8508 * sparc-tdep.c (sparc_gdbarch_init): Update.
8509 * sh-tdep.c (sh_gdbarch_init): Update.
8510 * s390-tdep.c (s390_gdbarch_init): Update.
8511 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8512 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8513 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8514 * mips-tdep.c (mips_gdbarch_init): Update.
8515 * mcore-tdep.c (mcore_gdbarch_init): Update.
8516 * m68k-tdep.c (m68k_gdbarch_init): Update.
8517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8518 * ia64-tdep.c (ia64_gdbarch_init): Update.
8519 * i386-tdep.c (i386_gdbarch_init): Update.
8520 * h8300-tdep.c (h8300_gdbarch_init): Update.
8521 * frv-tdep.c (frv_gdbarch_init): Update.
8522 * d10v-tdep.c (d10v_gdbarch_init): Update.
8523 * cris-tdep.c (cris_gdbarch_init): Update.
8524 * breakpoint.c (deprecated_frame_in_dummy): Update.
8525 * avr-tdep.c (avr_gdbarch_init): Update.
8526 * alpha-tdep.c (alpha_gdbarch_init): Update.
8527 * arm-tdep.c (arm_gdbarch_init): Update.
8528 * dummy-frame.c (dummy_frame_this_id): Update comments.
8529 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8530 * frame.c (legacy_get_prev_frame): Ditto.
8531 * valops.c (call_function_by_hand): Delete function.
8532 (hand_function_call): Rename to call_function_by_hand
8533
ed234cf8
AC
85342003-03-30 Andrew Cagney <cagney@redhat.com>
8535
8536 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8537 * value.h (struct value): Update comment.
ed234cf8 8538
06c77151
AC
85392003-03-30 Andrew Cagney <cagney@redhat.com>
8540
6c2b5168
AC
8541 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8542 D10V_FP_REGNUM.
8543 (d10v_gdbarch_init): Do not set fp_regnum.
8544
06c77151
AC
8545 * frame.c (get_frame_base): Force ID initialization.
8546 (get_prev_frame): Move computation of the frame ID from here ...
8547 (get_frame_id): ... to here.
8548 (legacy_get_prev_frame): Mark the frame ID as valid.
8549 * frame.h (struct frame_info): Add field "id_p".
8550
97a1a11c
MK
85512003-03-30 Mark Kettenis <kettenis@gnu.org>
8552
8553 * i386-tdep.c (i386_store_struct_return): Removed.
8554 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8555
6c0e89ed
AC
85562003-03-30 Andrew Cagney <cagney@redhat.com>
8557
8558 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8559 * gdbarch.h, gdbarch.c: Regenerate.
8560 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8561 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8562 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8563 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8564 * i386-tdep.c (i386_gdbarch_init): Ditto.
8565 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8566 * cris-tdep.c (cris_gdbarch_init): Ditto.
8567 * vax-tdep.c (vax_gdbarch_init): Ditto.
8568 * s390-tdep.c (s390_gdbarch_init): Ditto.
8569 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8570 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8571 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8572 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8573 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8574 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8575 * sparc-tdep.c (sparc_gdbarch_init): Update.
8576 * sh-tdep.c (sh_gdbarch_init): Update.
8577 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8578 * mips-tdep.c (mips_gdbarch_init): Update.
8579 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8580 * ia64-tdep.c (ia64_gdbarch_init): Update.
8581 * frv-tdep.c (frv_gdbarch_init): Update.
8582 * avr-tdep.c (avr_gdbarch_init): Update.
8583 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8584 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8585 instead of when push_dummy_call is not available.
8ffd9b1b 8586
f7dd6af2
AC
85872003-03-30 Andrew Cagney <cagney@redhat.com>
8588
8589 * infttrace.c: Include "gdbthread.h".
8590 (parent_attach_all): Fix function signature.
8591 (call_ptrace): Update call.
8592 * Makefile.in (infttrace.o): Update dependencies.
8593
28f617b3
AC
85942003-03-30 Andrew Cagney <cagney@redhat.com>
8595
8596 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8597 PUSH_RETURN_ADDRESS.
8598 * gdbarch.h, gdbarch.c: Regenerate.
8599 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8600 * x86-64-tdep.c (x86_64_init_abi): Update.
8601 * v850-tdep.c (v850_gdbarch_init): Update.
8602 * sparc-tdep.c (sparc_gdbarch_init): Update.
8603 * sh-tdep.c (sh_gdbarch_init): Update.
8604 * s390-tdep.c (s390_gdbarch_init): Update.
8605 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8606 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8607 * mips-tdep.c (mips_gdbarch_init): Update.
8608 * mcore-tdep.c (mcore_gdbarch_init): Update.
8609 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8610 * ia64-tdep.c (ia64_gdbarch_init): Update.
8611 * i386-tdep.c (i386_gdbarch_init): Update.
8612 * h8300-tdep.c (h8300_gdbarch_init): Update.
8613 * frv-tdep.c (frv_gdbarch_init): Update.
8614 * cris-tdep.c (cris_gdbarch_init): Update.
8615 * avr-tdep.c (avr_gdbarch_init): Update.
8616 * arm-tdep.c (arm_gdbarch_init): Update.
8617 * valops.c (hand_function_call): Update.
8618
4d628cd7
AC
86192003-03-29 Andrew Cagney <cagney@redhat.com>
8620
8621 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8622 sizeof_call_dummy_words.
8623 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8624 define.
8625 * gdbarch.h: Regenerate.
8ffd9b1b 8626
65e82032
AC
86272003-03-29 Andrew Cagney <cagney@redhat.com>
8628
8629 * infttrace.h: New file.
8630 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8631 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8632 (hpread_read_doc_function_type): Detect an initialized type1.
8633 (hpread_quick_traverse): Initialize mod_name_string.
8634 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8635 (som_solib_get_solib_by_pc): Declare.
8636 (so_lib_thread_start_addr): Declare.
8637 (no_shared_libraries): Declare.
8638 * somread.c (init_import_symbols): Make static. Add forward
8639 declaration.
8640 * config/pa/nm-hppah.h: Include "infttrace.h" for
8641 parent_attach_all.
8642 (hppa_insert_hw_watchpoint): Declare.
8643 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8644 * hppah-nat.c: Include "gdb_string.h".
8645 (parent_attach_all): Delete extern declaration, moved to
8646 "infttrace.h".
8647 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8648 int.
8649 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8650 * Makefile.in (infttrace_h): Define.
8651 (hpread.o): Update dependencies.
8652 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8653 * hppa-hpux-tdep.c: Include "gdb_string.h".
8654 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8655 * infrun.c (handle_inferior_event): Always initialize
8656 stepped_after_stopped_by_watchpoint. Add default and remove
8657 fallthrough in switch statement.
8658 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8659 parameter to int.
8660 (hppa_remove_hw_watchpoint): Ditto.
8661
2c3bbe77
AC
86622003-03-29 Andrew Cagney <cagney@redhat.com>
8663
8664 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8665 offset.
8666
2dd604e7
RE
86672003-03-29 Richard Earnshaw <rearnsha@arm.com>
8668
8669 * arm-tdep.c (arm_push_arguments): Delete.
8670 (struct stack_item): New type.
8671 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8672 (arm_store_struct_return): Delte.
8673 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8674 arm_push_arguments or arm_store_struct_return.
8675
e8933a55
AC
86762003-03-28 Andrew Cagney <cagney@redhat.com>
8677
8678 * Makefile.in (d10v-tdep.o): Update dependencies.
8679 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8680 * d10v-tdep.c: Include "remote.h".
8681 (target_resume_hook): Delete extern declaration.
8682 (target_wait_loop_hook): Ditto.
8683 (tdisassemble_command): Eliminate assignment in "if" conditional.
8684 (d10v_ts2_register_sim_regno): Eliminate call to
8685 legacy_register_sim_regno.
8686 (d10v_ts3_register_sim_regno): Ditto.
8687
6949171e
JJ
86882003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8689
8690 * thread.c: Reindented.
8691 * lin-lwp.c: Ditto.
8692 * linux-proc.c: Ditto.
8693
98c7071f
BR
86942003-03-28 Bob Rossi <bob_rossi@cox.net>
8695
fbe586ae 8696 * MAINTAINERS (write after approval): Add myself.
98c7071f 8697
5edc9ca6
TR
86982003-03-27 Theodore A. Roth <troth@openavr.org>
8699
8700 * objc-exp.y: Add missing semi-colons.
8701
378bfd1b
AC
87022003-03-27 Andrew Cagney <cagney@redhat.com>
8703
8704 * regcache.c (write_sp): Delete function and references.
8705 * inferior.h (write_sp): Delete declaration.
8706 * valops.c (hand_function_call): Replace write_sp with
8707 TARGET_WRITE_SP.
8708 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8709 (sparc_pop_frame): Ditto.
8ffd9b1b 8710
56056df7
AC
87112003-03-27 Andrew Cagney <cagney@redhat.com>
8712
8713 * NEWS: Mention removal of support for hppa*-*-bsd* and
8714 hppa*-*-osf* natives, and hppa*-*-pro* target.
8715 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8716 * config/pa/xm-pa.h: Obsolete file.
8717 * config/pa/xm-hppab.h: Obsolete file.
8718 * config/pa/nm-hppab.h: Obsolete file.
8719 * config/pa/tm-hppab.h: Obsolete file.
8720 * config/pa/tm-hppao.h: Obsolete file.
8721 * config/pa/nm-hppao.h: Obsolete file.
8722 * config/pa/tm-pro.h: Obsolete file.
8723 * config/pa/hppaosf.mt: Obsolete file.
8724 * config/pa/hppaosf.mh: Obsolete file.
8725 * config/pa/hppapro.mt: Obsolete file.
8726 * config/pa/hppabsd.mt: Obsolete file.
8727 * config/pa/hppabsd.mh: Obsolete file.
8728 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8729 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8730 hppa*-*-osf*.
8731
5873a88d
AC
87322003-03-27 Andrew Cagney <cagney@redhat.com>
8733
8734 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8735 push_arguments. Don't set push_return_address or write_sp.
8736 (d10v_push_dummy_call): Replace d10v_push_arguments.
8737 (d10v_push_return_address, d10v_write_sp): Delete function,
8738 handled by push_dummy_call.
8739
b81774d8
AC
87402003-03-26 Andrew Cagney <cagney@redhat.com>
8741
8742 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8743 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8744 regcache and dummy_addr parameters.
8745 * gdbarch.h, gdbarch.c: Re-generate.
8746 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8747 available; assume it will handle stack alignment and return
8748 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8749 legacy_push_arguments.
8750 (legacy_push_arguments): Rename default_push_arguments.
8751 * value.h (legacy_push_arguments): Rename default_push_arguments.
8752 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8753 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8754 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8755 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8756 * config/i386/tm-symmetry.h: Update.
8757 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8758 * x86-64-tdep.c (x86_64_init_abi): Update.
8759 * v850-tdep.c (v850_gdbarch_init): Update.
8760 * sparc-tdep.c (sparc_gdbarch_init): Update.
8761 * sh-tdep.c (sh_gdbarch_init): Update.
8762 * s390-tdep.c (s390_gdbarch_init): Update.
8763 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8764 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8765 * mips-tdep.c (mips_gdbarch_init): Update.
8766 * mcore-tdep.c (mcore_gdbarch_init): Update.
8767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8768 * ia64-tdep.c (ia64_gdbarch_init): Update.
8769 * i386-tdep.c (i386_gdbarch_init): Update.
8770 * hppa-tdep.c (hppa_gdbarch_init): Update.
8771 * h8300-tdep.c (h8300_gdbarch_init): Update.
8772 * frv-tdep.c (frv_gdbarch_init): Update.
8773 * d10v-tdep.c (d10v_gdbarch_init): Update.
8774 * cris-tdep.c (cris_gdbarch_init): Update.
8775 * avr-tdep.c (avr_gdbarch_init): Update.
8776 * arm-tdep.c (arm_gdbarch_init): Update.
8777 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8778 * alpha-tdep.c (alpha_gdbarch_init): Update.
8779
f541410f
DJ
87802003-03-26 Daniel Jacobowitz <drow@mvista.com>
8781
8782 * signals/signals.c (do_target_signal_to_host): Correct realtime
8783 signal range test.
8784
69f567ae
DJ
87852003-03-26 Daniel Jacobowitz <drow@mvista.com>
8786
8787 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8788 (struct sal_chain, map_catch_names): Remove.
8789 (catch_exception_command_1): Don't call
8790 handle_gnu_4_16_catch_command.
8791
d5d14a5a
DJ
87922003-03-26 Daniel Jacobowitz <drow@mvista.com>
8793
8794 From Mark Dettinger <dettinge@de.ibm.com>:
8795 * dwarf2cfi.c (read_2u): Increment pointer by two.
8796
bdd73e22
DJ
87972003-03-26 Daniel Jacobowitz <drow@mvista.com>
8798
8799 * signals/signals.c: Fix typos in last change.
8800
960cb555
DJ
88012003-03-26 Daniel Jacobowitz <drow@mvista.com>
8802
8803 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8804 not already defined. Use __SIGRTMIN if available.
8805 (target_signal_from_host): Remove SIGRTMIN block.
8806 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8807 the signal is within the realtime range.
8808
f636b87d
AF
88092003-03-25 Adam Fedor <fedor@gnu.org>
8810
8811 * Makefile.in (infrun.o): Add $(language_h)
8812 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8813 for language specific trampolines.
8814 * language.h (struct language_defn): Add skip_trampoline.
8815 (skip_language_trampoline): Declare.
8816 * language.c (unk_lang_trampoline, skip_language_trampoline):
8817 New functions.
8818 (unknown_language_defn, auto_language_defn, local_language_defn):
8819 Add ukn_lang_trampoline.
8820 * ada-lang.c (ada_language_defn): Add NULL for language
8821 specific skip_trampoline.
8822 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8823 scm-lang.c: Likewise.
8824 * objc-lang.c (objc_skip_trampoline): New function.
8825 (objc_language_defn): Add objc_skip_trampoline.
8826
28f617b3 88272003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
8828
8829 * frame.c (get_prev_frame): Delay validating a frame's ID -
8830 non-NULL, didn't go backwards - until an attempt to unwind it to
8831 the previous frame.
8832
f933a9c5
AC
88332003-03-25 Andrew Cagney <cagney@redhat.com>
8834
8835 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8836 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8837 * gdbarch.h, gdbarch.c: Re-generate.
8838 * config/sparc/tm-sparc.h
8839 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8840 * sparc-tdep.c (sparc_gdbarch_init): Set
8841 deprecated_extra_stack_alignment_needed.
8842 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8843 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8844 extra_stack_alignment_needed.
8845 * v850-tdep.c (v850_gdbarch_init): Ditto.
8846 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8847 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8848 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8849 * cris-tdep.c (cris_gdbarch_init): Ditto.
8850 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8851 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8852
4183d812
AC
88532003-03-25 Andrew Cagney <cagney@redhat.com>
8854
8855 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8856 STORE_STRUCT_RETURN.
8857 * gdbarch.h, gdbarch.c: Regenerate.
8858 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8859 (d10v_push_arguments): Set the struct return register.
8860 (d10v_gdbarch_init): Update.
8861 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8862 * x86-64-tdep.c (x86_64_init_abi): Update.
8863 * vax-tdep.c (vax_gdbarch_init): Update.
8864 * v850-tdep.c (v850_gdbarch_init): Update.
8865 * sparc-tdep.c (sparc_gdbarch_init): Update.
8866 * sh-tdep.c (sh_gdbarch_init): Update.
8867 * s390-tdep.c (s390_gdbarch_init): Update.
8868 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8869 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8870 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8871 * mips-tdep.c (mips_gdbarch_init): Update.
8872 * mcore-tdep.c (mcore_gdbarch_init): Update.
8873 * m68k-tdep.c (m68k_gdbarch_init): Update.
8874 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8875 * ia64-tdep.c (ia64_gdbarch_init): Update.
8876 * i386-tdep.c (i386_gdbarch_init): Update.
8877 * hppa-tdep.c (hppa_gdbarch_init): Update.
8878 * h8300-tdep.c (h8300_gdbarch_init): Update.
8879 * frv-tdep.c (frv_gdbarch_init): Update.
8880 * cris-tdep.c (cris_gdbarch_init): Update.
8881 * avr-tdep.c (avr_gdbarch_init): Update.
8882 * arm-tdep.c (arm_gdbarch_init): Update.
8883 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8884
1bf6d5cc
AC
88852003-03-25 Andrew Cagney <cagney@redhat.com>
8886
8887 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8888 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8889 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8890 * gdbarch.h, gdbarch.c: Regenerate.
8891 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8892 call_dummy_stack_adjust_p.
8893 * vax-tdep.c (vax_gdbarch_init): Ditto.
8894 * v850-tdep.c (v850_gdbarch_init): Ditto.
8895 * sh-tdep.c (sh_gdbarch_init): Ditto.
8896 * s390-tdep.c (s390_gdbarch_init): Ditto.
8897 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8898 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8899 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8900 * mips-tdep.c (mips_gdbarch_init): Ditto.
8901 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8902 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8903 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8904 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8905 * i386-tdep.c (i386_gdbarch_init): Ditto.
8906 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8907 * frv-tdep.c (frv_gdbarch_init): Ditto.
8908 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8909 * cris-tdep.c (cris_gdbarch_init): Ditto.
8910 * avr-tdep.c (avr_gdbarch_init): Ditto.
8911 * arm-tdep.c (arm_gdbarch_init): Ditto.
8912 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8913 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8914 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8915 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8916 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8917 call_dummy_stack_adjust_p.
8918 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8919 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8920 * sparc-tdep.c (sparc32_push_arguments): Update.
8921 * valops.c (hand_function_call): Update.
8922
71c08af0
CV
89232003-03-25 Corinna Vinschen <vinschen@redhat.com>
8924
8925 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8926 set_gdbarch_char_signed.
8927
30757f90
RE
89282003-03-25 Richard Earnshaw <rearnsha@arm.com>
8929
8930 PR cli/548
8931 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8932
03d48a7d
RE
89332003-03-25 Richard Earnshaw <rearnsha@arm.com>
8934
8935 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8936 (_initialize_arm_tdep): Don't set tm_print_insn.
8937
2cf6873c
AF
89382003-03-24 Adam Fedor <fedor@gnu.org>
8939
8940 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8941 * objc-lang.h: Add multiple inclusion protection.
8942 (start_msglist, add_msglist, end_msglist): Additional declarations.
8943
17c0759e
RE
89442003-03-24 Richard Earnshaw <rearnsha@arm.com>
8945
8946 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8947 value was renamed to ARM_FLOAT_SOFT_FPA.
8948
618ce49f
AC
89492003-03-23 Andrew Cagney <cagney@redhat.com>
8950
8951 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8952 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8953 * gdbarch.h, gdbarch.c: Regenerate.
8954 * valops.c (hand_function_call): Update.
8955 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8956 * frame.c (legacy_saved_regs_this_id): Update.
8957 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8958 * dummy-frame.h: Update.
8959 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8960 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8961 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8962 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8963 * config/m68k/tm-sun3.h: Update.
8964 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8965 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8966 * x86-64-tdep.c (x86_64_init_abi): Update.
8967 * vax-tdep.c (vax_gdbarch_init): Update.
8968 * v850-tdep.c (v850_gdbarch_init): Update.
8969 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8970 * sh-tdep.c (sh_gdbarch_init): Update.
8971 * s390-tdep.c (s390_gdbarch_init): Update.
8972 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8973 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8974 (frame_get_saved_regs): Update.
8975 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8976 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8977 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8978 * mips-tdep.c (mips_gdbarch_init): Update.
8979 * mcore-tdep.c (mcore_gdbarch_init): Update.
8980 * m68k-tdep.c (m68k_gdbarch_init): Update.
8981 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8982 * ia64-tdep.c (ia64_gdbarch_init): Update.
8983 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8984 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8985 (i386_interix_back_one_frame): Update.
8986 * hppa-tdep.c (hppa_gdbarch_init): Update.
8987 (hppa_init_extra_frame_info): Update.
8988 * h8300-tdep.c (h8300_gdbarch_init): Update.
8989 * frv-tdep.c (frv_gdbarch_init): Update.
8990 * cris-tdep.c (cris_gdbarch_init): Update.
8991 * avr-tdep.c (avr_gdbarch_init): Update.
8992 * arm-tdep.c (arm_gdbarch_init): Update.
8993 * alpha-tdep.c (alpha_gdbarch_init): Update.
8994
fd50bc42
RE
89952003-03-22 Richard Earnshaw <rearnsha@arm.com>
8996
8997 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8998 (arm_get_fp_model): Declare.
8999 * arm-tdep.c (fp_model_strings): New string array.
9000 (arm_fp_model, current_fp_model): New variables.
9001 (arm_get_fp_model): New function.
9002 (arm_set_fp): New function.
9003 (set_fp_model_sfunc): New function.
9004 (show_fp_model): New function.
9005 (_initialize_arm_tdep): Add new command to set/show the FPU.
9006 (arm_extract_return_value): Use arm_get_fp_model.
9007 (arm_store_return_value): Likewise.
9008 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9009 to initialize the floating-point data types.
9010 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9011 model is FPA.
9012
26304000
RE
90132003-03-22 Richard Earnshaw <rearnsha@arm.com>
9014
9015 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9016 the current setting of each value.
9017 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9018 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9019 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9020 commands and add new version as subcommands of "set/show arm".
9021
afd7eef0
RE
90222003-03-22 Richard Earnshaw <rearnsha@arm.com>
9023
9024 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9025 (set_arm_command, show_arm_command): New functions.
9026 (_initialize_arm_tdep): Add them.
9027 (num_disassembly_options): Renamed from num_flavor_options.
9028 (valid_disassembly_styles): Renamed from valid_flavors.
9029 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9030 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9031 set_disassembly_flavor_sfunc.
9032 (set_disassembly_style): Renamed from set_disassembly_flavor.
9033 (arm_othernames): Updated.
9034 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9035 command. Add "set/show arm disassembly" commands. Deprecate
9036 "othernames" command.
9037
299a7944
RE
90382003-03-22 Richard Earnshaw <rearnsha@arm.com>
9039
9040 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9041 (arm-tdep.o): Depend on elf_arm_h.
9042
c1dac9e6
RE
90432003-03-22 Richard Earnshaw <rearnsha@arm.com>
9044
9045 * Makefile.in (coff_internal_h): Define.
9046 (arm-tdep.o): Update dependencies.
9047
2702d96c
RE
90482003-03-22 Richard Earnshaw <rearnsha@arm.com>
9049
9050 * arm-tdep.c (prologue_cache): Delete.
9051 (check_prologue_cache, save_prologue_cache): Delete.
9052 (arm_scan_prologue): Don't check or update the prologue_cache.
9053 (arm_gdb_arch_init): Don't initialize it.
9054 (_initialize_arm_tdep): Likewise.
9055
27d5d74b
SC
90562003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9057
9058 * MAINTAINERS (tui): Maintainer of tui code.
9059
1762d96d
CV
90602003-03-21 Corinna Vinschen <vinschen@redhat.com>
9061
9062 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9063 (i386-cygwin-tdep.o): Add dependencies.
9064 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9065 * i386-cygwin-tdep.c: New file.
9066 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9067 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9068
4c2e2391
AC
90692003-03-20 Andrew Cagney <cagney@redhat.com>
9070
f20d38b7
AC
9071 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9072 (handle_inferior_event): Remove code calling
9073 DYNAMIC_TRAMPOLINE_NEXTPC.
9074
0022b738
AC
9075 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9076 already has a full path.
9077
864dbc90
AC
9078 * main.c (gdb_main): Return 1.
9079 (captured_main): Call error to report an invalid interpreter.
9080
4c2e2391
AC
9081 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9082 * alpha-osf1-tdep.c: Include "gdb_string.h".
9083
5ef7553b
JB
90842003-03-19 J. Brobecker <brobecker@gnat.com>
9085
9086 Continuing work to convert the hppa targets to multiarch partial.
9087
9088 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9089 method, now that hppa_push_dummy_frame has a conformant prototype.
9090 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9091 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9092 for the switch to multiarch partial.
9093
7bde8967
KB
90942003-03-19 Kevin Buettner <kevinb@redhat.com>
9095
9096 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9097 when iss is issNull.
9098
b006a9e9
KB
90992003-03-18 Kevin Buettner <kevinb@redhat.com>
9100
9101 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9102 NUM_REGS bounds check.
9103
5e2e9765
KB
91042003-03-18 Kevin Buettner <kevinb@redhat.com>
9105
9106 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9107 * mips-tdep.c (gdb_assert.h): Include.
9108 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9109 (mips_register_name): Handle integer registers explicitly. Add
9110 bounds checking.
9111 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9112 (mips_lsi33k_reg_names): Don't list integer registers; they're
9113 handled by mips_register_name() now.
9114 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9115 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9116 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9117 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9118 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9119
a2867626
AC
91202003-03-18 Andrew Cagney <cagney@redhat.com>
9121
9122 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9123 a void pointer.
9124 * gdbtypes.h (print_scalar_formatted): Update declaration.
9125 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9126
06600e06
JB
91272003-03-18 J. Brobecker <brobecker@gnat.com>
9128
9129 * infrun.c (observer.h): Add #include.
9130 (normal_stop): Add call to observer_notify_normal_stop.
9131 * Makefile.in (infrun.o): Add dependency on observer.h.
9132
7daf4f5b
JB
91332003-03-18 J. Brobecker <brobecker@gnat.com>
9134
9135 Continuing work to convert the hppa targets to multiarch partial.
9136 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9137 parameter. Reformat comment.
9138 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9139 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9140 to match new profile.
9141
3371ccc0
JB
91422003-03-18 J. Brobecker <brobecker@gnat.com>
9143
9144 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9145 appear to be working in any case.
9146
4fbe891e
JB
91472003-03-18 J. Brobecker <brobecker@gnat.com>
9148
9149 * observer.c (observer_test_first_observer): New static variable.
9150 (observer_test_second_observer): Likewise.
9151 (observer_test_third_observer): Likewise.
9152 (observer_test_first_notification_function): New static function.
9153 (observer_test_second_notification_function): Likewise.
9154 (observer_test_third_notification_function): Likewise.
9155
a7ff40e7
JB
91562003-03-17 J. Brobecker <brobecker@gnat.com>
9157
9158 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9159 * somsolib.c (gdb_assert.h): Likewise.
9160 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9161 (somsolib.o): Likewise.
9162
26ca4152
AC
91632003-03-17 Andrew Cagney <cagney@redhat.com>
9164
9165 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9166 BFD. Simplify setting of di.endian.
9167
0a613259
AC
91682003-03-17 Andrew Cagney <cagney@redhat.com>
9169
9170 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9171 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9172
9173 From Elena Zannoni <ezannoni@redhat.com>
9174 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9175 vector and floating-point parameters.
9176 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9177 convention.
9178 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9179
1132738f
FN
91802003-03-17 Fernando Nasser <fnasser@redhat.com>
9181
9182 * MAINTAINERS: Remove my name from several maintainership roles.
9183
6dc42492
AC
91842003-03-17 Andrew Cagney <cagney@redhat.com>
9185
9186 Fix frame off-by-one bug.
9187 * frame-unwind.h (frame_this_id_ftype): Replace
9188 frame_unwind_id_ftype.
9189 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9190 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9191 with "prev_register".
9192 * frame-unwind.c (frame_unwind_find_by_pc): Return
9193 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9194 comment.
9195 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9196 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9197 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9198 (dummy_frame_unwind): Update.
9199 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9200 sentinel_frame_register_unwind.
9201 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9202 (sentinel_frame_unwinder): Update.
9203 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9204 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9205 * frame.c (create_sentinel_frame): Update. Initialize
9206 "prologue_cache" instead of "unwind_cache".
9207 (frame_register_unwind): Call this frame's prev_register with the
9208 next frame and this frame's prologue cache.
9209 (get_prev_frame): Simplify. Always call prev frame's this_id with
9210 this frame and prev frame's prologue cache. Document that this
9211 call is shifted one to the left when compared to the
9212 frame_register_unwind call.
9213 (legacy_saved_regs_prev_register): Replace
9214 frame_saved_regs_register_unwind.
9215 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9216 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9217 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9218 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9219 (d10v_frame_unwind): Update.
9220 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9221 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9222 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9223 "saved_regs" with "this_saved_regs".
9224
efd710d6
AC
92252003-03-16 Andrew Cagney <cagney@redhat.com>
9226
9227 * frame.c (frame_pop): Don't call target_store_registers. Fix
9228 problem reported by Mark Kettenis.
9229
4e259f09
MK
92302003-03-16 Mark Kettenis <kettenis@gnu.org>
9231
9232 * i386-tdep.c (i386_register_type): Renamed from
9233 i386_register_virtual_type. Adjust function signature.
9234 (i386_gdbarch_init): Set register_type instead of
9235 deprecated_max_register_raw_size,
9236 deprecated_max_register_virtual_size and register_virtual_type.
9237
055bb976
AC
92382003-03-14 Andrew Cagney <cagney@redhat.com>
9239
9240 * frame.c (get_prev_frame): When a legacy frame, always call
9241 legacy_get_prev_frame. Simplify unwind code using assumption that
9242 the unwinder is new.
9243 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9244 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9245 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9246
ac2adee5
AC
92472003-03-14 Andrew Cagney <cagney@redhat.com>
9248
9249 * frame.c (get_saved_register): Delete function.
9250 * frame.h (get_saved_register): Delete declaration.
9251 * xstormy16-tdep.c: Update comment.
9252 * regcache.h: Update comments.
9253 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9254 get_saved_register and extract_address, use
9255 frame_read_unsigned_register.
9256 (sparc_frame_saved_pc): Ditto.
9257 (sparc_get_saved_register): Instead of get_saved_register, use
9258 frame_register.
9259 (sparc_pop_frame): Ditto.
9260 * findvar.c: Update comments.
9261 (value_of_register): Call frame_register instead of
9262 get_saved_register.
9263 (value_from_register): Ditto.
9264 * config/sparc/tm-sparc.h: Update comment.
9265 * breakpoint.c: Update comment.
9266
129c1cd6
AC
92672003-03-14 Andrew Cagney <cagney@redhat.com>
9268
9269 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9270 GET_SAVED_REGISTER.
9271 * gdbarch.h, gdbarch.c: Re-generate.
9272 * frame.h: Update comments.
9273 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9274 * x86-64-tdep.c (x86_64_init_abi): Update.
9275 * sparc-tdep.c (sparc_gdbarch_init): Update.
9276 * sh-tdep.c (sh_gdbarch_init): Update.
9277 * mips-tdep.c (mips_gdbarch_init): Update.
9278 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9279 * cris-tdep.c (cris_gdbarch_init): Update.
9280 * ia64-tdep.c (ia64_gdbarch_init): Update.
9281 * frame.c (frame_register): Update.
9282 (get_saved_register): Update.
9283 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9284
749b82f6
AC
92852003-03-13 Andrew Cagney <cagney@redhat.com>
9286
9287 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9288 * gdbarch.h, gdbarch.c: Regenerate.
9289 * valops.c (hand_function_call): Update comment.
9290 * stack.c (return_command): Update comment.
9291 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9292 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9293 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9294 * x86-64-tdep.c (x86_64_init_abi): Update.
9295 * vax-tdep.c (vax_gdbarch_init): Update.
9296 * v850-tdep.c (v850_gdbarch_init): Update.
9297 * sparc-tdep.c (sparc_gdbarch_init): Update.
9298 * sh-tdep.c (sh_gdbarch_init): Update.
9299 * s390-tdep.c (s390_gdbarch_init): Update.
9300 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9301 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9302 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9303 * mips-tdep.c (mips_gdbarch_init): Update.
9304 * mcore-tdep.c (mcore_gdbarch_init): Update.
9305 * m68k-tdep.c (m68k_gdbarch_init): Update.
9306 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9307 * ia64-tdep.c (ia64_gdbarch_init): Update.
9308 * i386-tdep.c (i386_gdbarch_init): Update.
9309 * hppa-tdep.c (hppa_gdbarch_init): Update.
9310 * h8300-tdep.c (h8300_gdbarch_init): Update.
9311 * frv-tdep.c (frv_gdbarch_init): Update.
9312 * cris-tdep.c (cris_gdbarch_init): Update.
9313 * avr-tdep.c (avr_gdbarch_init): Update.
9314 * arm-tdep.c (arm_gdbarch_init): Update.
9315 * alpha-tdep.c (alpha_gdbarch_init): Update.
9316
1594fa56
AC
93172003-03-13 Andrew Cagney <cagney@redhat.com>
9318
9319 * frame.c (legacy_frame_p): New function.
9320 (get_prev_frame): Use legacy_frame_p.
9321 * frame.h (legacy_frame_p): Declare.
9322
7717fda3
V
93232003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9324
fbe586ae 9325 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9326 listing corrected.
9327
0c67cbe9
V
93282003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9329
fbe586ae 9330 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9331
03febf99
AC
93322003-03-12 Andrew Cagney <cagney@redhat.com>
9333
9334 * frame.c (get_prev_frame): Rename the frame parameter to
9335 "this_frame".
9336 (get_next_frame, legacy_get_prev_frame): Ditto.
9337
0a1e1ca1
AC
93382003-03-12 Andrew Cagney <cagney@redhat.com>
9339
9340 * frame.c (get_current_frame): Check target_has_registers before
9341 checking target_has_stack.
9342 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9343 instead of deprecated_selected_frame.
9344 * findvar.c (value_of_register): Pass "frame", not
9345 deprecated_selected_frame, to value_of_builtin_reg.
9346
a66a9c23
AC
93472003-03-12 Andrew Cagney <cagney@redhat.com>
9348
9349 * regcache.c (regcache_cooked_write_signed): New function.
9350 (regcache_cooked_write_unsigned): New function.
9351 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9352 (regcache_cooked_read_signed): Fix regnum in range assertion.
9353 * regcache.h (regcache_cooked_write_signed): Declare.
9354 (regcache_cooked_write_unsigned): Declare.
9355
8bedc050
AC
93562003-03-12 Andrew Cagney <cagney@redhat.com>
9357
9358 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9359 * gdbarch.h, gdbarch.c: Re-generate.
9360 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9361 * x86-64-tdep.h: Update.
9362 * x86-64-tdep.c (x86_64_init_abi): Update.
9363 * v850-tdep.c (v850_gdbarch_init): Update.
9364 * sparc-tdep.c (sparc_gdbarch_init): Update.
9365 * sh-tdep.c (sh_gdbarch_init): Update.
9366 * s390-tdep.c (s390_gdbarch_init): Update.
9367 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9368 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9369 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9370 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9371 * mips-tdep.c (mips_gdbarch_init): Update.
9372 * mcore-tdep.c (mcore_gdbarch_init): Update.
9373 * m68k-tdep.c (m68k_gdbarch_init): Update.
9374 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9375 * ia64-tdep.c (ia64_gdbarch_init): Update.
9376 * i386-tdep.c (i386_gdbarch_init): Update.
9377 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9378 * hppa-tdep.c (hppa_gdbarch_init): Update.
9379 * h8300-tdep.c (h8300_gdbarch_init): Update.
9380 * frv-tdep.c (frv_gdbarch_init): Update.
9381 * cris-tdep.c (cris_gdbarch_init): Update.
9382 * avr-tdep.c (avr_gdbarch_init): Update.
9383 * arm-tdep.c (arm_gdbarch_init): Update.
9384 * alpha-tdep.c (alpha_gdbarch_init): Update.
9385 * sh-tdep.c (sh_init_extra_frame_info): Update.
9386 (sh64_init_extra_frame_info): Update.
9387 * ns32knbsd-nat.c (frame_num_args): Update.
9388 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9389 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9390 (xstormy16_frame_chain_valid): Update.
9391 * vax-tdep.c (vax_saved_pc_after_call): Update.
9392 * v850-tdep.c (v850_frame_chain): Update.
9393 (v850_pop_frame): Update.
9394 (v850_init_extra_frame_info): Update.
9395 * sparc-tdep.c (setup_arbitrary_frame): Update.
9396 * ns32k-tdep.c (umax_frame_num_args): Update.
9397 * s390-tdep.c (s390_pop_frame_regular): Update.
9398 * mn10300-tdep.c (mn10300_frame_chain): Update.
9399 (mn10300_pop_frame_regular): Update.
9400 (mn10300_init_extra_frame_info): Update.
9401 * mips-tdep.c (mips_init_frame_pc_first): Update.
9402 (mips_frame_chain): Update.
9403 (mips_pop_frame): Update.
9404 * mcore-tdep.c (mcore_frame_chain): Update.
9405 (mcore_pop_frame): Update.
9406 (mcore_init_extra_frame_info): Update.
9407 * arch-utils.c (init_frame_pc_default): Update.
9408 * m68k-tdep.c (isi_frame_num_args): Update.
9409 (delta68_frame_num_args): Update.
9410 (news_frame_num_args): Update.
9411 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9412 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9413 (alpha_frame_chain): Update.
9414 (alpha_pop_frame): Update.
9415 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9416 (hppa_init_extra_frame_info): Update.
9417 (hppa_frame_chain): Update.
9418 (hppa_frame_chain_valid): Update.
9419 * cris-tdep.c (cris_init_extra_frame_info): Update.
9420 * avr-tdep.c (avr_init_extra_frame_info): Update.
9421 * arm-tdep.c (arm_frame_chain_valid): Update.
9422 (arm_init_extra_frame_info): Update.
9423 (arm_pop_frame): Update.
9424 * frame.c (frame_pc_unwind): Update.
9425 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9426 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9427 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9428 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9429 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9430 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9431
7a25a7c1
AC
94322003-03-12 Andrew Cagney <cagney@redhat.com>
9433
9434 Eliminate the need for POP_FRAME.
9435 * frame.c (do_frame_unwind_register): New function.
9436 (frame_pop): When no POP_FRAME, pop the frame using register
9437 unwind and a scratch regcache.
9438 (frame_saved_regs_pop): Delete function.
9439 (trad_frame_unwinder): Update.
9440 * d10v-tdep.c (d10v_frame_pop): Delete function.
9441 (d10v_frame_unwind): Update.
9442 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9443 (sentinel_frame_unwinder): Update.
9444 * dummy-frame.c (dummy_frame_pop): Delete function.
9445 (dummy_frame_unwind): Update.
9446 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9447 (struct frame_unwind): Update.
9448
2f38ef89
KB
94492003-03-11 Kevin Buettner <kevinb@redhat.com>
9450
9451 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9452 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9453 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9454 Do range checks on register number obtained from debugging info.
9455 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9456 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9457 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9458 mapping function.
9459 (do_fp_register_row): Fix typo which caused double type to be
9460 used when attempting to unpack a float.
9461
552f4abf
JB
94622003-03-11 J. Brobecker <brobecker@gnat.com>
9463
9464 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9465
e0d2ae16
AC
94662003-03-11 Andrew Cagney <cagney@redhat.com>
9467
9468 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9469 frame. Problem found by Corinna Vinschen.
9470
ddbfdd06
PM
94712003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9472
9473 * doublest.c (floatformat_from_length): Accept also
9474 the real size of 'long double' type.
9475
088b2ddc 94762003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9477
088b2ddc 9478 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9479 * breakpoint.c (bpstat_copy): Copy the command lines as well
9480 as the old value, to match what is freed in bpstat_clear.
9481
f56f77c1
DC
94822003-03-10 David Carlton <carlton@math.stanford.edu>
9483
9484 * minsyms.c (add_minsym_to_hash_table): Replace
9485 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9486 (compare_minimal_symbols, compact_minimal_symbols)
9487 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9488 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9489 of DEPRECATED_SYMBOL_MATCHES_NAME.
9490 (lookup_minimal_symbol_solib_trampoline): Ditto.
9491
5602984a
AC
94922003-03-10 Andrew Cagney <cagney@redhat.com>
9493
9494 * regcache.h (regcache_cooked_read_ftype): Define.
9495 (regcache_save, regcache_restore): Add a cooked_read parameter.
9496 * regcache.c (regcache_save, regcache_restore): Update.
9497 (do_cooked_read): New function.
9498 (regcache_cpy): Pass do_cooked_read to regcache_save and
9499 regcache_restore.
9500
8bedc050
AC
95012003-03-10 Andrew Cagney <cagney@redhat.com>
9502
9503 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9504 * gdbarch.h, gdbarch.c: Re-generate.
9505 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9506 * x86-64-tdep.h: Update.
9507 * x86-64-tdep.c (x86_64_init_abi): Update.
9508 * v850-tdep.c (v850_gdbarch_init): Update.
9509 * sparc-tdep.c (sparc_gdbarch_init): Update.
9510 * sh-tdep.c (sh_gdbarch_init): Update.
9511 * s390-tdep.c (s390_gdbarch_init): Update.
9512 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9513 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9514 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9515 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9516 * mips-tdep.c (mips_gdbarch_init): Update.
9517 * mcore-tdep.c (mcore_gdbarch_init): Update.
9518 * m68k-tdep.c (m68k_gdbarch_init): Update.
9519 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9520 * ia64-tdep.c (ia64_gdbarch_init): Update.
9521 * i386-tdep.c (i386_gdbarch_init): Update.
9522 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9523 * hppa-tdep.c (hppa_gdbarch_init): Update.
9524 * h8300-tdep.c (h8300_gdbarch_init): Update.
9525 * frv-tdep.c (frv_gdbarch_init): Update.
9526 * cris-tdep.c (cris_gdbarch_init): Update.
9527 * avr-tdep.c (avr_gdbarch_init): Update.
9528 * arm-tdep.c (arm_gdbarch_init): Update.
9529 * alpha-tdep.c (alpha_gdbarch_init): Update.
9530 * sh-tdep.c (sh_init_extra_frame_info): Update.
9531 (sh64_init_extra_frame_info): Update.
9532 * ns32knbsd-nat.c (frame_num_args): Update.
9533 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9534 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9535 (xstormy16_frame_chain_valid): Update.
9536 * vax-tdep.c (vax_saved_pc_after_call): Update.
9537 * v850-tdep.c (v850_frame_chain): Update.
9538 (v850_pop_frame): Update.
9539 (v850_init_extra_frame_info): Update.
9540 * sparc-tdep.c (setup_arbitrary_frame): Update.
9541 * ns32k-tdep.c (umax_frame_num_args): Update.
9542 * s390-tdep.c (s390_pop_frame_regular): Update.
9543 * mn10300-tdep.c (mn10300_frame_chain): Update.
9544 (mn10300_pop_frame_regular): Update.
9545 (mn10300_init_extra_frame_info): Update.
9546 * mips-tdep.c (mips_init_frame_pc_first): Update.
9547 (mips_frame_chain): Update.
9548 (mips_pop_frame): Update.
9549 * mcore-tdep.c (mcore_frame_chain): Update.
9550 (mcore_pop_frame): Update.
9551 (mcore_init_extra_frame_info): Update.
9552 * arch-utils.c (init_frame_pc_default): Update.
9553 * m68k-tdep.c (isi_frame_num_args): Update.
9554 (delta68_frame_num_args): Update.
9555 (news_frame_num_args): Update.
9556 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9557 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9558 (alpha_frame_chain): Update.
9559 (alpha_pop_frame): Update.
9560 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9561 (hppa_init_extra_frame_info): Update.
9562 (hppa_frame_chain): Update.
9563 (hppa_frame_chain_valid): Update.
9564 * cris-tdep.c (cris_init_extra_frame_info): Update.
9565 * avr-tdep.c (avr_init_extra_frame_info): Update.
9566 * arm-tdep.c (arm_frame_chain_valid): Update.
9567 (arm_init_extra_frame_info): Update.
9568 (arm_pop_frame): Update.
9569 * frame.c (frame_pc_unwind): Update.
9570 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9571 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9572 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9573 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9574 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9575 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9576
12cc2063
AC
95772003-03-10 Andrew Cagney <cagney@redhat.com>
9578
9579 * gdbarch.sh (gdbarch_unwind_pc): New method.
9580 * gdbarch.h, gdbarch.c: Regenerate.
9581 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9582 but use read_pc and FRAME_SAVED_PC as fall backs.
9583 (frame_saved_regs_pc_unwind): Delete function.
9584 (trad_frame_unwinder): Update.
9585 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9586 (struct frame_unwind): Update.
9587 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9588 (dummy_frame_unwind): Update.
9589 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9590 (sentinel_frame_unwinder): Update.
9591 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9592 (d10v_frame_unwind): Update.
9593 (d10v_unwind_pc): New function.
9594 (d10v_gdbarch_init): Set unwind_pc.
9595
ef840a37
AC
95962003-03-10 Andrew Cagney <cagney@redhat.com>
9597
a2ce2e56
AC
9598 * gdbarch.h: Re-generate.
9599
ef840a37
AC
9600 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9601 PC.
9602 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9603 the PC register.
9604
08f3424b
MK
96052003-03-08 Mark Kettenis <kettenis@gnu.org>
9606
9607 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9608
1248ede2
AC
96092003-03-08 Andrew Cagney <cagney@redhat.com>
9610
9611 * cli-out.c: Update copyright.
9612 (cli_out_data): Define typedef. Use instead of ui_out_data.
9613
f49bacc8
AC
96142003-03-08 Andrew Cagney <cagney@redhat.com>
9615
9616 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9617 the result.
9618
9b05f993
AC
96192003-03-07 Andrew Cagney <cagney@redhat.com>
9620
9621 * gdbarch.sh: Don't generate two macro definitions when an
9622 undefined macro taking no arguments.
9623 * gdbarch.h: Regenerate.
8ffd9b1b 9624
166f4c7b
ML
96252002-03-07 Michal Ludvig <mludvig@suse.cz>
9626
9627 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9628 (x86_64_unwind_dummy_id): New functions.
9629 (x86_64_init_abi): Register these two new functions.
9630
6d686a84
ML
96312003-03-07 Michal Ludvig <mludvig@suse.cz>
9632
9633 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 9634 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
9635 separate function.
9636 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9637
6314f104
AC
96382003-03-05 Andrew Cagney <cagney@redhat.com>
9639
9640 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9641 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9642 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9643 to use unwind_dummy_id when a dummy frame.
9644 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9645 predicate.
9646 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9647
ceea5145
AC
96482003-03-05 Andrew Cagney <cagney@redhat.com>
9649
9650 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9651 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9652 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9653 values.
9654
0d843116
AC
96552003-03-05 Andrew Cagney <cagney@redhat.com>
9656
9657 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9658 (struct d10v_unwind_cache): Delete field "frameless". Replace
9659 "next_addr" with "sp_offset". Add "r11_offset".
9660 (d10v_frame_unwind_cache): Update.
9661 (prologue_find_regs): Update. When "mv r11, sp", save the
9662 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9663 RN was saved in r11_offset.
9664
b2579786
AC
96652003-03-05 Andrew Cagney <cagney@redhat.com>
9666
9667 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9668 cached PC value in the next frame.
9669
218e5956
AC
96702003-03-05 Andrew Cagney <cagney@redhat.com>
9671
9672 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9673 "id_unwind_cache" with "id".
9674 (frame_id_unwind): Delete declaration.
9675 * frame.c (frame_id_unwind): Delete function.
9676 (get_prev_frame): Call the frame id unwind method directly. Store
9677 the returned next frame's ID value in NEXT_FRAME. Note that there
9678 is a problem with the wrong unwind ID being called with the wrong
9679 unwind cache.
9680
ed363b1b
DJ
96812003-03-05 Daniel Jacobowitz <drow@mvista.com>
9682
9683 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9684
fe1f4a5e
DJ
96852003-03-05 James Ingham <jingham@apple.com>
9686 Daniel Jacobowitz <drow@mvista.com>
9687
9688 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9689 (auto_cp_abi): New variable.
9690 (current_cp_abi, num_cp_abis): Make static.
9691 (CP_ABI_MAX): Define.
9692 (cp_abis): Turn into an array.
9693 (value_virtual_fn_field): Fix formatting.
9694 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9695 takes a pointer.
9696 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9697 (list_cp_abis, _initialize_cp_abi): New functions.
9698 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9699 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9700 switch_to_cp_abi. Update prototype for register_cp_abi.
9701 * Makefile.in (cp-abi.o): Update dependencies.
9702 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9703 instead of switch_to_cp_abi.
9704 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9705 register_cp_abi.
9706 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9707 register_cp_abi.
9708 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9709
e4adbba9
DJ
97102003-03-05 Daniel Jacobowitz <drow@mvista.com>
9711
9712 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9713 * dwarf2loc.c: Include "regcache.h".
9714 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9715 register_size.
9716 * Makefile.in (dwarf2loc.o): Update dependencies.
9717
91ccbfc1
TR
97182003-03-04 Theodore A. Roth <troth@openavr.org>
9719
9720 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9721 number of io registers reported by remote target is not a multiple of
9722 step.
9723
3d4e8fd2
DC
97242003-03-04 David Carlton <carlton@math.stanford.edu>
9725
9726 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9727 (lookup_symbol_aux_psymtabs): Update call to
9728 lookup_partial_symbol.
9729 (lookup_transparent_type, find_main_psymtab)
9730 (make_symbol_overload_list): Ditto.
9731
ed42d87b
KH
97322003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9733
9734 * MAINTAINERS (Write after approval): Update my email address.
9735
a0ed5532
AC
97362003-03-03 Andrew Cagney <cagney@redhat.com>
9737
9738 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9739 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9740 predicate. Replace MAX_REGISTER_RAW_SIZE.
9741 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9742 MAX_REGISTER_VIRTUAL_SIZE.
9743 * regcache.c (legacy_max_register_raw_size): New function.
9744 (legacy_max_register_virtual_size): New function.
9745 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9746 (MAX_REGISTER_RAW_SIZE): Define.
9747 (legacy_max_register_raw_size): Declare.
9748 (legacy_max_register_virtual_size): Declare.
9749 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9750 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9751 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9752 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9753 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9754 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9755 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9756 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9757 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9758 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9759 * vax-tdep.c (vax_gdbarch_init): Update.
9760 * v850-tdep.c (v850_gdbarch_init): Update.
9761 * sparc-tdep.c (sparc_gdbarch_init): Update.
9762 * sh-tdep.c (sh_gdbarch_init): Update.
9763 * s390-tdep.c (s390_gdbarch_init): Update.
9764 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9765 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9766 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9767 * mips-tdep.c (mips_gdbarch_init): Update.
9768 * mcore-tdep.c (mcore_gdbarch_init): Update.
9769 * m68k-tdep.c (m68k_gdbarch_init): Update.
9770 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9771 * ia64-tdep.c (ia64_gdbarch_init): Update.
9772 * i386-tdep.c (i386_gdbarch_init): Update.
9773 * hppa-tdep.c (hppa_gdbarch_init): Update.
9774 * h8300-tdep.c (h8300_gdbarch_init): Update.
9775 * frv-tdep.c (frv_gdbarch_init): Update.
9776 * cris-tdep.c (cris_gdbarch_init): Update.
9777 * avr-tdep.c (avr_gdbarch_init): Update.
9778 * arm-tdep.c (arm_gdbarch_init): Update.
9779 * alpha-tdep.c (alpha_gdbarch_init): Update.
9780 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9781 max_register_raw_size or max_register_virtual_size.
9782
8e437497
DC
97832003-03-03 David Carlton <carlton@math.stanford.edu>
9784
9785 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9786 SYMBOL_MATCHES_NAME, add comment.
9787 (SYMBOL_MATCHES_NATURAL_NAME): New.
9788 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9789 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9790 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9791 * symtab.c (lookup_partial_symbol): Use
9792 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9793 unhelpful comment.
9794 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9795 SYMBOL_MATCHES_NAME.
9796 Fix for PR c++/33.
9797
25120b0d
DC
97982003-03-03 David Carlton <carlton@math.stanford.edu>
9799
9800 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9801 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9802 by regexp matching against SYMBOL_NATURAL_NAME.
9803
78a11fb4
DC
98042003-03-03 David Carlton <carlton@math.stanford.edu>
9805
9806 * linespec.c (find_method): Extract code into collect_methods.
9807 (collect_methods): New.
9808
645dd519
MK
98092003-03-02 Mark Kettenis <kettenis@gnu.org>
9810
b4700d91
MK
9811 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9812 get_frame_base.
9813
645dd519
MK
9814 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9815 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9816
0aa7e1aa
SC
98172003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9818
8ffd9b1b 9819 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9820 and not regnum when summing the size of all registers up to regnum.
9821
f30ee0bc
AC
98222003-03-01 Andrew Cagney <cagney@redhat.com>
9823
9824 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9825 FRAME_INIT_SAVED_REGS.
9826 * gdbarch.h, gdbarch.c: Regenerate.
9827 * stack.c (frame_info): Update.
9828 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9829 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9830 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9831 * ns32k-tdep.c (ns32k_pop_frame): Update.
9832 * mips-tdep.c (mips_pop_frame): Update.
9833 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9834 * ia64-tdep.c (ia64_frame_chain): Update.
9835 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9836 (ia64_frameless_function_invocation): Update.
9837 (ia64_init_extra_frame_info): Update.
9838 (ia64_pop_frame_regular): Update.
9839 * frame.h (struct frame_info): Update comment.
9840 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9841 * frame.c (frame_saved_regs_register_unwind): Update.
9842 (frame_saved_regs_register_unwind): Update.
9843 (deprecated_generic_get_saved_register): Update.
9844 * cris-tdep.c: Update comment.
9845 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9846 Rename macro.
9847 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9848 * x86-64-tdep.c (x86_64_init_abi): Update.
9849 * vax-tdep.c (vax_gdbarch_init): Update.
9850 * v850-tdep.c (v850_gdbarch_init): Update.
9851 * sparc-tdep.c (sparc_gdbarch_init): Update.
9852 * sh-tdep.c (sh_gdbarch_init): Update.
9853 * s390-tdep.c (s390_gdbarch_init): Update.
9854 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9855 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9856 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9857 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9858 * mips-tdep.c (mips_gdbarch_init): Update.
9859 * mcore-tdep.c (mcore_gdbarch_init): Update.
9860 * m68k-tdep.c (m68k_gdbarch_init): Update.
9861 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9862 * ia64-tdep.c (ia64_gdbarch_init): Update.
9863 * i386-tdep.c (i386_gdbarch_init): Update.
9864 * frv-tdep.c (frv_gdbarch_init): Update.
9865 * avr-tdep.c (avr_gdbarch_init): Update.
9866 * arm-tdep.c (arm_gdbarch_init): Update.
9867 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9868
42fa7c0f
AC
98692003-03-01 Andrew Cagney <cagney@redhat.com>
9870
9871 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9872 option enum and switch. When no windows, set the interpreter to
9873 INTERP_CONSOLE.
8ffd9b1b 9874
49c7e338
AC
98752003-03-01 Andrew Cagney <cagney@redhat.com>
9876
9877 * main.c (captured_main): Replace magic option characters with an
9878 enum.
9879
e9582e71
AC
98802003-03-01 Andrew Cagney <cagney@redhat.com>
9881
9882 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9883 INIT_EXTRA_FRAME_INFO.
9884 * gdbarch.h, gdbarch.c: Regenerate.
9885 * arm-tdep.c: Update comments.
9886 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9887 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9888 * frame.h, avr-tdep.c: Ditto.
9889 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9890 (create_new_frame, legacy_get_prev_frame): Ditto.
9891 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9892 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9893 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9894 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9895 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9896 * v850-tdep.c (v850_gdbarch_init): Ditto.
9897 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9898 * sh-tdep.c (sh_gdbarch_init): Ditto.
9899 * s390-tdep.c (s390_gdbarch_init): Ditto.
9900 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9901 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9902 * mips-tdep.c (mips_gdbarch_init): Ditto.
9903 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9904 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9905 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9906 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9907 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9908 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9909 * frv-tdep.c (frv_gdbarch_init): Ditto.
9910 * cris-tdep.c (cris_gdbarch_init): Ditto.
9911 * avr-tdep.c (avr_gdbarch_init): Ditto.
9912 * arm-tdep.c (arm_gdbarch_init): Ditto.
9913 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9914 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9915
35cac7cf
AC
99162003-03-01 Andrew Cagney <cagney@redhat.com>
9917
9918 * gdbarch.sh (register_type): New function with predicate.
9919 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9920 * gdbarch.h, gdbarch.c: Re-generate.
9921 * arch-utils.c (generic_register_byte): Use generic_register_size.
9922 (generic_register_size): When available, use
9923 gdbarch_register_type.
9924 * regcache.c (init_regcache_descr): When available, initialize the
9925 register type array using gdbarch_register_type. If the
9926 architecture supplies gdbarch_register_type, do not use the legacy
9927 regcache layout.
9928 * d10v-tdep.c (d10v_register_type): Replace
9929 d10v_register_virtual_type.
9930 (d10v_gdbarch_init): Set register_type instead of
9931 register_virtual_type.
9932
7b83296f
AC
99332003-03-01 Andrew Cagney <cagney@redhat.com>
9934
9935 * Makefile.in (ax-gdb.o): Update dependencies.
9936 * ax-gdb.c: Include "regcache.h".
9937 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9938 * findvar.c (value_of_register): Ditto.
9939 * infcmd.c (default_print_registers_info): Ditto.
9940
eadc1c87
MK
99412003-03-01 Mark Kettenis <kettenis@gnu.org>
9942
9943 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9944 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9945
14143612
MK
99462003-03-01 Mark Kettenis <kettenis@gnu.org>
9947
9948 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9949 of STREQ.
9950
a55cc764
DJ
99512003-02-28 Daniel Jacobowitz <drow@mvista.com>
9952
9953 * Makefile.in (dwarf2loc.o): Update dependencies.
9954 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9955 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9956 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9957 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9958 (locexpr_tracepoint_var_ref): New function.
9959 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9960
08a617da
AC
99612003-02-28 Andrew Cagney <cagney@redhat.com>
9962
9963 * regcache.c (register_size): New function.
9964 * regcache.h (register_size): Declare
9965 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9966 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9967
4224873a
DC
99682003-02-28 David Carlton <carlton@math.stanford.edu>
9969
9970 * linespec.c (decode_compound): Extract code into find_method.
9971 (find_method): New.
9972
ccdc5d7f
JB
99732003-02-28 J. Brobecker <brobecker@gnat.com>
9974
9975 * Makefile.in: Add rules to build and link in observer.o.
9976
974e8ced
JB
99772003-02-27 J. Brobecker <brobecker@gnat.com>
9978
9979 * observer.c: Minor comments edits.
9980
7a28f973
JB
99812003-02-27 J. Brobecker <brobecker@gnat.com>
9982
9983 * observer.h, observer.c: New file.
9984
27cddce2
AC
99852003-02-27 Andrew Cagney <cagney@redhat.com>
9986
9987 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9988
b94a41a1
SC
99892003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9990
9991 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9992 (M6812_OP_STS_EXT): Likewise.
9993 (m6811_prologue): Use the above to recognize prologue.
9994 (m6812_prologue): Likewise.
9995
c8be8951
DC
99962003-02-27 David Carlton <carlton@math.stanford.edu>
9997
9998 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9999 SYMBOL_PRINT_NAME.
10000 (compare_psymbols): Ditto.
10001 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10002
d05bb1fc
MS
100032003-02-27 Michael Snyder <msnyder@redhat.com>
10004
4e845cd3
MS
10005 * f-lang.c (build_fortran_types): New function.
10006 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10007 * doublest.c (extract_floating): Fix warning text.
10008
f3824013
AC
100092003-02-27 Andrew Cagney <cagney@redhat.com>
10010
10011 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10012 predicate. Replaces PUSH_DUMMY_FRAME.
10013 * gdbarch.h, gdbarch.c: Regnerate.
10014 * valops.c (hand_function_call): Update. Call
10015 generic_push_dummy_frame directly.
10016 * vax-tdep.c (vax_gdbarch_init): Update.
10017 * sparc-tdep.c (sparc_gdbarch_init): Update.
10018 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10019 * m68k-tdep.c (m68k_gdbarch_init): Update.
10020 * hppa-tdep.c (hppa_gdbarch_init): Update.
10021 * alpha-tdep.c (alpha_gdbarch_init): Update.
10022 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10023 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10024 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10025 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10026 push_dummy_frame to generic_push_dummy_frame.
10027 * v850-tdep.c (v850_gdbarch_init): Ditto.
10028 * sh-tdep.c (sh_gdbarch_init): Ditto.
10029 * s390-tdep.c (s390_gdbarch_init): Ditto.
10030 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10031 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10032 * mips-tdep.c (mips_gdbarch_init): Ditto.
10033 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10034 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10035 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10036 * i386-tdep.c (i386_gdbarch_init): Ditto.
10037 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10038 * frv-tdep.c (frv_gdbarch_init): Ditto.
10039 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10040 * cris-tdep.c (cris_gdbarch_init): Ditto.
10041 * avr-tdep.c (avr_gdbarch_init): Ditto.
10042 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10043
ad188201
KB
100442003-02-26 Kevin Buettner <kevinb@redhat.com>
10045
10046 * mips-tdep.c (show_mips_abi): New function.
10047 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10048 command ``show mips abi''.
10049
6b37567a 100502003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10051
6b37567a 10052 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10053 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10054 more sline entries have been seen for the function.
10055
d3e0a5bf
MC
100562003-02-26 Michael Chastain <mec@shout.net>
10057
10058 * configure: Regenerate with autoconf 000227.
10059
18972eea
MC
100602003-02-26 Michael Chastain <mec@shout.net>
10061
10062 Close PR build/660.
10063 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10064 for old libc5/glibc.
10065 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10066
0bbde931
KW
100672003-02-26 Kris Warkentin <kewarken@qnx.com>
10068
10069 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10070 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10071
27ca5dad
MC
100722003-02-26 Michael Chastain <mec@shout.net>
10073
10074 * configure.in: New variable HAVE_UINTPTR_T.
10075 * configure, config.in: Regenerated.
10076
6f88d630
DJ
100772003-02-26 Daniel Jacobowitz <drow@mvista.com>
10078
10079 Fix PR build/1097.
10080 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10081
b14185ce
AC
100822003-02-25 Andrew Cagney <cagney@redhat.com>
10083
10084 * frame.c (get_prev_frame): Add comment on check for
10085 inside_entry_func. Only check for inside_entry_file when not a
10086 dummy and not a sentinel. Check that the new frame is not inner
10087 to the old frame.
10088
ac2bd0a9
AC
100892003-02-25 Andrew Cagney <cagney@redhat.com>
10090
10091 * frame.c (frame_debug): New variable.
10092 (_initialize_frame): Add "set/show debug frame" command.
10093 (get_prev_frame): When frame_debug, print reason why unwind
10094 failed.
10095
b18a0fd2
MC
100962003-02-25 Michael Chastain <mec@shout.net>
10097
10098 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10099 to avoid uintptr_t definition problems.
10100
22abf04a
DC
101012003-02-25 David Carlton <carlton@math.stanford.edu>
10102
10103 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10104 (SYMBOL_LINKAGE_NAME): Ditto.
10105 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10106 SYMBOL_LINKAGE_NAME.
10107 (struct general_symbol_info): Expand comment.
10108 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10109 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10110 (SYMBOL_MATCHES_REGEXP): Ditto.
10111 * symtab.c (symbol_natural_name): New function.
10112 * objfiles.h: Replace all uses of SYMBOL_NAME by
10113 DEPRECATED_SYMBOL_NAME.
10114 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10115 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10116 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10117 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10118 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10119 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10120 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10121 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10122 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10123 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10124 * ada-exp.y: Ditto.
10125 * ada-exp.y: Update copyright.
10126 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10127 * cp-valprint.c: Ditto.
10128
1a5848f6
JJ
101292003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10130
10131 * infptrace.c (detach): Do not flag error if ptrace detach fails
10132 and errno is set to ESRCH.
10133
7343d46a
AC
101342003-02-24 Andrew Cagney <cagney@redhat.com>
10135
10136 * infptrace.c (udot_info): Change type of udot_off to long. Use
10137 paddr when printing udot_off's value.
10138
49fa1dc2
DC
101392003-02-24 David Carlton <carlton@math.stanford.edu>
10140
10141 * symtab.c (make_symbol_overload_list): Only read in partial
10142 symtabs containing a matching partial symbol.
10143
0fe19209
DC
101442003-02-24 David Carlton <carlton@math.stanford.edu>
10145
10146 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10147 do the comparison, not strcmp.
10148 * symfile.c (compare_psymbols): Ditto.
10149 * defs.h: Declare strcmp_iw_ordered.
10150 * utils.c (strcmp_iw_ordered): New function.
10151
8e3ee7b5
JB
101522003-02-24 Jim Blandy <jimb@redhat.com>
10153
10154 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10155 support, shared libs): Remove my name from here, to better reflect
10156 reality.
10157
7df1a324
KW
101582003-02-24 Kris Warkentin <kewarken@qnx.com>
10159
10160 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10161 (target_ops): Add to_have_continuable_watchpoint.
10162 * target.c (update_current_target): Add INHERIT line for
10163 to_have_continuable_watchpoint.
10164 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10165 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10166 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10167 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10168
d1c76907
EZ
101692003-02-24 Elena Zannoni <ezannoni@redhat.com>
10170
10171 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10172 maintainership.
10173
2610b0bf
KW
101742003-02-24 Kris Warkentin <kewarken@qnx.com>
10175
f46169db
KW
10176 * solib.c (solib_open): Call target defined search function after
10177 failing with solib-search-path.
10178 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10179 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10180
9a3c34fe
KW
101812003-02-24 Kris Warkentin <kewarken@qnx.com>
10182
f46169db 10183 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10184
2417dd25
SC
101852003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10186
10187 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10188
b631436b
SC
101892003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10190
10191 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10192 (m68hc11_add_reggroups): New function.
10193 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10194 (m68hc11_gdbarch_init): Install the reggroups.
10195 (_initialize_m68hc11_tdep): Initialize them.
10196
0aa8c1e4
JW
101972003-02-21 James E Wilson <wilson@tuliptree.org>
10198
10199 * MAINTAINERS: Update my email address.
10200
50ceaba5
DC
102012003-02-21 David Carlton <carlton@math.stanford.edu>
10202
10203 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10204
4c2df51b
DJ
102052003-02-21 Daniel Jacobowitz <drow@mvista.com>
10206
10207 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10208 * symtab.h: Add opaque declarations of struct axs_value and
10209 struct agent_expr.
10210 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10211 (struct location_funcs): New type.
10212 (struct symbol): Add "loc" to aux_value.
10213 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10214 * dwarf2read.c: Include "dwarf2expr.h".
10215 (dwarf2_symbol_mark_computed): New function.
10216 (read_func_scope): Use it.
10217 (var_decode_location): New function.
10218 (new_symbol): Use it.
10219 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10220
10221 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10222 (dwarf2expr_h, dwarf2loc_h): New variables.
10223 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10224 (dwarf2expr.o, dwarf2loc.o): New rules.
10225 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10226 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10227 LOC_COMPUTED_ARG.
10228 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10229 * m2-exp.y (yylex): Likewise.
10230 * printcmd.c (address_info, print_frame_args): Likewise.
10231 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10232 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10233 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10234 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10235 * symtab.c (lookup_block_symbol): Likewise.
10236
5784d15e
AF
102372003-02-20 Adam Fedor <fedor@gnu.org>
10238
10239 * symtab.h: Remove objc_specific struct
10240 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10241 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10242 Have language_objc use cplus_specific struct.
10243
d4cad8db
TT
102442003-02-20 Tom Tromey <tromey@redhat.com>
10245
10246 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10247 TYPE_NAME, when printing a String value. PR java/1075.
10248
2f9a90b4
AF
102492003-02-20 Adam Fedor <fedor@gnu.org>
10250
d38074a8 10251 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10252 * objc-lang.c (find_methods): Make static.
2f9a90b4 10253
6f17862b
CF
102542003-02-20 Christopher Faylor <cgf@redhat.com>
10255
10256 * win32-nat.c (get_image_name): Check return value from
10257 ReadProcessMemory.
10258 (child_xfer_memory): Ditto.
10259
715d1656
AO
102602003-02-20 Alexandre Oliva <aoliva@redhat.com>
10261
10262 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10263 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10264 '${exec_prefix}' (in addition to the expansion thereof) as
10265 relocatable.
10266 * configure: Rebuilt.
10267
b1262a02
DC
102682003-02-20 David Carlton <carlton@math.stanford.edu>
10269
10270 * symtab.c (search_symbols): Revert the search_symbols part of my
10271 2002-12-23 patch. Add comment.
10272
7134143f
DJ
102732002-02-20 Daniel Jacobowitz <drow@mvista.com>
10274
10275 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10276 * dbxread.c (elfstab_build_psymtabs): Don't call
10277 install_minimal_symbols.
10278 (stabsect_build_psymtabs): Likewise.
10279 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10280 earlier.
10281 * somread.c (som_symfile_read): Call install_minimal_symbols
10282 and do_cleanups earlier.
10283 * nlmread.c (nlm_symfile_read): Likewise.
10284 * mdebugread.c (elfmdebug_build_psymtabs): Call
10285 install_minimal_symbols and make appropriate cleanups.
10286
cf466558
KB
102872003-02-20 Kevin Buettner <kevinb@redhat.com>
10288
10289 * solib.c (reload_shared_libraries): New function.
10290 (_initialize_solib): Add callbacks for ``set solib-search-path''
10291 and ``set solib-absolute-prefix''.
10292
de5ad195
DC
102932003-02-20 David Carlton <carlton@math.stanford.edu>
10294
10295 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10296 expand comment.
10297 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10298 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10299 * ada-typeprint.c (ada_typedef_print): Ditto.
10300 * ax-gdb.c (gen_var_ref): Ditto.
10301 * breakpoint.c (print_one_breakpoint): Ditto.
10302 * buildsym.c (finish_block): Ditto.
10303 * c-valprint.c (c_val_print): Ditto.
10304 * expprint.c (print_subexp): Ditto.
10305 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10306 * infcmd.c (jump_command): Ditto.
10307 * linespec.c (decode_line_2, decode_compound): Ditto.
10308 * maint.c (maintenance_translate_address): Ditto.
10309 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10310 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10311 Ditto.
8ffd9b1b
AJ
10312 * p-valprint.c (pascal_val_print): Ditto.
10313 * stabsread.c (define_symbol): Ditto.
de5ad195 10314 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10315 (print_frame_arg_vars, return_command): Ditto.
10316 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10317 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10318 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10319 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10320 (rbreak_command): Ditto.
10321 * tracepoint.c (tracepoints_info): Ditto.
10322 * typeprint.c (typedef_print): Ditto.
10323 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10324 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10325 * ada-typeprint.c: Update Copyright.
10326 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10327 * tracepoint.c, cli/cli-cmds.c: Ditto.
10328
f796e4be
KB
103292003-02-20 Kevin Buettner <kevinb@redhat.com>
10330
10331 * frame.c (generic_unwind_get_saved_register): Make non-static.
10332 * frame.h (generic_unwind_get_saved_register): Declare.
10333 * mips-tdep.c (read_next_frame_reg): Fetch register from
10334 current regcache when frame is NULL.
10335 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10336 that must be NULL.
10337 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10338 instead of frame_register_unwind().
10339
836cc9f4
AC
103402003-02-20 Andrew Cagney <ac131313@redhat.com>
10341
10342 * remote-sim.c (gdbsim_insert_breakpoint)
10343 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10344 code.
10345
501eef12
AC
103462003-02-20 Andrew Cagney <ac131313@redhat.com>
10347
10348 * remote.c (_initialize_remote): Add commands "set/show remote
10349 hardware-watchpoint-limit" and "set/show remote
10350 hardware-breakpoint-limit".
10351 (remote_hw_watchpoint_limit): Initialize to -1.
10352 (remote_hw_breakpoint_limit): Ditto.
10353 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10354
1b6bc7e0
CF
103552003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10356
10357 * coff-pe-read.c: New file - support reading of minimal symbols from a
10358 portable executable using the export table.
10359 * coff-pe-read.h: New file.
10360 * coffread.c: Include coff-pe-read.h.
10361 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10362 debugging symbols found.
10363 * Makefile.in (SFILES): Add coff-pe-read.o.
10364 (coff_pe_read_h): Define.
10365 (COMMON_OBS): Add coff-pe-read.o.
10366 (coffread.o): Add coff_pe_read_h dependency.
10367 (coff-pe-read.o): New target.
10368
fe898f56
DC
103692003-02-19 David Carlton <carlton@math.stanford.edu>
10370
10371 * Makefile.in (SFILES): Add block.c.
10372 (block_h): New.
10373 (COMMON_OBS): Add block.o.
10374 (block.o): New.
10375 (x86-64-tdep.o): Add $(block_h).
10376 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10377 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10378 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10379 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10380 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10381 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10382 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10383 * value.h: Add opaque declaration for struct block.
10384 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10385 * ada-lang.h: Ditto.
10386 * x86-64-tdep.c: #include "block.h"
10387 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10388 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10389 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10390 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10391 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10392 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10393 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10394 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10395 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10396 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10397 * symtab.c (block_function): Ditto.
10398 (contained_in): Ditto.
10399 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10400 block.h. Add opaque declaration for struct block.
10401 * symtab.h: Move block_function and contained_in declarations to
10402 block.h. Add opaque declarations for struct block, struct
10403 blockvector.
10404 (struct block): Move to block.h.
10405 (struct blockvector): Ditto.
10406 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10407 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10408 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10409 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10410 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10411 Ditto.
10412 * block.c: New file.
10413 * block.h: New file.
10414
173345b5
TR
104152003-02-19 Theodore A. Roth <troth@openavr.org>
10416
10417 * avr-tdep.c (avr_extract_return_value): Remove function.
10418 (avr_store_return_value): Remove function.
10419 (avr_extract_struct_value_address): Remove function.
10420 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10421
338ef23d
AC
104222003-02-19 Andrew Cagney <ac131313@redhat.com>
10423
10424 * rs6000-tdep.c: Include "gdb_assert.h".
10425 (registers_e500): Add "acc" and "spefscr".
10426 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10427 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10428 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10429 really is "r0".
10430 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10431
5412f5f3
KS
104322003-02-18 Keith Seitz <keiths@redhat.com>
10433
10434 * Makefile.in: Add gdbtk-interps.c.
10435
881324eb
KB
104362003-02-18 Kevin Buettner <kevinb@redhat.com>
10437
10438 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10439 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10440
6a2f5abf
AC
104412003-02-18 Andrew Cagney <cagney@redhat.com>
10442
10443 * symtab.h (struct objfile): Add opaque declaration.
10444
54c7009d
EZ
104452003-02-18 Elena Zannoni <ezannoni@redhat.com>
10446
10447 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10448 * dbxread.c (process_one_symbol): Use last_function_start rather
10449 than function_start_offset to find the real beginning of the
10450 current function. The latter is just the text section offset on
10451 some systems, the former is always the real function start.
54c7009d 10452
7ee6d7eb
AC
104532003-02-17 Andrew Cagney <cagney@redhat.com>
10454
10455 * configure.in: Revert ${target} != ${host}.
10456
2846da9b
AC
104572003-02-17 Andrew Cagney <ac131313@redhat.com>
10458
10459 * configure.in (Makefile): Use the test ${target} != ${host},
10460 instead of the absence of the "nm.h" file, to determine of the
10461 configuration non-native.
10462 * configure: Regenerate.
8ffd9b1b 10463
3b27aeea
EZ
104642003-02-14 Elena Zannoni <ezannoni@redhat.com>
10465
fbe586ae 10466 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10467
10468 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10469 conditionalize tui_active test.
10470 (lookup_cmd_1): Ditto.
10471
b0b1c2c0
MK
104722003-02-14 Mark Kettenis <kettenis@gnu.org>
10473
10474 * configure.in: Add check for _etext.
10475 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10476 available.
10477 * config.in, configure: regenerated.
10478
8f05cde5
DJ
104792003-02-14 Daniel Jacobowitz <drow@mvista.com>
10480
10481 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10482
021e7609
AC
104832003-02-14 Andrew Cagney <ac131313@redhat.com>
10484
10485 * main.c (tui_version): Delete variable.
10486 (captured_main): When --tui, set interpreter_p to "tui" instead of
10487 enabling tui_version.
10488 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10489 tui_version.
10490 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10491 * cli/cli-cmds.c (disassemble_command): Ditto.
10492 * defs.h (tui_version): Delete declaration.
10493 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10494 (tui-interp.o): Add rules.
10495 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10496
e325dcec
CF
104972003-02-14 Christopher Faylor <cgf@redhat.com>
10498
36ffb041 10499 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10500 just-loaded dll.
10501
c4f90d87
JM
105022003-02-12 Jason Molenda (jmolenda@apple.com)
10503
fbe586ae
RH
10504 * symmisc.c (print_objfile_statistics): Include information about
10505 the number of psymtabs and symtabs in each object file.
c4f90d87 10506
e46e5ccd
KS
105072003-02-13 Keith R Seitz <keiths@redhat.com>
10508
10509 * main.h (struct captured_main_args): Add interpreter_p.
10510 * main.c (captured_main): Initialize interpreter_p from context.
10511 * gdb.c (main): Set interpreter_p argument.
10512 * Makefile.in (gdb.o): Add dependency for interps.h.
10513
fe97fe9c
AC
105142003-02-12 Andrew Cagney <ac131313@redhat.com>
10515
10516 * event-top.c (cli_command_loop): Delete declaration.
10517 (_initialize_event_loop): Delete function setting event_loop_hook.
10518 * event-top.h (cli_command_loop): Declare. Update copyright.
10519 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10520 * interps.c (current_interp_command_loop): When event_loop_p, call
10521 cli_command_loop.
10522
1cdac4ef
AC
105232003-02-12 Andrew Cagney <ac131313@redhat.com>
10524
10525 * interps.h (interp_command_loop_ftype): Change return type to
10526 void.
10527
48037ead
ML
105282003-02-12 Michal Ludvig <mludvig@suse.cz>
10529
10530 * x86-64-tdep.c (x86_64_extract_return_value)
10531 (x86_64_store_return_value): Use regcache instead of regbuf.
10532 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10533 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10534
033afc63
AC
105352003-02-11 Andrew Cagney <ac131313@redhat.com>
10536
10537 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10538 * aclocal.m4: Regenerate.
10539 * configure: Regenerate.
10540
10541 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10542 TCL_LD_SEARCH_FLAGS.
10543
40d02bca
ML
105442003-02-10 Michal Ludvig <mludvig@suse.cz>
10545
10546 * dwarf2cfi.c: Reindented.
10547
11308a41
AC
105482003-02-09 Andrew Cagney <ac131313@redhat.com>
10549
10550 * interps.c (clear_interpreter_hooks): Convert function definition
10551 to ISO C.
10552
e1c1c0f6
DC
105532003-02-07 David Carlton <carlton@math.stanford.edu>
10554
10555 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10556
ab5d3da6
KB
105572003-02-07 Kevin Buettner <kevinb@redhat.com>
10558
10559 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10560 (struct type): ...to here.
10561 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10562 field.
10563 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10564 (replace_type): Set length on all type variants for a given type.
10565
b8a92b82
AC
105662003-02-07 Andrew Cagney <ac131313@redhat.com>
10567
10568 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10569 <sys/stat.h>.
10570 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10571
5cb316ef
AC
105722003-02-06 Andrew Cagney <ac131313@redhat.com>
10573
2555fe1a
AC
10574 * Makefile.in (symm-nat.o): Update dependencies.
10575 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10576 (lynx-nat.o, ia64-linux-nat.): Ditto.
10577 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10578 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10579 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10580
44270758
AC
10581 * Makefile.in (inflow_h): Define.
10582 (procfs.o, inflow.o, procfs.o): Update dependencies.
10583 * inftarg.c (child_stop): Delete extern declaration of
10584 inferior_process_group. Include "inflow.h".
10585 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10586 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10587 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10588 (our_process_group, inferior_process_group): Extern declarations.
10589
df8f7274
AC
10590 * procfs.c: Include "gdb_assert.h".
10591
5cb316ef
AC
10592 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10593 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10594 * jv-typeprint.c (java_type_print_base): Ditto.
10595 * typeprint.c (typedef_print): Eliminate STREQ.
10596 * cli/cli-script.c (define_command, define_command): Ditto.
10597 * main.c (captured_main): Ditto.
10598 * values.c (lookup_internalvar): Ditto.
10599 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10600 within `if' conditional.
10601 * linespec.c (decode_line_2): Ditto.
10602 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10603 (bfd_openw_with_cleanup): Ditto.
10604
2a28ccea
MK
106052003-02-07 Mark Kettenis <kettenis@gnu.org>
10606
10607 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10608 legacy_extract_return_value and store_return_value to
10609 legacy_return_value.
10610
786b8124
CF
106112003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10612
10613 * win32-nat.c (get_relocated_section_addrs): New function. Find
10614 section load addresses for symbol handling in relocated DLLs.
10615 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10616
b871e4ec
FF
106172003-02-05 Fred Fish <fnf@intrinsity.com>
10618
10619 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10620 '=' and '!='.
10621 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10622 with '&' and '=='.
10623 (angel_RDI_info): Ditto.
10624 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10625 with '&' and '!='.
10626 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 10627
4389a95a 106282003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
10629 Keith Seitz <keiths@redhat.com>
10630 Elena Zannoni <ezannoni@redhat.com>
10631 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
10632
10633 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10634 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10635 (SUBDIR_MI_OBS): Add "mi-interp.o".
10636 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10637 (SFILES): Add "interps.c".
10638 (COMMON_OBS): Add "interps.o".
10639 (interps_h, mi_main_h): Define.
10640 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10641 (mi-main.o, main.o, event-top.o): Update dependencies.
10642 * cli/cli-interp.c: New file.
10643 * interps.h, interps.c: New files.
10644 * top.c: (gdb_init): Don't install the default interpreter, handed
10645 by captured_main.
10646 * main.c: Include "interps.h".
10647 (interpreter_p): Note that it should malloc'ed.
10648 (captured_command_loop): Call current_interp_command_loop.
10649 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10650 xfree and xstrdup when updating interpreter_p. Install the
10651 default interpreter. Add hack to stop mi1's copyright notice
10652 being encoded.
10653 * event-top.h (gdb_setup_readline): Declare.
10654 (gdb_disable_readline): Declare.
10655 * event-top.c: Include "interps.h".
10656 (display_gdb_prompt): Call current_interp_display_prompt_p.
10657 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10658 gdb_stdlog, and gdb_stdtarg.
10659 (_initialize_event_loop): Don't call gdb_setup_readline.
10660 * cli-out.c (cli_out_set_stream): New function.
10661 * cli-out.h (cli_out_set_stream): Declare.
10662
ff3b5810
MK
106632003-02-06 Mark Kettenis <kettenis@gnu.org>
10664
10665 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10666 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10667 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10668 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10669 config/i386/i386v42mp.mt: Removed.
10670
5b729aa5
MK
106712003-02-05 Mark Kettenis <kettenis@gnu.org>
10672
10673 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10674 GDB_OSABI_SOLARIS.
10675
8cc15142
MC
106762003-02-05 Michael Chastain <mec@shout.net>
10677
10678 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10679 2.12.1 and earlier versions.
10680
5aa5d4b9
AC
106812003-02-05 Andrew Cagney <ac131313@redhat.com>
10682
10683 Remove orphaned hosts, targets and files.
10684 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10685 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10686 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10687 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10688 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10689 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10690 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10691 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10692 * config/sparc/tm-sp64sim.h: Delete.
10693 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10694 hosts.
10695 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10696 mips*-dec-mach3* targets.
10697
b68767c1
MC
106982003-02-04 Michael Chastain <mec@shout.net>
10699
10700 * NEWS: Fix typo: sepcifying -> specifying.
10701
5ae7ca1d
MC
107022003-02-04 Michael Chastain <mec@shout.net>
10703
10704 * dwarfread.c: Add documentation on the state of dwarf-1,
10705 looking towards obsoletion.
10706
d08a4280
MC
107072003-02-03 Michael Chastain <mec@shout.net>
10708
10709 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10710 gdb/testsuite/gdb.c++/pr-1023.exp.
10711
e9be73e4
AC
107122003-02-04 Andrew Cagney <ac131313@redhat.com>
10713
10714 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10715 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10716
10717 * utils.c (init_page_info): Delete reference to MPW in comments.
10718 * main.c (captured_main): Delete #ifdef MPW.
10719
05d57f6f
AC
107202003-02-04 Andrew Cagney <ac131313@redhat.com>
10721
8ffd9b1b 10722 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
10723 * monitor.c (monitor_expect): Obsolete reference to m32r.
10724 * configure.tgt: Mark m32r-*-elf* as obsolete.
10725 * MAINTAINERS: Mark m32k as obsolete.
10726 * m32r-rom.c: Obsolete file.
10727 * config/m32r/m32r.mt: Obsolete file.
10728 * config/m32r/tm-m32r.h: Obsolete file.
10729 * m32r-stub.c: Obsolete file.
10730 * m32r-tdep.c: Obsolete file.
10731
8b0e5691
AC
107322003-02-04 Andrew Cagney <ac131313@redhat.com>
10733
10734 * NEWS: Mention that the z8k-zilog-none is obsolete.
10735 * MAINTAINERS: Mark z8k as obsolete.
10736 * configure.tgt: Obsolete the z8k-*-coff* target.
10737 * config/z8k/z8k.mt: Obsolete file.
10738 * config/z8k/tm-z8k.h: Obsolete file.
10739 * z8k-tdep.c: Obsolete file.
10740
67f16606
AC
107412003-02-04 Andrew Cagney <ac131313@redhat.com>
10742
10743 * NEWS: Mention that the mn10200-elf is obsolete.
10744 * configure.tgt: Obsolete mn10200-*-* target.
10745 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10746 mention that the mn10200 is obsolete.
10747 * breakpoint.h: Ditto.
10748 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10749 * config/mn10200/mn10200.mt: Obsolete file.
10750 * config/mn10200/tm-mn10200.h: Obsolete file.
10751 * mn10200-tdep.c: Obsolete file.
10752
fd2299bd
AC
107532003-02-04 Andrew Cagney <ac131313@redhat.com>
10754
10755 * MAINTAINERS: Mark h8500 as obsolete.
10756 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10757 * findvar.c (value_from_register): Ditto.
10758 * h8500-tdep.c: Mark file as obsolete.
10759 * config/h8500/h8500.mt: Ditto.
10760 * config/h8500/tm-h8500.h: Ditto.
10761 * NEWS: Mention that h8500 is obsolete.
10762
eb9a305d
DC
107632003-02-04 David Carlton <carlton@math.stanford.edu>
10764
10765 * objfiles.c (allocate_objfile): Always set name. Add comment at
10766 start of function.
10767 * jv-lang.c (get_dynamics_objfile): Add comment.
10768
406fc7fb
DC
107692003-02-04 David Carlton <carlton@math.stanford.edu>
10770
10771 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10772 * printcmd.c (build_address_symbolic): Replace uses of
10773 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10774 SYMBOL_NAME, and asm_demangle.
10775 Update copyright.
10776
93d91629
DC
107772003-02-04 David Carlton <carlton@math.stanford.edu>
10778
10779 * linespec.c (decode_compound): Extract code into
10780 lookup_prefix_sym.
10781 (lookup_prefix_sym): New function.
10782
1c5cb38e
DC
107832003-02-04 David Carlton <carlton@math.stanford.edu>
10784
10785 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10786 FLOAT_COERCION_BADNESS.
10787 * gdbtypes.c (rank_one_type): Replace all uses of
10788 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10789
0cf824c9
JB
107902003-02-04 Jim Blandy <jimb@redhat.com>
10791
10792 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10793 section, let dwarf_macinfo_section point to it, not
10794 dwarf_loc_section.
10795
a2d356b0
DJ
107962003-02-04 Daniel Jacobowitz <drow@mvista.com>
10797
10798 Pointed out by Anton Blanchard <anton@samba.org>.
10799 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10800 (ppc_linux_at_sigtramp_return_path): Use it.
10801
2de7ced7
DJ
108022003-02-04 Daniel Jacobowitz <drow@mvista.com>
10803
10804 * defs.h (streq): Add prototype.
10805 * utils.c (streq): New function.
10806
10807 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10808 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10809 * mdebugread.c (new_symbol): Likewise.
10810 * stabsread.c (define_symbol): Likewise.
10811 * coffread.c (process_coff_symbol): Likewise.
10812 * dwarfread.c (new_symbol): Likewise.
10813
10814 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10815 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10816 here.
10817 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10818 SYMBOL_INIT_DEMANGLED_NAME.
10819 * objfiles.c: Include "hashtab.h".
10820 (allocate_objfile): Call htab_set_functions_ex for the
10821 demangled_names_hash.
10822 (free_objfile): Call htab_delete for the demangled_names_hash.
10823 * objfiles.h (struct htab): Add declaration.
10824 (struct objfile): Add demangled_names_hash.
10825 * symfile.c: Include "hashtab.h".
10826 (reread_symbols): Call htab_delete for the demangled_names_hash.
10827 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10828 SYMBOL_NAME in the bcache.
10829 * symtab.c: Include "hashtab.h". Update comments.
10830 (create_demangled_names_hash, symbol_set_names): New functions.
10831 (symbol_find_demangled_name): New function, broken out from
10832 symbol_init_demangled_names.
10833 (symbol_init_demangled_names): Use it.
10834 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10835 (SYMBOL_SET_NAMES): New macro.
10836 (symbol_set_names): Add prototype.
10837
15831452
JB
108382003-02-03 Jim Blandy <jimb@redhat.com>
10839
10840 Use a single, consistent representation for an empty minimal
10841 symbol table in an objfile.
10842 * objfiles.c (terminate_minimal_symbol_table): New function.
10843 (allocate_objfile): Call it.
10844 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10845 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10846 non-NULL.
15831452
JB
10847 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10848 objfile has minimal symbols, compare minimal_symbol_count to zero,
10849 instead of comparing msymbols with NULL.
10850 * objfiles.c (have_minimal_symbols): Same.
10851 * solib-sunos.c (solib_add_common_symbols): Call
10852 terminate_minimal_symbol_table.
10853 * symfile.c (reread_symbols): Same.
8ffd9b1b 10854
ffc65945
KB
108552003-02-03 Kevin Buettner <kevinb@redhat.com>
10856
10857 * s390-tdep.c (s390_address_class_type_flags)
10858 (s390_address_class_type_flags_to_name)
10859 (s390_address_class_name_to_type_flags): New functions.
10860 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10861 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10862
f211c6d4
MS
108632003-02-03 Michael Snyder <msnyder@redhat.com>
10864
10865 * arm-tdep.c: Fix spell-o in comment.
10866
659b0389
ML
108672003-02-03 Michal Ludvig <mludvig@suse.cz>
10868
10869 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10870 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10871 error messages to contain BFD filename.
659b0389 10872
3b31d625
EZ
108732003-02-02 Elena Zannoni <ezannoni@redhat.com>
10874
997b089a 10875 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10876 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10877 (do_mixed_source_and_assembly): Use
10878 make_cleanup_ui_out_tuple_begin_end and
10879 make_cleanup_ui_out_tuple_begin_end.
10880 (do_mixed_source_and_assembly): Ditto.
10881 * thread.c (do_captured_list_thread_ids): Ditto.
10882 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10883 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10884 ui_out_tuple_end): Delete prototypes.
10885 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10886 ui_out_list_end, ui_out_tuple_end): Delete.
10887
10888 From Kevin Buettner <kevinb@redhat.com>:
10889 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10890 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10891 (do_cleanup_table_end): New functions.
10892 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10893 Use cleanups to invoke_ui_out_tuple_end().
10894 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10895 * cli/cli-setshow.c (cmd_show_list): Use
10896 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10897
5b181d62
AC
108982003-02-02 Andrew Cagney <ac131313@redhat.com>
10899
10900 * frame.c (frame_unwind_register): New function.
10901 (frame_unwind_unsigned_register): Use.
10902 (frame_unwind_signed_register): Use.
10903 (frame_read_register): New function.
10904 * frame.h (frame_unwind_register): Declare.
10905 (frame_read_register): Declare.
10906
10907 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10908 and frame_unwind_register instead of read_memory, write_register
10909 and deprecated_write_register_bytes.
10910
5f601589
AC
109112003-02-02 Andrew Cagney <ac131313@redhat.com>
10912
10913 * frame.h: Note that namelen can be negative.
10914 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10915 NAME's length.
10916
10917 * NEWS: Mention that the d10v's `regs' command is deprecated.
10918 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10919 (d10v_print_registers_info): New function.
10920 (show_regs): Call d10v_print_registers_info.
10921 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10922
6a3fe0a4
MK
109232003-02-02 Mark Kettenis <kettenis@gnu.org>
10924
10925 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10926 lost in the previous patch.
10927
075559bc
AC
109282003-02-01 Andrew Cagney <ac131313@redhat.com>
10929
10930 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
10931 * stack.c (print_frame_info_base): Output complete FRAME tuple
10932 for synthesized frames.
075559bc 10933
6789195b
AC
109342003-02-02 Andrew Cagney <ac131313@redhat.com>
10935
10936 * mips-nat.c (zerobuf): Delete.
10937 (fetch_inferior_registers): Alloc local zerobuf.
10938 (fetch_core_registers): Alloc local zerobuf.
10939 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10940 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10941 * thread-db.c (thread_db_store_registers): Ditto.
10942 * sh-tdep.c (sh_do_register): Ditto.
10943 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10944 * remote-sim.c (gdbsim_store_register): Ditto.
10945 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10946 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10947 * monitor.c (monitor_supply_register): Ditto.
10948 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10949 * mips-nat.c (fetch_inferior_registers): Ditto.
10950 * m68klinux-nat.c (fetch_register): Ditto.
10951 * lynx-nat.c (fetch_inferior_registers): Ditto.
10952 (fetch_inferior_registers): Ditto.
10953 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10954 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10955 (hpux_thread_store_registers): Ditto.
10956 * hppah-nat.c (fetch_register): Ditto.
10957 * hppab-nat.c (fetch_register): Ditto.
10958 * hppa-tdep.c (pa_register_look_aside): Ditto.
10959 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10960 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10961
e669114a
AC
109622003-02-01 Andrew Cagney <ac131313@redhat.com>
10963
10964 * gdbarch.sh: Explictly specify all method levels. When a
10965 variable with an empty level, provide a non-multi-arch default.
10966 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10967 * gdbarch.h: Re-generate.
10968 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10969 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10970
9a043c1d
AC
109712003-02-01 Andrew Cagney <ac131313@redhat.com>
10972
10973 * defs.h (host_pointer_to_address): Delete declaration.
10974 (address_to_host_pointer): Delete declaration.
10975 * utils.c (host_pointer_to_address): Delete function.
10976 (address_to_host_pointer): Delete function.
10977 * procfs.c (procfs_address_to_host_pointer): New function.
10978 * procfs.c (proc_set_watchpoint): Use.
10979 (procfs_can_use_hw_breakpoint): Update comments.
10980 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10981 (som_solib_add): Use.
10982 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10983 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10984
7ca9f392
AC
109852003-02-01 Andrew Cagney <ac131313@redhat.com>
10986
94bbfd30
AC
10987 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10988 strlen d_name.
10989
7ca9f392
AC
10990 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10991 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10992 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10993 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10994 (define_symbol): Update.
10995 * symfile.c (generic_load): Remove references to nindy.
10996 * symtab.c: Remove references to nindy.
10997
31a85ea2
AC
109982003-02-01 Andrew Cagney <ac131313@redhat.com>
10999
11000 * infcmd.c (print_float_info): Delete code conditional on
11001 FLOAT_INFO.
11002 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11003 * config/m68k/nm-apollo68b.h: Ditto.
11004 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11005 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11006 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11007
f6e85fc8
MK
110082003-02-01 Mark Kettenis <kettenis@gnu.org>
11009
6015b6a0
MK
11010 * config/i386/tm-i386os9k.h: Removed.
11011
f7a30bdf
MK
11012 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11013 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11014 they're identical to i[3456]86-*-sysv* now.
11015 * config/i386/i386v32.mh: Removed.
11016 * config/i386/xm-i386v32.h: Removed.
11017 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11018
28d52111
MK
11019 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11020
4d3f6bce
MK
11021 * config/i386/i386dgux.mh: Removed.
11022 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11023
f6e85fc8
MK
11024 * configure.in: Fix typo.
11025 * configure: Regenerated.
11026
53955967
DC
110272003-01-31 David Carlton <carlton@math.stanford.edu>
11028
11029 * dwarf2read.c (dwarf2_locate_sections): Set
11030 dwarf_ranges_section.
11031
b1364885
AC
110322003-01-31 Andrew Cagney <ac131313@redhat.com>
11033
8dbb1c65
AC
11034 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11035 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11036
8731e58e
AC
11037 * utils.c: Re-indent.
11038
b1364885
AC
11039 * config/djgpp/fnchange.lst: Delete nindy files.
11040 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11041 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11042 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11043 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11044 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11045 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11046 * Makefile.in (init.c): Remove nindy references.
11047 (saber_gdb): Delete rule.
11048 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11049 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11050 and a68v-nat.c.
11051 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11052 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11053 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11054 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11055 nindy-share/stop.h.
11056 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11057 * saber.suppress: Delete file.
11058
086df311
DJ
110592003-01-31 Daniel Jacobowitz <drow@mvista.com>
11060
11061 * dbxread.c (stabs_data): New static variable.
11062 (fill_symbuf): Support an in-memory buffer for stabs data.
11063 (stabs_seek): New function.
11064 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11065 (read_ofile_symtab): Use stabs_seek.
11066 (elfstab_build_psymtabs): Take an asection* instead of
11067 an offset and size. Relocate the stabs data if necessary.
11068 Save the section* for dbx_psymtab_to_symtab.
11069 * dwarf2read.c: Add section variables for each debug section.
11070 (dwarf2_locate_sections): Fill them in.
11071 (dwarf2_read_section): Take an asection* argument.
11072 Relocate the section contents if necessary.
11073 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11074 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11075 it to dwarf2_read_section.
11076 (dwarf2_build_frame_info): Update callers.
11077 * elfread.c (elf_symfile_read): Update call to
11078 elfstab_build_psymtabs.
11079 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11080 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11081 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11082 * symfile.c (symfile_dummy_outputs): New function.
11083 (symfile_relocate_debug_section): New function.
11084 * symfile.h (symfile_relocate_debug_section): Add prototype.
11085
87d1b352
RH
110862003-01-31 Richard Henderson <rth@redhat.com>
11087
11088 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11089 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11090 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11091 * alpha-tdep.c (alpha_register_name): Add "unique".
11092 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11093 (ALPHA_UNIQUE_REGNUM): New.
11094 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11095
c48861fb
AC
110962003-01-31 Andrew Cagney <ac131313@redhat.com>
11097
11098 * README: Remove reference to Ericsson 1800 monitor.
11099 * Makefile.in (remote-es.o): Delete rule.
11100 (ALLDEPFILES): Delete remote-es.c.
11101 * remote-es.c: Delete file.
11102 * config/m68k/es1800.mt: Delete file.
11103 * config/djgpp/fnchange.lst: Update.
11104 * configure.tgt: Delete m68*-ericsson-* target.
11105
d764a824
AF
111062003-01-31 Adam Fedor <fedor@gnu.org>
11107
11108 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11109 Remove duplicate/shadowing variable of same name.
11110
fe36c4f4
JB
111112003-01-30 Jim Blandy <jimb@redhat.com>
11112
11113 * symfile.c (find_separate_debug_file): Assert that the objfile's
11114 directory name we compute ends with a slash, and then assume that
11115 that's so everywhere we use it.
11116
cb741690
DJ
111172003-01-30 Daniel Jacobowitz <drow@mvista.com>
11118
11119 * valops.c (value_assign): Flush frame cache after stores to memory
11120 also.
11121
96ee5227
AC
111222003-01-30 Andrew Cagney <ac131313@redhat.com>
11123
11124 * Makefile.in (mon960-rom.o): Delete rule.
11125 * mon960-rom.c: Delete file.
11126
7f6104a9
AC
111272003-01-30 Andrew Cagney <ac131313@redhat.com>
11128
11129 * d10v-tdep.c: Include "frame-unwind.h".
11130 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11131 list.
11132 (next_addr, uses_frame): Delete.
11133 (struct d10v_unwind_cache): Define.
11134 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11135 Use info instead of next_addr and uses_frame globals.
11136 (d10v_frame_init_saved_regs): Delete function.
11137 (d10v_init_extra_frame_info): Delete function.
11138 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11139 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11140 init_frame_pc or frame_saved_pc.
11141 (d10v_pop_frame): Delete function.
11142 (do_d10v_pop_frame): Delete function.
11143 (d10v_frame_chain): Delete function.
11144 (d10v_frame_chain_valid): Delete function.
11145 (d10v_frame_pc_unwind): New function.
11146 (d10v_frame_id_unwind): New function.
11147 (saved_regs_unwinder): New function.
11148 (d10v_frame_register_unwind): New function.
11149 (d10v_frame_pop): New function.
11150 (d10v_frame_unwind): New variable.
11151 (d10v_frame_p): New function.
11152 (d10v_frame_saved_pc): Delete function.
11153 * Makefile.in (d10v-tdep.o): Update dependencies.
11154
cad2e848
JB
111552003-01-30 J. Brobecker <brobecker@gnat.com>
11156
11157 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11158 causing some regressions due to a change in the default value
11159 for this macro.
11160
af34e669
DJ
111612003-01-29 Richard Henderson <rth@redhat.com>
11162 Elena Zannoni <ezannoni@redhat.com>
11163 Daniel Jacobowitz <drow@mvista.com>
11164
11165 Fix PR gdb/961.
8ffd9b1b 11166 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11167 variables.
11168 (RANGES_SECTION): New.
11169 (dwarf_ranges_buffer): New variable.
11170 (struct comp_unit_head): Add member "die".
11171 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11172 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11173 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11174 (dwarf2_locate_sections): Likewise.
11175 (dwarf2_build_psymtabs): Read .debug_ranges.
11176 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11177 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11178 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11179 Look for DW_AT_ranges and return the bounding box.
11180
baa93fa6
CF
111812003-01-29 Brian Ford <ford@vss.fsi.com>
11182
11183 * win32-nat.c (cygwin_pid): Removed as unused.
11184 (child_attach): Try fall back to Cygwin pid.
11185
c63f977f
JB
111862003-01-29 Jim Blandy <jimb@redhat.com>
11187
11188 * objfiles.h (struct objfile): Doc fix.
11189
d62d1979
AC
111902003-01-29 Andrew Cagney <ac131313@redhat.com>
11191
11192 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11193 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11194 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11195 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11196 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11197 (FRAME_SAVED_PC): Change to a function with predicate.
11198 * gdbarch.h, gdbarch.c: Re-generate.
11199
1ae18a04
AC
112002003-01-28 Andrew Cagney <ac131313@redhat.com>
11201
52287340
AC
11202 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11203
1ae18a04
AC
11204 * complaints.c (complain): Delete function.
11205 * complaints.h (struct deprecated_complaint): Delete definition.
11206 (complain): Delete declaration.
11207
f2c16bd6
KB
112082003-01-28 Kevin Buettner <kevinb@redhat.com>
11209
11210 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11211 dummy frames.
11212
a94dd1fd
AC
112132003-01-27 Andrew Cagney <ac131313@redhat.com>
11214
11215 * sentinel-frame.h, sentinel-frame.c: New files.
11216 * Makefile.in (frame.o): Update dependencies.
11217 (SFILES): Add sentinel-frame.c.
11218 (sentinel_frame_h): Define.
11219 (COMMON_OBS): Add sentinel-frame.o.
11220 (sentinel-frame.o): Specify dependencies.
11221 * frame.c: Include "sentinel-frame.h".
11222 (frame_register_unwind): Rewrite assuming that there is always a a
11223 ->next frame.
11224 (frame_register, generic_unwind_get_saved_register): Ditto.
11225 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11226 (create_sentinel_frame, unwind_to_current_frame): New functions.
11227 (get_current_frame): Rewrite using create_sentinel_frame and
11228 unwind_to_current_frame. When possible, always create a frame.
11229 (create_new_frame): Set next to the sentinel frame.
11230 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11231 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11232 ID cache when necessary.
11233 (frame_saved_regs_id_unwind): Use frame_relative_level.
11234 (deprecated_generic_get_saved_register): Use frame_relative_level,
11235 get_frame_saved_regs, get_frame_pc, get_frame_base and
11236 get_next_frame.
11237 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11238 frame_register.
11239
5378adc4
DJ
112402003-01-27 Daniel Jacobowitz <drow@mvista.com>
11241
11242 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11243
51ee2ddc
DJ
112442003-01-27 Daniel Jacobowitz <drow@mvista.com>
11245
11246 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11247 (maintenance_set_profile_cmd): Use error () instead of warning ().
11248
d9feb4e7
DJ
112492003-01-27 Daniel Jacobowitz <drow@mvista.com>
11250
11251 * configure.in: Check that -pg works if using --enable-profiling.
11252 Check for monstartup and _mcleanup regardless of --enable-profiling.
11253 * maint.c: Check for monstartup and _mcleanup before using them.
11254 * config.in: Regenerated.
11255 * configure: Regenerated.
11256
2d188dd3
NC
112572003-01-24 Nick Clifton <nickc@redhat.com>
11258
11259 * Add sh2e support:
11260
11261 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11262
11263 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11264 (sh2e_show_regs): New.
11265 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11266 * config/sh/tm-sh.h: Added sh2e to comments.
11267
cb3c37b2
JB
112682003-01-23 Jim Blandy <jimb@redhat.com>
11269
11270 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11271 symbols found)" message here; we haven't checked for a separate
11272 debug info file yet, so we don't know yet.
11273 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11274 we've looked everywhere. Also, there's no need to print a special
11275 message when we're loading the separate debug info file: the one
11276 symbol_file_add prints is fine.
11277
5b5d99cf
JB
112782003-01-23 Alexander Larsson <alexl@redhat.com>
11279 Jim Blandy <jimb@redhat.com>
11280
11281 Add support for executables whose debug info has been separated
11282 out into a separate file, leaving only a link behind.
11283 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11284 and separate_debug_objfile_backlink.
11285 (put_objfile_before): New declaration.
11286 * symfile.c: #include "filenames.h".
11287 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11288 debug info in a separate file, read that, too. Save the addrs
11289 argument, so we can use it again to read the separated debug info;
11290 syms_from_objfile modifies the table we pass it.
11291 (reread_symbols): After re-reading an objfile, call
11292 reread_separate_symbols to refresh its separate debug info
11293 objfile, if it has one.
11294 (reread_separate_symbols, find_separate_debug_file,
11295 get_debug_link_info, separate_debug_file_exists): New functions.
11296 (debug_file_directory): New global var.
11297 (_initialize_symfile): Initialize debug_file_directory, and
11298 provide the new `set debug-file-directory' command to let the user
11299 change it.
11300 * objfiles.c (free_objfile): If this objfile has its debug info in
11301 a separate objfile, free that one too. If this is itself a
11302 separate debug info objfile, clear our parent's backlink.
11303 (put_objfile_before): New function.
11304 * utils.c (gnu_debuglink_crc32): New function.
11305 * defs.h (gnu_debuglink_crc32): New declaration.
11306 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11307 * configure.in: Handle --with-separate-debug-dir config option.
11308 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11309 * acconfig.h (DEBUGDIR): New macro.
11310 * configure, aclocal.m4, config.in: Regenerated.
11311
7e8580c1
JB
113122003-01-22 Jim Blandy <jimb@redhat.com>
11313
7904e09f
JB
11314 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11315 like the old symbol_file_add, but taking new arguments: you can
11316 now pass in either a `struct section_addr_info' list to say where
11317 each section is loaded, or a `struct section_offsets' table. Pass
11318 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11319 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11320 with the appropriate quiescent values for the new arguments.
11321
7e8580c1
JB
11322 * symfile.c: #include "gdb_assert.h".
11323 (syms_from_objfile): Add the ability to pass in a section offset
11324 table directly, as an alternative to the section_addr_info table.
11325 Document arguments better.
11326 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11327 * symfile.h (syms_from_objfile): Update declaration.
11328 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11329 syms_from_objfile.
11330 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11331
d28f9cdf
DJ
113322003-01-22 Daniel Jacobowitz <drow@mvista.com>
11333
11334 Original patch by Tom Tromey <tromey@cygnus.com> and
11335 Jason Molenda <jmolenda@apple.com>.
11336 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11337 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11338 * NEWS: Mention profiling.
11339 * configure.in (--enable-gdbtk): Fix typo.
11340 (--enable-profiling): New. Set PROFILE_CFLAGS.
11341 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11342 Fill in function.
11343 (profiling_state): New variable.
11344 (mcleanup_wrapper): New function.
11345 (_initialize_maint): Remove NOTYET, fix call to
11346 add_setshow_boolean_cmd for "maint set profile".
11347 * configure: Regenerated.
11348
df21e465
MH
113492003-01-21 Martin M. Hunt <hunt@redhat.com>
11350
11351 * Makefile.in (install-gdbtk): Install PNG images too.
11352
73c1f219
AC
113532003-01-21 Andrew Cagney <ac131313@redhat.com>
11354
11355 * exec.c (text_start): Delete global variable.
11356 (exec_file_attach): Make text_start local to the function.
11357 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11358 * valops.c (hand_function_call): Delete code that handles
11359 BEFORE_TEXT_END and AFTER_TEXT_END.
11360 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11361 of CALL_DUMMY_LOCATION.
11362 * gdbarch.c: Regenerate.
11363 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11364 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11365 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11366 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11367 (text_end): Delete extern declaration.
11368
eb4f72c5
AC
113692003-01-21 Andrew Cagney <ac131313@redhat.com>
11370
11371 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11372 * blockframe.c (backtrace_below_main): Move to "frame.c".
11373 (frame_chain_valid): Delete check for backtrace_below_main.
11374 (_initialize_blockframe): Delete initialization, move ``set
11375 backtrace-below-main'' command to "frame.c".
11376 (do_flush_frames_sfunc): Delete function.
11377 * frame.c: Include "command.h" and "gdbcmd.h".
11378 (frame_type_from_pc): New function.
11379 (create_new_frame): Use frame_type_from_pc.
11380 (legacy_get_prev_frame): New function.
11381 (get_prev_frame): Rewrite. When an old style frame, call
11382 legacy_get_prev_frame. Otherwize, unwind the PC first.
11383 (_initialize_frame): Add ``set backtrace-below-main'' command.
11384 * Makefile.in (frame.o): Update dependencies.
11385
778ce8cc
AC
113862003-01-19 Andrew Cagney <ac131313@redhat.com>
11387
11388 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11389 DEPRECATED_REGISTERS_INFO.
11390
01c193c8
AC
113912003-01-19 Andrew Cagney <ac131313@redhat.com>
11392
11393 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11394 Maintainers'. Update `Various Maintainers'.
11395
dedc2a2b
AC
113962003-01-19 Andrew Cagney <ac131313@redhat.com>
11397
11398 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11399 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11400 Suppress actual parameters when `-'.
11401 * gdbarch.h, gdbarch.c: Regenerate.
11402
b7261c70
AC
114032003-01-19 Andrew Cagney <ac131313@redhat.com>
11404
11405 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11406 code handling dummy frames.
11407
dbe9fe58
AC
114082003-01-19 Andrew Cagney <ac131313@redhat.com>
11409
11410 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11411 (struct frame_unwind): Add field pop.
11412 * frame.h (frame_pop): Declare.
11413 * frame.c (frame_saved_regs_pop): New function.
11414 (trad_frame_unwinder): Add frame_saved_regs_pop.
11415 (frame_pop): New function.
11416 * dummy-frame.c (dummy_frame_pop): New function.
11417 (discard_innermost_dummy): New function.
11418 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11419 (dummy_frame_unwind): Add dummy_frame_pop.
11420 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11421 * valops.c (hand_function_call): Ditto.
11422 * stack.c (return_command): Ditto.
11423
570b8f7c
AC
114242003-01-18 Andrew Cagney <ac131313@redhat.com>
11425
11426 * cris-tdep.c: Fix function declaration indentation.
11427 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11428 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11429 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11430 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11431 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11432 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11433
114342003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11435
11436 * README (Unpacking and Installation -- quick overview):
11437 Warn against ".../gdb-5.3/gdb/configure".
11438
494cca16
AC
114392003-01-18 Andrew Cagney <ac131313@redhat.com>
11440
11441 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11442 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11443 (struct frame_unwind): Declare opaque.
11444 (dummy_frame_p): Declare function.
11445 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11446 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11447 * dummy-frame.c: Include "frame-unwind.h".
11448 (dummy_frame_p): New function.
11449 (dummy_frame_unwind): New variable.
11450 * frame.c: Include "frame-unwind.h".
11451 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11452 to use the new unwind field.
11453 (set_unwind_by_pc): Delete function.
11454 (create_new_frame, get_prev_frame): Set unwind field using
11455 frame_unwind_find_by_pc.
11456 (trad_frame_unwind, trad_frame_unwinder): New variables.
11457 * frame.h (trad_frame_unwind): Declare variable.
11458 (frame_id_unwind_ftype): Delete declaration.
11459 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11460 (struct frame_unwind): Declare opaque.
11461 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11462 register_unwind with a single unwind pointer.
11463 * frame-unwind.h, frame-unwind.c: New files.
11464 * Makefile.in (SFILES): Add frame-unwind.c.
11465 (frame_unwind_h): Define.
11466 (COMMON_OBS): Add frame-unwind.o.
11467 (frame-unwind.o): Specify dependencies.
11468 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11469
4efb68b1
AC
114702003-01-18 Andrew Cagney <ac131313@redhat.com>
11471
11472 * ada-valprint.c: Eliminate PTR.
11473 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11474 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11475 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11476 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11477 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11478 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11479 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11480
a84d24ee
AC
114812003-01-17 Andrew Cagney <ac131313@redhat.com>
11482
762f08a3
AC
11483 * main.c (captured_main): Don't use PTR.
11484 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11485 * gdbtypes.c (lookup_primitive_typename): Ditto.
11486 (lookup_struct_elt_type): Ditto.
11487 * f-valprint.c (info_common_command): Ditto.
11488 (list_all_visible_commons): Ditto.
11489 * jv-typeprint.c (java_type_print_base): Ditto.
11490
a84d24ee
AC
11491 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11492 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11493 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11494 i386-interix-nat.c and i386-interix-tdep.c. Rename
11495 m68klinux-nat.c and m68klinux-tdep.c. Rename
11496 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11497 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11498 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11499 * main.c (captured_main): Use xfree, not free.
11500
c170fb60
AC
115012003-01-16 Andrew Cagney <ac131313@redhat.com>
11502
11503 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11504 ID back using a parameter.
11505 * frame.c (frame_id_unwind): Update call.
11506 (frame_saved_regs_id_unwind): Update.
11507 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11508 * dummy-frame.h (struct frame_id): Add opaque declaration.
11509 (dummy_frame_id_unwind): Update declaration.
11510
867f3898
AC
115112003-01-15 Andrew Cagney <ac131313@redhat.com>
11512
11513 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11514
40622be8 115152003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11516
40622be8 11517 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11518
ae66c1fc
EZ
115192003-01-14 Elena Zannoni <ezannoni@redhat.com>
11520
997b089a 11521 Fix PR gdb/898
ae66c1fc
EZ
11522 * breakpoint.c (until_break_command): Add new argument. Use it to
11523 decide whether to stop only at the current frame or not.
11524 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11525 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11526 call.
11527 (advance_command): New function.
11528 (_initialize_infcmd): Update help string for 'until' command.
11529 Add new 'advance' command.
11530
a04257e6
DC
115312003-01-14 David Carlton <carlton@math.stanford.edu>
11532
11533 * linespec.c (decode_line_1): Normalize comments.
11534 (set_flags): Ditto.
11535 (locate_first_half): Ditto.
11536 (decode_compound): Ditto.
11537 (symtab_from_filename): Ditto.
11538 (decode_all_digits): Ditto.
11539 (decode_dollar): Ditto.
11540 (find_methods): Ditto.
11541 (find_toplevel_char): Ditto.
11542
1bac305b
AC
115432003-01-13 Andrew Cagney <ac131313@redhat.com>
11544
11545 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11546 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11547 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11548 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11549 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11550 * language.c, language.h, m32r-tdep.c: Update copyright.
11551 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11552 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11553 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11554 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11555 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11556 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11557
25caa7a8
EZ
115582003-01-13 Elena Zannoni <ezannoni@redhat.com>
11559
11560 * stabsread.h (process_later, resolve_cfront_continuation):
11561 Obsolete.
11562 Update copyright years.
11563 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11564 Update copyright year.
11565 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11566 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11567 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11568 Update copyright year.
11569 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11570 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11571 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11572 (parse_partial_symbols): Obsolete cfront support.
11573 * stabsread.c
11574 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11575 macros.
11576 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11577 read_cfront_baseclasses, read_cfront_member_functions,
11578 resolve_cfront_continuation,read_cfront_static_fields,
11579 copy_cfront_struct_fields): Obsolete functions.
11580 (define_symbol, read_one_struct_field): Obsolete cfront support.
11581 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11582 Update Copyright year.
11583
7789c6f5
EZ
115842003-01-13 Elena Zannoni <ezannoni@redhat.com>
11585
11586 * stack.c (print_frame_info, print_stack_frame_base_stub,
11587 print_stack_frame_base, show_and_print_stack_frame_stub,
11588 show_and_print_stack_frame, print_only_stack_frame_stub,
11589 print_only_stack_frame): Delete functions.
11590 (print_stack_frame_stub): Call print_frame_info instead of
11591 print_frame_info_base.
11592 (print_frame_info_base): Rename to print_frame_info.
11593 (backtrace_command_1): Call print_frame_info, instead of
11594 print_frame_info_base.
11595 (current_frame_command): Call print_stack_frame, instead of
11596 print_only_stack_frame.
11597 (frame_command): Call print_stack_frame, instead of
11598 show_and_print_stack_frame.
11599 (up_command): Ditto.
11600 (down_command): Ditto.
11601 * frame.h (print_only_stack_frame): Delete prototype.
11602 * infrun.c (normal_stop): Call print_stack_frame, instead of
11603 show_and_print_stack_frame.
11604 * thread.c (info_threads_command): Call print_stack_frame, instead
11605 of print_only_stack_frame.
11606
3f5a3016
AC
116072003-01-13 Andrew Cagney <ac131313@redhat.com>
11608
d99ba314
AC
11609 * README (Graphical interface to GDB): Update URL. Point at
11610 gdb/links/.
11611
3f5a3016
AC
11612 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11613 version match.
11614
083ae935
DJ
116152003-01-13 Daniel Jacobowitz <drow@mvista.com>
11616
11617 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11618 lines.
11619
5365276c
DJ
116202003-01-13 Daniel Jacobowitz <drow@mvista.com>
11621
11622 * thread-db.c (attach_thread): Prototype.
11623 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11624 thread information (ti), and valid flags (th_valid, ti_valid).
11625 (attach_thread): Move target_pid_to_str call to after the thread
11626 is added to GDB's list. Initialize the cache.
11627 (thread_get_info_callback, thread_db_map_id2thr)
11628 (thread_db_get_info): New functions.
11629 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11630 (thread_db_store_registers, thread_db_thread_alive)
11631 (thread_db_get_thread_local_address): Use them.
11632 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11633 of calling error() for threads in unknown state.
11634
11635 (clear_lwpid_callback): New function.
11636 (thread_db_resume): Use it to clear the cache.
11637
9fc30b6b
DJ
116382003-01-13 Daniel Jacobowitz <drow@mvista.com>
11639
11640 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11641 (resume_callback): Remove dead code.
11642
8f871025
AC
116432003-01-13 Andrew Cagney <ac131313@redhat.com>
11644
11645 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11646 predicate.
11647 * gdbarch.h, gdbarch.c: Regenerate.
11648 * stack.c (frame_info): Only initialize the saved registers when
11649 FRAME_INIT_SAVED_REGS_P.
11650 * frame.c (frame_saved_regs_register_unwind): Assert
11651 FRAME_INIT_SAVED_REGS_P.
11652 (deprecated_generic_get_saved_register): Ditto.
11653
3f565f1e
DJ
116542003-01-13 Daniel Jacobowitz <drow@mvista.com>
11655
11656 * source.c (openp): Squelch warning about "filename".
11657
072b1022
DJ
116582003-01-13 Daniel Jacobowitz <drow@mvista.com>
11659
11660 * source.c (openp): If the file does not exist don't necessarily
11661 search the path.
11662
973ccf8b
DJ
116632003-01-13 Daniel Jacobowitz <drow@mvista.com>
11664
11665 Fix PR gdb/872.
11666 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11667 (integer_types_same_name_p): New function.
11668 (rank_one_type): Use it.
11669 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11670
030292b7
DJ
116712003-01-13 Daniel Jacobowitz <drow@mvista.com>
11672
11673 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11674 variables.
11675 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11676 * configure.in: Add --with-sysroot.
11677 * configure: Regenerated.
11678 * main.c (gdb_sysroot): New variable.
11679 (captured_main): Initialize gdb_sysroot.
11680 * defs.h (gdb_sysroot): New extern declaration.
11681 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11682
afb5d334
MC
116832003-01-12 Michael Chastain <mec@shout.net>
11684
11685 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11686
751ceeb4
MC
116872003-01-12 Michael Chastain <mec@shout.net>
11688
11689 * top.c (print_gdb_version): Bump copyright year to 2003.
11690
94cd26f8
DC
116912003-01-12 David Carlton <carlton@bactrian.org>
11692
11693 * linespec.c (symtab_from_filename): Rename variable 's' to
11694 'file_symtab'.
11695
1ce79225
AC
116962003-01-12 Andrew Cagney <ac131313@redhat.com>
11697
11698 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11699 dummy frame.
11700 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11701
fa1fd571
AC
117022003-01-12 Andrew Cagney <ac131313@redhat.com>
11703
11704 * d10v-tdep.c: Include "gdb_assert.h".
11705 (d10v_store_return_value): Rewrite to match current interface.
11706 (d10v_extract_struct_value_address): Ditto.
11707 (d10v_extract_return_value): Ditto.
11708 (d10v_gdbarch_init): Set store_restore_value,
11709 extract_struct_value_address and extract_return_value.
11710
68b8d23e
JB
117112003-01-12 J. Brobecker <brobecker@gnat.com>
11712
11713 * hpread.c (set_namestring): New procedure replacing the
11714 SET_NAMESTRING macro.
11715 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11716 by calls to set_namestring.
11717
117182003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
11719
11720 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11721 a compilation warning.
11722 (hpread_process_one_debug_symbol): Likewise.
11723
88d262ca
DC
117242003-01-10 David Carlton <carlton@math.stanford.edu>
11725
11726 * linespec.c (decode_line_1): Rename variable 's' to
11727 'file_symtab'.
11728 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11729 (decode_dollar): Ditto.
11730 (decode_variable): Ditto.
11731 (symbol_found): Ditto.
11732
86669319
MC
117332003-01-09 Michael Chastain <mec@shout.net>
11734
11735 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11736
616a9dc4
CV
117372003-01-07 Corinna Vinschen <vinschen@redhat.com>
11738
11739 * win32-nat.c (set_process_privilege): New function.
11740 (child_attach): Call set_process_privilege() to enable the
11741 SE_DEBUG_NAME user privilege if available in process token.
11742
3269bcfa
JB
117432003-01-10 J. Brobecker <brobecker@gnat.com>
11744
11745 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11746 compilation error in the previous revision.
11747
2b0ee454
DC
117482003-01-09 David Carlton <carlton@math.stanford.edu>
11749
11750 * linespec.c: Update copyright.
11751
b3ba1b44
DJ
117522003-01-09 Daniel Jacobowitz <drow@mvista.com>
11753
11754 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11755 than inferior_ptid.
11756 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11757
4ef3f3be
AC
117582003-01-09 Andrew Cagney <ac131313@redhat.com>
11759
479ab5a0
AC
11760 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11761 Update comments.
11762 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11763 (frame_saved_regs_zalloc): Update.
11764 (frame_saved_regs_register_unwind): Update.
11765 (create_new_frame): Update.
11766 (get_prev_frame): Update.
11767 (frame_extra_info_zalloc): Update.
11768 (deprecated_get_frame_saved_regs): Update.
11769 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11770 * cris-tdep.c: Update comment.
11771
bde58177
AC
11772 * somsolib.h: Fix function indentation.
11773 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11774 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11775 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11776 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11777 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11778
4ef3f3be
AC
11779 * infrun.c (follow_fork): Use ISO C definition.
11780 * expprint.c (print_subexp): Use xfree instead of free.
11781 * charset.c: Include "gdb_string.h" instead of <string.h>.
11782 (register_iconv_charsets): Use ISO C definition.
11783 (host_charset, target_charset): Ditto.
11784 * Makefile.in (charset.o): Update dependencies.
11785 (mi-cmd-env.o): Update dependencies.
11786
1c615f7a
AC
117872003-01-08 Andrew Cagney <cagney@redhat.com>
11788
11789 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11790 get_frame_base.
11791
c9a1dc08
AC
117922003-01-08 Andrew Cagney <ac131313@redhat.com>
11793
11794 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11795 build directories. Save edited gdb output in Mbuild.log. If a
11796 build fails, remove any final GDB executable.
11797
dbad9d94
AC
117982003-01-08 Andrew Cagney <ac131313@redhat.com>
11799
11800 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11801 replacing hex constants with function names and stripping leading
11802 file name directory prefixes.
11803
8d357cca
AC
118042003-01-08 Andrew Cagney <cagney@redhat.com>
11805
11806 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11807 get_frame_base.
11808
bca02a8a
DC
118092003-01-08 David Carlton <carlton@math.stanford.edu>
11810
11811 * linespec.c (decode_line_1): Move code into decode_variable.
11812 (decode_variable): New function.
11813
7f8ab3a0
AC
118142003-01-08 Andrew Cagney <ac131313@redhat.com>
11815
11816 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11817
7b5849cc
AC
118182003-01-08 Andrew Cagney <cagney@redhat.com>
11819
11820 * cris-tdep.c (cris_frame_init_saved_regs): Use
11821 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11822 saved_regs buffer.
11823 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11824 (sh64_nofp_frame_init_saved_regs): Ditto.
11825 (sh_fp_frame_init_saved_regs): Ditto.
11826 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11827 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11828 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11829 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11830
72a5efb3
DJ
118312003-01-08 Daniel Jacobowitz <drow@mvista.com>
11832
11833 * minsyms.c (lookup_minimal_symbol): Update comment.
11834 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11835 (lookup_minimal_symbol_solib_trampoline): Likewise.
11836
11c02a10
AC
118372003-01-08 Andrew Cagney <cagney@redhat.com>
11838
aab3ea25
AC
11839 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11840 frame_relative_level.
11841
da50a4b7
AC
11842 * alpha-tdep.c: Use get_frame_extra_info.
11843 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11844 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11845 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11846 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11847
11c02a10
AC
11848 * alpha-tdep.c: Use get_next_frame.
11849 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11850 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11851 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11852 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11853 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11854 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11855 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11856
1e2330ba
AC
118572003-01-07 Andrew Cagney <cagney@redhat.com>
11858
11859 * alpha-tdep.c: Use get_frame_base.
11860 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11861 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11862 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11863 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11864 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11865 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11866 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11867 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11868
2d75187b
AC
118692003-01-07 Andrew Cagney <cagney@redhat.com>
11870
11871 * frame.c (deprecated_get_frame_context): New function.
11872 (deprecated_set_frame_context): New function.
11873 * frame.h (deprecated_get_frame_context): Declare.
11874 (deprecated_set_frame_context): Declare.
11875 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11876 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11877
483d36b2
AC
118782003-01-07 Andrew Cagney <cagney@redhat.com>
11879
11880 * frame.c (deprecated_set_frame_next_hack): New function.
11881 (deprecated_set_frame_prev_hack): New function.
11882 * frame.h (deprecated_set_frame_next_hack): Declare.
11883 (deprecated_set_frame_prev_hack): Declare.
11884 * mcore-tdep.c (analyze_dummy_frame): Use
11885 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11886 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11887
14e91ac5
DC
118882003-01-07 David Carlton <carlton@math.stanford.edu>
11889
11890 * linespec.c (decode_line_1): Move code into decode_dollar.
11891 (decode_dollar): New function.
11892
b0c6b05c
AC
118932003-01-07 Andrew Cagney <cagney@redhat.com>
11894
11895 * arm-tdep.c (arm_init_extra_frame_info): Use
11896 deprecated_update_frame_base_hack.
11897 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11898 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11899 (fix_frame_pointer): Ditto.
11900 (mn10300_analyze_prologue): Ditto.
11901
a00a19e9
AC
119022003-01-07 Andrew Cagney <cagney@redhat.com>
11903
11904 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11905 extra_info using frame_extra_info_zalloc.
11906 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11907 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11908 (sh64_init_extra_frame_info): Ditto.
11909 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11910 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11911 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11912 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11913 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11914 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11915 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11916 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11917 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11918 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11919 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11920 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11921
11922 * mn10300-tdep.c (analyze_dummy_frame): Use
11923 deprecated_set_frame_extra_info_hack.
11924 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11925
1fb4c65b
JB
119262003-01-07 J. Brobecker <brobecker@gnat.com>
11927
11928 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11929 class is not scText. These do not define "real" procedures.
11930 (parse_partial_symbols): Likewise.
11931
9fe7d6bf
MS
119322003-01-06 Michael Snyder <msnyder@redhat.com>
11933
11934 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11935
f6c609c4
AC
119362003-01-06 Andrew Cagney <ac131313@redhat.com>
11937
11938 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11939 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11940 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11941 deprecated_frame_xmalloc_with_cleanup.
11942 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11943 deprecated_frame_xmalloc.
11944 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11945 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11946
d995ff4b
AC
119472003-01-06 Andrew Cagney <cagney@redhat.com>
11948
84dc46cb
AC
11949 * x86-64-linux-tdep.c: Include "osabi.h".
11950 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11951
d995ff4b
AC
11952 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11953
66140c26
AC
119542003-01-06 Andrew Cagney <cagney@redhat.com>
11955
11956 * MAINTAINERS (Target Instruction Set Architectures): Update
11957 arm-elf. Can be built with -Werror, has been multiarched.
11958
11959 * value.h (unpack_long): Make buffer parameter constant.
11960 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11961 * scm-lang.h (scm_parse): Ditto.
11962 * defs.h (extract_typed_address, extract_address): Ditto.
11963 (extract_long_unsigned_integer): Ditto.
11964 * inferior.h (unsigned_pointer_to_address): Ditto.
11965 (signed_pointer_to_address): Ditto.
11966 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11967 * gdbarch.h, gdbarch.c: Regenerate.
11968 * findvar.c (extract_long_unsigned_integer): Update.
11969 (extract_address): Update.
11970 (extract_typed_address): Update.
11971 (unsigned_pointer_to_address): Update.
11972 * values.c (unpack_long): Update.
11973 (unpack_double): Update.
11974 (unpack_pointer): Update.
11975 (unpack_field_as_long): Update.
11976 * d10v-tdep.c (d10v_pointer_to_address): Update.
11977 * avr-tdep.c (avr_pointer_to_address): Update.
11978 * scm-lang.c (scm_unpack): Update.
11979 * findvar.c (signed_pointer_to_address): Update.
11980
b089b3da
ML
119812003-01-06 Michal Ludvig <mludvig@suse.cz>
11982
8ffd9b1b 11983 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11984 since it is in i386-tdep.c.
11985
aff87235
JB
119862003-01-06 J. Brobecker <brobecker@gnat.com>
11987
11988 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11989 failure introduced in the previous change.
11990
34f5e845
MC
119912003-01-05 Michael Chastain <mec@shout.net>
11992
11993 * README: Remove references to deleted remote-*.c files:
11994 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11995 remote-nrom.c, remote-os9k.c, remote-udi.c.
11996
28bcfd30
MK
119972003-01-05 Mark Kettenis <kettenis@gnu.org>
11998
11999 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12000 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12001 i386_get_longjmp_target.
12002
15a5b3ee
AC
120032003-01-05 Andrew Cagney <ac131313@redhat.com>
12004
12005 * arm-tdep.c (prologue_cache): Change to a pointer.
12006 (_initialize_arm_tdep): Allocate prologue_cache.
12007 (check_prologue_cache): Update.
12008 (save_prologue_cache): Update.
12009 (arm_gdbarch_init): Update.
12010
c263362b
DJ
120112003-01-04 Daniel Jacobowitz <drow@mvista.com>
12012
12013 * stabsread.c (update_method_name_from_physname): Call complaint()
12014 instead of error.
12015
51603483
DJ
120162003-01-04 Daniel Jacobowitz <drow@mvista.com>
12017
12018 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12019 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12020 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12021
12022 * blockframe.c: Include "gdbcmd.h" and "command.h".
12023 (backtrace_below_main): New variable.
12024 (file_frame_chain_valid, func_frame_chain_valid)
12025 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12026 (generic_func_frame_chain_valid): Remove functions.
12027 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12028 (_initialize_blockframe): New function.
12029 * Makefile.in (blockframe.o): Update dependencies.
12030 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12031 comment. Call frame_chain_valid ().
12032 * frame.h: Remove old prototypes. Add prototype for
12033 frame_chain_valid and update comments to match.
12034 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12035 Remove old comment.
12036 * gdbarch.h: Regenerated.
12037 * gdbarch.c: Regenerated.
12038
12039 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12040 set_gdbarch_frame_chain_valid.
12041 * avr-tdep.c (avr_gdbarch_init): Likewise.
12042 * cris-tdep.c (cris_gdbarch_init): Likewise.
12043 * frv-tdep.c (frv_gdbarch_init): Likewise.
12044 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12045 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12046 (i386_nw_init_abi): Likewise.
12047 (i386_gdbarch_init): Likewise.
12048 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12049 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12050 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12051 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12052 * mips-tdep.c (mips_gdbarch_init): Likewise.
12053 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12054 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12055 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12056 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12057 * s390-tdep.c (s390_gdbarch_init): Likewise.
12058 * sh-tdep.c (sh_gdbarch_init): Likewise.
12059 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12060 * v850-tdep.c (v850_gdbarch_init): Likewise.
12061 * vax-tdep.c (vax_gdbarch_init): Likewise.
12062 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12063
12064 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12065 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12066 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12067 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12068 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12069 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12070 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12071 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12072
b00a8037
DJ
120732002-01-04 Daniel Jacobowitz <drow@mvista.com>
12074
12075 * Makefile.in (acconfig_h): Remove incorrect macro.
12076 (config_h): Define.
12077 (osabi.o): Update dependencies.
12078 * configure.tgt: Set gdb_osabi based on target triplet.
12079 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12080 * configure: Regenerated.
12081 * config.in: Regenerated.
12082 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12083 (GDB_OSABI_DEFAULT): Define if not already defined.
12084 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12085 (set_osabi_string): New variables.
12086 (gdbarch_register_osabi): Add new OS ABI to
12087 gdb_osabi_available_names.
12088 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12089 (set_osabi, show_osabi): New functions.
12090 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12091
4be87837
DJ
120922003-01-04 Daniel Jacobowitz <drow@mvista.com>
12093
12094 * arch-utils.c (gdbarch_info_init): Set osabi to
12095 GDB_OSABI_UNINITIALIZED.
12096 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12097 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12098 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12099 * gdbarch.c: Regenerated.
12100 * gdbarch.h: Regenerated.
12101 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12102 there's no BFD.
12103 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12104 * osabi.h (enum gdb_osabi): Move to defs.h.
12105 (gdbarch_init_osabi): Update prototype.
12106 * defs.h (enum gdb_osabi): Moved here.
12107 * Makefile.in: Update dependencies.
12108
12109 * alpha-tdep.h: Don't include "osabi.h".
12110 (struct gdbarch_tdep): Remove osabi member.
12111 * alpha-tdep.c: Include "osabi.h".
12112 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12113 iterate over arches. Update call to gdbarch_init_osabi.
12114 (alpha_dump_tdep): Don't dump osabi.
12115 * alpha-linux-tdep.c: Include "osabi.h".
12116 * alpha-osf1-tdep.c: Include "osabi.h".
12117 * alphafbsd-tdep.c: Include "osabi.h".
12118 * alphanbsd-tdep.c: Include "osabi.h".
12119
12120 * arm-tdep.h: Don't include "osabi.h".
12121 (struct gdbarch_tdep): Remove osabi member.
12122 * arm-tdep.c: Include "osabi.h".
12123 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12124 iterate over arches. Update call to gdbarch_init_osabi.
12125 (arm_dump_tdep): Don't dump osabi.
12126 * arm-linux-tdep.c: Include "osabi.h".
12127 * armnbsd-tdep.c: Include "osabi.h".
12128
12129 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12130 Update call to gdbarch_init_osabi.
12131
12132 * i386-tdep.h: Don't include "osabi.h".
12133 (struct gdbarch_tdep): Remove osabi member.
12134 * i386-tdep.c: Include "osabi.h".
12135 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12136 iterate over arches. Update call to gdbarch_init_osabi.
12137 (i386_dump_tdep): Don't dump osabi.
12138 * i386-linux-tdep.c: Include "osabi.h".
12139 * i386-sol2-tdep.c: Include "osabi.h".
12140 * i386bsd-tdep.c: Include "osabi.h".
12141 * i386gnu-tdep.c: Include "osabi.h".
12142 * i386ly-tdep.c: Include "osabi.h".
12143 * i386nbsd-tdep.c: Include "osabi.h".
12144 * i386obsd-tdep.c: Include "osabi.h".
12145
12146 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12147 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12148 check osabi when iterating over arches. Update call to
12149 gdbarch_init_osabi.
12150 (mips_dump_tdep): Don't dump osabi.
12151
12152 * ns32k-tdep.h: Don't include "osabi.h".
12153 (struct gdbarch_tdep): Remove.
12154 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12155 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12156 allocate tdep. Update call to gdbarch_init_osabi.
12157 (ns32k_dump_tdep): Remove.
12158 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12159 * ns32knbsd-tdep.c: Include "osabi.h".
12160
12161 * ppc-tdep.h: Don't include "osabi.h".
12162 (struct gdbarch_tdep): Remove osabi member.
12163 * rs6000-tdep.c: Include "osabi.h".
12164 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12165 osabi when iterating over arches. Update call to
12166 gdbarch_init_osabi.
12167 (rs6000_dump_tdep): Don't dump osabi.
12168 * ppc-linux-tdep.c: Include "osabi.h".
12169 * ppcnbsd-tdep.c: Include "osabi.h".
12170
12171 * sh-tdep.h: Don't include "osabi.h".
12172 (struct gdbarch_tdep): Remove osabi member.
12173 * sh-tdep.c: Include "osabi.h".
12174 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12175 iterate over arches. Update call to gdbarch_init_osabi.
12176 (sh_dump_tdep): Don't dump osabi.
12177 * shnbsd-tdep.c: Include "osabi.h".
12178
12179 * sparc-tdep.c: Include "osabi.h".
12180 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12181 iterate over arches. Update call to gdbarch_init_osabi.
12182 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12183 tdep structure.
12184
12185 * vax-tdep.h: Don't include "osabi.h".
12186 (struct gdbarch_tdep): Remove.
12187 * vax-tdep.c: Include "osabi.h".
12188 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12189 iterate over arches. Don't allocate tdep. Update call
12190 to gdbarch_init_osabi.
12191 (vax_dump_tdep): Remove.
12192 (_initialize_vax_tdep): Update call to gdbarch_register.
12193
a881cf8e
DJ
121942003-01-04 Daniel Jacobowitz <drow@mvista.com>
12195
12196 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12197 entirely.
12198 (breakpoint_re_set_one): Don't fetch the value for a disabled
12199 watchpoint.
12200
1e698235
DJ
122012003-01-04 Daniel Jacobowitz <drow@mvista.com>
12202
12203 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12204 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12205 (COERCE_FLOAT_TO_DOUBLE): Remove.
12206 * gdbarch.c: Regenerate.
12207 * gdbarch.h: Regenerate.
12208 * Makefile.in: Remove value_h from gdbarch_h.
12209 * valops.c (coerce_float_to_double): New variable.
12210 (default_coerce_float_to_double): Remove.
12211 (standard_coerce_float_to_double): Remove.
12212 (value_arg_coerce): Use coerce_float_to_double.
12213 (_initialize_valops): Add "set coerce-float-to-double".
12214 * value.h (default_coerce_float_to_double): Remove prototype.
12215 (standard_coerce_float_to_double): Remove prototype.
12216
12217 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12218 prototyped.
12219 * mdebugread.c (parse_symbol): Likewise.
12220 * stabsread.c (define_symbol): Mark all functions as prototyped.
12221
12222 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12223 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12224 set_gdbarch_coerce_float_to_double.
12225 * arm-tdep.c (arm_gdbarch_init): Likewise.
12226 * frv-tdep.c (frv_gdbarch_init): Likewise.
12227 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12228 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12229 * mips-tdep.c (mips_gdbarch_init): Likewise.
12230 (mips_coerce_float_to_double): Remove.
12231 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12232 (rs6000_coerce_float_to_double): Remove.
12233 * s390-tdep.c (s390_gdbarch_init): Likewise.
12234 * sh-tdep.c (sh_gdbarch_init): Likewise.
12235 (sh_coerce_float_to_double): Remove.
12236 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12237 (sparc_coerce_float_to_double): Remove.
12238 * v850-tdep.c (v850_gdbarch_init): Likewise.
12239 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12240 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12241 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12242 (hppa_coerce_float_to_double): Remove prototype.
12243 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12244
f436a26a
DJ
122452003-01-04 Daniel Jacobowitz <drow@mvista.com>
12246
12247 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12248
248f8055
DJ
122492003-01-04 Daniel Jacobowitz <drow@mvista.com>
12250
12251 Suggested by Stewart Brown <sb24@avaya.com>:
12252 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12253 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12254 (c_type_print_varspec_suffix): Likewise.
12255
72cfdc76
MK
122562003-01-04 Mark Kettenis <kettenis@gnu.org>
12257
bfd260bb
MK
12258 * configure.in: Don't set and AC_SUBST SUBDIRS.
12259 * configure: Regenerated.
12260
72cfdc76
MK
12261 * configure.in: Remove code dealing with shared libraries.
12262 * Makefile.in: Remove HLDFLAGS and HLDENV.
12263 * configure: Regenerated.
12264
c8b8a898
AC
122652003-01-04 Andrew Cagney <ac131313@redhat.com>
12266
12267 * frame.c (deprecated_frame_xmalloc): New function.
12268 (deprecated_set_frame_saved_regs_hack): New function.
12269 (deprecated_set_frame_extra_info_hack): New function.
12270 * frame.h (deprecated_frame_xmalloc): Declare.
12271 (deprecated_set_frame_saved_regs_hack): Declare.
12272 (deprecated_set_frame_extra_info_hack): Declare.
12273
14abd0fb
MK
122742003-01-04 Mark Kettenis <kettenis@gnu.org>
12275
8ee53726
MK
12276 * configure.in: Move code that provides the --enable-gdbtk option
12277 right after the code that handles the --enable-tui option, and
12278 polish it somewhat.
12279 * configure: Regenerated.
12280
14abd0fb
MK
12281 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12282 AC_CHECK_FUNCS and remove the old check for pread64.
12283 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12284 * acconfig.h (_GNU_SOURCE): Add.
12285 (HAVE_PREAD64): Remove.
12286 * configure, aclocal.m4, config.in: Regenerated.
12287
b2fb4676
AC
122882003-01-03 Andrew Cagney <ac131313@redhat.com>
12289
12290 * alpha-tdep.c: Use get_frame_saved_regs.
12291 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12292 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12293 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12294 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12295 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12296
8dcde887
MK
122972003-01-03 Mark Kettenis <kettenis@gnu.org>
12298
12299 * configure.in: Remove all use of the SUBDIRS variable; add
12300 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12301 code providing the --enable-multi-ice option, and move it right in
12302 front of the code that checks whether gdbserver is supported.
12303 Polish that too.
12304 * configure: Regenerated.
12305 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12306 @SUBDIRS@.
12307
8ccd593b
AC
123082003-01-03 Andrew Cagney <cagney@redhat.com>
12309
12310 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12311 * avr-tdep.c, cris-tdep.c: Ditto.
12312 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12313 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12314
91151a06
MK
123152003-01-03 Mark Kettenis <kettenis@gnu.org>
12316
12317 * configure.in: Remove --enable-netrom option.
12318 * configure: Regenerated.
12319
8fe84d01
MK
123202003-01-03 Mark Kettenis <kettenis@gnu.org>
12321
12322 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12323 declaration for `struct re_pattern_buffer' instead.
12324 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12325
f0394be6
JB
123262003-01-03 J. Brobecker <brobecker@gnat.com>
12327
12328 * mdebugread.c (parse_symbol): Count until the stEnd matching
12329 the structure name.
12330
27e9bf90
MK
123312003-01-02 Mark Kettenis <kettenis@gnu.org>
12332
93d331ba
MK
12333 * configure.in: Remove --with-cpu option.
12334 subscripts. Remove evil changequotes here.
12335 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12336 * config.in, configure: Regenerated.
8ffd9b1b 12337
27e9bf90
MK
12338 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12339 * configure.in: Cleanup section that sources GDB and BFD configure
12340 subscripts. Remove evil changequotes here.
12341 * config.in, configure: Regenerated.
12342
50abf9e5
AC
123432003-01-02 Andrew Cagney <ac131313@redhat.com>
12344
12345 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12346 frame accessor methods.
12347 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12348 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12349 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12350 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12351 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12352 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12353 * z8k-tdep.c: Ditto.
8ffd9b1b 12354
287c1a40
MK
123552003-01-02 Mark Kettenis <kettenis@gnu.org>
12356
f5dbc56d
MK
12357 * configure.in: Remove UI_OUT configuration code.
12358 * ada-lang.c: Update assuming UI_OUT is always true.
12359 * Makefile.in (UIOUT_CFLAGS): Remove.
12360 * configure: Regenerated.
12361 * TODO: Remove blurb about elimination of -DUI_OUT.
12362
627af7ea
MK
12363 * configure.in: Move code that provides the --enable-gdbcli,
12364 --enable-gdbmi options right before the code that handles the
12365 --enable-tui option. Polish a bit.
12366 * configure: Regenerated.
12367
06825bd1
MK
12368 * configure.in: Rewrite check for GNU regex and the
12369 --without-included regex option, and move it into the "Checks for
12370 library functions" section. This makes us use the system regex
12371 again by default on systems with version 2 of the GNU C library.
12372 This was apparently broken.
12373 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12374 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12375 * config.in, configure: Regenerated.
12376
287c1a40
MK
12377 * configure.in: Move code that provides the --enable-tui option
12378 before the "Checks for libraries" section. Polish the code
12379 somewhat and set need_curses to yes if we build the TUI. Rewrite
12380 code that looks for a library providing termcap functionality to
12381 match more closely what's done in the Readline library, and move
12382 it into to the "Checks for libraries" section.
12383 * configure: Regenerated.
12384 * Makefile.in (TERMCAP): Remove variable.
12385 * config/i386/go32.mh (TERMCAP): Remove variable.
12386
684e56bf
AC
123872003-01-02 Andrew Cagney <ac131313@redhat.com>
12388
12389 * MAINTAINERS: Mention gdb_mbuild.sh.
12390 * gdb_mbuild.sh: Rewrite.
12391
e1ea1d75
MK
123922003-01-02 Mark Kettenis <kettenis@gnu.org>
12393
12394 * configure.in: Fix typo in last change.
12395 * config.in, configure: Regenerated.
12396
1b831c93
AC
123972003-01-02 Andrew Cagney <ac131313@redhat.com>
12398
12399 * valarith.c (value_binop): Delete obsolete code and comments.
12400 * configure.host: Ditto.
12401 * buildsym.h (make_blockvector): Ditto.
12402 * buildsym.c (make_blockvector): Ditto.
12403 * defs.h (enum language): Ditto.
12404 (chill_demangle): Ditto.
12405 * elfread.c (elf_symtab_read): Ditto.
12406 * dwarfread.c (CHILL_PRODUCER): Ditto.
12407 (set_cu_language): Ditto.
12408 (handle_producer): Ditto.
12409 * expprint.c (print_subexp): Ditto.
12410 * gdbtypes.c (chill_varying_type): Ditto.
12411 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12412 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12413 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12414 (chill_varying_type): Ditto.
12415 * language.h (_LANG_chill): Ditto.
12416 * language.c (binop_result_type, integral_type): Ditto.
12417 (character_type, string_type, structured_type): Ditto.
12418 (lang_bool_type, binop_type_check): Ditto.
12419 * stabsread.h (os9k_stabs): Ditto.
12420 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12421 (define_symbol, read_type, read_struct_fields): Ditto.
12422 (read_array_type, read_enum_type, read_huge_number): Ditto.
12423 (read_range_type, start_stabs): Ditto.
12424 * symfile.c (init_filename_language_table): Ditto.
12425 (add_psymbol_with_dem_name_to_list): Ditto.
12426 * symtab.c (symbol_init_language_specific): Ditto.
12427 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12428 * symtab.h (struct general_symbol_info): Ditto.
12429 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12430 * typeprint.c (typedef_print): Ditto.
12431 * utils.c (fprintf_symbol_filtered): Ditto.
12432 * valops.c (value_cast, search_struct_field, value_slice): Delete
12433 obsolete code.
12434 (varying_to_slice): Delete function.
12435 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12436 (varying_to_slice): Delete declaration.
12437 * MAINTAINERS: Update.
12438
8bb2c122
MK
124392003-01-02 Mark Kettenis <kettenis@gnu.org>
12440
97bf5e38
MK
12441 * configure.in: Reorganize "Checks for library functions section"
12442 a bit. Remove check for `btowc' and `isascii' functions.
12443 * configure: Regenerated.
12444
5ee754fc
MK
12445 * acconfig.h (_MSE_INT_H): Remove.
12446 * configure.in: Create "Checks for header files" section, and move
12447 appropriate tests there. Don't check for objlist.h, wchar.h,
12448 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12449 misdetection fix. Also add "Checks for types", "Checks for
12450 compiler characteristics" and "Checks for library functions"
12451 sections.
12452 * config.in, configure: Regenerated.
12453
8bb2c122
MK
12454 * configure.in: Create "Checks for programs" section, and move
12455 appropriate tests there.
12456
9a156167
MK
124572003-01-01 Mark Kettenis <kettenis@gnu.org>
12458
12459 * configure.in: Create "Checks for libraries" section, and move
12460 appropriate tests there. Cleanup check for wctype in libw. Use
12461 AC_SEARCH_LIBS to see whether we need libsocket.
12462 * configure: Regenerated.
12463
a80e2bcb 12464For older changes see ChangeLog-2002
c906108c
SS
12465\f
12466Local Variables:
12467mode: change-log
12468left-margin: 8
12469fill-column: 74
12470version-control: never
12471End:
This page took 1.11049 seconds and 4 git commands to generate.