* i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
41d041d6
MK
12003-09-28 Mark Kettenis <kettenis@gnu.org>
2
3 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
4 regcache argument and reverse the order of the other two
5 arguments. Remove local regcache variable. Determine
6 architecture from REGCACHE. Update comments.
7 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
8 reverse the order of the other two arguments. Remove local
9 regcache variable. Determine architecture from REGCACHE. Update
10 comments.
11 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
12 prototypes. Update comments.
13 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
14 comment.
15 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
16 Update.
17 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
18 * i386-interix-nat.c (supply_fpregset): Update.
19 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
20 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
21 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
22 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
23 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
24 Update.
25 * i386obsd-tdep.c (fetch_core_registers): Update.
26 * i386v4-nat.c (supply_fpregset): Update.
27 * x86-64-linux-nat.c (supply_fpregset): Update.
28 * x86-64-linux-tdep.c (fetch_core_registers): Update.
29
1cb97e17
MK
302003-09-27 Mark Kettenis <kettenis@gnu.org>
31
5716833c
MK
32 * i386-tdep.h: Put opaque declarations in alphabetical
33 order. Remove spurious whitespace.
34 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
35 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
36 * i386-tdep.c (MM0_REGNUM): Remove define.
37 (i386_mmx_regnum_p): Add gdbarch argument.
38 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
39 Rewrite using new macro definitions for FPU/SSE registers.
40 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
41 definitions from i387-tdep.h.
42 (i386_register_name): Update.
43 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
44 new macro definitions for FPU/SSE registers.
45 (i386_extract_return_value): Determine whether floating-point
46 registers are present by examining REGCACHE's architecture.
47 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
48 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
49 FPU/SSE registers.
50 (i386_register_type): Update.
51 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
52 definitions for FPU registers. Use REGCACHE's architecture to
53 determine the appropriate register numbers.
54 (i386_pseudo_register_read, i386_pseudo_register_write,
55 i386_register_reggroup_p): Update.
56 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
57 TDEP->mm0_regnum.
58 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
59 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
60 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
61 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
62 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
63 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
64 *' to `void *'.
65 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
66 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
67 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
68 definitions for FPU/SSE registers.
69 (FXSAVE_MXCSR_ADDR): New define.
70 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
71 TDEP->mm0_regnum.
72 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
73 (I387_ST0_REGNUM): Define.
74
41d35cb0
MK
75 * regcache.h (get_regcache_arch): New prototype.
76 * regcache.c (get_regcache_arch): New function.
77
54e74f72
MK
78 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
79 whitespace.
80
1cb97e17
MK
81 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
82 Initialize using ARRAY_SIZE.
83
0968aa8c
AC
842003-09-27 Andrew Cagney <cagney@redhat.com>
85
86 * arch-utils.c (deprecated_init_frame_pc_default): Rename
87 "init_frame_pc_default".
88 * arch-utils.h (deprecated_init_frame_pc_default): Update.
89 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
90 * vax-tdep.c (vax_gdbarch_init): Update.
91 * v850-tdep.c (v850_gdbarch_init): Update.
92 * sh64-tdep.c (sh64_gdbarch_init): Update.
93 * s390-tdep.c (s390_gdbarch_init): Update.
94 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
95 * mcore-tdep.c (mcore_gdbarch_init): Update.
96 * h8300-tdep.c (h8300_gdbarch_init): Update.
97 * cris-tdep.c (cris_gdbarch_init): Update.
98 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
99
54c84734
MK
1002003-09-26 Mark Kettenis <kettenis@gnu.org>
101
102 * regset.h: New file.
103 * Makefile.in (regset_h): Add.
104
1b1d3794
AC
1052003-09-25 Andrew Cagney <cagney@redhat.com>
106
107 * frame.h (deprecated_frame_saved_regs): Rename
108 get_frame_saved_regs.
109 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
110 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
111 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
112 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
113 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
114
e6beb428
AC
1152003-09-25 Andrew Cagney <cagney@redhat.com>
116
117 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
118 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
119 and Java.
120 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
121 arm*-*-* do not use the new frame code.
122
710122da
DC
1232003-09-25 David Carlton <carlton@kealia.com>
124
125 * c-exp.y: Remove 'register' declarations.
126 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
127
79c2c32d
DC
1282003-09-25 David Carlton <carlton@kealia.com>
129
130 * c-exp.y: Include cp-support.h. Add qualified_type.
131 (yylex): Delete nested type hack; add comments.
132 * cp-namespace.c (cp_lookup_nested_type): New function.
133 * cp-support.h: Declare cp_lookup_nested_type.
134 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
135 instead of value_struct_elt_for_reference.
136 * valops.c: Include cp-support.h.
137 (value_aggregate_elt): New function.
138 (value_namespace_elt): Ditto.
139 (value_struct_elt_for_reference): Make static.
140 * value.h: Delete declaration of value_struct_elt_for_reference;
141 add declaration for value_aggregate_elt.
142 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
143 (valops.o): Ditto.
144
898c62f5
DJ
1452003-09-25 Daniel Jacobowitz <drow@mvista.com>
146
147 * stack.c: Include "reggroups.h".
148 (frame_info): Only display registers in all_reggroup.
149 * Makefile.in (stack.o): Update dependencies.
150
28cd8767
JG
1512003-09-25 Jerome Guitton <guitton@act-europe.fr>
152
153 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
154 "add ip, sp #n" in the prologue.
155 (arm_scan_prologue): Ditto.
156
a4ab2b5d
JG
1572003-09-25 Jerome Guitton <guitton@act-europe.fr>
158
159 * MAINTAINERS (write after approval): Add myself.
160
3f244638
AS
1612003-09-25 Andreas Schwab <schwab@suse.de>
162
163 * m68k-tdep.c: Include "dwarf2-frame.h".
164 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
165 * Makefile.in (m68k-tdep.o): Update dependencies.
166
1c0159e0
CV
1672003-09-25 Corinna Vinschen <vinschen@redhat.com>
168
169 * sh-tdep.c (struct frame_extra_info): Remove.
170 (struct sh_frame_cache): New structure.
171 (GET_SOURCE_REG): New macro extracting source register of an opcode.
172 (GET_TARGET_REG): Ditto but target register.
173 (GET_PUSHED_REG): Remove.
174 (IS_MOV_ARG_TO_REG): New macro.
175 (IS_MOV_ARG_TO_IND_R14): New macro.
176 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
177 (IS_MOVW_PCREL_TO_REG): New macro.
178 (IS_MOVL_PCREL_TO_REG): New macro.
179 (IS_SUB_REG_FROM_SP): New macro.
180 (IS_ARG_MOV): Remove.
181 (IS_MOV_TO_R14): Remove.
182 (IS_RESTORE_FP): New macro.
183 (IS_RTS): New macro.
184 (IS_LDS): New macro.
185 (IS_MOV_FP_SP): New macro.
186 (IS_ADD_REG_TO_FP): New macro.
187 (IS_ADD_IMM_FP): New macro.
188 (sh_skip_prologue_hard_way): Remove.
189 (sh_saved_pc_after_call): Remove.
190 (sh_frame_chain): Remove.
191 (sh_find_callers_reg): Remove.
192 (sh_nofp_frame_init_saved_regs): Remove.
193 (sh_fp_frame_init_saved_regs): Remove.
194 (sh_init_extra_frame_info): Remove.
195 (sh_analyze_prologue): New function.
196 (sh_skip_prologue): Remove deprecated code. Rely on new function
197 sh_analyze_prologue when after_prologue fails.
198 (sh_frame_saved_pc): Remove.
199 (sh_alloc_frame_cache): New function.
200 (sh_frame_cache): Ditto.
201 (sh_frame_prev_register): Ditto.
202 (sh_frame_this_id): Ditto.
203 (sh_frame_unwind): New structure defining the heuristic frame
204 sniffer interface.
205 (sh_frame_sniffer): New function.
206 (sh_unwind_sp): Ditto.
207 (sh_unwind_pc): Ditto.
208 (sh_unwind_dummy_id): Ditto.
209 (sh_frame_base_address): Ditto.
210 (sh_frame_base): New structure defining new frame base code.
211 (sh_in_function_epilogue_p): New function.
212 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
213 code and to call all new code instead. Initialize dwarf2 and
214 heuristic frame sniffer.
215
5f9769d1
PH
2162003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
217
218 * parser-defs.h (struct exp_descriptor): New definition, containing
219 language-specific info for printing, prefixifying, dumping, and
220 evaluating expressions.
221 (exp_descriptor_standard): Declare new variable.
222 (print_subexp): Make global and declare here (from expprint.c).
223 (dump_subexp): Ditto.
224 (dump_subexp_body_standard): Declare.
225 (operator_length_standard): Declare.
226 (op_name_standard): Declare.
227 (print_subexp): Declare.
228 (print_subexp_standard): Declare.
229
230 * language.h (struct language_defn): Add la_exp_desc field to hold
231 pointer to table for language-specific operators.
232 Remove evaluate_exp field, which is now in struct exp_descriptor.
233
234 * parse.c (operator_length): Move most code to new
235 operator_length_standard function. Use language-specific information.
236 (operator_length_standard): New function taking most code from
237 operator_length.
238 (exp_descriptor_standard): New constant.
239
240 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
241 and OP_EXTENDED_LAST.
242
243 * expprint.c (print_subexp): Use language-specific print_subexp.
244 Make global; remove static declaration.
245 Move most code to print_subexp_standard.
246 (print_subexp_standard): New function, containing code formerly in
247 print_subexp.
248 (op_name): Add expression to argument signature.
249 Use langauge-specific op_name.
250 Move most code to op_name_standard.
251 (op_name_standard): New function, containing code formerly in op_name.
252 (dump_subexp): Use new version of op_name function.
253 Use language-specific dump_subexp_body, and move most existing code to
254 dump_subexp_body_standard.
255 (dump_raw_expression): Use new op_name interface.
256 (dump_subexp_body): Move most code to dump_subexp_body_standard.
257 (dump_subexp_body_standard): New function, containing code formerly
258 in dump_subexp_body.
259
260 * language.c (unknown_language): Add default la_exp_desc field and
261 remove evaluate_exp field.
262 (auto_language): Ditto.
263 (local_language): Ditto.
264 * f-lang.c (f_language_defn): Ditto.
265 * c-lang.c (c_language_defn): Ditto.
266 (cplus_language_defn): Ditto.
267 (asm_language_defn): Ditto.
268 (minimal_language_defn): Ditto.
269 * p-lang.c (pascal_language_defn): Ditto.
270 * m2-lang.c (m2_language_defn): Ditto.
271 * objc-lang.c (objc_language_defn): Ditto.
272
273 * jv-lang.c (exp_descriptor_java): New variable, containing
274 Java-specific expression evaluator.
275 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
276 field.
277 * scm-lang.c (exp_descriptor_scm): New variable, containing
278 Scheme-specific expression evaluator.
279 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
280 field.
281 * objc-lang.c (print_object_command): Take evaluate_exp from the
282 la_exp_desc field.
283
284 * Makefile.in (eval.o): Add dependency on parser-defs.h.
285
286 * eval.c: Include parser-defs.h for the full declaration of
287 la_exp_desc's type.
288 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
289
24daaebc
PH
2902003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
291
292 * parser-defs.h (operator_length): Declare.
293
294 * parse.c (length_of_subexp): Use operator_length to get operator
295 lengths and arities for operators.
296 Move most code to new operator_length function.
297 (operator_length): New function absorbing most code from
298 length_of_subexp.
299 (prefixify_subexp): Remove large case and use operator_length instead.
300 (parse_exp_1): Use renamings:
301 dump_prefix_expression => dump_raw_expression and
302 dump_postfix_expression => dump_prefix_expression.
303
304 * expression.h (dump_prefix_expression): Rename to ...
305 (dump_raw_expression): New name.
306 (dump_postfix_expression): Rename to ...
307 (dump_prefix_expression): New name.
308
309 * expprint.c (dump_subexp): Make global. Add comment.
310 Move most existing code to dump_subexp_body.
311 (dump_subexp_body): New function.
312 (dump_prefix_expression): Rename to dump_raw_expression.
313 Remove attempt to print the expression via print_expression: it can't
314 work before the expression is prefixified.
315 (dump_raw_expression): Renamed from dump_prefix_expression.
316 (dump_postfix_expression): Rename to dump_prefix_expression, since
317 that's what it does.
318 Remove 'note' parameter, since this routine must be used on
319 prefixified expression.
320 (dump_prefix_expression): Renamed from dump_postfix_expression.
321
8c2957c4
JB
3222003-09-22 Jim Blandy <jimb@redhat.com>
323
324 * dwarf2read.c (read_array_type): When building the type for an
325 array of unspecified length, make sure to choose the upper bound
326 so that the array's total length comes out to be zero --- that's
327 how we represent such arrays.
328
592e3010
MC
3292003-09-22 Michael Chastain <mec@shout.net>
330
331 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
332
365c70b1
JJ
3332003-09-22 Jeff Johnston <jjohnstn@redhat.com>
334
335 * top.c (quit_force): Fix indirect call to quit_target so
336 a struct qt_args pointer is passed.
337
5d6eb653
AC
3382003-09-22 Andrew Cagney <cagney@redhat.com>
339
340 * arch-utils.h (init_frame_pc_noop): Delete declaration.
341 * arch-utils.c (init_frame_pc_noop): Delete function.
342 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
343 "init_frame_pc".
344 * mips-tdep.c (mips_gdbarch_init): Ditto.
345 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
346 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
347 declaration.
348 (DEPRECATED_INIT_FRAME_PC): Delete macro.
349 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
350 declaration.
351 (DEPRECATED_INIT_FRAME_PC): Delete macro.
352
b222a67f
AG
3532003-09-22 Anthony Green <green@redhat.com>
354
355 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
356 declaration.
357
d5b5ac79
AC
3582003-09-20 Andrew Cagney <cagney@redhat.com>
359
deafb061
AC
360 * breakpoint.c: Eliminate ARGSUSED.
361 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
362 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
363 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
364 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
365 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
366 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
367 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
368 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
369 * wince.c, remote-vx.c: Ditto.
370
d5b5ac79
AC
371 * cli/cli-script.c: Remove "register" attributes.
372 * config/pa/tm-hppa.h: Ditto.
373 * cli/cli-decode.c: Ditto.
374 * cli/cli-cmds.c: Ditto.
375
c6316faa
AC
3762003-09-19 Andrew Cagney <cagney@redhat.com>
377
378 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
379 DEPRECATED_NPC_REGNUM.
380 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
381
f4f99b11
CF
3822003-09-19 Christopher Faylor <cgf@redhat.com>
383
384 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
385
1708f284
JB
3862003-09-19 Jim Blandy <jimb@redhat.com>
387
388 * macrotab.c (macro_include): Use the correct comparison to find
389 the appropriate place for this inclusion in the list.
390
b9fbf434
AC
3912003-09-19 Andrew Cagney <cagney@redhat.com>
392
393 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
394 (DEPRECATED_HPUX_TEXT_END): Define.
395 (deprecated_hpux_text_end): Declare.
396 (struct target_ops): Declare opaque.
397 * hppah-nat.c (text_end): Make static.
398 (deprecated_hpux_text_end): New function.
399 * exec.c (text_end): Delete global variable.
400 (NEED_TEXT_START_END): Do not define.
401 (exec_file_attach): Replace code computing "text_end" code with
402 call to DEPRECATED_HPUX_TEXT_END.
403
5b03f266
AC
4042003-09-19 Andrew Cagney <cagney@redhat.com>
405
406 * utils.c (align_up, align_down): New functions.
407 * defs.h (align_up, align_down): Declare.
408 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
409 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
410 and "align_down".
411 (round_up, round_down): Delete functions.
412 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
413 "align_down".
414 (ROUND_DOWN, ROUND_UP): Delete macros.
415 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
416 * h8300-tdep.c: Replace "round_up" and "round_down" with
417 "align_up" and "align_down".
418 (round_up, round_down): Delete macros.
419 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
420 "align_down".
421 (ROUND_UP, ROUND_DOWN): Delete macros.
422
51db5742
JB
4232003-09-18 J. Brobecker <brobecker@gnat.com>
424
425 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
426 hard-coded constant. Use the proper machine name instead.
427
77949794
AC
4282003-09-17 Andrew Cagney <cagney@redhat.com>
429
430 * sparc-tdep.c (legacy_register_name): Delete function.
431 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
432 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
433 * infcmd.c (gdb_register_name): Delete variable.
434 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
435 REGISTER_NAME and "tm.h".
436 * gdbarch.h, gdbarch.c: Regenerate.
437 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
438 REGISTER_NAMES in comments.
439 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
440 * m68klinux-nat.c (regmap): Ditto.
441
b55c33cc
JB
4422003-09-17 Jim Blandy <jimb@redhat.com>
443
444 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
445
957e27ac
AC
4462003-09-17 Andrew Cagney <cagney@redhat.com>
447
448 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
449 (ppcnbsd_init_abi): Set "use_struct_convention" to
450 "ppcnbsd_use_struct_convention".
451
192cb3d4
MK
4522003-09-17 Mark Kettenis <kettenis@gnu.org>
453
454 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
455 * gdbarch.h, gdbarch.c: Regenerate.
456 (stabs_argument_has_addr): New architecture method.
457 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
458 * arch-utils.c: Include "buildsym.h".
459 (default_stabs_argument_has_addr): New function.
460 * stabsread.c (define_symbol): Use stabs_argument_has_addr
461 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
462
efe59759
AC
4632003-09-17 Andrew Cagney <cagney@redhat.com>
464
465 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
466 * gdbarch.h, gdbarch.c: Regenerate.
467 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
468 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
469 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
470 * sparcnbsd-tdep.c: Update.
471
62700349
AC
4722003-09-17 Andrew Cagney <cagney@redhat.com>
473
474 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
475 * gdbarch.h, gdbarch.c: Regenerate.
476 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
477 * d10v-tdep.c, frame.c: Update.
478 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
479 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
480 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
481 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
482 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
483 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
484 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
485 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
486 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
487 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
488 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
489 * config/pa/nm-hppah.h: Update.
490
b9ff3018
AC
4912003-09-16 Andrew Cagney <cagney@redhat.com>
492
493 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
494 "use_struct_convention" to "ppc_linux_use_struct_convention".
495 (ppc_linux_use_struct_convention): New function.
496 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
497 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
498 "rs6000_use_struct_convention".
499 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
500 declaration.
501 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
502 Delete function.
503
aa1ee363
AC
5042003-09-16 Andrew Cagney <cagney@redhat.com>
505
506 * buildsym.c: Remove more occurances of "register".
507 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
508 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
509 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
510 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
511 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
512 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
513 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
514 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
515
f2ea0907
CV
5162003-09-16 Corinna Vinschen <vinschen@redhat.com>
517
518 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
519 numbers to enumeration values.
520 * sh-tdep.c: Accomodate above change.
521 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
522 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
523 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
524 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
525 (IS_FPUSH): Rename from IS_FMOV.
526 (sh_extract_struct_value_address): Remove useless comment.
527 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
528 instead of own local values.
529 (sh_dump_tdep): Remove.
530 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
531 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
532
1c704f11
AC
5332003-09-15 Andrew Cagney <cagney@redhat.com>
534
535 * doublest.c (convert_floatformat_to_doublest): No longer need to
536 cast "exp_bias" to an int. Reverts 2002-12-04 change.
537
ac79b88b
DJ
5382003-09-15 Daniel Jacobowitz <drow@mvista.com>
539
540 * values.c (unpack_double): Call floatformat_is_valid.
541
1c671366
MK
5422003-09-15 Mark Kettenis <kettenis@gnu.org>
543
de5227fb
MK
544 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
545 ps_strings into a long.
546
1c671366
MK
547 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
548 _initialize_am64fbsd_nat.
549
a604369a
KB
5502003-09-15 Kevin Buettner <kevinb@redhat.com>
551
552 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
553 associated with DW_AT_ranges attribute is out of bounds.
554
b3cacbee
DL
5552003-09-15 David Lecomber <dsl@sources.redhat.com>
556
557 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
558
d0f37bb2
MC
5592003-09-14 Michael Chastain <mec@shout.net>
560
561 * config/m68k/nm-apollo68v.h: Delete.
562 * config/m68k/xm-apollo68v.h: Delete.
563
69517000
AC
5642003-09-14 Andrew Cagney <cagney@redhat.com>
565
566 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
567 * dcache.c: Update copyrights and descriptions.
568 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
569
ef8b349d
AC
5702003-09-14 Andrew Cagney <cagney@redhat.com>
571
572 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
573 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
574
52f0bd74
AC
5752003-09-14 Andrew Cagney <cagney@redhat.com>
576
577 * alpha-nat.c: Remove some occurances of "register".
578 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
579 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
580 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
581 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
582 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
583 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
584 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
585 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
586 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
587 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
588 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
589 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
590 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
591 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
592 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
593 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
594 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
595 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
596 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
597 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
598 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
599 * values.c, vax-tdep.c, xcoffread.c: Ditto.
600
4a4b3fed
AC
6012003-09-13 Andrew Cagney <cagney@redhat.com>
602
603 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
604 * ppc-tdep.h (struct regcache): Declare opaque.
605 * objfiles.h (struct objfile_data): Declare opaque.
606 * cp-support.h (struct objfile): Declare opaque.
607 * linux-nat.h (target_waitstatus): Declare opaque.
608
2110b94f
MK
6092003-09-14 Mark Kettenis <kettenis@gnu.org>
610
1c671366
MK
611 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
612 (stabs_argument_has_addr): New architecture method.
613 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
614 * arch-utils.c: Include "buildsym.h".
615 (default_stabs_argument_has_addr): New function.
616 * stabsread.c (define_symbol): Use stabs_argument_has_addr
617 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
618
2110b94f
MK
619 * cris-tdep.c (cris_gdbarch_init): Set
620 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
621 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
622 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
623 * mips-tdep.c (mips_gdbarch_init): Likewise.
624 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
625 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
626
48436ce6
AC
6272003-09-13 Andrew Cagney <cagney@redhat.com>
628
629 * values.c (using_struct_return): Delete "function" and "funcaddr"
630 parameters.
631 * value.h (using_struct_return): Update declaration.
632 * infcmd.c (finish_command_continuation): Update.
633 (finish_command): Update.
634 * infcall.c (call_function_by_hand): Update.
635 * eval.c (evaluate_subexp_standard): Update.
636
403d9909
CF
6372003-09-13 Christopher Faylor <cgf@redhat.com>
638
639 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
640 SSE registers since gdb will not operate correctly without this.
641 Restore include file ordering munged in previous change.
642 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
643
ebf7d56b
MK
6442003-09-13 Mark Kettenis <kettenis@gnu.org>
645
8e823e25
MK
646 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
647 REG_STRUCT_HAS_ADDR.
648 * gdbarch.c, gdbarch.h: Updated.
649 * infcall.c (call_function_by_hand): Update.
650 * stabsread.c (define_symbol): Updated.
651
ebf7d56b
MK
652 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
653
d3f13f72
CF
6542003-09-12 Christopher Faylor <cgf@redhat.com>
655
656 * win32-nat.c: Reorganize so that defines used by target headers are
657 actually defined by the system headers.
658 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
659 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
660
14f75137
JB
6612003-09-12 Jim Blandy <jimb@redhat.com>
662
d646061f
JB
663 * dbxread.c (read_dbx_symtab): Don't report an internal error if
664 the file has no .data, .bss, or .rodata sections. Instead wait
665 until we see a variable alleged to live in one of those sections.
666
2a13f9bc
JB
667 * dbxread.c (read_dbx_symtab): If we have no .data section and no
668 .bss section, presume that any variables we find live in the
669 .rodata section.
670
4f49b26b
JB
671 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
672 offsets for global and static variables.
673
14f75137
JB
674 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
675 symbol types are, by definition, in the .data section, so it is
676 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
677 If there is no .data section, there should be no N_DATA or N_DATA
678 | N_EXT symbols.
679
212c460c
MK
6802003-09-12 Mark Kettenis <kettenis@gnu.org>
681
682 * amd64fbsd-tdep.c: Fix sigtramp recognition.
683 (amd64fbsd_sigcontext_addr): Rewrite.
684 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
685 with correct values.
686 (amd64fbsd_sc_reg_offset): Initialize with correct values.
687 (amd64fbsd_init_abi): Fix typo.
688
68856ea3
AC
6892003-09-12 Andrew Cagney <cagney@redhat.com>
690
691 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
692 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
693
627b3ba2
AC
6942003-09-12 Andrew Cagney <cagney@redhat.com>
695
696 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
697 "entry_file_highpc". Update comments.
698 * defs.h (deprecated_inside_entry_file): Rename
699 "inside_entry_file".
700 * blockframe.c (deprecated_inside_entry_file): Rename
701 "inside_entry_file".
702 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
703 * vax-tdep.c (vax_frame_chain): Update.
704 * sh64-tdep.c (sh64_frame_chain): Update.
705 * sh-tdep.c (sh_frame_chain): Update.
706 * rs6000-tdep.c (rs6000_frame_chain): Update.
707 * ns32k-tdep.c (ns32k_frame_chain): Update.
708 * mips-tdep.c (mips_frame_chain): Update.
709 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
710 * m32r-tdep.c (m32r_frame_this_id): Update.
711 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
712 * frv-tdep.c (frv_frame_this_id): Update.
713 * d10v-tdep.c (d10v_frame_this_id): Update.
714 * cris-tdep.c (cris_frame_chain): Update.
715 * blockframe.c (legacy_frame_chain_valid): Update.
716 * avr-tdep.c (avr_frame_this_id): Update.
717 * arm-tdep.c (arm_prologue_this_id): Update.
718 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
719 * objfiles.c (objfile_relocate): Update.
720 * mipsread.c (mipscoff_symfile_read): Update.
721 (mipscoff_symfile_read): Update.
722 * mdebugread.c (parse_partial_symbols): Update.
723 * dwarfread.c (read_file_scope): Update.
724 * dwarf2read.c (read_file_scope): Update.
725 * dbxread.c (read_dbx_symtab): Update.
726 (read_dbx_symtab): Update.
727 * coffread.c (complete_symtab): Update.
728
b0abbc58
JJ
7292003-09-12 Jeff Johnston <jjohnstn@redhat.com>
730
731 * top.c (quit_target): New static helper function.
732 (quit_force): Moved code to quit_target(). Call quit_target()
733 via catch_errors() to catch errors during quit.
734
a1632d59
DC
7352003-09-11 David Carlton <carlton@kealia.com>
736
737 * buildsym.c (finish_block): Use allocate_block to allocate the
738 block.
739 * mdebugread.c (new_block): Add FIXME.
740
5c4e30ca
DC
7412003-09-11 David Carlton <carlton@kealia.com>
742
743 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
744 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
745 (recursive_dump_type): Ditto.
746 * printcmd.c (print_formatted): Ditto.
747 * typeprint.c (print_type_scalar): Ditto.
748 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
749 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
750 * cp-support.h: Declare cp_check_possible_namespace_symbols,
751 maint_cplus_cmd_list.
752 * cp-support.c: Make maint_cplus_cmd_list extern.
753 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
754 command.h.
755 (lookup_symbol_file): Look in possible namespace blocks when
756 appropriate.
757 (initialize_namespace_symtab): New.
758 (get_possible_namespace_block, free_namespace_block)
759 (check_possible_namespace_symbols)
760 (check_possible_namespace_symbols_loop)
761 (check_one_possible_namespace_symbol)
762 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
763 (_initialize_cp_namespace): Ditto.
764 * block.h: Declare allocate_block.
765 * block.c (allocate_block): New.
766 * jv-lang.c (get_java_class_symtab): Allocate blocks via
767 allocate_block.
768 * symfile.h: Update declaration of add_psymbol_to_list.
769 * symfile.c (add_psymbol_to_list): Return the partial symbol in
770 question.
771 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
772 scan_partial_symbols_call.
773 (scan_partial_symbols): Add NAMESPACE argument; update calls to
774 helper functions.
775 (add_partial_symbol): If necessary, scan mangled names for names
776 of namespaces.
777 (add_partial_namespace): Add NAMESPACE argument; generate partial
778 symbols associated to namespaces.
779 (add_partial_enumeration): Add NAMESPACE argument.
780 (new_symbol): Allow namespace syms.
781 (read_namespace): Generate namespace syms.
782 * objfiles.h: Add opaque declaration of struct symtab.
783 (struct objfile): Add cp_namespace_symtab member.
784 * objfiles.c (allocate_objfile): Set
785 objfile->cp_namespace_symtab.
786 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
787 dictionary_h, command_h.
788
33a7c2fc
AC
7892003-09-11 Andrew Cagney <cagney@redhat.com>
790
791 * rs6000-tdep.c (rs6000_push_dummy_call): Use
792 regcache_raw_write_signed to set SP_REGNUM, move the operation to
793 near the function's end.
794 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
795 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
796 regcache_raw_write_signed to set SP_REGNUM.
797
63cd24fe
EZ
7982003-09-11 Elena Zannoni <ezannoni@redhat.com>
799
800 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
801 orig_addrs is set up properly.
802
f27dd7fd
AC
8032003-09-11 Andrew Cagney <cagney@redhat.com>
804
805 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
806 * gdbarch.h, gdbarch.c: Re-generate.
807 * infcall.c (call_function_by_hand): Update.
808 * hppa-tdep.c (hppa_push_arguments): Update.
809 * ada-lang.c (place_on_stack): Update.
810 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
811 * sparc-tdep.c (sparc_gdbarch_init): Update.
812 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
813 * hppa-tdep.c (hppa_gdbarch_init): Update.
814 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
815 stack_align.
816
f630a401
DJ
8172003-09-11 Daniel Jacobowitz <drow@mvista.com>
818
819 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
820 register do need a frame.
821
0ddabb4c
AC
8222003-09-11 Andrew Cagney <cagney@redhat.com>
823
824 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
825 buildable since GDB 5.0.
826 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
827 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
828 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
829 * irix4-nat.c: Delete file.
830 * config/mips/irix4.mh: Delete file.
831 * config/mips/irix3.mh: Delete file.
832 * config/mips/irix3.mt: Delete file.
833 * config/mips/tm-irix3.h: Delete file.
834 * config/mips/nm-irix3.h: Delete file.
835 * config/mips/xm-irix3.h: Delete file.
836 * config/mips/nm-irix4.h: Delete file.
837 * config/mips/xm-irix4.h: Delete file.
838 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
839
fde2cceb
JB
8402003-09-10 J. Brobecker <brobecker@gnat.com>
841
842 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
843 * Makefile.in (hppa-tdep.o): Update dependencies.
844
66f667f5
JW
8452003-09-10 James E Wilson <wilson@specifixinc.com>
846
ef5fd69f
JW
847 * MAINTAINERS: Change my e-mail address. Move to paper trail
848 section.
66f667f5 849
53e8aaea
KB
8502003-09-10 Kevin Buettner <kevinb@redhat.com>
851
852 * MAINTAINERS (frv): New ISA entry.
853
dcc6aaff
KB
8542003-09-10 Kevin Buettner <kevinb@redhat.com>
855
856 * frv-tdep.c (dis-asm.h): Include.
857 * Makefile.in (frv-tdep.o): Update dependencies.
858
932644f0
JJ
8592003-09-09 Jeff Johnston <jjohnstn@redhat.com>
860
861 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
862 Fix typo for high range of floating registers.
863
91c24f0a
DC
8642003-09-09 David Carlton <carlton@kealia.com>
865
866 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
867 highpc initialization here out of scan_partial_symbols.
868 (scan_partial_symbols): Restructure into a recursive version,
869 calling add_partial_namespace and add_partial_enumeration when
870 appropriate.
871 (add_partial_namespace): New.
872 (add_partial_enumeration, locate_pdi_sibling): Ditto.
873
c9263853
AC
8742003-09-09 Andrew Cagney <cagney@redhat.com>
875
e56a0ecc
AC
876 * rs6000-tdep.c (ppc_push_return_address): Delete function.
877 (rs6000_push_dummy_call): Set LR to BP_ADDR.
878 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
879 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
880
794a477a
AC
881 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
882 (rs6000_push_dummy_call): Set the "TOC" register.
883
c9263853
AC
884 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
885 methods "max_register_raw_size", "max_register_virtual_size" or
886 "register_virtual_size".
887
afa7d0b2
ILT
8882003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
889
890 * MAINTAINERS: Update my e-mail address.
891
7a41266b
AC
8922003-09-09 Andrew Cagney <cagney@redhat.com>
893
894 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
895 (rs6000_push_dummy_call): Store the struct return address.
896 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
897
77b2b6d4
AC
8982003-09-09 Andrew Cagney <cagney@redhat.com>
899
900 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
901 "ppc_sysv_abi_push_arguments".
902 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
903 "ppc_sysv_abi_push_arguments".
904 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
905 instead of "push_arguments".
906 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
907
e8a7b686
AC
9082003-09-09 Andrew Cagney <cagney@redhat.com>
909
910 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
911 instead of CALL_DUMMY_ADDRESS.
912
f86f5ca3
PH
9132003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
914
915 * p-lang.c: Eliminate "register".
916 * c-lang.c: Ditto.
917 * expprint.c: Ditto.
918 * f-lang.c: Ditto.
919 * jv-lang.c: Ditto.
920 * language.c: Ditto.
921 * m2-lang.c: Ditto.
922 * parse.c: Ditto.
923 * scm-lang.c: Ditto.
924 * objc-lang.c: Ditto.
925
83ee270e
NC
9262003-09-09 Nick Clifton <nickc@redhat.com>
927
928 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
929
a89aa300
AC
9302003-09-04 Andrew Cagney <cagney@redhat.com>
931
932 * avr-tdep.c: Include "dis-asm.h".
933 * cris-tdep.c: Include "dis-asm.h".
934 (cris_delayed_get_disassembler): Use "struct disassemble_info"
935 instead of corresponding typedef.
936 * h8300-tdep.c: Include "dis-asm.h".
937 * ia64-tdep.c: Include "dis-asm.h".
938 * i386-tdep.c: Include "dis-asm.h".
939 (i386_print_insn): Use "struct disassemble_info" instead of
940 corresponding typedef.
941 * m68k-tdep.c: Include "dis-asm.h".
942 * mcore-tdep.c: Include "dis-asm.h".
943 * mips-tdep.c: Include "dis-asm.h".
944 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
945 instead of corresponding typedef.
946 * ns32k-tdep.c: Include "dis-asm.h".
947 * s390-tdep.c: Include "dis-asm.h".
948 * sparc-tdep.c: Include "dis-asm.h".
949 * vax-tdep.c: Include "dis-asm.h".
950 * v850-tdep.c: Include "dis-asm.h".
951 * mn10300-tdep.c: Include "dis-asm.h".
952 * rs6000-tdep.c: Include "dis-asm.h".
953 * xstormy16-tdep.c: Include "dis-asm.h".
954 (_initialize_xstormy16_tdep): Delete "extern" declaration of
955 print_insn_xstormy16.
956 * Makefile.in (v850-tdep.o): Update dependencies.
957 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
958 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
959 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
960 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
961 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
962 (gdbarch_h): Remove $(dis_asm_h).
963 * disasm.c: Include "dis-asm.h".
964 (dis_asm_read_memory): Use "struct disassemble_info" instead of
965 corresponding typedef.
966 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
967 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
968 * gdbarch.sh: Do not include "dis-asm.h".
969 (struct disassemble_info): Declare opaque.
970 (TARGET_PRINT_INSN): Update declaration.
971 * gdbarch.h, gdbarch.c: Re-generate.
972
88a82a65
AC
9732003-09-08 Andrew Cagney <cagney@redhat.com>
974
975 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
976 CALL_DUMMY_ADDRESS, change to a predicate.
977 * gdbarch.h, gdbarch.c: Re-generate.
978 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
979 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
980 * infcall.c (call_function_by_hand): Ditto.
981 * sparc-tdep.c (sparc_push_return_address): Ditto.
982 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
983 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
984 CALL_DUMMY_ADDRESS with entry_point_address.
985 * v850-tdep.c (v850_push_return_address): Ditto.
986 * s390-tdep.c (s390_push_return_address): Ditto.
987 * rs6000-tdep.c (ppc_push_return_address): Ditto.
988 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
989 * mcore-tdep.c (mcore_push_return_address): Ditto.
990 * cris-tdep.c (cris_push_return_address): Ditto.
991 * arm-tdep.c (arm_push_return_address): Ditto.
992
3e2c4033
AC
9932003-09-08 Andrew Cagney <cagney@redhat.com>
994
995 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
996 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
997 and REG_UNMODIFIED to REG_SAME_VALUE.
998 (execute_cfa_program): Update.
999 (dwarf2_frame_cache): Update. Initialize table to
1000 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1001 location.
1002 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1003
39efb398
AC
10042003-09-08 Andrew Cagney <cagney@redhat.com>
1005
1006 * gnu-nat.c: Remove "inline" function attribute.
1007 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1008
f5cb5aca
KB
10092003-09-08 Kevin Buettner <kevinb@redhat.com>
1010
1011 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1012 target.
1013
1cb761c7
KB
10142003-09-08 Kevin Buettner <kevinb@redhat.com>
1015
1016 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1017 (frame_extra_info): Rename this struct to frv_unwind_cache.
1018 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1019 Add fields ``prev_sp'' and ``base''.
1020 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1021 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1022 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1023 Delete.
1024 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1025 Revise all callers. Fill in the unwind cache argument and make
1026 other adjustments to account for new frame mechanisms.
1027 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1028 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1029 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1030 (frv_frame_unwind, frv_frame_base): New structs.
1031 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1032 additional arguments expected by this method and adjust function
1033 body accordingly.
1034 (frv_gdbarch_init): Remove calls to the following functions:
1035 set_gdbarch_deprecated_init_frame_pc(),
1036 set_gdbarch_deprecated_saved_pc_after_call(),
1037 set_gdbarch_deprecated_frame_chain(),
1038 set_gdbarch_deprecated_frame_saved_pc(),
1039 set_gdbarch_deprecated_frame_init_saved_regs(),
1040 set_gdbarch_deprecated_push_arguments(),
1041 set_gdbarch_deprecated_push_return_address(),
1042 set_gdbarch_deprecated_pop_frame(),
1043 set_gdbarch_deprecated_call_dummy_words(),
1044 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1045 set_gdbarch_deprecated_init_extra_frame_info(),
1046 set_gdbarch_deprecated_dummy_write_sp(), and
1047 set_gdbarch_deprecated_pc_in_call_dummy().
1048 Add calls to the following functions:
1049 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1050 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1051 frame_base_set_default().
1052 * Makefile.in (frv-tdep.o): Update dependencies.
1053
68f6cf99
MK
10542003-09-09 Mark Kettenis <kettenis@gnu.org>
1055
1056 * dwarf2-frame.c (read_encoded_value): Add support for
1057 DW_EH_PE_aligned encoding.
1058
73b65bb0
DJ
10592003-09-08 Daniel Jacobowitz <drow@mvista.com>
1060
1061 * infrun.c (normal_stop): Don't print a message if the inferior
1062 has exited.
1063
7c8a5605
JB
10642003-09-08 Jim Blandy <jimb@redhat.com>
1065
1066 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1067 * dbxread.c: #include "gdb_assert.h".
1068 (read_dbx_symtab): If the objfile has no .data section, use the
1069 section index for the .bss section instead.
1070
7dd88986
DJ
10712003-09-08 Daniel Jacobowitz <drow@mvista.com>
1072
1073 * frame.c (deprecated_safe_get_selected_frame): New function.
1074 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1075 * findvar.c (read_var_value): Call it.
1076
55ff77ac
CV
10772003-09-08 Corinna Vinschen <vinschen@redhat.com>
1078
1079 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1080 (sh64-tdep.o): Add dependencies.
1081 * configure.tgt: Add FIXME to sh-*-linux*.
1082 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1083 (sh_gdbarch_init): Always set correct sh_show_regs function
1084 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1085 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1086 * sh64-tdep.c: New file, containing all sh64 related code from
1087 sh-tdep.c.
1088 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1089 * config/sh/linux.mt (TDEPFILES): Ditto.
1090 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1091 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1092 * config/sh/wince.mt (TDEPFILES): Ditto.
1093
bfb39158
DJ
10942003-09-07 Daniel Jacobowitz <drow@mvista.com>
1095
1096 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1097 (stop_wait_callback): Handle !lp->signalled also.
1098 (lin_lwp_has_pending, flush_callback): New functions.
1099 (lin_lwp_wait): Call flush_callback.
1100 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1101 (linux_proc_pending_signals): New function.
1102 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1103
9407de8e
DJ
11042003-09-07 Daniel Jacobowitz <drow@mvista.com>
1105
1106 From Nick Kelsey <nickk@ubicom.com>:
1107 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1108 when the stop PC is at the beginning of a function also.
1109
2ef47cd0
DJ
11102003-09-06 Daniel Jacobowitz <drow@mvista.com>
1111
1112 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1113 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1114
6f4492c8
MK
11152003-09-06 Mark Kettenis <kettenis@gnu.org>
1116
1117 * sol-thread.c: Include "gdb_string.h".
1118
d3420b2f
MK
11192003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1120
1121 * gcore.c: Reorder include files in alphabetical order. Include
1122 "gdb_assert.h". Various coding style fixes.
1123 (derive_stack_segment, derive_heap_segment): Replace check for
1124 non-null BOTTOM and TOP with gdb_assert.
1125 (derive_heap_segment): Replace check for successful creation of
1126 ZERO with gdb_assert.
1127 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1128
5220ea4c
AC
11292003-09-04 Andrew Cagney <cagney@redhat.com>
1130
1131 * thread-db.c (verbose_dlsym): New function.
1132 (thread_db_load): Use verbose_dlsym
1133 (thread_db_new_objfile): Print that libthread_db was loaded, and
1134 that thread debugging was enabled.
1135
6e8c2c06
AC
11362003-09-04 Andrew Cagney <cagney@redhat.com>
1137
1138 * configure.tgt: Add "mips64*-*-*" target. Delete
1139 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1140 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1141 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1142 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1143 mips*-sony-*, and mips64*-*-elf* targets.
1144 * config/mips/embedl.mt: Delete file.
1145 * config/mips/embedl64.mt: Delete file.
1146 * config/mips/mips.mt: Delete file.
1147 * config/mips/mips64.mt: Delete file.
1148 * config/mips/tm-embed.h: Delete file.
1149 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1150 * config/mips/embed64.mt: Delete out-of-date comment.
1151
3a3bc038
AC
11522003-09-04 Andrew Cagney <cagney@redhat.com>
1153
1154 * hppa-tdep.c (hppa_gdbarch_init): Set
1155 "have_nonsteppable_watchpoint".
1156 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1157 * mips-tdep.c (mips_dump_tdep): Do not print
1158 HAVE_NONSTEPPABLE_WATCHPOINT.
1159 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1160 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1161 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1162 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1163
a957e642
CV
11642003-09-04 Corinna Vinschen <vinschen@redhat.com>
1165
1166 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1167 unused code. Add comment.
1168
a6fbcf2f
CV
11692003-09-04 Corinna Vinschen <vinschen@redhat.com>
1170
1171 * breakpoint.c (watchpoint_check): Check for pc being in an
1172 epilogue if watchpoint frame couldn't be found.
1173
c14a44d5
AC
11742003-09-04 Andrew Cagney <cagney@redhat.com>
1175
1176 * Makefile.in: Re-generate all dependencies.
1177
f6c40618
AC
11782003-09-03 Andrew Cagney <cagney@redhat.com>
1179
1180 * arch-utils.h (legacy_print_insn): Delete declaration.
1181 * arch-utils.c (legacy_print_insn): Delete function.
1182 * disasm.c (deprecated_tm_print_insn_info): Delete.
1183 (_initialize_disasm): Delete function, contained code initializing
1184 deprecated_tm_print_insn_info.
1185 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1186 (deprecated_tm_print_insn_info): Delete.
1187 (TARGET_PRINT_INSN): Do not provide a default.
1188 * gdbarch.h, gdbarch.c: Re-generate.
1189
242e8be5
AC
11902003-09-03 Andrew Cagney <cagney@redhat.com>
1191
1192 * disasm.c (fprintf_disasm): New function.
1193 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1194 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1195 reverts 2003-08-14 change.
1196 (_initialize_disasm): Call "init_disassemble_info", instead of
1197 INIT_DISASSEMBLE_INFO_NO_ARCH.
1198
3ffc3dda
MS
11992003-09-03 Michael Snyder <msnyder@redhat.com>
1200
1201 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1202
52d16ba8
AC
12032003-09-03 Andrew Cagney <cagney@redhat.com>
1204
1205 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1206 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1207 * symfile.c (syms_from_objfile): Update.
1208 (reread_symbols): `Update
1209 * exec.c (exec_file_attach): Update.
1210 (exec_file_attach): Update.
1211 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1212 2003-08-29 change.
1213 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1214
eb5492fa
DJ
12152003-09-03 Daniel Jacobowitz <drow@mvista.com>
1216
1217 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1218 trad-frame.h.
1219 (arm_get_cache): Delete macro.
1220 (struct arm_prologue_cache): Update comments. Make saved_regs into
1221 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1222 to prev_sp.
1223 (thumb_scan_prologue): Update for cache changes. Don't call
1224 DEPRECATED_PC_IN_CALL_DUMMY.
1225 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1226 argument and use it in desperation search for our prologue. Do not
1227 search past the specified PC.
1228 (arm_make_prologue_cache): Simplify.
1229
1230 (arm_prologue_this_id, arm_prologue_prev_register)
1231 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1232 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1233 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1234 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1235 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1236
1237 (arm_frame_chain_valid, arm_find_callers_reg)
1238 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1239 (arm_pop_frame): Delete obsolete methods.
1240 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1241
1242 (arm_gdbarch_init): Update for new frame methods. Register prologue
1243 and sigtramp unwinders. Set the default frame base method.
1244
1245 * Makefile.in (arm-tdep.o): Update dependencies.
1246 * varobj.c (find_frame_addr_in_frame_chain): Call
1247 get_frame_base_address.
1248 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1249
24de872b
DJ
12502003-09-03 Daniel Jacobowitz <drow@mvista.com>
1251
1252 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1253 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1254 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1255 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1256 Take NEXT_FRAME and CACHE arguments. Call
1257 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1258 Set unwound_pc in CACHE instead of modifying the frame argument.
1259 Don't bother checking the frame type when looking for sigtramp
1260 frames.
1261 (arm_make_prologue_cache, arm_frame_chain)
1262 (arm_init_extra_frame_info): New functions.
1263
9b8d791a
DJ
12642003-09-03 Daniel Jacobowitz <drow@mvista.com>
1265
1266 * arm-tdep.c (arm_get_cache): Define.
1267 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1268 unwound_sp, unwound_pc, and saved_regs.
1269 (thumb_scan_prologue): Take a cache instead of the frame.
1270 (arm_scan_prologue): Likewise.
1271 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1272 instead of a temporary frame.
1273 (arm_init_extra_frame_info): Allocate and use a cache.
1274 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1275
7ee3275f
AC
12762003-09-03 Andrew Cagney <cagney@redhat.com>
1277
1278 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1279 * config/mips/wince.mt (TM_CLIBS): Ditto.
1280 * config/sh/wince.mt (TM_CLIBS): Ditto.
1281 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1282 * config/sparc/sp64.mt (CC): Delete.
1283
57b29be7
AC
12842003-09-03 Andrew Cagney <cagney@redhat.com>
1285
1286 * defs.h: Do not include "arch-utils.h".
1287 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1288 GDB_MULTI_ARCH_PURE.
1289 * configure.in (GDB_MULTI_ARCH): Do not define.
1290 * configure, config.in: Regenerate.
1291 * configure.tgt: Do not set variable "gdb_multi_arch".
1292 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1293 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1294 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1295 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1296 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1297 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1298 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1299 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1300 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1301 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1302 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1303 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1304 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1305 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1306 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1307 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1308 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1309 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1310
12e035e2
MC
13112003-08-30 Michael Chastain <mec@shout.net>
1312
1313 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1314 * config/m68k/nm-hp300hpux.h: Delete.
1315 * config/m68k/tm-hp300hpux.h: Delete.
1316 * config/m68k/xm-hp300hpux.h: Delete.
1317 * config/m68k/xm-hp300bsd.h: Delete.
1318 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1319 tm-hp300hpux.h, xm-hp300hpux.h.
1320 * somsolib.c: Remove comment about hp300 shared libraries.
1321
bda34dc2
MK
13222003-08-31 Mark Kettenis <kettenis@gnu.org>
1323
5bca7895
MK
1324 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1325 Only define PTRACE_GET_THREAD_AREA is not already defined.
1326 Various style fixes in code and comments and some additional
1327 spelling fixes in comments. Move after functions dealing with
1328 debug registers.
1329 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1330 Fix coding-style.
1331
bda34dc2
MK
1332 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1333 frame_unwind_register_unsigned instead of
1334 frame_unwind_unsigned_register.
1335
c890192f
MK
13362003-08-30 Mark Kettenis <kettenis@gnu.org>
1337
1338 * configure.in: Search for gethostbyname in libnsl.
1339 * configure: Regenerated.
1340
60fac5b8
MK
13412003-08-29 Mark Kettenis <kettenis@gnu.org>
1342
e294916c
MK
1343 * configure.in: Remove redundant AC_MSG_RESULT in check for
1344 uintptr_t in stdint.h.
1345 * configure: Regenerated.
1346
c40d267a
MK
1347 * amd64-nat.h (struct regcache): Add opaque declaration.
1348
60fac5b8
MK
1349 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1350 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1351 Change "register array" to "register cache" in comments.
1352 (x86_64_linux_gregset64_reg_offset): New variable.
1353 (GETREGS_SUPPLIES): Remove macro.
1354 (supply_gregset): Call amd64_supply_native_gregset instead of
1355 x86_64_linux_supply_gregset.
1356 (fill_gregset): Rename `regno' to `regnum'. Call
1357 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1358 (store_regs): Rename `regno' to `regnum'.
1359 (store_fpregs): Rename `regno' to `regnum'.
1360 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1361 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1362 Reorganize function a bit.
1363 (store_inferior_registers): Rename `regno' to `regnum'. Use
1364 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1365 Reorganize function a bit.
1366 (_initialize_x86_64_linux_nat): New function.
1367 * config/i386/x86-64linux.mh.
1368
546143b6
AC
13692003-08-29 Andrew Cagney <cagney@redhat.com>
1370
1371 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1372 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1373 (target_remove_watchpoint): Delete macro.
1374 (target_insert_watchpoint): Delete macro.
1375 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1376 (remote_mips_stopped_by_watchpoint): Delete declaration.
1377 (remote_mips_remove_watchpoint): Delete declaration.
1378 (remote_mips_set_watchpoint): Delete declaration.
1379 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1380 * remote-mips.c (_initialize_remote_mips): Set
1381 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1382 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1383 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1384 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1385 (mips_stopped_by_watchpoint): Rename
1386 remote_mips_stopped_by_watchpoint.
1387 (mips_can_hardware_watchpoint): Rename
1388 remote_mips_can_use_hardware_watchpoint, update function
1389 signature.
1390
7bace51b
MK
13912003-08-29 Mark Kettenis <kettenis@gnu.org>
1392
b0f5c6f2
MK
1393 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1394 USER_DS. We haven't given them a register number yet.
1395
2a6d284d
MK
1396 * amd64-nat.h: New file.
1397 * amd64-nat.c: New file.
1398 * amd64fbsd-nat.c: Include "amd64-nat.h".
1399 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1400 (amd64fbsd32_r_reg_offset): New variable.
1401 (supply_gregset): Simply call amd64_supply_native_gregset.
1402 (fill_gregset): Rename `regno' to `regnum'. Simply call
1403 amd64_collect_native_gregset.
1404 (fill_fpregset): Rename `regno' to `regnum'.
1405 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1406 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1407 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1408 `fpregset_t'. Call amd64_supply_native_gregset instead of
1409 supply_gregset. Call x86_64_supply_fxsave instead of
1410 supply_fpregset.
1411 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1412 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1413 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1414 `fpregset_t'. Call amd64_collect_native_gregset instead of
1415 fill_gregset. Call x86_64_collect_fxsave instead of
1416 fill_fpregset.
1417 (_initialize_am64fbsd_nat): Initialize
1418 amd64_native_gregset32_reg_offset and
1419 amd64_native_gregset64_reg_offset.
1420 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1421
a16d75cc
MK
1422 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1423 null pointer. Fix typo in comment.
1424
7bace51b
MK
1425 * regcache.c (supply_register): Reimplement to call
1426 regcache_raw_supply.
1427 (regcache_collect): Reimplement by calling regcache_raw_collect.
1428
9a661b68
MK
14292003-08-28 Mark Kettenis <kettenis@gnu.org>
1430
1431 * regcache.c (register_buffer): Consitify first argument.
1432 (regcache_raw_supply, regcache_raw_collect): New
1433 functions.
1434
e94cc8fa
DJ
14352003-08-28 Daniel Jacobowitz <drow@mvista.com>
1436
1437 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1438 by Nathan J. Williams.
1439
c64bd0ce
DJ
14402003-08-28 Daniel Jacobowitz <drow@mvista.com>
1441
1442 * lin-lwp.c (wait_lwp): New function, copied from
1443 stop_wait_callback. Clean up.
1444 (stop_wait_callback): Use wait_lwp.
1445
e5ab0dce
AC
14462003-08-28 Andrew Cagney <cagney@redhat.com>
1447
1448 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1449 flavour and disassembler options.
1450 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1451 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1452 deprecated_tm_print_insn_info.
1453
a788de9b
AC
14542003-08-27 Andrew Cagney <cagney@redhat.com>
1455
1456 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1457 Use target_read_memory.
1458 (s390_get_frame_info): Update. Do not reference
1459 deprecated_tm_print_insn_info.
1460 (s390_check_function_end, s390_is_sigreturn): Ditto.
1461
36482093
AC
14622003-08-27 Andrew Cagney <cagney@redhat.com>
1463
1464 * Makefile.in (cris-tdep.o): Update dependencies.
1465 * cris-tdep.c: Include "gdb_assert.h".
1466 (cris_gdbarch_init): Set print_insn.
1467 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1468 (cris_delayed_get_disassembler): Simplify, directly call the
1469 disassembler returned by cris_get_disassembler.
1470 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1471 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1472 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1473 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1474 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1475 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1476 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1477 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1478 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1479 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1480 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1481 (gdb_print_insn_sparc): Delete function.
1482 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1483 deprecated_tm_print_insn_info.
1484 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1485 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1486 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1487 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1488 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1489 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1490 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1491 (s390_gdbarch_init): Set print_insn.
1492
0285512f
AC
14932003-08-27 Andrew Cagney <cagney@redhat.com>
1494
1495 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1496 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1497 * infcall.c (call_function_by_hand): Convert the entry point
1498 address into a code address.
1499
cdcd5552
AC
15002003-08-27 Andrew Cagney <cagney@redhat.com>
1501
1502 * dsrec.c: Include "gdb_string.h".
1503 * Makefile.in (dsrec.o): Update dependencies.
1504
e85cddad
MC
15052003-08-27 Michael Chastain <mec@shout.net>
1506
1507 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1508
8bbfbb23
AC
15092003-08-27 Andrew Cagney <cagney@redhat.com>
1510
1511 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1512 (alpha_osf1_init_abi): Do not set call_dummy_address.
1513
ba058b66
DC
15142003-08-27 David Carlton <carlton@kealia.com>
1515
1516 From Randolph Chung <tausq@debian.org>:
1517 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1518 compiles with -Wformat-nonliteral -Werror.
1519
87f84c9d
JB
15202003-08-26 Jim Blandy <jimb@redhat.com>
1521
1522 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1523 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1524 bfd_lookup_symbol, since we only want symbols in code sections.
1525 (look_for_base): Pass zero as the SECT_FLAGS argument to
1526 bfd_lookup_symbol, since we're not concerned about which section
1527 the symbol is in.
1528
102d615a
JJ
15292003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1530
1531 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1532 we are frameless or the return address register is already known.
1533
cc7ad3ea
AC
15342003-08-26 Andrew Cagney <cagney@redhat.com>
1535
1536 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1537 in size. Add comments.
1538
af8b88dd
JJ
15392003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1540
1541 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1542 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1543
e0a4f5a1
JM
15442003-08-26 Jason Merrill <jason@redhat.com>
1545
1546 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1547 case out of #ifdef MIPS block.
1548
4ae9ee8e
DJ
15492003-08-25 Daniel Jacobowitz <drow@mvista.com>
1550
1551 PR java/1322
1552 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1553 available before calling SECT_OFF_TEXT.
3c164570 1554 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1555
004d836a
JJ
15562003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1557
1558 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1559 bof, and nat0-nat127 as pseudo-registers.
1560 (ia64_frame_cache): New struct used to cache frame info.
1561 (ia64_register_reggroup_p): New routine used to override default
1562 register grouping so registers without names are still saved and
1563 restored.
1564 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1565 pseudo values.
1566 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1567 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1568 (ia64_alloc_frame_cache): New routine to create a new
1569 ia64_frame_cache.
1570 (examine_prologue): Change prototype to add next_frame pointer.
1571 Assume frameless until otherwise proven. Verify that the cfm for
1572 current frame matches the cfm that should occur for the prologues
1573 alloc insn and if equal, mark as not frameless. At end of routine,
1574 if not frameless, calculate registers for the previous frame and store
1575 in the cache, if a cache is provided.
1576 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1577 and pass 0 for next_frame.
1578 (ia64_store_return_value): Change to use convert_typed_floating()
1579 instead of calling ia64_convert_to_raw().
1580 (ia64_extract_return_value): Change to use convert_typed_floating()
1581 instead of calling ia64_convert_to_virtual().
1582 (ia64_frame_cache): New routine to support new frame model.
1583 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1584 (ia64_frame_sniffer): Ditto.
1585 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1586 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1587 (ia64_sigtramp_frame_prev_register): Ditto.
1588 (ia64_sigtramp_frame_sniffer): Ditto.
1589 (ia64_frame_base_address): Ditto.
1590 (ia64_extract_struct_value_address): Change to issue error message.
1591 (ia64_frame_align): New routine to align sp.
1592 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1593 (ia64_push_arguments): Removed. Logic moved to
1594 ia64_push_dummy_call().
1595 (ia64_push_return_address): Ditto.
1596 (ia64_unwind_dummy_id): New function.
1597 (ia64_unwind_pc): Ditto.
1598 (ia64_convert_register_p): Ditto.
1599 (ia64_register_to_value): Ditto.
1600 (ia64_value_to_register): Ditto.
1601 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1602 (ia64_register_byte, ia64_register_raw_size): Ditto.
1603 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1604 (ia64_saved_pc_after_call): Ditto.
1605 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1606 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1607 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1608 (ia64_register_convert_to_raw): Ditto.
1609 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1610 (ia64_init_extra_frame_info): Ditto.
1611 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1612 (ia64_gdbarch_init): Remove registering of deprecated functions that
1613 are no longer used. Add registration of new gdbarch functions.
1614 Remove registering deprecated_write_sp. Replace
1615 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1616 Delete set_gdbarch_deprecated_register_convertible(),
1617 set_gdbarch_deprecated_register_convert_to_virtual(), and
1618 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1619 set_gdbarch_deprecated_register_size(),
1620 set_gdbarch_deprecated_register_bytes(),
1621 set_gdbarch_pcregnum(),
1622 set_gdbarch_deprecated_register_byte(),
1623 set_gdbarch_deprecated_register_raw_size(),
1624 set_gdbarch_deprecated_max_register_raw_size(),
1625 set_gdbarch_deprecated_register_virtual_size(),
1626 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1627 Replace set_gdbarch_deprecated_extract_return_value() with
1628 set_gdbarch_extract_return_value(). Remove calls to:
1629 set_gdbarch_deprecated_saved_pc_after_call();
1630 set_gdbarch_deprecated_frame_chain(),
1631 set_gdbarch_deprecated_frame_saved_pc(),
1632 set_gdbarch_deprecated_frame_init_saved_regs(),
1633 set_gdbarch_deprecated_get_saved_register(),
1634 set_gdbarch_deprecated_call_dummy_words(),
1635 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1636 set_gdbarch_deprecated_init_extra_frame_info(),
1637 set_gdbarch_deprecated_frame_args_address(),
1638 set_gdbarch_deprecated_frame_locals_address(),
1639 and set_gdbarch_deprecated_dummy_write_sp().
1640 Add set_gdbarch_convert_register_p(),
1641 set_gdbarch_register_to_value(),
1642 set_gdbarch_value_to_register(),
1643 set_gdbarch_push_dummy_call(),
1644 set_gdbarch_frame_align(),
1645 set_gdbarch_unwind_dummy_id(),
1646 set_gdbarch_unwind_pc(),
1647 frame_unwind_append_sniffer(),
1648 frame_unwind_append_sniffer(),
1649 and frame_base_set_default().
1650
aede7613
CD
16512003-08-25 Chris Demetriou <cgd@broadcom.com>
1652
1653 * configure.tgt: Document need for special "mipsisa64" handling.
1654 (mipsisa64*-*-linux64): Handle as target linux64.
1655 (mipsisa64*-*-*): Handle as target embed64.
1656
43c3a82e
MC
16572003-08-18 Michael Chastain <mec@shout.net>
1658
1659 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1660 objfile bug.
1661
6564f77d
MK
16622003-08-24 Mark Kettenis <kettenis@gnu.org>
1663
2de139ba
MK
1664 * i387-tdep.h: Update copyright date.
1665 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1666
6564f77d
MK
1667 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1668 CFLAGS games to reflect reality.
1669
42cf1509
AC
16702003-08-24 Andrew Cagney <cagney@redhat.com>
1671
1672 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1673 GDB_MULTI_ARCH is always non-zero.
1674 * osabi.c (_initialize_gdb_osabi): Ditto.
1675 (gdbarch_init_osabi): Ditto.
1676 * sparc-tdep.c: Ditto for #if code.
1677
0485f6ad
MK
16782003-08-23 Mark Kettenis <kettenis@gnu.org>
1679
1680 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1681 Update comments.
1682 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1683 comments.
1684 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1685 x86_64_supply_fxsave.
1686 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1687 x86_64_supply_fxsave.
1688 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1689 x86_64_supply_fxsave.
1690
c7716133
AJ
16912003-08-23 Andreas Jaeger <aj@suse.de>
1692
1693 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1694 i387_supply_fxsave.
1695
ed504bdf
MK
16962003-08-23 Mark Kettenis <kettenis@gnu.org>
1697
1698 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1699 i387_supply_register.
1700 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1701 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1702 i387_supply_fsave.
1703 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1704 i387_supply_fxsave.
1705 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1706 i387_supply_fsave.
1707 * i386bsd-nat.c (supply_fpregset): Adjust call to
1708 i387_supply_fsave.
1709 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1710 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1711 supply_fpregset.
1712 (store_inferior_registers): Remove extraneous whitespace. Call
1713 i387_fill_fsave instead of fill_fpregset.
1714 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1715 (supply_fpregset): Likewise.
1716 * i386v4-nat.c (supply_fpregset): Adjust call to
1717 i387_supply_fsave.
1718 * i386-interix-nat.c (supply_fpregset): Adjust call to
1719 i387_supply_fsave.
1720 * i386-linux-nat.c (supply_fpregset): Adjust call to
1721 i387_supply_fsave.
1722 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1723 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1724 i387supply_fsave and i387_supply_fxsave.
1725 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1726 Incorporate code from `i387_supply_register.
1727 (i387_supply_register): Remove.
1728 (i387_supply_fxsave): Add `regnum' argument.
1729 Update comments.
1730 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1731 prototype.
1732 (i387_supply_register): remove prototype.
1733 Update comments.
1734
4be5d520
MC
17352003-08-22 Michael Chastain <mec@shout.net>
1736
1737 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1738 Add lines for files in gdb/testsuite/gdb.cp/* that are
1739 still not 8.3 unique.
1740
7ed85d26
DJ
17412003-08-22 Daniel Jacobowitz <drow@mvista.com>
1742
1743 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1744 TYPE_VPTR_FIELDNO is valid.
1745
eb0d3137
MK
17462003-08-19 Mark Kettenis <kettenis@gnu.org>
1747
1748 * utils.c (set_width_command): Remove prototypes.
1749 (set_screen_size): New prototype.
1750 (init_page_info): Simplify by fetching the screen size from
1751 Readline. Call set_screen_size.
1752 (set_screen_size): New function.
1753 (set_width): Add missing whitespace in comment.
1754 (set_width_command): Call set_screen_size.
1755 (set_height_command): New function.
1756 (initialize_utils): Fix formatting. Make "set height" command
1757 call set_height_command. Remove redundant code that turns off
1758 pagination if output isn't a terminal. Remove redundant call to
1759 set_width_command.
1760
7e6d0ac8
MK
17612003-08-22 Mark Kettenis <kettenis@gnu.org>
1762
3567a8ea
MK
1763 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1764 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1765 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1766 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1767 `case' keyword.
1768 (sparc64_register_info): Give the reister with number
1769 SPARC64_STATE_REGNUM a name.
1770 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1771 %asi and %ccr.
1772 (sparc64_push_dummy_call): Take BIAS into account when checking
1773 stcak alignment.
1774 (sparc_software_single_step): Remove assertions that check whether
1775 NPC and NNPC were zero.
1776 (sparc_supply_rwindow): Make public. Merge functionality with
1777 sparc64_supply_rwindow.
1778 (sparc_fill_rwindow): Make public. Merge functionality with
1779 sparc64_fill_rwindow.
1780 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1781 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1782 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1783 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1784 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1785
7e6d0ac8
MK
1786 * reggroups.c: Add whitespace after declarations of local
1787 variables in functions.
1788
72e5f484
MC
17892003-08-21 Michael Chastain <mec@shout.net>
1790
1791 * gdbtypes.h: Change array bound type from an int to enum.
1792
435ac228
AC
17932003-08-21 Andrew Cagney <cagney@redhat.com>
1794
1795 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1796 * config/sparc/tm-sparc.h: Ditto.
1797 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1798 unconditionally.
1799 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1800
0d0e1a63
MK
18012003-07-13 Mark Kettenis <kettenis@gnu.org>
1802
1803 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1804 (register_objfile_data, set_objfile_data, objfile_data): New
1805 prototypes.
1806 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1807 prototypes.
1808 (allocate_objfile): Call objfile_alloc_data.
1809 (free_objfile): Call objfile_free_data.
1810 (struct objfile_data): New.
1811 (struct objfile_data_registration): New.
1812 (struct objfile_data_registry): New.
1813 (objfile_data_registry): New variable.
1814 (register_objfile_data): New function.
1815 (objfile_alloc_data, objfile_free_data): New functions.
1816 (set_objfile_data, objfile_data): New functions.
1817 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1818 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1819 (_initialize_dwarf2_frame): New function and prototype.
1820
d90cf509
AC
18212003-08-21 Andrew Cagney <cagney@redhat.com>
1822
1823 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1824 a specific architecture.
1825 * arch-utils.h (set_architecture_from_arch_mach): Delete
1826 declaration.
1827 (target_architecture_hook): Delete declaration.
1828 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1829 (default_float_format): Assume GDB_MULTI_ARCH.
1830 (default_double_format): Assume GDB_MULTI_ARCH.
1831 (set_endian_from_file): Delete function.
1832 (arch_ok): Delete function.
1833 (set_arch): Delete function.
1834 (set_architecture_from_arch_mach): Delete function.
1835 (set_architecture_from_file): Delete function.
1836 (set_architecture): Assume GDB_MULTI_ARCH.
1837 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1838
8b39fe56
MK
18392003-08-21 Mark Kettenis <kettenis@gnu.org>
1840
1841 Rewrite FreeBSD/sparc64 native configuration.
1842 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1843 * sparc64fbsd-nat.c: New file.
1844 * sparc64fbsd-tdep.c: New file.
1845 * sparc64-tdep.c sparc64-tdep.h: New files.
1846 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1847 sparc64fbsd-tdep.o): New dependencies.
1848 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1849 and sparc64fbsd-tdep.c.
1850 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1851 * config/sparc/fbsd.mh: Remove copyright notice.
1852 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1853 sparcbsd-nat.o.
1854 * config/sparc/fbsd.mt: Remove copyright notice.
1855 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1856 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1857 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1858 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1859 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1860 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1861 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1862 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1863 "sparc/tm-sp64.h".
1864 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1865 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1866
a7f19c79
MC
18672003-08-21 Michael Chastain <mec@shout.net>
1868
1869 * symtab.h: Add doco on the space critical structures and
1870 some measurements of space usage.
1871
da08ea5b
MS
18722003-08-21 Michael Snyder <msnyder@redhat.com>
1873
1874 * tracepoint.c (trace_dump_command): Trace break address
1875 is subject to DECR_PC_AFTER_BREAK.
1876 (set_traceframe_context): Make "trace_line" an int.
1877 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1878
6df2bf50
MS
18792003-08-20 Michael Snyder <msnyder@redhat.com>
1880
1881 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1882 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1883 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1884 argument passing.
1885 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1886 functions, replace sh_push_dummy_call.
1887 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1888
0955bbf0
MC
18892003-08-20 Michael Chastain <mec@shout.net>
1890
1891 * gdbtypes.h (struct main_type): Rearrange to save space.
1892
260a4188
MS
18932003-08-20 Michael Snyder <msnyder@redhat.com>
1894
1895 * trad-frame.c: Comment typo fix.
1896
8baa6f92
KB
18972003-08-20 Michael Snyder <msnyder@redhat.com>
1898 Kevin Buettner <kevinb@redhat.com>
1899
1900 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1901 (frv_frame_init_saved_regs): Add declaration.
1902 (frame_extra_info): Add new field ``saved_regs''.
1903 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1904 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1905 Update frame related code.
1906 (frv_extract_struct_value_address): Adjust formatting.
1907 * Makefile.in (frv-tdep.o): Update dependencies.
1908 * config/frv/tm-frv.h (target_insert_watchpoint)
1909 (target_remove_watchpoint, target_insert_hw_breakpoint)
1910 (target_remove_hw_breakpoint): Delete these macros.
1911 (remote_insert_watchpoint, remote_remove_watchpoint)
1912 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1913 these declarations.
1914
87193939
MC
19152003-08-20 Michael Chastain <mec@shout.net>
1916
1917 * defs.h (ENUM_BITFIELD): New macro.
1918 * symtab.h (ENUM_BITFIELD): Use it.
1919 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1920
062103ba
SA
19212003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1922
1923 * MAINTAINERS (write after approval): Add myself.
1924
8b148df9
AC
19252003-08-18 Andrew Cagney <cagney@redhat.com>
1926
1927 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1928 * gdbarch.h, gdbarch.c: Re-generate.
1929 * infcall.c (call_function_by_hand): Adjust the SP by
1930 frame_red_zone_size before allocating any stack space.
1931 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1932 * x86-64-tdep.c (x86_64_frame_align): New function.
1933 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1934
1935 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1936 Remove code adjusting SP so that it skips over the Red Zone.
1937
954a4db8
MK
19382003-08-18 Mark Kettenis <kettenis@gnu.org>
1939
1940 * NEWS (New native configurations): Mention FreeBSD/amd64.
1941
1a241548
AC
19422003-08-18 Andrew Cagney <cagney@redhat.com>
1943
1944 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1945 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1946 "m68k_frame_p".
1947 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1948
f82b2acd
MK
19492003-08-18 Mark Kettenis <kettenis@gnu.org>
1950
1951 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1952
4056d258
ML
19532003-08-18 Michal Ludvig <mludvig@suse.cz>
1954
1955 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1956 Define.
1957 * i386-linux-nat.c: Include "linux-nat.h".
1958 (child_post_startup_inferior): New function.
1959
99ab4326
MK
19602003-08-18 Mark Kettenis <kettenis@gnu.org>
1961
1962 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1963 at the start of a frameless function. This probably fixes PR
1964 backtrace/1338.
1965
c8d5f0d6
MC
19662003-08-17 Michael Chastain <mec@shout.net>
1967
1968 * symfile.c (find_sym_fns): Remove special case for apollo target.
1969
9016a515
DJ
19702003-08-17 Daniel Jacobowitz <drow@mvista.com>
1971
1972 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1973 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1974 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1975 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1976 (linux_supports_tracevforkdone): New function.
1977 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1978 TRACEVFORKDONE.
1979 (child_follow_fork): Handle vfork.
1980 (linux_handle_extended_wait): Likewise. Also handle exec.
1981 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1982 * NEWS: Mention fork tracing.
1983
c538c11c
DJ
19842003-08-17 Daniel Jacobowitz <drow@mvista.com>
1985
1986 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1987
4de4c07c
DJ
19882003-08-17 Daniel Jacobowitz <drow@mvista.com>
1989
1990 * Makefile.in (i386-linux-nat.o): Update dependencies.
1991 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1992 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1993 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1994 * i386-linux-nat.c: Include "linux-nat.h".
1995 (child_post_startup_inferior): New function.
1996 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1997 * infptrace.c (kill_inferior): Wrap in #ifdef.
1998 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1999 attaching to each LWP.
2000 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2001 (init_lin_lwp_ops): Fill in some more operations.
2002 * linux-nat.h (linux_enable_event_reporting)
2003 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2004 prototypes.
2005 * linux-nat.c (linux_enable_event_reporting): New function.
2006 (child_post_attach, linux_child_post_startup_inferior)
2007 (child_post_startup_inferior, child_follow_fork)
2008 (linux_handle_extended_wait, kill_inferior): New functions.
2009
7996bcec
AC
20102003-08-16 Andrew Cagney <cagney@redhat.com>
2011
2012 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2013 * gdbarch.h, gdbarch.c: Re-generate.
2014
3d48a7a0
MK
20152003-08-16 Mark Kettenis <kettenis@gnu.org>
2016
2017 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2018
7989c619
AC
20192003-08-16 Andrew Cagney <cagney@redhat.com>
2020
2021 * NEWS: Mention that "set prompt-escape-char" was deleted.
2022 * top.c (get_prompt_1): Delete function.
2023 (gdb_prompt_escape):
2024 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2025 prompt-escape-char" command.
2026 (MAX_PROMPT_SIZE): Delete macro.
2027 (get_prompt): Simplify, do not call get_prompt_1.
2028
07978cd8
AC
20292003-08-16 Andrew Cagney <cagney@redhat.com>
2030
2031 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2032 -Werror. -Wformat-nonliteral problems.
2033
3ff7cf9e
JB
20342003-08-15 J. Brobecker <brobecker@gnat.com>
2035
2036 Further multiarching work mostly for hppa64-*-hpux11:
2037 * hppa-tdep.h: New file.
2038 * hppa-tdep.c: #include hppa-tdep.c.
2039 (hppa32_num_regs): Renamed from hppa_num_regs.
2040 (hppa64_num_regs): New constant.
2041 (hppa64_call_dummy_breakpoint_offset): New constant.
2042 (hppa32_call_dummy_length): New constant.
2043 (hppa64_call_dummy_length): New constant.
2044 (hppa32_stack_align): Make name 32bit explicit.
2045 (hppa32_register_virtual_type): Likewise.
2046 (hppa32_extract_return_value): Likewise.
2047 (hppa32_use_struct_convention): Likewise.
2048 (hppa32_store_return_value): Likewise.
2049 (hppa64_register_virtual_type): New function.
2050 (hppa64_extract_return_value): New function.
2051 (hppa64_use_struct_convention): New function.
2052 (hppa64_store_return_value): New function.
2053 (hppa_frame_locals_address): Remove declaration, function does
2054 not exist anymore.
2055 (hppa_register_byte): Add support for PA64 ABI.
2056 (hppa_gdbarch_init): Add support for PA64 ABI.
2057 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2058 Make name 32bit explicit.
2059 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2060 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2061 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2062 (hppa64_hpux_frame_base_before_sigtramp): New function.
2063 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2064 * config/pa/tm-hppa64.h: Remove macros that are no longer
2065 necessary now that the gdbarch vector is properly setup.
2066 Transform some macros into function calls. Some minor cleanup.
2067 * config/pa/tm-hppah.h: Update function calls in macros
2068 following the function renaming in hppa-hpux-tdep.c.
2069 * Makefile.in (hppa_tdep_h): New variable.
2070 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2071
5d05ca6d
MS
20722003-08-14 Michael Snyder <msnyder@redhat.com>
2073
2074 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2075
37ba2569
JB
20762003-08-13 J. Brobecker <brobecker@gnat.com>
2077
2078 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2079 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2080 routine.
2081
aed7f26a
MS
20822003-08-13 Michael Snyder <msnyder@redhat.com>
2083
2084 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2085 (frv_saved_pc_after_call): Use deprecated ftype.
2086 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2087 (frv_remote_translate_xfer_address): Remove.
2088 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2089
752d4ac1
JB
20902003-08-13 J. Brobecker <brobecker@gnat.com>
2091
2092 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2093 initialization after the common gdbarch initialization, not before.
2094
1426ac1d
JB
20952003-08-13 J. Brobecker <brobecker@gnat.com>
2096
2097 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2098 (ADDR_BITS_REMOVE): Remove, redundant.
2099
b6fbdd1d
JB
21002003-08-13 J. Brobecker <brobecker@gnat.com>
2101
2102 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2103 gdbarch method to clear the 2 low bits of text addresses.
2104
44160db3
AC
21052003-08-12 Andrew Cagney <cagney@redhat.com>
2106
2107 * Makefile.in (dsrec.o): Update dependencies.
2108 * dsrec.c: Include "gdb_assert.h".
2109 (make_srec): Use snprintf instead of sprintf, use a literal format
2110 string.
2111
bcf7d3ca
AC
21122003-08-12 Andrew Cagney <cagney@redhat.com>
2113
2114 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2115 FRAME_OBSTACK_ZALLOC.
2116
49ed40de
KB
21172003-08-12 Kevin Buettner <kevinb@redhat.com>
2118
2119 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2120 SSE registers.
2121
b246147c
MK
21222003-08-10 Mark Kettenis <kettenis@gnu.org>
2123
2124 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2125 amd64fbsd_sc_reg_offset): Add extern declarations.
2126 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2127 declarations.
2128
d95fdc0d
BE
21292003-08-11 Ben Elliston <bje@wasabisystems.com>
2130
2131 * MAINTAINERS (write after approval): Update my mail address.
2132
cf6a0e73
AC
21332003-08-10 Andrew Cagney <cagney@redhat.com>
2134
2135 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2136
f837910f
MK
21372003-08-10 Mark Kettenis <kettenis@gnu.org>
2138
e2dbbd2d
MK
2139 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2140 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2141 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2142 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2143 i386bsd_sc_reg_offset): Add extern declarations.
2144 * i386obsd-nat.c: Include "i386-tdep.h"
2145 (_initialize_i386obsd_nat): Remove extern declarations.
2146 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2147 declarations.
2148 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2149 declarations.
2150
f837910f
MK
2151 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2152 instead of frame_read_register.
2153 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2154 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2155 SP_REGNUM.
2156 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2157 instead of frame_unwind_unsigned_register. Use
2158 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2159 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2160 instead of read_register. Use builtin_type_void_data_ptr instead
2161 of builtin_type_void_func_ptr when extracting the address of the
2162 jmp_buf.
2163 (i386_extract_return_value, i386_store_return_value,
2164 i386_pseudo_register_read, i386_pseudo_register_write): Use
2165 register_size instead REGISTER_RAW_SIZE.
2166
edcf254d
AC
21672003-08-10 Andrew Cagney <cagney@redhat.com>
2168
2169 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2170 sprintf. Make "name" constant.
2171
26604a34
MK
21722003-08-10 Mark Kettenis <kettenis@gnu.org>
2173
192285c6
MK
2174 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2175 instead of frame_read_register.
f837910f
MK
2176 (i387_print_float_info): Use get_frame_register and
2177 get_frame_register_unsigned instead of frame_register_read.
192285c6 2178
f0925262
MK
2179 * i386fbsd-nat.c: Include "i386-tdep.h".
2180 (child_resume): Make `eflags' an ULONGEST. Use
2181 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2182 instead of register_read and register_write.
2183
a144416f
MK
2184 * i386bsd-nat.c (fetch_inferior_registers,
2185 store_inferior_registers): Don't use && at the end of a line.
2186 (_initialize_i386bsd_nat): Fix typo.
2187
fec74868
MK
2188 * frame.c (_initialize_frame): Add missing backslash.
2189
87232496
MK
2190 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2191 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2192 and supply_register instead of manipulating the register buffer
2193 directly.
2194
c9b9de0b
MK
2195 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2196 * config/i386/nm-i386sol2.h
2197 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2198
26604a34
MK
2199 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2200 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2201 instructions that GCC likes to mingle into the prologue. Fixes
2202 gdb/1253 and gdb/1255.
2203
25d29d70
AC
22042003-08-09 Andrew Cagney <cagney@redhat.com>
2205
2206 Fix GDB PR cli/926.
2207 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2208 * command.h (add_setshow_uinteger_cmd): Declare.
2209 * frame.c (set_backtrace_cmd): New function.
2210 (show_backtrace_cmd): New function.
2211 * frame.c (_initialize_frame): Replace "set/show
2212 backtrace-below-main" with "set/show backtrace past-main". Add
2213 command "set/show backtrace limit".
2214 (backtrace_past_main): Rename "backtrace_below_main".
2215 (backtrace_limit): New variable.
2216 (get_prev_frame): Update. Check the backtrace_limit.
2217
9ebf4acf
AC
22182003-08-09 Andrew Cagney <cagney@redhat.com>
2219
2220 * defs.h (xstrprintf): Declare.
2221 * utils.c (xstrprintf): New function.
2222 * breakpoint.c (insert_breakpoints): Replace sprintf and
2223 non-literal format strings, with xstrprintf and cleanups.
2224 (delete_breakpoint,breakpoint_re_set): Ditto.
2225 (commands_command, insert_breakpoints): Ditto.
2226 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2227 (break_at_finish_command_1): Ditto.
2228
3771659b
AC
22292003-08-09 Andrew Cagney <cagney@redhat.com>
2230
2231 * MAINTAINERS (language support): List Adam Fedor as Objective C
2232 maintainer.
2233
b4263afa
JB
22342003-08-08 J. Brobecker <brobecker@gnat.com>
2235
2236 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2237 are now multiarched.
2238
d84defb1
JB
22392003-08-08 J. Brobecker <brobecker@gnat.com>
2240
2241 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2242 longer necessary now that hppa64 is partially multiarch'ed.
2243
f786f615
AC
22442003-08-08 Andrew Cagney <cagney@redhat.com>
2245
2246 * interps.c (interp_set): Check for a NULL "old_interp".
2247
c938e9b0
L
22482003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2249
2250 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2251 (install-only): Support DESTDIR.
2252 (uninstall): Likewise.
2253 (install-gdbtk): Likewise.
2254
9a146a11
EZ
22552003-08-08 Elena Zannoni <ezannoni@redhat.com>
2256
2257 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2258 contains something meaningful at all times.
2259
2260Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2261
62599e99 2262 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2263
56296155
BC
2264Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2265
62599e99 2266 * MAINTAINERS (write after approval): Added self.
56296155 2267
9710e734
AC
22682003-08-07 Andrew Cagney <cagney@redhat.com>
2269
2270 * inferior.h (AT_SYMBOL): Define.
2271 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2272 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2273 * mips-tdep.c (mips_call_dummy_address): Delete function.
2274 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2275 set call_dummy_address.
2276
98b3ab73
AC
22772003-08-07 Andrew Cagney <cagney@redhat.com>
2278
2279 * language.c (op_error): Delete function.
2280 (binop_type_check): Delete function.
2281 * language.h (type_op_error, range_op_error): Delete macros.
2282 (op_error): Delete declaration.
2283
2fcf52f0
AC
22842003-08-07 Andrew Cagney <cagney@redhat.com>
2285
2286 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2287
abd4220e 22882003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2289
abd4220e 2290 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2291 (x86_64_push_arguments): Skip the red zone.
abd4220e 2292
9dd5f34f
AC
22932003-08-05 Andrew Cagney <cagney@redhat.com>
2294
2295 * reggroups.c (reggroup_next): Check for the final entry.
2296
e5e78edc
AC
22972003-08-04 Andrew Cagney <cagney@redhat.com>
2298
ab4e3d93
AC
2299 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2300 * cli/cli-script.c (define_command): Call query directly, instead
2301 of passing it a buffer.
2302 * ocd.c (ocd_error): Pass error a constant format string.
2303 * remote-mips.c (mips_error): Use fputs_filtered.
2304
1062ca82
AC
2305 * solib-svr4.c (_initialize_svr4_solib): Update
2306 register_gdbarch_data call.
2307 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2308
fcc1c85c
AC
2309 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2310 (register_gdbarch_data): Delete "free" parameter. Update
2311 comments.
2312 * gdbarch.h, gdbarch.c: Re-generate.
2313 * reggroups.c (_initialize_reggroup): Update.
2314 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2315 * frame-base.c (_initialize_frame_base): Update.
2316 * frame-unwind.c (_initialize_frame_unwind): Update.
2317 * user-regs.c (_initialize_user_regs): Update.
2318 * remote.c (_initialize_remote): Update.
2319 * regcache.c (_initialize_regcache): Update.
2320
116f06ea
AC
2321 * regcache.c (xfree_regcache_descr): Delete function.
2322 (_initialize_regcache): Update call to register_gdbarch_data.
2323 (init_regcache_descr, init_legacy_regcache_descr): Use
2324 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2325
e5e78edc
AC
2326 * remote.c (free_remote_state): Delete function.
2327 (_initialize_remote): Update register_gdbarch_data.
2328 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2329 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2330
6c7d17ba
AC
23312003-08-04 Andrew Cagney <cagney@redhat.com>
2332
2333 * reggroups.c (struct reggroup_el): Define.
2334 (struct reggroups): Delete field "nr_group". Replace array
2335 "group" with a "first" to "last" linked list.
2336 (reggroups_init): Update. Allocate using gdbarch's obstack.
2337 (reggroups_free): Delete function.
2338 (add_group): Update. Add "el" parameter.
2339 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2340 (default_groups): Update.
2341 (reggroup_next): Replace reggroups.
2342 (reggroups_dump): Update.
2343 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2344 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2345 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2346
89b7795b
DJ
23472003-08-04 Daniel Jacobowitz <drow@mvista.com>
2348
2349 * Makefile.in (tui-interp.o): Update dependencies.
2350
306d9ac5
DC
23512003-08-04 David Carlton <carlton@kealia.com>
2352
2353 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2354 to internal_error call.
2355 * source.c (forward_search_command): Add "%s" format argument.
2356 (reverse_search_command): Ditto.
2357 * top.c (quit_confirm): Ditto.
2358 * cli/cli-setshow.c (do_setshow_command): Ditto.
2359 * cp-valprint.c (cp_print_class_method): Replace
2360 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2361 (cp_print_class_member): Ditto.
2362 * event-top.c (command_line_handler): Ditto.
2363 * linux-proc.c (linux_info_proc_cmd): Ditto.
2364 * p-typeprint.c (pascal_type_print_base): Ditto.
2365 * p-valprint.c (pascal_object_print_class_method): Ditto.
2366 (pascal_object_print_class_member): Ditto.
2367 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2368 * remote.c (remote_cisco_section_offsets): Ditto.
2369 * top.c (command_line_input): Ditto.
2370 * utils.c (vwarning,error_stream,quit): Ditto.
2371 * valprint.c (print_floating,print_binary_chars)
2372 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2373
57bfe177
AC
23742003-08-04 Andrew Cagney <cagney@redhat.com>
2375
2376 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2377
e546b999
AC
23782003-08-02 Andrew Cagney <cagney@redhat.com>
2379
2380 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2381 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2382 amd64fbsd-nat.c.
2383
91092ee5
AC
23842003-08-02 Andrew Cagney <cagney@redhat.com>
2385
2386 * Makefile.in: Update all dependencies and definitions.
2387
889f28e2
AF
23882003-08-02 Adam Fedor <fedor@gnu.org>
2389
2390 * linespec.c (is_objc_method_format): New function
2391 (decode_line_1, locate_first_half): Use it.
2392 Fixes PR objc/1298
2393
880bc914
AC
23942003-08-01 Andrew Cagney <cagney@redhat.com>
2395
2396 * NEWS: Mention that m32r is multi-arch.
2397 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2398 * configure.tgt: Recognize m32r-*-*.
2399 * config/m32r/tm-m32r.h: Delete file.
2400 * config/m32r/m32r.mt: New file.
2401 * m32r-rom.c (m32r_upload_command): Use hostent only when
2402 gethostname succeeds, in order to avoid a compilation
2403 warning.
2404 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2405 compiler warning.
2406
19f59343
MS
24072003-08-01 Michael Snyder <msnyder@redhat.com>
2408
2409 * sh-tdep.c (sh_frame_align): New gdbarch method.
2410 (sh_gdbarch_init): Set up frame_align method.
2411
4e7d7511
MS
24122003-07-31 Michael Snyder <msnyder@redhat.com>
2413
2414 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2415 which is already covered by the new frames infrastructure.
2416
63022984
AC
24172003-07-31 Andrew Cagney <cagney@redhat.com>
2418
2419 * user-regs.c (struct user_reg): Add "next" link.
2420 (struct user_regs): Replace "user" with "first" and "last" links.
2421 (append_user_reg): Add pre-allocated "reg" parameter.
2422 (builtin_user_regs): Provide initial value for "last".
2423 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2424 (user_regs_init): Allocate memory from the gdbarch obstack.
2425 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2426 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2427 linked list.
2428 (usernum_to_user_reg): New function.
2429 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2430 (value_of_user_reg): Use usernum_to_user_reg.
2431 (user_regs_free): Delete function.
2432 (_initialize_user_regs): Update register_gdbarch_data call.
2433
7cf6e574
DJ
24342003-07-31 Daniel Jacobowitz <drow@mvista.com>
2435
2436 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2437
c48a845b
MS
24382003-07-30 Michael Snyder <msnyder@redhat.com>
2439
4e7d7511 2440 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2441 * infcall.c (call_function_by_hand): Pass struct_addr to
2442 value_being_returned.
2443 * infcmd.c (print_return_value): Pass zero as struct_addr.
2444 * values.c (value_being_returned): If struct_addr is passed,
2445 use it instead of trying to recover it from the inferior.
2446
f0d8db19
KB
24472003-07-30 Kevin Buettner <kevinb@redhat.com>
2448
2449 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2450 the prologue analyzer won't need to attempt to extract the pc
2451 value from the woefully incomplete dummy frame.
2452 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2453 possible. Disable code which modifies the frame.
2454
e5c113a1
AC
24552003-07-28 Andrew Cagney <cagney@redhat.com>
2456
2457 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2458 to level 2.
2459 (annotate_breakpoints_table, annotate_record): Ditto.
2460 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2461 (annotate_field_name_end, annotate_field_value): Ditto.
2462 (annotate_field_end, annotate_frame_source_begin): Ditto.
2463 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2464 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2465 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2466 (annotate_frame_address_end, annotate_frame_address): Ditto.
2467 (annotate_frame_args, annotate_frame_end): Ditto.
2468 (annotate_frame_where, annotate_arg_begin): Ditto.
2469 (annotate_arg_name_end, annotate_arg_value): Ditto.
2470 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2471 (annotate_function_call, annotate_signal_name): Ditto.
2472 (annotate_signal_string, annotate_signal_name_end): Ditto.
2473 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2474 (annotate_value_begin, annotate_value_history_value): Ditto.
2475 (annotate_value_history_end, annotate_value_end): Ditto.
2476 (annotate_display_begin, annotate_display_number_end): Ditto.
2477 (annotate_display_format, annotate_display_expression): Ditto.
2478 (annotate_display_expression_end, annotate_display_value): Ditto.
2479 (annotate_display_end, annotate_array_section_begin): Ditto.
2480 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2481 (annotate_elt, annotate_array_section_end): Ditto.
2482
bb1db049
AC
24832003-07-28 Andrew Cagney <cagney@redhat.com>
2484
2485 * regcache.c (struct regcache_descr): Update comments on
2486 nr_raw_registers.
2487 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2488 sizeof_raw_register_valid_p.
2489 (init_regcache_descr): Set nr_raw_registers and
2490 sizeof_raw_register_valid_p before calling
2491 init_legacy_regcache_descr.
2492
20e6603c
AC
24932003-07-28 Andrew Cagney <cagney@redhat.com>
2494
2495 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2496 MOD NUM_REGS.
2497
db742940
DJ
24982003-07-28 Daniel Jacobowitz <drow@mvista.com>
2499
2500 * thread.c (info_threads_command): Use get_selected_frame ().
2501 Check that there is at least one non-sentinel frame.
2502
ce7f4371
SC
25032003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2504
2505 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2506 (m68hc11_pop_frame): Remove.
2507 (m68hc11_frame_saved_pc): Remove.
2508 (m68hc11_frame_chain): Remove.
2509 (m68hc11_frame_init_saved_regs): Remove.
2510 (m68hc11_init_extra_frame_info): Remove.
2511 (m68hc11_store_struct_return): Remove.
2512 (m68hc11_saved_pc_after_call): Remove.
2513
1ea653ae
SC
25142003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2515
2516 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2517 frame unwind information.
2518 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2519 and adapted for frame unwinding.
2520 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2521 (m68hc11_unwind_pc): New function.
2522 (m68hc11_frame_unwind_cache): New function to analyze frames.
2523 (m68hc11_frame_this_id): New function to create new frame struct.
2524 (m68hc11_frame_prev_register): New function to unwind a register from
2525 the frame.
2526 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2527 (m68hc11_frame_p): New function for the above.
2528 (m68hc11_frame_base_address): New function to return fp of frame.
2529 (m68hc11_frame_args_address): Update for frame.
2530 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2531 (m68hc11_unwind_sp): New function.
2532 (m68hc11_unwind_dummy_id): New function.
2533 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2534 calls.
2535
c8a7f6ac
SC
25362003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2537
2538 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2539 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2540 when we are beyond the current pc.
2541
3dc990bf
SC
25422003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2543
2544 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2545 from m68hc11_push_arguments.
2546 (m68hc11_push_arguments): Remove.
2547 (m68hc11_push_return_address): Remove.
2548 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2549 handlers; remove deprecated_extra_stack_alignment_needed.
2550
222e5d1d
AC
25512003-07-27 Andrew Cagney <cagney@redhat.com>
2552
2553 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2554 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2555 REAL_PC and not the pointer.
2556 * hppa-hpux-tdep.c: Include frame.h
2557
a7e9a47e
AC
25582003-07-27 Andrew Cagney <cagney@redhat.com>
2559
2560 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2561 GDB_MULTI_ACH_PARTIAL.
2562
7e3dd49e
AC
25632003-07-27 Andrew Cagney <cagney@redhat.com>
2564
2565 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2566 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2567 operator at start and not end of line.
2568 (decode_prologue): Ditto.
2569 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2570 frame_unwind_register_unsigned instead of
2571 frame_unwind_unsigned_register.
2572 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2573 read_register.
2574 (m32r_push_dummy_call): Use register_size instead of
2575 REGISTER_RAW_SIZE.
2576 (m32r_frame_sniffer): Replace m32r_frame_p.
2577 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2578 * m32r-rom.c (report_transfer_performance): Delete extern
2579 declaration.
2580 (m32r_load, m32r_upload_command): Use print_transfer_performance
2581 instead of report_transfer_performance.
2582 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2583 / add_show_from_set.
2584
0880807f
AC
25852003-07-26 Andrew Cagney <cagney@redhat.com>
2586
2587 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2588 store_return_value and extract_struct_value_address.
2589
64ae9269
DJ
25902003-07-26 Daniel Jacobowitz <drow@mvista.com>
2591
2592 PR c++/1267
2593 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2594 NULL, default to the section containing PC.
2595
e286caf2
SC
25962003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2597
2598 * NEWS: Mention "regs" deprecated for m68hc11 too.
2599
2600 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2601 (m68hc11_print_register): New function to print out one register.
2602 (m68hc11_print_registers_info): New function to print registers.
2603 (show_regs): Deprecate and use the above.
2604 (m68hc11_gdbarch_init): Install the print_registers_info.
2605
705b278b
JJ
26062003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2607
2608 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2609 that we have a SIGTRAP before returning non-zero.
2610
63cd4198
EZ
26112003-07-23 Michal Ludvig <mludvig@suse.cz>
2612 Elena Zannoni <ezannoni@redhat.com>
2613
2614 * linespec.c (decode_line_2): Avoid crash if
2615 find_function_start_sal() returns empty record.
2616
6926787d
AS
26172003-07-23 Andreas Schwab <schwab@suse.de>
2618
2619 * ia64-tdep.c (ia64_print_insn): New function.
2620 (ia64_gdbarch_init): Set print_insn to it.
2621 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2622 deprecated_tm_print_insn_info.
2623
708cc1b6
MS
26242003-07-22 Michael Snyder <msnyder@redhat.com>
2625
2626 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2627 handle 8-bit returns (long long).
2628 (h8300h_extract_return_value): Ditto.
2629 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2630
aebd7893
AC
26312003-07-22 Andrew Cagney <cagney@redhat.com>
2632
2633 * gdbarch.c Include "gdb_obstack.h".
2634 (struct gdbarch): Add an "obstack".
2635 (alloc_gdbarch_data): Allocate the gdbarch data using
2636 GDBARCH_OBSTACK_CALLOC.
2637 (free_gdbarch_data): Delete function.
2638 (gdbarch_obstack_zalloc): New function.
2639 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2640 Assert that the architecture is not initialized.
2641 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2642 vector from the obstack.
2643 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2644 architecture obstack.
2645 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2646 (set_gdbarch_data): Assert that the data is not initialized.
2647 (struct gdbarch_data): Delete member "free".
2648 (register_gdbarch_data): Do not initialize "free".
2649 * gdbarch.h, gdbarch.c: Re-generate.
2650
153721e6
AC
26512003-07-22 Andrew Cagney <cagney@redhat.com>
2652
2653 * configure.in (build_warnings): Add -Wformat-nonliteral.
2654 * configure: Re-generate.
2655
c193f044 26562003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2657
2658 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2659
c3228f12
EZ
26602003-07-22 Elena Zannoni <ezannoni@redhat.com>
2661
2662 * findvar.c (read_var_value): Remove case for thread local storage
2663 variables. It is now entirely handled by the dwarf2 location
2664 expression code.
2665 * printcmd.c (address_info): Ditto.
2666 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2667 enumeration value.
2668 (struct symbol): Remove objfile field, which was used by
2669 LOC_THREAD_LOCAL_STATIC only.
2670 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2671 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2672 usage of objfile pointer.
2673 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2674 thread local variables.
2675 Add include of objfiles.h.
2676 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2677 storage variables.
2678 * Makefile.in (dwarf2loc.o): Update dependencies.
2679
aef9bcd2
AC
26802003-07-22 Andrew Cagney <cagney@redhat.com>
2681
2682 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2683 get_frame_base.
2684 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2685 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2686 (struct value): Add opaque declaration.
2687 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2688
d95a8903
AC
26892003-07-21 Andrew Cagney <cagney@redhat.com>
2690
2691 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2692 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2693
4db73d49
SC
26942003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2695
2696 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2697 regcache_cooked_read_unsigned instead of read_register.
2698 (m68hc11_saved_pc_after_call): Likewise.
2699 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2700 instead of write_register.
2701 (m68hc11_register_type): New function.
2702 (m68hc11_register_virtual_type): Remove.
2703 (m68hc11_store_return_value): Convert to use the regcache.
2704 (m68hc11_extract_struct_value_address): Likewise.
2705 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2706 m68hc11_register_type; undeprecate store_return_value and
2707 extract_struct_value_address.
2708
ef2b8fcd
SC
27092003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2710
2711 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2712 and translate to use regcache.
2713 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2714
625b0b97
AC
27152003-07-18 Andrew Cagney <cagney@redhat.com>
2716
2717 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2718 * gdbarch.h, gdbarch.c: Re-generate.
2719 * i386-tdep.c (i386_gdbarch_init): Do not set
2720 DWARF2_BUILD_FRAME_INFO.
2721 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2722 unconditionally.
2723 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2724 DWARF2_BUILD_FRAME_INFO.
2725
22b0d388
AC
27262003-07-18 Andrew Cagney <cagney@redhat.com>
2727
2728 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2729 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2730
1ce5d6dd
AC
27312003-07-18 Andrew Cagney <cagney@redhat.com>
2732
2733 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2734 frame_unwind_address_in_block, instead of frame_pc_unwind.
2735 (dwarf2_frame_cache): Ditto.
2736
e6e5e94c
AC
27372003-07-18 Andrew Cagney <cagney@redhat.com>
2738
2739 * user-regs.h (struct gdbarch): Declare opaque.
2740 * ui-out.h (struct ui_file): Declare opaque.
2741 * dwarf2-frame.h (struct frame_info): Declare opaque.
2742
5483d879
KW
27432003-07-18 Kris Warkentin <kewarken@qnx.com>
2744
2745 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2746 #include "...".
2747 (procfs_meminfo): Change strerror to safe_strerror.
2748 (procfs_can_run): Remove K&R badness.
2749
278a7cf7
MS
27502003-07-17 Michael Snyder <msnyder@redhat.com>
2751
2752 * remote-sim.c: Comment typo fix.
2753
606e3b82
AC
27542003-07-17 Andrew Cagney <cagney@redhat.com>
2755
2756 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2757 configure.
2758 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2759 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2760 GDB_MULTI_ARCH_PARTIAL.
2761
c43af07c
EZ
27622003-07-17 Elena Zannoni <ezannoni@redhat.com>
2763
2764 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2765 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2766 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2767
3b85b0f1
TR
27682003-07-16 Theodore A. Roth <troth@openavr.org>
2769
2770 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2771 found.
2772 (avr_frame_unwind_cache): Don't unwind FP for main.
2773 Update a comment.
2774 Save the computed prev_sp.
2775 (avr_saved_regs_unwinder): Remove function.
2776 (avr_frame_prev_register): Use PC unwind logic from
2777 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2778
336d1bba
AC
27792003-07-16 Andrew Cagney <cagney@redhat.com>
2780
2781 * frame-base.h (frame_base_p_ftype): Delete definition.
2782 (frame_base_append_predicate): Delete declaration.
2783 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2784 (frame_unwind_append_predicate): Delete declaration.
2785 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2786 (append_predicate): Delete parameter "p".
2787 (frame_unwind_append_predicate): Delete function.
2788 (frame_unwind_append_sniffer): Update call to append_predicate.
2789 (frame_unwind_free): Delete function.
2790 (_initialize_frame_unwind): Pass NULL as "free" to
2791 register_gdbarch_data.
2792 (frame_unwind_init): Append the dummy_frame_sniffer.
2793 (frame_unwind_find_by_frame): Simplify.
2794 * frame-base.c (struct frame_base_table): Delete field "p".
2795 (append_predicate): Delete parameter "p".
2796 (frame_base_append_predicate): Delete function.
2797 (frame_base_append_sniffer): Update call to append_predicate.
2798 (frame_base_free): Delete function.
2799 (frame_base_find_by_frame): Simplify.
2800 (_initialize_frame_base): Pass NULL as "free" to
2801 register_gdbarch_data.
2802 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2803 (x86_64_sigtramp_frame_sniffer): Replace
2804 "x86_64_sigtramp_frame_p".
2805 (x86_64_init_abi): Set the frame unwind sniffers.
2806 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2807 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2808 (m68k_gdbarch_init): Set the frame unwind sniffers.
2809 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2810 "i386_sigtramp_frame_p".
2811 (i386_frame_sniffer): Replace "i386_frame_p".
2812 (i386_gdbarch_init): Set the frame unwind sniffers.
2813 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2814 (avr_gdbarch_init): Set the frame unwind sniffers.
2815 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2816 "alpha_sigtramp_frame_p"
2817 (alpha_heuristic_frame_sniffer): Replace
2818 "alpha_heuristic_frame_p".
2819 (alpha_gdbarch_init): Set the frame unwind sniffers.
2820 (alpha_dwarf2_init_abi): Ditto.
2821 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2822 "alpha_debug_frame_p".
2823 (alpha_mdebug_frame_base_sniffer): Replace
2824 "alpha_mdebug_frame_base_p".
2825 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2826 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2827 (d10v_gdbarch_init): Set the frame unwind sniffer.
2828 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2829 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2830 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2831 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2832 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2833 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2834
48db5a3c
CV
28352003-07-16 Michael Snyder <msnyder@redhat.com>
2836
2837 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2838 should go thru sh_dsp_register_sim_regno, else the dsp regs
2839 will not get the right values.
2840
28412003-07-16 Corinna Vinschen <vinschen@redhat.com>
2842
2843 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2844 deprecated_store_floating by call to store_typed_floating.
2845 (sh_sh4_register_convert_to_raw): Substitute call to
2846 deprecated_extract_floating by call to extract_typed_floating.
2847
28482003-07-16 Corinna Vinschen <vinschen@redhat.com>
2849
2850 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2851
28522003-07-16 Corinna Vinschen <vinschen@redhat.com>
2853
2854 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2855 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2856 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2857 as possible.
2858 (do_pseudo_register): Remove.
2859 (sh_push_dummy_code): New function.
2860 (sh64_store_struct_return): Rename from sh_store_struct_return.
2861 Only called for sh64 now.
2862 (sh_extract_struct_value_address): Regcache'ify.
2863 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2864 and accomodate new tasks.
2865 (sh64_push_return_address): Rename from sh_push_return_address.
2866 Only called for sh64 now.
2867 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2868 Regcache'ify.
2869 (sh3e_sh4_extract_return_value): Regcache'ify.
2870 (sh_default_store_return_value): Ditto.
2871 (sh3e_sh4_store_return_value): Ditto.
2872 (sh_default_register_byte): Remove.
2873 (sh_sh4_register_byte): Remove.
2874 (sh_default_register_raw_size): Remove.
2875 (sh_sh4_register_raw_size): Remove.
2876 (sh_register_virtual_size): Remove.
2877 (sh_sh3e_register_virtual_type): Remove.
2878 (sh_sh3e_register_type): New function.
2879 (sh_sh4_register_virtual_type): Remove.
2880 (sh_sh4_register_type): New function.
2881 (sh_default_register_virtual_type): Remove.
2882 (sh_default_register_type): New function.
2883 (do_fv_register_info): Add parameters to accomodate call from
2884 sh_print_registers_info.
2885 (do_dr_register_info): Ditto.
2886 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2887 Add parameters to accomodate call from sh_print_registers_info.
2888 (sh_do_fp_register): Ditto.
2889 (sh64_do_pseudo_register): Call do_dr_register_info,
2890 do_fv_register_info and sh_do_fp_register with default parameters.
2891 (sh_do_register): Add parameters to accomodate call from
2892 sh_print_registers_info.
2893 (sh_print_register): Ditto.
2894 (sh_print_registers_info): Rename from sh_do_registers_info.
2895 Add parameters to be used as gdbarch_print_registers_info
2896 implementation. Accomodate removed do_pseudo_register function
2897 pointer.
2898 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2899 function pointer. Call sh_print_register with default parameters.
2900 (sh64_do_registers_info): Call sh_print_registers_info instead of
2901 sh_do_registers_info.
2902 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2903 detection of deprecated vs. non-deprecated functionality.
2904 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2905 function pointer assignments by direct function calls.
2906
e8a89fe2
AC
29072003-07-15 Andrew Cagney <cagney@redhat.com>
2908
2909 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2910 (frame_register_unwind, create_new_frame): Ditto.
2911 (legacy_get_prev_frame, get_frame_type): Ditto.
2912 (get_frame_base_address): Use frame_base_find_by_frame.
2913 (get_frame_locals_address): Use frame_base_find_by_frame.
2914 (get_frame_args_address): Use frame_base_find_by_frame.
2915 * frame-base.h (frame_base_sniffer_ftype): Declare.
2916 (frame_base_append_sniffer): Declare.
2917 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2918 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2919 (frame_base_append_sniffer): New function.
2920 (frame_base_append_predicate): Add a NULL sniffer.
2921 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2922 (struct frame_base_table): Add "sniffer".
2923 (frame_base_free): Free the "sniffer" table.
2924 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2925 (frame_unwind_append_sniffer): Declare.
2926 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2927 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2928 (struct frame_unwind_table): Add "sniffer", delete "middle".
2929 (append_predicate): Add "sniffer" parameter, append the sniffer.
2930 (frame_unwind_init): Update append_predicate call.
2931 (frame_unwind_append_sniffer): New function.
2932 (frame_unwind_append_predicate): Update append_predicate call.
2933 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2934
0714963c
AC
29352003-07-15 Andrew Cagney <cagney@redhat.com>
2936
2937 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2938 before code inhibiting repeated unwind attempts. Add to
2939 commentary on that test's problems.
2940 * blockframe.c (inside_main_func): Look for "main" in the minimal
2941 symbol table.
2942 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2943 identical.
2944
d9170e22
AC
29452003-07-15 Andrew Cagney <cagney@redhat.com>
2946
2947 * complaints.c (struct explanation): Define.
2948 (struct complaints): Change type of "explanation" to "struct
2949 explanation".
2950 (symfile_explanations): Convert to a "struct explanation" table.
2951 (vcomplaint): Update.
2952
eba29c8c
ML
29532003-07-15 Michal Ludvig <mludvig@suse.cz>
2954
2955 * x86-64-linux-nat.c (regmap): Removed.
2956 (supply_gregset, fill_gregset): Call
2957 x86_64_linux_(fill,supply)_gregset functions.
2958 * x86-64-linux-tdep.c (USER_*): New defines.
2959 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2960 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2961 New functions.
2962 (fetch_core_registers): Ditto.
2963 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2964 * x86-64-linux-tdep.h: New file.
2965 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2966 and core-regset.o.
2967 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2968
68cc0bfb
MK
29692003-07-13 Mark Kettenis <kettenis@gnu.org>
2970
88a115f7
MK
2971 * x86-64-tdep.c (x86_64_store_return_value): Use
2972 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2973
68cc0bfb
MK
2974 * configure.host: Add x86_64-*-freebsd*.
2975 * configure.tgt: Add x86_64-*-freebsd*.
2976 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2977 * amd64fbsd-nat.c: New file.
2978 * amd64fbsd-tdep.c: New file.
2979 * config/i386/nm-fbsd64.h: New file.
2980 * config/i386/fbsd64.mh: New file.
2981 * config/i386/fbsd64.mt: New file.
2982
138e7be5
MK
29832003-07-11 Mark Kettenis <kettenis@gnu.org>
2984
2985 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2986 `sc_regs_offset' and `sc_fpregs_offset'.
2987 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2988 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2989 (alpha_sigtramp_register_address): Rewrite to use new members of
2990 `struct gdbarch_tdep'.
2991 (alpha_gdbarch_init): Initialize new members of struct
2992 gdbarch_tdep'.
2993 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2994 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2995 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2996 (alphafbsd_pc_in_sigtramp): Implement.
2997 (alphafbsd_sigtramp_offset): New function.
2998 (alphafbsd_sigcontext_addr): New function.
2999 (alphafbsd_init_abi): Initialize signal trampoline related members
3000 of `struct gdbarch_tdep'.
3001 (_initialize_alphafbsd_tdep): Add prototype.
3002
95303a68
TR
30032003-07-11 Theodore A. Roth <troth@openavr.org>
3004
ba292e4c
TR
3005 * Makefile.in (install-only): Quote sed expression when generating
3006 transformed_name.
95303a68 3007
6896c0c7
RH
30082003-07-11 Richard Henderson <rth@redhat.com>
3009
3010 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3011 * dwarf2-frame.c: Include complaints.h.
3012 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3013 variable initialization; return NULL on error.
3014 (decode_frame_entry): New.
3015
8edd5d01
AC
30162003-07-11 Andrew Cagney <cagney@redhat.com>
3017
c4a09524
AC
3018 * frame.h (frame_address_in_block): Delete declaration.
3019 * blockframe.c (frame_address_in_block): Delete function.
3020 (get_frame_block): Use get_frame_address_in_block.
3021 (block_innermost_frame): Ditto.
3022 * stack.c (print_frame, backtrace_command_1): Ditto.
3023
8edd5d01
AC
3024 * frame.h (get_frame_address_in_block): Declare.
3025 (frame_unwind_address_in_block): Declare.
3026 * frame.c (frame_unwind_address_in_block): New function.
3027 (get_frame_address_in_block): New function.
3028
f7968451
AC
30292003-07-10 Andrew Cagney <cagney@redhat.com>
3030
3031 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3032 pre-default. Note: re-generate has no effect.
3033
ae99b398
AC
30342003-07-10 Andrew Cagney <cagney@redhat.com>
3035
3036 * gdbarch.sh: When a variable, but not a function, compare against
3037 0. Fix problem in previous patch.
3038 * gdbarch.c: Re-generate.
3039
956ac328
AC
30402003-07-10 Andrew Cagney <cagney@redhat.com>
3041
3042 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3043 functions against NULL, not 0.
3044 * gdbarch.c: Re-generate.
3045
287c3240
FF
30462003-07-10 Fred Fish <fnf@ninemoons.com>
3047
3048 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3049 null string instead of a null pointer.
3050 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3051
32f63c4b
MS
30522003-07-09 Michael Snyder <msnyder@redhat.com>
3053
3054 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3055
402ecd56
MK
30562003-07-09 Mark Kettenis <kettenis@gnu.org>
3057
3058 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3059 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3060 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3061 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3062 * x86-64-tdep.c: ... from here.
3063
c481dac7
AS
30642003-07-09 Andreas Schwab <schwab@suse.de>
3065
3066 * m68k-tdep.h (enum struct_return): Define.
3067 (struct gdbarch_tdep): Add struct_return.
3068 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3069 bytes are padded to the right, not to the left. Pass struct value
3070 address in register %a1, not on stack.
3071 (m68k_use_struct_convention): New function.
3072 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3073 struct_return in tdep to pcc_struct_return.
3074 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3075 reg_struct_return.
3076
64176fa3
JB
30772003-07-09 Joel Brobecker <brobecker@gnat.com>
3078
3079 * somread.c (som_symfile_offsets): Fix compilation error.
3080
96a4ee76
AC
30812003-07-09 Andrew Cagney <cagney@redhat.com>
3082
3083 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3084 Add comments about the checks.
3085
1517c6d1
AC
30862003-07-08 Andrew Cagney <cagney@redhat.com>
3087
3088 * Makefile.in: Make dependency section headers consistent.
3089 (config_h): Move to $BUILD headers section.
3090 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3091 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3092 (ada-exp.tab.c): Move to YACC/LEX section.
3093 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3094 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3095
dc5dd1eb
KW
30962003-07-08 Kris Warkentin <kewarken@qnx.com>
3097
3098 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3099 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3100 of strerror with safe_strerror, use ISO C function definitions,
3101 and replace instances of sprintf with snprintf.
dc5dd1eb 3102
612dde91
AC
31032003-07-07 Andrew Cagney <cagney@redhat.com>
3104
3105 * frame.c (get_prev_frame): Enable check for identical frames.
3106 Update comments. Update error messages.
3107
492c11d3
JB
31082003-07-07 Joel Brobecker <brobecker@gnat.com>
3109
3110 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3111
376a5a49
JB
31122003-07-07 Joel Brobecker <brobecker@gnat.com>
3113
3114 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3115 sort_symtab_syms, no longer necessary.
3116
22b4a9ad
JB
31172003-07-07 Joel Brobecker <brobecker@gnat.com>
3118
3119 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3120
5bbcb741
JB
31212003-07-07 Joel Brobecker <brobecker@gnat.com>
3122
3123 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3124 (mips_register_byte): Likewise.
3125
c139e7d9
DJ
31262003-07-07 Daniel Jacobowitz <drow@mvista.com>
3127
3128 * Makefile.in (sparc_tdep_h): New.
3129 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3130 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3131 * sparc-linux-nat.c: Include "sparc-tdep.h".
3132 * sparc-nat.c: Likewise.
3133 * sparc-tdep.c: Likewise.
3134 * sparc64nbsd-nat.c: Likewise.
3135 * sparcnbsd-nat.c: Likewise.
3136 * sparcnbsd-tdep.c: Likewise.
3137 * sparc-tdep.h: New file.
3138 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3139 and sparc_npc_regnum.
3140
fd8f87c5
DJ
31412003-07-07 Daniel Jacobowitz <drow@mvista.com>
3142
3143 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3144 (mips_linux_cannot_store_register): List supported instead of
3145 unsupported registers.
3146
13adf674
DJ
31472003-07-07 Daniel Jacobowitz <drow@mvista.com>
3148
3149 * disasm.c (dump_insns): Separate instructions from addresses.
3150
8de307e0
AS
31512003-07-07 Andreas Schwab <schwab@suse.de>
3152
3153 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3154 dependencies.
3155 * m68k-tdep.c (NUM_FREGS): Delete.
3156 (SIG_PC_FP_OFFSET): Delete.
3157 (TARGET_M68K): Delete.
3158 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3159 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3160 P_MOVEL_SP, P_MOVEML_SP): Define.
3161 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3162 P_TRAP): Delete.
3163 (m68k_register_raw_size): Delete.
3164 (m68k_register_virtual_size): Delete.
3165 (m68k_register_type): Renamed from m68k_register_virtual_type and
3166 add gdbarch argument.
3167 (m68k_store_struct_return): Delete.
3168 (m68k_deprecated_extract_return_value): Delete.
3169 (m68k_deprecated_extract_struct_value_address): Delete.
3170 (m68k_frame_chain): Delete.
3171 (m68k_frame_saved_pc): Delete.
3172 (m68k_fix_call_dummy): Delete.
3173 (m68k_push_dummy_frame): Delete.
3174 (m68k_pop_frame): Delete.
3175 (m68k_extract_return_value): New function.
3176 (m68k_store_return_value): Rewrite using regcache.
3177 (m68k_extract_struct_value_address): Rewrite using regcache.
3178 (m68k_push_dummy_call): New function.
3179 (struct m68k_frame_cache): Define.
3180 (m68k_alloc_frame_cache): New function.
3181 (m68k_analyze_frame_setup): New function.
3182 (m68k_analyze_register_saves): New function.
3183 (m68k_analyze_prologue): New function.
3184 (m68k_skip_prologue): Rewrite using above functions.
3185 (m68k_unwind_pc): New function.
3186 (m68k_frame_cache): New function.
3187 (m68k_frame_this_id): New function.
3188 (m68k_frame_prev_register): New function.
3189 (m68k_frame_unwind): New variable.
3190 (m68k_frame_p): New function.
3191 (m68k_sigtramp_frame_cache): New function.
3192 (m68k_sigtramp_frame_this_id): New function.
3193 (m68k_sigtramp_frame_prev_register): New function.
3194 (m68k_sigtramp_frame_unwind): New variable.
3195 (m68k_sigtramp_frame_p): New function.
3196 (m68k_frame_base_address): New function.
3197 (m68k_frame_base): New function.
3198 (m68k_unwind_dummy_id): New function.
3199 (fill_gregset): Use regcache_collect.
3200 (fill_fpregset): Likewise.
3201 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3202 defined.
3203 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3204 deprecated_init_frame_pc, deprecated_store_struct_return,
3205 deprecated_extract_return_value, deprecated_store_return_value,
3206 deprecated_frame_chain, deprecated_frame_saved_pc,
3207 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3208 deprecated_register_virtual_size,
3209 deprecated_max_register_raw_size,
3210 deprecated_max_register_virtual_size,
3211 deprecated_register_virtual_type, deprecated_register_size,
3212 deprecated_register_byte, deprecated_register_bytes,
3213 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3214 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3215 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3216 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3217 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3218 deprecated_push_dummy_frame, deprecated_pop_frame,
3219 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3220 only if SYSCALL_TRAP is defined. Set extract_return_value,
3221 store_return_value, extract_struct_value_address, register_type,
3222 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3223 predicates.
3224 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3225 M68K_MAX_REGISTER_SIZE): Define.
3226 (struct m68k_sigtramp_info): Define.
3227 (struct gdbarch_tdep): Add get_sigtramp_info.
3228 * m68klinux-nat.c (fetch_register): Use register_size instead of
3229 REGISTER_RAW_SIZE. Don't put assignment in if.
3230 (store_register): Likewise.
3231 (fetch_inferior_registers): Likewise.
3232 (store_inferior_registers): Likewise.
3233 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3234 (m68k_linux_frame_saved_pc): Delete.
3235 (m68k_linux_sigcontext_reg_offset,
3236 m68k_linux_ucontext_reg_offset): Define.
3237 (m68k_linux_get_sigtramp_info): New function.
3238 (m68k_linux_extract_return_value): Rewrite using regcache.
3239 (m68k_linux_store_return_value): Likewise.
3240 (m68k_linux_extract_struct_value_address): Likewise.
3241 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3242 Don't set deprecated_frame_saved_pc,
3243 deprecated_extract_return_value, deprecated_store_return_value,
3244 deprecated_extract_struct_value_address. Set
3245 extract_return_value, store_return_value,
3246 extract_struct_value_address.
3247
eb8bc282
AC
32482003-07-07 Andrew Cagney <cagney@redhat.com>
3249
3250 * expprint.c: Include "user-regs.h" instead of "frame.h".
3251 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3252 frame_map_regnum_to_name.
3253 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3254 (frame_map_name_to_regnum): Simplify, call
3255 user_reg_map_name_to_regnum.
3256 (frame_map_regnum_to_name): Simplify, call
3257 user_reg_map_regnum_to_name.
3258 (frame_register_unwind): Update.
3259 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3260 (_initialize_frame_reg): Call user_reg_add_builtin.
3261 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3262 (value_of_register): Use value_of_user_reg.
3263 * eval.c (evaluate_subexp_standard): Update.
3264 * parse.c (write_dollar_variable): Update.
3265 * d10v-tdep.c (d10v_print_registers_info): Update.
3266 * infcmd.c (registers_info): Update.
3267 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3268 (builtin_regs_h): Delete macro.
3269 (user_regs_h): Define.
3270 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3271 (builtin-regs.o): Delete target.
3272 (user-regs.o): Specify dependencies.
3273 (expprint.o): Update dependencies.
3274 (findvar.o): Update dependencies.
3275 (frame.o): Update dependencies.
3276 (std-regs.o): Update dependencies.
3277
9f476a01
CF
32782003-07-06 Christopher Faylor <cgf@redhat.com>
3279
3280 * win32-nat.c (solib_symbols_add): Use one variable for all section
3281 address stuff. Pass variable rather than address of variable to
3282 safe_symbol_file_add.
3283
a731b831
AS
32842003-07-06 Andreas Schwab <schwab@suse.de>
3285
3286 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3287
9f83329d
JB
32882003-07-04 Joel Brobecker <brobecker@gnat.com>
3289
3290 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3291
27e28cc5
KW
32922003-07-04 Kris Warkentin <kewarken@qnx.com>
3293
3294 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3295
32962003-07-04 Kris Warkentin <kewarken@qnx.com>
3297
3298 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3299 * config/i386/nto.mh: New file.
3300 * config/i386/nm-nto.h: New file.
3301 * configure.host: Add i[3456]86-*-nto*.
3302
100f2e98
JB
33032003-07-03 Joel Brobecker <brobecker@gnat.com>
3304
3305 * remote-vx.c (vx_add_symbols): Fix compilation error.
3306
e23457df
AC
33072003-07-03 Andrew Cagney <cagney@redhat.com>
3308
3309 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3310 * gdbarch.h, gdbarch.c: Re-generate.
3311 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3312 (legacy_register_name): Declare.
3313 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3314 (REGISTER_NAME): Define.
3315 * sparc-tdep.c (legacy_register_name): New function.
3316 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3317 (REGISTER_NAME): Define.
3318 (hppa64_register_name): Declare.
3319 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3320 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3321 (hppa64_register_name): New function.
3322 (hppa_register_name): New function.
3323 * arch-utils.c (legacy_register_name): Delete.
3324 * arch-utils.h (legacy_register_name): Delete.
3325
38caaeec
DJ
33262003-07-03 Daniel Jacobowitz <drow@mvista.com>
3327
3328 * cli/cli-interp.c (cli_interpreter_resume): Update the
3329 cli_uiout's stream to gdb_stdout.
3330
dadd712e
AC
33312003-07-03 Andrew Cagney <cagney@redhat.com>
3332
3333 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3334 predicate.
3335 * gdbarch.h, gdbarch.c: Re-generate.
3336 * regcache.c (init_regcache_descr): Use legacy code when either
3337 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3338
c7f1390e
DJ
33392003-07-02 Daniel Jacobowitz <drow@mvista.com>
3340
3341 * NEWS: Move "set logging" entry into GDB 6.0 section.
3342
4bc8c588
JB
33432003-07-02 Jim Blandy <jimb@redhat.com>
3344
a9dd42f1
JB
3345 * s390-tdep.c (struct frame_extra_info): new member:
3346 'stack_bought_valid'.
3347 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3348 initialize fextra_info->stack_bought.
3349 (s390_frameless_function_invocation): Don't trust the value of
3350 fextra_info_ptr->stack_bought unless
3351 fextra_info->stack_bought_valid is set.
3352
4bc8c588
JB
3353 New S390 prologue analyzer.
3354 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3355 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3356 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3357 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3358 compute_x_addr, s390_on_stack, s390_store,
3359 s390_get_signal_frame_info): New functions.
3360 (S390_NUM_SPILL_SLOTS): New macro.
3361 (s390_get_frame_info): Rewritten.
3362 (is_arg_reg): Deleted.
3363
3364 Break out the decoding of S/390 instructions into separate
3365 functions, to make it more legible, and easier to check
3366 against the spec.
3367 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3368 is_rx, is_rxe): New functions.
3369 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3370 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3371 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3372 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3373 enums for opcode values. (Is this an improvement?)
3374
fd13a04a
AC
33752003-07-02 Andrew Cagney <cagney@redhat.com>
3376
3377 * i386-tdep.c: Revert change committed as part of trad-frame code
3378 below.
3379
3f8091c1
DJ
33802003-07-02 Daniel Jacobowitz <drow@mvista.com>
3381
3382 * breakpoint.c (insert_catchpoint): Make static.
3383
8dd5115e
AS
33842003-07-02 Andreas Schwab <schwab@suse.de>
3385
3386 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3387 former ia64_push_arguments and ia64_push_return_address, and use
3388 regcache functions instead of read/write_register.
3389 (ia64_gdbarch_init): Set push_dummy_call instead of
3390 deprecated_push_arguments and deprecated_push_return_address.
3391
a2229c23
AJ
33922003-07-01 Andreas Jaeger <aj@suse.de>
3393
3394 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3395 before the call.
3396 Set %rax only to number of SSE registers used.
3397
3b3850e8
AC
33982003-07-01 Andrew Cagney <cagney@redhat.com>
3399
3400 * trad-frame.h: Update comments, a -1 .addr is reserved.
3401 (trad_frame_value_p, trad_frame_addr_p): Declare.
3402 (trad_frame_reg_p): Declare.
3403 (trad_frame_set_value): Rename trad_frame_register_value.
3404 (trad_frame_set_unknown): Declare.
3405 * trad-frame.c (trad_frame_realreg_p): New function.
3406 (trad_frame_addr_p, trad_frame_value_p): New function.
3407 (trad_frame_set_unknown): New function.
3408 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3409 (trad_frame_prev_register): Use trad_frame_realreg_p,
3410 trad_frame_addr_p and trad_frame_value_p.
3411 (trad_frame_set_value): Rename trad_frame_register_value.
3412 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3413 and trad_frame_set_value.
a2229c23 3414
4d819d0e
JB
34152003-06-30 Jim Blandy <jimb@redhat.com>
3416
3417 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3418 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3419 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3420 for 16 registers, and then 32 more bytes.
3421 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3422 New macros.
3423 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3424 Move up in the file, since it's now used by is_simple_arg.
3425 (is_simple_arg): Don't assume registers are four bytes long.
3426 Exclude all double arguments. Extended floats are not simple
3427 args.
3428 (is_power_of_two): New function.
3429 (pass_by_copy_ref): Call is_power_of_two, and check that the
3430 length fits in a register, rather than listing all the acceptable
3431 sizes. Extended floats are not passed by reference.
3432 (s390_push_arguments): Don't assume registers are four bytes long.
3433 Reserve an argument register to point to the buffer for structures
3434 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3435 S390_STACK_FRAME_OVERHEAD.
3436
1ad828f1
AS
34372003-06-30 Andreas Schwab <schwab@suse.de>
3438
3439 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3440 format error message.
3441
39b00981
JB
34422003-06-30 Joel Brobecker <brobecker@gnat.com>
3443
3444 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3445
b2a7f303
DC
34462003-06-30 David Carlton <carlton@kealia.com>
3447
3448 Band-aid for PR c++/1245.
3449 * Makefile.in (cp-support.o): Depend on complaints_h.
3450 * cp-support.c: Include complaints.h. Add declaration for
3451 find_last_component.
3452 (cp_find_first_component): Separate code into
3453 cp_find_first_component_aux.
3454 (cp_find_first_component_aux): Call demangled_name_complaint.
3455 (demangled_name_complaint): New.
3456
a257b5bb
AC
34572003-06-30 Andrew Cagney <cagney@redhat.com>
3458
3459 * remote.c (remote_write_bytes): Explicitly compute and then use
3460 the payload size. Update comments to reflect. Fixes problem of
3461 GDB not sending small packets as found by Fred Fish.
3462
0a2cfde4
AC
34632003-06-30 Andrew Cagney <cagney@redhat.com>
3464
3465 * remote.c (remote_async_wait): Fix -Wformat problem.
3466
3fcb8548
AC
34672003-06-29 Andrew Cagney <cagney@redhat.com>
3468
3469 * remote.c (remote_wait): Call error, and not warning, when the
3470 packet is corrupt.
3471 (remote_async_wait): Ditto.
3472
9f9970a3
DJ
34732003-06-29 Daniel Jacobowitz <drow@mvista.com>
3474
3475 * sparc-tdep.c (sparc_y_regnum): Make external again.
3476
83a8ccca
DJ
34772003-06-29 Daniel Jacobowitz <drow@mvista.com>
3478
3479 * cli/cli-logging.c (pop_output_files): Add void to function
3480 definition.
3481
d2cf594a
AC
34822003-06-29 Andrew Cagney <cagney@redhat.com>
3483
3484 * frame.c (frame_register_unwind): Use unsigned char when dumping
3485 the buffer contents.
3486
0fac0b41
DJ
34872003-06-28 Daniel Jacobowitz <drow@mvista.com>
3488
3489 * cli/cli-logging.c: New file.
3490 * cli-out.c (struct ui_out_data): Add original_stream.
3491 (cli_redirect): New function.
3492 (cli_ui_out_impl): Add cli_redirect.
3493 (cli_out_new): Initialize original_stream.
3494 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3495 (uo_redirect, ui_out_redirect): New.
3496 * ui-out.h (struct ui_out_impl): Add redirect member.
3497 (redirect_ftype): New.
3498 (ui_out_redirect): Add prototype.
3499 * Makefile.in: Add rules for cli-logging.c.
3500 * NEWS: Mention "set logging".
3501
88a07d7c
EZ
35022003-06-27 Elena Zannoni <ezannoni@redhat.com>
3503
3504 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3505
4eb58876
AC
35062003-06-27 Andrew Cagney <cagney@redhat.com>
3507
3508 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3509 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3510 * avr-tdep.c (avr_call_dummy_address): Delete function.
3511 (avr_gdbarch_init): Do not set call_dummy_address.
3512
1549f619
EZ
35132003-06-27 Elena Zannoni <ezannoni@redhat.com>
3514
3515 * symfile.c (syms_from_objfile): Move variables to inner block.
3516 Move the checks for the non-mainline case a bit earlier to avoid
3517 doing some useless computations.
3518
3cb3398d
EZ
35192003-06-27 Elena Zannoni <ezannoni@redhat.com>
3520
3521 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3522
3799ccc6
EZ
35232003-06-26 Elena Zannoni <ezannoni@redhat.com>
3524
3525 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3526 sections.
3527
ce1f6491
MC
35282003-06-26 Michael Chastain <mec@shout.net>
3529
3530 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3531 gdb/testsuite/gdb.c++/pr-1210.exp.
3532
d958dfd0
AC
35332003-06-26 Andrew Cagney <cagney@redhat.com>
3534
3535 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3536 altivec_expression.h and altivec_registers.h.
3537
d31431ed
AC
35382003-06-26 Andrew Cagney <cagney@redhat.com>
3539
3540 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3541 info->mach when MIPS16. Patch suggested by Fred Fish.
3542
714b1282
AC
35432003-06-26 Andrew Cagney <cagney@redhat.com>
3544
3545 * utils.c (internal_vproblem): Print the problem to a reason
3546 buffer and then pass to query. Make the msg variable more local.
3547
42efa47a
AC
35482003-06-26 Andrew Cagney <cagney@redhat.com>
3549
3550 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3551 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3552 * gdbarch.h, gdbarch.c: Re-generate.
3553 * frame-base.c (default_frame_args_address): Update. Use
3554 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3555 not available.
3556 (default_frame_locals_address): Ditto for
3557 DEPRECATED_FRAME_LOCALS_ADDRESS.
3558 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3559 (vax_frame_num_args): Update.
3560 (vax_gdbarch_init): Update.
3561 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3562 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3563 * mcore-tdep.c (mcore_gdbarch_init): Update.
3564 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3565 * ia64-tdep.c (ia64_gdbarch_init): Update.
3566 * symtab.h (address_class): Update comments.
3567 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3568 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3569 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3570 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3571 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3572 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3573 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3574 * alpha-mdebug-tdep.c: Update.
3575 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3576
8ffd9b1b
AJ
35772003-06-26 Andreas Jaeger <aj@suse.de>
3578
3579 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3580 of SSE registers so that varargs functions work. Rework handling
3581 of passing arguments on the stack.
3582 (x86_64_store_return_value): Return double and float values in SSE
3583 register.
3584
e8ac10a6
MC
35852003-06-24 Michael Chastain <mec@shout.net>
3586
3587 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3588 the "constructor breakpoints ignored" bug.
3589
986af8e6
DC
35902003-06-25 David Carlton <carlton@kealia.com>
3591
3592 * MAINTAINERS: Update e-mail address.
3593
d64558a5
JB
35942003-06-24 Jim Blandy <jimb@redhat.com>
3595
e538d2d7
JB
3596 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3597
02631ec0
JB
3598 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3599 function.
3600 (ppc_linux_init_abi): Register it as the
3601 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3602
e716d87a
JB
3603 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3604 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3605 method.
3606
d64558a5
JB
3607 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3608 (ppc64_standard_linkage_target): Use it.
3609
449a5da4
AC
36102003-06-23 Andrew Cagney <cagney@redhat.com>
3611
3612 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3613 for 0 "int0" and 4 "int32" sized registers.
3614 * gdbtypes.c (builtin_type_int0): Define.
3615 (build_gdbtypes): Initialize builtin_type_int0.
3616 * gdbtypes.h (builtin_type_int0): Declare.
3617
b2a02dda
SC
36182003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3619
3620 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3621 as characters are unsigned.
3622
fba3138e
DJ
36232003-06-22 Daniel Jacobowitz <drow@mvista.com>
3624
3625 PR gdb/1179
3626 * dwarfread.c (struct_type): Skip static fields without crashing.
3627
f6c8180b
AC
36282003-06-22 Andrew Cagney <cagney@redhat.com>
3629
3630 GDB 6.0 branch created.
f2c06f52
AC
3631 * README: Update.
3632 * PROBLEMS: Update. Empty.
3633 * NEWS: Update.
f6c8180b 3634
ae822768
DJ
36352003-06-22 Daniel Jacobowitz <drow@mvista.com>
3636
3637 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3638 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3639
261de166
AC
36402003-06-22 Andrew Cagney <cagney@redhat.com>
3641
3642 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3643 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3644 Velikov.
3645
30e94205
DJ
36462003-06-22 Daniel Jacobowitz <drow@mvista.com>
3647
3648 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3649 compilers.
3650
9e14d721
DJ
36512003-06-21 Daniel Jacobowitz <drow@mvista.com>
3652
3653 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3654 argument of val_print.
3655 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3656 to the address argument of baseclass_offset or target_read_memory.
3657 Do add it to the argument of cp_print_value_fields.
3658
a4b8ebc8
AC
36592003-06-21 Andrew Cagney <cagney@redhat.com>
3660
3661 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3662 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3663 instead of 0..NUM_REGS.
3664 (mips_register_reggroup_p): New function.
3665 (mips_pseudo_register_write): New function.
3666 (mips_pseudo_register_read): New function.
3667 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3668 based on the register's type.
3669 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3670 cooked.
3671 (mips_get_saved_register): Simplify. Assert that REGNO is a
3672 pseudo / cooked.
3673 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3674 (mips_register_type): Replace mips_register_virtual_type. Map
3675 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3676 when available.
3677 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3678 that the register is cooked / virtual.
3679 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3680 Only get the extra info when needed.
3681 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3682 (mips32_heuristic_proc_desc): Fetch the cooked register.
3683 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3684 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3685 (mips_print_register): Use gdbarch_register_type, instead of
3686 REGISTER_VIRTUAL_TYPE.
3687 (print_gp_register_row): Use gdbarch_register_type, instead of
3688 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3689 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3690 Print the pseudo / cooked registers.
3691 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3692 Print the pseudo / cooked registers.
3693 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3694 REG_NUM is pseudo / cooked.
3695 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3696 (mips_n32n64_xfer_return_value): Ditto.
3697 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3698 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3699 (mips_register_sim_regno): New function.
3700 (mips_gdbarch_init): Set deprecated_register_byte,
3701 register_group_p, pseudo_register_write, pseudo_register_read,
3702 register_sim_regno, and num_pseudo_regs. Set register_type,
3703 instead of register_virtual_type.
3704 * Makefile.in (mips-tdep.o): Update dependencies.
3705 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3706 REGISTER_VIRTUAL_TYPE.
3707 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3708 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3709 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3710 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3711 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3712
325ed089
DJ
37132003-06-21 Daniel Jacobowitz <drow@mvista.com>
3714
3715 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3716 * cli/cli-cmds.c: Include "gdb_vfork.h".
3717 (shell_escape): Use vfork.
3718
f0e7d0e8
AC
37192003-06-21 Andrew Cagney <cagney@redhat.com>
3720
c57bb9fa
AC
3721 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3722 32 bit floating-point register saves.
3723
6e51443a
AC
3724 * frame.h (deprecated_unwind_get_saved_register): Delete.
3725 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3726 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3727 and deprecated_get_next_frame_hack instead of
3728 deprecated_unwind_get_saved_register.
3729
ed183c7c
AC
3730 * mips-tdep.c (mips_dump_tdep): Do not print
3731 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3732
f0e7d0e8
AC
3733 * frame.c (get_frame_register): New function.
3734 (frame_unwind_register_signed): New function.
3735 (get_frame_register_signed): New function.
3736 (frame_unwind_register_unsigned): New function.
3737 (get_frame_register_unsigned): New function.
3738 * frame.h: Add comments on naming schema.
3739 (get_frame_register, frame_unwind_register_signed): Declare.
3740 (get_frame_register_signed, get_frame_register_signed): Declare.
3741 (frame_unwind_register_unsigned): Declare.
3742 (get_frame_register_unsigned): Declare.
3743
2224d941
TR
37442003-06-20 Theodore A. Roth <troth@openavr.org>
3745
3746 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3747
8619218d
TR
37482003-06-20 Theodore A. Roth <troth@openavr.org>
3749
3750 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3751 (avr_read_sp): Ditto.
3752
0b1b50c0
DJ
37532003-06-20 Daniel Jacobowitz <drow@mvista.com>
3754
3755 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3756 * config/arm/nm-linux.h: Likewise.
3757 * config/arm/tm-linux.h: Likewise.
3758 * config/ia64/nm-linux.h: Likewise.
3759 * config/ia64/tm-ia64.h: Likewise.
3760 * config/s390/tm-linux.h: Likewise.
3761 * config/s390/tm-s390.h: Likewise.
3762 * s390-nat.c: Likewise.
3763 * s390-tdep.c: Likewise.
3764
3765 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3766 * config/ia64/linux.mt: Likewise.
3767 * config/m68k/linux.mh: Likewise.
3768 * config/mips/linux.mt: Likewise.
3769 * config/powerpc/linux.mh: Likewise.
3770 * config/sh/linux.mt: Likewise.
3771
c8c18e65
KW
37722003-06-19 Kris Warkentin <kewarken@qnx.com>
3773
3774 * solib.c (solib_open): Change tests for whether to search
3775 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3776 comments.
3777
dcccef2e
TR
37782003-06-19 Theodore A. Roth <troth@openavr.org>
3779
3780 * avr-tdep.c (avr_frame_address): Delete function.
3781 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3782 set_gdbarch_frame_args_address.
3783
5861a190
AC
37842003-06-19 Andrew Cagney <cagney@redhat.com>
3785
3786 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3787 (REGISTER_CONVERT_FROM_TYPE): Delete.
3788 (mips_register_convert_to_type): Delete declaration.
3789 (mips_register_convert_from_type): Delete declaration.
3790 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3791 kernel/.
3792
0274a8ce
MS
37932003-06-19 Michael Snyder <msnyder@redhat.com>
3794
3795 * linux-nat.h: New file.
3796 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 3797 * lin-lwp.c: Include linux-nat.h.
0274a8ce 3798 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 3799 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
3800 (linux_make_note_section): Iterate over lwps instead of threads.
3801 (linux_do_thread_registers): Use lwp instead of merged pid.
3802 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 3803 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
3804 Add dependency on linux_nat_h.
3805
adf5f719
TR
38062003-06-19 Theodore A. Roth <troth@openavr.org>
3807
3808 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3809
6766a268
DJ
38102003-06-19 Daniel Jacobowitz <drow@mvista.com>
3811
3812 * varobj.c (get_type, get_target_type): Use check_typedef.
3813
1171114a
DJ
38142003-06-19 Daniel Jacobowitz <drow@mvista.com>
3815
3816 * breakpoint.c (insert_catchpoint): Call internal_error.
3817
adcf68a2
TR
38182003-06-19 Theodore A. Roth <troth@openavr.org>
3819
3820 * avr-tdep.c (avr_push_dummy_code): Delete function.
3821 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3822
ea67f13b
DJ
38232003-06-19 Daniel Jacobowitz <drow@mvista.com>
3824
3825 * arch-utils.c (default_prepare_to_proceed): Remove.
3826 (generic_prepare_to_proceed): Remove.
3827 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3828 (generic_prepare_to_proceed): Remove prototype.
3829 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3830 * gdbarch.c: Regenerate.
3831 * gdbarch.h: Regenerate.
3832 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3833 * hppah-nat.c (hppa_switched_threads): Remove.
3834 * infrun.c (prepare_to_proceed): New static function, copied from
3835 generic_prepare_to_proceed. Remove select_it argument.
3836 (proceed): Call prepare_to_proceed.
3837 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3838 variables.
3839 (ptrace_wait): Don't set the removed variables.
3840 (hppa_switched_threads): Remove.
3841 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3842 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3843 (lin_lwp_prepare_to_proceed): Remove prototype.
3844 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3845 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3846
4add8633
TR
38472003-06-18 Theodore A. Roth <troth@openavr.org>
3848
3849 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3850 trad-frame.h.
3851 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3852 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3853 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3854 (AVR_PROLOGUE_*): Enumerate prologue types.
3855 (struct frame_extra_info): Remove.
3856 (struct avr_unwind_cache): Define.
3857 (avr_write_sp): Delete function.
3858 (avr_read_fp): Ditto.
3859 (avr_init_extra_frame_info): Ditto.
3860 (avr_pop_frame): Ditto.
3861 (avr_frame_saved_pc): Ditto.
3862 (avr_saved_pc_after_call): Ditto.
3863 (avr_push_return_address): Ditto.
3864 (avr_frame_chain): Ditto.
3865 (avr_store_struct_return): Ditto.
3866 (avr_push_arguments): Ditto.
3867 (avr_scan_prologue): Update comments. Changed to set up the info for
3868 cache unwinding. Now returns end of prologue PC.
3869 (avr_skip_prologue): Better handling of functions lacking a prologue
3870 by using avr_scan_prologue.
3871 (avr_scan_arg_moves): New function.
3872 (avr_saved_regs_unwinder): Ditto.
3873 (avr_frame_unwind_cache): Ditto.
3874 (avr_unwind_pc): Ditto.
3875 (avr_frame_this_id): Ditto.
3876 (avr_frame_prev_register): Ditto.
3877 (avr_frame_p): Ditto.
3878 (avr_frame_base_address ): Ditto.
3879 (avr_unwind_dummy_id): Ditto.
3880 (avr_push_dummy_code): Ditto.
3881 (push_stack_item): Ditto.
3882 (pop_stack_item): Ditto.
3883 (avr_push_dummy_call): Ditto.
3884 (struct stack_item): Define.
3885 (avr_frame_unwind): Declare structure.
3886 (avr_frame_base): Ditto.
3887 (avr_gdbarch_init): Remove calls to
3888 set_gdbarch_deprecated_init_frame_pc,
3889 set_gdbarch_deprecated_target_read_fp,
3890 set_gdbarch_deprecated_dummy_write_sp,
3891 set_gdbarch_deprecated_fp_regnum,
3892 set_gdbarch_deprecated_push_arguments,
3893 set_gdbarch_deprecated_push_return_address,
3894 set_gdbarch_deprecated_pop_frame,
3895 set_gdbarch_deprecated_store_struct_return,
3896 set_gdbarch_deprecated_frame_init_saved_regs,
3897 set_gdbarch_deprecated_init_extra_frame_info,
3898 set_gdbarch_deprecated_frame_chain,
3899 set_gdbarch_deprecated_frame_saved_pc,
3900 set_gdbarch_deprecated_saved_pc_after_call.
3901 Add calls to set_gdbarch_push_dummy_call,
3902 set_gdbarch_push_dummy_code,
3903 frame_unwind_append_predicate,
3904 frame_base_set_default,
3905 set_gdbarch_unwind_dummy_id,
3906 set_gdbarch_unwind_pc.
3907 Wrap a long line.
3908
7be04a68
MS
39092003-06-18 Corinna Vinschen <vinschen@redhat.com>
3910
3911 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3912 registers for H8/300S.
3913 (h8300_print_registers_info): Ditto.
8ffd9b1b 3914 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3915
ae087d01
DJ
39162003-06-18 Daniel Jacobowitz <drow@mvista.com>
3917
3918 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3919 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3920 (lin_lwp_wait): Likewise. Update comments.
3921 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3922 (pull_pid_from_list, linux_record_stopped_pid): New.
3923
07d8f827
SC
39242003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3925
3926 * ada-lang.c (scan_discrim_bound): Name first argument.
3927 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3928 declared by ALL_BLOCK_SYMBOLS.
3929
7cb47b14
SC
39302003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3931
3932 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3933 ("regcache.h"): Include it.
3934 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3935
6ad8ae5c
DJ
39362003-06-17 Daniel Jacobowitz <drow@mvista.com>
3937
3938 * NEWS: Mention gdbserver detach change and "disconnect" command.
3939 * infcmd.c (disconnect_command): New function.
3940 (_initialize_infcmd): Add ``disconnect'' command.
3941 * remote.c (remote_async_detach): Delete.
3942 (remote_detach): Merge remote_async_detach.
3943 (remote_disconnect): New.
3944 (init_remote_ops): Set to_disconnect.
3945 (init_remote_cisco_ops): Likewise.
3946 (init_remote_async_ops): Likewise. Use remote_detach.
3947 * target.c (cleanup_target): Default to_disconnect.
3948 (update_current_target): Inherit to_disconnect.
3949 (target_disconnect, debug_to_disconnect): New functions.
3950 (setup_target_debug): Set to_disconnect.
3951 * target.h (struct target_ops): Add to_disconnect.
3952 (target_disconnect): Add prototype.
3953
687595f9
DJ
39542003-06-17 Daniel Jacobowitz <drow@mvista.com>
3955
3956 * breakpoint.c (insert_catchpoint): New function.
3957 (insert_breakpoints): Use catch_exceptions to call
3958 insert_catchpoint. Disable catchpoints if they fail to insert.
3959
29239a8f
DJ
39602003-06-17 Daniel Jacobowitz <drow@mvista.com>
3961
3962 * symfile.c (reread_symbols): Clear sym_private.
3963
2cdf3c63
AC
39642003-06-17 Andrew Cagney <cagney@redhat.com>
3965
3966 * trad-frame.h (struct frame_info): Add opaque declaration.
3967 * remote-fileio.h (struct cmd_list_element): Add opaque
3968 declaration.
3969 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3970 comments.
3971
cf0e1e0d
DJ
39722003-06-17 Daniel Jacobowitz <drow@mvista.com>
3973
3974 * remote.c (remote_prepare_to_store): Replace call to
3975 deprecated_read_register_bytes with multiple regcache_raw_read
3976 calls.
3977
192cdb19
KW
39782003-06-17 Kris Warkentin <kewarken@qnx.com>
3979
3980 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3981 (nto_find_and_open_solib): Likewise.
3982 (nto_init_solib_absolute_prefix): Likewise.
3983 (_initialize_nto_tdep): Fix indentation.
3984
89929b45
KW
39852003-06-17 Kris Warkentin <kewarken@qnx.com>
3986
3987 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3988
46019f27
KW
39892003-06-17 Kris Warkentin <kewarken@qnx.com>
3990
3991 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3992
1a38736e
JB
39932003-06-17 Jim Blandy <jimb@redhat.com>
3994
3995 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3996
3605c34a
TR
39972003-06-16 Theodore A. Roth <troth@openavr.org>
3998
3999 * avr-tdep.c (avr_extract_return_value): New function.
4000 (avr_gdbarch_init): Set extract_return_value method.
4001
870b3035
AC
40022003-06-16 Andrew Cagney <cagney@redhat.com>
4003
4004 * frame.h (deprecated_get_next_frame_hack): Declare.
4005 * frame.c (legacy_saved_regs_prev_register): Only require
4006 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4007 there are always saved regs.
4008 (deprecated_generic_get_saved_register): Do not require
4009 DEPRECATED_FRAME_INIT_SAVED_REGS.
4010 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4011 use frame ID unwind instead.
4012 (deprecated_get_next_frame_hack): New function.
4013
63d47a7d
CV
40142003-06-16 Corinna Vinschen <vinschen@redhat.com>
4015
4016 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4017 (h8300_push_dummy_call): ...this function. Some minor optimization.
4018 (h8300_push_return_address): Remove.
4019 (h8300_gdbarch_init): Remove calls to
4020 set_gdbarch_deprecated_dummy_write_sp,
4021 set_gdbarch_deprecated_push_arguments and
4022 set_gdbarch_deprecated_push_return_address.
4023 Add call to set_gdbarch_push_dummy_call.
4024
4bb1dc5e
CV
40252003-06-16 Corinna Vinschen <vinschen@redhat.com>
4026
4027 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4028 (E_PSEUDO_EXR_REGNUM): Ditto.
4029 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4030 registers into safe registers.
4bb1dc5e
CV
4031 (h8300_skip_prologue): Check for stm instruction to push registers
4032 used for register variables onto stack.
4033 (gdb_print_insn_h8300): Remove.
4034 (h8300_examine_prologue): Add a comment.
4035 (h8300_register_name): Take pseudo registers into account.
4036 (h8300s_register_name): Ditto.
4037 (h8300sx_register_name): Ditto.
4038 (h8300_print_register): Ditto.
4039 (h8300_print_registers_info): Define "nice" printing order.
4040 (h8300_saved_pc_after_call): Take pseudo registers into account.
4041 (h8300_register_type): Ditto. Return type used for remote connection
4042 when requesting real CCR or EXR register, return actual type when
4043 requesting pseudo CCR or EXR.
4044 (h8300_pseudo_register_read): New function.
4045 (h8300_pseudo_register_write): Ditto.
4046 (h8300_dbg_reg_to_regnum): Ditto.
4047 (h8300s_dbg_reg_to_regnum): Ditto.
4048 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4049 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4050 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4051 set_gdbarch_print_insn architecture dependent.
4052 Call set_gdbarch_pseudo_register_read and
4053 set_gdbarch_pseudo_register_write.
4054 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4055
a59fe496
AC
40562003-06-16 Andrew Cagney <cagney@redhat.com>
4057
4058 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4059 * gdbarch.h, gdbarch.c: Re-generate.
4060 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4061 * s390-tdep.c (s390_gdbarch_init): Update.
4062 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4063 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4064 * mips-tdep.c (mips_gdbarch_init): Update.
4065 * mcore-tdep.c (mcore_gdbarch_init): Update.
4066 * cris-tdep.c (cris_gdbarch_init): Update.
4067 * infcall.c (call_function_by_hand): Update.
4068 * ia64-tdep.c (ia64_push_arguments): Update comment.
4069 * frame.c (legacy_get_prev_frame): Do not assume
4070 SAVE_DUMMY_FRAME_TOS_P.
4071 * dummy-frame.c (find_dummy_frame): Update comment.
4072
6f4e5a41
AC
40732003-06-16 Andrew Cagney <cagney@redhat.com>
4074
4075 * regcache.c (do_cooked_read): Do not use register_valid_p.
4076
72fab697
TR
40772003-06-15 Theodore A. Roth <troth@openavr.org>
4078
4079 * avr-tdep.c (avr_register_type): Remove a blank line.
4080 (avr_scan_prologue): Correct some comments.
4081
e3d8b004
TR
40822003-06-15 Theodore A. Roth <troth@openavr.org>
4083
4084 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4085 prologue types.
8ffd9b1b 4086 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4087 option.
4088 Add code to scan -mcall-prologues for mega devices.
4089
866b76ea
TR
40902003-06-15 Theodore A. Roth <troth@openavr.org>
4091
4092 * avr-tdep.c (avr_register_byte): Delete function.
4093 (avr_register_raw_size): Delete function.
4094 (avr_register_virtual_size): Delete function.
4095 (avr_register_virtual_type): Delete function.
4096 (avr_register_type): New function.
4097 (avr_address_to_pointer): Remove unused code.
4098 (avr_read_fp): Need to read FP as two separate bytes due to change to
4099 avr_register_type() usage.
4100 (avr_gdbarch_init): Don't set deprecated_register_size.
4101 Don't set deprecated_register_bytes.
4102 Don't set deprecated_register_byte.
4103 Don't set deprecated_register_raw_size.
4104 Don't set deprecated_max_register_raw_size.
4105 Don't set deprecated_register_virtual_size.
4106 Don't set deprecated_max_register_virtual_size.
4107 Don't set deprecated_register_virtual_type.
4108 Set register_type method.
4109
3993f6b1
DJ
41102003-06-15 Daniel Jacobowitz <drow@mvista.com>
4111
4112 * Makefile.in (linux-nat.o): Add rule.
4113 * linux-nat.c: New file.
4114 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4115 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4116 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4117 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4118 * config/arm/linux.mh (NATDEPFILES): Likewise.
4119 * config/i386/linux.mh (NATDEPFILES): Likewise.
4120 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4121 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4122 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4123 * config/mips/linux.mh (NATDEPFILES): Likewise.
4124 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4125 * config/s390/s390.mh (NATDEPFILES): Likewise.
4126 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4127
786a90bb
MK
41282003-06-15 Mark Kettenis <kettenis@gnu.org>
4129
4130 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4131 replace out-of-date comment.
4132
3bd3f01e
AC
41332003-06-15 Andrew Cagney <cagney@redhat.com>
4134
4135 * rdi-share/host.h (Fail): Change to a varargs function.
4136 * remote-rdi.c (Fail): Update.
8ffd9b1b 4137
de5b9bb9
MK
41382003-06-15 Mark Kettenis <kettenis@gnu.org>
4139
4140 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4141 (i386_convert_register_p, i386_register_to_value,
4142 i386_register_from_value): Handle types longer than 8 bytes.
4143
d532c08f
MK
41442003-06-15 Mark Kettenis <kettenis@gnu.org>
4145
4146 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4147 Move floating-point code to new function in i387-tdep.c.
4148 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4149 New functions containing code moved here from i386-tdep.c.
4150 * i387-tdep.h: Add opaque declaration for `struct type'.
4151 (i387_register_to_value, i387_value_to_register): New prototypes.
4152 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4153 (x86_64_init_abi): Set convert_register_p, register_to_value and
4154 value_to_register here.
8ffd9b1b 4155
42c466d7
AC
41562003-06-14 Andrew Cagney <cagney@redhat.com>
4157
4158 * mips-tdep.c (mips_register_to_value): Make static.
4159 (mips_value_to_register): Make static.
4160 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4161 * ia64-tdep.c (ia64_register_raw_size): Make static.
4162 (ia64_register_virtual_size): Make static.
4163 (ia64_register_byte): Make static.
4164 * i387-tdep.c: Include "i387-tdep.h".
4165 (print_387_control_word): Delete function.
4166 (print_387_status_word): Delete function.
4167 (print_387_status_bits): Delete function.
4168 (print_387_control_bits): Delete function.
4169 * Makefile.in (i387-tdep.o): Update dependencies.
4170 * rdi-share/host.h (Fail): Declare.
4171 * remote-rdi.c (Fail): Update to match declaration.
4172
2a9cda49
AC
41732003-06-14 Andrew Cagney <cagney@redhat.com>
4174
4175 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4176 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4177 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4178 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4179 * README: Delete reference to remote-array.
4180 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4181 (remote-array.o): Delete target.
4182 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4183 * remote-array.c: Delete file.
4184
ff2e87ac
AC
41852003-06-14 Andrew Cagney <cagney@redhat.com>
4186 Mark Kettenis <kettenis@gnu.org>
4187
4188 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4189 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4190 parameter with "frame".
4191 * gdbarch.h, gdbarch.c: Re-generate.
4192 * frame.h (put_frame_register): Declare.
4193 * frame.c (put_frame_register): New function.
4194 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4195 (legacy_register_to_value): Rewrite, use "frame" to get the
4196 register value.
4197 (legacy_value_to_register): Rewrite, use "frame" to find the
4198 register's location before storing.
4199 * arch-utils.h (legacy_convert_register_p): Update.
4200 (legacy_register_to_value, legacy_value_to_register): Update.
4201 * findvar.c (value_from_register): Rewrite, eliminate use of
4202 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4203 "frame" to REGISTER_TO_VALUE.
4204 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4205 lval_reg_frame_relative + lval_register branch of the switch. Do
4206 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4207 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4208 I386_EDI_REGNUM): New defines.
4209 (i386_next_regnum, i386_convert_register_p,
4210 i386_register_to_value, i386_value_to_register): New functions.
4211 (i386_register_convertible, i386_register_convert_to_virtual,
4212 i386_convert_to_raw): Remove functions.
4213 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4214 value_to_register instead of register_convertible,
4215 register_convert_to_virtual and register_convert_to_raw.
4216 * mips-tdep.c (mips_convert_register_p): New function.
4217 (mips_value_to_register): Replace mips_register_convert_from_type.
4218 (mips_register_to_value): Replace mips_register_convert_to_type.
4219 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4220 register_to_value.
4221 * alpha-tdep.c (alpha_convert_register_p): Update.
4222 (alpha_value_to_register): Update, store the register.
4223 (alpha_register_to_value): Update, fetch the register.
4224
98be1e77
TR
42252003-06-14 Theodore A. Roth <troth@openavr.org>
4226
4227 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4228 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4229 Don't set deprecated_call_dummy_words.
4230 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4231 Don't set remote_translate_xfer_address.
4232 (avr_io_reg_read_command): Remove commented out debug printf.
4233 Wrap a long line.
4234
57bc6122
TR
42352003-06-14 Theodore A. Roth <troth@openavr.org>
4236
4237 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4238 causes gdb to seg fault.
4239
eb01fc62
DJ
42402003-06-14 Daniel Jacobowitz <drow@mvista.com>
4241
4242 * sparc-nat.c (fetch_inferior_registers): Correct
4243 a reference to "registers".
4244
3b3e6bee
DJ
42452003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4246
4247 * Makefile.in (exc_request_U_h): Define
4248 (exc_request_S_h): Likewise.
4249 (msg_reply_S_h): Likewise.
4250 (msg_U_h): Likewise.
4251 (notify_S_h): Likewise.
4252 (process_reply_S_h): Likewise.
4253 (gnu-nat.o): Depend on gdb_obstack_h
4254 * gnu-nat.c: Include "gdb_obstack.h".
4255
b8de8283
AC
42562003-06-13 Andrew Cagney <cagney@redhat.com>
4257
4258 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4259 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4260
f3be58bc
AC
42612003-06-13 Andrew Cagney <cagney@redhat.com>
4262
4263 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4264 when deprecated REGISTER macros can be deleted.
4265 * gdbarch.h, gdbarch.c: Re-generate.
4266
4c0122c8
JB
42672003-06-13 Jim Blandy <jimb@redhat.com>
4268
4269 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4270 Linux entry point symbols for _dl_debug_state, too.
4271
3e210248
AC
42722003-06-13 Andrew Cagney <cagney@redhat.com>
4273
4274 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4275 available, do not use the FP register, and always save the TOS.
4276 * dummy-frame.c (dummy_frame_this_id): Do not assert
4277 SAVE_DUMMY_FRAME_TOS.
4278 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4279 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4280 (i386_push_dummy_call): Add 8 to the returned SP.
4281 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4282 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4283 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4284 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4285 (x86_64_push_dummy_call): Return "sp + 16".
4286 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4287 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4288 save_dummy_frame_tos.
4289
0b65af49
JB
42902003-06-13 Jim Blandy <jimb@redhat.com>
4291
4292 * frv-tdep.c (frv_use_struct_convention): Delete static
4293 declaration for function deleted in my change of 2003-06-12.
4294
4ea2465e
TR
42952003-06-13 Theodore A. Roth <troth@openavr.org>
4296
4297 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4298 (avr_pointer_to_address): Shift code addrs left 1 bit.
4299 (avr_convert_from_func_ptr_addr): Delete function since operation is
4300 better handled by avr_address_to_pointer and avr_pointer_to_address.
4301 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4302
1581182a
MK
43032003-06-13 Mark Kettenis <kettenis@gnu.org>
4304
4305 From Kelley Cook <kelleycook@wideopenwest.com>:
4306 * configure.host: Accept i[34567]86 variants.
4307 * configure.tgt: Likewise.
4308 * nlm/configure.in: Likewise.
4309 * nlm/configure: Regenerated.
4310
7aa1783e
RE
43112003-06-13 Richard Earnshaw <rearnsha@arm.com>
4312
4313 * arm-tdep.c (solib-svr4.h): Dont' include it.
4314 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4315 * arm-linux-tdep.c: ... here. Make static.
4316 (arm_linux_init_abi): Register it.
4317 (solib-svr4.h): Include it.
4318 * Makefile.in: Update dependencies.
4319 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4320 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4321
0261a0d0
CV
43222003-06-13 Corinna Vinschen <vinschen@redhat.com>
4323
4324 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4325 indicate registers used for return values.
4326 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4327 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4328 members.
4329 (h8300_init_extra_frame_info): Ditto.
4330 (h8300_frame_locals_address): Removed.
4331 (h8300_frame_args_address): Removed.
4332 (h8300_extract_return_value): Use new regcache structure. Only care
4333 for 16 bit CPUs.
4334 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4335 (h8300_store_return_value): Use new regcache structure. Only care
4336 for 16 bit CPUs.
4337 (h8300h_store_return_value): Same function for 32 bit CPUs.
4338 (h8300_store_struct_return): Removed.
4339 (h8300_extract_struct_value_address): Use new regcache structure.
4340 (h8300h_extract_struct_value_address): Removed.
4341 (h8300_push_dummy_code): New function.
4342 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4343 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4344 set_gdbarch_store_return_value architecture dependent.
4345 Call set_gdbarch_push_dummy_code and
4346 set_gdbarch_extract_struct_value_address.
4347 Remove calls to set_gdbarch_frame_args_address,
4348 set_gdbarch_frame_locals_address,
4349 set_gdbarch_deprecated_store_struct_return,
4350 set_gdbarch_deprecated_extract_return_value,
4351 set_gdbarch_deprecated_extract_struct_value_address,
4352 set_gdbarch_deprecated_call_dummy_words and
4353 set_gdbarch_deprecated_sizeof_call_dummy_words.
4354
055c394a
CV
43552003-06-13 Corinna Vinschen <vinschen@redhat.com>
4356
4357 * h8300-tdep.c (h8300_register_byte): Remove.
4358 (h8300h_register_byte): Remove.
4359 (h8300_register_virtual_type): Remove. Substitute by...
4360 (h8300_register_type): New function.
4361 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4362 (h8300h_extract_struct_value_address): Ditto.
4363 (h8300_gdbarch_init): Drop calls to
4364 set_gdbarch_deprecated_register_byte and
4365 set_gdbarch_deprecated_register_virtual_type.
4366 Add call to set_gdbarch_register_type.
4367
9c04cab7
AC
43682003-06-13 Andrew Cagney <cagney@redhat.com>
4369
4370 * gdbarch.sh: Update comments on registers.
4371 (deprecated_register_byte): Rename register_byte.
4372 (deprecated_register_raw_size): Rename register_raw_size.
4373 (deprecated_register_virtual_size): Rename register_virtual_size.
4374 (deprecated_register_virtual_type): Rename register_virtual_type.
4375 * gdbarch.h, gdbarch.c: Re-generate.
4376 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4377 * vax-tdep.c (vax_gdbarch_init): Update.
4378 * v850-tdep.c (v850_gdbarch_init): Update.
4379 * sparc-tdep.c (sparc_gdbarch_init): Update.
4380 * sh-tdep.c (sh_gdbarch_init): Update.
4381 * s390-tdep.c (s390_gdbarch_init): Update.
4382 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4383 * ns32k-tdep.c: Update.
4384 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4385 * mips-tdep.c (mips_gdbarch_init): Update.
4386 * mcore-tdep.c (mcore_gdbarch_init): Update.
4387 * m68k-tdep.c (m68k_gdbarch_init): Update.
4388 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4389 * ia64-tdep.c (ia64_gdbarch_init): Update.
4390 * hppa-tdep.c (hppa_gdbarch_init): Update.
4391 * h8300-tdep.c (h8300_gdbarch_init): Update.
4392 * frv-tdep.c (frv_gdbarch_init): Update.
4393 * cris-tdep.c (cris_gdbarch_init): Update.
4394 * avr-tdep.c (avr_gdbarch_init): Update.
4395 * alpha-tdep.c (alpha_gdbarch_init): Update.
4396 * arm-tdep.c (arm_gdbarch_init): Update.
4397
b060cbea
AC
43982003-06-13 Andrew Cagney <cagney@redhat.com>
4399
4400 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4401 mips_o32_use_struct_convention with always_use_struct_convention.
4402
0fc9922a
DC
44032003-06-12 David Carlton <carlton@kealia.com>
4404
4405 * cp-namespace.c (cp_set_block_scope): Comment out
4406 processing_has_namespace_info branch.
4407
1fd35568
JB
44082003-06-12 Jim Blandy <jimb@redhat.com>
4409
f470a70a
JB
4410 Recognize and skip 64-bit PowerPC Linux linkage functions.
4411 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4412 insn_pattern, insns_match_pattern, d_field, ds_field): New
4413 functions, macros, and types for working with PPC instructions.
4414 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4415 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4416 ppc64_skip_trampoline_code): New functions, variables, and macros
4417 for recognizing and skipping linkage functions.
4418 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4419 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4420
49ff75ad
JB
4421 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4422 register offsets for both the 32- and 64-bit interfaces.
4423
bd918c83
JB
4424 Actually finish the job started by my change of 2003-05-29.
4425 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4426 other #definition of this.
4427 (ppc_linux_skip_trampoline_code): Remove declaration.
4428 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4429 static.
4430 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4431 method for GDBARCH.
4432
4433 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4434 'long' on ppc64-*-linux*.
4435
f8c59253
JB
4436 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4437 isn't #defined, assume the register doesn't exist: act as if
4438 tdep->ppc_mq_regnum were -1.
4439
8fbb30b1
JB
4440 * configure.host, configure.tgt: Add entries for
4441 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4442 powerpc/linux.mt.
4443 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4444 New files.
4445
1fd35568
JB
4446 * arch-utils.c (always_use_struct_convention): New function.
4447 * arch-utils.h (always_use_struct_convention): New prototype.
4448 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4449 (alpha_gdbarch_init): Register always_use_struct_convention,
4450 instead of alpha_use_struct_convention.
4451 * cris-tdep.c (cris_use_struct_convention): Delete.
4452 (cris_gdbarch_init): Register always_use_struct_convention,
4453 instead of cris_use_struct_convention.
4454 * frv-tdep.c (frv_use_struct_convention): Delete.
4455 (frv_gdbarch_init): Register always_use_struct_convention,
4456 instead of frv_use_struct_convention.
4457 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4458 (h8300_gdbarch_init): Register always_use_struct_convention,
4459 instead of h8300_use_struct_convention.
e3305dd9 4460 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4461 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4462 instead of mips_o32_use_struct_convention.
4463
e14e6e9c
AC
44642003-06-12 Andrew Cagney <cagney@redhat.com>
4465
4466 * wince.c: Include "mips-tdep.h".
4467 * mips-tdep.h (mips_next_pc): Declare.
4468 * mcore-tdep.c: Make more local functions static.
4469 * Makefile.in (wince.o): Update dependencies.
4470
2335f48e
DC
44712003-06-12 David Carlton <carlton@kealia.com>
4472
4473 * symtab.c (lookup_symbol_aux_minsyms): Replace
4474 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4475 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4476 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4477 SYMBOL_NATURAL_NAME.
4478
f70a7d61
AS
44792003-06-12 Andreas Schwab <schwab@suse.de>
4480
4481 * Makefile.in (tuiDisassem.o): Update dependencies.
4482
b6429628
DC
44832003-06-12 David Carlton <carlton@bactrian.org>
4484
4485 * symtab.h: Delete declaration of make_symbol_overload_list.
4486 Add declaration of lookup_partial_symbol.
4487 * symtab.c (remove_params): Move to cp-support.c.
4488 (overload_list_add_symbol, make_symbol_overload_list)
4489 (sym_return_val_size, sym_return_val_index): Ditto.
4490 (lookup_partial_symbol): Make extern.
4491 * cp-support.h: Add declaration of make_symbol_overload_list.
4492 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4493 symtab.h, and block.h.
4494 (remove_params): Move here from symtab.c.
4495 (overload_list_add_symbol, make_symbol_overload_list)
4496 (sym_return_val_size, sym_return_val_index): Ditto.
4497 * valops.c: Include cp-support.h.
4498 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4499 frame_h, and block_h.
4500 (valops.o): Depend on cp_support_h.
4501
084edea5
CV
45022003-06-12 Corinna Vinschen <vinschen@redhat.com>
4503
4504 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4505 substitute by NUM_REGS throughout.
4506 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4507 (h8300s_register_name): New function for H8S registers.
4508 (h8300sx_register_name): Ditto for H8SX registers.
4509 (h8300_print_register): Revise register printing, avoid depending
4510 on 32 bit long.
0261a0d0 4511 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4512 (h8300h_register_byte): New function for any other architecture.
4513 (h8300_register_raw_size): Remove.
4514 (h8300_register_virtual_type): Revise to return actually useful
4515 type.
4516 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4517 (h8300h_extract_struct_value_address): New function for any other
4518 architecture.
4519 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4520 set_gdbarch_register_name, set_gdbarch_register_byte,
4521 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4522 Remove calls to set_gdbarch_deprecated_register_size,
4523 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4524 set_gdbarch_deprecated_max_register_raw_size,
4525 set_gdbarch_register_virtual_size and
4526 set_gdbarch_deprecated_max_register_virtual_size entirely.
4527 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4528 set_gdbarch_long_double_bit.
4529
06194148
JJ
45302003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4531
8ffd9b1b
AJ
4532 * doublest.c (convert_doublest_to_floatformat): When dealing
4533 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4534 processing a full 32 bits of mantissa.
4535
de4f826b
DC
45362003-06-11 David Carlton <carlton@bactrian.org>
4537
4538 * dictionary.h: New.
4539 * dictionary.c: New.
4540 * block.h: Add opaque declaration for struct dictionary.
4541 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4542 'sym' members.
4543 (BLOCK_DICT): New macro.
4544 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4545 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4546 BLOCK_SHOULD_SORT.
4547 (ALL_BLOCK_SYMBOLS): Update definition.
4548 * Makefile.in (SFILES): Add dictionary.c.
4549 (dictionary_h): New.
4550 (COMMON_OBS): Add dictionary.o.
4551 (dictionary.o): New.
4552 (ada-lang.o): Depend on dictionary_h.
4553 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4554 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4555 (mi-cmd-stack.o): Ditto.
4556 (gdbtk-cmds.o): Update dependencies.
4557 (gdbtk-stack.o): Ditto.
4558 * ada-lang.c: Include dictionary.h.
4559 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4560 (fill_in_ada_prototype, debug_print_block): Ditto.
4561 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4562 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4563 'is_sorted'.
4564 * mdebugread.c: Include dictionary.h.
4565 (struct parse_stack): Delete 'maxsyms' member.
4566 (parse_symbol): Update calls to new_block. Delete calls to
4567 shrink_block. Use dictionary methods.
4568 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4569 Update calls to new_symtab. Don't maintain maxsyms data.
4570 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4571 (add_symbol): Just call dict_add_symbol.
4572 (new_symtab): Delete 'maxsyms' argument.
4573 (new_symtab): Update calls to new_block.
4574 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4575 (shrink_block): Delete function.
4576 (fixup_sigtramp): Update call to new_block. Add symbol via
4577 dict_add_symbol.
4578 * jv-lang.c: Include dictionary.h.
4579 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4580 appropriately. Set class_symtab->free_func. Make sure the
4581 blockvector is big enough to hold two blocks.
4582 (add_class_symtab_symbol): Use dictionary methods.
4583 (free_class_block): New function.
4584 (type_from_class): Replace explicit iteration by
4585 ALL_BLOCK_SYMBOLS.
4586 * symtab.h (struct symtab): Replace 'free_ptr' method by
4587 'free_func'.
4588 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4589 sort_symtab_syms.
4590 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4591 sort_symtab_syms.
4592 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4593 Include dictionary.h.
4594 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4595 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4596 sort_symtab_syms.
4597 * objfiles.c: Include dictionary.h.
4598 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4599 * buildsym.c: Include dictionary.h.
4600 (finish_block): Use dictionary methods.
4601 (end_symtab): Set free_func to NULL, not free_ptr.
4602 * tracepoint.c: Include dictionary.h.
4603 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4604 (scope_info): Ditto.
4605 * stack.c: Include dictionary.h.
4606 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4607 (print_block_frame_labels, print_frame_arg_vars)
4608 (print_frame_args): Ditto.
4609 * symmisc.c (free_symtab_block): Use dictionary methods.
4610 (dump_symtab): Ditto.
4611 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4612 Include dictionary.h.
4613 * symfile.h: Delete declarations of sort_block_syms,
4614 sort_symtab_syms.
4615 * symfile.c (sort_block_syms): Delete.
4616 (sort_symtab_syms): Delete.
4617 * symtab.c: Include dictionary.h.
4618 (lookup_block_symbol): Use dictionary iterators.
4619 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4620 (search_symbols, make_symbol_completion_list): Ditto.
4621 (make_symbol_overload_list): Ditto.
4622 * valops.c (value_of_local): Use dict_empty.
4623 Include dictionary.h.
4624
a31f978c
JB
46252003-06-11 J. Brobecker <brobecker@gnat.com>
4626
4627 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4628
526e70c0
DC
46292003-06-11 David Carlton <carlton@bactrian.org>
4630
4631 * block.h (BLOCK_SHOULD_SORT): Delete.
4632 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4633 blocks.
4634 * ada-lang.c (ada_add_block_symbols): Ditto.
4635 * symfile.c (sort_block_syms): Delete.
4636 (sort_symtab_syms): Ditto.
4637 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4638 declarations.
4639 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4640 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4641 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4642 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4643 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4644 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4645 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4646
33c08150
JJ
46472003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4648
8ffd9b1b 4649 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4650 bits to 128.
4651
781a750d
AC
46522003-06-11 Andrew Cagney <cagney@redhat.com>
4653
4654 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4655 REGISTER_CONVERTIBLE.
4656 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4657 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4658 * gdbarch.h, gdbarch.c: Re-generate.
4659 * arch-utils.h (deprecated_register_convertible_not): Rename
4660 generic_register_convertible_not.
4661 * arch-utils.c (deprecated_register_convertible_not): Rename
4662 generic_register_convertible.
4663 (legacy_convert_register_p, legacy_register_to_value): Update.
4664 * sh-tdep.c (sh64_push_arguments): Update.
4665 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4666 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4667 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4668 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4669 * arch-utils.c (legacy_value_to_register): Update.
4670 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4671 (rs6000_register_convert_to_raw): Make parameter "from" const.
4672 * mips-tdep.c (mips_gdbarch_init): Update.
4673 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4674 * infcmd.c (default_print_registers_info): Update.
4675 * ia64-tdep.c (ia64_gdbarch_init): Update.
4676 (ia64_register_convert_to_raw): Make parameter "from" const.
4677 * i386-tdep.c (i386_gdbarch_init): Update.
4678 (i386_register_convert_to_raw): Update.
4679
cd90e54f
AC
46802003-06-11 Andrew Cagney <cagney@redhat.com>
4681
4682 * remote-fileio.c: Include "remote-fileio.h".
4683 * Makefile.in (remote-fileio.o): Update dependencies.
4684 (remote_fileio_h): Fix typo.
4685
a78f21af
AC
46862003-06-11 Andrew Cagney <cagney@redhat.com>
4687
4688 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4689 (xstormy16_save_dummy_frame_tos): Make static.
4690 (_initialize_xstormy16_tdep): Add declaration.
4691 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4692 * v850-tdep.c: Make local functions static.
4693 (_initialize_v850_tdep): Add declaration.
4694 * sparc-tdep.c: Make local functions static.
4695 (_initialize_sparc_tdep): Add declaration.
4696 * sh-tdep.c: Make local functions static.
4697 (_initialize_sh_tdep): Add declaration.
4698 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4699 * s390-tdep.c: Make local functions static.
4700 (_initialize_s390_tdep): Add declaration.
4701 * dbxread.c (find_stab_function_addr): Make static.
4702 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4703 * ocd.c (_initialize_remote_ocd): Add declaration.
4704 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4705 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4706 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4707 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4708 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4709 * remote-array.c (_initialize_array): Add declaration.
4710 (_initialize_remote_monitors): Add declaration.
4711 * remote-mips.c: Make local functions static.
4712 (_initialize_remote_mips): Add declaration.
4713 * mcore-tdep.c: Make all local functions static.
4714 (_initialize_mcore_tdep): Add declaration.
4715 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4716 * abug-rom.c (_initialize_abug_rom): Add declaration.
4717 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4718 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4719 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4720 * remote-est.c (_initialize_est): Add declaration.
4721 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4722 (m68hc11_call_dummy_address): Make static.
4723 * ia64-tdep.c: Make local functions static.
4724 (_initialize_ia64_tdep): Add declaration.
4725 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4726 * monitor.c (monitor_wait_filter): Make static.
4727 (_initialize_remote_monitors): Add declaration.
4728 * remote-hms.c (_initialize_remote_hms): Add declaration.
4729 * remote-e7000.c (fetch_regs_from_dump): Make static.
4730 (expect_n): Make static.
4731 (_initialize_remote_e7000): Add declaration.
4732 * ser-e7kpc.c: Always include "defs.h".
4733 (_initialize_ser_e7000pc): Add declaration.
4734 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4735 * cris-tdep.c: Make all but one function static.
4736 (_initialize_cris_tdep): Add declaration.
4737 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4738 * solib.c (update_solib_list): Make static.
4739 (_initialize_solib): Add declaration.
4740 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4741 (_initialize_avr_tdep): Add declaration.
4742 * remote-rdi.c (voiddummy): Make static.
4743 (_initialize_remote_rdi): Add declaration.
4744 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4745 * remote-rdp.c (send_rdp): Make static.
4746 (_initialize_remote_rdp): Add declaration.
4747 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4748
cbcdb1f5
CV
47492003-06-11 Corinna Vinschen <vinschen@redhat.com>
4750
4751 * remote-fileio.c: Make ari happy.
4752
a191ea8d
JB
47532003-06-10 J. Brobecker <brobecker@gnat.com>
4754
4755 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4756 fetching the trailing bytes of the buffer we are about to write.
4757
0ef75e11
AC
47582003-06-10 Andrew Cagney <cagney@redhat.com>
4759
4760 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4761 * Makefile.in (remote-fileio.o): Update dependencies.
4762 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4763 include <setjmp.h>, or <sys/types.h> conditional on USG.
4764 (remote_fio_jmp_buf): Delete global variable.
4765
449092f6 47662003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 4767 Martin M. Hunt <hunt@redhat.com>
449092f6 4768
559fa028
AC
4769 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4770 (SFILES): Add remote-fileio.c.
4771 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4772 dependencies for building remote.o.
449092f6
CV
4773 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4774 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 4775 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
4776 static storage class.
4777 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4778 'F' packet.
4779 (_initialize_remote): Call initialize_remote_fileio().
4780 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
4781 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4782 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4783 (captured_main): Initialize new ui_files.
4784 * ui-file.c: Add read and fgets input functions.
4785 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4786 (null_file_read): New function.
4787 (ui_file_read): New function.
4788 (set_ui_file_read): New function.
4789 (stdio_file_read): New function.
4790 * ui-file.h: New type ui_file_read_ftype.
4791 (set_ui_file_read): Declare.
4792 (ui_file_read): Declare.
4793
248de703
AC
47942003-06-09 Andrew Cagney <cagney@redhat.com>
4795
4796 * frame.h (deprecated_unwind_get_saved_register): Rename
4797 generic_unwind_get_saved_register, update comments.
4798 * mips-tdep.c (mips_get_saved_register): Update.
4799 * frame.c (deprecated_unwind_get_saved_register): Update.
4800
0ed8aa57
AC
48012003-06-09 Andrew Cagney <cagney@redhat.com>
4802
4803 * vax-tdep.c (vax_frame_locals_address): Delete function.
4804 (vax_gdbarch_init): Do not set frame_locals_address.
4805 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4806 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4807 * s390-tdep.c (s390_frame_args_address): Delete function.
4808 (s390_gdbarch_init): Do not set frame_args_address or
4809 frame_locals_address.
4810 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4811 (ns32k_gdbarch_init): Do not set frame_locals_address.
4812 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4813 (hppa_frame_locals_address): Delete function.
4814 (hppa_gdbarch_init): Do not set frame_args_address, or
4815 frame_locals_address.
4816 * arm-tdep.c (arm_frame_args_address): Delete.
4817 (arm_frame_locals_address): Delete.
4818 (arm_gdbarch_init): Do not set frame_args_address, or
4819 frame_locals_address.
4820
983a287a
AC
48212003-06-09 Andrew Cagney <cagney@redhat.com>
4822
4823 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4824 * gdbarch.h, gdbarch.c: Re-generate.
4825 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4826 * arch-utils.c (frame_num_args_unknown): Delete function.
4827 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4828 (frame_info): Use FRAME_NUM_ARGS_P.
4829 * arm-tdep.c (arm_frame_num_args): Delete function.
4830 (arm_gdbarch_init): Do not set frame_num_args.
4831 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4832 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4833 (hppa_gdbarch_init): Do not set frame_num_args.
4834 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4835 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4836 frame_num_args to default frame_num_args_unknown.
4837 * v850-tdep.c (v850_gdbarch_init): Ditto.
4838 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4839 * sh-tdep.c (sh_gdbarch_init): Ditto.
4840 * s390-tdep.c (s390_gdbarch_init): Ditto.
4841 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4842 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4843 * mips-tdep.c (mips_gdbarch_init): Ditto.
4844 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4845 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4846 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4847 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4848 * i386-tdep.c (i386_gdbarch_init): Ditto.
4849 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4850 * frv-tdep.c (frv_gdbarch_init): Ditto.
4851 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4852 * cris-tdep.c (cris_gdbarch_init): Ditto.
4853 * avr-tdep.c (avr_gdbarch_init): Ditto.
4854 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4855
8d3b0994
AC
48562003-06-09 Andrew Cagney <cagney@redhat.com>
4857
4858 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4859 (print_frame_args): Moved to "stack.c".
4860 * stack.c: Include "gdb_assert.h".
4861 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4862 (print_frame_args): Moved from "printcmd.c".
4863 * frame.h (print_frame_args): Delete declaration.
4864 * Makefile.in (stack.o): Update dependencies.
4865
25e3a86b
AC
48662003-06-08 Andrew Cagney <cagney@redhat.com>
4867
4868 * frame.c (get_prev_frame): Remove reference to
4869 frame_args_address_correct in comments.
4870 * frame-base.c (default_frame_args_address): Delete code
4871 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4872 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4873 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4874 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4875 (vax_frame_args_address_correct): Delete declaration.
4876
a9e5fdc2
AC
48772003-06-08 Andrew Cagney <cagney@redhat.com>
4878
4879 * gdbarch.sh (UNWIND_SP): Add.
4880 * gdbarch.h, gdbarch.c: Re-generate.
4881 * frame.c (frame_sp_unwind): New function.
4882 (get_frame_sp): New function.
4883 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4884 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4885 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4886 value.
4887 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4888 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4889
8983bd83
AC
48902003-06-08 Andrew Cagney <cagney@redhat.com>
4891
7fec2c59
AC
4892 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4893 REMOTE_BREAKPOINT.
4894 * remote.c: Update.
4895 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4896 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4897 * config/m68k/tm-sun3.h: Update.
4898 * config/m68k/tm-m68klynx.h: Update.
4899 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4900
8983bd83
AC
4901 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4902 trad_frame". Update comments.
4903 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4904 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4905 (trad_frame_register_value, trad_frame_prev_register): Update.
4906
b9362cc7
AC
49072003-06-08 Andrew Cagney <cagney@redhat.com>
4908
4909 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4910 from GCC's acinclude.m4.
4911 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4912 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4913 * main.c (error_init): Delete declaration.
4914 * defs.h (error_init): Declare.
4915 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4916 (rs6000_convert_from_func_ptr_addr): Make static.
4917 (_initialize_rs6000_tdep): Add declaration.
4918 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4919 (show_commands, set_verbose, show_history): Delete declaration.
4920 * top.h (set_verbose): Add declaration.
4921 (show_history, set_history, show_commands): Add declaration.
4922 (do_restore_instream_cleanup): Add declaration.
4923 * objc-lang.c (specialcmp): Make static.
4924 (print_object_command): Make static.
4925 (find_objc_msgsend): Make static.
4926 (find_objc_msgcall_submethod_helper): Make static.
4927 (find_objc_msgcall_submethod): Make static.
4928 (_initialize_objc_language): Add declaration.
4929 (find_implementation_from_class): Make static.
4930 (find_implementation): Make static.
4931 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4932 * objc-lang.h (lookup_struct_typedef): Add declaration.
4933 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4934 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4935 (do_restore_user_call_depth): Make static.
4936 (do_restore_instream_cleanup): Delete declaration.
4937 (dont_repeat): Delete declaration.
4938 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4939 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4940 * reggroups.c (_initialize_reggroup): Add declaration.
4941 * cp-support.c (_initialize_cp_support): Add declaration.
4942 * cp-abi.c (_initialize_cp_abi): Add declaration.
4943 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4944 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4945 (_initialize_gnu_v3_abi): Add declaration.
4946 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4947 (_initialize_gnu_v2_abi): Add declaration.
4948 * frame-base.c (_initialize_frame_base): Add declaration.
4949 * doublest.c (floatformat_from_length): Make static.
4950 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4951 * frame.c (create_sentinel_frame): Make static.
4952 (_initialize_frame): Add declaration.
4953 * top.c (do_catch_errors): Make static.
4954 (gdb_rl_operate_and_get_next_completion): Make static.
4955 * typeprint.c: Include "typeprint.h".
4956 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4957 (sentinel_frame_this_id): Make static.
4958 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4959 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4960 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4961 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4962 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4963 * maint.c (maintenance_print_architecture): Make static.
4964 * signals/signals.c (_initialize_signals): Add declaration.
4965 * std-regs.c (_initialize_frame_reg): Add declaration.
4966 * jv-exp.y (push_variable): ISO C definition.
4967 (push_qualified_expression_name): Ditto.
4968 * memattr.c (_initialize_mem): Add declaration.
4969 * remote.c (remote_check_watch_resources): Make static.
4970 (remote_stopped_by_watchpoint): Make static.
4971 (remote_stopped_data_address): Make static.
4972 * d10v-tdep.c (nr_dmap_regs): Make static.
4973 (a0_regnum): Make static.
4974 (d10v_frame_unwind_cache): Make static.
4975 (d10v_frame_p): Make static.
4976 * osabi.c (show_osabi): Make static.
4977 (_initialize_gdb_osabi): Add extern declaration.
4978 * gdbtypes.c (make_qualified_type): Make static.
4979 (safe_parse_type): Make static.
4980 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4981 * macrotab.c (macro_bcache_free): Make static.
4982 * interps.c (interp_set_quiet): Make static.
4983 (interpreter_exec_cmd): Make static.
4984 * stack.h (select_frame_command): New file.
4985 * stack.c: Include "stack.h".
4986 (select_frame_command_wrapper): Delete function.
4987 (select_frame_command): Make global.
4988 * infcall.c: Include "infcall.h".
4989 * linespec.c: Include "linespec.h".
4990 * symfile.c (sections_overlap): Make static.
4991 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4992 * charset.c (_initialize_charset): Add missing prototype.
4993 * regcache.c (init_legacy_regcache_descr): Make static.
4994 (do_regcache_xfree): Make static.
4995 (regcache_xfer_part): Make static.
4996 (_initialize_regcache): Add missing prototype.
4997 * breakpoint.c (parse_breakpoint_sals): Make static.
4998 (breakpoint_sals_to_pc): Make static.
4999 * interps.h (clear_interpreter_hooks): ISO C declaration.
5000 * Makefile.in (stack_h): Define.
5001 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5002 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5003
a0f267c7
AC
50042003-06-08 Andrew Cagney <cagney@redhat.com>
5005
5006 * Makefile.in (d10v-tdep.o): Update dependencies.
5007 (SFILES): Add trad-frame.c.
5008 (trad_frame_h): Define.
5009 (COMMON_OBS): Add trad-frame.o.
5010 (trad-frame.o): Specify dependencies.
5011 * d10v-tdep.c: Include "trad-frame.h".
5012 (saved_regs_unwinder): Delete function.
5013 (d10v_frame_prev_register): Use trad_frame_prev_register.
5014 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5015 trad_frame", delete "regs" and "prev_sp".
5016 (prologue_find_regs): Use trad-frame.
5017 * trad-frame.h, trad-frame.c: New files.
5018
4538b4f4
MK
50192003-06-08 Mark Kettenis <kettenis@gnu.org>
5020
5021 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5022
a0273b2f
AF
50232003-06-07 Adam Fedor <fedor@gnu.org>
5024
5025 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5026 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5027 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5028 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5029 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5030 Use it.
5031
3a6c3343
AC
50322003-06-07 Andrew Cagney <cagney@redhat.com>
5033
5034 * symfile.h: Re-indent, clean up comments.
5035
b46e02f6
AC
50362003-06-07 Andrew Cagney <cagney@redhat.com>
5037
5038 * inferior.h (deprecated_write_sp): Replace
5039 generic_target_write_sp.
5040 * regcache.c (deprecated_write_sp): Replace
5041 generic_target_write_sp.
5042 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5043 * vax-tdep.c (vax_gdbarch_init): Update.
5044 * v850-tdep.c (v850_gdbarch_init): Update.
5045 * sparc-tdep.c (sparc_gdbarch_init): Update.
5046 * sh-tdep.c (sh_gdbarch_init): Update.
5047 * s390-tdep.c (s390_gdbarch_init): Update.
5048 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5049 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5050 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5051 * mcore-tdep.c (mcore_gdbarch_init): Update.
5052 * m68k-tdep.c (m68k_gdbarch_init): Update.
5053 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5054 * ia64-tdep.c (ia64_gdbarch_init): Update.
5055 * h8300-tdep.c (h8300_gdbarch_init): Update.
5056 * frv-tdep.c (frv_gdbarch_init): Update.
5057 * cris-tdep.c (cris_gdbarch_init): Update.
5058 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5059
a42e117c
AC
50602003-06-07 Andrew Cagney <cagney@redhat.com>
5061
5062 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5063 Assert that PC_REGNUM is valid.
5064 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5065
bd1ce8ba
AC
50662003-06-07 Andrew Cagney <cagney@redhat.com>
5067
5068 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5069 * gdbarch.h, gdbarch.c: Regenerate.
5070 * mn10300-tdep.c: Include "gdb_assert.h".
5071 (mn10300_read_fp): New function.
5072 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5073 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5074 * ia64-tdep.c: Include "gdb_assert.h".
5075 (ia64_read_fp): New function.
5076 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5077 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5078 * regcache.c (generic_target_read_sp): Delete function.
5079 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5080 * inferior.h (generic_target_read_sp): Delete declaration.
5081 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5082 generic_target_read_sp.
5083 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5084 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5085 * sh-tdep.c (sh_gdbarch_init): Ditto.
5086 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5087 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5088
ec5cbaec
AC
50892003-06-07 Andrew Cagney <cagney@redhat.com>
5090
5091 * gdbarch.sh: Comment each field of startup_gdbarch.
5092 * gdbarch.h, gdbarch.c: Re-generate.
5093
cde9ea48
AC
50942003-06-07 Andrew Cagney <cagney@redhat.com>
5095
5096 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5097 * gdbarch.h, gdbarch.c: Re-generate.
5098 * regcache.c: Update comments on read_pc et.al.
5099 (generic_target_read_pc): Delete function.
5100 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5101 * inferior.h (generic_target_read_pc): Delete declaration.
5102 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5103 generic_target_read_pc.
5104 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5105 * sh-tdep.c (sh_gdbarch_init): Ditto.
5106 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5107 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5108
9a90a780
AC
51092003-06-07 Andrew Cagney <cagney@redhat.com>
5110
5111 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5112 "index" with "special_local_sect". Use strcmp instead of STREQ.
5113 Append period to coments.
5114
a39a16c4
MM
51152003-06-06 Mark Mitchell <mark@codesourcery.com>
5116
5117 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5118 (elfstab_offset_sections): Likewise.
5119 * gdb-stabs.h (stab_section_info): Likewise.
5120 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5121 * objfiles.c (objfile_relocate): Likewise.
5122 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5123 * remote.c (get_offsets): Likewise.
5124 (remote_cisco_objfile_relocate): Likewise.
5125 * somread.c (som_symfile_offsets): Likewise.
5126 * symfile.c (alloc_section_addr_info): New function.
5127 (build_section_addr_info_from_section_tab): Use it.
5128 (free_section_addr_info): Adjust.
5129 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5130 (syms_from_objfile): Allocate local_addr dynamically.
5131 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5132 dynamically.
5133 (add_symbol_file_command): Allocate sect_opts dynamically.
5134 (reread_symbols): Avoid use of SECT_OFF_MAX.
5135 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5136 (alloc_section_addr_info): Declare it.
5137 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5138 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5139 dynamically.
5140 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5141
20c6c2f8
AC
51422003-06-06 Andrew Cagney <cagney@redhat.com>
5143
5144 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5145 (d10v_frame_unwind_cache): Do not set "return_pc".
5146
884a26c8
MS
51472003-06-06 Michael Snyder <msnyder@redhat.com>
5148
5149 * h8300-tdep.c: Make tidy (long lines).
5150
088ce440
ML
51512003-06-06 Michal Ludvig <mludvig@suse.cz>
5152
8ffd9b1b 5153 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5154 to regcache_collect().
5155
7d773d96
JB
51562003-06-05 J. Brobecker <brobecker@gnat.com>
5157
5158 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5159 pc_in_sigtramp multiarch method.
5160 (hppa_hpux_som_init_abi): Use it.
5161 (hppa_hpux_elf_init_abi): Likewise.
5162 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5163 macro has been multiarched.
5164 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5165 macro here, as hppa64 isn't multiarched yet.
5166
1df6926e
AC
51672003-06-05 Andrew Cagney <cagney@redhat.com>
5168
5169 * Makefile.in (value_h): Add $(frame_h).
5170 * value.h: Include "frame.h".
5171 (struct value): Replace "frame_addr" with "frame_id".
5172 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5173 * values.c (allocate_value): Use VALUE_FRAME_ID.
5174 (value_copy): Use VALUE_FRAME_ID.
5175 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5176 * valops.c (value_assign): Update. Use frame_find_by_id.
5177
6b53acc6
ML
51782003-06-05 Michal Ludvig <mludvig@suse.cz>
5179
5180 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5181 in each pass.
5182
4d9850d3
JJ
51832003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5184
5185 * thread-db.c (check_event): For create/death event breakpoints,
5186 loop through all messages to ensure that we read the message
5187 corresponding to the breakpoint we are at.
5188
8efca6ba
MS
51892003-06-04 Michael Snyder <msnyder@redhat.com>
5190
5191 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5192
0912c7f2
MK
51932003-06-04 Mark Kettenis <kettenis@gnu.org>
5194
5195 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5196 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5197 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5198 when handling .eh_frame sections.
5199
4e370325
JB
52002003-06-04 J. Brobecker <brobecker@gnat.com>
5201
5202 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5203 prepare_to_proceed procedure instead of the hppa-specific one.
5204 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5205
b757528f 52062003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5207
b757528f
JJ
5208 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5209 * config.in: Regenerated.
5210 * configure.in: Add test for syscall function and check for
5211 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5212 * configure: Regenerated.
5213 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5214 <sys/syscall.h>.
5215 (kill_lwp): New function that uses tkill syscall or
5216 uses kill, depending on whether threading model is nptl or not.
5217 All callers of kill() changed to use kill_lwp().
5218 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5219 see if all threads have already exited in the nptl model.
5220 (stop_and_resume_callback): New callback function used by the
5221 lin_lwp_wait thread exit handling code.
5222 (stop_wait_callback): Check for threads already having exited and
5223 delete such threads fromt the lwp list when discovered.
5224 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5225
b757528f
JJ
5226 Roland McGrath <roland@redhat.com>
5227 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5228 nptl libthread_db.
5229
087779b1
RH
52302003-06-03 Richard Henderson <rth@redhat.com>
5231
b21fd293
RH
5232 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5233 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5234 (alpha_sigtramp_frame_prev_register): Likewise.
5235 (alpha_heuristic_frame_prev_register): Likewise.
5236 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5237
8ffd9b1b 5238 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5239 alpha-specific register id names.
5240 (alpha_mdebug_frame_unwind_cache): Likewise.
5241 (alpha_mdebug_frame_prev_register): Likewise.
5242
baa490c4
RH
52432003-06-03 Richard Henderson <rth@redhat.com>
5244
5245 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5246 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5247 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5248 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5249 unwind routines.
5250 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5251 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5252 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5253
5254 * alpha-linux-tdep.c: Remove unnecessary includes.
5255 * Makefile.in (alpha-linux-tdep.o): Update.
5256
52572003-06-03 Richard Henderson <rth@redhat.com>
5258
5259 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5260 (alphabsd_fill_fpreg): Likewise.
5261
f534e522
JB
52622003-06-03 J. Brobecker <brobecker@gnat.com>
5263
5264 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5265 references to struct frame_info fields by calls to the equivalent
5266 accessors. Necessary now that frame_info is opaque.
5267
4035536b
JB
52682003-06-03 J. Brobecker <brobecker@gnat.com>
5269
5270 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5271 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5272 structure, field no longer exists.
5273
0bd79c5c
JB
52742003-06-03 J. Brobecker <brobecker@gnat.com>
5275
5276 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5277 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5278
37bb6d9f
JB
52792003-06-03 J. Brobecker <brobecker@gnat.com>
5280
5281 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5282 references to struct frame_info fields by calls to the equivalent
5283 accessors. Necessary now that frame_info is opaque.
5284
852ee05c
JB
52852003-06-03 J. Brobecker <brobecker@gnat.com>
5286
5287 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5288 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5289 structure, field no longer exists.
5290
7d58c67d
TR
52912003-06-03 Theodore A. Roth <troth@openavr.org>
5292
8ffd9b1b 5293 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5294 accumulation of the size of all registers instead of blindly using
5295 DEPRECATED_REGISTER_BYTES.
5296
0a48e7e8
MS
52972003-06-03 Michael Snyder <msnyder@redhat.com>
5298
5299 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5300 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5301 for h8300sx.
5302
9798ab0d
JB
53032003-06-03 J. Brobecker <brobecker@gnat.com>
5304
5305 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5306 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5307
00b037e2
AC
53082003-06-03 Andrew Cagney <cagney@redhat.com>
5309
5310 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5311 (sparc_convert_to_raw): Delete function.
5312 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5313 register_convert_to_virtual.
5314
043b2f77
JJ
53152003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5316
5317 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5318 layer if not dealing with a statically-linked threaded program.
5319
f43caff8
KW
53202003-06-03 Kris Warkentin <kewarken@qnx.com>
5321
5322 * solib.c (solib_open): Update comment to reflect actual search order.
5323
ae1e7417
AC
53242003-06-03 Andrew Cagney <cagney@redhat.com>
5325
5326 * frame.c (get_frame_memory_signed): New function.
5327 (get_frame_memory, get_frame_memory_unsigned): New function.
5328 (get_frame_arch): New function.
5329 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5330 (get_frame_memory, get_frame_unsigned_memory): Declare.
5331 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5332 get_frame_memory_unsigned and get_frame_arch.
5333 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5334
cb123844
RG
53352003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5336
5337 * MAINTAINERS (write after approval): Add myself.
5338
1bb792e9
JB
53392003-06-03 Jim Blandy <jimb@redhat.com>
5340
5341 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5342 elements of gregset_t are 64 bits each, but access registers
5343 are still 32 bits, so they're packed two per gregset_t
5344 element. Unpack/pack them properly.
5345
aee8d8ba
DC
53462003-06-02 David Carlton <carlton@bactrian.org>
5347
5348 * linespec.c (find_methods): Break out code into
5349 add_matching_methods and add_constructors.
5350 (add_matching_methods): New.
5351 (add_constructors): Ditto.
5352
bf7488d2
AC
53532003-06-02 Andrew Cagney <cagney@redhat.com>
5354
bf7488d2
AC
5355 * sparc-tdep.c (sparc_print_registers): Delete call to
5356 REGISTER_CONVERTIBLE.
5357 (sparc_gdbarch_init): Do not set register_convertible.
5358 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5359 * frv-tdep.c (frv_gdbarch_init): Ditto.
5360 * cris-tdep.c (cris_gdbarch_init): Ditto.
5361
adedef68
EZ
53622003-06-02 Elena Zannoni <ezannoni@redhat.com>
5363
8ffd9b1b 5364 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5365 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5366 (syms_from_objfile): Ditto.
5367
650fcc91
AS
53682003-06-03 Andreas Schwab <schwab@suse.de>
5369
5370 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5371 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5372
df4a182b
RH
53732003-06-02 Richard Henderson <rth@redhat.com>
5374
5375 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5376 a member of all_reggroup.
5377
c483c494
RH
53782003-06-02 Richard Henderson <rth@redhat.com>
5379
5380 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5381 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5382 (alpha_lds, alpha_sts): New.
5383 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5384 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5385 restructure and fail for type sizes other than 4 or 8.
5386 (alpha_value_to_register): Similarly.
5387 (alpha_extract_return_value): Use alpha_sts.
5388 (alpha_store_return_value): Use alpha_lds.
5389 (alpha_gdbarch_init): Update hooks.
5390
b38b6be2
RH
53912003-06-02 Richard Henderson <rth@redhat.com>
5392
5393 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5394 regnum identifiers.
5395 (alpha_sigtramp_register_address): Likewise.
5396
98a8e1e5
RH
53972003-06-02 Richard Henderson <rth@redhat.com>
5398
5399 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5400 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5401 * alpha-tdep.h: Declare them.
5402
5403 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5404 Remove zerobuf. Don't error on UNIQUE.
5405 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5406 (ALPHA_REGSET_UNIQUE): Provide default.
5407 (supply_gregset): Use alpha_supply_int_regs.
5408 (fill_gregset): Use alpha_fill_int_regs.
5409 (supply_fpregset): Use alpha_supply_fp_regs.
5410 (fill_fpregset): Use alpha_fill_fp_regs.
5411 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5412 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5413 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5414 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5415 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5416 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5417
67dfac52
RH
54182003-06-02 Richard Henderson <rth@redhat.com>
5419
f75d70cc
RH
5420 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5421
67dfac52
RH
5422 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5423 (alpha_store_return_value): Likewise.
5424
0cf566ec
DC
54252003-06-02 David Carlton <carlton@math.stanford.edu>
5426
5427 * block.c (contained_in): Add 'const' to arguments.
5428 (block_function): Ditto.
5429 * block.h: Update declarations for block_function and
5430 contained_in.
5431
cdef89d0
DC
54322003-06-02 David Carlton <carlton@math.stanford.edu>
5433
5434 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5435 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5436 * p-valprint.c (pascal_val_print): Ditto.
5437 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5438
72667056
RH
54392003-06-02 Richard Henderson <rth@redhat.com>
5440
98a8e1e5
RH
5441 * alpha-tdep.c (alpha_push_dummy_call): Use
5442 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5443
8ffd9b1b 5444 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5445 sign-extension of 32-bit values.
5446 (alpha_store_return_value): Similarly.
0ede8eca 5447
98a8e1e5
RH
5448 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5449 (alpha_extract_return_value): Likewise.
5450 (alpha_store_return_value): Likewise.
7b5e1cb3 5451
98a8e1e5
RH
5452 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5453 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5454
98a8e1e5
RH
5455 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5456 (alpha_extract_struct_value_address): Likewise.
5457 (alpha_store_return_value): Likewise.
5458 (alpha_store_struct_return): Remove.
5459 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5460
98a8e1e5
RH
5461 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5462 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5463 macros where appropriate.
5464 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5465 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5466
98a8e1e5
RH
5467 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5468 for SP, GP; void_func_ptr for PC; non-language-specific types
5469 for all others.
5470 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5471
6dd77b81
RH
54722003-06-02 Richard Henderson <rth@redhat.com>
5473
5474 * top.h (lim_at_start): Declare.
5475 * main.c (captured_main): Set it.
5476 * top.c (lim_at_start): Define.
5477 (command_loop): Use it instead of &environ.
5478 * event-top.c (command_handler): Likewise.
5479
f4dbdb54
JT
54802003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5481
5482 * mipsnbsd-tdep.c: Update copyright years.
5483 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5484
8f285956
RH
54852003-06-01 Richard Henderson <rth@redhat.com>
5486
98a8e1e5
RH
5487 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5488 (alpha-linux-tdep.o): Update dependencies.
5489 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5490 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5491
615967cb
RH
54922003-06-01 Richard Henderson <rth@redhat.com>
5493
98a8e1e5
RH
5494 * alpha-tdep.c (alpha_register_reggroup_p): New.
5495 (alpha_gdbarch_init): Register it.
615967cb 5496
b59661bd
AC
54972003-06-02 Andrew Cagney <cagney@redhat.com>
5498
5499 * dwarfread.c: Eliminate "register"
5500 (decode_die_type): Eliminate assignment within "if".
5501 (struct_type, decode_array_element_type): Ditto.
5502 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5503 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5504 (decode_modified_type, completedieinfo): Ditto.
5505 * block.c: Eliminate "register".
5506 (blockvector_for_pc_sect): Eliminate assignment within "if".
5507 * cp-support.h (struct symbol): Opaque declaration.
5508 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5509
5ef165c2
RH
55102003-06-01 Richard Henderson <rth@redhat.com>
5511
98a8e1e5
RH
5512 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5513 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5514
143985b7
AF
55152003-06-01 Adam Fedor <fedor@gnu.org>
5516
5517 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5518 * gdbarch.[ch]: Regenerate.
5519 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5520 (hppa_gdbarch_init): Set it in the gdbarch vector.
5521 * i386-tdep.c (i386_fetch_pointer_argument): New
5522 (i386_gdbarch_init): Set it into gdbarch.
5523 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5524 (rs6000_gdbarch_init): Set it in gdbarch.
5525 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5526 (sparc_gdbarch_init): Set it in gdbarch.
5527
ae0167b9
AC
55282003-06-01 Andrew Cagney <cagney@redhat.com>
5529
7c0b4a20
AC
5530 * defs.h (extract_address): Delete declaration.
5531 * findvar.c (extract_address): Delete function.
5532 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5533 extract_address with the inline equivalent,
5534 extract_unsigned_integer.
5535 (xstormy16_extract_struct_value_address): Ditto.
5536 (xstormy16_pointer_to_address): Ditto.
5537 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5538 * v850-tdep.c (v850_push_arguments): Ditto.
5539 (v850_extract_return_value): Ditto.
5540 (v850_extract_struct_value_address): Ditto.
5541 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5542 (sparcnbsd_get_longjmp_target_64): Ditto.
5543 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5544 (get_longjmp_target): Ditto.
5545 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5546 (sh64_extract_struct_value_address): Ditto.
5547 (sh_push_arguments): Ditto.
5548 (sh64_push_arguments): Ditto.
5549 * remote-vxsparc.c (vx_read_register): Ditto.
5550 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5551 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5552 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5553 * mipsv4-nat.c (get_longjmp_target): Ditto.
5554 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5555 * mips-nat.c (get_longjmp_target): Ditto.
5556 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5557 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5558 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5559 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5560 * irix5-nat.c (get_longjmp_target): Ditto.
5561 * irix4-nat.c (get_longjmp_target): Ditto.
5562 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5563 (ia64_push_arguments): Ditto.
5564 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5565 * h8300-tdep.c (h8300_push_arguments): Ditto.
5566 (h8300_store_return_value): Ditto.
5567 (h8300_extract_struct_value_address): Ditto.
5568 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5569 (frv_push_arguments): Ditto.
5570 * avr-tdep.c (avr_pointer_to_address): Ditto.
5571 (avr_push_arguments): Ditto.
5572 * arm-tdep.c (arm_push_dummy_call): Ditto.
5573 (arm_get_longjmp_target): Ditto.
5574 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5575 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5576 (alpha_get_longjmp_target): Ditto.
5577
ae0167b9
AC
5578 * solib-irix.c (extract_mips_address): Inline extract_address,
5579 replacing it with extract_signed_integer.
5580 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5581 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5582 (first_link_map_member, open_symbol_file_object): Ditto.
5583 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5584 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5585 (LM_NEXT, LM_NAME): Ditto.
5586
44d88583
RH
55872003-06-01 Richard Henderson <rth@redhat.com>
5588
98a8e1e5
RH
5589 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5590 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5591 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5592 (alpha_cannot_store_register): Likewise.
5593 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5594 * alpha-nat.c (supply_gregset): Likewise.
5595 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5596
310e9b6a
AC
55972003-06-01 Andrew Cagney <cagney@redhat.com>
5598
5599 * infcall.c (call_function_by_hand): Update comment on
5600 DEPRECATED_DUMMY_WRITE_SP.
5601
5602 * mips-tdep.c (mips_gdbarch_init): Do not set
5603 deprecated_dummy_write_sp.
5604 (mips_eabi_push_dummy_call): Set the SP register.
5605 (mips_o64_push_dummy_call): Set the SP register.
5606 (mips_o32_push_dummy_call): Set the SP register.
5607 (mips_n32n64_push_dummy_call): Set the SP register.
5608
5ab84872
RH
56092003-06-01 Richard Henderson <rth@redhat.com>
5610
98a8e1e5
RH
5611 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5612 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5613 (supply_gregset): Likewise.
5614 * alpha-tdep.c (alpha_store_return_value): Likewise.
5615 (alpha_get_longjmp_target): Likewise.
5616 (alpha_register_name): Constify array.
5617 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5618 deprecated_register_size, deprecated_register_bytes,
5619 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5620 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5621 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5622
09cc52fd
RH
56232003-06-01 Richard Henderson <rth@redhat.com>
5624
5625 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5626 from arg_reg_buffer to regcache to avoid double conversion.
5627
c7f16359
MK
56282003-06-01 Mark Kettenis <kettenis@gnu.org>
5629
5630 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5631 SP_REGNUM.
5632 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5633 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5634
7131cb6e
RH
56352003-06-01 Richard Henderson <rth@redhat.com>
5636
98a8e1e5
RH
5637 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5638 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5639
f3e0f90b
RH
56402003-06-01 Richard Henderson <rth@redhat.com>
5641
98a8e1e5
RH
5642 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5643 not overlapping PC_REGNUM.
f3e0f90b 5644
c88e30c0
RH
56452003-06-01 Richard Henderson <rth@redhat.com>
5646
98a8e1e5
RH
5647 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5648 alpha_push_arguments. Don't dump argument register data to
5649 the target stack. Fix float and 128-bit long double semantics.
5650 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5651 (alpha_fix_call_dummy): Remove.
5652 (alpha_call_dummy_words): Remove.
5653 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5654
f1a559ae
RH
56552003-06-01 Richard Henderson <rth@redhat.com>
5656
5657 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5658
5e045346
AC
56592003-06-01 Andrew Cagney <cagney@redhat.com>
5660
95404a3e
AC
5661 * mips-tdep.c (is_mips16_addr): New function.
5662 (make_mips16_addr, unmake_mips16_addr): New functions.
5663 (pc_is_mips16, mips_fetch_instruction): Use.
5664 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5665 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5666 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5667 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5668 TARGET_MIPS.
5669 * config/mips/tm-mips.h: Update copyright.
5670 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5671 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5672 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5673 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5674 (TM_PRINT_INSN_MACH): Delete.
5675 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5676
5e045346
AC
5677 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5678 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5679 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5680 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5681 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5682 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5683 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5684 mips*-*-riscos* and mips*-*-sysv* onto mips.
5685 * config/mips/mips64.mt: New file.
5686 * config/mips/mips.mt: New file.
5687 * config/mips/littlemips.mt: Delete file.
5688 * config/mips/decstation.mt: Delete file.
5689 * config/mips/vr4300el.mt: Delete file.
5690 * config/mips/vr5000el.mt: Delete file.
5691 * config/mips/vr5000.mt: Delete file.
5692 * config/mips/vr4100.mt: Delete file.
5693 * config/mips/vr4xxxel.mt: Delete file.
5694 * config/mips/vr4300.mt: Delete file.
5695 * config/mips/vr4xxx.mt: Delete file.
5696 * config/mips/bigmips.mt: Delete file.
5697 * config/mips/bigmips64.mt: Delete file.
5698 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5699 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5700 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5701 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5702 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5703 "tm-bigmips.h".
5704 * config/mips/tm-irix3.h: Ditto.
5705 * config/mips/tm-mipsv4.h: Ditto.
5706 * config/mips/tm-embed.h: Ditto.
5707 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5708 "tm-bigmips64.h".
5709 * config/mips/tm-vr5000el.h: Delete file.
5710 * config/mips/tm-tx39l.h: Delete file.
5711 * config/mips/tm-vr4300el.h: Delete file.
5712 * config/mips/tm-vr4xxxel.h: Delete file.
5713 * config/mips/tm-vr4300.h: Delete file.
5714 * config/mips/tm-vr4100.h: Delete file.
5715 * config/mips/tm-vr4xxx.h: Delete file.
5716 * config/mips/tm-vr5000.h: Delete file.
5717 * config/mips/tm-embedl64.h: Delete file.
5718 * config/mips/tm-embedl.h: Delete file.
5719 * config/mips/tm-embed64.h: Delete file.
5720 * config/mips/tm-bigmips64.h: Delete file.
5721 * config/mips/tm-bigmips.h: Delete file.
5722
2473a4a9
MK
57232003-06-01 Mark Kettenis <kettenis@gnu.org>
5724
97a5b208
MK
5725 Fix gdb/1216.
5726 * shnbsd-nat.c: Include "sh-tdep.h".
5727
2473a4a9
MK
5728 From Richard Henderson <rth@redhat.com>:
5729 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5730
e0f7ec59
AC
57312003-05-31 Andrew Cagney <cagney@redhat.com>
5732
5733 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5734 forward declaration.
5735 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5736 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5737 (mips_find_saved_regs): Use set_reg_offset.
5738 (mips_frame_init_saved_regs): Delete function.
5739 (mips_pop_frame): Call mips_find_saved_regs instead of
5740 DEPRECATED_FRAME_INIT_SAVED_REGS.
5741
68dcc709
AC
57422003-05-31 Andrew Cagney <cagney@redhat.com>
5743
5744 * mips-tdep.c (mips_gdbarch_init): Do not set
5745 deprecated_max_register_raw_size, register_virtual_size, and
5746 deprecated_max_register_virtual_size.
5747
cfc14b3a
MK
57482003-05-31 Mark Kettenis <kettenis@gnu.org>
5749
6405b0a6
MK
5750 * i386-tdep.c: Include "dwarf2-frame.h".
5751 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5752 * Makefile.in (i386-tdep.o): Update dependencies.
5753
cfc14b3a
MK
5754 * dwarf2-frame.c, dwarf2-frame.h: New files.
5755 * Makefile.in (SFILES): Add dwarf2-frame.c.
5756 (dwarf2_frame_h): Define.
5757 (COMMON_OBS): Add dwarf2-frame.o.
5758 (dwarf2-frame.o): Add dependencies.
5759
6a2751d2
AJ
57602003-05-31 Andreas Jaeger <aj@suse.de>
5761
5762 * x86-64-linux-nat.c: Fix comment.
5763
1c3545ae
MK
57642003-05-31 Mark Kettenis <kettenis@gnu.org>
5765
10f93086
MK
5766 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5767 function signature.
5768
1c3545ae
MK
5769 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5770 have a sigcontext_addr handler.
5771 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5772 sigcontext_addr handler.
5773
e11c53d2
AC
57742003-05-31 Andrew Cagney <cagney@redhat.com>
5775
5776 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5777 (print_fp_register_row): Replace do_fp_register_row.
5778 (mips_print_fp_register): Add "file" and "frame" parameters.
5779 (mips_print_register): Add "file" and "frame" parameters.
5780 (mips_print_registers_info): Replace mips_do_registers_info.
5781 (mips_gdbarch_init): Set print_registers_info instead of
5782 deprecated_do_registers_info.
5783 (mips_read_fp_register_single): Add "frame" parameter.
5784 (mips_read_fp_register_double): Add "frame" parameter.
5785
a3386186
MK
57862003-05-31 Mark Kettenis <kettenis@gnu.org>
5787
70913449
MK
5788 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5789 Fixes a bug where GDB would print the wrong register names for
5790 targets without SSE.
5791
2b5e0749
MK
5792 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5793 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5794 registers.
5795
5796 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5797 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5798 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5799 TDEP->sc_sp_offset.
5800
a3386186
MK
5801 From Michal Ludvig <mludvig@suse.cz>:
5802 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5803 and `sc_num_regs'.
5804 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5805 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5806 I386_ST0_REGNUM): Move here from...
5807 * i386-tdep.c: ... here.
5808 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5809 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5810 registers if possible.
5811 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5812 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5813 Remove variables.
5814 (i386bsd_sc_reg_offset): New variable.
5815 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5816 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5817 TDEP->sc_sp_offset.
5818 (i386fbsd_sc_reg_offset): New variable.
5819 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5820 TDEP->sc_num_regs.
5821 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5822 variables.
5823 (i386fbsd4_sc_reg_offset): New variable.
5824 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5825 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5826 TDEP->sc_sp_offset.
5827 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5828 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5829 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5830 Remove variables.
5831 (i386nbsd_sc_reg_offset): New variable.
5832 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5833 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5834 TDEP->sc_sp_offset.
5835 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5836 Remove variables.
5837 (i386obsd_sc_reg_offset): New variable.
5838 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5839 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5840 TDEP->sc_sp_offset.
5841 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5842 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5843 for frame pointer offset in `struct sigcontext'.
5844
25ab4790
AC
58452003-05-31 Andrew Cagney <cagney@redhat.com>
5846
5847 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5848 architecture methods call_dummy_words, sizeof_call_dummy_words,
5849 push_return_address, store_struct_return, and fix_call_dummy. Set
5850 push_dummy_call instead of deprecated_push_arguments.
5851 (mips_store_struct_return): Delete function.
5852 (mips_fix_call_dummy): Delete function.
5853 (mips_push_return_address): Delete function.
5854 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5855 RA_REGNUM and T9_REGNUM.
5856 (mips_n32n64_push_dummy_call): Ditto for
5857 mips_n32n64_push_arguments.
5858 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5859 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5860
6a65450a
AC
58612003-05-31 Andrew Cagney <cagney@redhat.com>
5862
5863 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5864 "dummy_addr" to "bp_addr".
5865 * infcall.c (call_function_by_hand): Pass "funaddr" to
5866 gdbarch_push_dummy_call.
5867 * gdbarch.h, gdbarch.c: Re-generate.
5868 * i386-tdep.c (i386_push_dummy_call): Update.
5869 * arm-tdep.c (arm_push_dummy_call): Update.
5870 * d10v-tdep.c (d10v_push_dummy_call): Update.
5871
c4f35dd8
MK
58722003-05-31 Mark Kettenis <kettenis@gnu.org>
5873
5874 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5875 variable declarations.
5876 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5877 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5878 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5879 x86_64_init_frame_pc, x86_64_init_frame_pc,
5880 x86_64_function_has_prologue): Remove prototypes.
5881 (X86_64_NUM_GREGS): New define.
5882 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5883 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5884 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5885 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5886 XMM1_REGNUM): Remove defines.
5887 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5888 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5889 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5890 X86_64_XMM1_REGNUM): New defines.
5891 (struct x86_64_register_info): Renamed from `struct
5892 register_info'. Remove `size' member.
5893 (x86_64_register_info_table): Remove variable.
5894 (x86_64_register_info): New variable.
5895 (X86_64_NUM_REGS): New define.
5896 (X86_64_NUM_GREGS): Remove define.
5897 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5898 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5899 Remove variables.
5900 (x86_54_dwarf2_reg_to_regnum): Remove function.
5901 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5902 (x86_64_dwarf_reg_to_regnum): New function.
5903 (x86_64_register_name): Rewrite.
5904 (x86_64_register_raw_size): Remove function.
5905 (x86_64_register_byte_table): Remove variable.
5906 (x86_64_register_byte): Remove function.
5907 (x86_64_register_virtual_type): Remove function.
5908 (x86_64_register_type): New function.
5909 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5910 x86_64_register_convert_to_raw): Remove functions.
5911 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5912 (x86_64_use_struct_convention): Make static. Adjust for renamed
5913 defines.
5914 (x86_64_frame_init_saved_regs): Remove function.
5915 (x86_64_push_arguments): Make static. Change to accept a regcache
5916 as argument.
5917 (x86_64_store_return_value, x86_64_extract_return_value): Make
5918 static. Rewrite based on i386 counterparts.
5919 (x86_64_push_dummy_call): New function.
5920 (X86_64_NUM_SAVED_REGS): New define.
5921 (x86_64_register_number): Remove function.
5922 (x86_64_store_struct_return): Remove function.
5923 (x86_64_frameless_function_invocation,
5924 x86_64_function_has_prologue): Remove functions.
5925 (PROLOG_BUFSIZE): Remove define.
5926 (struct x86_64_frame_cache): New structure.
5927 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5928 x86_64_frame_cache, x86_64_frame_this_id,
5929 x86_64_frame_prev_register, x86_64_frame_p,
5930 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5931 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5932 functions.
5933 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5934 variables.
5935 (x86_64_skip_prologue): Rewrite in terms of
5936 x86_64_analyze_prologue.
5937 (x86_64_frame_base_address): New function.
5938 (x86_64_frame_base): New variable.
5939 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5940 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5941 set deprecated_fp_regnum, deprecated_register_size,
5942 deprecated_register_bytes, register_raw_size, register_byte,
5943 register_virtual_type, register_convertiable,
5944 register_convert_to_virtual, convert_to_raw,
5945 deprecated_get_saved_register, deprecated_target_read_fp,
5946 deprecated_push_arguments, deprecated_push_return_address,
5947 deprecated_pop_frame, deprecated_store_struct_return,
5948 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5949 frameless_function_invocation, deprecated_frame_saved_pc,
5950 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5951 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5952 deprecated_init_frame_pc and virtual_frame_pointer. Call
5953 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5954 and x86_64_frame_p. Call frame_base_set_default to register
5955 x86_64_frame_base.
5956 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5957 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5958 (_initialize_x86_64_tdep): Remove function.
5959 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5960 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5961 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5962 define.
5963 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5964 (x86_64_linux_sigcontext_addr): Rewrite.
5965 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5966 x86_64_linux_frame_saved_pc): Remove functions.
5967 (x86_64_linux_pc_in_sigtramp): Renamed from
5968 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5969 trampoline.
5970 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5971 Remove_functions.
5972 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5973 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5974 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5975 (x86_64_regmap): Rename to regmap.
5976 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5977 x86_64_num_gregs.
5978 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5979 x86_64_regmap.
5980 (x86_64_fxsave_offset): Remove function.
5981 (supply_fpregset): Simply call x86_64_supply_fxsave.
5982 (fill_fpregset): Simply call x86_64_fill_fxsave.
5983 (fetch_inferior_registers, store_inferior_registers): Avoid
5984 asignment in if-statement.
5985 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5986 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5987 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5988 (fetch_core_registers): Remove function.
5989 (linux_elf_core_fns): Remove.
5990 (offsetoff): Don't define.
5991 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5992 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5993 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5994 add core-regset.o.
5995 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5996 protection against multiple includes instead of NM_X86_64_h. Add
5997 various comments. Include "config/nm-linux.h". Don't include
5998 <signal.h>.
5999 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6000 GET_THREAD_SIGNALS): Remove defines.
6001 (x86_64_register_u_addr, kernel_u_size,
6002 lin_thread_get_thread_signals): Remove prototypes.
6003 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6004 [HAVE_LINK_H]: Don't include "solib.h".
6005 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6006 * config/i386/tm-x86-64linux.h: Fix comments.
6007 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6008 x86-64-tdep.o): Update dependencies.
6009
c25083af
AC
60102003-05-30 Andrew Cagney <cagney@redhat.com>
6011
c8f55a7b
AC
6012 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6013 Change parameter type to a "struct regcache *".
6014
c25083af
AC
6015 * gdbarch.sh: Regardless of the multi-arch level, always define
6016 the macro when not already defined.
6017 * gdbarch.h, gdbarch.c: Re-generate.
6018
fbe586ae
RH
60192003-05-30 Richard Henderson <rth@redhat.com>
6020
6021 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6022 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6023 (alpha_mdebug_frame_this_id): Likewise.
6024 (alpha_mdebug_frame_prev_register): Likewise.
6025 (alpha_mdebug_frame_base_address): Likewise.
6026 (alpha_mdebug_frame_locals_address): Likewise.
6027 (alpha_mdebug_frame_args_address): Likewise.
6028 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6029 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6030 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6031 loop increment.
6032 (alpha_heuristic_frame_this_id): Make static.
6033 (alpha_heuristic_frame_prev_register): Likewise.
6034 (alpha_heuristic_frame_base_address): Likewise.
6035 * alpha-tdep.h: Update.
6036
acd5c798
MK
60372003-05-30 Mark Kettenis <kettenis@gnu.org>
6038
6039 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6040 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6041 defenitions.
6042 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6043 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6044 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6045 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6046 I386_ST0_REGNUM): New defines.
6047 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6048 codestream_get): Remove define.
6049 (codestream_next_addr, condestream_addr, condestream_buf,
6050 codestream_off, codestream_cnt): Remove variables.
6051 (codestream_fill, codestream_seek, codestream_read): Remove
6052 functions.
6053 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6054 functionality.
6055 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6056 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6057 i386_frame_saved_pc, i386_saved_pc_after_call,
6058 i386_frame_num_args, i386_frame_init_saved_regs,
6059 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6060 i386_push_arguments): Remove functions.
6061 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6062 functionality. Use i386_analyze_prologue instead of
6063 i386_get_frame_setup.
6064 (I386_NUM_SAVED_REGS): New define.
6065 (struct i386_frame_cache): New structure.
6066 (i386_alloc_frame_cache, i386_analyze_struct_return,
6067 i386_skip_probe, i386_analyze_frame_setup,
6068 i386_analyze_register_saves, i386_analyze_prologue,
6069 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6070 i386_frame_prev_register, i386_sigtramp_frame_cache,
6071 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6072 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6073 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6074 New functions.
6075 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6076 New variables.
6077 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6078 I386_EAX_REGNUM and I386_EDX_REGNUM.
6079 (i386_extract_return_value, i386_store_return_value): Use
6080 I386_ST0_REGNUM where appropriate.
6081 (i386_extract_struct_value_address): Rewrite to use extract_address.
6082 (i386_svr4_pc_in_sigtramp): Add comment.
6083 (i386_svr4_sigcontext_addr): Rewrite.
6084 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6085 TDEP->sc_sp_offset.
6086 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6087 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6088 of new defines. Set push_dummy_call, don't set
6089 deprecated_push_arguments, deprecated_push_return_address,
6090 deprecated_pop_frame. Don't set parm_boundary. Don't set
6091 deprecated_frame_chain, deprecated_frame_saved_pc,
6092 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6093 save_dummy_frame_tos, unwind_pc. Call
6094 frame_unwind_append_predicate and frame_base_set_default. Don't
6095 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6096 Don't set frameless_function_invocation. Don't set
6097 deprecated_register_bytes, deprecated_register_size,
6098 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6099 * i386-linux-tdep.c: Fix formatting in some comments.
6100 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6101 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6102 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6103 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6104 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6105 redundant parentheses.
6106 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6107 (i386_linux_sigcontext_addr): Use it. Rewrite.
6108 (find_minsym_and_objfile): Change name of second argument.
6109 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6110 changed. Use frame_pc_unwind instead of
6111 DEPRECATED_SAVED_PC_AFTER_CALL.
6112 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6113 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6114 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6115 unwinder.
6116 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6117 "dummy-frame.h".
6118 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6119 (_initialize_i386_cygwin_tdep): New prototype.
6120 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6121 deprecated_frame_chain_valid.
6122 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6123 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6124 Rely on the SVR4 defaults.
6125 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6126 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6127
c89b70f1
AC
61282003-05-30 Andrew Cagney <cagney@redhat.com>
6129
6130 * infcall.c (call_function_by_hand): Always call
6131 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6132
85b32d22
RH
61332003-05-30 Richard Henderson <rth@redhat.com>
6134
c89b70f1
AC
6135 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6136 increment.
85b32d22 6137
bfe51b1e
JB
61382003-05-29 Jim Blandy <jimb@redhat.com>
6139
6140 Use gdbarch methods for solib stuff on PowerPC Linux.
6141 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6142 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6143 show through.
6144 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6145 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6146 giving the same effect as the #definitions above.
6147
1abf022c
AF
61482003-05-29 Adam Fedor <fedor@gnu.org>
6149
6150 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6151 (find_implementation_from_class): Replace it with the standard
6152 case i.e. do nothing.
6153
d2427a71
RH
61542003-05-29 Richard Henderson <rth@redhat.com>
6155
6156 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6157 (alpha_linux_sigtramp_offset): Use it. Make static.
6158 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6159 update for new frame model.
6160 * alpha-mdebug-tdep.c: New file.
6161 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6162 (alpha_osf1_init_abi): Install it.
6163 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6164 (linked_proc_desc_table): Remove.
6165 (alpha_frame_past_sigtramp_frame): Remove.
6166 (alpha_dynamic_sigtramp_offset): Remove.
6167 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6168 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6169 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6170 (push_sigtramp_desc): Remove.
6171 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6172 (alpha_cannot_store_register): Likewise.
6173 (alpha_sigcontext_addr): Remove.
6174 (alpha_find_saved_regs): Remove.
6175 (alpha_frame_init_saved_regs): Remove.
6176 (alpha_init_frame_pc_first): Remove.
6177 (read_next_frame_reg): Remove.
6178 (alpha_frame_saved_pc): Remove.
6179 (alpha_saved_pc_after_call): Remove.
6180 (temp_proc_desc, temp_saved_regs): Remove.
6181 (alpha_about_to_return): Remove.
6182 (cached_proc_desc): Remove.
6183 (alpha_frame_chain): Remove.
6184 (alpha_print_extra_frame_info): Remove.
6185 (alpha_init_extra_frame_info): Remove.
6186 (alpha_frame_locals_address): Remove.
6187 (alpha_frame_args_address): Remove.
6188 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6189 (alpha_push_dummy_frame): Remove.
6190 (alpha_pop_frame): Remove.
6191 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6192 (alpha_read_insn): New.
6193 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6194 for different insn encodings.
6195 (alpha_in_lenient_prologue): Remove.
6196 (struct alpha_sigtramp_unwind_cache): New.
6197 (alpha_sigtramp_frame_unwind_cache): New.
6198 (alpha_sigtramp_register_address): New.
6199 (alpha_sigtramp_frame_this_id): New.
6200 (alpha_sigtramp_frame_prev_register): New.
6201 (alpha_sigtramp_frame_unwind): New.
6202 (alpha_sigtramp_frame_p): New.
6203 (struct alpha_heuristic_unwind_cache): New.
6204 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6205 don't count nop insns that occur between functions.
6206 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6207 heuristic_proc_desc, but without the mdebug wrapping.
6208 (alpha_heuristic_frame_this_id): New.
6209 (alpha_heuristic_frame_prev_register): New.
6210 (alpha_heuristic_frame_unwind): New.
6211 (alpha_heuristic_frame_p): New.
6212 (alpha_heuristic_frame_base_address): New.
6213 (alpha_heuristic_frame_base): New.
6214 (alpha_unwind_dummy_id): New.
6215 (alpha_unwind_pc): New.
6216 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6217 frame related deprecated initializations; install replacements.
6218 (alpha_dump_tdep): Remove.
6219 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6220 (alpha_read_insn, alpha_after_prologue,
6221 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6222 alpha_heuristic_frame_prev_register,
6223 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6224 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6225 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6226 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6227
93ec1121
AC
62282003-05-29 Andrew Cagney <cagney@redhat.com>
6229
6230 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6231 dependant on the availability of ASSERT_FUNCTION.
6232 (ASSERT_FUNCTION): Do not define when there is no function name.
6233
98f08d3d
KB
62342003-05-29 Kevin Buettner <kevinb@redhat.com>
6235
6236 From Jimi X <jimix@watson.ibm.com>:
6237 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6238
0897f59b
JB
62392003-05-28 Jim Blandy <jimb@redhat.com>
6240
6241 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6242 argument to ptrace to int; the system headers should give it the
6243 right type, and pointers don't fit in ints on powerpc64-*-*.
6244
14898363
L
62452003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6246
6247 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6248 DW_TAG_catch_block.
6249
a7a48797
EZ
62502003-05-26 Elena Zannoni <ezannoni@redhat.com>
6251
6252 * stabsread.c (dbx_lookup_type): Make static.
6253 (read_type): Ditto.
6254 (add_undefined_type): Ditto.
6255 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6256 not export.
6257
f5479e9c
EZ
62582003-05-26 Elena Zannoni <ezannoni@redhat.com>
6259
6260 * hpread.c (hpread_has_name): Make static.
6261 (hpread_psymtab_to_symtab): Ditto.
6262 (file_exists): Ditto.
6263 (hpread_call_pxdb): Ditto.
6264 (hpread_pxdb_needed): Ditto.
6265 (hpread_quick_traverse): Ditto.
6266 (hpread_get_header): Ditto.
6267 (hpread_get_lntt): Ditto.
6268 (hpread_get_slt): Ditto.
6269 (class_of): Ditto.
6270
eb2e12d7
AS
62712003-05-25 Andreas Schwab <schwab@suse.de>
6272
78bf922a
AS
6273 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6274 stack_align and deprecated_extra_stack_alignment_needed.
6275 (m68k_stack_align): Delete.
6276
eb2e12d7
AS
6277 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6278 (m68k_register_virtual_size): Likewise.
6279 (altos_skip_prologue): Remove obsolete function.
6280 (isi_frame_num_args): Likewise.
6281 (news_frame_num_args): Likewise.
6282 (m68k_fix_call_dummy): Make static.
6283 (m68k_push_dummy_frame): Likewise.
6284 (m68k_pop_frame): Likewise.
6285 (m68k_skip_prologue): Likewise.
6286 (m68k_frame_init_saved_regs): Likewise.
6287 (m68k_saved_pc_after_call): Likewise.
6288 (m68k_get_longjmp_target): Make multi-arch.
6289 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6290 structure. Register m68k_get_longjmp_target if enabled.
6291 * m68k-tdep.h (struct gdbarch_tdep): Define.
6292 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6293
6294 * Makefile.in (config.status): Also depend on configure.tgt
6295 and configure.host.
6296 (m68klinux-tdep.o): Update dependencies.
6297 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6298 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6299 (M68K_LINUX_JB_PC): Define.
6300 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6301 and take additional parameter.
6302 (m68k_linux_sigtramp_saved_pc): Update.
6303 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6304 m68k_linux_pc_in_sigtramp, in_plt_section,
6305 find_solib_trampoline_target.
6306 * config/m68k/tm-linux.h: Don't include any tm headers.
6307 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6308 (JB_ELEMENT_SIZE): Likewise.
6309 (JB_PC): Likewise.
6310 (GET_LONGJMP_TARGET): Likewise.
6311 (IN_SIGTRAMP): Likewise.
6312 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6313
eb2c22dc
MK
63142003-05-25 Mark Kettenis <kettenis@gnu.org>
6315
6316 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6317 (sparc32_push_arguments): Re-implement by calling
6318 sparc32_do_push_arguments.
6319
44b7b84e
MK
63202003-05-25 Mark Kettenis <kettenis@gnu.org>
6321
6322 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6323 SPARC_O1_REGNUM): New defines.
6324 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6325 (sparc32_store_return_value): New function.
6326 (sparc_extract_struct_value_address): Rewrite to operate on a
6327 regcache.
6328 (sparc_gdbarch_init): Don't set
6329 deprecated_extract_struct_value_address. Set
6330 extract_struct_value_address instead. Don't set
6331 deprecated_extract_return_value and deprecated_store_return_value
6332 for 32-bit targets. Set extract_return_value and
6333 store_return_value instead.
6334 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6335 DEPRECTAED_EXTRACT_RETURN_VALUE,
6336 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6337 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6338 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6339 (sparc_store_return_value): Remove prototype.
6340 (sparc32_store_return_value): New prototype.
6341 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6342 Adjust prototypes.
6343
f6ad61e3
MK
63442003-05-24 Mark Kettenis <kettenis@gnu.org>
6345
6346 * sparcnbsd-tdep.c: Include "gdb_string.h".
6347
b276f1bb
AC
63482003-05-23 Andrew Cagney <cagney@redhat.com>
6349
6350 * p-valprint.c (pascal_val_print): Replace extract_address with
6351 the inline equivalent extract_unsigned_integer.
6352 * jv-valprint.c (java_value_print): Ditto.
6353 * ada-valprint.c (ada_val_print_1): Ditto.
6354 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6355
e76c5fcc
TR
63562003-05-23 Theodore A. Roth <troth@openavr.org>
6357
6358 * blockframe.c (frameless_look_for_prologue): Remove unused
6359 after_prologue variable.
6360
2cdd89cb
MK
63612003-05-23 Mark Kettenis <kettenis@gnu.org>
6362
6363 * blockframe.c (get_pc_function_start): Rewrite to avoid
6364 asignments in if-statements.
6365
182d43bc
EZ
63662003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6367
6368 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6369 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6370 files, don't relocate absolute symbols (and do use mst_abs).
6371
e8f3fcdd
AC
63722003-05-23 Andrew Cagney <cagney@redhat.com>
6373
6374 * objc-lang.c: Include "gdb_assert.h".
6375 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6376 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6377 (gdb_check, gdb_check_fatal): Delete functions.
6378 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6379 gdb_assert.
6380 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6381 * Makefile.in (objc-lang.o): Update dependencies.
6382
3c23e6fb
ILT
63832003-05-22 Ian Lance Taylor <ian@airs.com>
6384
6385 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6386 with fprintf_filtered, not fprintf_unfiltered.
6387
af1342ab
AC
63882003-05-22 Andrew Cagney <cagney@redhat.com>
6389
6390 * stack.c (frame_info): Inline extract_address, replacing it with
6391 extract_unsigned_integer.
6392 * findvar.c (unsigned_pointer_to_address): Ditto.
6393 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6394 * dwarf2expr.c (dwarf2_read_address): Ditto.
6395 * frame.c (frame_pc_unwind): Update comment.
6396 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6397
47e242ec
JJ
63982003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6399
6400 * infptrace.c (detach): Call print_sys_errmsg rather than
6401 perror_with_name to issue warning message when errno is non-zero
6402 after calling ptrace detach.
6403
e2ac8128
JB
64042003-05-21 J. Brobecker <brobecker@gnat.com>
6405
6406 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6407 macro definitions from here...
6408 * hppa-tdep.c: ...to there.
6409
92b3541e
KB
64102003-05-20 Kevin Buettner <kevinb@redhat.com>
6411
6412 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6413 register_ptrace_addr(). Fix all callers.
6414
55809acb
AS
64152003-05-21 Andreas Schwab <schwab@suse.de>
6416
6417 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6418 dependencies.
6419 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6420 end.
6421 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6422 (_initialize_m68k_linux_tdep): New function.
6423 (m68k_linux_frame_saved_pc): Make static.
6424 (m68k_linux_extract_return_value): Likewise.
6425 (m68k_linux_store_return_value): Likewise.
6426 (m68k_linux_extract_struct_value_address): Likewise.
6427 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6428 Remove.
6429 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6430 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6431 (DEPRECATED_FRAME_SAVED_PC): Remove.
6432
0fbc10f7
KW
64332003-05-20 Kris Warkentin <kewarken@qnx.com>
6434
6435 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6436 regset numbering rather than our own.
6437
58da2eb2
DC
64382003-05-19 David Carlton <carlton@bactrian.org>
6439
6440 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6441
1fcb5155
DC
64422003-05-19 David Carlton <carlton@bactrian.org>
6443
6444 Partial fix for PR c++/827.
6445 * cp-support.h: Include symtab.h.
6446 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6447 * cp-namespace.c: Update contributors.
6448 (cp_lookup_symbol_nonlocal): New.
6449 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6450 (lookup_symbol_file): Ditto.
6451 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6452 * block.h: Declare block_scope, block_using, block_global_block.
6453 * block.c (block_scope): New.
6454 (block_using, block_global_block): Ditto.
6455 * Makefile.in (cp_support_h): Depend on symtab_h.
6456 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6457
5f9a71c3
DC
64582003-05-19 David Carlton <carlton@bactrian.org>
6459
6460 * language.h (struct language_defn): Add 'la_value_of_this'
6461 and 'la_lookup_symbol_nonlocal' members.
6462 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6463 lookup_symbol_static, lookup_symbol_global,
6464 lookup_symbol_aux_block.
6465 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6466 if we should search fields of this and how to do static/global
6467 lookup.
6468 (lookup_symbol_aux_block): Make extern.
6469 (basic_lookup_symbol_nonlocal): New.
6470 (lookup_symbol_static, lookup_symbol_global): Ditto.
6471 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6472 'la_lookup_symbol_nonlocal' members.
6473 * c-lang.c (c_language_defn, cplus_language_defn)
6474 (asm_language_defn, minimal_language_defn): Ditto.
6475 * jv-lang.c (java_language_defn): Ditto.
6476 * language.c (unknown_language_defn, auto_language_defn)
6477 (local_language_defn): Ditto.
6478 * m2-lang.c (m2_language_defn): Ditto.
6479 * objc-lang.c (objc_language_defn): Ditto.
6480 * scm-lang.c (scm_language_defn): Ditto.
6481 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6482 * p-lang.c (pascal_language_defn): Ditto for both.
6483 * Makefile.in (f-lang.o): Depend on value_h.
6484 (p-lang.o): Ditto.
6485
89a9d1b1
DC
64862003-05-19 David Carlton <carlton@bactrian.org>
6487
6488 * block.h: Declare block_static_block.
6489 * block.c (block_static_block): New.
6490 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6491 lookup_symbol_aux_local, calling block_static_block instead.
6492 (lookup_symbol_aux_local): Delete 'static_block' argument.
6493
eed3f8ab
DC
64942003-05-19 David Carlton <carlton@bactrian.org>
6495
6496 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6497
a09d8bda
ML
64982003-05-19 Michal Ludvig <mludvig@suse.cz>
6499
6500 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6501 register numbers mapping.
6502
69636828
AF
65032003-05-18 Adam Fedor <fedor@gnu.org>
6504
6505 * symtab.c (completion_list_objc_symbol): New function.
6506 (make_symbol_completion_list): Use it to add ObjC symbols
6507 when looking though the list.
6508 (language_search_unquoted_string): New function.
6509 (make_file_symbol_completion_list): Use it.
6510
55baeb84
AS
65112003-05-18 Andreas Schwab <schwab@suse.de>
6512
d0b45d99
AS
6513 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6514 dependencies.
6515 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6516 as m68k_linux_extract_return_value.
6517 (DEPRECATED_STORE_RETURN_VALUE): Define as
6518 m68k_linux_store_return_value.
6519 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6520 m68k_linux_extract_struct_value_address.
6521 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6522 get_next_frame, get_frame_base, get_frame_pc.
6523 (m68k_linux_frame_saved_pc): Use get_frame_base.
6524 (m68k_linux_extract_return_value): New function.
6525 (m68k_linux_store_return_value): New function.
6526 (m68k_linux_extract_struct_value_address): New function.
6527 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6528
55baeb84
AS
6529 * c-exp.y (typebase): Remove duplicate occurence of
6530 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6531 of lookup_signed_typename.
55baeb84 6532
b6b08ebf
MK
65332003-05-18 Mark Kettenis <kettenis@gnu.org>
6534
6535 * dwarf2loc.c (find_location_expression): Change type of second
6536 argument to `size_t *'.
6537 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6538 for size variable.
6539
5ad1c190
DC
65402003-05-18 David Carlton <carlton@bactrian.org>
6541
6542 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6543 'linkage_name'. Add comment.
6544 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6545 'linkage_name'.
6546 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6547 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6548 (lookup_block_symbol): Ditto.
6549
b8b527c5
AC
65502003-05-16 Andrew Cagney <cagney@redhat.com>
6551
6552 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6553 * gdbarch.h, gdbarch.c: Re-generate.
6554 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6555 * TODO (REGISTER_BYTES): Delete reference.
6556 * alpha-tdep.c (alpha_gdbarch_init): Update.
6557 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6558 * x86-64-tdep.c (x86_64_init_abi): Update.
6559 * vax-tdep.c (vax_gdbarch_init): Update.
6560 * v850-tdep.c (v850_gdbarch_init): Update.
6561 * sparc-tdep.c (sparc_gdbarch_init): Update.
6562 * sh-tdep.c (sh_gdbarch_init): Update.
6563 * s390-tdep.c (s390_gdbarch_init): Update.
6564 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6565 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6566 (ns32k_gdbarch_init_32382): Update.
6567 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6568 * mcore-tdep.c (mcore_gdbarch_init): Update.
6569 * m68k-tdep.c (m68k_gdbarch_init): Update.
6570 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6571 * ia64-tdep.c (ia64_gdbarch_init): Update.
6572 * i386-tdep.c (i386_gdbarch_init): Update.
6573 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6574 * hppa-tdep.c (hppa_gdbarch_init): Update.
6575 * h8300-tdep.c (h8300_gdbarch_init): Update.
6576 * frv-tdep.c (frv_gdbarch_init): Update.
6577 * cris-tdep.c (cris_gdbarch_init): Update.
6578 * avr-tdep.c (avr_gdbarch_init): Update.
6579 * arm-tdep.c (arm_gdbarch_init): Update.
6580 * sparc-tdep.c (sparc_pop_frame): Update.
6581 * rs6000-tdep.c (rs6000_pop_frame): Update.
6582 * remote.c (init_remote_state): Update.
6583 (remote_prepare_to_store): Update.
6584 * remote-vx.c (vx_prepare_to_store): Update.
6585 * remote-sds.c (sds_fetch_registers): Update.
6586 (sds_prepare_to_store): Update.
6587 * remote-array.c: Update.
6588 * regcache.c (init_legacy_regcache_descr): Update.
6589 (init_regcache_descr): Update.
6590 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6591 (mips_o64_extract_return_value): Update.
6592 * irix5-nat.c (fetch_core_registers): Update.
6593 * irix4-nat.c (fetch_core_registers): Update.
6594 * i386-tdep.h: Update.
6595 * hppa-tdep.c (pa_do_registers_info): Update.
6596 (pa_do_strcat_registers_info): Update.
6597 * cris-tdep.c (cris_register_bytes_ok): Update.
6598 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6599 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6600 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6601 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6602 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6603 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6604 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6605 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6606 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6607 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6608 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6609 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6610 (REGISTER_BYTES_OK): Update.
6611 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6612 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6613
ee2842e2
ILT
66142003-05-16 Ian Lance Taylor <ian@airs.com>
6615
6616 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6617 (vax_print_insn, print_insn_arg): Remove static functions.
6618 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6619 print_insn_vax from opcodes library.
6620 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6621
973177d3
AC
66222003-05-15 Andrew Cagney <cagney@redhat.com>
6623
aaab4dba
AC
6624 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6625 * target.h (memory_breakpoint_from_pc): Delete declaration.
6626 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6627 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6628 * monitor.c (monitor_insert_breakpoint): Use
6629 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6630 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6631 * gdbarch.h, gdbarch.c: Re-generate.
6632 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6633 (sparc_gdbarch_init): Set breakpoint_from_pc to
6634 sparc_breakpoint_from_pc.
6635 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6636 (BREAKPOINT_FROM_PC): Define.
6637 (sparc_breakpoint_from_pc): Declare.
6638 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6639 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6640 (BREAKPOINT_FROM_PC): Define.
6641 (BREAKPOINT): Delete macro.
6642 * target.h: Update comment.
6643 * s390-tdep.c (s390_gdbarch_init): Update comments.
6644 * remote.c: Update comments.
6645 * remote-mips.c: Update comments.
6646 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6647 * mem-break.c: Update comment.
6648 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6649 (ia64_memory_insert_breakpoint): Update.
6650 * config/sparc/tm-sparc.h: Update comment.
6651 * config/pa/tm-hppa64.h: Update comment.
6652 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6653 (rs6000_breakpoint_from_pc): Update.
6654 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6655 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6656 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6657 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6658 (mips_breakpoint_from_pc): Update.
6659 (mips_dump_tdep): Update.
6660
e06963ff
AC
6661 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6662 * minsyms.c (lookup_minimal_symbol): Inline
6663 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6664
973177d3
AC
6665 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6666 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6667 * p-lang.c (pascal_printstr): Ditto.
6668 * objc-lang.c (objc_printstr): Ditto.
6669 * m2-lang.c (m2_printstr): Ditto.
6670 * jv-valprint.c (java_print_value_fields): Ditto.
6671 * f-lang.c (f_printstr): Ditto.
6672 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6673 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6674 for repeat_count_threshold.
6675 * Makefile.in (cp-valprint.o): Update dependencies.
6676
5ea2bd7f 66772003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6678
5ea2bd7f
JJ
6679 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6680 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6681 they start with mov r2,r12. Support skipping over indirect stores
6682 of the input registers. Upon hitting a non-nop branch instruction
6683 or predicated instruction, bail out by setting lim_pc to the current
6684 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6685 beyond our calculated value and we have trust_limit set,
6686 use the lim_pc value.
6687
cc8c88f3
AC
66882003-05-15 Andrew Cagney <cagney@redhat.com>
6689
6690 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6691 generic_find_dummy_frame.
6692 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6693 (deprecated_generic_find_dummy_frame): Update.
6694 (deprecated_read_register_dummy): Update.
6695 * frame.c (deprecated_generic_get_saved_register): Update.
6696
909cd28e
TR
66972003-05-15 Theodore A. Roth <troth@openavr.org>
6698
6699 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6700 (avr_gdbarch_init): Set breakpoint_from_pc method.
6701
b923b08d
AC
67022003-05-15 Andrew Cagney <cagney@redhat.com>
6703
6704 * regcache.c (build_regcache): Set deprecated_register_valid
6705 directly.
6706 (deprecated_grub_regcache_for_register_valid): Delete function.
6707 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6708 declaration.
6709
ae2f03ac 67102003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
6711
6712 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
6713 * symtab.c (lookup_symbol_aux): Delete calls to
6714 lookup_symbol_aux_minsyms.
6715 (lookup_symbol_aux_minsyms): Comment out function and
6716 prototype. Delete lookup by mangled name.
ae2f03ac 6717
18ec9831
KB
67182003-05-14 Kevin Buettner <kevinb@redhat.com>
6719
6720 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6721 correctly indicate an empty stack and ``stack_allocated'' to the
6722 indicate the number of elements initially allocated.
6723 (dwarf_expr_grow_stack): Simplify method for computing new
6724 stack size. Don't loop infinitely if ``stack_len'' is zero.
6725 (execute_stack_op): Move ``ctx->in_reg'' initialization
6726 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6727 be used in conjuction with DW_OP_piece. Revise error message
6728 accordingly.
6729
de18ac1f
TR
67302003-05-14 Theodore A. Roth <troth@openavr.org>
6731
6732 * MAINTAINERS: Update my email address.
6733 * avr-tdep.c: Ditto.
6734
176620f1
EZ
67352003-05-14 Elena Zannoni <ezannoni@redhat.com>
6736
6737 * symtab.h (enum domain_enum): Rename from namespace_enum.
6738 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6739 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6740 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6741 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6742 TYPES_NAMESPACE, METHODS_NAMESPACE.
6743 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6744 (struct symbol, struct partial_symbol): Rename field
6745 'namespace_enum namespace' to 'domain_enum domain'.
6746 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6747 Delete old define kludge for namespace.
6748
6749 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6750 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6751 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6752 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6753 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6754 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6755 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6756 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6757 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6758 occurrences of the above.
6759
b7f31508
ILT
67602003-05-14 Ian Lance Taylor <ian@airs.com>
6761
6762 * Makefile.in (install-only): Use $(SHELL) when running
6763 mkinstalldirs.
6764
2fdbdd39
ILT
67652003-05-13 Ian Lance Taylor <ian@airs.com>
6766
a208d82c
ILT
6767 * MAINTAINERS (write after approval): Add myself.
6768
2fdbdd39
ILT
6769 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6770 second and third arguments.
6771 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6772 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6773
fbd9dcd3
AC
67742003-05-13 Andrew Cagney <cagney@redhat.com>
6775
6776 * defs.h (store_address): Delete declaration.
6777 findvar.c (store_address): Delete function.
6778 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6779 store_unsigned_integer.
6780 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6781 * v850-tdep.c (v850_push_arguments): Ditto.
6782 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6783 * sh-tdep.c (sh64_get_saved_register): Ditto.
6784 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6785 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6786 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6787 (mips_get_saved_register): Ditto.
6788 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6789 (find_func_descr, ia64_push_arguments): Ditto.
6790 * i386-tdep.c (i386_push_arguments): Ditto.
6791 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6792 * frv-tdep.c (frv_push_arguments): Ditto.
6793 * frame.c (legacy_saved_regs_prev_register): Ditto.
6794 (deprecated_generic_get_saved_register): Ditto.
6795 * findvar.c (unsigned_address_to_pointer): Ditto.
6796 * dwarf2read.c (dwarf2_const_value): Ditto.
6797 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6798 * alpha-tdep.c (alpha_push_arguments): Ditto.
6799
6760f9e6
JB
68002003-05-12 J. Brobecker <brobecker@gnat.com>
6801
6802 * NEWS: Mention that the hppa-hpux port has been partially
6803 multiarched (32bit ABIT only, so far).
6804
30e221b4
AC
68052003-05-11 Andrew Cagney <cagney@redhat.com>
6806
6807 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6808 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6809 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6810 sim/testsuite/sim/arm/misaligned2.ms, and
6811 sim/testsuite/sim/arm/misaligned3.ms.
6812 * disasm.h (struct ui_file): Add opaque struct declaration.
6813 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6814 * frame.h (struct ui_file): Ditto.
6815
dea7f9ba
MK
68162003-05-11 Mark Kettenis <kettenis@gnu.org>
6817
6818 * value.h: Pretty print.
6819
01986c48
MK
68202003-05-10 Mark Kettenis <kettenis@gnu.org>
6821
6822 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6823
123a958e
AC
68242003-05-08 Andrew Cagney <cagney@redhat.com>
6825
6826 * regcache.h (max_register_size): Delete declaration.
6827 * regcache.c (max_register_size): Delete function.
6828 (struct regcache_descr): Delete field "max_register_size".
6829 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6830 registers fit in MAX_REGISTER_SIZE.
6831 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6832 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6833 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6834 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6835 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6836 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6837 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6838 * dve3900-rom.c, hppa-tdep.c: Ditto.
6839
eb294659
DC
68402003-05-08 David Carlton <carlton@math.stanford.edu>
6841
6842 * valops.c (push_word): Fix typo.
6843
d9d9c31f
AC
68442003-05-08 Andrew Cagney <cagney@redhat.com>
6845
6846 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6847 * gdbarch.h: Re-generate.
6848 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6849 (legacy_max_register_raw_size): Delete declaration.
6850 * regcache.c (legacy_max_register_raw_size): Delete function.
6851 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6852 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6853 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6854 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6855 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6856 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6857 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6858 * findvar.c, dwarf2cfi.c: Ditto.
6859
22540ece
AC
68602003-05-08 Andrew Cagney <cagney@redhat.com>
6861
6862 * mips-tdep.c (read_signed_register): New function, moved to here
6863 from "regcache.c".
6864 (read_signed_register_pid): Ditto.
6865 * regcache.c (read_signed_register_pid): Delete function, moved to
6866 "mips-tdep.c".
6867 (read_signed_register): Ditto.
6868 * regcache.h (read_signed_register): Delete declaration.
6869 (read_signed_register_pid): Delete declaration.
6870
0c92afe8
AC
68712003-05-08 Andrew Cagney <cagney@redhat.com>
6872
6873 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6874 * gdbarch.h: Re-generate.
6875 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6876 (legacy_max_register_virtual_size): Delete declaration.
6877 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6878 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6879 * tracepoint.c (memrange_sortmerge): Ditto.
6880 * sparc-tdep.c (sparc_print_registers): Ditto.
6881 * regcache.c (legacy_max_register_virtual_size): Delete function.
6882
6037b830
JB
68832002-05-08 J. Brobecker <brobecker@gnat.com>
6884
6885 * fork-child.c (escape_bang_in_quoted_argument): New function.
6886 (fork_inferior): Escape '!' characters in quoted arguments
6887 only when needed.
6888
5d62c8b1
JB
68892003-05-08 J. Brobecker <brobecker@gnat.com>
6890
6891 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6892 the language of the CU is not currently supported by GDB.
6893
20a0e81d
JB
68942003-05-08 J. Brobecker <brobecker@gnat.com>
6895
6896 * defs.h (language): Add language_minimal enum value.
6897 * c-lang.c (minimal_language_defn): New language definition.
6898 (_initialize_c_language): Add the new minimal language to the list
6899 of languages known to GDB.
6900
710ee10a
KB
69012003-05-08 Kevin Buettner <kevinb@redhat.com>
6902
6903 * frame.c (get_frame_type): Don't attempt to lazily initialize
6904 frame's unwinder for legacy frames.
6905
1750fa04
AC
69062003-05-07 Andrew Cagney <cagney@redhat.com>
6907
6908 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6909 and "regcache" parameters.
6910 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6911
ddf9f258 69122003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6913
6914 * dwarf2read.c (dwarf_decode_lines): Only use output of
6915 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6916 the current address.
6917
87767c29
AC
69182003-05-07 Andrew Cagney <cagney@redhat.com>
6919
6920 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6921 code.
6922
5e7b2f39
JB
69232003-05-07 Jim Blandy <jimb@redhat.com>
6924
6925 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6926 'maint info symtabs' and 'maint info psymtabs'.
6927 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6928 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6929 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6930 Declarations updated.
6931 * maint.c (maintenance_list_command): Delete.
6932 (_initialize_maint_cmds): Update calls to add_cmd.
6933 * gdbcmd.h (maintenancelistlist): Delete declaration.
6934 * cli/cli-cmds.c (maintenancelistlist): Delete.
6935 (init_cmd_lists): Don't initialize it.
6936 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6937
f6684c31
AC
69382003-05-07 Andrew Cagney <cagney@redhat.com>
6939
6940 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6941 "regcache".
6942 (d10v_print_registers_info): Update.
6943 (d10v_dmap_register, d10v_imap_register): Delete functions.
6944 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6945 and "imap_register".
6946 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6947 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6948 * arch-utils.c (generic_remote_translate_xfer_address): Add
6949 "regcache" and "gdbarch" parameters.
6950 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6951 parameter. Change class to multi-arch.
6952 * gdbarch.h, gdbarch.c: Re-generate.
6953 * remote.c (remote_xfer_memory): Use
6954 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6955
e4846b08
JJ
69562003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6957
6958 * infrun.c (prev_pc): Move declaration ahead of proceed().
6959 (proceed): Refresh prev_pc value before resuming.
6960 (stop_stepping): Remove code to refresh prev_pc.
6961
6b71b8ac
KW
69622003-05-06 Kris Warkentin <kewarken@qnx.com>
6963
6964 * nto-tdep.c: Removed stray comment.
6965
47979a4b
KW
69662003-05-06 Kris Warkentin <kewarken@qnx.com>
6967
6968 * i386-nto-tdep.c: Fix old K&R function definitions.
6969 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6970 Also change add_show_from_set() call to add_setshow_cmd().
6971 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6972
00905d52
AC
69732003-05-05 Andrew Cagney <cagney@redhat.com>
6974
6975 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6976 (fprint_dummy_frames): New function.
6977 (maintenance_print_dummy_frames): New function.
6978 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6979 * frame.c (fprint_frame_id): Make global.
6980 * frame.h (fprint_frame_id): Declare.
6981 * Makefile.in (dummy-frame.o): Update dependencies.
6982
b1e29e33
AC
69832003-05-05 Andrew Cagney <cagney@redhat.com>
6984
6985 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6986 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6987 SIZEOF_CALL_DUMMY_WORDS.
6988 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6989 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6990 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6991 CALL_DUMMY_BREAKPOINT_OFFSET.
6992 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6993 CALL_DUMMY_START_OFFSET.
6994 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6995 * gdbarch.h, gdbarch.c: Re-generate.
6996 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6997 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6998 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6999 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7000 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7001 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7002 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7003 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7004 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7005 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7006 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7007 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7008 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7009 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7010 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7011
70122003-05-05 Kris Warkentin <kewarken@qnx.com>
7013
7014 * configure.tgt: Add i[3456]86-*-nto*.
7015 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7016 * nto-tdep.c: New file. Neutrino target support routines.
7017 * nto-tdep.h: New file. Neutrino target header.
7018 * config/tm-qnxnto.h: New file.
7019 * config/i386/i386nto.mt: New file.
7020 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7021
0ce3d317
AC
70222003-05-04 Andrew Cagney <cagney@redhat.com>
7023
7024 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7025 (load_infrun_state): Ditto.
7026 (struct thread_info): Drop "prev_func_name" field.
7027 * thread.c (load_infrun_state): Update.
7028 (save_infrun_state): Update.
7029 * infrun.c (prev_func_name): Delete variable.
7030 (init_wait_for_inferior): Do not clear prev_func_name.
7031 (stop_stepping, keep_going, context_switch): Do not swap
7032 prev_func_name.
7033 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7034 instead of PC_IN_SIGTRAMP.
7035
46654a5b
AC
70362003-05-04 Andrew Cagney <cagney@redhat.com>
7037
7038 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7039 REGISTER_BYTE with register_offset_hack.
7040 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7041 that REGISTER_BYTE is consistent with the regcache.
7042 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7043 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7044
14b08c1b
MK
70452003-05-04 Mark Kettenis <kettenis@gnu.org>
7046
04c8243f
MK
7047 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7048 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7049
14b08c1b
MK
7050 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7051
c7a11e01
JB
70522003-05-03 J. Brobecker <brobecker@gnat.com>
7053
7054 From Thierry Schneider <tpschneider1@yahoo.com>
7055 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7056 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7057 (mi-cmd-symbol.o): Add rule.
7058
7043d8dc
AC
70592003-05-03 Andrew Cagney <cagney@redhat.com>
7060
7061 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7062 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7063 * gdbarch.h, gdbarch.c: Re-generate.
7064 * d10v-tdep.c (d10v_push_dummy_code): New function.
7065 (d10v_gdbarch_init): Set push_dummy_code.
7066 * infcall.c (legacy_push_dummy_code): New function.
7067 (generic_push_dummy_code): New function.
7068 (push_dummy_code): New function.
7069 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7070 instead of dummy_addr, to push_dummy_call. Move call to
7071 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7072 switch.
7073 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7074
92bf2b80
AC
70752003-05-03 Andrew Cagney <cagney@redhat.com>
7076
7077 * disasm.h (print_insn): Declare.
7078 * disasm.c (init_gdb_disassemble_info): New function.
7079 (gdb_disassembly): Call init_gdb_disassemble_info.
7080 (gdb_print_insn): New function.
7081 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7082 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7083 * mcore-tdep.c: Include "disasm.h"
7084 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7085 * d10v-tdep.c: Include "disasm.h".
7086 (display_trace): Call gdb_print_insn, instead of print_insn.
7087 (print_insn): Delete function.
7088 * printcmd.c: Include "disasm.h".
7089 (print_insn): Delete function.
7090 (print_formatted): Call gdb_print_insn, instead of print_insn.
7091 * Makefile.in (printcmd.o): Update dependencies.
7092 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7093
27d94c49
AC
70942003-05-02 Andrew Cagney <cagney@redhat.com>
7095
82de1e5b
AC
7096 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7097 PC_REGNUM, re-indent.
7098 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7099 PC_REGNUM isn't set.
7100
27d94c49
AC
7101 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7102 * gdbarch.h, gdbarch.c: Re-generate.
7103 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7104 register_virtual_size, pc_regnum, or register_bytes.
7105 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7106 (d10v_register_type): Use D10V_PC_REGNUM.
7107 (d10v_print_registers_info, d10v_read_pc): Ditto.
7108 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7109 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7110
a9c0dc7f
DC
71112003-05-02 David Carlton <carlton@bactrian.org>
7112
7113 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7114 the name with mstrsave.
7115
e33d66ec
EZ
71162003-05-02 Elena Zannoni <ezannoni@redhat.com>
7117
7118 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7119 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7120 (host_charset_name, target_charset_name): New vars for use by
7121 set/show commands.
7122 (host_charset_enum, target_charset_enum): New enums for set/show
7123 commands.
7124 (set_charset_sfunc, set_host_charset_sfunc,
7125 set_target_charset_sfunc): New functions.
7126 (set_host_charset, set_target_charset): Make static.
7127 (list_charsets, set_host_charset_command,
7128 set_target_charset_command): Delete functions.
7129 (show_charset_command): Rewrite as....
7130 (show_charset): Hook this up with the set/show command mechanism.
7131 (_initialize_charset): Change names of charsets to match the
7132 set/show enums. Use host_charset_name and target_charset_name.
7133 Use set/show mechanism for charset, host-charset, target-charset
7134 commands. Do not make 'show host-charset' and 'show
7135 target-charset' be aliases of 'show charset'.
7136
7137 * charset.h (set_host_charset, set_target_charset): Don't export,
7138 they are not used outside the file.
7139
2b6fd0d8
AC
71402003-05-01 Andrew Cagney <cagney@redhat.com>
7141
7142 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7143 (gdb_disassembly): Make "di" non static, always initialize and
7144 cleanup. Always use dis_asm_read_memory.
7145 (gdb_dis_asm_read_memory): Delete function.
7146
6ae2f580
AC
71472003-05-01 Andrew Cagney <cagney@redhat.com>
7148
7149 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7150 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7151
810ecf9f
AC
71522003-04-30 Andrew Cagney <cagney@redhat.com>
7153
7154 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7155 "tm_print_insn_info".
7156 (TARGET_PRINT_INSN_INFO): Delete macro.
7157 (dis_asm_read_memory): Delete function declaration.
7158 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7159 (tm_print_insn_info): Delete variable definition.
7160 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7161 * gdbarch.h, gdbarch.c: Re-generate.
7162 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7163 "deprecated_tm_print_insn_info".
7164 * mcore-tdep.c (mcore_dump_insn): Ditto.
7165 * mips-tdep.c (mips_gdbarch_init): Ditto.
7166 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7167 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7168 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7169 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7170 instead of TARGET_PRINT_INSN_INFO, add comment.
7171 * s390-tdep.c (s390_get_frame_info): Instead of
7172 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7173 (s390_check_function_end, s390_is_sigreturn): Ditto.
7174 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7175 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7176 * disasm.c: Include "gdbcore.h".
7177 (_initialize_disasm): New function, initialize
7178 "deprecated_tm_print_insn_info".
7179 (deprecated_tm_print_insn_info): New variable.
7180 (dis_asm_read_memory): Moved from "corefile.c", made static.
7181 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7182 * Makefile.in (disasm.o): Update dependencies.
7183
07020390
AC
71842003-04-30 Andrew Cagney <cagney@redhat.com>
7185
7186 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7187
a9fa03de
AF
71882003-04-29 Adam Fedor <fedor@gnu.org>
7189
7190 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7191 * infcall.c (find_function_addr): Make non-static.
7192 * infcall.h (find_function_addr): Declare.
7193 * Makefile.in (eval.o): Update dependencies.
7194
1bae87b9
AF
71952003-04-28 Adam Fedor <fedor@gnu.org>
7196
7197 * symtab.c (symbol_find_demangled_name): Check for and demangle
7198 ObjC symbols.
7199 (symbol_init_demangled_name): Init for language_objc as well.
7200
0ba6dca9
AC
72012003-04-28 Andrew Cagney <cagney@redhat.com>
7202
7203 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7204 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7205 * gdbarch.h, gdbarch.c: Re-generate.
7206 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7207 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7208 * inferior.h (deprecated_read_fp): Rename read_fp.
7209 (generic_target_read_fp): Delete declaration.
7210 * regcache.c (generic_target_read_fp): Delete function.
7211 (deprecated_read_fp): Replace read_fp, use
7212 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7213 * d10v-tdep.c (d10v_read_fp): Delete function.
7214 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7215
7216 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7217 deprecated_target_read_fp to generic_target_read_fp.
7218 * sh-tdep.c (sh_gdbarch_init): Ditto.
7219 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7220 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7221 * frv-tdep.c (frv_gdbarch_init): Ditto.
7222
7223 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7224 deprecated_fp_regnum.
7225 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7226 * vax-tdep.c (vax_gdbarch_init): Ditto.
7227 * v850-tdep.c (v850_gdbarch_init): Ditto.
7228 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7229 * sh-tdep.c (sh_gdbarch_init): Ditto.
7230 * s390-tdep.c (s390_gdbarch_init): Ditto.
7231 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7232 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7233 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7234 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7235 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7236 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7237 * i386-tdep.c (i386_gdbarch_init): Ditto.
7238 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7239 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7240 * frv-tdep.c (frv_gdbarch_init): Ditto.
7241 * cris-tdep.c (cris_gdbarch_init): Ditto.
7242 * avr-tdep.c (avr_gdbarch_init): Ditto.
7243 * arm-tdep.c (arm_gdbarch_init): Ditto.
7244 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7245
7246 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7247 * v850-tdep.c (v850_gdbarch_init): Ditto.
7248 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7249 * sh-tdep.c (sh_gdbarch_init): Ditto.
7250 * s390-tdep.c (s390_gdbarch_init): Ditto.
7251 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7252 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7253 * mips-tdep.c (mips_gdbarch_init): Ditto.
7254 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7255 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7256 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7257 * frv-tdep.c (frv_gdbarch_init): Ditto.
7258 * avr-tdep.c (avr_gdbarch_init): Ditto.
7259 * arm-tdep.c (arm_gdbarch_init): Ditto.
7260
7261 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7262 DEPRECATED_FP_REGNUM.
7263 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7264 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7265 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7266 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7267 (sparc32_register_virtual_type): Ditto.
7268 * sh-tdep.c (sh64_frame_chain): Ditto.
7269 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7270 (sh_nofp_frame_init_saved_regs): Ditto.
7271 (sh64_nofp_frame_init_saved_regs): Ditto.
7272 (sh_fp_frame_init_saved_regs): Ditto.
7273 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7274 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7275 * procfs.c (procfs_fetch_registers): Ditto.
7276 (procfs_store_registers): Ditto.
7277 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7278 (store_inferior_registers, fetch_core_registers): Ditto.
7279 (fetch_kcore_registers, clear_regs): Ditto.
7280 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7281 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7282 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7283 * nlm/i386.c (do_status): Ditto.
7284 * mipsv4-nat.c (supply_gregset): Ditto.
7285 * mips-tdep.c: Ditto for comments.
7286 * mips-nat.c (fetch_inferior_registers): Ditto.
7287 (store_inferior_registers, fetch_core_registers): Ditto.
7288 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7289 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7290 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7291 (i386_do_pop_frame, i386_register_type): Ditto.
7292 * hppa-tdep.c (hppa_frame_chain): Ditto.
7293 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7294 (hppa_pop_frame, hppa_read_fp): Ditto.
7295 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7296 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7297 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7298 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7299 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7300 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7301 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7302 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7303 * blockframe.c: Ditto for comments.
7304 * arch-utils.h: Ditto for comments.
7305 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7306 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7307 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7308 * alpha-tdep.h: Ditto for comments.
7309 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7310 (alpha_cannot_store_register): Ditto.
7311 (alpha_push_dummy_frame): Ditto.
7312 * alpha-nat.c (supply_gregset): Ditto.
7313
7314 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7315 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7316 * config/sparc/tm-sparc.h: Update comment.
7317
7318 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7319 deprecated_read_fp instead of TARGET_READ_FP.
7320 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7321 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7322 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7323 deprecated_read_fp instead of read_fp.
7324 * s390-tdep.c (s390_push_arguments): Ditto.
7325 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7326 * frame.h: Ditto in comments.
7327 * frame.c (legacy_get_prev_frame): Ditto.
7328 * dummy-frame.c (dummy_frame_this_id): Ditto.
7329 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7330
d7a27068
AC
73312003-04-28 Andrew Cagney <cagney@redhat.com>
7332
7333 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7334 * gdbarch.h, gdbarch.c: Re-generate.
7335 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7336 * vax-tdep.c (_initialize_vax_tdep): Update.
7337 * v850-tdep.c (_initialize_v850_tdep): Update.
7338 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7339 * s390-tdep.c (_initialize_s390_tdep): Update.
7340 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7341 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7342 * mips-tdep.c (_initialize_mips_tdep): Update.
7343 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7344 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7345 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7346 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7347 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7348 * frv-tdep.c (_initialize_frv_tdep): Update.
7349 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7350 (_initialize_cris_tdep): Update.
7351 * arch-utils.c (legacy_print_insn): Update.
7352 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7353
d2630e69
AF
73542003-04-26 Adam Fedor <fedor@gnu.org>
7355
7356 * linespec.c (decode_objc): New function to decode ObjC calls
7357 (decode_line_1): Check for ObjC calls (using decode_objc)
7358 * Makefile (linespec.o): Update dependencies.
7359
3086aeae
DJ
73602003-04-26 Daniel Jacobowitz <drow@mvista.com>
7361
7362 * breakpoint.h (struct breakpoint_ops): New.
7363 (struct breakpoint): Add ops member.
7364
7365 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7366 (mention): Use new breakpoint ops member.
7367 (set_raw_breakpoint): Initialize ops field to NULL.
7368 (print_exception_catchpoint, print_one_exception_catchpoint)
7369 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7370 (gnu_v3_exception_catchpoint_ops): New.
7371 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7372
1fbec6c3
AF
73732003-04-25 Adam Fedor <fedor@gnu.org>
7374
7375 * Makefile.in (COMMON_OBS): Add objc-lang.o
7376
0ef21242
AC
73772003-04-25 Andrew Cagney <cagney@redhat.com>
7378
7379 * d10v-tdep.c (print_insn): Delete function.
7380 (display_trace): Use TARGET_PRINT_INSN.
7381 (_initialize_d10v_tdep): Do not set tm_print_insn.
7382 (d10v_gdbarch_init): Set print_insn.
7383
f75493ed
AC
73842003-04-25 Andrew Cagney <cagney@redhat.com>
7385
7386 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7387 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7388 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7389 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7390 (nr_dmap_regs, a0_regnum): ... new functions.
7391 (d10v_print_registers_info): Use a0_regnum, use register_size.
7392 (d10v_register_byte): Delete function.
7393 (d10v_register_raw_size): Delete function.
7394 (d10v_register_type): Use a0_regnum.
7395 (d10v_print_registers_info): Use a0_regnum.
7396 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7397 (d10v_gdbarch_init): Do not set register_byte or
7398 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7399 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7400 extract_address.
7401 (trace_command): Use XCALLOC.
7402 (print_insn): Delete reference to tm_print_insn.
7403 (saved_regs_unwinder): Use store_unsigned_integer instead of
7404 store_address.
7405 * frame.h (FRAME_OBSTACK_CALLOC): Define
7406
2202b100
DC
74072003-04-25 David Carlton <carlton@bactrian.org>
7408
7409 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7410
4e45ca2e
AF
74112003-04-24 Adam Fedor <fedor@gnu.org>
7412
7413 * objc-lang.c: Include "valprint.h"
7414 * Makefile.in (objc-lang.o): Update dependencies.
7415
93de3e7f
AF
74162003-04-24 Adam Fedor <fedor@gnu.org>
7417
8ffd9b1b 7418 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7419 architecture dependant compilation and mark as unimplemented
7420 (until they get put in the gdbarch vector).
7421
0f20eeea
DC
74222003-04-23 David Carlton <carlton@bactrian.org>
7423
7424 * cp-support.c (cp_find_first_component): Accept 'operator' in
7425 more locations.
7426
74cfe982
AC
74272003-04-23 Andrew Cagney <cagney@redhat.com>
7428
7429 * infcall.c (call_function_by_hand): Eliminate redundant
7430 indentation. Move "saved_async" and "old_cleanups" to where they
7431 are needed.
8ffd9b1b 7432
52557533
AC
74332003-04-23 Andrew Cagney <cagney@redhat.com>
7434
7435 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7436 and "buffer". Move the "name" code to where it is needed.
7437
158775de
AC
74382003-04-23 Andrew Cagney <cagney@redhat.com>
7439
7440 * infcall.c (call_function_by_hand): Move variables "start_sp",
7441 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7442 code to ON_STACK switch branch.
8ffd9b1b 7443
ebc7896c
AC
74442003-04-23 Andrew Cagney <cagney@redhat.com>
7445
7446 * infcall.c (call_function_by_hand): Make declaration of "i",
7447 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7448 lint.
7449
d727590f
AC
74502003-04-23 Andrew Cagney <cagney@redhat.com>
7451
7452 * infcall.c (call_function_by_hand): Delete variable
7453 "n_method_args". Localize "param_type"'s declaration to the loop
7454 that it is used. Reinstate code assigning to said variable -
7455 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7456 Rationalize code using "param_type".
7457
d585e13a
AC
74582003-04-22 Andrew Cagney <cagney@redhat.com>
7459
7460 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7461 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7462 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7463 to DEPRECATED_PUSH_RETURN_ADDRESS.
7464
051caad9
KB
74652003-04-22 Kevin Buettner <kevinb@redhat.com>
7466
7467 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7468 on the DWARF2 register number prior to fetching a register.
7469
77296879
JB
74702003-04-22 J. Brobecker <brobecker@gnat.com>
7471
7472 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7473 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7474 this macro was always set to 0.
77296879
JB
7475 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7476 considering the fact that this macro was always set to 0.
7477 * hppa-tdep.h (hppa_store_return_value): Likewise.
7478 (hppa_extract_return_value): Likewise.
7479
4252f1df
JB
74802003-04-22 J. Brobecker <brobecker@gnat.com>
7481
7482 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7483 the hppa-pro target only.
7484
14604c6b
JB
74852003-04-21 J. Brobecker <brobecker@gnat.com>
7486
7487 Ongoing multi-arch conversion effort for HP/UX:
7488 * config/pa/tm-hppa.h: Move all macro that are no longer
7489 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7490 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7491
77eb01d1
JB
74922003-04-21 J. Brobecker <brobecker@gnat.com>
7493
7494 * config/pa/tm-hppa.h: Obsolete a section that was only used
7495 for hppa-pro.
7496
61995b3b
JB
74972003-04-21 J. Brobecker <brobecker@gnat.com>
7498
7499 Ongoing multi-arch conversion for HP/UX.
7500 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7501 if already defined (allows hppa64 to stay non-multiarched for now).
7502 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7503
4aa79dcc
AC
75042003-04-21 Andrew Cagney <cagney@redhat.com>
7505
7506 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7507
0f751ff2
AC
75082003-04-21 Andrew Cagney <cagney@redhat.com>
7509
7510 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7511 "i386_num_mmx_regs".
7512
04714b91
AC
75132003-04-21 Andrew Cagney <cagney@redhat.com>
7514
7515 * infcall.c: New file.
7516 * infcall.h: New file.
7517 * valarith.c: Include "infcall.h".
7518 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7519 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7520 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7521 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7522 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7523 (SFILES): Add "infcall.c"
7524 (COMMON_OBS): Add "infcall.o".
7525 (infcall.o): Specify dependencies.
7526 * value.h (call_function_by_hand): Delete declaration.
7527 * inferior.h (run_stack_dummy): Delete declaration.
7528 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7529 (run_stack_dummy): Move to "infcall.c", merged into
7530 call_function_by_hand.
7531 * valops.c (call_function_by_hand): Moved to "infcall.c".
7532 (find_function_addr, value_arg_coerce): Ditto.
7533 (unwindonsignal_p, coerce_float_to_double): Ditto.
7534 (_initialize_valops): Move "set/show coerce-float-to-double", and
7535 "set/show unwindonsignal" commands to "infcall.c".
7536 * v850-tdep.c, target.h: Update comments.
7537 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7538 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7539 (sh64_init_extra_frame_info): Update comments.
7540 * mn10300-tdep.c: Update comments.
7541 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7542 * config/sparc/tm-sparc.h: Update comments.
7543 * breakpoint.h: Update comments.
7544 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7545 * arm-tdep.c: Update comment.
7546
f9d3c2a8
MK
75472003-04-19 Mark Kettenis <kettenis@gnu.org>
7548
c40e1eab
MK
7549 * i386-tdep.c (i386_num_register_names): New variable.
7550 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7551 (MM0_REGNUM): Remove redundant parentheses in define.
7552 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7553 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7554 i386_mxcsr_regnum_p): Remove redundant parentheses.
7555 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7556
94ea66b3
MK
7557 * i386-tdep.c (i386_extract_return_value,
7558 i386_store_return_value): Correct check for availability of
7559 floating-point registers.
7560
54299a1d
MK
7561 * i386-tdep.c (i386_frame_num_args): Remove function.
7562 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7563
c86c27af
MK
7564 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7565 mmx_regnum_to_fp_regnum. Adjust all callers.
7566
f9d3c2a8
MK
7567 * i386-tdep.c (i386_get_longjmp_target): Use
7568 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7569 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7570 extract_address.
7571
94ba74a9
MK
75722003-04-19 Mark Kettenis <kettenis@gnu.org>
7573
7574 * core-regset.c: Update comments to reflect reality. Re-order
7575 includes.
7576 (fetch_core_registers): Use switch instead of if. Remove
7577 redundant prototype.
7578
4074e13c
JB
75792003-04-18 Jim Blandy <jimb@redhat.com>
7580
7581 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7582 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7583
e3ab4aba
RH
75842003-04-17 Richard Henderson <rth@redhat.com>
7585
7586 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7587
627bf7c1
EZ
75882003-04-17 Michael Snyder <msnyder@redhat.com>
7589 Karen Bennet <bennet@redhat.com>
7590
7591 Committed by Elena Zannoni <ezannoni@redhat.com>
7592 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7593
514621a9
EZ
75942003-04-17 Elena Zannoni <ezannoni@redhat.com>
7595
7596 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7597 value if the return type is void.
514621a9 7598
b4acd559
JJ
75992003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7600
7601 * thread-db.c: Reindented.
8ffd9b1b 7602
530b167e 76032003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7604
7605 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7606 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7607 as types.
7608
0a48e7e8
MS
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
8ffd9b1b 7632
ab9fe00e
KB
76332003-04-16 Kevin Buettner <kevinb@redhat.com>
7634
610a3745 7635 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7636 the size of ``long double'' to 16, instead of 8.
7637
e64a344c
MK
76382003-04-16 Mark Kettenis <kettenis@gnu.org>
7639
7640 * i386-linux-nat.c: Add some whitespace to make things more
7641 readable.
7642 (fetch_register, store_register, fetch_inferior_registers,
7643 store_inferior_registers): Get rid of assignment in if-statement.
7644 (store_register): Fix typo in error message.
7645
25d41031
AC
76462003-04-16 Andrew Cagney <cagney@redhat.com>
7647
7648 * utils.c (xmmalloc): Always allocate something, matches
7649 libiberty/xmalloc's semantics.
7650 (xmrealloc, xmcalloc): Ditto.
7651
c50901fd
AC
76522003-04-16 Andrew Cagney <cagney@redhat.com>
7653
7654 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7655 update comments.
7656 (get_frame_type): Initialize unwind and type when needed.
7657 (get_frame_id, frame_register_unwind): Ditto.
7658
f81824a9
AC
76592003-04-16 Andrew Cagney <cagney@redhat.com>
7660
7661 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7662 obsolete.
7663 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7664 * sparcl-stub.c: Obsolete file.
7665 * config/sparc/tm-sparclet.h: Obsolete file.
7666 * sparclet-stub.c: Obsolete file.
7667 * sparclet-rom.c: Obsolete file.
7668 * sparcl-tdep.c: Obsolete file.
7669 * config/sparc/tm-sparclite.h: Obsolete file.
7670 * config/sparc/sparclite.mt: Obsolete file.
7671 * config/sparc/sparclet.mt: Obsolete file.
7672 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7673 sparc86x-*-* obsolete.
7674
9219021c
DC
76752003-04-15 David Carlton <carlton@math.stanford.edu>
7676
7677 * Makefile.in (SFILES): Add cp-namespace.c.
7678 (COMMON_OBS): Add cp-namespace.o.
7679 (block.o): Depend on gdb_obstack_h and cp_support_h.
7680 (buildsym.o): Depend on cp_support_h.
7681 (cp-namespace.o): New.
7682 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7683 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7684 (dwarf2read.o): Depend on cp_support_h.
7685 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7686 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7687 processing_current_namespace.
7688 (read_namespace): Update processing_current_namespace; check for
7689 anonymous namespaces.
7690 (dwarf2_name): New function.
7691 (dwarf2_extension): Ditto.
7692 * cp-support.h: Update copyright, contributors.
7693 Add inclusion guards.
7694 Add opaque declaration for structs obstack, block, symbol.
7695 (struct using_direct): New struct.
7696 Add declarations for cp_find_first_component,
7697 cp_entire_prefix_len, processing_has_namespace_info,
7698 processing_current_namespace, cp_is_anonymous,
7699 cp_add_using_directive, cp_initialize_namespace,
7700 cp_finalize_namespace, cp_set_block_scope,
7701 cp_scan_for_anonymous_namespaces.
7702 * cp-namespace.c: New file.
7703 * cp-support.c: Update copyright.
7704 Include ctype.h, gdb_assert.h, gdbcmd.h.
7705 New variable maint_cplus_cmd_list.
7706 (cp_find_first_component): New function.
7707 (cp_entire_prefix_len, maint_cplus_command)
7708 (first_component_command, _initialize_cp_support): Ditto.
7709 * buildsym.c: Include cp-support.h.
7710 New variable using_list.
7711 (add_symbol_to_list): Check for anonymous namespaces.
7712 (finish_block): Set block's scope.
7713 (start_symtab): Initialize C++ namespace support.
7714 (end_symtab): Finalize C++ namespace support.
7715 * block.h: Add opaque declarations for structs
7716 block_namespace_info, using_direct, and obstack.
7717 Add declarations for block_set_scope and block_set_using.
7718 (struct block): Add 'language_specific' member.
7719 (BLOCK_NAMESPACE): New macro.
7720 * block.c: Include gdb_obstack.h and cp-support.h.
7721 (struct block_namespace_info): New struct.
7722 (block_set_scope): New function.
7723 (block_set_using, block_initialize_namespace): Ditto.
7724
d5a921c9
KB
77252003-04-14 Kevin Buettner <kevinb@redhat.com>
7726
7727 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7728 (locate_base): Return early if there aren't any link map offsets.
7729 (svr4_solib_create_inferior_hook): Warn if shared library support
7730 is unavailable.
7731
d2a52b27
DC
77322003-04-14 David Carlton <carlton@math.stanford.edu>
7733
7734 * symtab.c (symbol_set_names): Add prefix when storing Java names
7735 in hash table. Fix for PR java/1039.
7736
980cae7a
DC
77372003-04-14 David Carlton <carlton@math.stanford.edu>
7738
7739 * symtab.c (symbol_set_names): Rename 'name' arg to
7740 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7741 * symtab.h: Change 'name' argument in declaration of
7742 symbol_set_names to 'linkage_name'.
7743 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7744
e227b13c
AC
77452003-04-14 Andrew Cagney <cagney@redhat.com>
7746
7747 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7748 return the fully sign-extended register value.
7749 (get_frame_pointer): Ditto.
7750 (mips_pop_frame): Initialize "proc_desc" after checking for a
7751 dummy frame.
7752
36712a20
AC
77532003-04-14 Andrew Cagney <cagney@redhat.com>
7754
7755 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7756 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7757 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7758 (mips_push_register): Delete function.
7759 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7760 PUSH_FP_REGNUM.
7761
44ea7b70
JB
77622003-04-14 Jim Blandy <jimb@redhat.com>
7763
7764 * symmisc.c: #include "gdb_regex.h".
7765 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7766 functions.
7767 * maint.c (maintenance_list_command): New function.
7768 (_initialize_maint_cmds): Register the above as commands.
7769 * symtab.h (maintenance_list_symtabs,
7770 maintenance_list_psymtabs): New declarations.
7771 * cli/cli-cmds.c (maintenancelistlist): New variable.
7772 (init_cmd_lists): Initialize it.
7773 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7774 * gdbcmd.h (maintenancelistlist): New declaration.
7775 * Makefile.in (symmisc.o): Update dependencies.
7776
2d0c7962
EZ
77772003-04-14 Elena Zannoni <ezannoni@redhat.com>
7778
7779 * s390-nat.c: Include asm/types.h for addr_t.
7780
1947a811
CV
77812003-04-14 Corinna Vinschen <vinschen@redhat.com>
7782
7783 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7784 actually incoming type.
7785
adb616d7
AC
77862003-04-13 Andrew Cagney <cagney@redhat.com>
7787
7788 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7789 get_next_frame and get_frame_saved_regs.
7790
9b5e151c
AC
77912003-04-13 Andrew Cagney <cagney@redhat.com>
7792
7793 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7794 of gdbarch_num_regs.
7795
ef6e7e13
AC
77962003-04-13 Andrew Cagney <cagney@redhat.com>
7797
7798 * frame.h: Mention what replaced what in "struct frame_info".
7799 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7800 deprecated_update_frame_base_hack and
7801 deprecated_update_frame_pc_hack.
7802 * hppa-tdep.c: Ditto.
7803
61fbb938
DJ
78042003-04-13 Daniel Jacobowitz <drow@mvista.com>
7805
7806 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7807 to read_reg and update its comment. Remove regnum member.
7808 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7809 Don't call read_reg when setting in_reg. Call read_reg to get
7810 the frame base if it's in a register. Return the register number
7811 on the stack instead of in the context. Remove extra arguments
7812 to read_reg.
7813 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7814 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7815 the register number on the expression stack.
7816 (needs_frame_read_reg): Remove extra arguments.
7817
0d53c4c4
DJ
78182003-04-13 Daniel Jacobowitz <drow@mvista.com>
7819
7820 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7821 made non-static.
7822 (execute_stack_op): All callers updated.
7823 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7824 * dwarf2loc.c (find_location_expression): New function.
7825 (dwarf_expr_frame_base): Call it.
7826 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7827 (dwarf2_tracepoint_var_ref): New function, broken out from
7828 locexpr_tracepoint_var_ref.
7829 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7830 Make static.
7831 (loclist_read_variable, loclist_read_needs_frame): New functions.
7832 (loclist_describe_location, loclist_tracepoint_var_ref): New
7833 functions.
7834 (dwarf2_loclist_funcs): New struct location_funcs.
7835 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7836 (struct dwarf2_locexpr_baton): Add comments.
7837 (dwarf2_loclist_funcs): New extern.
7838 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7839 base_address and base_known.
7840 (dwarf_loc_buffer): New variable.
7841 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7842 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7843 (dwarf2_has_info): Initialize dwarf_loc_offset.
7844 (dwarf2_build_psymtabs): Read in .debug_loc.
7845 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7846 DWARF_LOC_SIZE.
7847 (psymtab_to_symtab_1): Likewise. Move base address calculation
7848 here, from...
7849 (dwarf2_get_pc_bounds): ... here. Use the base address from
7850 cu_header.
7851 (dwarf2_symbol_mark_computed): Handle location lists.
7852
6aca59a3
DJ
78532003-04-13 Daniel Jacobowitz <drow@mvista.com>
7854
7855 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7856 if the linkage name demangled successfully.
7857
aca1fcd0
MK
78582003-04-13 Mark Kettenis <kettenis@gnu.org>
7859
97095916
MK
7860 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7861 disassmbly_flavour): Removed.
7862
aca1fcd0
MK
7863 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7864
562a961f
MK
78652003-04-13 Mark Kettenis <kettenis@gnu.org>
7866
7867 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7868
bd013d54
AC
78692003-04-12 Andrew Cagney <cagney@redhat.com>
7870
7871 * frame.h (struct frame_info): Move definition from here ...
7872 * frame.c (struct frame_info): ... to here.
7873
167ef8b1
AC
78742003-04-12 Andrew Cagney <cagney@redhat.com>
7875
7876 * gdbthread.h (save_infrun_state): Delete parameter
7877 "prev_func_start".
7878 (struct thread_info): Delete field "prev_func_start".
7879 (load_infrun_state): Ditto.
7880 * thread.c (load_infrun_state, save_infrun_state): Update.
7881 * infrun.c (prev_func_start): Delete variable.
7882 (context_switch, init_wait_for_inferior): Update.
7883 (stop_stepping, keep_going): Update.
7884
da3331ec
AC
78852003-04-12 Andrew Cagney <cagney@redhat.com>
7886
7887 * gdbarch.sh: Add missing opaque declarations.
7888 * gdbarch.h: Regnerate.
7889 * symtab.h: Add missing opaque declarations.
7890 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7891 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7892 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7893 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7894 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7895 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7896 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7897 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7898 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7899 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7900 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7901 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7902 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7903
18adea3f
AC
79042003-04-11 Andrew Cagney <cagney@redhat.com>
7905
7906 * frame.c (get_frame_id): Return this frame's "id".
7907 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7908 function start.
7909 (legacy_saved_regs_this_id): Replace function body with
7910 internal-error.
7911 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7912 FRAME_OBSTACK_ZALLOC.
7913 (create_new_frame): Mark the frame ID as valid.
7914
2252e863
AO
79152003-04-11 Alexandre Oliva <aoliva@redhat.com>
7916
7917 * Makefile.in (libbfd_h): Added missing setting.
7918 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7919 according to the selected ABI.
7920
a8245ab8
JJ
79212003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7922
7923 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7924
6913c89a
AC
79252003-04-11 Andrew Cagney <cagney@redhat.com>
7926
7927 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7928 SAVED_PC_AFTER_CALL.
7929 * gdbarch.h, gdbarch.c: Regenerate.
7930 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7931 * x86-64-tdep.c (x86_64_init_abi): Update.
7932 * vax-tdep.c (vax_gdbarch_init): Update.
7933 * v850-tdep.c (v850_gdbarch_init): Update.
7934 * sparc-tdep.c (sparc_gdbarch_init): Update.
7935 * sh-tdep.c (sh_gdbarch_init): Update.
7936 * s390-tdep.c (s390_gdbarch_init): Update.
7937 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7938 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7939 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7940 * mips-tdep.c (mips_gdbarch_init): Update.
7941 * mcore-tdep.c (mcore_gdbarch_init): Update.
7942 * m68k-tdep.c (m68k_gdbarch_init): Update.
7943 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7944 * ia64-tdep.c (ia64_gdbarch_init): Update.
7945 (ia64_saved_pc_after_call): Update declaration.
7946 * i386ly-tdep.c (i386lynx_init_abi): Update.
7947 * i386-tdep.c (i386_gdbarch_init): Update.
7948 * hppa-tdep.c (hppa_gdbarch_init): Update.
7949 * h8300-tdep.c (h8300_gdbarch_init): Update.
7950 * frv-tdep.c (frv_gdbarch_init): Update.
7951 * cris-tdep.c (cris_gdbarch_init): Update.
7952 * avr-tdep.c (avr_gdbarch_init): Update.
7953 * arm-tdep.c (arm_gdbarch_init): Update.
7954 * alpha-tdep.c (alpha_gdbarch_init): Update.
7955 * ns32knbsd-nat.c (frame_num_args): Update.
7956 * ns32k-tdep.c (umax_frame_num_args): Update.
7957 * mips-tdep.c (mips_init_frame_pc_first): Update.
7958 * infrun.c (step_over_function): Update.
7959 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7960 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7961 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7962 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7963 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7964 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7965 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7966 * arch-utils.c (init_frame_pc_default): Update.
7967 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7968 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7969 declaration.
8ffd9b1b 7970
38edeab8
AC
79712003-04-11 Andrew Cagney <cagney@redhat.com>
7972
7973 * i387-tdep.c: Update copyright.
7974 (i387_to_double): Delete function.
7975 (double_to_i387): Delete function.
7976
81f8a206
AC
79772003-04-10 Andrew Cagney <cagney@redhat.com>
7978
7979 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7980 frame's function's address. Simplify.
7981 (d10v_frame_unwind_cache): Check that the frame's function is
7982 non-zero.
7983
6e691f7a
JB
79842003-04-10 Jim Blandy <jimb@redhat.com>
7985
7986 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7987 call to set_gdbarch_deprecated_push_arguments.
7988
7f78e237
AC
79892003-04-10 Andrew Cagney <cagney@redhat.com>
7990
7991 * frame.c (fprint_frame_id): New function.
7992 (fprint_frame_type, fprint_frame): New function.
7993 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7994 (create_sentinel_frame, get_frame_id): Ditto.
7995 (frame_id_p, frame_id_eq): Ditto.
7996 (frame_id_inner, create_new_frame): Ditto.
7997 (legacy_get_prev_frame, get_prev_frame): Ditto.
7998 (deprecated_update_frame_pc_hack): Ditto.
7999 (frame_register_unwind): Ditto.
8000 (deprecated_update_frame_base_hack): Ditto.
8001
f870b49b
CV
80022003-04-10 Corinna Vinschen <vinschen@redhat.com>
8003
8004 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8005 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8006 frame_chain function.
8007 * Makefile.in: Add dependencies due to above change.
8008
7c86889b
CV
80092003-04-10 Corinna Vinschen <vinschen@redhat.com>
8010
8011 * blockframe.c (legacy_frame_chain_valid): Move call to
8012 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8013 inside_entry_file.
8014
d0a55772
AC
80152003-04-09 Andrew Cagney <cagney@redhat.com>
8016
8017 * frame.h (struct frame_id): Replace "pc" and "base" with
8018 "stack_addr" and "code_addr". Update comments.
8019 (frame_id_build): Update parameter names and comment.
8020 (struct frame_info): Replace "id_p" and "id" with "this_id".
8021 * dummy-frame.c (dummy_frame_this_id): Update.
8022 * breakpoint.c (print_one_breakpoint): Update.
8023 * frame.c (get_frame_id): Update.
8024 (get_frame_base, frame_id_build): Update.
8025 (create_sentinel_frame, legacy_get_prev_frame): Update.
8026 (deprecated_update_frame_base_hack): Update.
8027 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8028 (frame_id_inner): Ditto.
8029
ac16bf07
AC
80302003-04-09 Andrew Cagney <cagney@redhat.com>
8031
8032 * defs.h (gdb_print_host_address): Make "addr" parameter a
8033 pointer constant.
8034 * utils.c (gdb_print_host_address): Update.
8035
366cfc9e
KB
80362003-04-09 Kevin Buettner <kevinb@redhat.com>
8037
8038 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8039 register number for R0 is 0.
8040
cd983b5c
JB
80412003-04-09 J. Brobecker <brobecker@gnat.com>
8042
8043 * frame.h (struct gdbarch): Add opaque structure definition
8044 to avoid a compilation warning on LynxOS 4.0.
8045
d1340264
AC
80462003-04-09 Andrew Cagney <cagney@redhat.com>
8047
8048 * frame.h (struct frame_info): Delete field "pc". Replace
8049 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8050 structure.
8051 * frame.c (frame_pc_unwind): Update.
8052 (create_sentinel_frame): Do not set "pc".
8053 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8054 (get_frame_pc): Call frame_pc_unwind.
8055 (deprecated_update_frame_pc_hack): Update.
8056 (create_new_frame): Use "pc" not "->pc".
8057
90a6fffb
AC
80582003-04-09 Andrew Cagney <cagney@redhat.com>
8059
8060 * frame.c (get_frame_id): Eliminate code updating "frame".
8061 (legacy_get_prev_frame): Ditto.
8062 (get_frame_base): Return id.base directly.
8063 (deprecated_update_frame_base_hack): Update "id.base".
8064 * frame.h (struct frame_info): Delete field "frame".
8065
2fbce691
AC
80662003-04-09 Andrew Cagney <cagney@redhat.com>
8067
8068 * NEWS: Mention that the "Sequent family" is obsolete.
8069 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8070 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8071 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8072 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8073 * config/i386/tm-ptx4.h: Obsolete file.
8074 * config/i386/tm-ptx.h: Obsolete file.
8075 * symm-tdep.c: Obsolete file.
8076 * config/i386/symmetry.mt: Obsolete file.
8077 * config/i386/tm-symmetry.h: Obsolete file.
8078 * symm-nat.c: Obsolete file.
8079 * config/i386/nm-symmetry.h: Obsolete file.
8080 * config/i386/xm-symmetry.h: Obsolete file.
8081 * config/i386/symmetry.mh: Obsolete file.
8082 * config/i386/nm-ptx4.h: Obsolete file.
8083 * config/i386/ptx4.mh: Obsolete file.
8084 * config/i386/ptx.mt: Obsolete file.
8085 * config/i386/ptx.mh: Obsolete file.
8086 * config/i386/xm-ptx4.h: Obsolete file.
8087 * config/i386/xm-ptx.h: Obsolete file.
8088
78c43945
AC
80892003-04-09 Andrew Cagney <cagney@redhat.com>
8090
8091 Obsolete mips*-*-mach3*.
8092 * NEWS: Mention that mips*-*-mach3* is obsolete.
8093 * m3-nat.c: Obsolete file.
8094 * config/nm-m3.h: Obsolete file.
8095 * config/mips/tm-mipsm3.h: Obsolete file.
8096 * config/mips/mipsm3.mt: Obsolete file.
8097 * config/mips/mipsm3.mh: Obsolete file.
8098 * config/mips/xm-mipsm3.h: Obsolete file.
8099 * mipsm3-nat.c: Obsolete file.
8100 * configure.host: Obsolete mips-dec-mach3*.
8101 * configure.tgt: Obsolete mips*-*-mach3*.
8102
f1908289
AC
81032003-04-09 Andrew Cagney <cagney@redhat.com>
8104
8105 * doublest.h: Update copyright.
8106 (deprecated_store_floating, deprecated_extract_floating): Rename
8107 store_floating and extract_floating. Update comments.
8108 * doublest.c: Update copyright.
8109 (extract_floating_by_length): Replace extract_floating.
8110 (store_floating_by_length): Replace store_floating.
8111 (deprecated_extract_floating): New function.
8112 (deprecated_store_floating): New function.
8113 (extract_typed_floating): Call extract_floating_by_length.
8114 (store_typed_floating): Call store_floating_by_length.
8115 * x86-64-tdep.c (x86_64_store_return_value): Update.
8116 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8117 (sh64_extract_return_value): Update.
8118 (sh_sh4_register_convert_to_virtual): Update.
8119 (sh_sh64_register_convert_to_virtual): Update.
8120 (sh_sh4_register_convert_to_raw): Update.
8121 (sh_sh64_register_convert_to_raw): Update.
8122 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8123 (rs6000_register_convert_to_raw): Update.
8124 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8125 (ia64_register_convert_to_raw): Update.
8126 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8127 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8128 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8129 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8130 (alpha_register_convert_to_raw): Update.
8131
4443bd83
AC
81322003-04-08 Andrew Cagney <cagney@redhat.com>
8133
8134 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8135 * gdbarch.h, gdbarch.c: Re-generate.
8136 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8137 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8138 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8139 conditionally, use frame_pc_unwind as an alternative. Add
8140 comments.
8141 * arch-utils.c (init_frame_pc_default): Only call
8142 SAVED_PC_AFTER_CALL when available.
8143
c0236d92
EZ
81442003-04-08 Elena Zannoni <ezannoni@redhat.com>
8145
fbe586ae 8146 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8147 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8148 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8149 (start_remote): Ditto.
8150 (handle_inferior_event): Ditto.
8151 (save_inferior_status): Ditto.
8152 (restore_inferior_status): Ditto.
8153 * infcmd.c (attach_command): Ditto.
8154 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8155 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8156 * alpha-tdep.c (heuristic_proc_start): Ditto.
8157 * mips-tdep.c (heuristic_proc_start): Ditto.
8158 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8159 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8160 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8161 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8162 * remote-vx.c (vx_create_inferior): Ditto.
8163
81642003-04-08 Elena Zannoni <ezannoni@redhat.com>
8165
8166 * infrun.c (stop_soon_quietly): Make it an enum, to better
8167 override the default behavior of handle_inferior_event.
8168 (clear_proceed_status): Update uses of stop_soon_quietly to
8169 reflect that it is now an enum.
8170 (start_remote): Ditto.
8171 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8172 is set to handle the new GNU/Linux kernel behavior for
8173 attach/sigstop. Update uses of stop_soon_quietly.
8174 * inferior.h (enum stop_kind): New enum.
8175 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8176 Reset normal handle_inferior_event behavior, afterwards.
8177 * fork-child.c (startup_inferior): Update.
8178 * alpha-tdep.c (heuristic_proc_start): Update.
8179 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8180 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8181 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8182 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8183 * remote-vx.c (vx_create_inferior): Update.
8184 * mips-tdep.c (heuristic_proc_start): Update.
8185
1211bce3
EZ
81862003-04-07 Elena Zannoni <ezannoni@redhat.com>
8187
8188 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8189 be freed more than once, causing wild memory corruptions.
1211bce3 8190 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8191 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8192 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8193 with the "core" target.
1211bce3 8194
f0ef6b29
KB
81952003-04-07 Kevin Buettner <kevinb@redhat.com>
8196
8197 * mips-tdep.c (mips_print_fp_register): New function, created from
8198 do_fp_register_row(). Registers are now (also) printed as hex.
8199 Only one register is printed per row.
8200 (mips_print_register, do_fp_register_row): Print floating point
8201 registers with mips_print_fp_register().
8202
8cf71652
AC
82032003-04-06 Andrew Cagney <cagney@redhat.com>
8204
5e488a7b
AC
8205 * valprint.h (inspect_it): Add extern declaration.
8206 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8207 (selectors_info, classes_info): Ditto.
8208 (find_objc_msgcall): Fix indentation.
8209 (objc_printstr): Delete extern declarations.
8210
8cf71652
AC
8211 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8212
e6ba3bc9
AC
82132003-04-06 Andrew Cagney <cagney@redhat.com>
8214
8215 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8216 Update comment.
8217 * frame.c (legacy_saved_regs_this_id): Update.
8218 (legacy_get_prev_frame): Update.
8219 * xstormy16-tdep.c: Update comment.
8220 * sparc-tdep.c (sparc_frame_chain): Update comment.
8221 * blockframe.c (legacy_frame_chain_valid): Update.
8222
55e1d7e7
AC
82232003-04-06 Andrew Cagney <cagney@redhat.com>
8224
996179ee
AC
8225 * valprint.c (val_print_type_code_int): Delete #ifdef
8226 PRINT_TYPELESS_INTEGER code.
8227
55e1d7e7
AC
8228 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8229 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8230 multi-arch definition.
8231 * gdbarch.h: Re-generate.
8232
43bd9a9e
AC
82332003-04-05 Andrew Cagney <cagney@redhat.com>
8234
8235 Eliminate FRAME_FIND_SAVED_REGS.
8236 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8237 Change FSR parameter to a pointer.
8238 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8239 Assume FSR parameter is a pointer.
8240 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8241 Make fsr a pointer.
8242 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8243 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8244 saved_regs a pointer.
8245 (hppa_frame_saved_pc): Ditto.
8246 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8247 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8248 pointer.
8249 (restore_pc_queue): Make fsr a pointer.
8250 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8251 (hppa_frame_chain): Make saved_regs a pointer, call
8252 hppa_frame_init_saved_regs.
8253 * sparc-tdep.c: Include "gdb_assert.h".
8254 (sparc_frame_find_saved_regs): Replace internal_error with
8255 gdb_assert.
8256 * remote-vxsparc.c (vx_read_register): Delete reference to
8257 FRAME_FIND_SAVED_REGS.
8258 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8259 * gdbarch.h: Regenerate.
8260 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8261 (deprecated_get_frame_saved_regs): Delete declaration.
8262 (struct frame_saved_regs): Delete definition.
8263 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8264 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8265 (hppa_frame_find_saved_regs): Delete declaration.
8266 (FRAME_FIND_SAVED_REGS): Delete macro.
8267 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8268 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8269 FRAME_FIND_SAVED_REGS in comment.
8270
be41e9f4
AC
82712003-04-05 Andrew Cagney <cagney@redhat.com>
8272
8273 * frame.c (frame_func_unwind, get_frame_func): New functions.
8274 * frame.h (get_frame_func, frame_func_unwind): Declare.
8275 (struct frame_info): Add field "prev_func" for caching the
8276 previous frame's function address.
8277 * arm-tdep.c (arm_frameless_function_invocation): Combine
8278 get_pc_function_start and get_frame_pc into get_frame_func.
8279 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8280 (sh64_nofp_frame_init_saved_regs): Ditto.
8281 * s390-tdep.c (s390_function_start): Ditto.
8282 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8283 (rs6000_frameless_function_invocation): Ditto.
8284 (rs6000_frame_saved_pc): Ditto.
8285 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8286 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8287 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8288 (i386_frame_init_saved_regs): Ditto.
8289 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8290 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8291 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8292 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8293 * blockframe.c (frameless_look_for_prologue): Ditto.
8294
a01dd7cc
AC
82952003-04-05 Andrew Cagney <cagney@redhat.com>
8296
8297 * frame.c (legacy_get_prev_frame): Link prev to next at the
8298 function start. Update comments.
8299
5e5592e6
AC
83002003-04-05 Andrew Cagney <cagney@redhat.com>
8301
8302 * frame.c (get_frame_id): Update comment.
8303 (legacy_get_prev_frame): Update comment.
8304 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8305 * gdbarch.h: Regenerate.
8306 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8307 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8308
6fba5002
AC
83092003-04-05 Andrew Cagney <cagney@redhat.com>
8310
8311 * stack.c (print_frame_info): Use get_frame_pc.
8312
7df05f2b
AC
83132003-04-04 Andrew Cagney <cagney@redhat.com>
8314
8315 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8316 the frame's type from the unwinder.
8317 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8318 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8319 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8320 (get_frame_base_address): Use get_frame_type.
8321 (get_frame_locals_address, get_frame_args_address): Ditto.
8322 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8323 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8324 (struct frame_info): Add comment explaining why the frame contains
8325 a "type" field.
8326 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8327 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8328 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8329 NORMAL_FRAME.
8330 * frame-unwind.h: Include "frame.h".
8331 (struct frame_unwind): Add "type" field.
8332 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8333
11889732
AC
83342003-04-04 Andrew Cagney <cagney@redhat.com>
8335
8336 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8337 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8338 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8339 get_frame_base.
8340 (d10v_unwind_dummy_id): Use frame_id_build.
8341 * frame.c (find_frame_sal): Use get_frame_pc.
8342 (create_new_frame): Use deprecated_update_frame_pc_hack and
8343 deprecated_update_frame_base_hack.
8344 (create_sentinel_frame): Add comment about ->pc going away.
8345 (get_prev_frame): Add comment about ->pc going away.
8346 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8347 frame_id_build, deprecated_update_frame_pc_hack and
8348 deprecated_update_frame_base_hack.
8349 (select_frame): Use get_frame_pc.
8350 (legacy_saved_regs_this_id): Use frame_id_build.
8351
50c46a0d
EZ
83522003-04-04 Elena Zannoni <ezannoni@redhat.com>
8353
fbe586ae
RH
8354 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8355 signed integer case.
8356 (classify_argument): Handle enumerations and references.
50c46a0d 8357
50bbdbd9
AC
83582003-04-04 Andrew Cagney <cagney@redhat.com>
8359
8360 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8361 ID to NULL.
8362
36018d2e
AF
83632003-04-01 Adam Fedor <fedor@gnu.org>
8364
8365 * gdb/objc-lang.c (selectors_info): Replace calls to
8366 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8367 SYMBOL_NATURAL_NAME.
8368 (classes_info, find_methods): Likewise.
8369
35cec841
KB
83702003-04-03 Kevin Buettner <kevinb@redhat.com>
8371
8372 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8373 ``mach'' to the value determined by bfd_default_set_arch_mach().
8374
43136899
BR
83752003-04-02 Bob Rossi <bob_rossi@cox.net>
8376
8377 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8378 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8379 (mi-cmd-file.o): Update dependencies.
8380
040b99fd
KB
83812003-04-01 Kevin Buettner <kevinb@redhat.com>
8382
8383 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8384 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8385
9a3d7dfd
AF
83862003-04-01 Adam Fedor <fedor@gnu.org>
8387
8388 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8389 * language.h (struct language_defn): Add la_demangle.
8390 (language_demangle): Declare.
8391 * language.c (language_demangle): New function.
8392 (unk_lang_demangle): Likewise.
8393 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8394 Add ukn_lang_demangle.
9a3d7dfd 8395 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8396 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8397 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8398 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8399 * jv-lang.c (java_demangle): New function
8400 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8401 * objc-lang.c (objc_demangle): Add options argument
8402 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8403 * maint.c (maintenance_demangle): Replace switch with
8404 call to language_demangle.
8405 * utils.c (fprintf_symbol_filtered): Likewise.
8406
5e074003
AC
84072003-04-01 Andrew Cagney <cagney@redhat.com>
8408
8409 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8410 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8411 PRINT_TYPELESS_INTEGER.
8412 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8413 PUSH_RETURN_ADDRESS.
8414
270cb5d6
AC
84152003-04-01 Andrew Cagney <cagney@redhat.com>
8416
8417 * Makefile.in (d10v-tdep.o): Update dependencies.
8418 * d10v-tdep.c: Include "frame-base.h".
8419 (d10v_frame_unwind): Make constant.
8420 (d10v_frame_base_address): New function.
8421 (d10v_frame_base): New variable.
8422 (d10v_gdbarch_init): Set frame_base default.
8423 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8424 comment for base.
8425 (d10v_frame_unwind_cache): Set and use "prev_sp".
8426 (d10v_frame_this_id): Use the previous frame's inner most stack
8427 address and this frame's func address for the frame ID. Use
8428 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8429
6bfb3e36
AC
84302003-04-01 Andrew Cagney <cagney@redhat.com>
8431
8432 * frame.h (get_frame_locals_address, get_frame_args_address):
8433 Refer to the base address, instead of the address of the first
8434 local or parameter.
8ffd9b1b 8435
da62e633
AC
84362003-04-01 Andrew Cagney <cagney@redhat.com>
8437
8438 Add frame debug info addresses:
8439 * frame-base.c: New file.
8440 * frame-base.h: New file.
8441 * frame.h (struct frame_base): Add opaque declaration.
8442 (get_frame_base): Update comment.
8443 (get_frame_base_address): Declare.
8444 (get_frame_locals_address): Declare.
8445 (get_frame_args_address): Declare.
8446 (struct frame_info): Add "base" and "base_cache". Update
8447 comments on the unwinder.
8448 * frame.c: Include "frame-base.h".
8449 (get_frame_locals_address): New function.
8450 (get_frame_base_address): New function.
8451 (get_frame_args_address): New function.
8452 * findvar.c (read_var_value): Use get_frame_locals_address and
8453 get_frame_args_address.
8454 * stack.c (frame_info): Use get_frame_locals_address and
8455 get_frame_args_address.
8456 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8457 moved to "frame-base.c".
8458 * printcmd.c (print_frame_nameless_args): Ditto.
8459 * symtab.h (address_class): Update comments.
8460 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8461 get_frame_base_address.
8462 * dwarf2expr.c (execute_stack_op): Ditto.
8463 * Makefile.in (frame_base_h): Define.
8464 (frame.o): Update dependencies.
8465 (frame-base.o): Add dependencies.
8466 (SFILES): Add frame-base.c.
8467 (COMMON_OBS): Add frame-base.o.
8468
3d30e9c2
AC
84692003-04-01 Andrew Cagney <cagney@redhat.com>
8470
8471 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8472 CALL_DUMMY_LENGTH): Ditto.
8473 * gdbarch.c: Re-generate.
8474 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8475 (CALL_DUMMY_LENGTH): Delete macro.
8476 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8477 * arm-tdep.c (arm_gdbarch_init): Ditto.
8478 * avr-tdep.c (avr_gdbarch_init): Ditto.
8479 * cris-tdep.c (cris_gdbarch_init): Ditto.
8480 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8481 * frv-tdep.c (frv_gdbarch_init): Ditto.
8482 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8483 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8484 * i386-tdep.c (i386_gdbarch_init): Ditto.
8485 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8486 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8487 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8488 * mips-tdep.c (mips_gdbarch_init): Ditto.
8489 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8490 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8491 * s390-tdep.c (s390_gdbarch_init): Ditto.
8492 * sh-tdep.c (sh_gdbarch_init): Ditto.
8493 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8494 * v850-tdep.c (v850_gdbarch_init): Ditto.
8495 * vax-tdep.c (vax_gdbarch_init): Ditto.
8496 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8497
ce0c7262
CV
84982003-04-01 Corinna Vinschen <vinschen@redhat.com>
8499
8500 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8501
73dd234f
AC
85022003-04-01 Andrew Cagney <cagney@redhat.com>
8503
8504 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8505 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8506 * gdbarch.h, gdbarch.c: Re-generate.
8507 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8508 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8509 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8510 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8511 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8512 * infcmd.c (run_stack_dummy): Simplify assuming
8513 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8514 * infrun.c (handle_inferior_event): Ditto.
8515 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8516 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8517 * arm-tdep.c (arm_gdbarch_init): Ditto.
8518 * avr-tdep.c (avr_gdbarch_init): Ditto.
8519 * cris-tdep.c (cris_gdbarch_init): Ditto.
8520 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8521 * frv-tdep.c (frv_gdbarch_init): Ditto.
8522 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8523 * i386-tdep.c (i386_gdbarch_init): Ditto.
8524 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8525 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8526 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8527 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8528 * mips-tdep.c (mips_gdbarch_init): Ditto.
8529 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8530 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8531 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8532 * s390-tdep.c (s390_gdbarch_init): Ditto.
8533 * sh-tdep.c (sh_gdbarch_init): Ditto.
8534 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8535 * v850-tdep.c (v850_gdbarch_init): Ditto.
8536 * vax-tdep.c (vax_gdbarch_init): Ditto.
8537 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8538
97606a13
DJ
85392003-04-01 Daniel Jacobowitz <drow@mvista.com>
8540
8541 * symfile.c (symfile_relocate_debug_section): Update call to
8542 bfd_simple_get_relocated_section_contents.
8543
e8ab51f7
AC
85442003-03-31 Andrew Cagney <cagney@redhat.com>
8545
8546 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8547 * gdbarch.h, gdbarch.c: Regenerate.
8548 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8549 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8550 available.
8551 * frame.h (generic_fix_call_dummy): Delete declaration.
8552 * dummy-frame.h: Update comment.
8553 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8554 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8555 fix_call_dummy.
8556 * sh-tdep.c (sh_gdbarch_init): Ditto.
8557 * s390-tdep.c (s390_gdbarch_init): Ditto.
8558 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8559 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8560 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8561 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8562 * i386-tdep.c (i386_gdbarch_init): Ditto.
8563 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8564 * frv-tdep.c (frv_gdbarch_init): Ditto.
8565 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8566 * cris-tdep.c (cris_gdbarch_init): Ditto.
8567 * avr-tdep.c (avr_gdbarch_init): Ditto.
8568 * arm-tdep.c (arm_gdbarch_init): Ditto.
8569
018d1b48
JB
85702003-03-31 J. Brobecker <brobecker@gnat.com>
8571
8572 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8573 (INIT_FRAME_AP): Likewise.
8574 (EXTRA_FRAME_INFO): Likewise.
8575
e9a2674e
AC
85762003-03-31 Andrew Cagney <cagney@redhat.com>
8577
8578 * gdbarch.sh: Include "symfile.h".
8579 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8580 * gdbarch.h, gdbarch.c: Re-generate.
8581 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8582 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8583 call_dummy_address, the default is at entry_point_address.
8584 * v850-tdep.c (v850_gdbarch_init): Ditto.
8585 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8586 * sh-tdep.c (sh_gdbarch_init): Ditto.
8587 * s390-tdep.c (s390_gdbarch_init): Ditto.
8588 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8589 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8590 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8591 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8592 * i386-tdep.c (i386_gdbarch_init): Ditto.
8593 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8594 * frv-tdep.c (frv_gdbarch_init): Ditto.
8595 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8596 * cris-tdep.c (cris_gdbarch_init): Ditto.
8597 * arm-tdep.c (arm_gdbarch_init): Ditto.
8598
e8a8712a
AC
85992003-03-31 Andrew Cagney <cagney@redhat.com>
8600
8601 * gdbarch.sh (CALL_DUMMY_P): Delete.
8602 * gdbarch.h, gdbarch.c: Re-generate.
8603 * inferior.h (CALL_DUMMY_P): Delete macro.
8604 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8605 * vax-tdep.c (vax_gdbarch_init): Update.
8606 * v850-tdep.c (v850_gdbarch_init): Update.
8607 * sparc-tdep.c (sparc_gdbarch_init): Update.
8608 * sh-tdep.c (sh_gdbarch_init): Update.
8609 * s390-tdep.c (s390_gdbarch_init): Update.
8610 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8611 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8612 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8613 * mips-tdep.c (mips_gdbarch_init): Update.
8614 * mcore-tdep.c (mcore_gdbarch_init): Update.
8615 * m68k-tdep.c (m68k_gdbarch_init): Update.
8616 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8617 * ia64-tdep.c (ia64_gdbarch_init): Update.
8618 * i386-tdep.c (i386_gdbarch_init): Update.
8619 * h8300-tdep.c (h8300_gdbarch_init): Update.
8620 * frv-tdep.c (frv_gdbarch_init): Update.
8621 * d10v-tdep.c (d10v_gdbarch_init): Update.
8622 * cris-tdep.c (cris_gdbarch_init): Update.
8623 * breakpoint.c (deprecated_frame_in_dummy): Update.
8624 * avr-tdep.c (avr_gdbarch_init): Update.
8625 * alpha-tdep.c (alpha_gdbarch_init): Update.
8626 * arm-tdep.c (arm_gdbarch_init): Update.
8627 * dummy-frame.c (dummy_frame_this_id): Update comments.
8628 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8629 * frame.c (legacy_get_prev_frame): Ditto.
8630 * valops.c (call_function_by_hand): Delete function.
8631 (hand_function_call): Rename to call_function_by_hand
8632
ed234cf8
AC
86332003-03-30 Andrew Cagney <cagney@redhat.com>
8634
8635 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8636 * value.h (struct value): Update comment.
ed234cf8 8637
06c77151
AC
86382003-03-30 Andrew Cagney <cagney@redhat.com>
8639
6c2b5168
AC
8640 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8641 D10V_FP_REGNUM.
8642 (d10v_gdbarch_init): Do not set fp_regnum.
8643
06c77151
AC
8644 * frame.c (get_frame_base): Force ID initialization.
8645 (get_prev_frame): Move computation of the frame ID from here ...
8646 (get_frame_id): ... to here.
8647 (legacy_get_prev_frame): Mark the frame ID as valid.
8648 * frame.h (struct frame_info): Add field "id_p".
8649
97a1a11c
MK
86502003-03-30 Mark Kettenis <kettenis@gnu.org>
8651
8652 * i386-tdep.c (i386_store_struct_return): Removed.
8653 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8654
6c0e89ed
AC
86552003-03-30 Andrew Cagney <cagney@redhat.com>
8656
8657 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8658 * gdbarch.h, gdbarch.c: Regenerate.
8659 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8660 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8661 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8662 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8663 * i386-tdep.c (i386_gdbarch_init): Ditto.
8664 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8665 * cris-tdep.c (cris_gdbarch_init): Ditto.
8666 * vax-tdep.c (vax_gdbarch_init): Ditto.
8667 * s390-tdep.c (s390_gdbarch_init): Ditto.
8668 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8669 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8670 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8671 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8672 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8673 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8674 * sparc-tdep.c (sparc_gdbarch_init): Update.
8675 * sh-tdep.c (sh_gdbarch_init): Update.
8676 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8677 * mips-tdep.c (mips_gdbarch_init): Update.
8678 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8679 * ia64-tdep.c (ia64_gdbarch_init): Update.
8680 * frv-tdep.c (frv_gdbarch_init): Update.
8681 * avr-tdep.c (avr_gdbarch_init): Update.
8682 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8683 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8684 instead of when push_dummy_call is not available.
8ffd9b1b 8685
f7dd6af2
AC
86862003-03-30 Andrew Cagney <cagney@redhat.com>
8687
8688 * infttrace.c: Include "gdbthread.h".
8689 (parent_attach_all): Fix function signature.
8690 (call_ptrace): Update call.
8691 * Makefile.in (infttrace.o): Update dependencies.
8692
28f617b3
AC
86932003-03-30 Andrew Cagney <cagney@redhat.com>
8694
8695 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8696 PUSH_RETURN_ADDRESS.
8697 * gdbarch.h, gdbarch.c: Regenerate.
8698 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8699 * x86-64-tdep.c (x86_64_init_abi): Update.
8700 * v850-tdep.c (v850_gdbarch_init): Update.
8701 * sparc-tdep.c (sparc_gdbarch_init): Update.
8702 * sh-tdep.c (sh_gdbarch_init): Update.
8703 * s390-tdep.c (s390_gdbarch_init): Update.
8704 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8705 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8706 * mips-tdep.c (mips_gdbarch_init): Update.
8707 * mcore-tdep.c (mcore_gdbarch_init): Update.
8708 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8709 * ia64-tdep.c (ia64_gdbarch_init): Update.
8710 * i386-tdep.c (i386_gdbarch_init): Update.
8711 * h8300-tdep.c (h8300_gdbarch_init): Update.
8712 * frv-tdep.c (frv_gdbarch_init): Update.
8713 * cris-tdep.c (cris_gdbarch_init): Update.
8714 * avr-tdep.c (avr_gdbarch_init): Update.
8715 * arm-tdep.c (arm_gdbarch_init): Update.
8716 * valops.c (hand_function_call): Update.
8717
4d628cd7
AC
87182003-03-29 Andrew Cagney <cagney@redhat.com>
8719
8720 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8721 sizeof_call_dummy_words.
8722 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8723 define.
8724 * gdbarch.h: Regenerate.
8ffd9b1b 8725
65e82032
AC
87262003-03-29 Andrew Cagney <cagney@redhat.com>
8727
8728 * infttrace.h: New file.
8729 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8730 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8731 (hpread_read_doc_function_type): Detect an initialized type1.
8732 (hpread_quick_traverse): Initialize mod_name_string.
8733 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8734 (som_solib_get_solib_by_pc): Declare.
8735 (so_lib_thread_start_addr): Declare.
8736 (no_shared_libraries): Declare.
8737 * somread.c (init_import_symbols): Make static. Add forward
8738 declaration.
8739 * config/pa/nm-hppah.h: Include "infttrace.h" for
8740 parent_attach_all.
8741 (hppa_insert_hw_watchpoint): Declare.
8742 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8743 * hppah-nat.c: Include "gdb_string.h".
8744 (parent_attach_all): Delete extern declaration, moved to
8745 "infttrace.h".
8746 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8747 int.
8748 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8749 * Makefile.in (infttrace_h): Define.
8750 (hpread.o): Update dependencies.
8751 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8752 * hppa-hpux-tdep.c: Include "gdb_string.h".
8753 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8754 * infrun.c (handle_inferior_event): Always initialize
8755 stepped_after_stopped_by_watchpoint. Add default and remove
8756 fallthrough in switch statement.
8757 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8758 parameter to int.
8759 (hppa_remove_hw_watchpoint): Ditto.
8760
2c3bbe77
AC
87612003-03-29 Andrew Cagney <cagney@redhat.com>
8762
8763 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8764 offset.
8765
2dd604e7
RE
87662003-03-29 Richard Earnshaw <rearnsha@arm.com>
8767
8768 * arm-tdep.c (arm_push_arguments): Delete.
8769 (struct stack_item): New type.
8770 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8771 (arm_store_struct_return): Delte.
8772 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8773 arm_push_arguments or arm_store_struct_return.
8774
e8933a55
AC
87752003-03-28 Andrew Cagney <cagney@redhat.com>
8776
8777 * Makefile.in (d10v-tdep.o): Update dependencies.
8778 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8779 * d10v-tdep.c: Include "remote.h".
8780 (target_resume_hook): Delete extern declaration.
8781 (target_wait_loop_hook): Ditto.
8782 (tdisassemble_command): Eliminate assignment in "if" conditional.
8783 (d10v_ts2_register_sim_regno): Eliminate call to
8784 legacy_register_sim_regno.
8785 (d10v_ts3_register_sim_regno): Ditto.
8786
6949171e
JJ
87872003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8788
8789 * thread.c: Reindented.
8790 * lin-lwp.c: Ditto.
8791 * linux-proc.c: Ditto.
8792
98c7071f
BR
87932003-03-28 Bob Rossi <bob_rossi@cox.net>
8794
fbe586ae 8795 * MAINTAINERS (write after approval): Add myself.
98c7071f 8796
5edc9ca6
TR
87972003-03-27 Theodore A. Roth <troth@openavr.org>
8798
8799 * objc-exp.y: Add missing semi-colons.
8800
378bfd1b
AC
88012003-03-27 Andrew Cagney <cagney@redhat.com>
8802
8803 * regcache.c (write_sp): Delete function and references.
8804 * inferior.h (write_sp): Delete declaration.
8805 * valops.c (hand_function_call): Replace write_sp with
8806 TARGET_WRITE_SP.
8807 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8808 (sparc_pop_frame): Ditto.
8ffd9b1b 8809
56056df7
AC
88102003-03-27 Andrew Cagney <cagney@redhat.com>
8811
8812 * NEWS: Mention removal of support for hppa*-*-bsd* and
8813 hppa*-*-osf* natives, and hppa*-*-pro* target.
8814 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8815 * config/pa/xm-pa.h: Obsolete file.
8816 * config/pa/xm-hppab.h: Obsolete file.
8817 * config/pa/nm-hppab.h: Obsolete file.
8818 * config/pa/tm-hppab.h: Obsolete file.
8819 * config/pa/tm-hppao.h: Obsolete file.
8820 * config/pa/nm-hppao.h: Obsolete file.
8821 * config/pa/tm-pro.h: Obsolete file.
8822 * config/pa/hppaosf.mt: Obsolete file.
8823 * config/pa/hppaosf.mh: Obsolete file.
8824 * config/pa/hppapro.mt: Obsolete file.
8825 * config/pa/hppabsd.mt: Obsolete file.
8826 * config/pa/hppabsd.mh: Obsolete file.
8827 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8828 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8829 hppa*-*-osf*.
8830
5873a88d
AC
88312003-03-27 Andrew Cagney <cagney@redhat.com>
8832
8833 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8834 push_arguments. Don't set push_return_address or write_sp.
8835 (d10v_push_dummy_call): Replace d10v_push_arguments.
8836 (d10v_push_return_address, d10v_write_sp): Delete function,
8837 handled by push_dummy_call.
8838
b81774d8
AC
88392003-03-26 Andrew Cagney <cagney@redhat.com>
8840
8841 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8842 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8843 regcache and dummy_addr parameters.
8844 * gdbarch.h, gdbarch.c: Re-generate.
8845 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8846 available; assume it will handle stack alignment and return
8847 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8848 legacy_push_arguments.
8849 (legacy_push_arguments): Rename default_push_arguments.
8850 * value.h (legacy_push_arguments): Rename default_push_arguments.
8851 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8852 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8853 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8854 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8855 * config/i386/tm-symmetry.h: Update.
8856 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8857 * x86-64-tdep.c (x86_64_init_abi): Update.
8858 * v850-tdep.c (v850_gdbarch_init): Update.
8859 * sparc-tdep.c (sparc_gdbarch_init): Update.
8860 * sh-tdep.c (sh_gdbarch_init): Update.
8861 * s390-tdep.c (s390_gdbarch_init): Update.
8862 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8863 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8864 * mips-tdep.c (mips_gdbarch_init): Update.
8865 * mcore-tdep.c (mcore_gdbarch_init): Update.
8866 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8867 * ia64-tdep.c (ia64_gdbarch_init): Update.
8868 * i386-tdep.c (i386_gdbarch_init): Update.
8869 * hppa-tdep.c (hppa_gdbarch_init): Update.
8870 * h8300-tdep.c (h8300_gdbarch_init): Update.
8871 * frv-tdep.c (frv_gdbarch_init): Update.
8872 * d10v-tdep.c (d10v_gdbarch_init): Update.
8873 * cris-tdep.c (cris_gdbarch_init): Update.
8874 * avr-tdep.c (avr_gdbarch_init): Update.
8875 * arm-tdep.c (arm_gdbarch_init): Update.
8876 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8877 * alpha-tdep.c (alpha_gdbarch_init): Update.
8878
f541410f
DJ
88792003-03-26 Daniel Jacobowitz <drow@mvista.com>
8880
8881 * signals/signals.c (do_target_signal_to_host): Correct realtime
8882 signal range test.
8883
69f567ae
DJ
88842003-03-26 Daniel Jacobowitz <drow@mvista.com>
8885
8886 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8887 (struct sal_chain, map_catch_names): Remove.
8888 (catch_exception_command_1): Don't call
8889 handle_gnu_4_16_catch_command.
8890
d5d14a5a
DJ
88912003-03-26 Daniel Jacobowitz <drow@mvista.com>
8892
8893 From Mark Dettinger <dettinge@de.ibm.com>:
8894 * dwarf2cfi.c (read_2u): Increment pointer by two.
8895
bdd73e22
DJ
88962003-03-26 Daniel Jacobowitz <drow@mvista.com>
8897
8898 * signals/signals.c: Fix typos in last change.
8899
960cb555
DJ
89002003-03-26 Daniel Jacobowitz <drow@mvista.com>
8901
8902 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8903 not already defined. Use __SIGRTMIN if available.
8904 (target_signal_from_host): Remove SIGRTMIN block.
8905 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8906 the signal is within the realtime range.
8907
f636b87d
AF
89082003-03-25 Adam Fedor <fedor@gnu.org>
8909
8910 * Makefile.in (infrun.o): Add $(language_h)
8911 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8912 for language specific trampolines.
8913 * language.h (struct language_defn): Add skip_trampoline.
8914 (skip_language_trampoline): Declare.
8915 * language.c (unk_lang_trampoline, skip_language_trampoline):
8916 New functions.
8917 (unknown_language_defn, auto_language_defn, local_language_defn):
8918 Add ukn_lang_trampoline.
8919 * ada-lang.c (ada_language_defn): Add NULL for language
8920 specific skip_trampoline.
8921 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8922 scm-lang.c: Likewise.
8923 * objc-lang.c (objc_skip_trampoline): New function.
8924 (objc_language_defn): Add objc_skip_trampoline.
8925
28f617b3 89262003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
8927
8928 * frame.c (get_prev_frame): Delay validating a frame's ID -
8929 non-NULL, didn't go backwards - until an attempt to unwind it to
8930 the previous frame.
8931
f933a9c5
AC
89322003-03-25 Andrew Cagney <cagney@redhat.com>
8933
8934 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8935 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8936 * gdbarch.h, gdbarch.c: Re-generate.
8937 * config/sparc/tm-sparc.h
8938 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8939 * sparc-tdep.c (sparc_gdbarch_init): Set
8940 deprecated_extra_stack_alignment_needed.
8941 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8942 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8943 extra_stack_alignment_needed.
8944 * v850-tdep.c (v850_gdbarch_init): Ditto.
8945 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8946 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8947 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8948 * cris-tdep.c (cris_gdbarch_init): Ditto.
8949 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8950 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8951
4183d812
AC
89522003-03-25 Andrew Cagney <cagney@redhat.com>
8953
8954 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8955 STORE_STRUCT_RETURN.
8956 * gdbarch.h, gdbarch.c: Regenerate.
8957 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8958 (d10v_push_arguments): Set the struct return register.
8959 (d10v_gdbarch_init): Update.
8960 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8961 * x86-64-tdep.c (x86_64_init_abi): Update.
8962 * vax-tdep.c (vax_gdbarch_init): Update.
8963 * v850-tdep.c (v850_gdbarch_init): Update.
8964 * sparc-tdep.c (sparc_gdbarch_init): Update.
8965 * sh-tdep.c (sh_gdbarch_init): Update.
8966 * s390-tdep.c (s390_gdbarch_init): Update.
8967 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8968 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8969 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8970 * mips-tdep.c (mips_gdbarch_init): Update.
8971 * mcore-tdep.c (mcore_gdbarch_init): Update.
8972 * m68k-tdep.c (m68k_gdbarch_init): Update.
8973 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8974 * ia64-tdep.c (ia64_gdbarch_init): Update.
8975 * i386-tdep.c (i386_gdbarch_init): Update.
8976 * hppa-tdep.c (hppa_gdbarch_init): Update.
8977 * h8300-tdep.c (h8300_gdbarch_init): Update.
8978 * frv-tdep.c (frv_gdbarch_init): Update.
8979 * cris-tdep.c (cris_gdbarch_init): Update.
8980 * avr-tdep.c (avr_gdbarch_init): Update.
8981 * arm-tdep.c (arm_gdbarch_init): Update.
8982 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8983
1bf6d5cc
AC
89842003-03-25 Andrew Cagney <cagney@redhat.com>
8985
8986 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8987 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8988 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8989 * gdbarch.h, gdbarch.c: Regenerate.
8990 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8991 call_dummy_stack_adjust_p.
8992 * vax-tdep.c (vax_gdbarch_init): Ditto.
8993 * v850-tdep.c (v850_gdbarch_init): Ditto.
8994 * sh-tdep.c (sh_gdbarch_init): Ditto.
8995 * s390-tdep.c (s390_gdbarch_init): Ditto.
8996 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8997 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8998 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8999 * mips-tdep.c (mips_gdbarch_init): Ditto.
9000 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9001 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9002 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9003 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9004 * i386-tdep.c (i386_gdbarch_init): Ditto.
9005 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9006 * frv-tdep.c (frv_gdbarch_init): Ditto.
9007 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9008 * cris-tdep.c (cris_gdbarch_init): Ditto.
9009 * avr-tdep.c (avr_gdbarch_init): Ditto.
9010 * arm-tdep.c (arm_gdbarch_init): Ditto.
9011 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9012 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9013 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9014 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9015 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9016 call_dummy_stack_adjust_p.
9017 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9018 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9019 * sparc-tdep.c (sparc32_push_arguments): Update.
9020 * valops.c (hand_function_call): Update.
9021
71c08af0
CV
90222003-03-25 Corinna Vinschen <vinschen@redhat.com>
9023
9024 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9025 set_gdbarch_char_signed.
9026
30757f90
RE
90272003-03-25 Richard Earnshaw <rearnsha@arm.com>
9028
9029 PR cli/548
9030 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9031
03d48a7d
RE
90322003-03-25 Richard Earnshaw <rearnsha@arm.com>
9033
9034 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9035 (_initialize_arm_tdep): Don't set tm_print_insn.
9036
2cf6873c
AF
90372003-03-24 Adam Fedor <fedor@gnu.org>
9038
9039 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9040 * objc-lang.h: Add multiple inclusion protection.
9041 (start_msglist, add_msglist, end_msglist): Additional declarations.
9042
17c0759e
RE
90432003-03-24 Richard Earnshaw <rearnsha@arm.com>
9044
9045 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9046 value was renamed to ARM_FLOAT_SOFT_FPA.
9047
618ce49f
AC
90482003-03-23 Andrew Cagney <cagney@redhat.com>
9049
9050 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9051 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9052 * gdbarch.h, gdbarch.c: Regenerate.
9053 * valops.c (hand_function_call): Update.
9054 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9055 * frame.c (legacy_saved_regs_this_id): Update.
9056 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9057 * dummy-frame.h: Update.
9058 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9059 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9060 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9061 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9062 * config/m68k/tm-sun3.h: Update.
9063 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9064 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9065 * x86-64-tdep.c (x86_64_init_abi): Update.
9066 * vax-tdep.c (vax_gdbarch_init): Update.
9067 * v850-tdep.c (v850_gdbarch_init): Update.
9068 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9069 * sh-tdep.c (sh_gdbarch_init): Update.
9070 * s390-tdep.c (s390_gdbarch_init): Update.
9071 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9072 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9073 (frame_get_saved_regs): Update.
9074 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9075 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9076 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9077 * mips-tdep.c (mips_gdbarch_init): Update.
9078 * mcore-tdep.c (mcore_gdbarch_init): Update.
9079 * m68k-tdep.c (m68k_gdbarch_init): Update.
9080 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9081 * ia64-tdep.c (ia64_gdbarch_init): Update.
9082 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9083 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9084 (i386_interix_back_one_frame): Update.
9085 * hppa-tdep.c (hppa_gdbarch_init): Update.
9086 (hppa_init_extra_frame_info): Update.
9087 * h8300-tdep.c (h8300_gdbarch_init): Update.
9088 * frv-tdep.c (frv_gdbarch_init): Update.
9089 * cris-tdep.c (cris_gdbarch_init): Update.
9090 * avr-tdep.c (avr_gdbarch_init): Update.
9091 * arm-tdep.c (arm_gdbarch_init): Update.
9092 * alpha-tdep.c (alpha_gdbarch_init): Update.
9093
fd50bc42
RE
90942003-03-22 Richard Earnshaw <rearnsha@arm.com>
9095
9096 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9097 (arm_get_fp_model): Declare.
9098 * arm-tdep.c (fp_model_strings): New string array.
9099 (arm_fp_model, current_fp_model): New variables.
9100 (arm_get_fp_model): New function.
9101 (arm_set_fp): New function.
9102 (set_fp_model_sfunc): New function.
9103 (show_fp_model): New function.
9104 (_initialize_arm_tdep): Add new command to set/show the FPU.
9105 (arm_extract_return_value): Use arm_get_fp_model.
9106 (arm_store_return_value): Likewise.
9107 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9108 to initialize the floating-point data types.
9109 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9110 model is FPA.
9111
26304000
RE
91122003-03-22 Richard Earnshaw <rearnsha@arm.com>
9113
9114 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9115 the current setting of each value.
9116 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9117 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9118 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9119 commands and add new version as subcommands of "set/show arm".
9120
afd7eef0
RE
91212003-03-22 Richard Earnshaw <rearnsha@arm.com>
9122
9123 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9124 (set_arm_command, show_arm_command): New functions.
9125 (_initialize_arm_tdep): Add them.
9126 (num_disassembly_options): Renamed from num_flavor_options.
9127 (valid_disassembly_styles): Renamed from valid_flavors.
9128 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9129 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9130 set_disassembly_flavor_sfunc.
9131 (set_disassembly_style): Renamed from set_disassembly_flavor.
9132 (arm_othernames): Updated.
9133 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9134 command. Add "set/show arm disassembly" commands. Deprecate
9135 "othernames" command.
9136
299a7944
RE
91372003-03-22 Richard Earnshaw <rearnsha@arm.com>
9138
9139 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9140 (arm-tdep.o): Depend on elf_arm_h.
9141
c1dac9e6
RE
91422003-03-22 Richard Earnshaw <rearnsha@arm.com>
9143
9144 * Makefile.in (coff_internal_h): Define.
9145 (arm-tdep.o): Update dependencies.
9146
2702d96c
RE
91472003-03-22 Richard Earnshaw <rearnsha@arm.com>
9148
9149 * arm-tdep.c (prologue_cache): Delete.
9150 (check_prologue_cache, save_prologue_cache): Delete.
9151 (arm_scan_prologue): Don't check or update the prologue_cache.
9152 (arm_gdb_arch_init): Don't initialize it.
9153 (_initialize_arm_tdep): Likewise.
9154
27d5d74b
SC
91552003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9156
9157 * MAINTAINERS (tui): Maintainer of tui code.
9158
1762d96d
CV
91592003-03-21 Corinna Vinschen <vinschen@redhat.com>
9160
9161 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9162 (i386-cygwin-tdep.o): Add dependencies.
9163 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9164 * i386-cygwin-tdep.c: New file.
9165 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9166 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9167
4c2e2391
AC
91682003-03-20 Andrew Cagney <cagney@redhat.com>
9169
f20d38b7
AC
9170 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9171 (handle_inferior_event): Remove code calling
9172 DYNAMIC_TRAMPOLINE_NEXTPC.
9173
0022b738
AC
9174 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9175 already has a full path.
9176
864dbc90
AC
9177 * main.c (gdb_main): Return 1.
9178 (captured_main): Call error to report an invalid interpreter.
9179
4c2e2391
AC
9180 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9181 * alpha-osf1-tdep.c: Include "gdb_string.h".
9182
5ef7553b
JB
91832003-03-19 J. Brobecker <brobecker@gnat.com>
9184
9185 Continuing work to convert the hppa targets to multiarch partial.
9186
9187 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9188 method, now that hppa_push_dummy_frame has a conformant prototype.
9189 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9190 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9191 for the switch to multiarch partial.
9192
7bde8967
KB
91932003-03-19 Kevin Buettner <kevinb@redhat.com>
9194
9195 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9196 when iss is issNull.
9197
b006a9e9
KB
91982003-03-18 Kevin Buettner <kevinb@redhat.com>
9199
9200 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9201 NUM_REGS bounds check.
9202
5e2e9765
KB
92032003-03-18 Kevin Buettner <kevinb@redhat.com>
9204
9205 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9206 * mips-tdep.c (gdb_assert.h): Include.
9207 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9208 (mips_register_name): Handle integer registers explicitly. Add
9209 bounds checking.
9210 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9211 (mips_lsi33k_reg_names): Don't list integer registers; they're
9212 handled by mips_register_name() now.
9213 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9214 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9215 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9216 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9217 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9218
a2867626
AC
92192003-03-18 Andrew Cagney <cagney@redhat.com>
9220
9221 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9222 a void pointer.
9223 * gdbtypes.h (print_scalar_formatted): Update declaration.
9224 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9225
06600e06
JB
92262003-03-18 J. Brobecker <brobecker@gnat.com>
9227
9228 * infrun.c (observer.h): Add #include.
9229 (normal_stop): Add call to observer_notify_normal_stop.
9230 * Makefile.in (infrun.o): Add dependency on observer.h.
9231
7daf4f5b
JB
92322003-03-18 J. Brobecker <brobecker@gnat.com>
9233
9234 Continuing work to convert the hppa targets to multiarch partial.
9235 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9236 parameter. Reformat comment.
9237 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9238 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9239 to match new profile.
9240
3371ccc0
JB
92412003-03-18 J. Brobecker <brobecker@gnat.com>
9242
9243 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9244 appear to be working in any case.
9245
4fbe891e
JB
92462003-03-18 J. Brobecker <brobecker@gnat.com>
9247
9248 * observer.c (observer_test_first_observer): New static variable.
9249 (observer_test_second_observer): Likewise.
9250 (observer_test_third_observer): Likewise.
9251 (observer_test_first_notification_function): New static function.
9252 (observer_test_second_notification_function): Likewise.
9253 (observer_test_third_notification_function): Likewise.
9254
a7ff40e7
JB
92552003-03-17 J. Brobecker <brobecker@gnat.com>
9256
9257 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9258 * somsolib.c (gdb_assert.h): Likewise.
9259 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9260 (somsolib.o): Likewise.
9261
26ca4152
AC
92622003-03-17 Andrew Cagney <cagney@redhat.com>
9263
9264 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9265 BFD. Simplify setting of di.endian.
9266
0a613259
AC
92672003-03-17 Andrew Cagney <cagney@redhat.com>
9268
9269 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9270 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9271
9272 From Elena Zannoni <ezannoni@redhat.com>
9273 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9274 vector and floating-point parameters.
9275 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9276 convention.
9277 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9278
1132738f
FN
92792003-03-17 Fernando Nasser <fnasser@redhat.com>
9280
9281 * MAINTAINERS: Remove my name from several maintainership roles.
9282
6dc42492
AC
92832003-03-17 Andrew Cagney <cagney@redhat.com>
9284
9285 Fix frame off-by-one bug.
9286 * frame-unwind.h (frame_this_id_ftype): Replace
9287 frame_unwind_id_ftype.
9288 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9289 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9290 with "prev_register".
9291 * frame-unwind.c (frame_unwind_find_by_pc): Return
9292 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9293 comment.
9294 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9295 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9296 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9297 (dummy_frame_unwind): Update.
9298 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9299 sentinel_frame_register_unwind.
9300 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9301 (sentinel_frame_unwinder): Update.
9302 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9303 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9304 * frame.c (create_sentinel_frame): Update. Initialize
9305 "prologue_cache" instead of "unwind_cache".
9306 (frame_register_unwind): Call this frame's prev_register with the
9307 next frame and this frame's prologue cache.
9308 (get_prev_frame): Simplify. Always call prev frame's this_id with
9309 this frame and prev frame's prologue cache. Document that this
9310 call is shifted one to the left when compared to the
9311 frame_register_unwind call.
9312 (legacy_saved_regs_prev_register): Replace
9313 frame_saved_regs_register_unwind.
9314 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9315 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9316 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9317 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9318 (d10v_frame_unwind): Update.
9319 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9320 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9321 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9322 "saved_regs" with "this_saved_regs".
9323
efd710d6
AC
93242003-03-16 Andrew Cagney <cagney@redhat.com>
9325
9326 * frame.c (frame_pop): Don't call target_store_registers. Fix
9327 problem reported by Mark Kettenis.
9328
4e259f09
MK
93292003-03-16 Mark Kettenis <kettenis@gnu.org>
9330
9331 * i386-tdep.c (i386_register_type): Renamed from
9332 i386_register_virtual_type. Adjust function signature.
9333 (i386_gdbarch_init): Set register_type instead of
9334 deprecated_max_register_raw_size,
9335 deprecated_max_register_virtual_size and register_virtual_type.
9336
055bb976
AC
93372003-03-14 Andrew Cagney <cagney@redhat.com>
9338
9339 * frame.c (get_prev_frame): When a legacy frame, always call
9340 legacy_get_prev_frame. Simplify unwind code using assumption that
9341 the unwinder is new.
9342 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9343 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9344 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9345
ac2adee5
AC
93462003-03-14 Andrew Cagney <cagney@redhat.com>
9347
9348 * frame.c (get_saved_register): Delete function.
9349 * frame.h (get_saved_register): Delete declaration.
9350 * xstormy16-tdep.c: Update comment.
9351 * regcache.h: Update comments.
9352 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9353 get_saved_register and extract_address, use
9354 frame_read_unsigned_register.
9355 (sparc_frame_saved_pc): Ditto.
9356 (sparc_get_saved_register): Instead of get_saved_register, use
9357 frame_register.
9358 (sparc_pop_frame): Ditto.
9359 * findvar.c: Update comments.
9360 (value_of_register): Call frame_register instead of
9361 get_saved_register.
9362 (value_from_register): Ditto.
9363 * config/sparc/tm-sparc.h: Update comment.
9364 * breakpoint.c: Update comment.
9365
129c1cd6
AC
93662003-03-14 Andrew Cagney <cagney@redhat.com>
9367
9368 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9369 GET_SAVED_REGISTER.
9370 * gdbarch.h, gdbarch.c: Re-generate.
9371 * frame.h: Update comments.
9372 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9373 * x86-64-tdep.c (x86_64_init_abi): Update.
9374 * sparc-tdep.c (sparc_gdbarch_init): Update.
9375 * sh-tdep.c (sh_gdbarch_init): Update.
9376 * mips-tdep.c (mips_gdbarch_init): Update.
9377 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9378 * cris-tdep.c (cris_gdbarch_init): Update.
9379 * ia64-tdep.c (ia64_gdbarch_init): Update.
9380 * frame.c (frame_register): Update.
9381 (get_saved_register): Update.
9382 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9383
749b82f6
AC
93842003-03-13 Andrew Cagney <cagney@redhat.com>
9385
9386 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9387 * gdbarch.h, gdbarch.c: Regenerate.
9388 * valops.c (hand_function_call): Update comment.
9389 * stack.c (return_command): Update comment.
9390 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9391 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9392 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9393 * x86-64-tdep.c (x86_64_init_abi): Update.
9394 * vax-tdep.c (vax_gdbarch_init): Update.
9395 * v850-tdep.c (v850_gdbarch_init): Update.
9396 * sparc-tdep.c (sparc_gdbarch_init): Update.
9397 * sh-tdep.c (sh_gdbarch_init): Update.
9398 * s390-tdep.c (s390_gdbarch_init): Update.
9399 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9400 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9401 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9402 * mips-tdep.c (mips_gdbarch_init): Update.
9403 * mcore-tdep.c (mcore_gdbarch_init): Update.
9404 * m68k-tdep.c (m68k_gdbarch_init): Update.
9405 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9406 * ia64-tdep.c (ia64_gdbarch_init): Update.
9407 * i386-tdep.c (i386_gdbarch_init): Update.
9408 * hppa-tdep.c (hppa_gdbarch_init): Update.
9409 * h8300-tdep.c (h8300_gdbarch_init): Update.
9410 * frv-tdep.c (frv_gdbarch_init): Update.
9411 * cris-tdep.c (cris_gdbarch_init): Update.
9412 * avr-tdep.c (avr_gdbarch_init): Update.
9413 * arm-tdep.c (arm_gdbarch_init): Update.
9414 * alpha-tdep.c (alpha_gdbarch_init): Update.
9415
1594fa56
AC
94162003-03-13 Andrew Cagney <cagney@redhat.com>
9417
9418 * frame.c (legacy_frame_p): New function.
9419 (get_prev_frame): Use legacy_frame_p.
9420 * frame.h (legacy_frame_p): Declare.
9421
7717fda3
V
94222003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9423
fbe586ae 9424 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9425 listing corrected.
9426
0c67cbe9
V
94272003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9428
fbe586ae 9429 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9430
03febf99
AC
94312003-03-12 Andrew Cagney <cagney@redhat.com>
9432
9433 * frame.c (get_prev_frame): Rename the frame parameter to
9434 "this_frame".
9435 (get_next_frame, legacy_get_prev_frame): Ditto.
9436
0a1e1ca1
AC
94372003-03-12 Andrew Cagney <cagney@redhat.com>
9438
9439 * frame.c (get_current_frame): Check target_has_registers before
9440 checking target_has_stack.
9441 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9442 instead of deprecated_selected_frame.
9443 * findvar.c (value_of_register): Pass "frame", not
9444 deprecated_selected_frame, to value_of_builtin_reg.
9445
a66a9c23
AC
94462003-03-12 Andrew Cagney <cagney@redhat.com>
9447
9448 * regcache.c (regcache_cooked_write_signed): New function.
9449 (regcache_cooked_write_unsigned): New function.
9450 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9451 (regcache_cooked_read_signed): Fix regnum in range assertion.
9452 * regcache.h (regcache_cooked_write_signed): Declare.
9453 (regcache_cooked_write_unsigned): Declare.
9454
8bedc050
AC
94552003-03-12 Andrew Cagney <cagney@redhat.com>
9456
9457 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9458 * gdbarch.h, gdbarch.c: Re-generate.
9459 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9460 * x86-64-tdep.h: Update.
9461 * x86-64-tdep.c (x86_64_init_abi): Update.
9462 * v850-tdep.c (v850_gdbarch_init): Update.
9463 * sparc-tdep.c (sparc_gdbarch_init): Update.
9464 * sh-tdep.c (sh_gdbarch_init): Update.
9465 * s390-tdep.c (s390_gdbarch_init): Update.
9466 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9467 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9468 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9469 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9470 * mips-tdep.c (mips_gdbarch_init): Update.
9471 * mcore-tdep.c (mcore_gdbarch_init): Update.
9472 * m68k-tdep.c (m68k_gdbarch_init): Update.
9473 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9474 * ia64-tdep.c (ia64_gdbarch_init): Update.
9475 * i386-tdep.c (i386_gdbarch_init): Update.
9476 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9477 * hppa-tdep.c (hppa_gdbarch_init): Update.
9478 * h8300-tdep.c (h8300_gdbarch_init): Update.
9479 * frv-tdep.c (frv_gdbarch_init): Update.
9480 * cris-tdep.c (cris_gdbarch_init): Update.
9481 * avr-tdep.c (avr_gdbarch_init): Update.
9482 * arm-tdep.c (arm_gdbarch_init): Update.
9483 * alpha-tdep.c (alpha_gdbarch_init): Update.
9484 * sh-tdep.c (sh_init_extra_frame_info): Update.
9485 (sh64_init_extra_frame_info): Update.
9486 * ns32knbsd-nat.c (frame_num_args): Update.
9487 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9488 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9489 (xstormy16_frame_chain_valid): Update.
9490 * vax-tdep.c (vax_saved_pc_after_call): Update.
9491 * v850-tdep.c (v850_frame_chain): Update.
9492 (v850_pop_frame): Update.
9493 (v850_init_extra_frame_info): Update.
9494 * sparc-tdep.c (setup_arbitrary_frame): Update.
9495 * ns32k-tdep.c (umax_frame_num_args): Update.
9496 * s390-tdep.c (s390_pop_frame_regular): Update.
9497 * mn10300-tdep.c (mn10300_frame_chain): Update.
9498 (mn10300_pop_frame_regular): Update.
9499 (mn10300_init_extra_frame_info): Update.
9500 * mips-tdep.c (mips_init_frame_pc_first): Update.
9501 (mips_frame_chain): Update.
9502 (mips_pop_frame): Update.
9503 * mcore-tdep.c (mcore_frame_chain): Update.
9504 (mcore_pop_frame): Update.
9505 (mcore_init_extra_frame_info): Update.
9506 * arch-utils.c (init_frame_pc_default): Update.
9507 * m68k-tdep.c (isi_frame_num_args): Update.
9508 (delta68_frame_num_args): Update.
9509 (news_frame_num_args): Update.
9510 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9511 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9512 (alpha_frame_chain): Update.
9513 (alpha_pop_frame): Update.
9514 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9515 (hppa_init_extra_frame_info): Update.
9516 (hppa_frame_chain): Update.
9517 (hppa_frame_chain_valid): Update.
9518 * cris-tdep.c (cris_init_extra_frame_info): Update.
9519 * avr-tdep.c (avr_init_extra_frame_info): Update.
9520 * arm-tdep.c (arm_frame_chain_valid): Update.
9521 (arm_init_extra_frame_info): Update.
9522 (arm_pop_frame): Update.
9523 * frame.c (frame_pc_unwind): Update.
9524 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9525 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9526 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9527 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9528 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9529 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9530
7a25a7c1
AC
95312003-03-12 Andrew Cagney <cagney@redhat.com>
9532
9533 Eliminate the need for POP_FRAME.
9534 * frame.c (do_frame_unwind_register): New function.
9535 (frame_pop): When no POP_FRAME, pop the frame using register
9536 unwind and a scratch regcache.
9537 (frame_saved_regs_pop): Delete function.
9538 (trad_frame_unwinder): Update.
9539 * d10v-tdep.c (d10v_frame_pop): Delete function.
9540 (d10v_frame_unwind): Update.
9541 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9542 (sentinel_frame_unwinder): Update.
9543 * dummy-frame.c (dummy_frame_pop): Delete function.
9544 (dummy_frame_unwind): Update.
9545 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9546 (struct frame_unwind): Update.
9547
2f38ef89
KB
95482003-03-11 Kevin Buettner <kevinb@redhat.com>
9549
9550 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9551 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9552 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9553 Do range checks on register number obtained from debugging info.
9554 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9555 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9556 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9557 mapping function.
9558 (do_fp_register_row): Fix typo which caused double type to be
9559 used when attempting to unpack a float.
9560
552f4abf
JB
95612003-03-11 J. Brobecker <brobecker@gnat.com>
9562
9563 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9564
e0d2ae16
AC
95652003-03-11 Andrew Cagney <cagney@redhat.com>
9566
9567 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9568 frame. Problem found by Corinna Vinschen.
9569
ddbfdd06
PM
95702003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9571
9572 * doublest.c (floatformat_from_length): Accept also
9573 the real size of 'long double' type.
9574
088b2ddc 95752003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9576
088b2ddc 9577 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9578 * breakpoint.c (bpstat_copy): Copy the command lines as well
9579 as the old value, to match what is freed in bpstat_clear.
9580
f56f77c1
DC
95812003-03-10 David Carlton <carlton@math.stanford.edu>
9582
9583 * minsyms.c (add_minsym_to_hash_table): Replace
9584 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9585 (compare_minimal_symbols, compact_minimal_symbols)
9586 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9587 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9588 of DEPRECATED_SYMBOL_MATCHES_NAME.
9589 (lookup_minimal_symbol_solib_trampoline): Ditto.
9590
5602984a
AC
95912003-03-10 Andrew Cagney <cagney@redhat.com>
9592
9593 * regcache.h (regcache_cooked_read_ftype): Define.
9594 (regcache_save, regcache_restore): Add a cooked_read parameter.
9595 * regcache.c (regcache_save, regcache_restore): Update.
9596 (do_cooked_read): New function.
9597 (regcache_cpy): Pass do_cooked_read to regcache_save and
9598 regcache_restore.
9599
8bedc050
AC
96002003-03-10 Andrew Cagney <cagney@redhat.com>
9601
9602 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9603 * gdbarch.h, gdbarch.c: Re-generate.
9604 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9605 * x86-64-tdep.h: Update.
9606 * x86-64-tdep.c (x86_64_init_abi): Update.
9607 * v850-tdep.c (v850_gdbarch_init): Update.
9608 * sparc-tdep.c (sparc_gdbarch_init): Update.
9609 * sh-tdep.c (sh_gdbarch_init): Update.
9610 * s390-tdep.c (s390_gdbarch_init): Update.
9611 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9612 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9613 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9614 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9615 * mips-tdep.c (mips_gdbarch_init): Update.
9616 * mcore-tdep.c (mcore_gdbarch_init): Update.
9617 * m68k-tdep.c (m68k_gdbarch_init): Update.
9618 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9619 * ia64-tdep.c (ia64_gdbarch_init): Update.
9620 * i386-tdep.c (i386_gdbarch_init): Update.
9621 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9622 * hppa-tdep.c (hppa_gdbarch_init): Update.
9623 * h8300-tdep.c (h8300_gdbarch_init): Update.
9624 * frv-tdep.c (frv_gdbarch_init): Update.
9625 * cris-tdep.c (cris_gdbarch_init): Update.
9626 * avr-tdep.c (avr_gdbarch_init): Update.
9627 * arm-tdep.c (arm_gdbarch_init): Update.
9628 * alpha-tdep.c (alpha_gdbarch_init): Update.
9629 * sh-tdep.c (sh_init_extra_frame_info): Update.
9630 (sh64_init_extra_frame_info): Update.
9631 * ns32knbsd-nat.c (frame_num_args): Update.
9632 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9633 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9634 (xstormy16_frame_chain_valid): Update.
9635 * vax-tdep.c (vax_saved_pc_after_call): Update.
9636 * v850-tdep.c (v850_frame_chain): Update.
9637 (v850_pop_frame): Update.
9638 (v850_init_extra_frame_info): Update.
9639 * sparc-tdep.c (setup_arbitrary_frame): Update.
9640 * ns32k-tdep.c (umax_frame_num_args): Update.
9641 * s390-tdep.c (s390_pop_frame_regular): Update.
9642 * mn10300-tdep.c (mn10300_frame_chain): Update.
9643 (mn10300_pop_frame_regular): Update.
9644 (mn10300_init_extra_frame_info): Update.
9645 * mips-tdep.c (mips_init_frame_pc_first): Update.
9646 (mips_frame_chain): Update.
9647 (mips_pop_frame): Update.
9648 * mcore-tdep.c (mcore_frame_chain): Update.
9649 (mcore_pop_frame): Update.
9650 (mcore_init_extra_frame_info): Update.
9651 * arch-utils.c (init_frame_pc_default): Update.
9652 * m68k-tdep.c (isi_frame_num_args): Update.
9653 (delta68_frame_num_args): Update.
9654 (news_frame_num_args): Update.
9655 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9656 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9657 (alpha_frame_chain): Update.
9658 (alpha_pop_frame): Update.
9659 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9660 (hppa_init_extra_frame_info): Update.
9661 (hppa_frame_chain): Update.
9662 (hppa_frame_chain_valid): Update.
9663 * cris-tdep.c (cris_init_extra_frame_info): Update.
9664 * avr-tdep.c (avr_init_extra_frame_info): Update.
9665 * arm-tdep.c (arm_frame_chain_valid): Update.
9666 (arm_init_extra_frame_info): Update.
9667 (arm_pop_frame): Update.
9668 * frame.c (frame_pc_unwind): Update.
9669 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9670 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9671 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9672 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9673 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9674 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9675
12cc2063
AC
96762003-03-10 Andrew Cagney <cagney@redhat.com>
9677
9678 * gdbarch.sh (gdbarch_unwind_pc): New method.
9679 * gdbarch.h, gdbarch.c: Regenerate.
9680 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9681 but use read_pc and FRAME_SAVED_PC as fall backs.
9682 (frame_saved_regs_pc_unwind): Delete function.
9683 (trad_frame_unwinder): Update.
9684 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9685 (struct frame_unwind): Update.
9686 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9687 (dummy_frame_unwind): Update.
9688 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9689 (sentinel_frame_unwinder): Update.
9690 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9691 (d10v_frame_unwind): Update.
9692 (d10v_unwind_pc): New function.
9693 (d10v_gdbarch_init): Set unwind_pc.
9694
ef840a37
AC
96952003-03-10 Andrew Cagney <cagney@redhat.com>
9696
a2ce2e56
AC
9697 * gdbarch.h: Re-generate.
9698
ef840a37
AC
9699 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9700 PC.
9701 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9702 the PC register.
9703
08f3424b
MK
97042003-03-08 Mark Kettenis <kettenis@gnu.org>
9705
9706 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9707
1248ede2
AC
97082003-03-08 Andrew Cagney <cagney@redhat.com>
9709
9710 * cli-out.c: Update copyright.
9711 (cli_out_data): Define typedef. Use instead of ui_out_data.
9712
f49bacc8
AC
97132003-03-08 Andrew Cagney <cagney@redhat.com>
9714
9715 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9716 the result.
9717
9b05f993
AC
97182003-03-07 Andrew Cagney <cagney@redhat.com>
9719
9720 * gdbarch.sh: Don't generate two macro definitions when an
9721 undefined macro taking no arguments.
9722 * gdbarch.h: Regenerate.
8ffd9b1b 9723
166f4c7b
ML
97242002-03-07 Michal Ludvig <mludvig@suse.cz>
9725
9726 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9727 (x86_64_unwind_dummy_id): New functions.
9728 (x86_64_init_abi): Register these two new functions.
9729
6d686a84
ML
97302003-03-07 Michal Ludvig <mludvig@suse.cz>
9731
9732 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 9733 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
9734 separate function.
9735 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9736
6314f104
AC
97372003-03-05 Andrew Cagney <cagney@redhat.com>
9738
9739 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9740 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9741 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9742 to use unwind_dummy_id when a dummy frame.
9743 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9744 predicate.
9745 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9746
ceea5145
AC
97472003-03-05 Andrew Cagney <cagney@redhat.com>
9748
9749 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9750 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9751 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9752 values.
9753
0d843116
AC
97542003-03-05 Andrew Cagney <cagney@redhat.com>
9755
9756 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9757 (struct d10v_unwind_cache): Delete field "frameless". Replace
9758 "next_addr" with "sp_offset". Add "r11_offset".
9759 (d10v_frame_unwind_cache): Update.
9760 (prologue_find_regs): Update. When "mv r11, sp", save the
9761 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9762 RN was saved in r11_offset.
9763
b2579786
AC
97642003-03-05 Andrew Cagney <cagney@redhat.com>
9765
9766 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9767 cached PC value in the next frame.
9768
218e5956
AC
97692003-03-05 Andrew Cagney <cagney@redhat.com>
9770
9771 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9772 "id_unwind_cache" with "id".
9773 (frame_id_unwind): Delete declaration.
9774 * frame.c (frame_id_unwind): Delete function.
9775 (get_prev_frame): Call the frame id unwind method directly. Store
9776 the returned next frame's ID value in NEXT_FRAME. Note that there
9777 is a problem with the wrong unwind ID being called with the wrong
9778 unwind cache.
9779
ed363b1b
DJ
97802003-03-05 Daniel Jacobowitz <drow@mvista.com>
9781
9782 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9783
fe1f4a5e
DJ
97842003-03-05 James Ingham <jingham@apple.com>
9785 Daniel Jacobowitz <drow@mvista.com>
9786
9787 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9788 (auto_cp_abi): New variable.
9789 (current_cp_abi, num_cp_abis): Make static.
9790 (CP_ABI_MAX): Define.
9791 (cp_abis): Turn into an array.
9792 (value_virtual_fn_field): Fix formatting.
9793 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9794 takes a pointer.
9795 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9796 (list_cp_abis, _initialize_cp_abi): New functions.
9797 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9798 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9799 switch_to_cp_abi. Update prototype for register_cp_abi.
9800 * Makefile.in (cp-abi.o): Update dependencies.
9801 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9802 instead of switch_to_cp_abi.
9803 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9804 register_cp_abi.
9805 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9806 register_cp_abi.
9807 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9808
e4adbba9
DJ
98092003-03-05 Daniel Jacobowitz <drow@mvista.com>
9810
9811 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9812 * dwarf2loc.c: Include "regcache.h".
9813 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9814 register_size.
9815 * Makefile.in (dwarf2loc.o): Update dependencies.
9816
91ccbfc1
TR
98172003-03-04 Theodore A. Roth <troth@openavr.org>
9818
9819 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9820 number of io registers reported by remote target is not a multiple of
9821 step.
9822
3d4e8fd2
DC
98232003-03-04 David Carlton <carlton@math.stanford.edu>
9824
9825 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9826 (lookup_symbol_aux_psymtabs): Update call to
9827 lookup_partial_symbol.
9828 (lookup_transparent_type, find_main_psymtab)
9829 (make_symbol_overload_list): Ditto.
9830
ed42d87b
KH
98312003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9832
9833 * MAINTAINERS (Write after approval): Update my email address.
9834
a0ed5532
AC
98352003-03-03 Andrew Cagney <cagney@redhat.com>
9836
9837 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9838 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9839 predicate. Replace MAX_REGISTER_RAW_SIZE.
9840 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9841 MAX_REGISTER_VIRTUAL_SIZE.
9842 * regcache.c (legacy_max_register_raw_size): New function.
9843 (legacy_max_register_virtual_size): New function.
9844 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9845 (MAX_REGISTER_RAW_SIZE): Define.
9846 (legacy_max_register_raw_size): Declare.
9847 (legacy_max_register_virtual_size): Declare.
9848 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9849 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9850 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9851 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9852 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9853 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9854 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9855 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9856 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9857 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9858 * vax-tdep.c (vax_gdbarch_init): Update.
9859 * v850-tdep.c (v850_gdbarch_init): Update.
9860 * sparc-tdep.c (sparc_gdbarch_init): Update.
9861 * sh-tdep.c (sh_gdbarch_init): Update.
9862 * s390-tdep.c (s390_gdbarch_init): Update.
9863 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9864 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9865 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9866 * mips-tdep.c (mips_gdbarch_init): Update.
9867 * mcore-tdep.c (mcore_gdbarch_init): Update.
9868 * m68k-tdep.c (m68k_gdbarch_init): Update.
9869 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9870 * ia64-tdep.c (ia64_gdbarch_init): Update.
9871 * i386-tdep.c (i386_gdbarch_init): Update.
9872 * hppa-tdep.c (hppa_gdbarch_init): Update.
9873 * h8300-tdep.c (h8300_gdbarch_init): Update.
9874 * frv-tdep.c (frv_gdbarch_init): Update.
9875 * cris-tdep.c (cris_gdbarch_init): Update.
9876 * avr-tdep.c (avr_gdbarch_init): Update.
9877 * arm-tdep.c (arm_gdbarch_init): Update.
9878 * alpha-tdep.c (alpha_gdbarch_init): Update.
9879 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9880 max_register_raw_size or max_register_virtual_size.
9881
8e437497
DC
98822003-03-03 David Carlton <carlton@math.stanford.edu>
9883
9884 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9885 SYMBOL_MATCHES_NAME, add comment.
9886 (SYMBOL_MATCHES_NATURAL_NAME): New.
9887 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9888 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9889 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9890 * symtab.c (lookup_partial_symbol): Use
9891 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9892 unhelpful comment.
9893 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9894 SYMBOL_MATCHES_NAME.
9895 Fix for PR c++/33.
9896
25120b0d
DC
98972003-03-03 David Carlton <carlton@math.stanford.edu>
9898
9899 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9900 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9901 by regexp matching against SYMBOL_NATURAL_NAME.
9902
78a11fb4
DC
99032003-03-03 David Carlton <carlton@math.stanford.edu>
9904
9905 * linespec.c (find_method): Extract code into collect_methods.
9906 (collect_methods): New.
9907
645dd519
MK
99082003-03-02 Mark Kettenis <kettenis@gnu.org>
9909
b4700d91
MK
9910 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9911 get_frame_base.
9912
645dd519
MK
9913 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9914 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9915
0aa7e1aa
SC
99162003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9917
8ffd9b1b 9918 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9919 and not regnum when summing the size of all registers up to regnum.
9920
f30ee0bc
AC
99212003-03-01 Andrew Cagney <cagney@redhat.com>
9922
9923 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9924 FRAME_INIT_SAVED_REGS.
9925 * gdbarch.h, gdbarch.c: Regenerate.
9926 * stack.c (frame_info): Update.
9927 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9928 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9929 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9930 * ns32k-tdep.c (ns32k_pop_frame): Update.
9931 * mips-tdep.c (mips_pop_frame): Update.
9932 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9933 * ia64-tdep.c (ia64_frame_chain): Update.
9934 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9935 (ia64_frameless_function_invocation): Update.
9936 (ia64_init_extra_frame_info): Update.
9937 (ia64_pop_frame_regular): Update.
9938 * frame.h (struct frame_info): Update comment.
9939 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9940 * frame.c (frame_saved_regs_register_unwind): Update.
9941 (frame_saved_regs_register_unwind): Update.
9942 (deprecated_generic_get_saved_register): Update.
9943 * cris-tdep.c: Update comment.
9944 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9945 Rename macro.
9946 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9947 * x86-64-tdep.c (x86_64_init_abi): Update.
9948 * vax-tdep.c (vax_gdbarch_init): Update.
9949 * v850-tdep.c (v850_gdbarch_init): Update.
9950 * sparc-tdep.c (sparc_gdbarch_init): Update.
9951 * sh-tdep.c (sh_gdbarch_init): Update.
9952 * s390-tdep.c (s390_gdbarch_init): Update.
9953 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9954 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9955 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9956 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9957 * mips-tdep.c (mips_gdbarch_init): Update.
9958 * mcore-tdep.c (mcore_gdbarch_init): Update.
9959 * m68k-tdep.c (m68k_gdbarch_init): Update.
9960 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9961 * ia64-tdep.c (ia64_gdbarch_init): Update.
9962 * i386-tdep.c (i386_gdbarch_init): Update.
9963 * frv-tdep.c (frv_gdbarch_init): Update.
9964 * avr-tdep.c (avr_gdbarch_init): Update.
9965 * arm-tdep.c (arm_gdbarch_init): Update.
9966 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9967
42fa7c0f
AC
99682003-03-01 Andrew Cagney <cagney@redhat.com>
9969
9970 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9971 option enum and switch. When no windows, set the interpreter to
9972 INTERP_CONSOLE.
8ffd9b1b 9973
49c7e338
AC
99742003-03-01 Andrew Cagney <cagney@redhat.com>
9975
9976 * main.c (captured_main): Replace magic option characters with an
9977 enum.
9978
e9582e71
AC
99792003-03-01 Andrew Cagney <cagney@redhat.com>
9980
9981 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9982 INIT_EXTRA_FRAME_INFO.
9983 * gdbarch.h, gdbarch.c: Regenerate.
9984 * arm-tdep.c: Update comments.
9985 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9986 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9987 * frame.h, avr-tdep.c: Ditto.
9988 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9989 (create_new_frame, legacy_get_prev_frame): Ditto.
9990 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9991 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9992 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9993 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9994 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9995 * v850-tdep.c (v850_gdbarch_init): Ditto.
9996 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9997 * sh-tdep.c (sh_gdbarch_init): Ditto.
9998 * s390-tdep.c (s390_gdbarch_init): Ditto.
9999 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10000 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10001 * mips-tdep.c (mips_gdbarch_init): Ditto.
10002 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10003 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10004 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10005 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10006 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10007 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10008 * frv-tdep.c (frv_gdbarch_init): Ditto.
10009 * cris-tdep.c (cris_gdbarch_init): Ditto.
10010 * avr-tdep.c (avr_gdbarch_init): Ditto.
10011 * arm-tdep.c (arm_gdbarch_init): Ditto.
10012 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10013 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10014
35cac7cf
AC
100152003-03-01 Andrew Cagney <cagney@redhat.com>
10016
10017 * gdbarch.sh (register_type): New function with predicate.
10018 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10019 * gdbarch.h, gdbarch.c: Re-generate.
10020 * arch-utils.c (generic_register_byte): Use generic_register_size.
10021 (generic_register_size): When available, use
10022 gdbarch_register_type.
10023 * regcache.c (init_regcache_descr): When available, initialize the
10024 register type array using gdbarch_register_type. If the
10025 architecture supplies gdbarch_register_type, do not use the legacy
10026 regcache layout.
10027 * d10v-tdep.c (d10v_register_type): Replace
10028 d10v_register_virtual_type.
10029 (d10v_gdbarch_init): Set register_type instead of
10030 register_virtual_type.
10031
7b83296f
AC
100322003-03-01 Andrew Cagney <cagney@redhat.com>
10033
10034 * Makefile.in (ax-gdb.o): Update dependencies.
10035 * ax-gdb.c: Include "regcache.h".
10036 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10037 * findvar.c (value_of_register): Ditto.
10038 * infcmd.c (default_print_registers_info): Ditto.
10039
eadc1c87
MK
100402003-03-01 Mark Kettenis <kettenis@gnu.org>
10041
10042 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10043 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10044
14143612
MK
100452003-03-01 Mark Kettenis <kettenis@gnu.org>
10046
10047 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10048 of STREQ.
10049
a55cc764
DJ
100502003-02-28 Daniel Jacobowitz <drow@mvista.com>
10051
10052 * Makefile.in (dwarf2loc.o): Update dependencies.
10053 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10054 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10055 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10056 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10057 (locexpr_tracepoint_var_ref): New function.
10058 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10059
08a617da
AC
100602003-02-28 Andrew Cagney <cagney@redhat.com>
10061
10062 * regcache.c (register_size): New function.
10063 * regcache.h (register_size): Declare
10064 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10065 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10066
4224873a
DC
100672003-02-28 David Carlton <carlton@math.stanford.edu>
10068
10069 * linespec.c (decode_compound): Extract code into find_method.
10070 (find_method): New.
10071
ccdc5d7f
JB
100722003-02-28 J. Brobecker <brobecker@gnat.com>
10073
10074 * Makefile.in: Add rules to build and link in observer.o.
10075
974e8ced
JB
100762003-02-27 J. Brobecker <brobecker@gnat.com>
10077
10078 * observer.c: Minor comments edits.
10079
7a28f973
JB
100802003-02-27 J. Brobecker <brobecker@gnat.com>
10081
10082 * observer.h, observer.c: New file.
10083
27cddce2
AC
100842003-02-27 Andrew Cagney <cagney@redhat.com>
10085
10086 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10087
b94a41a1
SC
100882003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10089
10090 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10091 (M6812_OP_STS_EXT): Likewise.
10092 (m6811_prologue): Use the above to recognize prologue.
10093 (m6812_prologue): Likewise.
10094
c8be8951
DC
100952003-02-27 David Carlton <carlton@math.stanford.edu>
10096
10097 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10098 SYMBOL_PRINT_NAME.
10099 (compare_psymbols): Ditto.
10100 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10101
d05bb1fc
MS
101022003-02-27 Michael Snyder <msnyder@redhat.com>
10103
4e845cd3
MS
10104 * f-lang.c (build_fortran_types): New function.
10105 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10106 * doublest.c (extract_floating): Fix warning text.
10107
f3824013
AC
101082003-02-27 Andrew Cagney <cagney@redhat.com>
10109
10110 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10111 predicate. Replaces PUSH_DUMMY_FRAME.
10112 * gdbarch.h, gdbarch.c: Regnerate.
10113 * valops.c (hand_function_call): Update. Call
10114 generic_push_dummy_frame directly.
10115 * vax-tdep.c (vax_gdbarch_init): Update.
10116 * sparc-tdep.c (sparc_gdbarch_init): Update.
10117 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10118 * m68k-tdep.c (m68k_gdbarch_init): Update.
10119 * hppa-tdep.c (hppa_gdbarch_init): Update.
10120 * alpha-tdep.c (alpha_gdbarch_init): Update.
10121 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10122 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10123 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10124 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10125 push_dummy_frame to generic_push_dummy_frame.
10126 * v850-tdep.c (v850_gdbarch_init): Ditto.
10127 * sh-tdep.c (sh_gdbarch_init): Ditto.
10128 * s390-tdep.c (s390_gdbarch_init): Ditto.
10129 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10130 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10131 * mips-tdep.c (mips_gdbarch_init): Ditto.
10132 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10133 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10134 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10135 * i386-tdep.c (i386_gdbarch_init): Ditto.
10136 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10137 * frv-tdep.c (frv_gdbarch_init): Ditto.
10138 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10139 * cris-tdep.c (cris_gdbarch_init): Ditto.
10140 * avr-tdep.c (avr_gdbarch_init): Ditto.
10141 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10142
ad188201
KB
101432003-02-26 Kevin Buettner <kevinb@redhat.com>
10144
10145 * mips-tdep.c (show_mips_abi): New function.
10146 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10147 command ``show mips abi''.
10148
6b37567a 101492003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10150
6b37567a 10151 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10152 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10153 more sline entries have been seen for the function.
10154
d3e0a5bf
MC
101552003-02-26 Michael Chastain <mec@shout.net>
10156
10157 * configure: Regenerate with autoconf 000227.
10158
18972eea
MC
101592003-02-26 Michael Chastain <mec@shout.net>
10160
10161 Close PR build/660.
10162 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10163 for old libc5/glibc.
10164 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10165
0bbde931
KW
101662003-02-26 Kris Warkentin <kewarken@qnx.com>
10167
10168 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10169 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10170
27ca5dad
MC
101712003-02-26 Michael Chastain <mec@shout.net>
10172
10173 * configure.in: New variable HAVE_UINTPTR_T.
10174 * configure, config.in: Regenerated.
10175
6f88d630
DJ
101762003-02-26 Daniel Jacobowitz <drow@mvista.com>
10177
10178 Fix PR build/1097.
10179 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10180
b14185ce
AC
101812003-02-25 Andrew Cagney <cagney@redhat.com>
10182
10183 * frame.c (get_prev_frame): Add comment on check for
10184 inside_entry_func. Only check for inside_entry_file when not a
10185 dummy and not a sentinel. Check that the new frame is not inner
10186 to the old frame.
10187
ac2bd0a9
AC
101882003-02-25 Andrew Cagney <cagney@redhat.com>
10189
10190 * frame.c (frame_debug): New variable.
10191 (_initialize_frame): Add "set/show debug frame" command.
10192 (get_prev_frame): When frame_debug, print reason why unwind
10193 failed.
10194
b18a0fd2
MC
101952003-02-25 Michael Chastain <mec@shout.net>
10196
10197 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10198 to avoid uintptr_t definition problems.
10199
22abf04a
DC
102002003-02-25 David Carlton <carlton@math.stanford.edu>
10201
10202 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10203 (SYMBOL_LINKAGE_NAME): Ditto.
10204 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10205 SYMBOL_LINKAGE_NAME.
10206 (struct general_symbol_info): Expand comment.
10207 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10208 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10209 (SYMBOL_MATCHES_REGEXP): Ditto.
10210 * symtab.c (symbol_natural_name): New function.
10211 * objfiles.h: Replace all uses of SYMBOL_NAME by
10212 DEPRECATED_SYMBOL_NAME.
10213 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10214 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10215 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10216 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10217 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10218 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10219 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10220 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10221 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10222 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10223 * ada-exp.y: Ditto.
10224 * ada-exp.y: Update copyright.
10225 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10226 * cp-valprint.c: Ditto.
10227
1a5848f6
JJ
102282003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10229
10230 * infptrace.c (detach): Do not flag error if ptrace detach fails
10231 and errno is set to ESRCH.
10232
7343d46a
AC
102332003-02-24 Andrew Cagney <cagney@redhat.com>
10234
10235 * infptrace.c (udot_info): Change type of udot_off to long. Use
10236 paddr when printing udot_off's value.
10237
49fa1dc2
DC
102382003-02-24 David Carlton <carlton@math.stanford.edu>
10239
10240 * symtab.c (make_symbol_overload_list): Only read in partial
10241 symtabs containing a matching partial symbol.
10242
0fe19209
DC
102432003-02-24 David Carlton <carlton@math.stanford.edu>
10244
10245 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10246 do the comparison, not strcmp.
10247 * symfile.c (compare_psymbols): Ditto.
10248 * defs.h: Declare strcmp_iw_ordered.
10249 * utils.c (strcmp_iw_ordered): New function.
10250
8e3ee7b5
JB
102512003-02-24 Jim Blandy <jimb@redhat.com>
10252
10253 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10254 support, shared libs): Remove my name from here, to better reflect
10255 reality.
10256
7df1a324
KW
102572003-02-24 Kris Warkentin <kewarken@qnx.com>
10258
10259 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10260 (target_ops): Add to_have_continuable_watchpoint.
10261 * target.c (update_current_target): Add INHERIT line for
10262 to_have_continuable_watchpoint.
10263 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10264 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10265 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10266 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10267
d1c76907
EZ
102682003-02-24 Elena Zannoni <ezannoni@redhat.com>
10269
10270 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10271 maintainership.
10272
2610b0bf
KW
102732003-02-24 Kris Warkentin <kewarken@qnx.com>
10274
f46169db
KW
10275 * solib.c (solib_open): Call target defined search function after
10276 failing with solib-search-path.
10277 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10278 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10279
9a3c34fe
KW
102802003-02-24 Kris Warkentin <kewarken@qnx.com>
10281
f46169db 10282 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10283
2417dd25
SC
102842003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10285
10286 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10287
b631436b
SC
102882003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10289
10290 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10291 (m68hc11_add_reggroups): New function.
10292 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10293 (m68hc11_gdbarch_init): Install the reggroups.
10294 (_initialize_m68hc11_tdep): Initialize them.
10295
0aa8c1e4
JW
102962003-02-21 James E Wilson <wilson@tuliptree.org>
10297
10298 * MAINTAINERS: Update my email address.
10299
50ceaba5
DC
103002003-02-21 David Carlton <carlton@math.stanford.edu>
10301
10302 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10303
4c2df51b
DJ
103042003-02-21 Daniel Jacobowitz <drow@mvista.com>
10305
10306 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10307 * symtab.h: Add opaque declarations of struct axs_value and
10308 struct agent_expr.
10309 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10310 (struct location_funcs): New type.
10311 (struct symbol): Add "loc" to aux_value.
10312 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10313 * dwarf2read.c: Include "dwarf2expr.h".
10314 (dwarf2_symbol_mark_computed): New function.
10315 (read_func_scope): Use it.
10316 (var_decode_location): New function.
10317 (new_symbol): Use it.
10318 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10319
10320 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10321 (dwarf2expr_h, dwarf2loc_h): New variables.
10322 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10323 (dwarf2expr.o, dwarf2loc.o): New rules.
10324 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10325 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10326 LOC_COMPUTED_ARG.
10327 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10328 * m2-exp.y (yylex): Likewise.
10329 * printcmd.c (address_info, print_frame_args): Likewise.
10330 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10331 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10332 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10333 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10334 * symtab.c (lookup_block_symbol): Likewise.
10335
5784d15e
AF
103362003-02-20 Adam Fedor <fedor@gnu.org>
10337
10338 * symtab.h: Remove objc_specific struct
10339 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10340 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10341 Have language_objc use cplus_specific struct.
10342
d4cad8db
TT
103432003-02-20 Tom Tromey <tromey@redhat.com>
10344
10345 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10346 TYPE_NAME, when printing a String value. PR java/1075.
10347
2f9a90b4
AF
103482003-02-20 Adam Fedor <fedor@gnu.org>
10349
d38074a8 10350 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10351 * objc-lang.c (find_methods): Make static.
2f9a90b4 10352
6f17862b
CF
103532003-02-20 Christopher Faylor <cgf@redhat.com>
10354
10355 * win32-nat.c (get_image_name): Check return value from
10356 ReadProcessMemory.
10357 (child_xfer_memory): Ditto.
10358
715d1656
AO
103592003-02-20 Alexandre Oliva <aoliva@redhat.com>
10360
10361 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10362 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10363 '${exec_prefix}' (in addition to the expansion thereof) as
10364 relocatable.
10365 * configure: Rebuilt.
10366
b1262a02
DC
103672003-02-20 David Carlton <carlton@math.stanford.edu>
10368
10369 * symtab.c (search_symbols): Revert the search_symbols part of my
10370 2002-12-23 patch. Add comment.
10371
7134143f
DJ
103722002-02-20 Daniel Jacobowitz <drow@mvista.com>
10373
10374 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10375 * dbxread.c (elfstab_build_psymtabs): Don't call
10376 install_minimal_symbols.
10377 (stabsect_build_psymtabs): Likewise.
10378 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10379 earlier.
10380 * somread.c (som_symfile_read): Call install_minimal_symbols
10381 and do_cleanups earlier.
10382 * nlmread.c (nlm_symfile_read): Likewise.
10383 * mdebugread.c (elfmdebug_build_psymtabs): Call
10384 install_minimal_symbols and make appropriate cleanups.
10385
cf466558
KB
103862003-02-20 Kevin Buettner <kevinb@redhat.com>
10387
10388 * solib.c (reload_shared_libraries): New function.
10389 (_initialize_solib): Add callbacks for ``set solib-search-path''
10390 and ``set solib-absolute-prefix''.
10391
de5ad195
DC
103922003-02-20 David Carlton <carlton@math.stanford.edu>
10393
10394 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10395 expand comment.
10396 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10397 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10398 * ada-typeprint.c (ada_typedef_print): Ditto.
10399 * ax-gdb.c (gen_var_ref): Ditto.
10400 * breakpoint.c (print_one_breakpoint): Ditto.
10401 * buildsym.c (finish_block): Ditto.
10402 * c-valprint.c (c_val_print): Ditto.
10403 * expprint.c (print_subexp): Ditto.
10404 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10405 * infcmd.c (jump_command): Ditto.
10406 * linespec.c (decode_line_2, decode_compound): Ditto.
10407 * maint.c (maintenance_translate_address): Ditto.
10408 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10409 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10410 Ditto.
8ffd9b1b
AJ
10411 * p-valprint.c (pascal_val_print): Ditto.
10412 * stabsread.c (define_symbol): Ditto.
de5ad195 10413 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10414 (print_frame_arg_vars, return_command): Ditto.
10415 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10416 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10417 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10418 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10419 (rbreak_command): Ditto.
10420 * tracepoint.c (tracepoints_info): Ditto.
10421 * typeprint.c (typedef_print): Ditto.
10422 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10423 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10424 * ada-typeprint.c: Update Copyright.
10425 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10426 * tracepoint.c, cli/cli-cmds.c: Ditto.
10427
f796e4be
KB
104282003-02-20 Kevin Buettner <kevinb@redhat.com>
10429
10430 * frame.c (generic_unwind_get_saved_register): Make non-static.
10431 * frame.h (generic_unwind_get_saved_register): Declare.
10432 * mips-tdep.c (read_next_frame_reg): Fetch register from
10433 current regcache when frame is NULL.
10434 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10435 that must be NULL.
10436 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10437 instead of frame_register_unwind().
10438
836cc9f4
AC
104392003-02-20 Andrew Cagney <ac131313@redhat.com>
10440
10441 * remote-sim.c (gdbsim_insert_breakpoint)
10442 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10443 code.
10444
501eef12
AC
104452003-02-20 Andrew Cagney <ac131313@redhat.com>
10446
10447 * remote.c (_initialize_remote): Add commands "set/show remote
10448 hardware-watchpoint-limit" and "set/show remote
10449 hardware-breakpoint-limit".
10450 (remote_hw_watchpoint_limit): Initialize to -1.
10451 (remote_hw_breakpoint_limit): Ditto.
10452 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10453
1b6bc7e0
CF
104542003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10455
10456 * coff-pe-read.c: New file - support reading of minimal symbols from a
10457 portable executable using the export table.
10458 * coff-pe-read.h: New file.
10459 * coffread.c: Include coff-pe-read.h.
10460 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10461 debugging symbols found.
10462 * Makefile.in (SFILES): Add coff-pe-read.o.
10463 (coff_pe_read_h): Define.
10464 (COMMON_OBS): Add coff-pe-read.o.
10465 (coffread.o): Add coff_pe_read_h dependency.
10466 (coff-pe-read.o): New target.
10467
fe898f56
DC
104682003-02-19 David Carlton <carlton@math.stanford.edu>
10469
10470 * Makefile.in (SFILES): Add block.c.
10471 (block_h): New.
10472 (COMMON_OBS): Add block.o.
10473 (block.o): New.
10474 (x86-64-tdep.o): Add $(block_h).
10475 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10476 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10477 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10478 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10479 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10480 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10481 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10482 * value.h: Add opaque declaration for struct block.
10483 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10484 * ada-lang.h: Ditto.
10485 * x86-64-tdep.c: #include "block.h"
10486 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10487 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10488 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10489 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10490 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10491 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10492 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10493 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10494 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10495 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10496 * symtab.c (block_function): Ditto.
10497 (contained_in): Ditto.
10498 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10499 block.h. Add opaque declaration for struct block.
10500 * symtab.h: Move block_function and contained_in declarations to
10501 block.h. Add opaque declarations for struct block, struct
10502 blockvector.
10503 (struct block): Move to block.h.
10504 (struct blockvector): Ditto.
10505 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10506 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10507 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10508 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10509 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10510 Ditto.
10511 * block.c: New file.
10512 * block.h: New file.
10513
173345b5
TR
105142003-02-19 Theodore A. Roth <troth@openavr.org>
10515
10516 * avr-tdep.c (avr_extract_return_value): Remove function.
10517 (avr_store_return_value): Remove function.
10518 (avr_extract_struct_value_address): Remove function.
10519 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10520
338ef23d
AC
105212003-02-19 Andrew Cagney <ac131313@redhat.com>
10522
10523 * rs6000-tdep.c: Include "gdb_assert.h".
10524 (registers_e500): Add "acc" and "spefscr".
10525 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10526 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10527 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10528 really is "r0".
10529 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10530
5412f5f3
KS
105312003-02-18 Keith Seitz <keiths@redhat.com>
10532
10533 * Makefile.in: Add gdbtk-interps.c.
10534
881324eb
KB
105352003-02-18 Kevin Buettner <kevinb@redhat.com>
10536
10537 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10538 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10539
6a2f5abf
AC
105402003-02-18 Andrew Cagney <cagney@redhat.com>
10541
10542 * symtab.h (struct objfile): Add opaque declaration.
10543
54c7009d
EZ
105442003-02-18 Elena Zannoni <ezannoni@redhat.com>
10545
10546 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10547 * dbxread.c (process_one_symbol): Use last_function_start rather
10548 than function_start_offset to find the real beginning of the
10549 current function. The latter is just the text section offset on
10550 some systems, the former is always the real function start.
54c7009d 10551
7ee6d7eb
AC
105522003-02-17 Andrew Cagney <cagney@redhat.com>
10553
10554 * configure.in: Revert ${target} != ${host}.
10555
2846da9b
AC
105562003-02-17 Andrew Cagney <ac131313@redhat.com>
10557
10558 * configure.in (Makefile): Use the test ${target} != ${host},
10559 instead of the absence of the "nm.h" file, to determine of the
10560 configuration non-native.
10561 * configure: Regenerate.
8ffd9b1b 10562
3b27aeea
EZ
105632003-02-14 Elena Zannoni <ezannoni@redhat.com>
10564
fbe586ae 10565 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10566
10567 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10568 conditionalize tui_active test.
10569 (lookup_cmd_1): Ditto.
10570
b0b1c2c0
MK
105712003-02-14 Mark Kettenis <kettenis@gnu.org>
10572
10573 * configure.in: Add check for _etext.
10574 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10575 available.
10576 * config.in, configure: regenerated.
10577
8f05cde5
DJ
105782003-02-14 Daniel Jacobowitz <drow@mvista.com>
10579
10580 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10581
021e7609
AC
105822003-02-14 Andrew Cagney <ac131313@redhat.com>
10583
10584 * main.c (tui_version): Delete variable.
10585 (captured_main): When --tui, set interpreter_p to "tui" instead of
10586 enabling tui_version.
10587 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10588 tui_version.
10589 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10590 * cli/cli-cmds.c (disassemble_command): Ditto.
10591 * defs.h (tui_version): Delete declaration.
10592 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10593 (tui-interp.o): Add rules.
10594 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10595
e325dcec
CF
105962003-02-14 Christopher Faylor <cgf@redhat.com>
10597
36ffb041 10598 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10599 just-loaded dll.
10600
c4f90d87
JM
106012003-02-12 Jason Molenda (jmolenda@apple.com)
10602
fbe586ae
RH
10603 * symmisc.c (print_objfile_statistics): Include information about
10604 the number of psymtabs and symtabs in each object file.
c4f90d87 10605
e46e5ccd
KS
106062003-02-13 Keith R Seitz <keiths@redhat.com>
10607
10608 * main.h (struct captured_main_args): Add interpreter_p.
10609 * main.c (captured_main): Initialize interpreter_p from context.
10610 * gdb.c (main): Set interpreter_p argument.
10611 * Makefile.in (gdb.o): Add dependency for interps.h.
10612
fe97fe9c
AC
106132003-02-12 Andrew Cagney <ac131313@redhat.com>
10614
10615 * event-top.c (cli_command_loop): Delete declaration.
10616 (_initialize_event_loop): Delete function setting event_loop_hook.
10617 * event-top.h (cli_command_loop): Declare. Update copyright.
10618 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10619 * interps.c (current_interp_command_loop): When event_loop_p, call
10620 cli_command_loop.
10621
1cdac4ef
AC
106222003-02-12 Andrew Cagney <ac131313@redhat.com>
10623
10624 * interps.h (interp_command_loop_ftype): Change return type to
10625 void.
10626
48037ead
ML
106272003-02-12 Michal Ludvig <mludvig@suse.cz>
10628
10629 * x86-64-tdep.c (x86_64_extract_return_value)
10630 (x86_64_store_return_value): Use regcache instead of regbuf.
10631 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10632 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10633
033afc63
AC
106342003-02-11 Andrew Cagney <ac131313@redhat.com>
10635
10636 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10637 * aclocal.m4: Regenerate.
10638 * configure: Regenerate.
10639
10640 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10641 TCL_LD_SEARCH_FLAGS.
10642
40d02bca
ML
106432003-02-10 Michal Ludvig <mludvig@suse.cz>
10644
10645 * dwarf2cfi.c: Reindented.
10646
11308a41
AC
106472003-02-09 Andrew Cagney <ac131313@redhat.com>
10648
10649 * interps.c (clear_interpreter_hooks): Convert function definition
10650 to ISO C.
10651
e1c1c0f6
DC
106522003-02-07 David Carlton <carlton@math.stanford.edu>
10653
10654 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10655
ab5d3da6
KB
106562003-02-07 Kevin Buettner <kevinb@redhat.com>
10657
10658 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10659 (struct type): ...to here.
10660 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10661 field.
10662 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10663 (replace_type): Set length on all type variants for a given type.
10664
b8a92b82
AC
106652003-02-07 Andrew Cagney <ac131313@redhat.com>
10666
10667 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10668 <sys/stat.h>.
10669 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10670
5cb316ef
AC
106712003-02-06 Andrew Cagney <ac131313@redhat.com>
10672
2555fe1a
AC
10673 * Makefile.in (symm-nat.o): Update dependencies.
10674 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10675 (lynx-nat.o, ia64-linux-nat.): Ditto.
10676 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10677 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10678 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10679
44270758
AC
10680 * Makefile.in (inflow_h): Define.
10681 (procfs.o, inflow.o, procfs.o): Update dependencies.
10682 * inftarg.c (child_stop): Delete extern declaration of
10683 inferior_process_group. Include "inflow.h".
10684 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10685 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10686 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10687 (our_process_group, inferior_process_group): Extern declarations.
10688
df8f7274
AC
10689 * procfs.c: Include "gdb_assert.h".
10690
5cb316ef
AC
10691 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10692 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10693 * jv-typeprint.c (java_type_print_base): Ditto.
10694 * typeprint.c (typedef_print): Eliminate STREQ.
10695 * cli/cli-script.c (define_command, define_command): Ditto.
10696 * main.c (captured_main): Ditto.
10697 * values.c (lookup_internalvar): Ditto.
10698 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10699 within `if' conditional.
10700 * linespec.c (decode_line_2): Ditto.
10701 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10702 (bfd_openw_with_cleanup): Ditto.
10703
2a28ccea
MK
107042003-02-07 Mark Kettenis <kettenis@gnu.org>
10705
10706 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10707 legacy_extract_return_value and store_return_value to
10708 legacy_return_value.
10709
786b8124
CF
107102003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10711
10712 * win32-nat.c (get_relocated_section_addrs): New function. Find
10713 section load addresses for symbol handling in relocated DLLs.
10714 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10715
b871e4ec
FF
107162003-02-05 Fred Fish <fnf@intrinsity.com>
10717
10718 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10719 '=' and '!='.
10720 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10721 with '&' and '=='.
10722 (angel_RDI_info): Ditto.
10723 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10724 with '&' and '!='.
10725 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 10726
4389a95a 107272003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
10728 Keith Seitz <keiths@redhat.com>
10729 Elena Zannoni <ezannoni@redhat.com>
10730 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
10731
10732 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10733 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10734 (SUBDIR_MI_OBS): Add "mi-interp.o".
10735 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10736 (SFILES): Add "interps.c".
10737 (COMMON_OBS): Add "interps.o".
10738 (interps_h, mi_main_h): Define.
10739 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10740 (mi-main.o, main.o, event-top.o): Update dependencies.
10741 * cli/cli-interp.c: New file.
10742 * interps.h, interps.c: New files.
10743 * top.c: (gdb_init): Don't install the default interpreter, handed
10744 by captured_main.
10745 * main.c: Include "interps.h".
10746 (interpreter_p): Note that it should malloc'ed.
10747 (captured_command_loop): Call current_interp_command_loop.
10748 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10749 xfree and xstrdup when updating interpreter_p. Install the
10750 default interpreter. Add hack to stop mi1's copyright notice
10751 being encoded.
10752 * event-top.h (gdb_setup_readline): Declare.
10753 (gdb_disable_readline): Declare.
10754 * event-top.c: Include "interps.h".
10755 (display_gdb_prompt): Call current_interp_display_prompt_p.
10756 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10757 gdb_stdlog, and gdb_stdtarg.
10758 (_initialize_event_loop): Don't call gdb_setup_readline.
10759 * cli-out.c (cli_out_set_stream): New function.
10760 * cli-out.h (cli_out_set_stream): Declare.
10761
ff3b5810
MK
107622003-02-06 Mark Kettenis <kettenis@gnu.org>
10763
10764 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10765 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10766 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10767 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10768 config/i386/i386v42mp.mt: Removed.
10769
5b729aa5
MK
107702003-02-05 Mark Kettenis <kettenis@gnu.org>
10771
10772 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10773 GDB_OSABI_SOLARIS.
10774
8cc15142
MC
107752003-02-05 Michael Chastain <mec@shout.net>
10776
10777 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10778 2.12.1 and earlier versions.
10779
5aa5d4b9
AC
107802003-02-05 Andrew Cagney <ac131313@redhat.com>
10781
10782 Remove orphaned hosts, targets and files.
10783 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10784 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10785 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10786 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10787 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10788 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10789 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10790 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10791 * config/sparc/tm-sp64sim.h: Delete.
10792 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10793 hosts.
10794 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10795 mips*-dec-mach3* targets.
10796
b68767c1
MC
107972003-02-04 Michael Chastain <mec@shout.net>
10798
10799 * NEWS: Fix typo: sepcifying -> specifying.
10800
5ae7ca1d
MC
108012003-02-04 Michael Chastain <mec@shout.net>
10802
10803 * dwarfread.c: Add documentation on the state of dwarf-1,
10804 looking towards obsoletion.
10805
d08a4280
MC
108062003-02-03 Michael Chastain <mec@shout.net>
10807
10808 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10809 gdb/testsuite/gdb.c++/pr-1023.exp.
10810
e9be73e4
AC
108112003-02-04 Andrew Cagney <ac131313@redhat.com>
10812
10813 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10814 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10815
10816 * utils.c (init_page_info): Delete reference to MPW in comments.
10817 * main.c (captured_main): Delete #ifdef MPW.
10818
05d57f6f
AC
108192003-02-04 Andrew Cagney <ac131313@redhat.com>
10820
8ffd9b1b 10821 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
10822 * monitor.c (monitor_expect): Obsolete reference to m32r.
10823 * configure.tgt: Mark m32r-*-elf* as obsolete.
10824 * MAINTAINERS: Mark m32k as obsolete.
10825 * m32r-rom.c: Obsolete file.
10826 * config/m32r/m32r.mt: Obsolete file.
10827 * config/m32r/tm-m32r.h: Obsolete file.
10828 * m32r-stub.c: Obsolete file.
10829 * m32r-tdep.c: Obsolete file.
10830
8b0e5691
AC
108312003-02-04 Andrew Cagney <ac131313@redhat.com>
10832
10833 * NEWS: Mention that the z8k-zilog-none is obsolete.
10834 * MAINTAINERS: Mark z8k as obsolete.
10835 * configure.tgt: Obsolete the z8k-*-coff* target.
10836 * config/z8k/z8k.mt: Obsolete file.
10837 * config/z8k/tm-z8k.h: Obsolete file.
10838 * z8k-tdep.c: Obsolete file.
10839
67f16606
AC
108402003-02-04 Andrew Cagney <ac131313@redhat.com>
10841
10842 * NEWS: Mention that the mn10200-elf is obsolete.
10843 * configure.tgt: Obsolete mn10200-*-* target.
10844 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10845 mention that the mn10200 is obsolete.
10846 * breakpoint.h: Ditto.
10847 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10848 * config/mn10200/mn10200.mt: Obsolete file.
10849 * config/mn10200/tm-mn10200.h: Obsolete file.
10850 * mn10200-tdep.c: Obsolete file.
10851
fd2299bd
AC
108522003-02-04 Andrew Cagney <ac131313@redhat.com>
10853
10854 * MAINTAINERS: Mark h8500 as obsolete.
10855 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10856 * findvar.c (value_from_register): Ditto.
10857 * h8500-tdep.c: Mark file as obsolete.
10858 * config/h8500/h8500.mt: Ditto.
10859 * config/h8500/tm-h8500.h: Ditto.
10860 * NEWS: Mention that h8500 is obsolete.
10861
eb9a305d
DC
108622003-02-04 David Carlton <carlton@math.stanford.edu>
10863
10864 * objfiles.c (allocate_objfile): Always set name. Add comment at
10865 start of function.
10866 * jv-lang.c (get_dynamics_objfile): Add comment.
10867
406fc7fb
DC
108682003-02-04 David Carlton <carlton@math.stanford.edu>
10869
10870 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10871 * printcmd.c (build_address_symbolic): Replace uses of
10872 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10873 SYMBOL_NAME, and asm_demangle.
10874 Update copyright.
10875
93d91629
DC
108762003-02-04 David Carlton <carlton@math.stanford.edu>
10877
10878 * linespec.c (decode_compound): Extract code into
10879 lookup_prefix_sym.
10880 (lookup_prefix_sym): New function.
10881
1c5cb38e
DC
108822003-02-04 David Carlton <carlton@math.stanford.edu>
10883
10884 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10885 FLOAT_COERCION_BADNESS.
10886 * gdbtypes.c (rank_one_type): Replace all uses of
10887 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10888
0cf824c9
JB
108892003-02-04 Jim Blandy <jimb@redhat.com>
10890
10891 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10892 section, let dwarf_macinfo_section point to it, not
10893 dwarf_loc_section.
10894
a2d356b0
DJ
108952003-02-04 Daniel Jacobowitz <drow@mvista.com>
10896
10897 Pointed out by Anton Blanchard <anton@samba.org>.
10898 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10899 (ppc_linux_at_sigtramp_return_path): Use it.
10900
2de7ced7
DJ
109012003-02-04 Daniel Jacobowitz <drow@mvista.com>
10902
10903 * defs.h (streq): Add prototype.
10904 * utils.c (streq): New function.
10905
10906 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10907 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10908 * mdebugread.c (new_symbol): Likewise.
10909 * stabsread.c (define_symbol): Likewise.
10910 * coffread.c (process_coff_symbol): Likewise.
10911 * dwarfread.c (new_symbol): Likewise.
10912
10913 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10914 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10915 here.
10916 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10917 SYMBOL_INIT_DEMANGLED_NAME.
10918 * objfiles.c: Include "hashtab.h".
10919 (allocate_objfile): Call htab_set_functions_ex for the
10920 demangled_names_hash.
10921 (free_objfile): Call htab_delete for the demangled_names_hash.
10922 * objfiles.h (struct htab): Add declaration.
10923 (struct objfile): Add demangled_names_hash.
10924 * symfile.c: Include "hashtab.h".
10925 (reread_symbols): Call htab_delete for the demangled_names_hash.
10926 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10927 SYMBOL_NAME in the bcache.
10928 * symtab.c: Include "hashtab.h". Update comments.
10929 (create_demangled_names_hash, symbol_set_names): New functions.
10930 (symbol_find_demangled_name): New function, broken out from
10931 symbol_init_demangled_names.
10932 (symbol_init_demangled_names): Use it.
10933 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10934 (SYMBOL_SET_NAMES): New macro.
10935 (symbol_set_names): Add prototype.
10936
15831452
JB
109372003-02-03 Jim Blandy <jimb@redhat.com>
10938
10939 Use a single, consistent representation for an empty minimal
10940 symbol table in an objfile.
10941 * objfiles.c (terminate_minimal_symbol_table): New function.
10942 (allocate_objfile): Call it.
10943 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10944 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10945 non-NULL.
15831452
JB
10946 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10947 objfile has minimal symbols, compare minimal_symbol_count to zero,
10948 instead of comparing msymbols with NULL.
10949 * objfiles.c (have_minimal_symbols): Same.
10950 * solib-sunos.c (solib_add_common_symbols): Call
10951 terminate_minimal_symbol_table.
10952 * symfile.c (reread_symbols): Same.
8ffd9b1b 10953
ffc65945
KB
109542003-02-03 Kevin Buettner <kevinb@redhat.com>
10955
10956 * s390-tdep.c (s390_address_class_type_flags)
10957 (s390_address_class_type_flags_to_name)
10958 (s390_address_class_name_to_type_flags): New functions.
10959 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10960 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10961
f211c6d4
MS
109622003-02-03 Michael Snyder <msnyder@redhat.com>
10963
10964 * arm-tdep.c: Fix spell-o in comment.
10965
659b0389
ML
109662003-02-03 Michal Ludvig <mludvig@suse.cz>
10967
10968 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10969 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10970 error messages to contain BFD filename.
659b0389 10971
3b31d625
EZ
109722003-02-02 Elena Zannoni <ezannoni@redhat.com>
10973
997b089a 10974 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10975 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10976 (do_mixed_source_and_assembly): Use
10977 make_cleanup_ui_out_tuple_begin_end and
10978 make_cleanup_ui_out_tuple_begin_end.
10979 (do_mixed_source_and_assembly): Ditto.
10980 * thread.c (do_captured_list_thread_ids): Ditto.
10981 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10982 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10983 ui_out_tuple_end): Delete prototypes.
10984 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10985 ui_out_list_end, ui_out_tuple_end): Delete.
10986
10987 From Kevin Buettner <kevinb@redhat.com>:
10988 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10989 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10990 (do_cleanup_table_end): New functions.
10991 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10992 Use cleanups to invoke_ui_out_tuple_end().
10993 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10994 * cli/cli-setshow.c (cmd_show_list): Use
10995 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10996
5b181d62
AC
109972003-02-02 Andrew Cagney <ac131313@redhat.com>
10998
10999 * frame.c (frame_unwind_register): New function.
11000 (frame_unwind_unsigned_register): Use.
11001 (frame_unwind_signed_register): Use.
11002 (frame_read_register): New function.
11003 * frame.h (frame_unwind_register): Declare.
11004 (frame_read_register): Declare.
11005
11006 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11007 and frame_unwind_register instead of read_memory, write_register
11008 and deprecated_write_register_bytes.
11009
5f601589
AC
110102003-02-02 Andrew Cagney <ac131313@redhat.com>
11011
11012 * frame.h: Note that namelen can be negative.
11013 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11014 NAME's length.
11015
11016 * NEWS: Mention that the d10v's `regs' command is deprecated.
11017 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11018 (d10v_print_registers_info): New function.
11019 (show_regs): Call d10v_print_registers_info.
11020 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11021
6a3fe0a4
MK
110222003-02-02 Mark Kettenis <kettenis@gnu.org>
11023
11024 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11025 lost in the previous patch.
11026
075559bc
AC
110272003-02-01 Andrew Cagney <ac131313@redhat.com>
11028
11029 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11030 * stack.c (print_frame_info_base): Output complete FRAME tuple
11031 for synthesized frames.
075559bc 11032
6789195b
AC
110332003-02-02 Andrew Cagney <ac131313@redhat.com>
11034
11035 * mips-nat.c (zerobuf): Delete.
11036 (fetch_inferior_registers): Alloc local zerobuf.
11037 (fetch_core_registers): Alloc local zerobuf.
11038 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11039 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11040 * thread-db.c (thread_db_store_registers): Ditto.
11041 * sh-tdep.c (sh_do_register): Ditto.
11042 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11043 * remote-sim.c (gdbsim_store_register): Ditto.
11044 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11045 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11046 * monitor.c (monitor_supply_register): Ditto.
11047 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11048 * mips-nat.c (fetch_inferior_registers): Ditto.
11049 * m68klinux-nat.c (fetch_register): Ditto.
11050 * lynx-nat.c (fetch_inferior_registers): Ditto.
11051 (fetch_inferior_registers): Ditto.
11052 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11053 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11054 (hpux_thread_store_registers): Ditto.
11055 * hppah-nat.c (fetch_register): Ditto.
11056 * hppab-nat.c (fetch_register): Ditto.
11057 * hppa-tdep.c (pa_register_look_aside): Ditto.
11058 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11059 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11060
e669114a
AC
110612003-02-01 Andrew Cagney <ac131313@redhat.com>
11062
11063 * gdbarch.sh: Explictly specify all method levels. When a
11064 variable with an empty level, provide a non-multi-arch default.
11065 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11066 * gdbarch.h: Re-generate.
11067 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11068 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11069
9a043c1d
AC
110702003-02-01 Andrew Cagney <ac131313@redhat.com>
11071
11072 * defs.h (host_pointer_to_address): Delete declaration.
11073 (address_to_host_pointer): Delete declaration.
11074 * utils.c (host_pointer_to_address): Delete function.
11075 (address_to_host_pointer): Delete function.
11076 * procfs.c (procfs_address_to_host_pointer): New function.
11077 * procfs.c (proc_set_watchpoint): Use.
11078 (procfs_can_use_hw_breakpoint): Update comments.
11079 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11080 (som_solib_add): Use.
11081 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11082 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11083
7ca9f392
AC
110842003-02-01 Andrew Cagney <ac131313@redhat.com>
11085
94bbfd30
AC
11086 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11087 strlen d_name.
11088
7ca9f392
AC
11089 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11090 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11091 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11092 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11093 (define_symbol): Update.
11094 * symfile.c (generic_load): Remove references to nindy.
11095 * symtab.c: Remove references to nindy.
11096
31a85ea2
AC
110972003-02-01 Andrew Cagney <ac131313@redhat.com>
11098
11099 * infcmd.c (print_float_info): Delete code conditional on
11100 FLOAT_INFO.
11101 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11102 * config/m68k/nm-apollo68b.h: Ditto.
11103 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11104 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11105 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11106
f6e85fc8
MK
111072003-02-01 Mark Kettenis <kettenis@gnu.org>
11108
6015b6a0
MK
11109 * config/i386/tm-i386os9k.h: Removed.
11110
f7a30bdf
MK
11111 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11112 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11113 they're identical to i[3456]86-*-sysv* now.
11114 * config/i386/i386v32.mh: Removed.
11115 * config/i386/xm-i386v32.h: Removed.
11116 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11117
28d52111
MK
11118 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11119
4d3f6bce
MK
11120 * config/i386/i386dgux.mh: Removed.
11121 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11122
f6e85fc8
MK
11123 * configure.in: Fix typo.
11124 * configure: Regenerated.
11125
53955967
DC
111262003-01-31 David Carlton <carlton@math.stanford.edu>
11127
11128 * dwarf2read.c (dwarf2_locate_sections): Set
11129 dwarf_ranges_section.
11130
b1364885
AC
111312003-01-31 Andrew Cagney <ac131313@redhat.com>
11132
8dbb1c65
AC
11133 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11134 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11135
8731e58e
AC
11136 * utils.c: Re-indent.
11137
b1364885
AC
11138 * config/djgpp/fnchange.lst: Delete nindy files.
11139 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11140 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11141 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11142 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11143 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11144 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11145 * Makefile.in (init.c): Remove nindy references.
11146 (saber_gdb): Delete rule.
11147 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11148 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11149 and a68v-nat.c.
11150 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11151 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11152 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11153 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11154 nindy-share/stop.h.
11155 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11156 * saber.suppress: Delete file.
11157
086df311
DJ
111582003-01-31 Daniel Jacobowitz <drow@mvista.com>
11159
11160 * dbxread.c (stabs_data): New static variable.
11161 (fill_symbuf): Support an in-memory buffer for stabs data.
11162 (stabs_seek): New function.
11163 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11164 (read_ofile_symtab): Use stabs_seek.
11165 (elfstab_build_psymtabs): Take an asection* instead of
11166 an offset and size. Relocate the stabs data if necessary.
11167 Save the section* for dbx_psymtab_to_symtab.
11168 * dwarf2read.c: Add section variables for each debug section.
11169 (dwarf2_locate_sections): Fill them in.
11170 (dwarf2_read_section): Take an asection* argument.
11171 Relocate the section contents if necessary.
11172 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11173 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11174 it to dwarf2_read_section.
11175 (dwarf2_build_frame_info): Update callers.
11176 * elfread.c (elf_symfile_read): Update call to
11177 elfstab_build_psymtabs.
11178 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11179 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11180 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11181 * symfile.c (symfile_dummy_outputs): New function.
11182 (symfile_relocate_debug_section): New function.
11183 * symfile.h (symfile_relocate_debug_section): Add prototype.
11184
87d1b352
RH
111852003-01-31 Richard Henderson <rth@redhat.com>
11186
11187 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11188 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11189 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11190 * alpha-tdep.c (alpha_register_name): Add "unique".
11191 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11192 (ALPHA_UNIQUE_REGNUM): New.
11193 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11194
c48861fb
AC
111952003-01-31 Andrew Cagney <ac131313@redhat.com>
11196
11197 * README: Remove reference to Ericsson 1800 monitor.
11198 * Makefile.in (remote-es.o): Delete rule.
11199 (ALLDEPFILES): Delete remote-es.c.
11200 * remote-es.c: Delete file.
11201 * config/m68k/es1800.mt: Delete file.
11202 * config/djgpp/fnchange.lst: Update.
11203 * configure.tgt: Delete m68*-ericsson-* target.
11204
d764a824
AF
112052003-01-31 Adam Fedor <fedor@gnu.org>
11206
11207 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11208 Remove duplicate/shadowing variable of same name.
11209
fe36c4f4
JB
112102003-01-30 Jim Blandy <jimb@redhat.com>
11211
11212 * symfile.c (find_separate_debug_file): Assert that the objfile's
11213 directory name we compute ends with a slash, and then assume that
11214 that's so everywhere we use it.
11215
cb741690
DJ
112162003-01-30 Daniel Jacobowitz <drow@mvista.com>
11217
11218 * valops.c (value_assign): Flush frame cache after stores to memory
11219 also.
11220
96ee5227
AC
112212003-01-30 Andrew Cagney <ac131313@redhat.com>
11222
11223 * Makefile.in (mon960-rom.o): Delete rule.
11224 * mon960-rom.c: Delete file.
11225
7f6104a9
AC
112262003-01-30 Andrew Cagney <ac131313@redhat.com>
11227
11228 * d10v-tdep.c: Include "frame-unwind.h".
11229 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11230 list.
11231 (next_addr, uses_frame): Delete.
11232 (struct d10v_unwind_cache): Define.
11233 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11234 Use info instead of next_addr and uses_frame globals.
11235 (d10v_frame_init_saved_regs): Delete function.
11236 (d10v_init_extra_frame_info): Delete function.
11237 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11238 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11239 init_frame_pc or frame_saved_pc.
11240 (d10v_pop_frame): Delete function.
11241 (do_d10v_pop_frame): Delete function.
11242 (d10v_frame_chain): Delete function.
11243 (d10v_frame_chain_valid): Delete function.
11244 (d10v_frame_pc_unwind): New function.
11245 (d10v_frame_id_unwind): New function.
11246 (saved_regs_unwinder): New function.
11247 (d10v_frame_register_unwind): New function.
11248 (d10v_frame_pop): New function.
11249 (d10v_frame_unwind): New variable.
11250 (d10v_frame_p): New function.
11251 (d10v_frame_saved_pc): Delete function.
11252 * Makefile.in (d10v-tdep.o): Update dependencies.
11253
cad2e848
JB
112542003-01-30 J. Brobecker <brobecker@gnat.com>
11255
11256 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11257 causing some regressions due to a change in the default value
11258 for this macro.
11259
af34e669
DJ
112602003-01-29 Richard Henderson <rth@redhat.com>
11261 Elena Zannoni <ezannoni@redhat.com>
11262 Daniel Jacobowitz <drow@mvista.com>
11263
11264 Fix PR gdb/961.
8ffd9b1b 11265 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11266 variables.
11267 (RANGES_SECTION): New.
11268 (dwarf_ranges_buffer): New variable.
11269 (struct comp_unit_head): Add member "die".
11270 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11271 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11272 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11273 (dwarf2_locate_sections): Likewise.
11274 (dwarf2_build_psymtabs): Read .debug_ranges.
11275 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11276 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11277 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11278 Look for DW_AT_ranges and return the bounding box.
11279
baa93fa6
CF
112802003-01-29 Brian Ford <ford@vss.fsi.com>
11281
11282 * win32-nat.c (cygwin_pid): Removed as unused.
11283 (child_attach): Try fall back to Cygwin pid.
11284
c63f977f
JB
112852003-01-29 Jim Blandy <jimb@redhat.com>
11286
11287 * objfiles.h (struct objfile): Doc fix.
11288
d62d1979
AC
112892003-01-29 Andrew Cagney <ac131313@redhat.com>
11290
11291 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11292 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11293 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11294 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11295 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11296 (FRAME_SAVED_PC): Change to a function with predicate.
11297 * gdbarch.h, gdbarch.c: Re-generate.
11298
1ae18a04
AC
112992003-01-28 Andrew Cagney <ac131313@redhat.com>
11300
52287340
AC
11301 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11302
1ae18a04
AC
11303 * complaints.c (complain): Delete function.
11304 * complaints.h (struct deprecated_complaint): Delete definition.
11305 (complain): Delete declaration.
11306
f2c16bd6
KB
113072003-01-28 Kevin Buettner <kevinb@redhat.com>
11308
11309 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11310 dummy frames.
11311
a94dd1fd
AC
113122003-01-27 Andrew Cagney <ac131313@redhat.com>
11313
11314 * sentinel-frame.h, sentinel-frame.c: New files.
11315 * Makefile.in (frame.o): Update dependencies.
11316 (SFILES): Add sentinel-frame.c.
11317 (sentinel_frame_h): Define.
11318 (COMMON_OBS): Add sentinel-frame.o.
11319 (sentinel-frame.o): Specify dependencies.
11320 * frame.c: Include "sentinel-frame.h".
11321 (frame_register_unwind): Rewrite assuming that there is always a a
11322 ->next frame.
11323 (frame_register, generic_unwind_get_saved_register): Ditto.
11324 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11325 (create_sentinel_frame, unwind_to_current_frame): New functions.
11326 (get_current_frame): Rewrite using create_sentinel_frame and
11327 unwind_to_current_frame. When possible, always create a frame.
11328 (create_new_frame): Set next to the sentinel frame.
11329 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11330 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11331 ID cache when necessary.
11332 (frame_saved_regs_id_unwind): Use frame_relative_level.
11333 (deprecated_generic_get_saved_register): Use frame_relative_level,
11334 get_frame_saved_regs, get_frame_pc, get_frame_base and
11335 get_next_frame.
11336 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11337 frame_register.
11338
5378adc4
DJ
113392003-01-27 Daniel Jacobowitz <drow@mvista.com>
11340
11341 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11342
51ee2ddc
DJ
113432003-01-27 Daniel Jacobowitz <drow@mvista.com>
11344
11345 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11346 (maintenance_set_profile_cmd): Use error () instead of warning ().
11347
d9feb4e7
DJ
113482003-01-27 Daniel Jacobowitz <drow@mvista.com>
11349
11350 * configure.in: Check that -pg works if using --enable-profiling.
11351 Check for monstartup and _mcleanup regardless of --enable-profiling.
11352 * maint.c: Check for monstartup and _mcleanup before using them.
11353 * config.in: Regenerated.
11354 * configure: Regenerated.
11355
2d188dd3
NC
113562003-01-24 Nick Clifton <nickc@redhat.com>
11357
11358 * Add sh2e support:
11359
11360 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11361
11362 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11363 (sh2e_show_regs): New.
11364 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11365 * config/sh/tm-sh.h: Added sh2e to comments.
11366
cb3c37b2
JB
113672003-01-23 Jim Blandy <jimb@redhat.com>
11368
11369 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11370 symbols found)" message here; we haven't checked for a separate
11371 debug info file yet, so we don't know yet.
11372 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11373 we've looked everywhere. Also, there's no need to print a special
11374 message when we're loading the separate debug info file: the one
11375 symbol_file_add prints is fine.
11376
5b5d99cf
JB
113772003-01-23 Alexander Larsson <alexl@redhat.com>
11378 Jim Blandy <jimb@redhat.com>
11379
11380 Add support for executables whose debug info has been separated
11381 out into a separate file, leaving only a link behind.
11382 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11383 and separate_debug_objfile_backlink.
11384 (put_objfile_before): New declaration.
11385 * symfile.c: #include "filenames.h".
11386 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11387 debug info in a separate file, read that, too. Save the addrs
11388 argument, so we can use it again to read the separated debug info;
11389 syms_from_objfile modifies the table we pass it.
11390 (reread_symbols): After re-reading an objfile, call
11391 reread_separate_symbols to refresh its separate debug info
11392 objfile, if it has one.
11393 (reread_separate_symbols, find_separate_debug_file,
11394 get_debug_link_info, separate_debug_file_exists): New functions.
11395 (debug_file_directory): New global var.
11396 (_initialize_symfile): Initialize debug_file_directory, and
11397 provide the new `set debug-file-directory' command to let the user
11398 change it.
11399 * objfiles.c (free_objfile): If this objfile has its debug info in
11400 a separate objfile, free that one too. If this is itself a
11401 separate debug info objfile, clear our parent's backlink.
11402 (put_objfile_before): New function.
11403 * utils.c (gnu_debuglink_crc32): New function.
11404 * defs.h (gnu_debuglink_crc32): New declaration.
11405 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11406 * configure.in: Handle --with-separate-debug-dir config option.
11407 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11408 * acconfig.h (DEBUGDIR): New macro.
11409 * configure, aclocal.m4, config.in: Regenerated.
11410
7e8580c1
JB
114112003-01-22 Jim Blandy <jimb@redhat.com>
11412
7904e09f
JB
11413 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11414 like the old symbol_file_add, but taking new arguments: you can
11415 now pass in either a `struct section_addr_info' list to say where
11416 each section is loaded, or a `struct section_offsets' table. Pass
11417 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11418 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11419 with the appropriate quiescent values for the new arguments.
11420
7e8580c1
JB
11421 * symfile.c: #include "gdb_assert.h".
11422 (syms_from_objfile): Add the ability to pass in a section offset
11423 table directly, as an alternative to the section_addr_info table.
11424 Document arguments better.
11425 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11426 * symfile.h (syms_from_objfile): Update declaration.
11427 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11428 syms_from_objfile.
11429 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11430
d28f9cdf
DJ
114312003-01-22 Daniel Jacobowitz <drow@mvista.com>
11432
11433 Original patch by Tom Tromey <tromey@cygnus.com> and
11434 Jason Molenda <jmolenda@apple.com>.
11435 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11436 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11437 * NEWS: Mention profiling.
11438 * configure.in (--enable-gdbtk): Fix typo.
11439 (--enable-profiling): New. Set PROFILE_CFLAGS.
11440 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11441 Fill in function.
11442 (profiling_state): New variable.
11443 (mcleanup_wrapper): New function.
11444 (_initialize_maint): Remove NOTYET, fix call to
11445 add_setshow_boolean_cmd for "maint set profile".
11446 * configure: Regenerated.
11447
df21e465
MH
114482003-01-21 Martin M. Hunt <hunt@redhat.com>
11449
11450 * Makefile.in (install-gdbtk): Install PNG images too.
11451
73c1f219
AC
114522003-01-21 Andrew Cagney <ac131313@redhat.com>
11453
11454 * exec.c (text_start): Delete global variable.
11455 (exec_file_attach): Make text_start local to the function.
11456 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11457 * valops.c (hand_function_call): Delete code that handles
11458 BEFORE_TEXT_END and AFTER_TEXT_END.
11459 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11460 of CALL_DUMMY_LOCATION.
11461 * gdbarch.c: Regenerate.
11462 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11463 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11464 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11465 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11466 (text_end): Delete extern declaration.
11467
eb4f72c5
AC
114682003-01-21 Andrew Cagney <ac131313@redhat.com>
11469
11470 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11471 * blockframe.c (backtrace_below_main): Move to "frame.c".
11472 (frame_chain_valid): Delete check for backtrace_below_main.
11473 (_initialize_blockframe): Delete initialization, move ``set
11474 backtrace-below-main'' command to "frame.c".
11475 (do_flush_frames_sfunc): Delete function.
11476 * frame.c: Include "command.h" and "gdbcmd.h".
11477 (frame_type_from_pc): New function.
11478 (create_new_frame): Use frame_type_from_pc.
11479 (legacy_get_prev_frame): New function.
11480 (get_prev_frame): Rewrite. When an old style frame, call
11481 legacy_get_prev_frame. Otherwize, unwind the PC first.
11482 (_initialize_frame): Add ``set backtrace-below-main'' command.
11483 * Makefile.in (frame.o): Update dependencies.
11484
778ce8cc
AC
114852003-01-19 Andrew Cagney <ac131313@redhat.com>
11486
11487 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11488 DEPRECATED_REGISTERS_INFO.
11489
01c193c8
AC
114902003-01-19 Andrew Cagney <ac131313@redhat.com>
11491
11492 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11493 Maintainers'. Update `Various Maintainers'.
11494
dedc2a2b
AC
114952003-01-19 Andrew Cagney <ac131313@redhat.com>
11496
11497 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11498 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11499 Suppress actual parameters when `-'.
11500 * gdbarch.h, gdbarch.c: Regenerate.
11501
b7261c70
AC
115022003-01-19 Andrew Cagney <ac131313@redhat.com>
11503
11504 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11505 code handling dummy frames.
11506
dbe9fe58
AC
115072003-01-19 Andrew Cagney <ac131313@redhat.com>
11508
11509 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11510 (struct frame_unwind): Add field pop.
11511 * frame.h (frame_pop): Declare.
11512 * frame.c (frame_saved_regs_pop): New function.
11513 (trad_frame_unwinder): Add frame_saved_regs_pop.
11514 (frame_pop): New function.
11515 * dummy-frame.c (dummy_frame_pop): New function.
11516 (discard_innermost_dummy): New function.
11517 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11518 (dummy_frame_unwind): Add dummy_frame_pop.
11519 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11520 * valops.c (hand_function_call): Ditto.
11521 * stack.c (return_command): Ditto.
11522
570b8f7c
AC
115232003-01-18 Andrew Cagney <ac131313@redhat.com>
11524
11525 * cris-tdep.c: Fix function declaration indentation.
11526 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11527 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11528 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11529 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11530 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11531 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11532
115332003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11534
11535 * README (Unpacking and Installation -- quick overview):
11536 Warn against ".../gdb-5.3/gdb/configure".
11537
494cca16
AC
115382003-01-18 Andrew Cagney <ac131313@redhat.com>
11539
11540 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11541 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11542 (struct frame_unwind): Declare opaque.
11543 (dummy_frame_p): Declare function.
11544 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11545 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11546 * dummy-frame.c: Include "frame-unwind.h".
11547 (dummy_frame_p): New function.
11548 (dummy_frame_unwind): New variable.
11549 * frame.c: Include "frame-unwind.h".
11550 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11551 to use the new unwind field.
11552 (set_unwind_by_pc): Delete function.
11553 (create_new_frame, get_prev_frame): Set unwind field using
11554 frame_unwind_find_by_pc.
11555 (trad_frame_unwind, trad_frame_unwinder): New variables.
11556 * frame.h (trad_frame_unwind): Declare variable.
11557 (frame_id_unwind_ftype): Delete declaration.
11558 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11559 (struct frame_unwind): Declare opaque.
11560 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11561 register_unwind with a single unwind pointer.
11562 * frame-unwind.h, frame-unwind.c: New files.
11563 * Makefile.in (SFILES): Add frame-unwind.c.
11564 (frame_unwind_h): Define.
11565 (COMMON_OBS): Add frame-unwind.o.
11566 (frame-unwind.o): Specify dependencies.
11567 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11568
4efb68b1
AC
115692003-01-18 Andrew Cagney <ac131313@redhat.com>
11570
11571 * ada-valprint.c: Eliminate PTR.
11572 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11573 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11574 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11575 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11576 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11577 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11578 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11579
a84d24ee
AC
115802003-01-17 Andrew Cagney <ac131313@redhat.com>
11581
762f08a3
AC
11582 * main.c (captured_main): Don't use PTR.
11583 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11584 * gdbtypes.c (lookup_primitive_typename): Ditto.
11585 (lookup_struct_elt_type): Ditto.
11586 * f-valprint.c (info_common_command): Ditto.
11587 (list_all_visible_commons): Ditto.
11588 * jv-typeprint.c (java_type_print_base): Ditto.
11589
a84d24ee
AC
11590 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11591 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11592 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11593 i386-interix-nat.c and i386-interix-tdep.c. Rename
11594 m68klinux-nat.c and m68klinux-tdep.c. Rename
11595 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11596 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11597 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11598 * main.c (captured_main): Use xfree, not free.
11599
c170fb60
AC
116002003-01-16 Andrew Cagney <ac131313@redhat.com>
11601
11602 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11603 ID back using a parameter.
11604 * frame.c (frame_id_unwind): Update call.
11605 (frame_saved_regs_id_unwind): Update.
11606 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11607 * dummy-frame.h (struct frame_id): Add opaque declaration.
11608 (dummy_frame_id_unwind): Update declaration.
11609
867f3898
AC
116102003-01-15 Andrew Cagney <ac131313@redhat.com>
11611
11612 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11613
40622be8 116142003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11615
40622be8 11616 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11617
ae66c1fc
EZ
116182003-01-14 Elena Zannoni <ezannoni@redhat.com>
11619
997b089a 11620 Fix PR gdb/898
ae66c1fc
EZ
11621 * breakpoint.c (until_break_command): Add new argument. Use it to
11622 decide whether to stop only at the current frame or not.
11623 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11624 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11625 call.
11626 (advance_command): New function.
11627 (_initialize_infcmd): Update help string for 'until' command.
11628 Add new 'advance' command.
11629
a04257e6
DC
116302003-01-14 David Carlton <carlton@math.stanford.edu>
11631
11632 * linespec.c (decode_line_1): Normalize comments.
11633 (set_flags): Ditto.
11634 (locate_first_half): Ditto.
11635 (decode_compound): Ditto.
11636 (symtab_from_filename): Ditto.
11637 (decode_all_digits): Ditto.
11638 (decode_dollar): Ditto.
11639 (find_methods): Ditto.
11640 (find_toplevel_char): Ditto.
11641
1bac305b
AC
116422003-01-13 Andrew Cagney <ac131313@redhat.com>
11643
11644 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11645 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11646 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11647 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11648 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11649 * language.c, language.h, m32r-tdep.c: Update copyright.
11650 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11651 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11652 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11653 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11654 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11655 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11656
25caa7a8
EZ
116572003-01-13 Elena Zannoni <ezannoni@redhat.com>
11658
11659 * stabsread.h (process_later, resolve_cfront_continuation):
11660 Obsolete.
11661 Update copyright years.
11662 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11663 Update copyright year.
11664 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11665 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11666 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11667 Update copyright year.
11668 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11669 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11670 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11671 (parse_partial_symbols): Obsolete cfront support.
11672 * stabsread.c
11673 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11674 macros.
11675 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11676 read_cfront_baseclasses, read_cfront_member_functions,
11677 resolve_cfront_continuation,read_cfront_static_fields,
11678 copy_cfront_struct_fields): Obsolete functions.
11679 (define_symbol, read_one_struct_field): Obsolete cfront support.
11680 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11681 Update Copyright year.
11682
7789c6f5
EZ
116832003-01-13 Elena Zannoni <ezannoni@redhat.com>
11684
11685 * stack.c (print_frame_info, print_stack_frame_base_stub,
11686 print_stack_frame_base, show_and_print_stack_frame_stub,
11687 show_and_print_stack_frame, print_only_stack_frame_stub,
11688 print_only_stack_frame): Delete functions.
11689 (print_stack_frame_stub): Call print_frame_info instead of
11690 print_frame_info_base.
11691 (print_frame_info_base): Rename to print_frame_info.
11692 (backtrace_command_1): Call print_frame_info, instead of
11693 print_frame_info_base.
11694 (current_frame_command): Call print_stack_frame, instead of
11695 print_only_stack_frame.
11696 (frame_command): Call print_stack_frame, instead of
11697 show_and_print_stack_frame.
11698 (up_command): Ditto.
11699 (down_command): Ditto.
11700 * frame.h (print_only_stack_frame): Delete prototype.
11701 * infrun.c (normal_stop): Call print_stack_frame, instead of
11702 show_and_print_stack_frame.
11703 * thread.c (info_threads_command): Call print_stack_frame, instead
11704 of print_only_stack_frame.
11705
3f5a3016
AC
117062003-01-13 Andrew Cagney <ac131313@redhat.com>
11707
d99ba314
AC
11708 * README (Graphical interface to GDB): Update URL. Point at
11709 gdb/links/.
11710
3f5a3016
AC
11711 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11712 version match.
11713
083ae935
DJ
117142003-01-13 Daniel Jacobowitz <drow@mvista.com>
11715
11716 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11717 lines.
11718
5365276c
DJ
117192003-01-13 Daniel Jacobowitz <drow@mvista.com>
11720
11721 * thread-db.c (attach_thread): Prototype.
11722 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11723 thread information (ti), and valid flags (th_valid, ti_valid).
11724 (attach_thread): Move target_pid_to_str call to after the thread
11725 is added to GDB's list. Initialize the cache.
11726 (thread_get_info_callback, thread_db_map_id2thr)
11727 (thread_db_get_info): New functions.
11728 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11729 (thread_db_store_registers, thread_db_thread_alive)
11730 (thread_db_get_thread_local_address): Use them.
11731 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11732 of calling error() for threads in unknown state.
11733
11734 (clear_lwpid_callback): New function.
11735 (thread_db_resume): Use it to clear the cache.
11736
9fc30b6b
DJ
117372003-01-13 Daniel Jacobowitz <drow@mvista.com>
11738
11739 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11740 (resume_callback): Remove dead code.
11741
8f871025
AC
117422003-01-13 Andrew Cagney <ac131313@redhat.com>
11743
11744 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11745 predicate.
11746 * gdbarch.h, gdbarch.c: Regenerate.
11747 * stack.c (frame_info): Only initialize the saved registers when
11748 FRAME_INIT_SAVED_REGS_P.
11749 * frame.c (frame_saved_regs_register_unwind): Assert
11750 FRAME_INIT_SAVED_REGS_P.
11751 (deprecated_generic_get_saved_register): Ditto.
11752
3f565f1e
DJ
117532003-01-13 Daniel Jacobowitz <drow@mvista.com>
11754
11755 * source.c (openp): Squelch warning about "filename".
11756
072b1022
DJ
117572003-01-13 Daniel Jacobowitz <drow@mvista.com>
11758
11759 * source.c (openp): If the file does not exist don't necessarily
11760 search the path.
11761
973ccf8b
DJ
117622003-01-13 Daniel Jacobowitz <drow@mvista.com>
11763
11764 Fix PR gdb/872.
11765 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11766 (integer_types_same_name_p): New function.
11767 (rank_one_type): Use it.
11768 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11769
030292b7
DJ
117702003-01-13 Daniel Jacobowitz <drow@mvista.com>
11771
11772 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11773 variables.
11774 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11775 * configure.in: Add --with-sysroot.
11776 * configure: Regenerated.
11777 * main.c (gdb_sysroot): New variable.
11778 (captured_main): Initialize gdb_sysroot.
11779 * defs.h (gdb_sysroot): New extern declaration.
11780 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11781
afb5d334
MC
117822003-01-12 Michael Chastain <mec@shout.net>
11783
11784 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11785
751ceeb4
MC
117862003-01-12 Michael Chastain <mec@shout.net>
11787
11788 * top.c (print_gdb_version): Bump copyright year to 2003.
11789
94cd26f8
DC
117902003-01-12 David Carlton <carlton@bactrian.org>
11791
11792 * linespec.c (symtab_from_filename): Rename variable 's' to
11793 'file_symtab'.
11794
1ce79225
AC
117952003-01-12 Andrew Cagney <ac131313@redhat.com>
11796
11797 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11798 dummy frame.
11799 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11800
fa1fd571
AC
118012003-01-12 Andrew Cagney <ac131313@redhat.com>
11802
11803 * d10v-tdep.c: Include "gdb_assert.h".
11804 (d10v_store_return_value): Rewrite to match current interface.
11805 (d10v_extract_struct_value_address): Ditto.
11806 (d10v_extract_return_value): Ditto.
11807 (d10v_gdbarch_init): Set store_restore_value,
11808 extract_struct_value_address and extract_return_value.
11809
68b8d23e
JB
118102003-01-12 J. Brobecker <brobecker@gnat.com>
11811
11812 * hpread.c (set_namestring): New procedure replacing the
11813 SET_NAMESTRING macro.
11814 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11815 by calls to set_namestring.
11816
118172003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
11818
11819 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11820 a compilation warning.
11821 (hpread_process_one_debug_symbol): Likewise.
11822
88d262ca
DC
118232003-01-10 David Carlton <carlton@math.stanford.edu>
11824
11825 * linespec.c (decode_line_1): Rename variable 's' to
11826 'file_symtab'.
11827 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11828 (decode_dollar): Ditto.
11829 (decode_variable): Ditto.
11830 (symbol_found): Ditto.
11831
86669319
MC
118322003-01-09 Michael Chastain <mec@shout.net>
11833
11834 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11835
616a9dc4
CV
118362003-01-07 Corinna Vinschen <vinschen@redhat.com>
11837
11838 * win32-nat.c (set_process_privilege): New function.
11839 (child_attach): Call set_process_privilege() to enable the
11840 SE_DEBUG_NAME user privilege if available in process token.
11841
3269bcfa
JB
118422003-01-10 J. Brobecker <brobecker@gnat.com>
11843
11844 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11845 compilation error in the previous revision.
11846
2b0ee454
DC
118472003-01-09 David Carlton <carlton@math.stanford.edu>
11848
11849 * linespec.c: Update copyright.
11850
b3ba1b44
DJ
118512003-01-09 Daniel Jacobowitz <drow@mvista.com>
11852
11853 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11854 than inferior_ptid.
11855 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11856
4ef3f3be
AC
118572003-01-09 Andrew Cagney <ac131313@redhat.com>
11858
479ab5a0
AC
11859 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11860 Update comments.
11861 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11862 (frame_saved_regs_zalloc): Update.
11863 (frame_saved_regs_register_unwind): Update.
11864 (create_new_frame): Update.
11865 (get_prev_frame): Update.
11866 (frame_extra_info_zalloc): Update.
11867 (deprecated_get_frame_saved_regs): Update.
11868 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11869 * cris-tdep.c: Update comment.
11870
bde58177
AC
11871 * somsolib.h: Fix function indentation.
11872 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11873 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11874 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11875 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11876 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11877
4ef3f3be
AC
11878 * infrun.c (follow_fork): Use ISO C definition.
11879 * expprint.c (print_subexp): Use xfree instead of free.
11880 * charset.c: Include "gdb_string.h" instead of <string.h>.
11881 (register_iconv_charsets): Use ISO C definition.
11882 (host_charset, target_charset): Ditto.
11883 * Makefile.in (charset.o): Update dependencies.
11884 (mi-cmd-env.o): Update dependencies.
11885
1c615f7a
AC
118862003-01-08 Andrew Cagney <cagney@redhat.com>
11887
11888 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11889 get_frame_base.
11890
c9a1dc08
AC
118912003-01-08 Andrew Cagney <ac131313@redhat.com>
11892
11893 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11894 build directories. Save edited gdb output in Mbuild.log. If a
11895 build fails, remove any final GDB executable.
11896
dbad9d94
AC
118972003-01-08 Andrew Cagney <ac131313@redhat.com>
11898
11899 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11900 replacing hex constants with function names and stripping leading
11901 file name directory prefixes.
11902
8d357cca
AC
119032003-01-08 Andrew Cagney <cagney@redhat.com>
11904
11905 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11906 get_frame_base.
11907
bca02a8a
DC
119082003-01-08 David Carlton <carlton@math.stanford.edu>
11909
11910 * linespec.c (decode_line_1): Move code into decode_variable.
11911 (decode_variable): New function.
11912
7f8ab3a0
AC
119132003-01-08 Andrew Cagney <ac131313@redhat.com>
11914
11915 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11916
7b5849cc
AC
119172003-01-08 Andrew Cagney <cagney@redhat.com>
11918
11919 * cris-tdep.c (cris_frame_init_saved_regs): Use
11920 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11921 saved_regs buffer.
11922 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11923 (sh64_nofp_frame_init_saved_regs): Ditto.
11924 (sh_fp_frame_init_saved_regs): Ditto.
11925 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11926 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11927 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11928 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11929
72a5efb3
DJ
119302003-01-08 Daniel Jacobowitz <drow@mvista.com>
11931
11932 * minsyms.c (lookup_minimal_symbol): Update comment.
11933 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11934 (lookup_minimal_symbol_solib_trampoline): Likewise.
11935
11c02a10
AC
119362003-01-08 Andrew Cagney <cagney@redhat.com>
11937
aab3ea25
AC
11938 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11939 frame_relative_level.
11940
da50a4b7
AC
11941 * alpha-tdep.c: Use get_frame_extra_info.
11942 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11943 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11944 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11945 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11946
11c02a10
AC
11947 * alpha-tdep.c: Use get_next_frame.
11948 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11949 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11950 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11951 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11952 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11953 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11954 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11955
1e2330ba
AC
119562003-01-07 Andrew Cagney <cagney@redhat.com>
11957
11958 * alpha-tdep.c: Use get_frame_base.
11959 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11960 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11961 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11962 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11963 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11964 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11965 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11966 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11967
2d75187b
AC
119682003-01-07 Andrew Cagney <cagney@redhat.com>
11969
11970 * frame.c (deprecated_get_frame_context): New function.
11971 (deprecated_set_frame_context): New function.
11972 * frame.h (deprecated_get_frame_context): Declare.
11973 (deprecated_set_frame_context): Declare.
11974 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11975 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11976
483d36b2
AC
119772003-01-07 Andrew Cagney <cagney@redhat.com>
11978
11979 * frame.c (deprecated_set_frame_next_hack): New function.
11980 (deprecated_set_frame_prev_hack): New function.
11981 * frame.h (deprecated_set_frame_next_hack): Declare.
11982 (deprecated_set_frame_prev_hack): Declare.
11983 * mcore-tdep.c (analyze_dummy_frame): Use
11984 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11985 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11986
14e91ac5
DC
119872003-01-07 David Carlton <carlton@math.stanford.edu>
11988
11989 * linespec.c (decode_line_1): Move code into decode_dollar.
11990 (decode_dollar): New function.
11991
b0c6b05c
AC
119922003-01-07 Andrew Cagney <cagney@redhat.com>
11993
11994 * arm-tdep.c (arm_init_extra_frame_info): Use
11995 deprecated_update_frame_base_hack.
11996 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11997 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11998 (fix_frame_pointer): Ditto.
11999 (mn10300_analyze_prologue): Ditto.
12000
a00a19e9
AC
120012003-01-07 Andrew Cagney <cagney@redhat.com>
12002
12003 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12004 extra_info using frame_extra_info_zalloc.
12005 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12006 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12007 (sh64_init_extra_frame_info): Ditto.
12008 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12009 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12010 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12011 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12012 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12013 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12014 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12015 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12016 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12017 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12018 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12019 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12020
12021 * mn10300-tdep.c (analyze_dummy_frame): Use
12022 deprecated_set_frame_extra_info_hack.
12023 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12024
1fb4c65b
JB
120252003-01-07 J. Brobecker <brobecker@gnat.com>
12026
12027 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12028 class is not scText. These do not define "real" procedures.
12029 (parse_partial_symbols): Likewise.
12030
9fe7d6bf
MS
120312003-01-06 Michael Snyder <msnyder@redhat.com>
12032
12033 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12034
f6c609c4
AC
120352003-01-06 Andrew Cagney <ac131313@redhat.com>
12036
12037 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12038 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12039 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12040 deprecated_frame_xmalloc_with_cleanup.
12041 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12042 deprecated_frame_xmalloc.
12043 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12044 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12045
d995ff4b
AC
120462003-01-06 Andrew Cagney <cagney@redhat.com>
12047
84dc46cb
AC
12048 * x86-64-linux-tdep.c: Include "osabi.h".
12049 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12050
d995ff4b
AC
12051 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12052
66140c26
AC
120532003-01-06 Andrew Cagney <cagney@redhat.com>
12054
12055 * MAINTAINERS (Target Instruction Set Architectures): Update
12056 arm-elf. Can be built with -Werror, has been multiarched.
12057
12058 * value.h (unpack_long): Make buffer parameter constant.
12059 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12060 * scm-lang.h (scm_parse): Ditto.
12061 * defs.h (extract_typed_address, extract_address): Ditto.
12062 (extract_long_unsigned_integer): Ditto.
12063 * inferior.h (unsigned_pointer_to_address): Ditto.
12064 (signed_pointer_to_address): Ditto.
12065 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12066 * gdbarch.h, gdbarch.c: Regenerate.
12067 * findvar.c (extract_long_unsigned_integer): Update.
12068 (extract_address): Update.
12069 (extract_typed_address): Update.
12070 (unsigned_pointer_to_address): Update.
12071 * values.c (unpack_long): Update.
12072 (unpack_double): Update.
12073 (unpack_pointer): Update.
12074 (unpack_field_as_long): Update.
12075 * d10v-tdep.c (d10v_pointer_to_address): Update.
12076 * avr-tdep.c (avr_pointer_to_address): Update.
12077 * scm-lang.c (scm_unpack): Update.
12078 * findvar.c (signed_pointer_to_address): Update.
12079
b089b3da
ML
120802003-01-06 Michal Ludvig <mludvig@suse.cz>
12081
8ffd9b1b 12082 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12083 since it is in i386-tdep.c.
12084
aff87235
JB
120852003-01-06 J. Brobecker <brobecker@gnat.com>
12086
12087 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12088 failure introduced in the previous change.
12089
34f5e845
MC
120902003-01-05 Michael Chastain <mec@shout.net>
12091
12092 * README: Remove references to deleted remote-*.c files:
12093 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12094 remote-nrom.c, remote-os9k.c, remote-udi.c.
12095
28bcfd30
MK
120962003-01-05 Mark Kettenis <kettenis@gnu.org>
12097
12098 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12099 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12100 i386_get_longjmp_target.
12101
15a5b3ee
AC
121022003-01-05 Andrew Cagney <ac131313@redhat.com>
12103
12104 * arm-tdep.c (prologue_cache): Change to a pointer.
12105 (_initialize_arm_tdep): Allocate prologue_cache.
12106 (check_prologue_cache): Update.
12107 (save_prologue_cache): Update.
12108 (arm_gdbarch_init): Update.
12109
c263362b
DJ
121102003-01-04 Daniel Jacobowitz <drow@mvista.com>
12111
12112 * stabsread.c (update_method_name_from_physname): Call complaint()
12113 instead of error.
12114
51603483
DJ
121152003-01-04 Daniel Jacobowitz <drow@mvista.com>
12116
12117 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12118 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12119 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12120
12121 * blockframe.c: Include "gdbcmd.h" and "command.h".
12122 (backtrace_below_main): New variable.
12123 (file_frame_chain_valid, func_frame_chain_valid)
12124 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12125 (generic_func_frame_chain_valid): Remove functions.
12126 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12127 (_initialize_blockframe): New function.
12128 * Makefile.in (blockframe.o): Update dependencies.
12129 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12130 comment. Call frame_chain_valid ().
12131 * frame.h: Remove old prototypes. Add prototype for
12132 frame_chain_valid and update comments to match.
12133 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12134 Remove old comment.
12135 * gdbarch.h: Regenerated.
12136 * gdbarch.c: Regenerated.
12137
12138 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12139 set_gdbarch_frame_chain_valid.
12140 * avr-tdep.c (avr_gdbarch_init): Likewise.
12141 * cris-tdep.c (cris_gdbarch_init): Likewise.
12142 * frv-tdep.c (frv_gdbarch_init): Likewise.
12143 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12144 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12145 (i386_nw_init_abi): Likewise.
12146 (i386_gdbarch_init): Likewise.
12147 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12148 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12149 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12150 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12151 * mips-tdep.c (mips_gdbarch_init): Likewise.
12152 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12153 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12154 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12155 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12156 * s390-tdep.c (s390_gdbarch_init): Likewise.
12157 * sh-tdep.c (sh_gdbarch_init): Likewise.
12158 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12159 * v850-tdep.c (v850_gdbarch_init): Likewise.
12160 * vax-tdep.c (vax_gdbarch_init): Likewise.
12161 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12162
12163 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12164 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12165 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12166 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12167 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12168 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12169 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12170 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12171
b00a8037
DJ
121722002-01-04 Daniel Jacobowitz <drow@mvista.com>
12173
12174 * Makefile.in (acconfig_h): Remove incorrect macro.
12175 (config_h): Define.
12176 (osabi.o): Update dependencies.
12177 * configure.tgt: Set gdb_osabi based on target triplet.
12178 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12179 * configure: Regenerated.
12180 * config.in: Regenerated.
12181 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12182 (GDB_OSABI_DEFAULT): Define if not already defined.
12183 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12184 (set_osabi_string): New variables.
12185 (gdbarch_register_osabi): Add new OS ABI to
12186 gdb_osabi_available_names.
12187 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12188 (set_osabi, show_osabi): New functions.
12189 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12190
4be87837
DJ
121912003-01-04 Daniel Jacobowitz <drow@mvista.com>
12192
12193 * arch-utils.c (gdbarch_info_init): Set osabi to
12194 GDB_OSABI_UNINITIALIZED.
12195 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12196 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12197 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12198 * gdbarch.c: Regenerated.
12199 * gdbarch.h: Regenerated.
12200 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12201 there's no BFD.
12202 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12203 * osabi.h (enum gdb_osabi): Move to defs.h.
12204 (gdbarch_init_osabi): Update prototype.
12205 * defs.h (enum gdb_osabi): Moved here.
12206 * Makefile.in: Update dependencies.
12207
12208 * alpha-tdep.h: Don't include "osabi.h".
12209 (struct gdbarch_tdep): Remove osabi member.
12210 * alpha-tdep.c: Include "osabi.h".
12211 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12212 iterate over arches. Update call to gdbarch_init_osabi.
12213 (alpha_dump_tdep): Don't dump osabi.
12214 * alpha-linux-tdep.c: Include "osabi.h".
12215 * alpha-osf1-tdep.c: Include "osabi.h".
12216 * alphafbsd-tdep.c: Include "osabi.h".
12217 * alphanbsd-tdep.c: Include "osabi.h".
12218
12219 * arm-tdep.h: Don't include "osabi.h".
12220 (struct gdbarch_tdep): Remove osabi member.
12221 * arm-tdep.c: Include "osabi.h".
12222 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12223 iterate over arches. Update call to gdbarch_init_osabi.
12224 (arm_dump_tdep): Don't dump osabi.
12225 * arm-linux-tdep.c: Include "osabi.h".
12226 * armnbsd-tdep.c: Include "osabi.h".
12227
12228 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12229 Update call to gdbarch_init_osabi.
12230
12231 * i386-tdep.h: Don't include "osabi.h".
12232 (struct gdbarch_tdep): Remove osabi member.
12233 * i386-tdep.c: Include "osabi.h".
12234 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12235 iterate over arches. Update call to gdbarch_init_osabi.
12236 (i386_dump_tdep): Don't dump osabi.
12237 * i386-linux-tdep.c: Include "osabi.h".
12238 * i386-sol2-tdep.c: Include "osabi.h".
12239 * i386bsd-tdep.c: Include "osabi.h".
12240 * i386gnu-tdep.c: Include "osabi.h".
12241 * i386ly-tdep.c: Include "osabi.h".
12242 * i386nbsd-tdep.c: Include "osabi.h".
12243 * i386obsd-tdep.c: Include "osabi.h".
12244
12245 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12246 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12247 check osabi when iterating over arches. Update call to
12248 gdbarch_init_osabi.
12249 (mips_dump_tdep): Don't dump osabi.
12250
12251 * ns32k-tdep.h: Don't include "osabi.h".
12252 (struct gdbarch_tdep): Remove.
12253 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12254 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12255 allocate tdep. Update call to gdbarch_init_osabi.
12256 (ns32k_dump_tdep): Remove.
12257 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12258 * ns32knbsd-tdep.c: Include "osabi.h".
12259
12260 * ppc-tdep.h: Don't include "osabi.h".
12261 (struct gdbarch_tdep): Remove osabi member.
12262 * rs6000-tdep.c: Include "osabi.h".
12263 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12264 osabi when iterating over arches. Update call to
12265 gdbarch_init_osabi.
12266 (rs6000_dump_tdep): Don't dump osabi.
12267 * ppc-linux-tdep.c: Include "osabi.h".
12268 * ppcnbsd-tdep.c: Include "osabi.h".
12269
12270 * sh-tdep.h: Don't include "osabi.h".
12271 (struct gdbarch_tdep): Remove osabi member.
12272 * sh-tdep.c: Include "osabi.h".
12273 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12274 iterate over arches. Update call to gdbarch_init_osabi.
12275 (sh_dump_tdep): Don't dump osabi.
12276 * shnbsd-tdep.c: Include "osabi.h".
12277
12278 * sparc-tdep.c: Include "osabi.h".
12279 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12280 iterate over arches. Update call to gdbarch_init_osabi.
12281 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12282 tdep structure.
12283
12284 * vax-tdep.h: Don't include "osabi.h".
12285 (struct gdbarch_tdep): Remove.
12286 * vax-tdep.c: Include "osabi.h".
12287 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12288 iterate over arches. Don't allocate tdep. Update call
12289 to gdbarch_init_osabi.
12290 (vax_dump_tdep): Remove.
12291 (_initialize_vax_tdep): Update call to gdbarch_register.
12292
a881cf8e
DJ
122932003-01-04 Daniel Jacobowitz <drow@mvista.com>
12294
12295 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12296 entirely.
12297 (breakpoint_re_set_one): Don't fetch the value for a disabled
12298 watchpoint.
12299
1e698235
DJ
123002003-01-04 Daniel Jacobowitz <drow@mvista.com>
12301
12302 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12303 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12304 (COERCE_FLOAT_TO_DOUBLE): Remove.
12305 * gdbarch.c: Regenerate.
12306 * gdbarch.h: Regenerate.
12307 * Makefile.in: Remove value_h from gdbarch_h.
12308 * valops.c (coerce_float_to_double): New variable.
12309 (default_coerce_float_to_double): Remove.
12310 (standard_coerce_float_to_double): Remove.
12311 (value_arg_coerce): Use coerce_float_to_double.
12312 (_initialize_valops): Add "set coerce-float-to-double".
12313 * value.h (default_coerce_float_to_double): Remove prototype.
12314 (standard_coerce_float_to_double): Remove prototype.
12315
12316 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12317 prototyped.
12318 * mdebugread.c (parse_symbol): Likewise.
12319 * stabsread.c (define_symbol): Mark all functions as prototyped.
12320
12321 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12322 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12323 set_gdbarch_coerce_float_to_double.
12324 * arm-tdep.c (arm_gdbarch_init): Likewise.
12325 * frv-tdep.c (frv_gdbarch_init): Likewise.
12326 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12327 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12328 * mips-tdep.c (mips_gdbarch_init): Likewise.
12329 (mips_coerce_float_to_double): Remove.
12330 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12331 (rs6000_coerce_float_to_double): Remove.
12332 * s390-tdep.c (s390_gdbarch_init): Likewise.
12333 * sh-tdep.c (sh_gdbarch_init): Likewise.
12334 (sh_coerce_float_to_double): Remove.
12335 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12336 (sparc_coerce_float_to_double): Remove.
12337 * v850-tdep.c (v850_gdbarch_init): Likewise.
12338 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12339 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12340 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12341 (hppa_coerce_float_to_double): Remove prototype.
12342 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12343
f436a26a
DJ
123442003-01-04 Daniel Jacobowitz <drow@mvista.com>
12345
12346 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12347
248f8055
DJ
123482003-01-04 Daniel Jacobowitz <drow@mvista.com>
12349
12350 Suggested by Stewart Brown <sb24@avaya.com>:
12351 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12352 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12353 (c_type_print_varspec_suffix): Likewise.
12354
72cfdc76
MK
123552003-01-04 Mark Kettenis <kettenis@gnu.org>
12356
bfd260bb
MK
12357 * configure.in: Don't set and AC_SUBST SUBDIRS.
12358 * configure: Regenerated.
12359
72cfdc76
MK
12360 * configure.in: Remove code dealing with shared libraries.
12361 * Makefile.in: Remove HLDFLAGS and HLDENV.
12362 * configure: Regenerated.
12363
c8b8a898
AC
123642003-01-04 Andrew Cagney <ac131313@redhat.com>
12365
12366 * frame.c (deprecated_frame_xmalloc): New function.
12367 (deprecated_set_frame_saved_regs_hack): New function.
12368 (deprecated_set_frame_extra_info_hack): New function.
12369 * frame.h (deprecated_frame_xmalloc): Declare.
12370 (deprecated_set_frame_saved_regs_hack): Declare.
12371 (deprecated_set_frame_extra_info_hack): Declare.
12372
14abd0fb
MK
123732003-01-04 Mark Kettenis <kettenis@gnu.org>
12374
8ee53726
MK
12375 * configure.in: Move code that provides the --enable-gdbtk option
12376 right after the code that handles the --enable-tui option, and
12377 polish it somewhat.
12378 * configure: Regenerated.
12379
14abd0fb
MK
12380 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12381 AC_CHECK_FUNCS and remove the old check for pread64.
12382 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12383 * acconfig.h (_GNU_SOURCE): Add.
12384 (HAVE_PREAD64): Remove.
12385 * configure, aclocal.m4, config.in: Regenerated.
12386
b2fb4676
AC
123872003-01-03 Andrew Cagney <ac131313@redhat.com>
12388
12389 * alpha-tdep.c: Use get_frame_saved_regs.
12390 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12391 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12392 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12393 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12394 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12395
8dcde887
MK
123962003-01-03 Mark Kettenis <kettenis@gnu.org>
12397
12398 * configure.in: Remove all use of the SUBDIRS variable; add
12399 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12400 code providing the --enable-multi-ice option, and move it right in
12401 front of the code that checks whether gdbserver is supported.
12402 Polish that too.
12403 * configure: Regenerated.
12404 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12405 @SUBDIRS@.
12406
8ccd593b
AC
124072003-01-03 Andrew Cagney <cagney@redhat.com>
12408
12409 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12410 * avr-tdep.c, cris-tdep.c: Ditto.
12411 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12412 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12413
91151a06
MK
124142003-01-03 Mark Kettenis <kettenis@gnu.org>
12415
12416 * configure.in: Remove --enable-netrom option.
12417 * configure: Regenerated.
12418
8fe84d01
MK
124192003-01-03 Mark Kettenis <kettenis@gnu.org>
12420
12421 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12422 declaration for `struct re_pattern_buffer' instead.
12423 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12424
f0394be6
JB
124252003-01-03 J. Brobecker <brobecker@gnat.com>
12426
12427 * mdebugread.c (parse_symbol): Count until the stEnd matching
12428 the structure name.
12429
27e9bf90
MK
124302003-01-02 Mark Kettenis <kettenis@gnu.org>
12431
93d331ba
MK
12432 * configure.in: Remove --with-cpu option.
12433 subscripts. Remove evil changequotes here.
12434 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12435 * config.in, configure: Regenerated.
8ffd9b1b 12436
27e9bf90
MK
12437 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12438 * configure.in: Cleanup section that sources GDB and BFD configure
12439 subscripts. Remove evil changequotes here.
12440 * config.in, configure: Regenerated.
12441
50abf9e5
AC
124422003-01-02 Andrew Cagney <ac131313@redhat.com>
12443
12444 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12445 frame accessor methods.
12446 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12447 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12448 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12449 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12450 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12451 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12452 * z8k-tdep.c: Ditto.
8ffd9b1b 12453
287c1a40
MK
124542003-01-02 Mark Kettenis <kettenis@gnu.org>
12455
f5dbc56d
MK
12456 * configure.in: Remove UI_OUT configuration code.
12457 * ada-lang.c: Update assuming UI_OUT is always true.
12458 * Makefile.in (UIOUT_CFLAGS): Remove.
12459 * configure: Regenerated.
12460 * TODO: Remove blurb about elimination of -DUI_OUT.
12461
627af7ea
MK
12462 * configure.in: Move code that provides the --enable-gdbcli,
12463 --enable-gdbmi options right before the code that handles the
12464 --enable-tui option. Polish a bit.
12465 * configure: Regenerated.
12466
06825bd1
MK
12467 * configure.in: Rewrite check for GNU regex and the
12468 --without-included regex option, and move it into the "Checks for
12469 library functions" section. This makes us use the system regex
12470 again by default on systems with version 2 of the GNU C library.
12471 This was apparently broken.
12472 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12473 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12474 * config.in, configure: Regenerated.
12475
287c1a40
MK
12476 * configure.in: Move code that provides the --enable-tui option
12477 before the "Checks for libraries" section. Polish the code
12478 somewhat and set need_curses to yes if we build the TUI. Rewrite
12479 code that looks for a library providing termcap functionality to
12480 match more closely what's done in the Readline library, and move
12481 it into to the "Checks for libraries" section.
12482 * configure: Regenerated.
12483 * Makefile.in (TERMCAP): Remove variable.
12484 * config/i386/go32.mh (TERMCAP): Remove variable.
12485
684e56bf
AC
124862003-01-02 Andrew Cagney <ac131313@redhat.com>
12487
12488 * MAINTAINERS: Mention gdb_mbuild.sh.
12489 * gdb_mbuild.sh: Rewrite.
12490
e1ea1d75
MK
124912003-01-02 Mark Kettenis <kettenis@gnu.org>
12492
12493 * configure.in: Fix typo in last change.
12494 * config.in, configure: Regenerated.
12495
1b831c93
AC
124962003-01-02 Andrew Cagney <ac131313@redhat.com>
12497
12498 * valarith.c (value_binop): Delete obsolete code and comments.
12499 * configure.host: Ditto.
12500 * buildsym.h (make_blockvector): Ditto.
12501 * buildsym.c (make_blockvector): Ditto.
12502 * defs.h (enum language): Ditto.
12503 (chill_demangle): Ditto.
12504 * elfread.c (elf_symtab_read): Ditto.
12505 * dwarfread.c (CHILL_PRODUCER): Ditto.
12506 (set_cu_language): Ditto.
12507 (handle_producer): Ditto.
12508 * expprint.c (print_subexp): Ditto.
12509 * gdbtypes.c (chill_varying_type): Ditto.
12510 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12511 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12512 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12513 (chill_varying_type): Ditto.
12514 * language.h (_LANG_chill): Ditto.
12515 * language.c (binop_result_type, integral_type): Ditto.
12516 (character_type, string_type, structured_type): Ditto.
12517 (lang_bool_type, binop_type_check): Ditto.
12518 * stabsread.h (os9k_stabs): Ditto.
12519 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12520 (define_symbol, read_type, read_struct_fields): Ditto.
12521 (read_array_type, read_enum_type, read_huge_number): Ditto.
12522 (read_range_type, start_stabs): Ditto.
12523 * symfile.c (init_filename_language_table): Ditto.
12524 (add_psymbol_with_dem_name_to_list): Ditto.
12525 * symtab.c (symbol_init_language_specific): Ditto.
12526 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12527 * symtab.h (struct general_symbol_info): Ditto.
12528 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12529 * typeprint.c (typedef_print): Ditto.
12530 * utils.c (fprintf_symbol_filtered): Ditto.
12531 * valops.c (value_cast, search_struct_field, value_slice): Delete
12532 obsolete code.
12533 (varying_to_slice): Delete function.
12534 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12535 (varying_to_slice): Delete declaration.
12536 * MAINTAINERS: Update.
12537
8bb2c122
MK
125382003-01-02 Mark Kettenis <kettenis@gnu.org>
12539
97bf5e38
MK
12540 * configure.in: Reorganize "Checks for library functions section"
12541 a bit. Remove check for `btowc' and `isascii' functions.
12542 * configure: Regenerated.
12543
5ee754fc
MK
12544 * acconfig.h (_MSE_INT_H): Remove.
12545 * configure.in: Create "Checks for header files" section, and move
12546 appropriate tests there. Don't check for objlist.h, wchar.h,
12547 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12548 misdetection fix. Also add "Checks for types", "Checks for
12549 compiler characteristics" and "Checks for library functions"
12550 sections.
12551 * config.in, configure: Regenerated.
12552
8bb2c122
MK
12553 * configure.in: Create "Checks for programs" section, and move
12554 appropriate tests there.
12555
9a156167
MK
125562003-01-01 Mark Kettenis <kettenis@gnu.org>
12557
12558 * configure.in: Create "Checks for libraries" section, and move
12559 appropriate tests there. Cleanup check for wctype in libw. Use
12560 AC_SEARCH_LIBS to see whether we need libsocket.
12561 * configure: Regenerated.
12562
a80e2bcb 12563For older changes see ChangeLog-2002
c906108c
SS
12564\f
12565Local Variables:
12566mode: change-log
12567left-margin: 8
12568fill-column: 74
12569version-control: never
12570End:
This page took 1.015375 seconds and 4 git commands to generate.